Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseContract
    • NFTBridgeImplementation

Index

Constructors

constructor

  • new NFTBridgeImplementation(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): NFTBridgeImplementation
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns NFTBridgeImplementation

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

_runningEvents

_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent

_wrappedEmits

_wrappedEmits: {}

Type declaration

  • [eventTag: string]: (...args: any[]) => void
      • (...args: any[]): void
      • Parameters

        • Rest ...args: any[]

        Returns void

Readonly address

address: string

callStatic

callStatic: { bridgeContracts: any; chainId: any; completeTransfer: any; encodeTransfer: any; evmChainId: any; finality: any; governanceActionIsConsumed: any; governanceChainId: any; governanceContract: any; implementation: any; initialize: any; isFork: any; isInitialized: any; isTransferCompleted: any; isWrappedAsset: any; onERC721Received: any; parseRecoverChainId: any; parseRegisterChain: any; parseTransfer: any; parseUpgrade: any; registerChain: any; splCache: any; submitRecoverChainId: any; tokenImplementation: any; transferNFT: any; upgrade: any; wormhole: any; wrappedAsset: any }

Type declaration

  • bridgeContracts: function
    • bridgeContracts(chainId_: BigNumberish, overrides?: CallOverrides): Promise<string>
    • Parameters

      • chainId_: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<string>

  • chainId: function
    • chainId(overrides?: CallOverrides): Promise<number>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<number>

  • completeTransfer: function
    • completeTransfer(encodedVm: BytesLike, overrides?: CallOverrides): Promise<void>
    • Parameters

      • encodedVm: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • encodeTransfer: function
    • encodeTransfer(transfer: { name: BytesLike; symbol: BytesLike; to: BytesLike; toChain: BigNumberish; tokenAddress: BytesLike; tokenChain: BigNumberish; tokenID: BigNumberish; uri: string }, overrides?: CallOverrides): Promise<string>
    • Parameters

      • transfer: { name: BytesLike; symbol: BytesLike; to: BytesLike; toChain: BigNumberish; tokenAddress: BytesLike; tokenChain: BigNumberish; tokenID: BigNumberish; uri: string }
        • name: BytesLike
        • symbol: BytesLike
        • to: BytesLike
        • toChain: BigNumberish
        • tokenAddress: BytesLike
        • tokenChain: BigNumberish
        • tokenID: BigNumberish
        • uri: string
      • Optional overrides: CallOverrides

      Returns Promise<string>

  • evmChainId: function
    • evmChainId(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • finality: function
    • finality(overrides?: CallOverrides): Promise<number>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<number>

  • governanceActionIsConsumed: function
    • governanceActionIsConsumed(hash: BytesLike, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      • hash: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • governanceChainId: function
    • governanceChainId(overrides?: CallOverrides): Promise<number>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<number>

  • governanceContract: function
    • governanceContract(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • implementation: function
    • implementation(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • initialize: function
    • initialize(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • isFork: function
    • isFork(overrides?: CallOverrides): Promise<boolean>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • isInitialized: function
    • isInitialized(impl: string, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      • impl: string
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • isTransferCompleted: function
    • isTransferCompleted(hash: BytesLike, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      • hash: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • isWrappedAsset: function
    • isWrappedAsset(token: string, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      • token: string
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • onERC721Received: function
    • onERC721Received(operator: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides): Promise<string>
    • Parameters

      • operator: string
      • arg1: string
      • arg2: BigNumberish
      • arg3: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<string>

  • parseRecoverChainId: function
    • parseRecoverChainId(encodedRecoverChainId: BytesLike, overrides?: CallOverrides): Promise<[string, number, BigNumber, number] & { action: number; evmChainId: BigNumber; module: string; newChainId: number }>
    • Parse a recoverChainId (action 3) with minimal validation

      Parameters

      • encodedRecoverChainId: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[string, number, BigNumber, number] & { action: number; evmChainId: BigNumber; module: string; newChainId: number }>

  • parseRegisterChain: function
    • parseRegisterChain(encoded: BytesLike, overrides?: CallOverrides): Promise<[string, number, number, number, string] & { action: number; chainId: number; emitterAddress: string; emitterChainID: number; module: string }>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[string, number, number, number, string] & { action: number; chainId: number; emitterAddress: string; emitterChainID: number; module: string }>

  • parseTransfer: function
    • parseTransfer(encoded: BytesLike, overrides?: CallOverrides): Promise<[string, number, string, string, BigNumber, string, string, number] & { name: string; symbol: string; to: string; toChain: number; tokenAddress: string; tokenChain: number; tokenID: BigNumber; uri: string }>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[string, number, string, string, BigNumber, string, string, number] & { name: string; symbol: string; to: string; toChain: number; tokenAddress: string; tokenChain: number; tokenID: BigNumber; uri: string }>

  • parseUpgrade: function
    • parseUpgrade(encoded: BytesLike, overrides?: CallOverrides): Promise<[string, number, number, string] & { action: number; chainId: number; module: string; newContract: string }>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[string, number, number, string] & { action: number; chainId: number; module: string; newContract: string }>

  • registerChain: function
    • registerChain(encodedVM: BytesLike, overrides?: CallOverrides): Promise<void>
    • Parameters

      • encodedVM: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • splCache: function
    • splCache(tokenId: BigNumberish, overrides?: CallOverrides): Promise<[string, string] & { name: string; symbol: string }>
    • Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[string, string] & { name: string; symbol: string }>

  • submitRecoverChainId: function
    • submitRecoverChainId(encodedVM: BytesLike, overrides?: CallOverrides): Promise<void>
    • Updates the chainId and evmChainId on a forked chain via Governance VAA/VM

      Parameters

      • encodedVM: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • tokenImplementation: function
    • tokenImplementation(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • transferNFT: function
    • transferNFT(token: string, tokenID: BigNumberish, recipientChain: BigNumberish, recipient: BytesLike, nonce: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • token: string
      • tokenID: BigNumberish
      • recipientChain: BigNumberish
      • recipient: BytesLike
      • nonce: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • upgrade: function
    • upgrade(encodedVM: BytesLike, overrides?: CallOverrides): Promise<void>
    • Parameters

      • encodedVM: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • wormhole: function
    • wormhole(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • wrappedAsset: function
    • wrappedAsset(tokenChainId: BigNumberish, tokenAddress: BytesLike, overrides?: CallOverrides): Promise<string>
    • Parameters

      • tokenChainId: BigNumberish
      • tokenAddress: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<string>

Readonly deployTransaction

deployTransaction: TransactionResponse

estimateGas

estimateGas: { bridgeContracts: any; chainId: any; completeTransfer: any; encodeTransfer: any; evmChainId: any; finality: any; governanceActionIsConsumed: any; governanceChainId: any; governanceContract: any; implementation: any; initialize: any; isFork: any; isInitialized: any; isTransferCompleted: any; isWrappedAsset: any; onERC721Received: any; parseRecoverChainId: any; parseRegisterChain: any; parseTransfer: any; parseUpgrade: any; registerChain: any; splCache: any; submitRecoverChainId: any; tokenImplementation: any; transferNFT: any; upgrade: any; wormhole: any; wrappedAsset: any }

Type declaration

  • bridgeContracts: function
    • bridgeContracts(chainId_: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • chainId_: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • chainId: function
    • chainId(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • completeTransfer: function
    • completeTransfer(encodedVm: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • encodedVm: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • encodeTransfer: function
    • encodeTransfer(transfer: { name: BytesLike; symbol: BytesLike; to: BytesLike; toChain: BigNumberish; tokenAddress: BytesLike; tokenChain: BigNumberish; tokenID: BigNumberish; uri: string }, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • transfer: { name: BytesLike; symbol: BytesLike; to: BytesLike; toChain: BigNumberish; tokenAddress: BytesLike; tokenChain: BigNumberish; tokenID: BigNumberish; uri: string }
        • name: BytesLike
        • symbol: BytesLike
        • to: BytesLike
        • toChain: BigNumberish
        • tokenAddress: BytesLike
        • tokenChain: BigNumberish
        • tokenID: BigNumberish
        • uri: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • evmChainId: function
    • evmChainId(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • finality: function
    • finality(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • governanceActionIsConsumed: function
    • governanceActionIsConsumed(hash: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • hash: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • governanceChainId: function
    • governanceChainId(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • governanceContract: function
    • governanceContract(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • implementation: function
    • implementation(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • initialize: function
    • initialize(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • isFork: function
    • isFork(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • isInitialized: function
    • isInitialized(impl: string, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • impl: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • isTransferCompleted: function
    • isTransferCompleted(hash: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • hash: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • isWrappedAsset: function
    • isWrappedAsset(token: string, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • token: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • onERC721Received: function
    • onERC721Received(operator: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • operator: string
      • arg1: string
      • arg2: BigNumberish
      • arg3: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • parseRecoverChainId: function
    • parseRecoverChainId(encodedRecoverChainId: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
    • Parse a recoverChainId (action 3) with minimal validation

      Parameters

      • encodedRecoverChainId: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • parseRegisterChain: function
    • parseRegisterChain(encoded: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • parseTransfer: function
    • parseTransfer(encoded: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • parseUpgrade: function
    • parseUpgrade(encoded: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • registerChain: function
    • registerChain(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • encodedVM: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • splCache: function
    • splCache(tokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • submitRecoverChainId: function
    • submitRecoverChainId(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Updates the chainId and evmChainId on a forked chain via Governance VAA/VM

      Parameters

      • encodedVM: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • tokenImplementation: function
    • tokenImplementation(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • transferNFT: function
    • transferNFT(token: string, tokenID: BigNumberish, recipientChain: BigNumberish, recipient: BytesLike, nonce: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • token: string
      • tokenID: BigNumberish
      • recipientChain: BigNumberish
      • recipient: BytesLike
      • nonce: BigNumberish
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • upgrade: function
    • upgrade(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • encodedVM: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • wormhole: function
    • wormhole(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • wrappedAsset: function
    • wrappedAsset(tokenChainId: BigNumberish, tokenAddress: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • tokenChainId: BigNumberish
      • tokenAddress: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

filters

filters: { AdminChanged: any; BeaconUpgraded: any; ContractUpgraded: any; Upgraded: any }

Type declaration

  • AdminChanged: function
    • AdminChanged(previousAdmin?: null, newAdmin?: null): TypedEventFilter<[string, string], { newAdmin: string; previousAdmin: string }>
    • Parameters

      • Optional previousAdmin: null
      • Optional newAdmin: null

      Returns TypedEventFilter<[string, string], { newAdmin: string; previousAdmin: string }>

  • BeaconUpgraded: function
    • BeaconUpgraded(beacon?: null | string): TypedEventFilter<[string], { beacon: string }>
    • Parameters

      • Optional beacon: null | string

      Returns TypedEventFilter<[string], { beacon: string }>

  • ContractUpgraded: function
    • ContractUpgraded(oldContract?: null | string, newContract?: null | string): TypedEventFilter<[string, string], { newContract: string; oldContract: string }>
    • Parameters

      • Optional oldContract: null | string
      • Optional newContract: null | string

      Returns TypedEventFilter<[string, string], { newContract: string; oldContract: string }>

  • Upgraded: function
    • Upgraded(implementation?: null | string): TypedEventFilter<[string], { implementation: string }>
    • Parameters

      • Optional implementation: null | string

      Returns TypedEventFilter<[string], { implementation: string }>

functions

functions: { bridgeContracts: any; chainId: any; completeTransfer: any; encodeTransfer: any; evmChainId: any; finality: any; governanceActionIsConsumed: any; governanceChainId: any; governanceContract: any; implementation: any; initialize: any; isFork: any; isInitialized: any; isTransferCompleted: any; isWrappedAsset: any; onERC721Received: any; parseRecoverChainId: any; parseRegisterChain: any; parseTransfer: any; parseUpgrade: any; registerChain: any; splCache: any; submitRecoverChainId: any; tokenImplementation: any; transferNFT: any; upgrade: any; wormhole: any; wrappedAsset: any }

Type declaration

  • bridgeContracts: function
    • bridgeContracts(chainId_: BigNumberish, overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • chainId_: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • chainId: function
    • chainId(overrides?: CallOverrides): Promise<[number]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[number]>

  • completeTransfer: function
    • completeTransfer(encodedVm: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • encodedVm: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • encodeTransfer: function
    • encodeTransfer(transfer: { name: BytesLike; symbol: BytesLike; to: BytesLike; toChain: BigNumberish; tokenAddress: BytesLike; tokenChain: BigNumberish; tokenID: BigNumberish; uri: string }, overrides?: CallOverrides): Promise<[string] & { encoded: string }>
    • Parameters

      • transfer: { name: BytesLike; symbol: BytesLike; to: BytesLike; toChain: BigNumberish; tokenAddress: BytesLike; tokenChain: BigNumberish; tokenID: BigNumberish; uri: string }
        • name: BytesLike
        • symbol: BytesLike
        • to: BytesLike
        • toChain: BigNumberish
        • tokenAddress: BytesLike
        • tokenChain: BigNumberish
        • tokenID: BigNumberish
        • uri: string
      • Optional overrides: CallOverrides

      Returns Promise<[string] & { encoded: string }>

  • evmChainId: function
    • evmChainId(overrides?: CallOverrides): Promise<[BigNumber]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber]>

  • finality: function
    • finality(overrides?: CallOverrides): Promise<[number]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[number]>

  • governanceActionIsConsumed: function
    • governanceActionIsConsumed(hash: BytesLike, overrides?: CallOverrides): Promise<[boolean]>
    • Parameters

      • hash: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[boolean]>

  • governanceChainId: function
    • governanceChainId(overrides?: CallOverrides): Promise<[number]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[number]>

  • governanceContract: function
    • governanceContract(overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • implementation: function
    • implementation(overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • initialize: function
    • initialize(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • isFork: function
    • isFork(overrides?: CallOverrides): Promise<[boolean]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[boolean]>

  • isInitialized: function
    • isInitialized(impl: string, overrides?: CallOverrides): Promise<[boolean]>
    • Parameters

      • impl: string
      • Optional overrides: CallOverrides

      Returns Promise<[boolean]>

  • isTransferCompleted: function
    • isTransferCompleted(hash: BytesLike, overrides?: CallOverrides): Promise<[boolean]>
    • Parameters

      • hash: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[boolean]>

  • isWrappedAsset: function
    • isWrappedAsset(token: string, overrides?: CallOverrides): Promise<[boolean]>
    • Parameters

      • token: string
      • Optional overrides: CallOverrides

      Returns Promise<[boolean]>

  • onERC721Received: function
    • onERC721Received(operator: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • operator: string
      • arg1: string
      • arg2: BigNumberish
      • arg3: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • parseRecoverChainId: function
    • parseRecoverChainId(encodedRecoverChainId: BytesLike, overrides?: CallOverrides): Promise<[[string, number, BigNumber, number] & { action: number; evmChainId: BigNumber; module: string; newChainId: number }] & { rci: [string, number, BigNumber, number] & { action: number; evmChainId: BigNumber; module: string; newChainId: number } }>
    • Parse a recoverChainId (action 3) with minimal validation

      Parameters

      • encodedRecoverChainId: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[[string, number, BigNumber, number] & { action: number; evmChainId: BigNumber; module: string; newChainId: number }] & { rci: [string, number, BigNumber, number] & { action: number; evmChainId: BigNumber; module: string; newChainId: number } }>

  • parseRegisterChain: function
    • parseRegisterChain(encoded: BytesLike, overrides?: CallOverrides): Promise<[[string, number, number, number, string] & { action: number; chainId: number; emitterAddress: string; emitterChainID: number; module: string }] & { chain: [string, number, number, number, string] & { action: number; chainId: number; emitterAddress: string; emitterChainID: number; module: string } }>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[[string, number, number, number, string] & { action: number; chainId: number; emitterAddress: string; emitterChainID: number; module: string }] & { chain: [string, number, number, number, string] & { action: number; chainId: number; emitterAddress: string; emitterChainID: number; module: string } }>

  • parseTransfer: function
    • parseTransfer(encoded: BytesLike, overrides?: CallOverrides): Promise<[[string, number, string, string, BigNumber, string, string, number] & { name: string; symbol: string; to: string; toChain: number; tokenAddress: string; tokenChain: number; tokenID: BigNumber; uri: string }] & { transfer: [string, number, string, string, BigNumber, string, string, number] & { name: string; symbol: string; to: string; toChain: number; tokenAddress: string; tokenChain: number; tokenID: BigNumber; uri: string } }>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[[string, number, string, string, BigNumber, string, string, number] & { name: string; symbol: string; to: string; toChain: number; tokenAddress: string; tokenChain: number; tokenID: BigNumber; uri: string }] & { transfer: [string, number, string, string, BigNumber, string, string, number] & { name: string; symbol: string; to: string; toChain: number; tokenAddress: string; tokenChain: number; tokenID: BigNumber; uri: string } }>

  • parseUpgrade: function
    • parseUpgrade(encoded: BytesLike, overrides?: CallOverrides): Promise<[[string, number, number, string] & { action: number; chainId: number; module: string; newContract: string }] & { chain: [string, number, number, string] & { action: number; chainId: number; module: string; newContract: string } }>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[[string, number, number, string] & { action: number; chainId: number; module: string; newContract: string }] & { chain: [string, number, number, string] & { action: number; chainId: number; module: string; newContract: string } }>

  • registerChain: function
    • registerChain(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • encodedVM: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • splCache: function
    • splCache(tokenId: BigNumberish, overrides?: CallOverrides): Promise<[[string, string] & { name: string; symbol: string }]>
    • Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[[string, string] & { name: string; symbol: string }]>

  • submitRecoverChainId: function
    • submitRecoverChainId(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Updates the chainId and evmChainId on a forked chain via Governance VAA/VM

      Parameters

      • encodedVM: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • tokenImplementation: function
    • tokenImplementation(overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • transferNFT: function
    • transferNFT(token: string, tokenID: BigNumberish, recipientChain: BigNumberish, recipient: BytesLike, nonce: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • token: string
      • tokenID: BigNumberish
      • recipientChain: BigNumberish
      • recipient: BytesLike
      • nonce: BigNumberish
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • upgrade: function
    • upgrade(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • encodedVM: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • wormhole: function
    • wormhole(overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • wrappedAsset: function
    • wrappedAsset(tokenChainId: BigNumberish, tokenAddress: BytesLike, overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • tokenChainId: BigNumberish
      • tokenAddress: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[string]>

interface

interface: NFTBridgeImplementationInterface

populateTransaction

populateTransaction: { bridgeContracts: any; chainId: any; completeTransfer: any; encodeTransfer: any; evmChainId: any; finality: any; governanceActionIsConsumed: any; governanceChainId: any; governanceContract: any; implementation: any; initialize: any; isFork: any; isInitialized: any; isTransferCompleted: any; isWrappedAsset: any; onERC721Received: any; parseRecoverChainId: any; parseRegisterChain: any; parseTransfer: any; parseUpgrade: any; registerChain: any; splCache: any; submitRecoverChainId: any; tokenImplementation: any; transferNFT: any; upgrade: any; wormhole: any; wrappedAsset: any }

Type declaration

  • bridgeContracts: function
    • bridgeContracts(chainId_: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • chainId_: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • chainId: function
    • chainId(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • completeTransfer: function
    • completeTransfer(encodedVm: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • encodedVm: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • encodeTransfer: function
    • encodeTransfer(transfer: { name: BytesLike; symbol: BytesLike; to: BytesLike; toChain: BigNumberish; tokenAddress: BytesLike; tokenChain: BigNumberish; tokenID: BigNumberish; uri: string }, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • transfer: { name: BytesLike; symbol: BytesLike; to: BytesLike; toChain: BigNumberish; tokenAddress: BytesLike; tokenChain: BigNumberish; tokenID: BigNumberish; uri: string }
        • name: BytesLike
        • symbol: BytesLike
        • to: BytesLike
        • toChain: BigNumberish
        • tokenAddress: BytesLike
        • tokenChain: BigNumberish
        • tokenID: BigNumberish
        • uri: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • evmChainId: function
    • evmChainId(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • finality: function
    • finality(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • governanceActionIsConsumed: function
    • governanceActionIsConsumed(hash: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • hash: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • governanceChainId: function
    • governanceChainId(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • governanceContract: function
    • governanceContract(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • implementation: function
    • implementation(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • initialize: function
    • initialize(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • isFork: function
    • isFork(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • isInitialized: function
    • isInitialized(impl: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • impl: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • isTransferCompleted: function
    • isTransferCompleted(hash: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • hash: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • isWrappedAsset: function
    • isWrappedAsset(token: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • token: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • onERC721Received: function
    • onERC721Received(operator: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • operator: string
      • arg1: string
      • arg2: BigNumberish
      • arg3: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • parseRecoverChainId: function
    • parseRecoverChainId(encodedRecoverChainId: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parse a recoverChainId (action 3) with minimal validation

      Parameters

      • encodedRecoverChainId: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • parseRegisterChain: function
    • parseRegisterChain(encoded: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • parseTransfer: function
    • parseTransfer(encoded: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • parseUpgrade: function
    • parseUpgrade(encoded: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • encoded: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • registerChain: function
    • registerChain(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • encodedVM: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • splCache: function
    • splCache(tokenId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • submitRecoverChainId: function
    • submitRecoverChainId(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Updates the chainId and evmChainId on a forked chain via Governance VAA/VM

      Parameters

      • encodedVM: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • tokenImplementation: function
    • tokenImplementation(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • transferNFT: function
    • transferNFT(token: string, tokenID: BigNumberish, recipientChain: BigNumberish, recipient: BytesLike, nonce: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • token: string
      • tokenID: BigNumberish
      • recipientChain: BigNumberish
      • recipient: BytesLike
      • nonce: BigNumberish
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • upgrade: function
    • upgrade(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • encodedVM: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • wormhole: function
    • wormhole(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • wrappedAsset: function
    • wrappedAsset(tokenChainId: BigNumberish, tokenAddress: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • tokenChainId: BigNumberish
      • tokenAddress: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

Readonly provider

provider: Provider

Readonly resolvedAddress

resolvedAddress: Promise<string>

Readonly signer

signer: Signer

Methods

_checkRunningEvents

  • _checkRunningEvents(runningEvent: RunningEvent): void
  • Parameters

    • runningEvent: RunningEvent

    Returns void

_deployed

  • _deployed(blockTag?: BlockTag): Promise<Contract>
  • Parameters

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

_wrapEvent

  • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
  • Parameters

    • runningEvent: RunningEvent
    • log: Log
    • listener: Listener

    Returns Event

attach

  • Parameters

    • addressOrName: string

    Returns NFTBridgeImplementation

bridgeContracts

  • bridgeContracts(chainId_: BigNumberish, overrides?: CallOverrides): Promise<string>
  • Parameters

    • chainId_: BigNumberish
    • Optional overrides: CallOverrides

    Returns Promise<string>

chainId

  • chainId(overrides?: CallOverrides): Promise<number>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<number>

completeTransfer

  • completeTransfer(encodedVm: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • encodedVm: BytesLike
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

connect

  • Parameters

    • signerOrProvider: string | Signer | Provider

    Returns NFTBridgeImplementation

deployed

  • Returns Promise<NFTBridgeImplementation>

emit

  • emit(eventName: string | EventFilter, ...args: any[]): boolean
  • Parameters

    • eventName: string | EventFilter
    • Rest ...args: any[]

    Returns boolean

encodeTransfer

  • encodeTransfer(transfer: { name: BytesLike; symbol: BytesLike; to: BytesLike; toChain: BigNumberish; tokenAddress: BytesLike; tokenChain: BigNumberish; tokenID: BigNumberish; uri: string }, overrides?: CallOverrides): Promise<string>
  • Parameters

    • transfer: { name: BytesLike; symbol: BytesLike; to: BytesLike; toChain: BigNumberish; tokenAddress: BytesLike; tokenChain: BigNumberish; tokenID: BigNumberish; uri: string }
      • name: BytesLike
      • symbol: BytesLike
      • to: BytesLike
      • toChain: BigNumberish
      • tokenAddress: BytesLike
      • tokenChain: BigNumberish
      • tokenID: BigNumberish
      • uri: string
    • Optional overrides: CallOverrides

    Returns Promise<string>

evmChainId

  • evmChainId(overrides?: CallOverrides): Promise<BigNumber>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<BigNumber>

fallback

  • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
  • Parameters

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

finality

  • finality(overrides?: CallOverrides): Promise<number>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<number>

governanceActionIsConsumed

  • governanceActionIsConsumed(hash: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • Parameters

    • hash: BytesLike
    • Optional overrides: CallOverrides

    Returns Promise<boolean>

governanceChainId

  • governanceChainId(overrides?: CallOverrides): Promise<number>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<number>

governanceContract

  • governanceContract(overrides?: CallOverrides): Promise<string>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

implementation

  • implementation(overrides?: CallOverrides): Promise<string>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

initialize

  • initialize(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

isFork

  • isFork(overrides?: CallOverrides): Promise<boolean>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<boolean>

isInitialized

  • isInitialized(impl: string, overrides?: CallOverrides): Promise<boolean>
  • Parameters

    • impl: string
    • Optional overrides: CallOverrides

    Returns Promise<boolean>

isTransferCompleted

  • isTransferCompleted(hash: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • Parameters

    • hash: BytesLike
    • Optional overrides: CallOverrides

    Returns Promise<boolean>

isWrappedAsset

  • isWrappedAsset(token: string, overrides?: CallOverrides): Promise<boolean>
  • Parameters

    • token: string
    • Optional overrides: CallOverrides

    Returns Promise<boolean>

listenerCount

  • listenerCount(eventName?: string | EventFilter): number
  • Parameters

    • Optional eventName: string | EventFilter

    Returns number

listeners

  • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
  • listeners(eventName?: string): Listener[]
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • Optional eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns TypedListener<EventArgsArray, EventArgsObject>[]

  • Parameters

    • Optional eventName: string

    Returns Listener[]

off

  • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): NFTBridgeImplementation
  • off(eventName: string, listener: Listener): NFTBridgeImplementation
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns NFTBridgeImplementation

  • Parameters

    • eventName: string
    • listener: Listener

    Returns NFTBridgeImplementation

on

  • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): NFTBridgeImplementation
  • on(eventName: string, listener: Listener): NFTBridgeImplementation
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns NFTBridgeImplementation

  • Parameters

    • eventName: string
    • listener: Listener

    Returns NFTBridgeImplementation

onERC721Received

  • onERC721Received(operator: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides): Promise<string>
  • Parameters

    • operator: string
    • arg1: string
    • arg2: BigNumberish
    • arg3: BytesLike
    • Optional overrides: CallOverrides

    Returns Promise<string>

once

  • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): NFTBridgeImplementation
  • once(eventName: string, listener: Listener): NFTBridgeImplementation
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns NFTBridgeImplementation

  • Parameters

    • eventName: string
    • listener: Listener

    Returns NFTBridgeImplementation

parseRecoverChainId

  • parseRecoverChainId(encodedRecoverChainId: BytesLike, overrides?: CallOverrides): Promise<[string, number, BigNumber, number] & { action: number; evmChainId: BigNumber; module: string; newChainId: number }>
  • Parse a recoverChainId (action 3) with minimal validation

    Parameters

    • encodedRecoverChainId: BytesLike
    • Optional overrides: CallOverrides

    Returns Promise<[string, number, BigNumber, number] & { action: number; evmChainId: BigNumber; module: string; newChainId: number }>

parseRegisterChain

  • parseRegisterChain(encoded: BytesLike, overrides?: CallOverrides): Promise<[string, number, number, number, string] & { action: number; chainId: number; emitterAddress: string; emitterChainID: number; module: string }>
  • Parameters

    • encoded: BytesLike
    • Optional overrides: CallOverrides

    Returns Promise<[string, number, number, number, string] & { action: number; chainId: number; emitterAddress: string; emitterChainID: number; module: string }>

parseTransfer

  • parseTransfer(encoded: BytesLike, overrides?: CallOverrides): Promise<[string, number, string, string, BigNumber, string, string, number] & { name: string; symbol: string; to: string; toChain: number; tokenAddress: string; tokenChain: number; tokenID: BigNumber; uri: string }>
  • Parameters

    • encoded: BytesLike
    • Optional overrides: CallOverrides

    Returns Promise<[string, number, string, string, BigNumber, string, string, number] & { name: string; symbol: string; to: string; toChain: number; tokenAddress: string; tokenChain: number; tokenID: BigNumber; uri: string }>

parseUpgrade

  • parseUpgrade(encoded: BytesLike, overrides?: CallOverrides): Promise<[string, number, number, string] & { action: number; chainId: number; module: string; newContract: string }>
  • Parameters

    • encoded: BytesLike
    • Optional overrides: CallOverrides

    Returns Promise<[string, number, number, string] & { action: number; chainId: number; module: string; newContract: string }>

queryFilter

  • queryFilter<EventArgsArray, EventArgsObject>(event: TypedEventFilter<EventArgsArray, EventArgsObject>, fromBlockOrBlockhash?: string | number, toBlock?: string | number): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • event: TypedEventFilter<EventArgsArray, EventArgsObject>
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

registerChain

  • registerChain(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • encodedVM: BytesLike
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

removeAllListeners

  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns NFTBridgeImplementation

  • Parameters

    • Optional eventName: string

    Returns NFTBridgeImplementation

removeListener

  • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): NFTBridgeImplementation
  • removeListener(eventName: string, listener: Listener): NFTBridgeImplementation
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns NFTBridgeImplementation

  • Parameters

    • eventName: string
    • listener: Listener

    Returns NFTBridgeImplementation

splCache

  • splCache(tokenId: BigNumberish, overrides?: CallOverrides): Promise<[string, string] & { name: string; symbol: string }>
  • Parameters

    • tokenId: BigNumberish
    • Optional overrides: CallOverrides

    Returns Promise<[string, string] & { name: string; symbol: string }>

submitRecoverChainId

  • submitRecoverChainId(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Updates the chainId and evmChainId on a forked chain via Governance VAA/VM

    Parameters

    • encodedVM: BytesLike
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

tokenImplementation

  • tokenImplementation(overrides?: CallOverrides): Promise<string>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

transferNFT

  • transferNFT(token: string, tokenID: BigNumberish, recipientChain: BigNumberish, recipient: BytesLike, nonce: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • token: string
    • tokenID: BigNumberish
    • recipientChain: BigNumberish
    • recipient: BytesLike
    • nonce: BigNumberish
    • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

upgrade

  • upgrade(encodedVM: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • encodedVM: BytesLike
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

wormhole

  • wormhole(overrides?: CallOverrides): Promise<string>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

wrappedAsset

  • wrappedAsset(tokenChainId: BigNumberish, tokenAddress: BytesLike, overrides?: CallOverrides): Promise<string>
  • Parameters

    • tokenChainId: BigNumberish
    • tokenAddress: BytesLike
    • Optional overrides: CallOverrides

    Returns Promise<string>

Static getContractAddress

  • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
  • Parameters

    • transaction: { from: string; nonce: BigNumberish }
      • from: string
      • nonce: BigNumberish

    Returns string

Static getInterface

  • getInterface(contractInterface: ContractInterface): Interface
  • Parameters

    • contractInterface: ContractInterface

    Returns Interface

Static isIndexed

  • isIndexed(value: any): value is Indexed
  • Parameters

    • value: any

    Returns value is Indexed

Generated using TypeDoc