LibCommon

It contains an enum and structs that are used to encapsulate and pass relevant information and parameters for data transfer operations. They store details such as the data transfer protocol, transfer key, payload, and data transfer type. The specific usage and implementation of these structs would depend on the context and requirements of the data transfer system or protocol being used.

DataTransferKey

enum DataTransferType {
    Wormhole,
    LayerZero
}

DataTransferInProtocol

struct DataTransferInProtocol {
    uint16 networkId;
    DataTransferType dataTransferType;
    bytes payload;
}
Field
Type
Description
networkId
uint16

This field is of type uint16 and represents the network ID of the data transfer protocol.

dataTransferType
DataTransferType

This field is of type DataTransferType (an enum) and represents the type of data transfer, either Wormhole or LayerZero.

payload
bytes

This field is of type bytes and represents the payload of the data transfer.

DataTransferInArgs

struct DataTransferInArgs {
    DataTransferInProtocol protocol;
    TransferKey transferKey;
    bytes payload;
}
Field
Type
Description
protocol
DataTransferInProtocol

This field is of type DataTransferInProtocol and represents the data transfer protocol details, including the network ID, data transfer type, and payload.

transferKey
TransferKey

This field is of type TransferKey and represents a transfer key associated with the data transfer.

payload
bytes

This field is of type bytes and represents the payload of the data transfer.

DataTransferOutArgs

struct DataTransferOutArgs {
    DataTransferType dataTransferType;
    bytes payload;
}
Field
Type
Description
dataTransferType
DataTransferType

This field is of type DataTransferType (an enum) and represents the type of data transfer, either Wormhole or LayerZero.

payload
bytes

This field is of type bytes and represents the payload of the data transfer.

Last updated