Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Contract
    • ITreasury

Index

Constructors

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

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

    Returns ITreasury

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: { approveSpender: any; approveSpender(address,address,uint256): any; sendEther: any; sendEther(address,uint256): any; sendToken: any; sendToken(address,address,uint256): any }

Type declaration

  • approveSpender:function
    • approveSpender(_erc20: string, _spender: string, _amount: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _erc20: string
      • _spender: string
      • _amount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • approveSpender(address,address,uint256):function
    • approveSpender(address,address,uint256)(_erc20: string, _spender: string, _amount: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _erc20: string
      • _spender: string
      • _amount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • sendEther:function
    • sendEther(_recipient: string, _amount: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • sendEther(address,uint256):function
    • sendEther(address,uint256)(_recipient: string, _amount: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • sendToken:function
    • sendToken(_erc20: string, _recipient: string, _amount: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _erc20: string
      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • sendToken(address,address,uint256):function
    • sendToken(address,address,uint256)(_erc20: string, _recipient: string, _amount: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _erc20: string
      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

deployTransaction: TransactionResponse
estimateGas: { approveSpender: any; approveSpender(address,address,uint256): any; sendEther: any; sendEther(address,uint256): any; sendToken: any; sendToken(address,address,uint256): any }

Type declaration

  • approveSpender:function
    • approveSpender(_erc20: string, _spender: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _erc20: string
      • _spender: string
      • _amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • approveSpender(address,address,uint256):function
    • approveSpender(address,address,uint256)(_erc20: string, _spender: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _erc20: string
      • _spender: string
      • _amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • sendEther:function
    • sendEther(_recipient: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • sendEther(address,uint256):function
    • sendEther(address,uint256)(_recipient: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • sendToken:function
    • sendToken(_erc20: string, _recipient: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _erc20: string
      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • sendToken(address,address,uint256):function
    • sendToken(address,address,uint256)(_erc20: string, _recipient: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _erc20: string
      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

filters: {}

Type declaration

    functions: { approveSpender: any; approveSpender(address,address,uint256): any; sendEther: any; sendEther(address,uint256): any; sendToken: any; sendToken(address,address,uint256): any }

    Type declaration

    • approveSpender:function
      • approveSpender(_erc20: string, _spender: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _erc20: string
        • _spender: string
        • _amount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • approveSpender(address,address,uint256):function
      • approveSpender(address,address,uint256)(_erc20: string, _spender: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _erc20: string
        • _spender: string
        • _amount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • sendEther:function
      • sendEther(_recipient: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _recipient: string
        • _amount: BigNumberish
        • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • sendEther(address,uint256):function
      • sendEther(address,uint256)(_recipient: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _recipient: string
        • _amount: BigNumberish
        • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • sendToken:function
      • sendToken(_erc20: string, _recipient: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _erc20: string
        • _recipient: string
        • _amount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • sendToken(address,address,uint256):function
      • sendToken(address,address,uint256)(_erc20: string, _recipient: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _erc20: string
        • _recipient: string
        • _amount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    interface: ITreasuryInterface
    populateTransaction: { approveSpender: any; approveSpender(address,address,uint256): any; sendEther: any; sendEther(address,uint256): any; sendToken: any; sendToken(address,address,uint256): any }

    Type declaration

    • approveSpender:function
      • approveSpender(_erc20: string, _spender: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _erc20: string
        • _spender: string
        • _amount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • approveSpender(address,address,uint256):function
      • approveSpender(address,address,uint256)(_erc20: string, _spender: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _erc20: string
        • _spender: string
        • _amount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • sendEther:function
      • sendEther(_recipient: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _recipient: string
        • _amount: BigNumberish
        • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • sendEther(address,uint256):function
      • sendEther(address,uint256)(_recipient: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _recipient: string
        • _amount: BigNumberish
        • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • sendToken:function
      • sendToken(_erc20: string, _recipient: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _erc20: string
        • _recipient: string
        • _amount: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • sendToken(address,address,uint256):function
      • sendToken(address,address,uint256)(_erc20: string, _recipient: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _erc20: string
        • _recipient: string
        • _amount: 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

    • approveSpender(_erc20: string, _spender: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _erc20: string
      • _spender: string
      • _amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • approveSpender(address,address,uint256)(_erc20: string, _spender: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _erc20: string
      • _spender: string
      • _amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • Parameters

      • addressOrName: string

      Returns ITreasury

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

      • signerOrProvider: string | Signer | Provider

      Returns ITreasury

    • Returns Promise<ITreasury>

    • 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>): ITreasury
    • off(eventName: string, listener: Listener): ITreasury
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

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

      Returns ITreasury

    • Parameters

      • eventName: string
      • listener: Listener

      Returns ITreasury

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

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

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

      Returns ITreasury

    • Parameters

      • eventName: string
      • listener: Listener

      Returns ITreasury

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

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

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

      Returns ITreasury

    • Parameters

      • eventName: string
      • listener: Listener

      Returns ITreasury

    • 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>): ITreasury
    • removeAllListeners(eventName?: string): ITreasury
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

      Returns ITreasury

    • Parameters

      • Optional eventName: string

      Returns ITreasury

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

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

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

      Returns ITreasury

    • Parameters

      • eventName: string
      • listener: Listener

      Returns ITreasury

    • sendEther(_recipient: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • sendEther(address,uint256)(_recipient: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • sendToken(_erc20: string, _recipient: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _erc20: string
      • _recipient: string
      • _amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • sendToken(address,address,uint256)(_erc20: string, _recipient: string, _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _erc20: string
      • _recipient: string
      • _amount: 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