Class for serializing EVM bridge transfers.

Hierarchy

  • SerializeEvmBridgeTransfer

Constructors

Methods

Constructors

Methods

  • Serializes the EVM bridge transfer information.

    Static

    Returns

    • The serialized EVM bridge transfer information.

    Parameters

    • sourceChain: BridgeEvmNetworks

      The source EVM network.

    • destinationChain: BridgeNetworks

      The destination bridge network.

    • sourceWallet: string

      The source wallet address.

    • destinationWallet: string

      The destination wallet address.

    • amount: BigNumber

      The amount of the transfer.

    Returns {
        amount: string;
        destinationChain: number;
        destinationWallet: string;
        sourceChain: number;
        sourceWallet: string;
    }

    • amount: string
    • destinationChain: number
    • destinationWallet: string
    • sourceChain: number
    • sourceWallet: string
  • Serializes an address based on the source chain and address value.

    Static

    Returns

    • The serialized address.

    Parameters

    • sourceChain: BridgeNetworks

      The source chain for the address serialization.

    • address: string

      The address value to serialize.

    Returns string

Generated using TypeDoc