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

  • 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