🎉 Welcome to PartyFinance documentation!
Protocol
Contracts
Interfaces
Party
IPartyState

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

NameTypeDescription
[0]addressDenomination asset address

creator

function creator() external view returns (address)

Queries the Party's creator address

Return Values

NameTypeDescription
[0]addressThe 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

NameTypeDescription
accountaddressAddress

Return Values

NameTypeDescription
[0]boolWhether 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

NameTypeDescription
accountaddressAddress

Return Values

NameTypeDescription
[0]boolWhether 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

NameTypeDescription
[0]address[]Array of ERC-20 addresses

getTokenGates

function getTokenGates() external view returns (struct TokenGate[])

Queries the token gates in the Party

Return Values

NameTypeDescription
[0]struct TokenGate[]Array of TokenGate structs

partyInfo

function partyInfo() external view returns (struct PartyInfo)

Queries the party information

Return Values

NameTypeDescription
[0]struct PartyInfoPartyInfo struct

closed

function closed() external view returns (bool)

Queries if the Party is closed

Return Values

NameTypeDescription
[0]boolWhether if the Party is already closed or not