Hierarchy

  • EVMBridge

Constructors

Properties

network: BridgeEvmNetworks
sdk: GlitterBridgeSDK

Methods

  • Approve tokens for the bridge in to contract

    Parameters

    • tokenSymbol: string
    • amount: number
    • signer: Signer

    Returns Promise<undefined | ContractTransaction>

  • Bridging a token from supported EVM network to other supported network

    Parameters

    • toNetwork: BridgeNetworks
    • tokenSymbol: string
    • amount: number
    • toWalletAddress: string | PublicKey
    • signer: Signer

    Returns Promise<undefined | ContractTransaction>

  • Getting Bridge Allowance for a particular token

    Parameters

    • tokenSymbol: string
    • signer: Signer

    Returns Promise<undefined | BigNumber>

  • Parameters

    • amount: number | BigNumber
    • decimals: number

    Returns Promise<string | number>

  • Getting token balances by wallet address

    Returns

    Promise<Array<{token: string, balance: number}>>

    Parameters

    • signerAddress: string

    Returns Promise<any[]>

  • Parameters

    • tokenSymbol: string

    Returns Promise<undefined | BridgeTokenConfig | {
        address?: string;
        asset_id?: number;
        chain?: string;
        decimals?: number;
        isNative?: boolean;
        min_transfer?: number;
        name?: string;
        supportedDestination: BridgeNetworks[];
        symbol?: string;
        vault_address?: string;
        vault_id?: number;
        vault_type?: string;
    }>

  • Parameters

    • amount: string | number
    • decimals: number

    Returns BigNumber

Generated using TypeDoc