All pages
Powered by GitBook
1 of 2

Loading...

Loading...

ISETH

ISETH is the interface for native Super Tokens.

ABI​

In order to interact with any contract satistying the ISETH interface, you can use the following ABI:

Click here to show ISETH ABI

Fn upgradeByETH

Fn upgradeByETHTo

Parameters

Name
Type
Description

Fn downgradeToETH

Parameters

Name
Type
Description

ISETH

Super ETH (SETH) full interface

to

address

wad

uint256

​
​
​
​
​
function upgradeByETH(
) 
    external
function upgradeByETHTo(
    address to
) 
    external
function downgradeToETH(
    uint256 wad
) 
    external

ITagomiPool

This is the technical reference related to the interface for any super token pool regardless of the distribution schemes.

struct PoolIndexData​

struct MemberData​

Tagomi_POOL_INVALID_TIME

Tagomi_POOL_NO_POOL_MEMBERS

Tagomi_POOL_NO_ZERO_ADDRESS

Tagomi_POOL_NOT_POOL_ADMIN_OR_GDA

Tagomi_POOL_NOT_GDA

Tagomi_POOL_TRANSFER_UNITS_NOT_ALLOWED

Event MemberUnitsUpdated

Parameters

Name
Type
Description

Event DistributionClaimed

Parameters

Name
Type
Description

Fn transferabilityForUnitsOwner

A boolean indicating whether pool members can transfer their units

Fn distributionFromAnyAddress

A boolean indicating whether addresses other than the pool admin can distribute via the pool

Fn admin

The admin is the creator of the pool and has permissions to update member units and is the recipient of the adjustment flow rate

The pool admin

Fn superToken

The SuperToken for the pool

Fn getTotalUnits

The total units of the pool

Fn getTotalConnectedUnits

The total number of units of connected members

Fn getTotalDisconnectedUnits

The total number of units of disconnected members

Fn getUnits

Parameters

Name
Type
Description

The total number of units for memberAddress

Fn getTotalFlowRate

The total flow rate of the pool

Fn getTotalConnectedFlowRate

The flow rate of the connected members

Fn getTotalDisconnectedFlowRate

The flow rate of the disconnected members

Fn getDisconnectedBalance

Parameters

Name
Type
Description

The balance of all the disconnected members at time

Fn getMemberFlowRate

Parameters

Name
Type
Description

The flow rate a member is receiving from the pool

Fn getClaimable

Parameters

Name
Type
Description

The claimable balance for memberAddr at time in the pool

Fn getClaimableNow

Parameters

Name
Type
Description

The claimable balance for memberAddr at block.timestamp in the pool

Fn updateMemberUnits

Parameters

Name
Type
Description

Sets memberAddr ownedUnits to newUnits

Fn claimAll

Parameters

Name
Type
Description

Claims the claimable balance for memberAddr at block.timestamp

Fn claimAll

Claims the claimable balance for msg.sender at block.timestamp

Fn increaseAllowance

Parameters

Name
Type
Description

Return Values

Name
Type
Description

Increases the allowance of spender by addedValue

Fn decreaseAllowance

Parameters

Name
Type
Description

Return Values

Name
Type
Description

Decreases the allowance of spender by subtractedValue

struct PoolIndexData {
  uint128 totalUnits;
  uint32 wrappedSettledAt;
  int96 wrappedFlowRate;
  int256 wrappedSettledValue;
}
struct MemberData {
  uint128 ownedUnits;
  uint32 syncedSettledAt;
  int96 syncedFlowRate;
  int256 syncedSettledValue;
  int256 settledValue;
  int256 claimedValue;
}

token

contract ITagomiToken

member

address

oldUnits

uint128

newUnits

uint128

token

contract ITagomiToken

member

address

claimedAmount

int256

totalClaimed

int256

memberAddress

address

The address of the member

time

uint32

The time to query

memberAddress

address

The address of the member

memberAddr

address

The address of the member

time

uint32

The time to query

memberAddr

address

The address of the member

memberAddr

address

The address of the member

newUnits

uint128

The new units for the member

memberAddr

address

The address of the member

spender

address

The address of the spender

addedValue

uint256

The amount to increase the allowance by

[0]

bool

true if successful

spender

address

The address of the spender

subtractedValue

uint256

The amount to decrease the allowance by

[0]

bool

true if successful

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
error Tagomi_POOL_INVALID_TIME()
error Tagomi_POOL_NO_POOL_MEMBERS()
error Tagomi_POOL_NO_ZERO_ADDRESS()
error Tagomi_POOL_NOT_POOL_ADMIN_OR_GDA()
error Tagomi_POOL_NOT_GDA()
error Tagomi_POOL_TRANSFER_UNITS_NOT_ALLOWED()
event MemberUnitsUpdated(
    contract ITagomiToken token,
    address member,
    uint128 oldUnits,
    uint128 newUnits
)
event DistributionClaimed(
    contract ITagomiToken token,
    address member,
    int256 claimedAmount,
    int256 totalClaimed
)
function transferabilityForUnitsOwner(
) 
    external 
    returns (bool)
function distributionFromAnyAddress(
) 
    external 
    returns (bool)
function admin(
) 
    external 
    returns (address)
function superToken(
) 
    external 
    returns (contract ITagomiToken)
function getTotalUnits(
) 
    external 
    returns (uint128)
function getTotalConnectedUnits(
) 
    external 
    returns (uint128)
function getTotalDisconnectedUnits(
) 
    external 
    returns (uint128)
function getUnits(
    address memberAddress
) 
    external 
    returns (uint128)
function getTotalFlowRate(
) 
    external 
    returns (int96)
function getTotalConnectedFlowRate(
) 
    external 
    returns (int96)
function getTotalDisconnectedFlowRate(
) 
    external 
    returns (int96)
function getDisconnectedBalance(
    uint32 time
) 
    external 
    returns (int256 balance)
function getMemberFlowRate(
    address memberAddress
) 
    external 
    returns (int96)
function getClaimable(
    address memberAddr,
    uint32 time
) 
    external 
    returns (int256)
function getClaimableNow(
    address memberAddr
) 
    external 
    returns (int256 claimableBalance, uint256 timestamp)
function updateMemberUnits(
    address memberAddr,
    uint128 newUnits
) 
    external 
    returns (bool)
function claimAll(
    address memberAddr
) 
    external 
    returns (bool)
function claimAll(
) 
    external 
    returns (bool)
function increaseAllowance(
    address spender,
    uint256 addedValue
) 
    external 
    returns (bool)
function decreaseAllowance(
    address spender,
    uint256 subtractedValue
) 
    external 
    returns (bool)