Superfluid Pool Helper Class

Description

A helper class to interact with the SuperfluidPool contract.

Constructors

Properties

allowance: ((params) => Promise<string>)

Retrieves the allowance for a specific owner and spender.

Type declaration

    • (params): Promise<string>
    • Retrieves the allowance for a specific owner and spender.

      Parameters

      Returns Promise<string>

      The allowance.

Param: owner

The owner's address.

Param: spender

The spender's address.

Param: providerOrSigner

A provider or signer object

Returns

The allowance.

approve: ((params) => Promise<ContractTransaction>)

Approves an amount to be spent by a specific spender.

Type declaration

    • (params): Promise<ContractTransaction>
    • Approves an amount to be spent by a specific spender.

      Parameters

      Returns Promise<ContractTransaction>

      A promise that resolves when the approval is complete.

Param: spender

The spender's address.

Param: amount

The amount to approve.

Param: signer

The transaction signer.

Returns

A promise that resolves when the approval is complete.

balanceOf: ((params) => Promise<string>)

Retrieves the balance of an account.

Type declaration

    • (params): Promise<string>
    • Retrieves the balance of an account.

      Parameters

      Returns Promise<string>

      The account's balance.

Param: account

The account's address.

Param: providerOrSigner

A provider or signer object

Returns

The account's balance.

claimAll: ((signer) => Promise<ContractTransaction>)

Claims all available funds.

Type declaration

    • (signer): Promise<ContractTransaction>
    • Claims all available funds.

      Parameters

      • signer: Signer

      Returns Promise<ContractTransaction>

      A promise that resolves when the claim is complete.

Returns

A promise that resolves when the claim is complete.

claimAllForMember: ((params) => Promise<ContractTransaction>)

Claims all available funds for a specific member.

Type declaration

    • (params): Promise<ContractTransaction>
    • Claims all available funds for a specific member.

      Parameters

      Returns Promise<ContractTransaction>

      A promise that resolves when the claim is complete.

Param: member

The member's address.

Param: signer

The transaction signer.

Returns

A promise that resolves when the claim is complete.

contract: ISuperfluidPool
decreaseAllowance: ((params) => Promise<ContractTransaction>)

Decreases the allowance for a specific spender.

Type declaration

    • (params): Promise<ContractTransaction>
    • Decreases the allowance for a specific spender.

      Returns Promise<ContractTransaction>

      A promise that resolves when the allowance decrease is complete.

Param: spender

The spender's address.

Param: amount

The amount to decrease the allowance by.

Param: signer

The transaction signer.

Param: overrides

The transaction overrides.

Returns

A promise that resolves when the allowance decrease is complete.

getClaimable: ((params) => Promise<string>)

Retrieves the claimable amount for a specific member and time.

Type declaration

    • (params): Promise<string>
    • Retrieves the claimable amount for a specific member and time.

      Parameters

      Returns Promise<string>

      The claimable amount.

Param: member

The member's address.

Param: time

The amount claimable at time.

Param: providerOrSigner

A provider or signer object

Returns

The claimable amount.

getClaimableNow: ((params) => Promise<ClaimableData>)

Retrieves the claimable amount for a specific member at the current time.

Type declaration

Param: member

The member's address.

Param: providerOrSigner

A provider or signer object

Returns

ClaimableData: { timestamp, claimableBalance }

getDisconnectedBalance: ((params) => Promise<string>)

Retrieves the disconnected balance for the pool a specific time.

Type declaration

    • (params): Promise<string>
    • Retrieves the disconnected balance for the pool a specific time.

      Returns Promise<string>

      The disconnected balance.

Param: time

The time of the disconnected balance.

Param: providerOrSigner

A provider or signer object

Returns

The disconnected balance.

getMemberFlowRate: ((params) => Promise<string>)

Retrieves the flow rate for a specific member.

Type declaration

    • (params): Promise<string>
    • Retrieves the flow rate for a specific member.

      Parameters

      Returns Promise<string>

      The flow rate for the specified member.

Param: member

The member's address.

Param: providerOrSigner

A provider or signer object

Returns

The flow rate for the specified member.

getPoolAdmin: ((providerOrSigner) => Promise<string>)

Retrieves the pool admin.

Type declaration

    • (providerOrSigner): Promise<string>
    • Retrieves the pool admin.

      Parameters

      • providerOrSigner: Signer | Provider

        A provider or signer object

      Returns Promise<string>

      The pool admin.

Param: providerOrSigner

A provider or signer object

Returns

The pool admin.

getSuperToken: ((providerOrSigner) => Promise<string>)

Retrieves the SuperToken.

Type declaration

    • (providerOrSigner): Promise<string>
    • Retrieves the SuperToken.

      Parameters

      • providerOrSigner: Signer | Provider

        A provider or signer object

      Returns Promise<string>

      The SuperToken for this pool.

Param: providerOrSigner

A provider or signer object

Returns

The SuperToken for this pool.

getTotalAmountReceivedByMember: ((params) => Promise<string>)

Retrieves the flow rate for a specific member.

Type declaration

    • (params): Promise<string>
    • Retrieves the flow rate for a specific member.

      Returns Promise<string>

      The total amount received by the member.

Param: member

The member's address.

Param: providerOrSigner

A provider or signer object

Returns

The total amount received by the member.

getTotalConnectedFlowRate: ((providerOrSigner) => Promise<string>)

Retrieves the total connected flow rate.

Type declaration

    • (providerOrSigner): Promise<string>
    • Retrieves the total connected flow rate.

      Parameters

      • providerOrSigner: Signer | Provider

        A provider or signer object

      Returns Promise<string>

      The total connected flow rate.

Param: providerOrSigner

A provider or signer object

Returns

The total connected flow rate.

getTotalConnectedUnits: ((providerOrSigner) => Promise<string>)

Retrieves the total connected units.

Type declaration

    • (providerOrSigner): Promise<string>
    • Retrieves the total connected units.

      Parameters

      • providerOrSigner: Signer | Provider

        A provider or signer object

      Returns Promise<string>

      The total connected units.

Param: providerOrSigner

A provider or signer object

Returns

The total connected units.

getTotalDisconnectedFlowRate: ((providerOrSigner) => Promise<string>)

Retrieves the total disconnected flow rate.

Type declaration

    • (providerOrSigner): Promise<string>
    • Retrieves the total disconnected flow rate.

      Parameters

      • providerOrSigner: Signer | Provider

        A provider or signer object

      Returns Promise<string>

      The total disconnected flow rate.

Param: providerOrSigner

A provider or signer object

Returns

The total disconnected flow rate.

getTotalUnits: ((providerOrSigner) => Promise<string>)

Retrieves the total units. Returns the same value as totalSupply.

Type declaration

    • (providerOrSigner): Promise<string>
    • Retrieves the total units. Returns the same value as totalSupply.

      Parameters

      • providerOrSigner: Signer | Provider

        A provider or signer object

      Returns Promise<string>

      The total units.

Param: providerOrSigner

A provider or signer object

Returns

The total units.

getUnits: ((params) => Promise<string>)

Retrieves the units for a specific member.

Type declaration

    • (params): Promise<string>
    • Retrieves the units for a specific member.

      Parameters

      Returns Promise<string>

      The units for the specified member.

Param: member

The member's address.

Param: providerOrSigner

A provider or signer object

Returns

The units for the specified member.

increaseAllowance: ((params) => Promise<ContractTransaction>)

Increases the allowance for a specific spender.

Type declaration

    • (params): Promise<ContractTransaction>
    • Increases the allowance for a specific spender.

      Returns Promise<ContractTransaction>

      A promise that resolves when the allowance increase is complete.

Param: spender

The spender's address.

Param: amount

The amount to increase the allowance by.

Param: signer

The transaction signer.

Returns

A promise that resolves when the allowance increase is complete.

totalSupply: ((providerOrSigner) => Promise<string>)

Retrieves the total supply. Returns the same value as getTotalUnits.

Type declaration

    • (providerOrSigner): Promise<string>
    • Retrieves the total supply. Returns the same value as getTotalUnits.

      Parameters

      • providerOrSigner: Signer | Provider

      Returns Promise<string>

      The total supply.

Returns

The total supply.

transfer: ((params) => Promise<ContractTransaction>)

Transfers an amount to a specific recipient.

Type declaration

    • (params): Promise<ContractTransaction>
    • Transfers an amount to a specific recipient.

      Parameters

      Returns Promise<ContractTransaction>

      A promise that resolves when the transfer is complete.

Param: to

The recipient's address.

Param: amount

The amount to transfer.

Param: signer

The transaction signer.

Returns

A promise that resolves when the transfer is complete.

transferFrom: ((params) => Promise<ContractTransaction>)

Transfers an amount from a specific sender to a recipient.

Type declaration

    • (params): Promise<ContractTransaction>
    • Transfers an amount from a specific sender to a recipient.

      Parameters

      Returns Promise<ContractTransaction>

      A promise that resolves when the transfer is complete.

Param: from

The sender's address.

Param: to

The recipient's address.

Param: amount

The amount to transfer.

Param: signer

The transaction signer.

Returns

A promise that resolves when the transfer is complete.

updateMemberUnits: ((params) => Promise<ContractTransaction>)

Updates the units for a specific member.

Type declaration

    • (params): Promise<ContractTransaction>
    • Updates the units for a specific member.

      Parameters

      Returns Promise<ContractTransaction>

      A promise that resolves when the update is complete.

Param: member

The member's address.

Param: newUnits

The new units value.

Param: signer

The transaction signer.

Returns

A promise that resolves when the update is complete.

Generated using TypeDoc