UNPKG

@ensnode/datasources

Version:

Catalog of ENSNode-related datasources including chain, contract addresses, start blocks, and event filters.

2,464 lines (2,457 loc) • 414 kB
// src/abis/ensv2/EnhancedAccessControl.ts var EnhancedAccessControl = [ { type: "function", name: "HCA_FACTORY", inputs: [], outputs: [ { name: "", type: "address", internalType: "contract IHCAFactoryBasic" } ], stateMutability: "view" }, { type: "function", name: "ROOT_RESOURCE", inputs: [], outputs: [ { name: "", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "getAssigneeCount", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "counts", type: "uint256", internalType: "uint256" }, { name: "mask", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "grantRoles", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "nonpayable" }, { type: "function", name: "grantRootRoles", inputs: [ { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "nonpayable" }, { type: "function", name: "hasAssignees", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "view" }, { type: "function", name: "hasRoles", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "view" }, { type: "function", name: "hasRootRoles", inputs: [ { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "view" }, { type: "function", name: "revokeRoles", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "nonpayable" }, { type: "function", name: "revokeRootRoles", inputs: [ { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "nonpayable" }, { type: "function", name: "roleCount", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "roles", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "supportsInterface", inputs: [ { name: "interfaceId", type: "bytes4", internalType: "bytes4" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "view" }, { type: "event", name: "EACRolesChanged", inputs: [ { name: "resource", type: "uint256", indexed: true, internalType: "uint256" }, { name: "account", type: "address", indexed: true, internalType: "address" }, { name: "oldRoleBitmap", type: "uint256", indexed: false, internalType: "uint256" }, { name: "newRoleBitmap", type: "uint256", indexed: false, internalType: "uint256" } ], anonymous: false }, { type: "error", name: "EACCannotGrantRoles", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ] }, { type: "error", name: "EACCannotRevokeRoles", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ] }, { type: "error", name: "EACInvalidAccount", inputs: [] }, { type: "error", name: "EACInvalidRoleBitmap", inputs: [ { name: "roleBitmap", type: "uint256", internalType: "uint256" } ] }, { type: "error", name: "EACMaxAssignees", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "role", type: "uint256", internalType: "uint256" } ] }, { type: "error", name: "EACMinAssignees", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "role", type: "uint256", internalType: "uint256" } ] }, { type: "error", name: "EACRootResourceNotAllowed", inputs: [] }, { type: "error", name: "EACUnauthorizedAccountRoles", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ] } ]; // src/abis/ensv2/ETHRegistrar.ts var ETHRegistrar = [ { inputs: [ { internalType: "address", name: "owner_", type: "address" }, { internalType: "contract IHCAFactoryBasic", name: "hcaFactory", type: "address" }, { internalType: "contract IPermissionedRegistry", name: "ethRegistry", type: "address" }, { internalType: "address", name: "beneficiary", type: "address" }, { internalType: "contract IRentPriceOracle", name: "oracle", type: "address" }, { internalType: "uint64", name: "gracePeriod", type: "uint64" }, { internalType: "uint64", name: "minCommitmentAge", type: "uint64" }, { internalType: "uint64", name: "maxCommitmentAge", type: "uint64" }, { internalType: "uint64", name: "minRegisterDuration", type: "uint64" } ], stateMutability: "nonpayable", type: "constructor" }, { inputs: [ { internalType: "bytes32", name: "commitment", type: "bytes32" }, { internalType: "uint64", name: "validFrom", type: "uint64" }, { internalType: "uint64", name: "blockTimestamp", type: "uint64" } ], name: "CommitmentTooNew", type: "error" }, { inputs: [ { internalType: "bytes32", name: "commitment", type: "bytes32" }, { internalType: "uint64", name: "validTo", type: "uint64" }, { internalType: "uint64", name: "blockTimestamp", type: "uint64" } ], name: "CommitmentTooOld", type: "error" }, { inputs: [ { internalType: "uint64", name: "duration", type: "uint64" }, { internalType: "uint64", name: "minDuration", type: "uint64" } ], name: "DurationTooShort", type: "error" }, { inputs: [], name: "InvalidOwner", type: "error" }, { inputs: [], name: "MaxCommitmentAgeTooLow", type: "error" }, { inputs: [{ internalType: "string", name: "label", type: "string" }], name: "NameNotAvailable", type: "error" }, { inputs: [{ internalType: "string", name: "label", type: "string" }], name: "NameNotRenewable", type: "error" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }], name: "OwnableInvalidOwner", type: "error" }, { inputs: [{ internalType: "address", name: "account", type: "address" }], name: "OwnableUnauthorizedAccount", type: "error" }, { inputs: [{ internalType: "address", name: "token", type: "address" }], name: "SafeERC20FailedOperation", type: "error" }, { inputs: [{ internalType: "bytes32", name: "commitment", type: "bytes32" }], name: "UnexpiredCommitmentExists", type: "error" }, { anonymous: false, inputs: [{ indexed: false, internalType: "bytes32", name: "commitment", type: "bytes32" }], name: "CommitmentMade", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "tokenId", type: "uint256" }, { indexed: false, internalType: "string", name: "label", type: "string" }, { indexed: false, internalType: "address", name: "owner", type: "address" }, { indexed: false, internalType: "contract IRegistry", name: "subregistry", type: "address" }, { indexed: false, internalType: "address", name: "resolver", type: "address" }, { indexed: false, internalType: "uint64", name: "duration", type: "uint64" }, { indexed: false, internalType: "contract IERC20", name: "paymentToken", type: "address" }, { indexed: true, internalType: "bytes32", name: "referrer", type: "bytes32" }, { indexed: false, internalType: "uint256", name: "base", type: "uint256" }, { indexed: false, internalType: "uint256", name: "premium", type: "uint256" } ], name: "NameRegistered", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "tokenId", type: "uint256" }, { indexed: false, internalType: "string", name: "label", type: "string" }, { indexed: false, internalType: "uint64", name: "duration", type: "uint64" }, { indexed: false, internalType: "uint64", name: "newExpiry", type: "uint64" }, { indexed: false, internalType: "contract IERC20", name: "paymentToken", type: "address" }, { indexed: true, internalType: "bytes32", name: "referrer", type: "bytes32" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" } ], name: "NameRenewed", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "previousOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" } ], name: "OwnershipTransferred", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "contract IRentPriceOracle", name: "oracle", type: "address" } ], name: "RentPriceOracleUpdated", type: "event" }, { inputs: [], name: "BENEFICIARY", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "ETH_REGISTRY", outputs: [{ internalType: "contract IPermissionedRegistry", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "GRACE_PERIOD", outputs: [{ internalType: "uint64", name: "", type: "uint64" }], stateMutability: "view", type: "function" }, { inputs: [], name: "HCA_FACTORY", outputs: [{ internalType: "contract IHCAFactoryBasic", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MAX_COMMITMENT_AGE", outputs: [{ internalType: "uint64", name: "", type: "uint64" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MIN_COMMITMENT_AGE", outputs: [{ internalType: "uint64", name: "", type: "uint64" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MIN_REGISTER_DURATION", outputs: [{ internalType: "uint64", name: "", type: "uint64" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MIN_RENEW_DURATION", outputs: [{ internalType: "uint64", name: "", type: "uint64" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes32", name: "commitment", type: "bytes32" }], name: "commit", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "commitment", type: "bytes32" }], name: "commitmentAt", outputs: [{ internalType: "uint64", name: "commitTime", type: "uint64" }], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "string", name: "label", type: "string" }, { internalType: "uint64", name: "duration", type: "uint64" }, { internalType: "contract IERC20", name: "paymentToken", type: "address" } ], name: "getRegisterPrice", outputs: [ { internalType: "uint256", name: "base", type: "uint256" }, { internalType: "uint256", name: "premium", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "string", name: "label", type: "string" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "uint64", name: "duration", type: "uint64" }, { internalType: "contract IERC20", name: "paymentToken", type: "address" } ], name: "rentPrice", outputs: [ { internalType: "uint256", name: "base", type: "uint256" }, { internalType: "uint256", name: "premium", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "string", name: "label", type: "string" }], name: "getRemainingGracePeriod", outputs: [{ internalType: "uint64", name: "", type: "uint64" }], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "string", name: "label", type: "string" }, { internalType: "uint64", name: "duration", type: "uint64" }, { internalType: "contract IERC20", name: "paymentToken", type: "address" } ], name: "getRenewPrice", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "string", name: "label", type: "string" }], name: "isAvailable", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "string", name: "label", type: "string" }], name: "isRenewable", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "string", name: "label", type: "string" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "bytes32", name: "secret", type: "bytes32" }, { internalType: "contract IRegistry", name: "subregistry", type: "address" }, { internalType: "address", name: "resolver", type: "address" }, { internalType: "uint64", name: "duration", type: "uint64" }, { internalType: "bytes32", name: "referrer", type: "bytes32" } ], name: "makeCommitment", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "pure", type: "function" }, { inputs: [], name: "owner", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "string", name: "label", type: "string" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "bytes32", name: "secret", type: "bytes32" }, { internalType: "contract IRegistry", name: "subregistry", type: "address" }, { internalType: "address", name: "resolver", type: "address" }, { internalType: "uint64", name: "duration", type: "uint64" }, { internalType: "contract IERC20", name: "paymentToken", type: "address" }, { internalType: "bytes32", name: "referrer", type: "bytes32" } ], name: "register", outputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "string", name: "label", type: "string" }, { internalType: "uint64", name: "duration", type: "uint64" }, { internalType: "contract IERC20", name: "paymentToken", type: "address" }, { internalType: "bytes32", name: "referrer", type: "bytes32" } ], name: "renew", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "rentPriceOracle", outputs: [{ internalType: "contract IRentPriceOracle", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "contract IRentPriceOracle", name: "oracle", type: "address" }], name: "setRentPriceOracle", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }], name: "supportsInterface", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "newOwner", type: "address" }], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" } ]; // src/abis/ensv2/MockToken.ts var MockToken = [ { type: "function", name: "mint", inputs: [ { name: "to", type: "address", internalType: "address" }, { name: "amount", type: "uint256", internalType: "uint256" } ], outputs: [], stateMutability: "nonpayable" } ]; // src/abis/ensv2/Registry.ts var Registry = [ { type: "constructor", inputs: [ { name: "hcaFactory", type: "address", internalType: "contract IHCAFactoryBasic" }, { name: "metadata", type: "address", internalType: "contract IRegistryMetadata" }, { name: "ownerAddress", type: "address", internalType: "address" }, { name: "ownerRoles", type: "uint256", internalType: "uint256" } ], stateMutability: "nonpayable" }, { type: "function", name: "HCA_FACTORY", inputs: [], outputs: [ { name: "", type: "address", internalType: "contract IHCAFactoryBasic" } ], stateMutability: "view" }, { type: "function", name: "METADATA_PROVIDER", inputs: [], outputs: [ { name: "", type: "address", internalType: "contract IRegistryMetadata" } ], stateMutability: "view" }, { type: "function", name: "ROOT_RESOURCE", inputs: [], outputs: [ { name: "", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "balanceOf", inputs: [ { name: "account", type: "address", internalType: "address" }, { name: "id", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "balanceOfBatch", inputs: [ { name: "accounts", type: "address[]", internalType: "address[]" }, { name: "ids", type: "uint256[]", internalType: "uint256[]" } ], outputs: [ { name: "", type: "uint256[]", internalType: "uint256[]" } ], stateMutability: "view" }, { type: "function", name: "getAssigneeCount", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "counts", type: "uint256", internalType: "uint256" }, { name: "mask", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "getExpiry", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "uint64", internalType: "uint64" } ], stateMutability: "view" }, { type: "function", name: "getParent", inputs: [], outputs: [ { name: "parent", type: "address", internalType: "contract IRegistry" }, { name: "label", type: "string", internalType: "string" } ], stateMutability: "view" }, { type: "function", name: "getResolver", inputs: [ { name: "label", type: "string", internalType: "string" } ], outputs: [ { name: "", type: "address", internalType: "address" } ], stateMutability: "view" }, { type: "function", name: "getResource", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "getState", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "state", type: "tuple", internalType: "struct IPermissionedRegistry.State", components: [ { name: "status", type: "uint8", internalType: "enum IPermissionedRegistry.Status" }, { name: "expiry", type: "uint64", internalType: "uint64" }, { name: "latestOwner", type: "address", internalType: "address" }, { name: "tokenId", type: "uint256", internalType: "uint256" }, { name: "resource", type: "uint256", internalType: "uint256" } ] } ], stateMutability: "view" }, { type: "function", name: "getStatus", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "uint8", internalType: "enum IPermissionedRegistry.Status" } ], stateMutability: "view" }, { type: "function", name: "getSubregistry", inputs: [ { name: "label", type: "string", internalType: "string" } ], outputs: [ { name: "", type: "address", internalType: "contract IRegistry" } ], stateMutability: "view" }, { type: "function", name: "getTokenId", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "grantRoles", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "nonpayable" }, { type: "function", name: "grantRootRoles", inputs: [ { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "nonpayable" }, { type: "function", name: "hasAssignees", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "view" }, { type: "function", name: "hasRoles", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "view" }, { type: "function", name: "hasRootRoles", inputs: [ { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "view" }, { type: "function", name: "isApprovedForAll", inputs: [ { name: "account", type: "address", internalType: "address" }, { name: "operator", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "view" }, { type: "function", name: "latestOwnerOf", inputs: [ { name: "tokenId", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "address", internalType: "address" } ], stateMutability: "view" }, { type: "function", name: "ownerOf", inputs: [ { name: "tokenId", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "address", internalType: "address" } ], stateMutability: "view" }, { type: "function", name: "register", inputs: [ { name: "label", type: "string", internalType: "string" }, { name: "owner", type: "address", internalType: "address" }, { name: "registry", type: "address", internalType: "contract IRegistry" }, { name: "resolver", type: "address", internalType: "address" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "expiry", type: "uint64", internalType: "uint64" } ], outputs: [ { name: "", type: "uint256", internalType: "uint256" } ], stateMutability: "nonpayable" }, { type: "function", name: "renew", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" }, { name: "newExpiry", type: "uint64", internalType: "uint64" } ], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "revokeRoles", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "nonpayable" }, { type: "function", name: "revokeRootRoles", inputs: [ { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "nonpayable" }, { type: "function", name: "roleCount", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "roles", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ], outputs: [ { name: "", type: "uint256", internalType: "uint256" } ], stateMutability: "view" }, { type: "function", name: "safeBatchTransferFrom", inputs: [ { name: "from", type: "address", internalType: "address" }, { name: "to", type: "address", internalType: "address" }, { name: "ids", type: "uint256[]", internalType: "uint256[]" }, { name: "values", type: "uint256[]", internalType: "uint256[]" }, { name: "data", type: "bytes", internalType: "bytes" } ], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "safeTransferFrom", inputs: [ { name: "from", type: "address", internalType: "address" }, { name: "to", type: "address", internalType: "address" }, { name: "id", type: "uint256", internalType: "uint256" }, { name: "value", type: "uint256", internalType: "uint256" }, { name: "data", type: "bytes", internalType: "bytes" } ], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "setApprovalForAll", inputs: [ { name: "operator", type: "address", internalType: "address" }, { name: "approved", type: "bool", internalType: "bool" } ], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "setParent", inputs: [ { name: "parent", type: "address", internalType: "contract IRegistry" }, { name: "label", type: "string", internalType: "string" } ], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "setResolver", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" }, { name: "resolver", type: "address", internalType: "address" } ], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "setSubregistry", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" }, { name: "registry", type: "address", internalType: "contract IRegistry" } ], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "supportsInterface", inputs: [ { name: "interfaceId", type: "bytes4", internalType: "bytes4" } ], outputs: [ { name: "", type: "bool", internalType: "bool" } ], stateMutability: "view" }, { type: "function", name: "unregister", inputs: [ { name: "anyId", type: "uint256", internalType: "uint256" } ], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "uri", inputs: [ { name: "tokenId", type: "uint256", internalType: "uint256" } ], outputs: [ { name: "", type: "string", internalType: "string" } ], stateMutability: "view" }, { type: "event", name: "ApprovalForAll", inputs: [ { name: "account", type: "address", indexed: true, internalType: "address" }, { name: "operator", type: "address", indexed: true, internalType: "address" }, { name: "approved", type: "bool", indexed: false, internalType: "bool" } ], anonymous: false }, { type: "event", name: "EACRolesChanged", inputs: [ { name: "resource", type: "uint256", indexed: true, internalType: "uint256" }, { name: "account", type: "address", indexed: true, internalType: "address" }, { name: "oldRoleBitmap", type: "uint256", indexed: false, internalType: "uint256" }, { name: "newRoleBitmap", type: "uint256", indexed: false, internalType: "uint256" } ], anonymous: false }, { type: "event", name: "ExpiryUpdated", inputs: [ { name: "tokenId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "newExpiry", type: "uint64", indexed: true, internalType: "uint64" }, { name: "sender", type: "address", indexed: true, internalType: "address" } ], anonymous: false }, { type: "event", name: "LabelRegistered", inputs: [ { name: "tokenId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "labelHash", type: "bytes32", indexed: true, internalType: "bytes32" }, { name: "label", type: "string", indexed: false, internalType: "string" }, { name: "owner", type: "address", indexed: false, internalType: "address" }, { name: "expiry", type: "uint64", indexed: false, internalType: "uint64" }, { name: "sender", type: "address", indexed: true, internalType: "address" } ], anonymous: false }, { type: "event", name: "LabelReserved", inputs: [ { name: "tokenId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "labelHash", type: "bytes32", indexed: true, internalType: "bytes32" }, { name: "label", type: "string", indexed: false, internalType: "string" }, { name: "expiry", type: "uint64", indexed: false, internalType: "uint64" }, { name: "sender", type: "address", indexed: true, internalType: "address" } ], anonymous: false }, { type: "event", name: "LabelUnregistered", inputs: [ { name: "tokenId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "sender", type: "address", indexed: true, internalType: "address" } ], anonymous: false }, { type: "event", name: "ParentUpdated", inputs: [ { name: "parent", type: "address", indexed: true, internalType: "contract IRegistry" }, { name: "label", type: "string", indexed: false, internalType: "string" }, { name: "sender", type: "address", indexed: true, internalType: "address" } ], anonymous: false }, { type: "event", name: "ResolverUpdated", inputs: [ { name: "tokenId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "resolver", type: "address", indexed: true, internalType: "address" }, { name: "sender", type: "address", indexed: true, internalType: "address" } ], anonymous: false }, { type: "event", name: "SubregistryUpdated", inputs: [ { name: "tokenId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "subregistry", type: "address", indexed: true, internalType: "contract IRegistry" }, { name: "sender", type: "address", indexed: true, internalType: "address" } ], anonymous: false }, { type: "event", name: "TokenRegenerated", inputs: [ { name: "oldTokenId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "newTokenId", type: "uint256", indexed: true, internalType: "uint256" } ], anonymous: false }, { type: "event", name: "TokenResource", inputs: [ { name: "tokenId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "resource", type: "uint256", indexed: true, internalType: "uint256" } ], anonymous: false }, { type: "event", name: "TransferBatch", inputs: [ { name: "operator", type: "address", indexed: true, internalType: "address" }, { name: "from", type: "address", indexed: true, internalType: "address" }, { name: "to", type: "address", indexed: true, internalType: "address" }, { name: "ids", type: "uint256[]", indexed: false, internalType: "uint256[]" }, { name: "values", type: "uint256[]", indexed: false, internalType: "uint256[]" } ], anonymous: false }, { type: "event", name: "TransferSingle", inputs: [ { name: "operator", type: "address", indexed: true, internalType: "address" }, { name: "from", type: "address", indexed: true, internalType: "address" }, { name: "to", type: "address", indexed: true, internalType: "address" }, { name: "id", type: "uint256", indexed: false, internalType: "uint256" }, { name: "value", type: "uint256", indexed: false, internalType: "uint256" } ], anonymous: false }, { type: "event", name: "URI", inputs: [ { name: "value", type: "string", indexed: false, internalType: "string" }, { name: "id", type: "uint256", indexed: true, internalType: "uint256" } ], anonymous: false }, { type: "error", name: "CannotReduceExpiry", inputs: [ { name: "oldExpiry", type: "uint64", internalType: "uint64" }, { name: "newExpiry", type: "uint64", internalType: "uint64" } ] }, { type: "error", name: "CannotSetPastExpiry", inputs: [ { name: "expiry", type: "uint64", internalType: "uint64" } ] }, { type: "error", name: "EACCannotGrantRoles", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ] }, { type: "error", name: "EACCannotRevokeRoles", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ] }, { type: "error", name: "EACInvalidAccount", inputs: [] }, { type: "error", name: "EACInvalidRoleBitmap", inputs: [ { name: "roleBitmap", type: "uint256", internalType: "uint256" } ] }, { type: "error", name: "EACMaxAssignees", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "role", type: "uint256", internalType: "uint256" } ] }, { type: "error", name: "EACMinAssignees", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "role", type: "uint256", internalType: "uint256" } ] }, { type: "error", name: "EACRootResourceNotAllowed", inputs: [] }, { type: "error", name: "EACUnauthorizedAccountRoles", inputs: [ { name: "resource", type: "uint256", internalType: "uint256" }, { name: "roleBitmap", type: "uint256", internalType: "uint256" }, { name: "account", type: "address", internalType: "address" } ] }, { type: "error", name: "ERC1155InsufficientBalance", inputs: [ { name: "sender", type: "address", internalType: "address" }, { name: "balance", type: "uint256", internalType: "uint256" }, { name: "needed", type: "uint256", internalType: "uint256" }, { name: "tokenId", type: "uint256", internalType: "uint256" } ] }, { type: "error", name: "ERC1155InvalidApprover", inputs: [ { name: "approver", type: "address", internalType: "address" } ] }, { type: "error", name: "ERC1155InvalidArrayLength", inputs: [ { name: "idsLength", type: "uint256", internalType: "uint256" }, { name: "valuesLength", type: "uint256", internalType: "uint256" } ] }, { type: "error", name: "ERC1155InvalidOperator", inputs: [ { name: "operator", type: "address", internalType: "address" } ] }, { type: "error", name: "ERC1155InvalidReceiver", inputs: [ { name: "receiver", type: "address", internalType: "address" } ] }, { type: "error", name: "ERC1155InvalidSender", inputs: [ { name: "sender", type: "address", internalType: "address" } ] }, { type: "error", name: "ERC1155MissingApprovalForAll", inputs: [ { name: "operator", type: "address", internalType: "address" }, { name: "owner", type: "address", internalType: "address" } ] }, { type: "error", name: "LabelAlreadyRegistered", inputs: [ { name: "label", type: "string", internalType: "string" } ] }, { type: "error", name: "LabelAlreadyReserved", inputs: [ { name: "label", type: "string", internalType: "string" } ] }, { type: "error", name: "LabelExpired", inputs: [ { name: "tokenId", type: "uint256", internalType: "uint256" } ] }, { type: "error", name: "LabelIsEmpty", inputs: [] }, { type: "error", name: "LabelIsTooLong", inputs: [ { name: "label", type: "string", internalType: "string" } ] }, { type: "error", name: "TransferDisallowed", inputs: [ { name: "tokenId", type: "uint256", internalType: "uint256" }, { name: "from", type: "address", internalType: "address" } ] } ]; // src/abis/ensv2/UserRegistry.ts var UserRegistry = [ { type: "function", name: "initialize", inputs: [ { name: "admin", type: "address", internalType: "address" }, { name: "roles", type: "uint256", internalType: "uint256" } ], outputs: [], stateMutability: "nonpayable" } ]; // src/abis/ensv2/VerifiableFactory.ts var VerifiableFactory = [ { type: "function", name: "deployProxy", inputs: [ { name: "implementation", type: "address", internalType: "address" }, { name: "salt", type: "uint256", internalType: "uint256" }, { name: "data", type: "bytes", internalType: "bytes" } ], outputs: [], stateMutability: "nonpayable" }, { type: "event", name: "ProxyDeployed", inputs: [ { name: "sender", type: "address", indexed: true, internalType: "address" }, { name: "proxyAddress", type: "address", indexed: true, internalType: "address" }, { name: "salt", type: "uint256", indexed: false, internalType: "uint256" }, { name: "implementation", type: "address", indexed: false, internalType: "address" } ], anonymous: false } ]; // src/abis/root/BaseRegistrar.ts var BaseRegistrar = [ { inputs: [ { internalType: "contract ENS", name: "_ens", type: "address" }, { internalType: "bytes32", name: "_baseNode", type: "bytes32" } ], stateMutability: "nonpayable", type: "constructor" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "approved", type: "address" }, { indexed: true, internalType: "uint256", name: "tokenId", type: "uint256" } ], name: "Approval", type: "event" }, { anonymous: false, inputs: [ {