Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.17 KB

01_state_portal.md

File metadata and controls

45 lines (29 loc) · 1.17 KB

Portal State

Owner

The Owner field is a collections.Item that stores the address of the current owner of this submodule.

const OwnerKey = []byte("portal/owner")

Paused

The Paused field is a collections.Item that stores the current paused state (boolean).

const PausedKey = []byte("portal/paused")

Peers

The Peers field is a mapping (collections.Map) between Wormhole Chain IDs (uint16) and a portal.Peer value.

const PeerPrefix = []byte("portal/peer/")

Bridging Paths

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/")

Nonce

The Nonce field is a collections.Item that stores the latest sent message nonce (uint32).

const NonceKey = []byte("portal/nonce")