IPartyState
Methods that compose the party and that are mutable
denominationAsset
function denominationAsset() external view returns (address)
Queries the Party denomination asset (ERC-20)
The denomination asset is used for depositing into the party, which is an ERC-20 stablecoin
Return Values
Name | Type | Description |
---|---|---|
[0] | address | Denomination asset address |
creator
function creator() external view returns (address)
Queries the Party's creator address
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The address of the user who created the Party |
members
function members(address account) external view returns (bool)
Queries the Party's member access of given address
Parameters
Name | Type | Description |
---|---|---|
account | address | Address |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | Whether if the given address is a member |
managers
function managers(address account) external view returns (bool)
Queries the Party's manager access of given address
Parameters
Name | Type | Description |
---|---|---|
account | address | Address |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | Whether if the given address is a manager |
getTokens
function getTokens() external view returns (address[])
Queries the ERC-20 tokens held in the Party
Will display the tokens that were acquired through a Swap/LimitOrder method
Return Values
Name | Type | Description |
---|---|---|
[0] | address[] | Array of ERC-20 addresses |
getTokenGates
function getTokenGates() external view returns (struct TokenGate[])
Queries the token gates in the Party
Return Values
Name | Type | Description |
---|---|---|
[0] | struct TokenGate[] | Array of TokenGate structs |
partyInfo
function partyInfo() external view returns (struct PartyInfo)
Queries the party information
Return Values
Name | Type | Description |
---|---|---|
[0] | struct PartyInfo | PartyInfo struct |
closed
function closed() external view returns (bool)
Queries if the Party is closed
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | Whether if the Party is already closed or not |