Skip to content

Commit

Permalink
Update documentation with new struct sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
nytzuga committed Sep 29, 2023
1 parent e5644fc commit 31125c9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions vms/platformvm/warp/payload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ An Avalanche Unsigned Warp Message already includes a `networkID`, `sourceChainI

AddressedPayload:
```
+---------------------+----------+-------------------+
| codecID : uint16 | 2 bytes |
+---------------------+----------+-------------------+
| typeID : uint32 | 4 bytes |
+---------------------+----------+-------------------+
| sourceAddress : [20]byte | 20 bytes |
+---------------------+----------+-------------------+
| payload : []byte | 4 + len(payload) |
+---------------------+----------+-------------------+
| 30 + len(payload) |
+-------------------+
+---------------------+--------+----------------------------------+
| codecID : uint16 | 2 bytes |
+---------------------+--------+----------------------------------+
| typeID : uint32 | 4 bytes |
+---------------------+--------+----------------------------------+
| sourceAddress : []byte | 4 + len(address) |
+---------------------+--------+----------------------------------+
| payload : []byte | 4 + len(payload) |
+---------------------+--------+----------------------------------+
| 14 + len(payload) + len(address) |
+----------------------------------+
```

- `codecID` is the codec version used to serialize the payload and is hardcoded to `0x0000`
Expand Down

0 comments on commit 31125c9

Please sign in to comment.