Class VaultsSDK

Hierarchy

  • VaultsSDK

Constructors

Properties

collaterals: Collateral[] = []
collateralsSDK: CollateralsSDK
config: VaultsConfig
fxTokens: FxToken[] = []
fxTokensSDK: FxTokensSDK
graph: GraphSDK
initialised: boolean = false
protocolParameters: ProtocolParameters
protocolSDK: ProtocolSDK

Methods

  • Parameters

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

    Returns Promise<ContractTransaction>

  • Parameters

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

    Returns Promise<ContractTransaction>

  • Parameters

    • account: string
    • fxTokenAddress: string
    • vault: VaultMulticall
    • collateralMap: CollateralSymbolMap<BigNumber>

    Returns Vault

  • Parameters

    • account: string
    • fxTokenAddress: string
    • signerOrProvider: Signer | Provider

    Returns Promisified<CollateralSymbolMap<BigNumber>>

  • Parameters

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

    Returns Promise<ContractTransaction>

  • Parameters

    • account: string
    • fxTokenAddress: string
    • signerOrProvider: Signer | Provider

    Returns Promisified<VaultMulticall>

  • Parameters

    • account: string
    • provider: Provider = sdkConfig.providers.arbitrum
    • shouldAutoInitialise: boolean = true

    Returns Promise<Vault[]>

  • Parameters

    • provider: Provider = sdkConfig.providers.arbitrum

    Returns Promise<void>

  • Parameters

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

    Returns Promise<ContractTransaction>

  • Parameters

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

    Returns Promise<ContractTransaction>

  • Parameters

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

    Returns Promise<ContractTransaction>

  • Parameters

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

    Returns Promise<ContractTransaction>

Generated using TypeDoc