InitArgs
struct InitArgs {
address partyCreator;
struct PartyInfo partyInfo;
string tokenSymbol;
uint256 initialDeposit;
address denominationAsset;
address platformFeeCollector;
uint256 platformFee;
address platformSentinel;
}
PartyInit
s
struct AppStorage s
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 |
init
function init(struct InitArgs _args) external
Initialization method for created Parties
Must be called by the PartyFactory during the Party creation
Parameters
Name | Type | Description |
---|---|---|
_args | struct InitArgs | Initialization arguments struct |