Skip to content

Commit

Permalink
chore: update ckb-ics (#43)
Browse files Browse the repository at this point in the history
Co-authored-by: liyukun <[email protected]>
  • Loading branch information
ashuralyk and liyukun authored Dec 14, 2023
1 parent ef46058 commit 59d5e92
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
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

0 comments on commit 59d5e92

Please sign in to comment.