Safe7579
Launchpad
initSafe7579

initSafe7579

This function should be called by the Safe setup function to initialize the Safe7579 adapter.

Usage

ModuleInit[] memory executors = new ModuleInit[](0);
ModuleInit[] memory fallbacks = new ModuleInit[](0);
ModuleInit[] memory hooks = new ModuleInit[](0);
 
address[] memory attesters = new address[](2);
attesters[0] = attester1Addr;
attesters[1] = attester2Addr;
 
bytes memory setupData = abi.encodeCall(
    Safe7579Launchpad.initSafe7579,
    (
        address(safe7579),
        executors,
        fallbacks,
        hooks,
        attesters,
        2
    )
);

Parameters

safe7579

  • Type: address

The address of the Safe7579 contract.

executors

An array of ModuleInit structs that contain the addresses of the executors and their initialization data.

fallbacks

An array of ModuleInit structs that contain the addresses of the fallbacks and their initialization data.

hooks

An array of ModuleInit structs that contain the addresses of the hooks and their initialization data.

attesters

  • Type: address[]

The addresses of the attesters.

threshold

  • Type: uint8

The number of attesters required to have attested to a module before it can be installed.

Returns

None