MCPcopy Create free account
hub / github.com/circlefin/arc-node / schemaAdminProxy

Function schemaAdminProxy

scripts/genesis/AdminUpgradeableProxy.ts:34–44  ·  view source on GitHub ↗
(defaultAddress: Address)

Source from the content-addressed store, hash-verified

32 * Define the schema for the AdminUpgradeableProxy.
33 */
34export 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.

Callers 3

ProtocolConfig.tsFile · 0.90
Denylist.tsFile · 0.90

Calls 1

defaultMethod · 0.45

Tested by

no test coverage detected