Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

_asset: null | ERC20 = null
_contract: Web3Contract<ERC4626Methods, any>
_decimals: number = -1
abi: AbiItem[]
contractAddress?: string

Accessors

  • get account(): Account
  • Returns the Account associated with this connection

    Returns Account

  • get asset(): null | ERC20
  • get web3(): default
  • Returns the Web3 class assigned to this connection

    Returns default

Methods

  • allowance(owner: string, spender: string): Promise<string>
  • approve(spender: string, amount: number): Promise<TransactionReceipt<any>>
  • assetAddress(): Promise<string>
  • balanceOf(account: string): Promise<string>
  • connect(): Promise<boolean>
  • convertToAssets(shares: number): Promise<string>
  • convertToShares(assets: number): Promise<string>
  • decimals(): Promise<number>
  • decreaseAllowance(spender: string, subtractedValue: number): Promise<TransactionReceipt<any>>
  • Parameters

    • spender: string
    • subtractedValue: number

    Returns Promise<TransactionReceipt<any>>

  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt<any>>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt<any>>

  • deployJsonAbi(erc20Address: string, name: string, symbol: string): Promise<TransactionReceipt<any>>
  • deposit(assets: number, receiver: string): Promise<TransactionReceipt<any>>
  • increaseAllowance(spender: string, addedValue: number): Promise<TransactionReceipt<any>>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • maxDeposit(arg1: string): Promise<number>
  • maxMint(arg1: string): Promise<number>
  • maxRedeem(owner: string): Promise<string>
  • maxWithdraw(owner: string): Promise<string>
  • mint(shares: number, receiver: string): Promise<TransactionReceipt<any>>
  • name(): Promise<string>
  • previewDeposit(assets: number): Promise<string>
  • previewMint(shares: number): Promise<string>
  • previewRedeem(shares: number): Promise<string>
  • previewWithdraw(assets: number): Promise<string>
  • redeem(shares: number, receiver: string, owner: string): Promise<TransactionReceipt<any>>
  • Parameters

    • shares: number
    • receiver: string
    • owner: string

    Returns Promise<TransactionReceipt<any>>

  • sendTx(method: ContractSendMethod, value?: any): Promise<TransactionReceipt<any>>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any

    Returns Promise<TransactionReceipt<any>>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, __namedParameters?: Partial<Web3ConnectionOptions>): Promise<TransactionReceipt<any>>
  • start(): Promise<void>
  • symbol(): Promise<string>
  • totalAssets(): Promise<string>
  • totalSupply(): Promise<string>
  • transfer(recipient: string, amount: number): Promise<TransactionReceipt<any>>
  • transferFrom(sender: string, recipient: string, amount: number): Promise<TransactionReceipt<any>>
  • Parameters

    • sender: string
    • recipient: string
    • amount: number

    Returns Promise<TransactionReceipt<any>>

  • withdraw(assets: number, receiver: string, owner: string): Promise<TransactionReceipt<any>>
  • Parameters

    • assets: number
    • receiver: string
    • owner: string

    Returns Promise<TransactionReceipt<any>>

Generated using TypeDoc