BatchOrgDeployer
Contract used to deploy a batch of Orgs at once, in case anyone wants to do this in bulk instead of performing multiple single deploy transactions
The OrgFundFactory contract we'll use to batch deploy
OrgFundFactory public immutable orgFundFactory;
constructor(OrgFundFactory _orgFundFactory);
Deploys a batch of Orgs, given an array of orgIds
Function will throw in case an org with a same
orgId
already exists since factory uses determinist create2
, so only pass org ids that have not yet been deployedfunction batchDeploy(bytes32[] calldata _orgIds) external;
Parameters
Name | Type | Description |
---|---|---|
_orgIds | bytes32[] | The array of orgIds to deploy |
Emitted when a batch is deployed
event EntityBatchDeployed(address indexed caller, uint8 indexed entityType, uint256 batchSize);
Last modified 2mo ago