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

chore: update ckb-ics #43

Merged
merged 2 commits into from
Dec 14, 2023
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
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ anyhow = "1.0.72"
async-stream = "0.3.5"
bytes = "1.4.0"
ckb-fixed-hash = "0.111.0"
ckb-ics-axon = { git = "https://github.com/synapseweb3/ckb-ics.git", rev = "4ca20ad" }
ckb-ics-axon = { git = "https://github.com/synapseweb3/ckb-ics.git", rev = "adb8bcfb033d111174f06b88609aded5b9f2a181" }
ckb-jsonrpc-types = "0.111.0"
ckb-sdk = "3.0.0"
ckb-types = "0.111.0"
Expand Down
Binary file modified contracts/ibc-sudt-transfer
Binary file not shown.
Binary file modified contracts/ics-channel
100755 → 100644
Binary file not shown.
Binary file modified contracts/ics-packet
100755 → 100644
Binary file not shown.
2 changes: 1 addition & 1 deletion contracts/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Built at 8c363775ac066ce95dc713f5b80e53cd3a949e61 (write-commitment)
Built at 366c6442a7a78a4ed5e17213e5dac9651457f3b4 (chore/update-ckb-ics)
3 changes: 3 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ impl Config {

pub fn packet_args(&self, sequence: u64) -> PacketArgs {
PacketArgs {
ibc_handler_address: self.axon_ibc_handler_address.clone().into(),
channel_id: self.channel_id,
port_id: self.module_lock_script().calc_script_hash().unpack().0,
sequence,
Expand All @@ -94,6 +95,7 @@ impl Config {

pub fn packet_cell_lock_script_prefix(&self) -> packed::Script {
let packet_args = PacketArgs {
ibc_handler_address: self.axon_ibc_handler_address.clone().into(),
channel_id: self.channel_id,
port_id: self.module_lock_script().calc_script_hash().unpack().0,
sequence: 0,
Expand All @@ -109,6 +111,7 @@ impl Config {
/// Packet cell lock script for certain sequence number.
pub fn packet_cell_lock_script(&self, sequence: u64) -> packed::Script {
let packet_args = PacketArgs {
ibc_handler_address: self.axon_ibc_handler_address.clone().into(),
channel_id: self.channel_id,
port_id: self.module_lock_script().calc_script_hash().unpack().0,
sequence,
Expand Down
Loading