diff --git a/Cargo.lock b/Cargo.lock index 75ceaab..4caa4a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -245,6 +245,15 @@ dependencies = [ "crossbeam-channel", ] +[[package]] +name = "ckb-channel" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4e72eb8d294fb3ca0ab01a0635e71e5746bc71049aaf8d18c3017dc9964831a" +dependencies = [ + "crossbeam-channel", +] + [[package]] name = "ckb-error" version = "0.101.8" @@ -269,6 +278,18 @@ dependencies = [ "thiserror", ] +[[package]] +name = "ckb-error" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21181e36301545cf0ed9704261eff9c3f867095f631a15ee4d823f295b898995" +dependencies = [ + "anyhow", + "ckb-occupied-capacity 0.110.0", + "derive_more", + "thiserror", +] + [[package]] name = "ckb-fixed-hash" version = "0.101.8" @@ -289,6 +310,16 @@ dependencies = [ "ckb-fixed-hash-macros 0.104.0", ] +[[package]] +name = "ckb-fixed-hash" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e491c2d8455badf62d3c586f83e629027961f1564483b3d34ff2f67f0732b645" +dependencies = [ + "ckb-fixed-hash-core 0.110.0", + "ckb-fixed-hash-macros 0.110.0", +] + [[package]] name = "ckb-fixed-hash-core" version = "0.101.8" @@ -311,6 +342,17 @@ dependencies = [ "thiserror", ] +[[package]] +name = "ckb-fixed-hash-core" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0cf3c1e6f7e3b0eb592db2bcb5e94e13a9f3bd84babc472e1286333b2e077bc" +dependencies = [ + "faster-hex", + "serde", + "thiserror", +] + [[package]] name = "ckb-fixed-hash-macros" version = "0.101.8" @@ -335,6 +377,18 @@ dependencies = [ "syn", ] +[[package]] +name = "ckb-fixed-hash-macros" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2749f8c0174eca80330e98a30b3b222252d067ea9c4fd9e9bfbd2dfda8239ff3" +dependencies = [ + "ckb-fixed-hash-core 0.110.0", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "ckb-hash" version = "0.101.8" @@ -355,6 +409,16 @@ dependencies = [ "blake2b-rs 0.2.0", ] +[[package]] +name = "ckb-hash" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29f0a4334428015f6b5c9edeea944917525a0a20bfd30dc5b33418ffa64633aa" +dependencies = [ + "blake2b-ref 0.2.1", + "blake2b-rs 0.2.0", +] + [[package]] name = "ckb-jsonrpc-types" version = "0.104.0" @@ -381,6 +445,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.8" @@ -401,6 +474,16 @@ dependencies = [ "ckb-occupied-capacity-macros 0.104.0", ] +[[package]] +name = "ckb-occupied-capacity" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2e6d8888e35b2c4f5ffe1297ef91e3b91c416ee20525317b8493c438ea22d79" +dependencies = [ + "ckb-occupied-capacity-core 0.110.0", + "ckb-occupied-capacity-macros 0.110.0", +] + [[package]] name = "ckb-occupied-capacity-core" version = "0.101.8" @@ -419,6 +502,15 @@ dependencies = [ "serde", ] +[[package]] +name = "ckb-occupied-capacity-core" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b5e3394105c762a5299cf7ab555f9f4277601f4f21bbb03cba80c716aeaad35" +dependencies = [ + "serde", +] + [[package]] name = "ckb-occupied-capacity-macros" version = "0.101.8" @@ -441,6 +533,17 @@ dependencies = [ "syn", ] +[[package]] +name = "ckb-occupied-capacity-macros" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3ddc97c09e2f7916a1539ef1256aac28bd711d2c2cdcd0b18c486243ccdabe0" +dependencies = [ + "ckb-occupied-capacity-core 0.110.0", + "quote", + "syn", +] + [[package]] name = "ckb-rational" version = "0.101.8" @@ -461,6 +564,16 @@ dependencies = [ "serde", ] +[[package]] +name = "ckb-rational" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1112a8c125232bc69396c41e97e94956cf4c23f62c4b2793031959c21476d51a" +dependencies = [ + "numext-fixed-uint", + "serde", +] + [[package]] name = "ckb-rocksdb" version = "0.18.3" @@ -515,6 +628,29 @@ dependencies = [ "once_cell", ] +[[package]] +name = "ckb-types" +version = "0.110.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb4395d943b52b842fda34e1aab1fc59ca1daf80535ede706d5052fdac099ce6" +dependencies = [ + "bit-vec", + "bytes", + "ckb-channel 0.110.0", + "ckb-error 0.110.0", + "ckb-fixed-hash 0.110.0", + "ckb-hash 0.110.0", + "ckb-merkle-mountain-range", + "ckb-occupied-capacity 0.110.0", + "ckb-rational 0.110.0", + "derive_more", + "golomb-coded-set", + "merkle-cbt", + "molecule", + "numext-fixed-uint", + "once_cell", +] + [[package]] name = "clang-sys" version = "1.3.1" @@ -549,7 +685,7 @@ dependencies = [ "chrono", "ckb-jsonrpc-types", "ckb-rocksdb", - "ckb-types 0.104.0", + "ckb-types 0.110.0", "cota-smt", "crc", "diesel", @@ -897,6 +1033,15 @@ dependencies = [ "regex", ] +[[package]] +name = "golomb-coded-set" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c7076c0cd6257d84b785b0f22c36443dd47a5e86a1256d7ef82c8cb88ea9a7e" +dependencies = [ + "siphasher", +] + [[package]] name = "h2" version = "0.3.12" @@ -1839,6 +1984,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" +[[package]] +name = "siphasher" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" + [[package]] name = "slab" version = "0.4.5" diff --git a/Cargo.toml b/Cargo.toml index 49f313b..e58dacc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ dotenv = "0.15.0" molecule = "0.7.2" serde = { version = "1.0", features = [ "derive" ] } sparse-merkle-tree = "0.5.3" -ckb-types = "=0.104.0" +ckb-types = "=0.110.0" ckb-jsonrpc-types = ">=0.104.0" parking_lot = "0.12.1" reqwest = { version = "0.11", features = ["json"] }