Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ckb dependencies to 0.119.0, bump to 3.5.0 #130

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ckb-sdk"
version = "3.4.1"
version = "3.5.0"
authors = [ "Linfeng Qian <[email protected]>", "Nervos Core Dev <[email protected]>" ]
edition = "2018"
license = "MIT"
Expand Down Expand Up @@ -29,22 +29,22 @@ lru = "0.7.1"
dashmap = "5.4"
dyn-clone = "1.0"

ckb-types = "0.118.0"
ckb-dao-utils = "0.118.0"
ckb-traits = "0.118.0"
ckb-jsonrpc-types = "0.118.0"
ckb-hash = "0.118.0"
ckb-resource = "0.118.0"
ckb-crypto = { version = "=0.118.0", features = ["secp"] }
ckb-script = "0.118.0"
ckb-types = "0.119.0"
ckb-dao-utils = "0.119.0"
ckb-traits = "0.119.0"
ckb-jsonrpc-types = "0.119.0"
ckb-hash = "0.119.0"
ckb-resource = "0.119.0"
ckb-crypto = { version = "=0.119.0", features = ["secp"] }
ckb-script = "0.119.0"
bitflags = "1.3.2"
sha3 = "0.10.1"
enum-repr-derive = "0.2.0"

# for feature test
rand = { version = "0.7.3", optional = true }
ckb-mock-tx-types = { version = "0.118.0" }
ckb-chain-spec = "0.118.0"
ckb-mock-tx-types = { version = "0.119.0" }
ckb-chain-spec = "0.119.0"

sparse-merkle-tree = "0.6.1"
lazy_static = "1.3.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ These features allow for seamless interaction with CKB and facilitate the develo
```toml
# Cargo.toml
[dependencies]
ckb-sdk = "3.4"
ckb-sdk = "3.5.0"
```

## Build
Expand Down
8 changes: 8 additions & 0 deletions src/transaction/handler/multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ impl ScriptHandler for Secp256k1Blake160MultisigAllScriptHandler {
)
.index(1u32.pack())
.build()
} else if network.network_type == NetworkType::Preview {
OutPoint::new_builder()
.tx_hash(
h256!("0x0fab65924f2784f17ad7f86d6aef4b04ca1ca237102a68961594acebc5c77816")
.pack(),
)
.index(1u32.pack())
.build()
} else {
return Err(TxBuilderError::UnsupportedNetworkType(network.network_type));
};
Expand Down
8 changes: 8 additions & 0 deletions src/transaction/handler/sighash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ impl ScriptHandler for Secp256k1Blake160SighashAllScriptHandler {
)
.index(0u32.pack())
.build()
} else if network.network_type == NetworkType::Preview {
OutPoint::new_builder()
.tx_hash(
h256!("0x0fab65924f2784f17ad7f86d6aef4b04ca1ca237102a68961594acebc5c77816")
.pack(),
)
.index(0u32.pack())
.build()
} else {
return Err(TxBuilderError::UnsupportedNetworkType(network.network_type));
};
Expand Down
Loading