OfferingFactory
Last updated
Was this helpful?
Last updated
Was this helpful?
This factory dynamically registers offering implementations and deploys minimal proxy clones.
Registers initial offering implementations.
Parameters
_implementations
OfferingImplementation[]
Array of offering implementations to register.
Adds a new offering implementation dynamically.
Parameters
_implementation
OfferingImplementation
The offering implementation details.
Deploys a new offering clone using a minimal proxy and initializes it.
Parameters
offeringImplId
bytes32
The identifier of the offering implementation.
initCallData
bytes
The initialization call data to configure the offering clone.
Returns
offering
address
The address of the newly deployed offering clone.
Returns an array of all deployed offering clone addresses.
Decodes revert messages from failed external calls.
Parameters
_returnData
bytes
The return data from the call.
Returns
<none>
string
The revert message string.
Struct for storing offering implementation details.
Properties
offeringType
string
A human-readable name or type identifier.
implementation
address
The address of the deployed implementation contract.
requiredSelector
bytes4
The function selector expected in the first 4 bytes of the initialization call.
active
bool
Flag to indicate if the offering is active.