Skip to content

Commit

Permalink
add xudt as system_cells
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanYuan committed Aug 2, 2024
1 parent 222af37 commit 043a215
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion resource/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ use ckb_system_scripts::{
fn main() {
let mut bundled = includedir_codegen::start("BUNDLED");

for f in &["ckb.toml", "ckb-miner.toml", "default.db-options"] {
for f in &[
"ckb.toml",
"ckb-miner.toml",
"default.db-options",
"xudt_rce",
] {
bundled
.add_file(f, Compression::Gzip)
.expect("add files to resource bundle");
Expand Down
4 changes: 4 additions & 0 deletions resource/specs/dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ capacity = 1_048_617_0000_0000
file = { bundled = "specs/cells/secp256k1_blake160_multisig_all" }
create_type_id = true
capacity = 100_000_0000_0000
[[genesis.system_cells]]
file = { bundled = "xudt_rce" }
create_type_id = true
capacity = 1_0000_0000

[genesis.system_cells_lock]
code_hash = "0x0000000000000000000000000000000000000000000000000000000000000000"
Expand Down
Binary file added resource/xudt_rce
Binary file not shown.
2 changes: 1 addition & 1 deletion spec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub const OUTPUT_INDEX_SECP256K1_DATA: u64 = 3;
/// The output index of SECP256K1/multisig script in the genesis no.0 transaction
pub const OUTPUT_INDEX_SECP256K1_BLAKE160_MULTISIG_ALL: u64 = 4;
/// The output index of Token Manager script in the genesis no.0 transaction
pub const OUTPUT_INDEX_TOKEN_MANAGER: u64 = 8;
pub const OUTPUT_INDEX_TOKEN_MANAGER: u64 = 9;

/// The CKB block chain specification
#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
Expand Down

0 comments on commit 043a215

Please sign in to comment.