Class for deserializing EVM bridge transfers.

Hierarchy

  • DeserializeEvmBridgeTransfer

Constructors

Methods

  • Deserializes the EVM bridge transfer information.

    Static

    Returns

    • The deserialized EVM bridge transfer information.

    Parameters

    • sourceChainId: number

      The source chain ID.

    • destinationChainId: number

      The destination chain ID.

    • sourceWallet: string

      The source wallet address.

    • destinationIdBytes: string

      The serialized destination wallet address.

    • amount: BigNumber

      The amount of the transfer.

    Returns {
        amount: BigNumber;
        destinationNetwork: BridgeNetworks;
        destinationWallet: string;
        sourceNetwork: BridgeEvmNetworks;
        sourceWallet: string;
    }

  • Deserializes an address based on the chain and data value.

    Static

    Returns

    • The deserialized address.

    Parameters

    • chain: BridgeNetworks

      The chain for the address deserialization.

    • data: string

      The serialized address data.

    Returns string

Generated using TypeDoc