GelatoAutomateAdapterInit
Title: GelatoAutomateAdapterInit
Author: David Dada <daveproxy80@gmail.com> (https://github.com/dadadave80)
One-shot initializer for a Gelato Automate adapter diamond — registers the IGelatoAutomateAdapter
interface (ERC-165) and seeds AccessControl so setConfig/createTask/cancelTask are admin-gated.
Delegatecalled by Diamond.initialize inside the initializing window (so it must NOT open its own
pre/postInitializer; each __*_init guard passes because the window is already open). Companion to
the ERC2981Init pattern — a first-class production deploy artifact. The Gelato
Automate contract + dedicated msg.sender are configured post-deploy via the admin-gated setConfig.
Functions
init
Runs the Gelato Automate adapter + access-control module initializers. MUST be invoked via the
diamond's initialize _init delegatecall.
function init(address admin) external;Parameters
| Name | Type | Description |
|---|---|---|
| admin | address | The address granted DEFAULT_ADMIN_ROLE (controls setConfig/createTask/cancelTask). |