Skip to main content

AuthorizationAdapter

Git Source - Generated with forge doc

Inherits: CoreAdapter

Title: AuthorizationAdapter

Bundler3 adapter for granting/revoking long-lived authorizations on Morpho Midnight, on behalf of the bundle initiator.

Constants

MORPHO_MIDNIGHT

The Morpho Midnight contract.

IMidnight public immutable MORPHO_MIDNIGHT

Functions

constructor

constructor(address bundler3, address morphoMidnight) CoreAdapter(bundler3);

Parameters

NameTypeDescription
bundler3addressThe Bundler3 contract address.
morphoMidnightaddressThe Morpho Midnight contract address.

midnightSetIsAuthorized

Sets Midnight authorization for authorized on behalf of the bundle initiator.

function midnightSetIsAuthorized(address authorized, bool newIsAuthorized) external onlyBundler3;

setterRatifierSetIsRootRatified

Sets ratification of root on setterRatifier on behalf of the bundle initiator.

function setterRatifierSetIsRootRatified(address setterRatifier, bytes32 root, bool newIsRootRatified)
external
onlyBundler3;

ecrecoverRatifierCancelRoot

Cancels a previously-signed offer-tree root on ecrecoverRatifier on behalf of the bundle initiator.

function ecrecoverRatifierCancelRoot(address ecrecoverRatifier, bytes32 root) external onlyBundler3;