Structs

Git Source

Contains struct definitions and related functions for bridge operations

Functions

hash

Computes the hash of the bridge request data

function hash(BridgeRequestData memory data) internal pure returns (bytes32);

Parameters

NameTypeDescription
dataBridgeRequestDataThe bridge request data to be hashed

Returns

NameTypeDescription
<none>bytes32The hash of the given bridge request data

Structs

BridgeRequestData

Structure representing bridge request data

struct BridgeRequestData {
    address user;
    address tokenAddress;
    uint256 amountIn;
    uint256 amountOut;
    address destinationVault;
    address destinationAddress;
    uint256 transferIndex;
}

Properties

NameTypeDescription
useraddressThe address of the user initiating the bridge request
tokenAddressaddressThe address of the token to be bridged
amountInuint256The amount of tokens to be bridged
amountOutuint256The amount of tokens expected at the destination
destinationVaultaddressThe address of the destination vault
destinationAddressaddressThe address of the recipient at the destination
transferIndexuint256The transfer index for unique tracking