Skip to content

Instantly share code, notes, and snippets.

@fetsorn
Created August 13, 2021 09:53
Show Gist options
  • Save fetsorn/5642cdd58f11127eb910d4c19d74e4e7 to your computer and use it in GitHub Desktop.
Save fetsorn/5642cdd58f11127eb910d4c19d74e4e7 to your computer and use it in GitHub Desktop.
Relay event encoding
AttachValue
https://ftmscan.com/tx/0x729fe13521391a8d9b9ae854bf9e97b82fcd71449ae6e21ddc4c60300becbe88#eventlog
000000000000000000000000a7a1869df83968986c383bfe54432475014aaeea - nebula
74070806d706495c85498029b3408c6500000000000000000000000000000000 - bytes16 uuid
0000000000000000000000000000000000000000000000000000000000000120 - encoding
0000000000000000000000000000000000000000000000000000000000000160 - encoding
a4f88aed847e87bafdc18210d88464dc24f71fa4bf1b4672710c9bc876bb0044 - bytes32 topic0
00000000000000000000000000000000000000000000000000000000000001a0 - encoding
00000000000000000000000000000000000000000000000000000000000001e0 - encoding
0000000000000000000000000000000000000000000000000000000000000220 - encoding
0000000000000000000000000000000000000000000000000427ea5a35f98bea - uint256 amount
0000000000000000000000000000000000000000000000000000000000000003 - encoding
504c470000000000000000000000000000000000000000000000000000000000 - string chain
0000000000000000000000000000000000000000000000000000000000000014 - encoding
dc9f9ece8d24214fc8de90bcd21808b73060b63f000000000000000000000000 - bytes emiter
0000000000000000000000000000000000000000000000000000000000000020 - encoding
0000000000000000000000000000000000000000000000000000000000000000 - bytes token
0000000000000000000000000000000000000000000000000000000000000020 - encoding
ced486e3905f8fe1e8af5d1791f5e7ad7915f01a000000000000000000000000 - sender
0000000000000000000000000000000000000000000000000000000000000020 - encoding
ced486e3905f8fe1e8af5d1791f5e7ad7915f01a000000000000000000000000 - receiver
RouteValue
https://ftmscan.com/tx/0x729fe13521391a8d9b9ae854bf9e97b82fcd71449ae6e21ddc4c60300becbe88#eventlog
topic1 0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563 - keccak256 hash of token
topic2 0xe486918e01ce105d0d188071ed822963a03ffff9cbaee848a906012cc1a5486e - keccak256 hash of sender
topic3 0xe486918e01ce105d0d188071ed822963a03ffff9cbaee848a906012cc1a5486e - keccak256 hash of sender
74070806d706495c85498029b3408c6500000000000000000000000000000000 - bytes16 uuid
0000000000000000000000000000000000000000000000000000000000000080 - encoding
00000000000000000000000000000000000000000000000000000000000000c0 - encoding
0000000000000000000000000000000000000000000000000427ea5a35f98bea - uint256 amount
0000000000000000000000000000000000000000000000000000000000000020 - encoding
46544d0000000000000000000000000000000000000000000000000000000000 - string chain
0000000000000000000000000000000000000000000000000000000000000014 - encoding
dc9f9ece8d24214fc8de90bcd21808b73060b63f000000000000000000000000 - bytes receiver
Lock
https://ftmscan.com/tx/0x3ede78b1d3a7d1e0d0f73bd66b816bcad8fadb5c540591c9642ff684af2d3e6f#eventlog
topic1 0xa5e92f3efb6826155f1f728e162af9d7cda33a574a1153b58f03ea01cc37e568 - keccak256 hash of chain
topic2 0xfe8e78f9da91c53469b734ff77796b6caa5efe9a3d15852db226c78decd25eca - keccak256 hash of receiver
0000000000000000000000000000000000000000000000000000000000000060 - encoding
00000000000000000000000000000000000000000000000000000000000000a0 - encoding
00000000000000000000000000000000000000000000000000003edfa50bc550 - uint256 amount
0000000000000000000000000000000000000000000000000000000000000003 - encoding
4441490000000000000000000000000000000000000000000000000000000000 - string chain
0000000000000000000000000000000000000000000000000000000000000014 - encoding
ced486e3905f8fe1e8af5d1791f5e7ad7915f01a000000000000000000000000 - bytes receiver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment