diff --git a/Cargo.lock b/Cargo.lock index fe3e6b0..d53effa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -242,6 +242,15 @@ dependencies = [ "crossbeam-channel", ] +[[package]] +name = "ckb-channel" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e718dfa7098b0bcce95c7fa573d96aad2f4c3ac886b6f35053f40c5e4894156" +dependencies = [ + "crossbeam-channel", +] + [[package]] name = "ckb-crypto" version = "0.103.0" @@ -291,6 +300,18 @@ dependencies = [ "thiserror", ] +[[package]] +name = "ckb-error" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd512b729186e6fa991b588647646e230db7728f71ba16087af21bded12ceb09" +dependencies = [ + "anyhow", + "ckb-occupied-capacity 0.106.0", + "derive_more", + "thiserror", +] + [[package]] name = "ckb-fixed-hash" version = "0.101.7" @@ -311,6 +332,16 @@ dependencies = [ "ckb-fixed-hash-macros 0.103.0", ] +[[package]] +name = "ckb-fixed-hash" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eba8f7006a63ad0945412012c89af6ad09d9b2b02962a869d0158a298fa8eca" +dependencies = [ + "ckb-fixed-hash-core 0.106.0", + "ckb-fixed-hash-macros 0.106.0", +] + [[package]] name = "ckb-fixed-hash-core" version = "0.101.7" @@ -333,6 +364,17 @@ dependencies = [ "thiserror", ] +[[package]] +name = "ckb-fixed-hash-core" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44b15b464d37d8deeb66046011b3e01e642103b27d4752db4e74740ded732c73" +dependencies = [ + "faster-hex", + "serde", + "thiserror", +] + [[package]] name = "ckb-fixed-hash-macros" version = "0.101.7" @@ -357,6 +399,18 @@ dependencies = [ "syn", ] +[[package]] +name = "ckb-fixed-hash-macros" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61e86358f6eb595a0e6a2a5ef96d54d4c56e0a4bf822934d7b1fe9904b7208e4" +dependencies = [ + "ckb-fixed-hash-core 0.106.0", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "ckb-hash" version = "0.101.7" @@ -377,6 +431,16 @@ dependencies = [ "blake2b-rs", ] +[[package]] +name = "ckb-hash" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "038ad6840c4a89f4cd76b50621c4e6d82ca5f0d09fba707b1025016218d4a2d8" +dependencies = [ + "blake2b-ref 0.2.1", + "blake2b-rs", +] + [[package]] name = "ckb-jsonrpc-types" version = "0.103.0" @@ -403,6 +467,15 @@ dependencies = [ "rust-ini", ] +[[package]] +name = "ckb-merkle-mountain-range" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56ccb671c5921be8a84686e6212ca184cb1d7c51cadcdbfcbd1cc3f042f5dfb8" +dependencies = [ + "cfg-if 1.0.0", +] + [[package]] name = "ckb-occupied-capacity" version = "0.101.7" @@ -423,6 +496,16 @@ dependencies = [ "ckb-occupied-capacity-macros 0.103.0", ] +[[package]] +name = "ckb-occupied-capacity" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94f6c146d51b1b7f65511e6f16ef21b0d852aececc4ae87f78c3099c03e246a9" +dependencies = [ + "ckb-occupied-capacity-core 0.106.0", + "ckb-occupied-capacity-macros 0.106.0", +] + [[package]] name = "ckb-occupied-capacity-core" version = "0.101.7" @@ -441,6 +524,15 @@ dependencies = [ "serde", ] +[[package]] +name = "ckb-occupied-capacity-core" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "507187824418c845b519c64521b34578570b5851d170ff0101bc477ed0cdee2b" +dependencies = [ + "serde", +] + [[package]] name = "ckb-occupied-capacity-macros" version = "0.101.7" @@ -463,6 +555,17 @@ dependencies = [ "syn", ] +[[package]] +name = "ckb-occupied-capacity-macros" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17825cb1ec37c5ad2f2c6690aa4cbfeb9a6d2af02463a66b1fa013e4f9e762aa" +dependencies = [ + "ckb-occupied-capacity-core 0.106.0", + "quote", + "syn", +] + [[package]] name = "ckb-rational" version = "0.101.7" @@ -483,6 +586,16 @@ dependencies = [ "serde", ] +[[package]] +name = "ckb-rational" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa5edf5377138c9457015a450b1a263996d100a5b6e21566157f410e1a5b95b3" +dependencies = [ + "numext-fixed-uint", + "serde", +] + [[package]] name = "ckb-resource" version = "0.103.0" @@ -605,6 +718,28 @@ dependencies = [ "once_cell", ] +[[package]] +name = "ckb-types" +version = "0.106.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f9f918d7f04fed733c528ec98ba8bdee31a885bd082e6ff263ca21d58e01378" +dependencies = [ + "bit-vec", + "bytes", + "ckb-channel 0.106.0", + "ckb-error 0.106.0", + "ckb-fixed-hash 0.106.0", + "ckb-hash 0.106.0", + "ckb-merkle-mountain-range", + "ckb-occupied-capacity 0.106.0", + "ckb-rational 0.106.0", + "derive_more", + "merkle-cbt", + "molecule", + "numext-fixed-uint", + "once_cell", +] + [[package]] name = "clang-sys" version = "1.3.1" @@ -640,7 +775,7 @@ dependencies = [ "ckb-jsonrpc-types", "ckb-rocksdb", "ckb-sdk", - "ckb-types 0.103.0", + "ckb-types 0.106.0", "cota-smt", "crc", "diesel", diff --git a/Cargo.toml b/Cargo.toml index 56bd279..9c8987c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ molecule = "0.7.2" lazy_static = "1.4" rocksdb = { package = "ckb-rocksdb", version = "=0.18.3", features = ["snappy"] } sparse-merkle-tree = "0.6.1" -ckb-types = "=0.103.0" +ckb-types = "=0.106.0" ckb-jsonrpc-types = ">=0.103.0" reqwest = { version = "0.11", features = ["json"] } tokio = { version = "1", features = ["rt", "net"] }