7GDAv1Forwarder

The GDAv1Forwarder contract is a Tagomi forwarder that implements the General Distribution Agreement (GDA) related functions. It is a contract specifically made immutable in order to facilitate the interaction with Distributions through the General Distribution Agreement (GDA).

This contract is optimized for interaction that would happen from outside the blockchain (off-chain). For more information on the best practices regarding this interaction, please refer to the SDK Section section of this documentation.

Contract Addressarrow-up-right

The GDAv1Forwarder contract address is the same on all Tagomi chains:

0x6DA13Bde224A05a288748d857b9e7DDEffd1dE08

In order to interact with the GDAv1Forwarder contract, you can use the following ABI:

chevron-rightClick here to show GDAv1Forwarder ABIhashtag

contract IGeneralDistributionAgreementV1 _gda

Fn constructorarrow-up-right

function constructor(
    contract ITagomi host
)
    public

Parametersarrow-up-right

Name
Type
Description

host

contract ITagomi

Fn createPoolarrow-up-right

createPool() write

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Creates a new Tagomi Pool.

Parametersarrow-up-right

Name
Type
Description

token

contract ITagomiToken

The Super Token address.

admin

address

The pool admin address.

config

struct PoolConfig

The pool configuration (see PoolConfig in IGeneralDistributionAgreementV1.sol)

Return Valuesarrow-up-right

Name
Type
Description

success

bool

A boolean value indicating whether the pool was created successfully.

pool

contract ITagomiPool

The address of the deployed Tagomi Pool

Fn updateMemberUnitsarrow-up-right

updateMemberUnits() write

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Updates the units of a pool member.

Parametersarrow-up-right

Name
Type
Description

pool

contract ITagomiPool

The Tagomi Pool to update.

memberAddress

address

The address of the member to update.

newUnits

uint128

The new units of the member.

userData

bytes

User-specific data.

claimAll() write

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Claims all tokens from the pool.

Parametersarrow-up-right

Name
Type
Description

pool

contract ITagomiPool

The Tagomi Pool to claim from.

memberAddress

address

The address of the member to claim for.

userData

bytes

User-specific data.

Fn connectPoolarrow-up-right

connectPool() write

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Connects a pool member to pool.

Parametersarrow-up-right

Name
Type
Description

pool

contract ITagomiPool

The Tagomi Pool to connect.

userData

bytes

User-specific data.

Return Valuesarrow-up-right

Name
Type
Description

[0]

bool

A boolean value indicating whether the connection was successful.

Fn disconnectPoolarrow-up-right

disconnectPool() write

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Disconnects a pool member from pool.

Parametersarrow-up-right

Name
Type
Description

pool

contract ITagomiPool

The Tagomi Pool to disconnect.

userData

bytes

User-specific data.

Return Valuesarrow-up-right

Name
Type
Description

[0]

bool

A boolean value indicating whether the disconnection was successful.

Fn distributearrow-up-right

distribute() write

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Tries to distribute requestedAmount amount of token from from to pool.

Parametersarrow-up-right

Name
Type
Description

token

contract ITagomiToken

The Super Token address.

from

address

The address from which to distribute tokens.

pool

contract ITagomiPool

The Tagomi Pool address.

requestedAmount

uint256

The amount of tokens to distribute.

userData

bytes

User-specific data.

Return Valuesarrow-up-right

Name
Type
Description

[0]

bool

A boolean value indicating whether the distribution was successful.

Fn distributeFlowarrow-up-right

distributeFlow() write

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Tries to distribute flow at requestedFlowRate of token from from to pool.

Parametersarrow-up-right

Name
Type
Description

token

contract ITagomiToken

The Super Token address.

from

address

The address from which to distribute tokens.

pool

contract ITagomiPool

The Tagomi Pool address.

requestedFlowRate

int96

The flow rate of tokens to distribute.

userData

bytes

User-specific data.

Return Valuesarrow-up-right

Name
Type
Description

[0]

bool

A boolean value indicating whether the distribution was successful.

isPool() read

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Checks if the specified account is a pool.

Parametersarrow-up-right

Name
Type
Description

token

contract ITagomiToken

The Super Token address.

account

address

The account address to check.

Return Valuesarrow-up-right

Name
Type
Description

[0]

bool

A boolean value indicating whether the account is a pool.

Fn getNetFlowarrow-up-right

getNetFlow() read

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Gets the GDA net flow rate for the specified account.

Parametersarrow-up-right

Name
Type
Description

token

contract ITagomiToken

The Super Token address.

account

address

The account address.

Return Valuesarrow-up-right

Name
Type
Description

[0]

int96

The gda net flow rate for the account.

Fn getFlowDistributionFlowRatearrow-up-right

getFlowDistributionFlowRate() read

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Gets the flow rate of tokens between the specified accounts.

Parametersarrow-up-right

Name
Type
Description

token

contract ITagomiToken

The Super Token address.

from

address

The sender address.

to

contract ITagomiPool

The receiver address (the pool address).

Return Valuesarrow-up-right

Name
Type
Description

[0]

int96

The flow distribution flow rate

Fn getPoolAdjustmentFlowRatearrow-up-right

getPoolAdjustmentFlowRate() read

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Gets the pool adjustment flow rate for the specified pool.

Parametersarrow-up-right

Name
Type
Description

pool

address

The pool address.

Return Valuesarrow-up-right

Name
Type
Description

[0]

int96

The pool adjustment flow rate.

Fn estimateFlowDistributionActualFlowRatearrow-up-right

estimateFlowDistributionActualFlowRate() read

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Estimates the actual flow rate for flow distribution to the specified pool.

Parametersarrow-up-right

Name
Type
Description

token

contract ITagomiToken

The Super Token address.

from

address

The sender address.

to

contract ITagomiPool

The pool address.

requestedFlowRate

int96

The requested flow rate.

Return Valuesarrow-up-right

Name
Type
Description

actualFlowRate

int96

totalDistributionFlowRate

int96

Fn estimateDistributionActualAmountarrow-up-right

estimateDistributionActualAmount() read

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Estimates the actual amount for distribution to the specified pool.

Parametersarrow-up-right

Name
Type
Description

token

contract ITagomiToken

The Super Token address.

from

address

The sender address.

to

contract ITagomiPool

The pool address.

requestedAmount

uint256

The requested amount.

Return Valuesarrow-up-right

Name
Type
Description

actualAmount

uint256

The actual amount for distribution.

Fn isMemberConnectedarrow-up-right

isMemberConnected() read

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Checks if the specified member is connected to the pool.

Parametersarrow-up-right

Name
Type
Description

pool

contract ITagomiPool

The Tagomi Pool address.

member

address

The member address.

Return Valuesarrow-up-right

Name
Type
Description

[0]

bool

A boolean value indicating whether the member is connected to the pool.

Fn getPoolAdjustmentFlowInfoarrow-up-right

getPoolAdjustmentFlowInfo() read

Try it out

powered byarrow-up-rightLearn morearrow-up-right

Gets the pool adjustment flow information for the specified pool.

Parametersarrow-up-right

Name
Type
Description

pool

contract ITagomiPool

The pool address.

Return Valuesarrow-up-right

Name
Type
Description

[0]

address

The pool admin, pool ID, and pool adjustment flow rate.

[1]

bytes32

[2]

int96

Last updated

Was this helpful?