Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseContract
    • Treasury

Index

Constructors

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

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

    Returns Contracts.Treasury

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: { proposalNonce: any; rescueTokens: any; setHandler: any }

Type declaration

  • proposalNonce:function
    • proposalNonce(overrides?: CallOverrides): Promise<BigNumber>
  • rescueTokens:function
    • rescueTokens(tokenAddress: string, to: string, amountToRescue: BigNumberish, nonce: BigNumberish, overrides?: CallOverrides): Promise<void>
  • setHandler:function
    • setHandler(newHandler: string, nonce: BigNumberish, overrides?: CallOverrides): Promise<void>
deployTransaction: TransactionResponse
estimateGas: { proposalNonce: any; rescueTokens: any; setHandler: any }

Type declaration

  • proposalNonce:function
    • proposalNonce(overrides?: CallOverrides): Promise<BigNumber>
  • rescueTokens:function
    • rescueTokens(tokenAddress: string, to: string, amountToRescue: BigNumberish, nonce: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • tokenAddress: string
      • to: string
      • amountToRescue: BigNumberish
      • nonce: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • setHandler:function
    • setHandler(newHandler: string, nonce: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
filters: {}

Type declaration

    functions: { proposalNonce: any; rescueTokens: any; setHandler: any }

    Type declaration

    • proposalNonce:function
      • proposalNonce(overrides?: CallOverrides): Promise<[BigNumber]>
    • rescueTokens:function
      • rescueTokens(tokenAddress: string, to: string, amountToRescue: BigNumberish, nonce: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • tokenAddress: string
        • to: string
        • amountToRescue: BigNumberish
        • nonce: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • setHandler:function
      • setHandler(newHandler: string, nonce: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

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

        Returns Promise<ContractTransaction>

    interface: TreasuryInterface
    populateTransaction: { proposalNonce: any; rescueTokens: any; setHandler: any }

    Type declaration

    • proposalNonce:function
      • proposalNonce(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • rescueTokens:function
      • rescueTokens(tokenAddress: string, to: string, amountToRescue: BigNumberish, nonce: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • tokenAddress: string
        • to: string
        • amountToRescue: BigNumberish
        • nonce: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • setHandler:function
      • setHandler(newHandler: string, nonce: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • newHandler: string
        • nonce: 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

    • 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>): Contracts.Treasury
    • off(eventName: string, listener: Listener): Contracts.Treasury
    • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Contracts.Treasury
    • on(eventName: string, listener: Listener): Contracts.Treasury
    • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Contracts.Treasury
    • once(eventName: string, listener: Listener): Contracts.Treasury
    • proposalNonce(overrides?: CallOverrides): Promise<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>): Contracts.Treasury
    • removeAllListeners(eventName?: string): Contracts.Treasury
    • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Contracts.Treasury
    • removeListener(eventName: string, listener: Listener): Contracts.Treasury
    • rescueTokens(tokenAddress: string, to: string, amountToRescue: BigNumberish, nonce: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • tokenAddress: string
      • to: string
      • amountToRescue: BigNumberish
      • nonce: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • setHandler(newHandler: string, nonce: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • newHandler: string
      • nonce: 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