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
Name | Type | Description |
---|---|---|
partyCreator | address | Address of the user that created the party |
partyName | string | Name of the party |
isPublic | bool | Visibility of the party |
dAsset | address | Address of the denomination asset for the party |
minDeposit | uint256 | Minimum deposit of the party |
maxDeposit | uint256 | Maximum deposit of the party |
mintedPT | uint256 | Minted party tokens for creating the party |
bio | string | Bio of the party |
img | string | Img url of the party |
model | string | Model of party created |
purpose | string | Purpose of party created |
Join
event Join(address member, address asset, uint256 amount, uint256 fee, uint256 mintedPT)
Emitted when a user joins a party
Parameters
Name | Type | Description |
---|---|---|
member | address | Address of the user |
asset | address | Address of the denomination asset |
amount | uint256 | Amount of the deposit |
fee | uint256 | Collected fee |
mintedPT | uint256 | Minted 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
Name | Type | Description |
---|---|---|
member | address | Address of the user |
asset | address | Address of the denomination asset |
amount | uint256 | Amount of the deposit |
fee | uint256 | Collected fee |
mintedPT | uint256 | Minted 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
Name | Type | Description |
---|---|---|
member | address | Address of the user |
sellTokens | address[] | Array of sell tokens |
buyTokens | address[] | Array of buy tokens |
soldAmounts | uint256[] | Array of sold amount of tokens |
boughtAmounts | uint256[] | Array of bought amount of tokens |
partyValueDA | uint256 | The 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
Name | Type | Description |
---|---|---|
member | address | Address of the user |
burnedPT | uint256 | Burned party tokens for redemption |
liquidate | bool | Redemption by liquitating shares into denomination asset |
redeemedAssets | address[] | Array of asset addresses |
redeemedAmounts | uint256[] | Array of asset amounts |
redeemedFees | uint256[] | Array of asset fees |
redeemedNetAmounts | uint256[] | Array of net asset amounts |
Withdraw
event Withdraw(address member, uint256 burnedPT)
Emitted when a member withdraws from a party
Parameters
Name | Type | Description |
---|---|---|
member | address | Address of the user |
burnedPT | uint256 | Burned 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
Name | Type | Description |
---|---|---|
member | address | Address of the user |
sellToken | address | Sell token address |
buyToken | address | Buy token address |
soldAmount | uint256 | Sold amount of token |
boughtAmount | uint256 | Bought amount of token |
fee | uint256 | fee collected |
Kick
event Kick(address kicker, address kicked, uint256 burnedPT)
Emitted when a member gets kicked from a party
Parameters
Name | Type | Description |
---|---|---|
kicker | address | Address of the kicker (owner) |
kicked | address | Address of the kicked member |
burnedPT | uint256 | Burned party tokens of member |
Leave
event Leave(address member, uint256 burnedPT)
Emitted when a member leaves a party
Parameters
Name | Type | Description |
---|---|---|
member | address | Address of the user |
burnedPT | uint256 | Burned party tokens for withdrawing |
Close
event Close(address member, uint256 supply)
Emitted when the owner closes a party
Parameters
Name | Type | Description |
---|---|---|
member | address | Address of the user (should be party owner) |
supply | uint256 | Total 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
Name | Type | Description |
---|---|---|
name | string | Name of the party |
bio | string | Bio of the party |
img | string | Img url of the party |
model | string | Model of party created |
purpose | string | Purpose of party created |
isPublic | bool | Visibility of the party |
minDeposit | uint256 | Minimum deposit of the party |
maxDeposit | uint256 | Maximum deposit of the party |
PartyManagersChange
event PartyManagersChange(address manager, bool isManager)
Emitted when the party creator adds or remove a party manager
Parameters
Name | Type | Description |
---|---|---|
manager | address | Address of the user |
isManager | bool | Whether 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