PartyFactory
Creates new proxified Party
instances.
Code
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
Name | Type | Description |
---|---|---|
partyImpl | Party | The implementation of the party to deploy. |
authorities | address[] | The addresses set as authorities for the party. |
opts | Party.PartyOptions | Options used to initialize the party. These are fixed and cannot be changed later. |
preciousTokens | IERC721[] | The tokens that are considered precious by the party.These are protected assets and are subject to extra restrictions in proposals vs other assets. |
preciousTokenIds | uint256[] | The IDs associated with each token in preciousTokens . |
rageQuitTimestamp | uint40 | The timestamp until which ragequit is enabled. |
Returns
Name | Type | Description |
---|---|---|
party | Party | The 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
Name | Type | Description |
---|---|---|
partyImpl | Party | The implementation of the party to deploy. |
authorities | address[] | The addresses set as authorities for the party. |
opts | Party.PartyOptions | Options used to initialize the party. |
preciousTokens | IERC721[] | The tokens that are considered precious by the party.These are protected assets and are subject to extra restrictions in proposals vs other assets. |
preciousTokenIds | uint256[] | The IDs associated with each token in preciousTokens . |
rageQuitTimestamp | uint40 | The timestamp until which ragequit is enabled. |
provider | MetadataProvider | The metadata provider to use for the party. |
metadata | bytes | The metadata to use for the party. |
Returns
Name | Type | Description |
---|---|---|
party | Party | The newly created Party instance. |