Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IRewarder

Hierarchy

  • Contract
    • IRewarder

Index

Constructors

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

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

    Returns IRewarder

Properties

_deployedPromise: Promise<Contract>
_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent
_wrappedEmits: {}

Type declaration

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

        • Rest ...args: any[]

        Returns void

address: string
callStatic: { onAPWReward: any; onAPWReward(uint256,address,address,uint256): any; pendingTokens: any; pendingTokens(uint256,address): any; renewPool: any; renewPool(uint256,uint256): any }

Type declaration

  • onAPWReward:function
    • onAPWReward(pid: BigNumberish, user: string, recipient: string, apwAmount: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • pid: BigNumberish
      • user: string
      • recipient: string
      • apwAmount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • onAPWReward(uint256,address,address,uint256):function
    • onAPWReward(uint256,address,address,uint256)(pid: BigNumberish, user: string, recipient: string, apwAmount: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • pid: BigNumberish
      • user: string
      • recipient: string
      • apwAmount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • pendingTokens:function
    • pendingTokens(pid: BigNumberish, user: string, overrides?: CallOverrides): Promise<[string[], BigNumber[]]>
    • Parameters

      • pid: BigNumberish
      • user: string
      • Optional overrides: CallOverrides

      Returns Promise<[string[], BigNumber[]]>

  • pendingTokens(uint256,address):function
    • pendingTokens(uint256,address)(pid: BigNumberish, user: string, overrides?: CallOverrides): Promise<[string[], BigNumber[]]>
    • Parameters

      • pid: BigNumberish
      • user: string
      • Optional overrides: CallOverrides

      Returns Promise<[string[], BigNumber[]]>

  • renewPool:function
    • renewPool(_oldPid: BigNumberish, _newPid: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _oldPid: BigNumberish
      • _newPid: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • renewPool(uint256,uint256):function
    • renewPool(uint256,uint256)(_oldPid: BigNumberish, _newPid: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _oldPid: BigNumberish
      • _newPid: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

deployTransaction: TransactionResponse
estimateGas: { onAPWReward: any; onAPWReward(uint256,address,address,uint256): any; pendingTokens: any; pendingTokens(uint256,address): any; renewPool: any; renewPool(uint256,uint256): any }

Type declaration

  • onAPWReward:function
    • onAPWReward(pid: BigNumberish, user: string, recipient: string, apwAmount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • pid: BigNumberish
      • user: string
      • recipient: string
      • apwAmount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • onAPWReward(uint256,address,address,uint256):function
    • onAPWReward(uint256,address,address,uint256)(pid: BigNumberish, user: string, recipient: string, apwAmount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • pid: BigNumberish
      • user: string
      • recipient: string
      • apwAmount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • pendingTokens:function
    • pendingTokens(pid: BigNumberish, user: string, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • pid: BigNumberish
      • user: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • pendingTokens(uint256,address):function
    • pendingTokens(uint256,address)(pid: BigNumberish, user: string, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • pid: BigNumberish
      • user: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • renewPool:function
    • renewPool(_oldPid: BigNumberish, _newPid: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _oldPid: BigNumberish
      • _newPid: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • renewPool(uint256,uint256):function
    • renewPool(uint256,uint256)(_oldPid: BigNumberish, _newPid: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _oldPid: BigNumberish
      • _newPid: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

filters: {}

Type declaration

    functions: { onAPWReward: any; onAPWReward(uint256,address,address,uint256): any; pendingTokens: any; pendingTokens(uint256,address): any; renewPool: any; renewPool(uint256,uint256): any }

    Type declaration

    • onAPWReward:function
      • onAPWReward(pid: BigNumberish, user: string, recipient: string, apwAmount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • pid: BigNumberish
        • user: string
        • recipient: string
        • apwAmount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • onAPWReward(uint256,address,address,uint256):function
      • onAPWReward(uint256,address,address,uint256)(pid: BigNumberish, user: string, recipient: string, apwAmount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • pid: BigNumberish
        • user: string
        • recipient: string
        • apwAmount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • pendingTokens:function
      • pendingTokens(pid: BigNumberish, user: string, overrides?: CallOverrides): Promise<[string[], BigNumber[]]>
      • Parameters

        • pid: BigNumberish
        • user: string
        • Optional overrides: CallOverrides

        Returns Promise<[string[], BigNumber[]]>

    • pendingTokens(uint256,address):function
      • pendingTokens(uint256,address)(pid: BigNumberish, user: string, overrides?: CallOverrides): Promise<[string[], BigNumber[]]>
      • Parameters

        • pid: BigNumberish
        • user: string
        • Optional overrides: CallOverrides

        Returns Promise<[string[], BigNumber[]]>

    • renewPool:function
      • renewPool(_oldPid: BigNumberish, _newPid: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _oldPid: BigNumberish
        • _newPid: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • renewPool(uint256,uint256):function
      • renewPool(uint256,uint256)(_oldPid: BigNumberish, _newPid: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _oldPid: BigNumberish
        • _newPid: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    interface: IRewarderInterface
    populateTransaction: { onAPWReward: any; onAPWReward(uint256,address,address,uint256): any; pendingTokens: any; pendingTokens(uint256,address): any; renewPool: any; renewPool(uint256,uint256): any }

    Type declaration

    • onAPWReward:function
      • onAPWReward(pid: BigNumberish, user: string, recipient: string, apwAmount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • pid: BigNumberish
        • user: string
        • recipient: string
        • apwAmount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • onAPWReward(uint256,address,address,uint256):function
      • onAPWReward(uint256,address,address,uint256)(pid: BigNumberish, user: string, recipient: string, apwAmount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • pid: BigNumberish
        • user: string
        • recipient: string
        • apwAmount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • pendingTokens:function
      • pendingTokens(pid: BigNumberish, user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • pid: BigNumberish
        • user: string
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • pendingTokens(uint256,address):function
      • pendingTokens(uint256,address)(pid: BigNumberish, user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • pid: BigNumberish
        • user: string
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • renewPool:function
      • renewPool(_oldPid: BigNumberish, _newPid: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _oldPid: BigNumberish
        • _newPid: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • renewPool(uint256,uint256):function
      • renewPool(uint256,uint256)(_oldPid: BigNumberish, _newPid: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _oldPid: BigNumberish
        • _newPid: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    provider: Provider
    resolvedAddress: Promise<string>
    signer: Signer

    Methods

    • _checkRunningEvents(runningEvent: RunningEvent): void
    • Parameters

      • runningEvent: RunningEvent

      Returns void

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

      • Optional blockTag: BlockTag

      Returns Promise<Contract>

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

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

      Returns Event

    • Parameters

      • addressOrName: string

      Returns IRewarder

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

      • signerOrProvider: string | Signer | Provider

      Returns IRewarder

    • Returns Promise<IRewarder>

    • emit(eventName: string | EventFilter, ...args: any[]): boolean
    • Parameters

      • eventName: string | EventFilter
      • Rest ...args: any[]

      Returns boolean

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

      • Optional overrides: TransactionRequest

      Returns Promise<TransactionResponse>

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

      • Optional eventName: string | EventFilter

      Returns number

    • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
    • listeners(eventName?: string): Listener[]
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • Optional eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

      Returns TypedListener<EventArgsArray, EventArgsObject>[]

    • Parameters

      • Optional eventName: string

      Returns Listener[]

    • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IRewarder
    • off(eventName: string, listener: Listener): IRewarder
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IRewarder

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IRewarder

    • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IRewarder
    • on(eventName: string, listener: Listener): IRewarder
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IRewarder

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IRewarder

    • onAPWReward(pid: BigNumberish, user: string, recipient: string, apwAmount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • pid: BigNumberish
      • user: string
      • recipient: string
      • apwAmount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • onAPWReward(uint256,address,address,uint256)(pid: BigNumberish, user: string, recipient: string, apwAmount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • pid: BigNumberish
      • user: string
      • recipient: string
      • apwAmount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IRewarder
    • once(eventName: string, listener: Listener): IRewarder
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IRewarder

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IRewarder

    • pendingTokens(pid: BigNumberish, user: string, overrides?: CallOverrides): Promise<[string[], BigNumber[]]>
    • Parameters

      • pid: BigNumberish
      • user: string
      • Optional overrides: CallOverrides

      Returns Promise<[string[], BigNumber[]]>

    • pendingTokens(uint256,address)(pid: BigNumberish, user: string, overrides?: CallOverrides): Promise<[string[], BigNumber[]]>
    • Parameters

      • pid: BigNumberish
      • user: string
      • Optional overrides: CallOverrides

      Returns Promise<[string[], BigNumber[]]>

    • queryFilter<EventArgsArray, EventArgsObject>(event: TypedEventFilter<EventArgsArray, EventArgsObject>, fromBlockOrBlockhash?: string | number, toBlock?: string | number): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • event: TypedEventFilter<EventArgsArray, EventArgsObject>
      • Optional fromBlockOrBlockhash: string | number
      • Optional toBlock: string | number

      Returns Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

    • removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>): IRewarder
    • removeAllListeners(eventName?: string): IRewarder
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

      Returns IRewarder

    • Parameters

      • Optional eventName: string

      Returns IRewarder

    • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IRewarder
    • removeListener(eventName: string, listener: Listener): IRewarder
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IRewarder

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IRewarder

    • renewPool(_oldPid: BigNumberish, _newPid: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _oldPid: BigNumberish
      • _newPid: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • renewPool(uint256,uint256)(_oldPid: BigNumberish, _newPid: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _oldPid: BigNumberish
      • _newPid: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

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

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

      Returns string

    • getInterface(contractInterface: ContractInterface): Interface
    • Parameters

      • contractInterface: ContractInterface

      Returns Interface

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

      • value: any

      Returns value is Indexed

    Generated using TypeDoc, the 11/12/2022