Skip to main content

VettedGateFactory

VettedGateFactory.sol is a supplementary contract that is used to deploy new instances of VettedGate contract behind OssifiableProxy for upgradability.

Upgradability

The contract is immutable.

State Variables

VETTED_GATE_IMPL

address public immutable VETTED_GATE_IMPL;

Functions

create

Creates a new VettedGate instance behind the OssifiableProxy based on known implementation address

function create(uint256 curveId, bytes32 treeRoot, string calldata treeCid, address admin)
external
returns (address instance);

Parameters

NameTypeDescription
curveIduint256Id of the bond curve to be assigned for the eligible members
treeRootbytes32Root of the eligible members Merkle Tree
treeCidstringCID of the eligible members Merkle Tree
adminaddressAddress of the admin role