UpgradeAuthorityBase
Type Alias: UpgradeAuthorityBase
type UpgradeAuthorityBase = SmartContract & {
verifyUpgradeData: Promise<UpgradeAuthorityAnswer>;
};
Defined in: packages/upgradable/src/upgradable.ts:78
Interface that any upgrade authority contract should implement.
Extends SmartContract
and requires the implementation of the verifyUpgradeData()
method,
which takes VerificationKeyUpgradeData
as input and returns an UpgradeAuthorityAnswer
.
Type declaration
verifyUpgradeData()
Verifies the upgrade data for upgrading a contract's verification key.
Parameters
data
The data required for verification.
Returns
Promise
<UpgradeAuthorityAnswer
>
The result of the verification.
Updated 10 days ago