LibCommon
It contains an enum and structs that define the data structures for passing arguments and information related to bridge operations, including bridge types, payload data, recipient network IDs, amounts, asset addresses, and transfer keys. The purpose of these data structures is to provide a standardized format for handling bridge operations and their associated parameters in the contract or system that uses them.
BridgeType
This is an enumeration that defines two values: Wormhole
and Stargate
. It is used to represent different bridge types.
BridgeArgs
Field | Type | Description |
---|---|---|
An instance of the | ||
A |
BridgeInArgs
Field | Type | Description |
---|---|---|
An unsigned 16-bit integer that represents the ID of the recipient network. | ||
An instance of the | ||
A | ||
An | ||
An instance of the |
BridgeOutArgs
Field | Type | Description |
---|---|---|
An instance of the | ||
An instance of the | ||
An instance of the |
RefundArgs
Field | Type | Description |
---|---|---|
An unsigned 16-bit integer that represents the ID of the recipient network. | ||
A | ||
An | ||
An instance of the | ||
An instance of the | ||
The bytes that contain some message which are required while bridging. |
Last updated