šŸŽ‰ Welcome to PartyFinance documentation!
Protocol
Contracts
init
PartyInit

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

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

init

function init(struct InitArgs _args) external

Initialization method for created Parties

Must be called by the PartyFactory during the Party creation

Parameters

NameTypeDescription
_argsstruct InitArgsInitialization arguments struct