The Owner
field is a collections.Item
that stores the address of the current owner of this submodule.
const OwnerKey = []byte("portal/owner")
The Paused
field is a collections.Item
that stores the current paused state (boolean
).
const PausedKey = []byte("portal/paused")
The Peers
field is a mapping (collections.Map
) between Wormhole Chain IDs (uint16
) and a portal.Peer
value.
const PeerPrefix = []byte("portal/peer/")
The BridgingPaths
field is a mapping (collections.Map
) between a pair (collections.Pair
), Wormhole Chain ID + destination token, and a bool
value.
const BridgingPathPrefix = []byte("portal/bridging_path/")
The Nonce
field is a collections.Item
that stores the latest sent message nonce (uint32
).
const NonceKey = []byte("portal/nonce")