(defaultAddress: Address)
| 32 | * Define the schema for the AdminUpgradeableProxy. |
| 33 | */ |
| 34 | export const schemaAdminProxy = (defaultAddress: Address) => |
| 35 | z |
| 36 | .object({ |
| 37 | address: schemaAddress.default(defaultAddress).optional(), |
| 38 | contractName: z.string().default(AdminUpgradeableProxy.CONTRACT_NAME).optional(), |
| 39 | /** |
| 40 | * The admin of the proxy contract, which can upgrade the implementation contract. |
| 41 | */ |
| 42 | admin: schemaAddress, |
| 43 | }) |
| 44 | .strict() |
| 45 | |
| 46 | /** |
| 47 | * Define the schema for the implementation behind the AdminUpgradeableProxy. |
no test coverage detected