Skip to content

Commit 50a0f07

Browse files
committed
docs(fast-inbox): follow the MessageSent event through the example Inbox ABIs (A-1377)
The Inbox MessageSent event gains inboxRollingHash and bucketSeq fields, changing its topic. The examples decode deposit receipts against a hardcoded Inbox ABI, so the stale signature made the event filter come up empty.
1 parent 95a022b commit 50a0f07

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

docs/examples/ts/aave_bridge/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ const INBOX_ABI = [
351351
{ name: "index", type: "uint256", indexed: false },
352352
{ name: "hash", type: "bytes32", indexed: true },
353353
{ name: "rollingHash", type: "bytes16", indexed: false },
354+
{ name: "inboxRollingHash", type: "bytes32", indexed: false },
355+
{ name: "bucketSeq", type: "uint256", indexed: false },
354356
],
355357
},
356358
] as const;

docs/examples/ts/example_swap/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ const INBOX_ABI = [
263263
{ name: "index", type: "uint256", indexed: false },
264264
{ name: "hash", type: "bytes32", indexed: true },
265265
{ name: "rollingHash", type: "bytes16", indexed: false },
266+
{ name: "inboxRollingHash", type: "bytes32", indexed: false },
267+
{ name: "bucketSeq", type: "uint256", indexed: false },
266268
],
267269
},
268270
] as const;

docs/examples/ts/token_bridge/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ const INBOX_ABI = [
169169
{ name: "index", type: "uint256", indexed: false },
170170
{ name: "hash", type: "bytes32", indexed: true },
171171
{ name: "rollingHash", type: "bytes16", indexed: false },
172+
{ name: "inboxRollingHash", type: "bytes32", indexed: false },
173+
{ name: "bucketSeq", type: "uint256", indexed: false },
172174
],
173175
},
174176
] as const;

0 commit comments

Comments
 (0)