Skip to main content

MidnightAllowlistGateFactory

Git Source - Generated with forge doc

Inherits: IMidnightAllowlistGateFactory

Title: MidnightAllowlistGateFactory

CREATE2 factory deploying MidnightAllowlistGate instances.

State Variables​

isDeployedGate​

Whether gate was deployed by this factory.

mapping(address => bool) public isDeployedGate;

Parameters

NameTypeDescription
<none>address

Returns

NameTypeDescription
<none>bool

Functions​

deployMidnightAllowlistGate​

Deploys a new MidnightAllowlistGate via CREATE2.

function deployMidnightAllowlistGate(address owner, bytes32 salt) external returns (address gate);

Parameters

NameTypeDescription
owneraddressThe initial owner of the deployed gate.
saltbytes32The CREATE2 salt.

Returns

NameTypeDescription
gateaddressThe address of the deployed gate.