Hierarchy

  • BaseContract
    • TokenBridgeRelayer

Properties

VERSION: TypedContractMethod<[], [string], "view">
WETH: TypedContractMethod<[], [string], "view">
calculateMaxSwapAmountIn: TypedContractMethod<[token: AddressLike], [bigint], "view">
calculateNativeSwapAmountOut: TypedContractMethod<[token: AddressLike, toNativeAmount: BigNumberish], [bigint], "view">
calculateRelayerFee: TypedContractMethod<[targetChainId: BigNumberish, token: AddressLike, decimals: BigNumberish], [bigint], "view">
cancelOwnershipTransferRequest: TypedContractMethod<[chainId_: BigNumberish], [void], "nonpayable">
chainId: TypedContractMethod<[], [bigint], "view">
completeTransferWithRelay: TypedContractMethod<[encodedTransferMessage: BytesLike], [void], "payable">
confirmOwnershipTransferRequest: TypedContractMethod<[], [void], "nonpayable">
decodeTransferWithRelay: TypedContractMethod<[encoded: BytesLike], [TransferWithRelayStructOutput], "view">
denormalizeAmount: TypedContractMethod<[amount: BigNumberish, decimals: BigNumberish], [bigint], "view">
deregisterToken: TypedContractMethod<[chainId_: BigNumberish, token: AddressLike], [void], "nonpayable">
encodeTransferWithRelay: TypedContractMethod<[transfer: TransferWithRelayStruct], [string], "view">
feeRecipient: TypedContractMethod<[], [string], "view">
fetchLocalAddressFromTransferMessage: TypedContractMethod<[payload: BytesLike], [string], "view">
filters: {
    FeeRecipientUpdated: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    FeeRecipientUpdated(address,address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    OwnershipTransfered: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    OwnershipTransfered(address,address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SwapExecuted: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SwapExecuted(address,address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SwapRateUpdated: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SwapRateUpdated(tuple[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    TransferRedeemed: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    TransferRedeemed(uint16,bytes32,uint64): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
}

Type declaration

  • FeeRecipientUpdated: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • FeeRecipientUpdated(address,address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • OwnershipTransfered: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • OwnershipTransfered(address,address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • SwapExecuted: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • SwapExecuted(address,address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • SwapRateUpdated: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • SwapRateUpdated(tuple[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • TransferRedeemed: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • TransferRedeemed(uint16,bytes32,uint64): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
getAcceptedTokensList: TypedContractMethod<[], [string[]], "view">
getPaused: TypedContractMethod<[], [boolean], "view">
getRegisteredContract: TypedContractMethod<[emitterChainId: BigNumberish], [string], "view">
interface: TokenBridgeRelayerInterface
isAcceptedToken: TypedContractMethod<[token: AddressLike], [boolean], "view">
maxNativeSwapAmount: TypedContractMethod<[token: AddressLike], [bigint], "view">
nativeSwapRate: TypedContractMethod<[token: AddressLike], [bigint], "view">
normalizeAmount: TypedContractMethod<[amount: BigNumberish, decimals: BigNumberish], [bigint], "view">
owner: TypedContractMethod<[], [string], "view">
ownerAssistant: TypedContractMethod<[], [string], "view">
pendingOwner: TypedContractMethod<[], [string], "view">
registerContract: TypedContractMethod<[chainId_: BigNumberish, contractAddress: BytesLike], [void], "nonpayable">
registerToken: TypedContractMethod<[chainId_: BigNumberish, token: AddressLike], [void], "nonpayable">
relayerFee: TypedContractMethod<[chainId_: BigNumberish], [bigint], "view">
relayerFeePrecision: TypedContractMethod<[], [bigint], "view">
setPauseForTransfers: TypedContractMethod<[chainId_: BigNumberish, paused: boolean], [void], "nonpayable">
submitOwnershipTransferRequest: TypedContractMethod<[chainId_: BigNumberish, newOwner: AddressLike], [void], "nonpayable">
swapRate: TypedContractMethod<[token: AddressLike], [bigint], "view">
swapRatePrecision: TypedContractMethod<[], [bigint], "view">
tokenBridge: TypedContractMethod<[], [string], "view">
transferTokensWithRelay: TypedContractMethod<[token: AddressLike, amount: BigNumberish, toNativeTokenAmount: BigNumberish, targetChain: BigNumberish, targetRecipient: BytesLike, batchId: BigNumberish], [bigint], "payable">
unwrapWeth: TypedContractMethod<[], [boolean], "view">
updateFeeRecipient: TypedContractMethod<[chainId_: BigNumberish, newFeeRecipient: AddressLike], [void], "nonpayable">
updateMaxNativeSwapAmount: TypedContractMethod<[chainId_: BigNumberish, token: AddressLike, maxAmount: BigNumberish], [void], "nonpayable">
updateOwnerAssistant: TypedContractMethod<[chainId_: BigNumberish, newAssistant: AddressLike], [void], "nonpayable">
updateRelayerFee: TypedContractMethod<[chainId_: BigNumberish, amount: BigNumberish], [void], "nonpayable">
updateRelayerFeePrecision: TypedContractMethod<[chainId_: BigNumberish, relayerFeePrecision_: BigNumberish], [void], "nonpayable">
updateSwapRate: TypedContractMethod<[chainId_: BigNumberish, swapRateUpdate: SwapRateUpdateStruct[]], [void], "nonpayable">
updateSwapRatePrecision: TypedContractMethod<[chainId_: BigNumberish, swapRatePrecision_: BigNumberish], [void], "nonpayable">
updateUnwrapWethFlag: TypedContractMethod<[chainId_: BigNumberish, unwrapWeth_: boolean], [void], "nonpayable">
wormhole: TypedContractMethod<[], [string], "view">
wrapAndTransferEthWithRelay: TypedContractMethod<[toNativeTokenAmount: BigNumberish, targetChain: BigNumberish, targetRecipient: BytesLike, batchId: BigNumberish], [bigint], "payable">

Methods

  • Parameters

    • key: "FeeRecipientUpdated"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "OwnershipTransfered"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "SwapExecuted"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "SwapRateUpdated"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "TransferRedeemed"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Type Parameters

    • T extends ContractMethod<any[], any, any> = ContractMethod<any[], any, any>

    Parameters

    • key: string | FunctionFragment

    Returns T

  • Parameters

    • nameOrSignature: "VERSION"

    Returns TypedContractMethod<[], [string], "view">

  • Parameters

    • nameOrSignature: "WETH"

    Returns TypedContractMethod<[], [string], "view">

  • Parameters

    • nameOrSignature: "calculateMaxSwapAmountIn"

    Returns TypedContractMethod<[token: AddressLike], [bigint], "view">

  • Parameters

    • nameOrSignature: "calculateNativeSwapAmountOut"

    Returns TypedContractMethod<[token: AddressLike, toNativeAmount: BigNumberish], [bigint], "view">

  • Parameters

    • nameOrSignature: "calculateRelayerFee"

    Returns TypedContractMethod<[targetChainId: BigNumberish, token: AddressLike, decimals: BigNumberish], [bigint], "view">

  • Parameters

    • nameOrSignature: "cancelOwnershipTransferRequest"

    Returns TypedContractMethod<[chainId_: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "chainId"

    Returns TypedContractMethod<[], [bigint], "view">

  • Parameters

    • nameOrSignature: "completeTransferWithRelay"

    Returns TypedContractMethod<[encodedTransferMessage: BytesLike], [void], "payable">

  • Parameters

    • nameOrSignature: "confirmOwnershipTransferRequest"

    Returns TypedContractMethod<[], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "decodeTransferWithRelay"

    Returns TypedContractMethod<[encoded: BytesLike], [TransferWithRelayStructOutput], "view">

  • Parameters

    • nameOrSignature: "denormalizeAmount"

    Returns TypedContractMethod<[amount: BigNumberish, decimals: BigNumberish], [bigint], "view">

  • Parameters

    • nameOrSignature: "deregisterToken"

    Returns TypedContractMethod<[chainId_: BigNumberish, token: AddressLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "encodeTransferWithRelay"

    Returns TypedContractMethod<[transfer: TransferWithRelayStruct], [string], "view">

  • Parameters

    • nameOrSignature: "feeRecipient"

    Returns TypedContractMethod<[], [string], "view">

  • Parameters

    • nameOrSignature: "fetchLocalAddressFromTransferMessage"

    Returns TypedContractMethod<[payload: BytesLike], [string], "view">

  • Parameters

    • nameOrSignature: "getAcceptedTokensList"

    Returns TypedContractMethod<[], [string[]], "view">

  • Parameters

    • nameOrSignature: "getPaused"

    Returns TypedContractMethod<[], [boolean], "view">

  • Parameters

    • nameOrSignature: "getRegisteredContract"

    Returns TypedContractMethod<[emitterChainId: BigNumberish], [string], "view">

  • Parameters

    • nameOrSignature: "isAcceptedToken"

    Returns TypedContractMethod<[token: AddressLike], [boolean], "view">

  • Parameters

    • nameOrSignature: "maxNativeSwapAmount"

    Returns TypedContractMethod<[token: AddressLike], [bigint], "view">

  • Parameters

    • nameOrSignature: "nativeSwapRate"

    Returns TypedContractMethod<[token: AddressLike], [bigint], "view">

  • Parameters

    • nameOrSignature: "normalizeAmount"

    Returns TypedContractMethod<[amount: BigNumberish, decimals: BigNumberish], [bigint], "view">

  • Parameters

    • nameOrSignature: "owner"

    Returns TypedContractMethod<[], [string], "view">

  • Parameters

    • nameOrSignature: "ownerAssistant"

    Returns TypedContractMethod<[], [string], "view">

  • Parameters

    • nameOrSignature: "pendingOwner"

    Returns TypedContractMethod<[], [string], "view">

  • Parameters

    • nameOrSignature: "registerContract"

    Returns TypedContractMethod<[chainId_: BigNumberish, contractAddress: BytesLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "registerToken"

    Returns TypedContractMethod<[chainId_: BigNumberish, token: AddressLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "relayerFee"

    Returns TypedContractMethod<[chainId_: BigNumberish], [bigint], "view">

  • Parameters

    • nameOrSignature: "relayerFeePrecision"

    Returns TypedContractMethod<[], [bigint], "view">

  • Parameters

    • nameOrSignature: "setPauseForTransfers"

    Returns TypedContractMethod<[chainId_: BigNumberish, paused: boolean], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "submitOwnershipTransferRequest"

    Returns TypedContractMethod<[chainId_: BigNumberish, newOwner: AddressLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "swapRate"

    Returns TypedContractMethod<[token: AddressLike], [bigint], "view">

  • Parameters

    • nameOrSignature: "swapRatePrecision"

    Returns TypedContractMethod<[], [bigint], "view">

  • Parameters

    • nameOrSignature: "tokenBridge"

    Returns TypedContractMethod<[], [string], "view">

  • Parameters

    • nameOrSignature: "transferTokensWithRelay"

    Returns TypedContractMethod<[token: AddressLike, amount: BigNumberish, toNativeTokenAmount: BigNumberish, targetChain: BigNumberish, targetRecipient: BytesLike, batchId: BigNumberish], [bigint], "payable">

  • Parameters

    • nameOrSignature: "unwrapWeth"

    Returns TypedContractMethod<[], [boolean], "view">

  • Parameters

    • nameOrSignature: "updateFeeRecipient"

    Returns TypedContractMethod<[chainId_: BigNumberish, newFeeRecipient: AddressLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "updateMaxNativeSwapAmount"

    Returns TypedContractMethod<[chainId_: BigNumberish, token: AddressLike, maxAmount: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "updateOwnerAssistant"

    Returns TypedContractMethod<[chainId_: BigNumberish, newAssistant: AddressLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "updateRelayerFee"

    Returns TypedContractMethod<[chainId_: BigNumberish, amount: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "updateRelayerFeePrecision"

    Returns TypedContractMethod<[chainId_: BigNumberish, relayerFeePrecision_: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "updateSwapRate"

    Returns TypedContractMethod<[chainId_: BigNumberish, swapRateUpdate: SwapRateUpdateStruct[]], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "updateSwapRatePrecision"

    Returns TypedContractMethod<[chainId_: BigNumberish, swapRatePrecision_: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "updateUnwrapWethFlag"

    Returns TypedContractMethod<[chainId_: BigNumberish, unwrapWeth_: boolean], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "wormhole"

    Returns TypedContractMethod<[], [string], "view">

  • Parameters

    • nameOrSignature: "wrapAndTransferEthWithRelay"

    Returns TypedContractMethod<[toNativeTokenAmount: BigNumberish, targetChain: BigNumberish, targetRecipient: BytesLike, batchId: BigNumberish], [bigint], "payable">

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any>

    Parameters

    • event: TCEvent

    Returns Promise<TypedListener<TCEvent>[]>

  • Parameters

    • Optional eventName: string

    Returns Promise<Listener[]>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any>

    Parameters

    • event: TCEvent
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEventLog<TCEvent>[]>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any>

    Parameters

    • filter: TypedDeferredTopicFilter<TCEvent>
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEventLog<TCEvent>[]>

Generated using TypeDoc