Skip to content

Commit 695a55a

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 8ecfbe7 commit 695a55a

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
@@ -168,6 +168,8 @@ const INBOX_ABI = [
168168
{ name: "index", type: "uint256", indexed: false },
169169
{ name: "hash", type: "bytes32", indexed: true },
170170
{ name: "rollingHash", type: "bytes16", indexed: false },
171+
{ name: "inboxRollingHash", type: "bytes32", indexed: false },
172+
{ name: "bucketSeq", type: "uint256", indexed: false },
171173
],
172174
},
173175
] as const;

0 commit comments

Comments
 (0)