interface to Collective Treasury

Hierarchy

  • Vault

Implemented by

Methods

  • approve a withdrawal from the treasury

    Parameters

    • to: string

      the recipient of the funds

    • quantity: number

      the amount to approve

    Returns Promise<void>

  • approve a withdrawal from the treasury and sign in a single transaction

    Parameters

    • to: string

      the recipient of the funds

    • quantity: number

      the amount to approve

    • scheduleTime: number

      the time to schedule the withdrawal

    • signature: string[]

      the array of signatures

    Returns Promise<void>

  • retrieve the approved balance for the specified account

    Parameters

    • from: string

      the account to query

    Returns Promise<number>

  • cancel approval for the recipient

    Parameters

    • to: string

      the destination account for the funds

    Returns Promise<void>

  • send a depsoit to the treasury

    Parameters

    • quantity: number

      the amount to deposit

    Returns Promise<void>

  • withdraw available funds from the treasury to your account

    Returns Promise<void>

  • withdraw available funds from the treasury to the specified account

    Parameters

    • to: string

      the destination account for the funds

    Returns Promise<void>

  • retrieve the contract balance for the treasury

    Returns Promise<number>

Generated using TypeDoc