šŸŽ‰ Welcome to PartyFinance documentation!
Protocol
Contracts
interfaces
party
IPartyEvents

IPartyEvents

Contains all events emitted by the party

Events emitted by a party

PartyCreated

event PartyCreated(address partyCreator, string partyName, bool isPublic, address dAsset, uint256 minDeposit, uint256 maxDeposit, uint256 mintedPT, string bio, string img, string model, string purpose)

Emitted exactly once by a party when #initialize is first called

Parameters

NameTypeDescription
partyCreatoraddressAddress of the user that created the party
partyNamestringName of the party
isPublicboolVisibility of the party
dAssetaddressAddress of the denomination asset for the party
minDeposituint256Minimum deposit of the party
maxDeposituint256Maximum deposit of the party
mintedPTuint256Minted party tokens for creating the party
biostringBio of the party
imgstringImg url of the party
modelstringModel of party created
purposestringPurpose of party created

Join

event Join(address member, address asset, uint256 amount, uint256 fee, uint256 mintedPT)

Emitted when a user joins a party

Parameters

NameTypeDescription
memberaddressAddress of the user
assetaddressAddress of the denomination asset
amountuint256Amount of the deposit
feeuint256Collected fee
mintedPTuint256Minted party tokens for joining

Deposit

event Deposit(address member, address asset, uint256 amount, uint256 fee, uint256 mintedPT)

Emitted when a member deposits denomination assets into a party

Parameters

NameTypeDescription
memberaddressAddress of the user
assetaddressAddress of the denomination asset
amountuint256Amount of the deposit
feeuint256Collected fee
mintedPTuint256Minted party tokens for depositing

AllocationFilled

event AllocationFilled(address member, address[] sellTokens, address[] buyTokens, uint256[] soldAmounts, uint256[] boughtAmounts, uint256 partyValueDA)

Emitted when quotes are filled by 0x for allocation of funds

SwapToken is not included on this event, since its have the same information

Parameters

NameTypeDescription
memberaddressAddress of the user
sellTokensaddress[]Array of sell tokens
buyTokensaddress[]Array of buy tokens
soldAmountsuint256[]Array of sold amount of tokens
boughtAmountsuint256[]Array of bought amount of tokens
partyValueDAuint256The party value in denomination asset prior to the allocation

RedeemedShares

event RedeemedShares(address member, uint256 burnedPT, bool liquidate, address[] redeemedAssets, uint256[] redeemedAmounts, uint256[] redeemedFees, uint256[] redeemedNetAmounts)

Emitted when a member redeems shares from a party

Parameters

NameTypeDescription
memberaddressAddress of the user
burnedPTuint256Burned party tokens for redemption
liquidateboolRedemption by liquitating shares into denomination asset
redeemedAssetsaddress[]Array of asset addresses
redeemedAmountsuint256[]Array of asset amounts
redeemedFeesuint256[]Array of asset fees
redeemedNetAmountsuint256[]Array of net asset amounts

Withdraw

event Withdraw(address member, uint256 burnedPT)

Emitted when a member withdraws from a party

Parameters

NameTypeDescription
memberaddressAddress of the user
burnedPTuint256Burned party tokens of member

SwapToken

event SwapToken(address member, address sellToken, address buyToken, uint256 soldAmount, uint256 boughtAmount, uint256 fee)

Emitted when quotes are filled by 0x in the same tx

Parameters

NameTypeDescription
memberaddressAddress of the user
sellTokenaddressSell token address
buyTokenaddressBuy token address
soldAmountuint256Sold amount of token
boughtAmountuint256Bought amount of token
feeuint256fee collected

Kick

event Kick(address kicker, address kicked, uint256 burnedPT)

Emitted when a member gets kicked from a party

Parameters

NameTypeDescription
kickeraddressAddress of the kicker (owner)
kickedaddressAddress of the kicked member
burnedPTuint256Burned party tokens of member

Leave

event Leave(address member, uint256 burnedPT)

Emitted when a member leaves a party

Parameters

NameTypeDescription
memberaddressAddress of the user
burnedPTuint256Burned party tokens for withdrawing

Close

event Close(address member, uint256 supply)

Emitted when the owner closes a party

Parameters

NameTypeDescription
memberaddressAddress of the user (should be party owner)
supplyuint256Total supply of party tokens when the party closed

PartyInfoEdit

event PartyInfoEdit(string name, string bio, string img, string model, string purpose, bool isPublic, uint256 minDeposit, uint256 maxDeposit)

Emitted when the party information changes after creation

Parameters

NameTypeDescription
namestringName of the party
biostringBio of the party
imgstringImg url of the party
modelstringModel of party created
purposestringPurpose of party created
isPublicboolVisibility of the party
minDeposituint256Minimum deposit of the party
maxDeposituint256Maximum deposit of the party

PartyManagersChange

event PartyManagersChange(address manager, bool isManager)

Emitted when the party creator adds or remove a party manager

Parameters

NameTypeDescription
manageraddressAddress of the user
isManagerboolWhether to set the user was set as manager or removed from it

PartyTokenGateChange

event PartyTokenGateChange()

Emitted when the party manager edits the token gating settings