Class BridgeSDK

Hierarchy

  • BridgeSDK

Constructors

Properties

config: BridgeConfig

Methods

  • Parameters

    • bridgeId: number

    Returns "ethereum" | "arbitrum" | "polygon"

  • Parameters

    • args: BridgeDepositArguments
    • signer: Signer
    • options: Overrides = {}

    Returns Promise<ContractTransaction>

  • Parameters

    • tokenSymbol: string
    • amount: BigNumber
    • withdrawNetwork: "ethereum" | "arbitrum" | "polygon"

    Returns Promise<boolean>

  • Parameters

    • network: "ethereum" | "arbitrum" | "polygon"
    • signerOrProvider: Signer | Provider

    Returns Bridge

  • Parameters

    • account: string
    • token: string
    • network: "ethereum" | "arbitrum" | "polygon"
    • signer: Signer

    Returns Promise<BigNumber>

  • Parameters

    • tokenSymbol: string
    • withdrawNetwork: "ethereum" | "arbitrum" | "polygon"

    Returns Promise<BigNumber>

  • Parameters

    • args: BridgeGetNonceArguments
    • signer: Signer

    Returns Promise<BigNumber>

  • Parameters

    • network: "ethereum" | "arbitrum" | "polygon"
    • txHash: string

    Returns Promise<any>

  • Parameters

    • network: "ethereum" | "arbitrum" | "polygon"
    • txHash: string

    Returns Promise<any>

  • Parameters

    • token: string
    • network: "ethereum" | "arbitrum" | "polygon"
    • amount: BigNumber
    • signer: Signer
    • options: Overrides = {}

    Returns Promise<ContractTransaction>

  • Parameters

    • args: BridgeWithdrawArguments
    • signer: Signer
    • options: Overrides = {}

    Returns Promise<ContractTransaction>

Generated using TypeDoc