Skip to main content

PartyFactory

Creates new proxified Party instances.

Code

PartyFactory.sol

Functions

createParty

Deploy a new party instance.

function createParty(
Party partyImpl,
address[] memory authorities,
Party.PartyOptions memory opts,
IERC721[] memory preciousTokens,
uint256[] memory preciousTokenIds,
uint40 rageQuitTimestamp
) public returns (Party party);

Parameters

NameTypeDescription
partyImplPartyThe implementation of the party to deploy.
authoritiesaddress[]The addresses set as authorities for the party.
optsParty.PartyOptionsOptions used to initialize the party. These are fixed and cannot be changed later.
preciousTokensIERC721[]The tokens that are considered precious by the party.These are protected assets and are subject to extra restrictions in proposals vs other assets.
preciousTokenIdsuint256[]The IDs associated with each token in preciousTokens.
rageQuitTimestampuint40The timestamp until which ragequit is enabled.

Returns

NameTypeDescription
partyPartyThe newly created Party instance.

createPartyWithMetadata

Deploy a new party instance with custom metadata.

function createPartyWithMetadata(
Party partyImpl,
address[] memory authorities,
Party.PartyOptions memory opts,
IERC721[] memory preciousTokens,
uint256[] memory preciousTokenIds,
uint40 rageQuitTimestamp,
MetadataProvider provider,
bytes memory metadata
) external returns (Party party);

Parameters

NameTypeDescription
partyImplPartyThe implementation of the party to deploy.
authoritiesaddress[]The addresses set as authorities for the party.
optsParty.PartyOptionsOptions used to initialize the party.
preciousTokensIERC721[]The tokens that are considered precious by the party.These are protected assets and are subject to extra restrictions in proposals vs other assets.
preciousTokenIdsuint256[]The IDs associated with each token in preciousTokens.
rageQuitTimestampuint40The timestamp until which ragequit is enabled.
providerMetadataProviderThe metadata provider to use for the party.
metadatabytesThe metadata to use for the party.

Returns

NameTypeDescription
partyPartyThe newly created Party instance.