Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StakingContract

Hierarchy

Implements

Index

Constructors

Properties

_erc20: ERC20
_ownable: Ownable
_pausable: Pausable
abi: AbiItem[]
collectiblesAddress?: string
contractAddress?: string
stakeTokenAddress?: 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<any>>
  • availableTokens(): Promise<string>
  • connect(): Promise<boolean>
  • createProduct(_startDate: number, _endDate: number, _totalMaxAmount: string | number, _individualMinimumAmount: string | number, _individualMaximumAmount: string | number, _APR: number, _lockedUntilFinalization: boolean): Promise<TransactionReceipt<any>>
  • Parameters

    • _startDate: number
    • _endDate: number
    • _totalMaxAmount: string | number
    • _individualMinimumAmount: string | number
    • _individualMaximumAmount: string | number
    • _APR: number
    • _lockedUntilFinalization: boolean

    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(stakeTokenAddress: string, collectiblesAddress?: string): Promise<TransactionReceipt<any>>
  • depositAPRTokens(amount: string | number): Promise<TransactionReceipt<any>>
  • erc20Address(): Promise<string>
  • futureLockedTokens(): Promise<string>
  • getAPRAmount(_APR: number, _startDate: number, _endDate: number, _amount: string | number): Promise<string>
  • getMySubscriptions(_address: string): Promise<string[]>
  • getProductIds(): Promise<number[]>
  • getTokenAmount(address: string): Promise<string>
  • getTotalProductsAPRAmount(): Promise<string>
  • heldTokens(): Promise<string>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • 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>
  • subscribeProduct(_product_id: number, _amount: string | number): Promise<TransactionReceipt<any>>
  • withdrawSubscription(_product_id: number, _subscription_id: number): Promise<TransactionReceipt<any>>

Generated using TypeDoc