Search
K

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

State Variables

orgFundFactory

The OrgFundFactory contract we'll use to batch deploy
OrgFundFactory public immutable orgFundFactory;

Functions

constructor

constructor(OrgFundFactory _orgFundFactory);

batchDeploy

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 deployed
function batchDeploy(bytes32[] calldata _orgIds) external;
Parameters
Name
Type
Description
_orgIds
bytes32[]
The array of orgIds to deploy

Events

EntityBatchDeployed

Emitted when a batch is deployed
event EntityBatchDeployed(address indexed caller, uint8 indexed entityType, uint256 batchSize);