Namespace IStakeManager

Index

Type aliases

DepositInfoStruct

DepositInfoStruct: { deposit: PromiseOrValue<BigNumberish>; stake: PromiseOrValue<BigNumberish>; staked: PromiseOrValue<boolean>; unstakeDelaySec: PromiseOrValue<BigNumberish>; withdrawTime: PromiseOrValue<BigNumberish> }

Type declaration

DepositInfoStructOutput

DepositInfoStructOutput: [] & { deposit: BigNumber; stake: BigNumber; staked: boolean; unstakeDelaySec: number; withdrawTime: number }

Constructors

constructor

  • new IStakeManager(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): IStakeManager
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns IStakeManager

Variables

_deployedPromise

_deployedPromise: Promise<Contract>

_runningEvents

_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent

_wrappedEmits

_wrappedEmits: {}

Type declaration

  • [eventTag: string]: (...args: Array<any>) => void
      • (...args: Array<any>): void
      • Parameters

        • Rest ...args: Array<any>

        Returns void

Readonly address

address: string

callStatic

callStatic: { addStake: any; balanceOf: any; depositTo: any; getDepositInfo: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

  • addStake: function
    • addStake(_unstakeDelaySec: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _unstakeDelaySec: PromiseOrValue<BigNumberish>
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • balanceOf: function
    • balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • depositTo: function
    • depositTo(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>
    • Parameters

      Returns Promise<void>

  • getDepositInfo: function
  • unlockStake: function
    • unlockStake(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • withdrawStake: function
    • withdrawStake(withdrawAddress: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>
    • Parameters

      • withdrawAddress: PromiseOrValue<string>
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • withdrawTo: function
    • withdrawTo(withdrawAddress: PromiseOrValue<string>, withdrawAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>
    • Parameters

      Returns Promise<void>

Readonly deployTransaction

deployTransaction: TransactionResponse

estimateGas

estimateGas: { addStake: any; balanceOf: any; depositTo: any; getDepositInfo: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

  • addStake: function
    • addStake(_unstakeDelaySec: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • balanceOf: function
    • balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • depositTo: function
    • Parameters

      Returns Promise<BigNumber>

  • getDepositInfo: function
    • getDepositInfo(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • unlockStake: function
    • unlockStake(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • withdrawStake: function
    • Parameters

      Returns Promise<BigNumber>

  • withdrawTo: function

filters

filters: { Deposited: any; Deposited(address,uint256): any; StakeLocked: any; StakeLocked(address,uint256,uint256): any; StakeUnlocked: any; StakeUnlocked(address,uint256): any; StakeWithdrawn: any; StakeWithdrawn(address,address,uint256): any; Withdrawn: any; Withdrawn(address,address,uint256): any }

Type declaration

functions

functions: { addStake: any; balanceOf: any; depositTo: any; getDepositInfo: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

  • addStake: function
    • addStake(_unstakeDelaySec: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • balanceOf: function
    • balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[]>
    • Parameters

      Returns Promise<[]>

  • depositTo: function
    • depositTo(account: PromiseOrValue<string>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • getDepositInfo: function
  • unlockStake: function
    • unlockStake(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • withdrawStake: function
    • withdrawStake(withdrawAddress: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • withdrawTo: function

interface

off

off: OnEvent<this>

on

on: OnEvent<this>

once

once: OnEvent<this>

populateTransaction

populateTransaction: { addStake: any; balanceOf: any; depositTo: any; getDepositInfo: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

  • addStake: function
    • addStake(_unstakeDelaySec: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • balanceOf: function
    • balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • depositTo: function
    • depositTo(account: PromiseOrValue<string>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • getDepositInfo: function
    • getDepositInfo(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • unlockStake: function
    • unlockStake(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • withdrawStake: function
    • withdrawStake(withdrawAddress: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • withdrawTo: function

Readonly provider

provider: Provider

removeListener

removeListener: OnEvent<this>

Readonly resolvedAddress

resolvedAddress: Promise<string>

Readonly signer

signer: Signer

Functions

_checkRunningEvents

  • _checkRunningEvents(runningEvent: RunningEvent): void

_deployed

  • _deployed(blockTag?: BlockTag): Promise<Contract>
  • Parameters

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

_wrapEvent

  • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
  • Parameters

    • runningEvent: RunningEvent
    • log: Log
    • listener: Listener

    Returns Event

addStake

  • addStake(_unstakeDelaySec: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

attach

  • attach(addressOrName: string): this
  • Parameters

    • addressOrName: string

    Returns this

balanceOf

  • balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
  • Parameters

    Returns Promise<BigNumber>

connect

  • connect(signerOrProvider: Signer | Provider | string): this
  • Parameters

    • signerOrProvider: Signer | Provider | string

    Returns this

deployed

  • deployed(): Promise<this>
  • Returns Promise<this>

depositTo

  • depositTo(account: PromiseOrValue<string>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

emit

  • emit(eventName: EventFilter | string, ...args: Array<any>): boolean
  • Parameters

    • eventName: EventFilter | string
    • Rest ...args: Array<any>

    Returns boolean

fallback

  • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
  • Parameters

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

getDepositInfo

listenerCount

  • listenerCount(eventName?: EventFilter | string): number
  • Parameters

    • Optional eventName: EventFilter | string

    Returns number

listeners

  • Type parameters

    Parameters

    Returns Array<TypedListener<TEvent>>

  • Parameters

    • Optional eventName: string

    Returns Array<Listener>

queryFilter

  • queryFilter<TEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>
  • Type parameters

    Parameters

    • event: TypedEventFilter<TEvent>
    • Optional fromBlockOrBlockhash: string | number | undefined
    • Optional toBlock: string | number | undefined

    Returns Promise<Array<TEvent>>

removeAllListeners

  • removeAllListeners<TEvent>(eventFilter: TypedEventFilter<TEvent>): this
  • removeAllListeners(eventName?: string): this
  • Type parameters

    Parameters

    Returns this

  • Parameters

    • Optional eventName: string

    Returns this

unlockStake

  • unlockStake(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

withdrawStake

  • withdrawStake(withdrawAddress: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

withdrawTo

Static getContractAddress

  • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
  • Parameters

    • transaction: { from: string; nonce: BigNumberish }
      • from: string
      • nonce: BigNumberish

    Returns string

Static getInterface

  • getInterface(contractInterface: ContractInterface): Interface
  • Parameters

    • contractInterface: ContractInterface

    Returns Interface

Static isIndexed

  • isIndexed(value: any): value is Indexed
  • Parameters

    • value: any

    Returns value is Indexed