Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Erc20TokenLock

Hierarchy

Implements

Index

Constructors

Properties

_erc20: ERC20
_ownable: Ownable
_pausable: Pausable
abi: AbiItem[]
contractAddress?: string

Accessors

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

    Returns Account

  • get web3(): default
  • Returns the Web3 class assigned to this connection

    Returns default

Methods

  • approveERC20Transfer(): Promise<TransactionReceipt>
  • callTx<ReturnData>(method: ContractCallMethod<ReturnData>, value?: any): Promise<ReturnData>
  • canRelease(address: string): Promise<boolean>
  • connect(): Promise<boolean>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt>

  • deployJsonAbi(erc20ContractAddress: string): Promise<TransactionReceipt>
  • getERC20TokenAddress(): Promise<string>
  • getLockedTokens(address: string): Promise<number>
  • getMaxLock(): Promise<number>
  • getMinLock(): Promise<number>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • lock(amount: number, endDate: number): Promise<TransactionReceipt>
  • release(): Promise<TransactionReceipt>
  • sendTx(method: ContractSendMethod, value?: any, debug?: undefined | boolean): Promise<TransactionReceipt>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • debug: undefined | boolean = ...

    Returns Promise<TransactionReceipt>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, debug?: boolean): Promise<TransactionReceipt>
  • Send unsigned transaction

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • Optional debug: boolean

    Returns Promise<TransactionReceipt>

  • setMaxAmountToLock(amount: number): Promise<TransactionReceipt>
  • setMinAmountToLock(amount: number): Promise<TransactionReceipt>
  • start(): Promise<void>
  • totalAmountStaked(): Promise<number>

Generated using TypeDoc