Skip to content

Commit 8b1fee0

Browse files
authored
chore(aptos): changed packetsend event structure (#3810)
2 parents 50588c3 + e76367d commit 8b1fee0

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

aptos/ibc/sources/ibc.move

+4-4
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ module ibc::ibc {
252252

253253
#[event]
254254
struct PacketSend has drop, store {
255-
source_channel: u32,
256-
destination_channel: u32,
255+
source_channel_id: u32,
256+
destination_channel_id: u32,
257257
data: vector<u8>,
258258
timeout_height: u64,
259259
timeout_timestamp: u64
@@ -1104,8 +1104,8 @@ module ibc::ibc {
11041104

11051105
event::emit(
11061106
PacketSend {
1107-
source_channel: source_channel,
1108-
destination_channel: channel::counterparty_channel_id(&channel),
1107+
source_channel_id: source_channel,
1108+
destination_channel_id: channel::counterparty_channel_id(&channel),
11091109
data: data,
11101110
timeout_height: timeout_height,
11111111
timeout_timestamp: timeout_timestamp

deployments/deployments.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
}
9191
}
9292
},
93-
"channels": [1, 3, 4, 5, 8, 16]
93+
"channels": [1, 3, 4, 5, 8, 17]
9494
},
9595
{
9696
"chain_id": "elgafar-1",
@@ -327,13 +327,13 @@
327327
"ibc_interface": "ibc-move/aptos",
328328
"deployments": {
329329
"core": {
330-
"address": "0x8230e4a17bb9c6858054d9826b2ecc7b8e216b52b49e4e99b1dec8d2c744cda5",
331-
"height": 1020567
330+
"address": "0x8a985e2058e0584216e76cf65ab980c6e9451d22ca48390b0c60deea832b6d0e",
331+
"height": 1030813
332332
},
333333
"app": {
334334
"ucs03": {
335-
"address": "0x88ce60bb48d0a4499c3d8aea70860d088b4abc0a09ed64a9678a8a1203f0fbab",
336-
"height": 1020575
335+
"address": "0x7e385b7c720b279f6871bbd409dd2fb026d3193e2b40c705e8896d51141c1076",
336+
"height": 1030822
337337
}
338338
}
339339
},

generated/rust/aptos-move-ibc/src/lib.rs

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript-sdk/playground/movement-to-union.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const cliArgs = parseArgs({
5151
// npx tsx playground/movement-to-union.ts --private-key
5252

5353
const PRIVATE_KEY = cliArgs.values["private-key"]
54-
const WRAPPED_MUNO_DENOM = "0xdc380d94af18d322b40cac307659794064ec2549dabc3b23fd3d6cacc00cb3dc"
54+
const WRAPPED_MUNO_DENOM = "0x5b8dc541f42c8f31fceaf74f40e3e450a058406ca370779f96b25776c88f672e"
5555
const AMOUNT = 1n
5656
const SOURCE_CHAIN_ID = "250"
5757
const DESTINATION_CHAIN_ID = "union-testnet-9"
@@ -77,14 +77,14 @@ if (channel_info === null) {
7777
// process.exit(1)
7878
channel_info = {
7979
source_chain_id: SOURCE_CHAIN_ID,
80-
source_port_id: "88ce60bb48d0a4499c3d8aea70860d088b4abc0a09ed64a9678a8a1203f0fbab",
80+
source_port_id: "7e385b7c720b279f6871bbd409dd2fb026d3193e2b40c705e8896d51141c1076",
8181
source_channel_id: 1,
8282
source_connection_id: 1,
8383
destination_chain_id: DESTINATION_CHAIN_ID,
8484
destination_port_id:
8585
"756e696f6e3178326a7a65757037757766786a78787274666e61326b746375676c746e746775366b766330656561796b306438326c32343763717a3636396565",
86-
destination_channel_id: 16,
87-
destination_connection_id: 17
86+
destination_channel_id: 18,
87+
destination_connection_id: 23
8888
}
8989
}
9090

typescript-sdk/playground/union-to-movement.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ if (channel_info === null) {
6363
source_chain_id: SOURCE_CHAIN_ID,
6464
source_port_id:
6565
"756e696f6e3178326a7a65757037757766786a78787274666e61326b746375676c746e746775366b766330656561796b306438326c32343763717a3636396565",
66-
source_channel_id: 16,
67-
source_connection_id: 17,
66+
source_channel_id: 18,
67+
source_connection_id: 23,
6868
destination_chain_id: DESTINATION_CHAIN_ID,
69-
destination_port_id: "0x88ce60bb48d0a4499c3d8aea70860d088b4abc0a09ed64a9678a8a1203f0fbab",
69+
destination_port_id: "0x7e385b7c720b279f6871bbd409dd2fb026d3193e2b40c705e8896d51141c1076",
7070
destination_channel_id: 1,
7171
destination_connection_id: 1
7272
}
@@ -85,7 +85,7 @@ let quoteToken = await getQuoteToken(SOURCE_CHAIN_ID, MUNO_DENOM, channel_info)
8585
quoteToken = {
8686
type: "UNWRAPPED",
8787
value: {
88-
quote_token: `0xdc380d94af18d322b40cac307659794064ec2549dabc3b23fd3d6cacc00cb3dc`
88+
quote_token: `0x5b8dc541f42c8f31fceaf74f40e3e450a058406ca370779f96b25776c88f672e`
8989
}
9090
}
9191

voyager/plugins/event-source/movement/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ impl PluginServer<ModuleCall, ModuleCallback> for Module {
668668
) = self
669669
.make_packet_metadata(
670670
self.make_height(height),
671-
event.source_channel,
671+
event.source_channel_id,
672672
e.try_get()?,
673673
)
674674
.await?;

0 commit comments

Comments
 (0)