From 86907836ae4163da93a09d2b6658cad11f3f27ad Mon Sep 17 00:00:00 2001 From: Shredder <110225819+EmperorOrokuSaki@users.noreply.github.com> Date: Mon, 26 Jun 2023 18:13:08 +0330 Subject: [PATCH] feat: dev environment backend setup (#278) * feat: add anvil (qanet) to hardhat config networks. * chore: deploy contract to anvil testnet. * chore: sepolia deployment. * merge: authentication sls. * feat: separate the issignaturevalid function from handlers. * feat: update subgraph config to match the qa network. * feat: add app specific prisma schema to deploy script copy command. * fix: merge conflict * feat: remove unnecessary conditions. --------- Co-authored-by: Nima Rasooli --- contracts/deployments/qanet/FleekERC721.json | 2505 +++++++++ contracts/deployments/qanet/FleekSVG.json | 49 + contracts/deployments/qanet/proxy.json | 8 + .../51265c9b241f9c7af77f823edadaae04.json | 147 + .../deployments/sepolia/FleekERC721.json | 4837 +++++++++-------- contracts/deployments/sepolia/FleekSVG.json | 49 + contracts/deployments/sepolia/proxy.json | 8 + .../51265c9b241f9c7af77f823edadaae04.json | 147 + contracts/hardhat.config.ts | 6 + serverless/package.json | 5 +- serverless/scripts/deploy.sh | 8 +- serverless/serverless.yaml | 5 +- serverless/src/functions/apps/handler.ts | 65 +- serverless/src/functions/builds/handler.ts | 5 +- serverless/src/functions/mints/handler.ts | 55 +- serverless/src/libs/FleekERC721.json | 121 +- serverless/src/libs/bunnyCDN.ts | 2 +- serverless/src/libs/verify-signature.ts | 12 + subgraph/subgraph.yaml | 8 +- 19 files changed, 5594 insertions(+), 2448 deletions(-) create mode 100644 contracts/deployments/qanet/FleekERC721.json create mode 100644 contracts/deployments/qanet/FleekSVG.json create mode 100644 contracts/deployments/qanet/proxy.json create mode 100644 contracts/deployments/qanet/solcInputs/51265c9b241f9c7af77f823edadaae04.json create mode 100644 contracts/deployments/sepolia/FleekSVG.json create mode 100644 contracts/deployments/sepolia/proxy.json create mode 100644 contracts/deployments/sepolia/solcInputs/51265c9b241f9c7af77f823edadaae04.json create mode 100644 serverless/src/libs/verify-signature.ts diff --git a/contracts/deployments/qanet/FleekERC721.json b/contracts/deployments/qanet/FleekERC721.json new file mode 100644 index 0000000..10f8c64 --- /dev/null +++ b/contracts/deployments/qanet/FleekERC721.json @@ -0,0 +1,2505 @@ +{ + "buildId": "51265c9b241f9c7af77f823edadaae04", + "timestamp": "6/16/2023, 8:51:33 AM", + "address": "0x1CfD8455F189c56a4FBd81EB7D4118DB04616BA8", + "transactionHash": "0xe5f32d6a2e2ad61ba2681664eebdec69e09bf64f344190acbb149059c6be01dc", + "gasPrice": 1313624425, + "abi": [ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AccessPointAlreadyExists", + "type": "error" + }, + { + "inputs": [], + "name": "AccessPointCreationStatusAlreadySet", + "type": "error" + }, + { + "inputs": [], + "name": "AccessPointNotExistent", + "type": "error" + }, + { + "inputs": [], + "name": "AccessPointScoreCannotBeLower", + "type": "error" + }, + { + "inputs": [], + "name": "ContractIsNotPausable", + "type": "error" + }, + { + "inputs": [], + "name": "ContractIsNotPaused", + "type": "error" + }, + { + "inputs": [], + "name": "ContractIsPaused", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidTokenIdForAccessPoint", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeAccessPointOwner", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeENSOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "MustBeTokenOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "MustBeTokenVerifier", + "type": "error" + }, + { + "inputs": [], + "name": "MustHaveAtLeastOneOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "role", + "type": "uint8" + } + ], + "name": "MustHaveCollectionRole", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint8", + "name": "role", + "type": "uint8" + } + ], + "name": "MustHaveTokenRole", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "state", + "type": "bool" + } + ], + "name": "PausableIsSetTo", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "requiredValue", + "type": "uint256" + } + ], + "name": "RequiredPayment", + "type": "error" + }, + { + "inputs": [], + "name": "RoleAlreadySet", + "type": "error" + }, + { + "inputs": [], + "name": "ThereIsNoTokenMinted", + "type": "error" + }, + { + "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": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "enum FleekBilling.Billing", + "name": "key", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "price", + "type": "uint256" + } + ], + "name": "BillingChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bool", + "name": "verified", + "type": "bool" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "ChangeAccessPointContentVerify", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "enum FleekAccessPoints.AccessPointCreationStatus", + "name": "status", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "ChangeAccessPointCreationStatus", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bool", + "name": "verified", + "type": "bool" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "ChangeAccessPointNameVerify", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "score", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "ChangeAccessPointScore", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "enum FleekAccessControl.CollectionRoles", + "name": "role", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "address", + "name": "toAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "status", + "type": "bool" + }, + { + "indexed": false, + "internalType": "address", + "name": "byAddress", + "type": "address" + } + ], + "name": "CollectionRoleChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "address", + "name": "value", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "MetadataUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "value", + "type": "string" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "MetadataUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint24", + "name": "value", + "type": "uint24" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "MetadataUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "string[4]", + "name": "value", + "type": "string[4]" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "MetadataUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "bool", + "name": "value", + "type": "bool" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "MetadataUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "NewAccessPoint", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "externalURL", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "ENS", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "commitHash", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "gitRepository", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "ipfsHash", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "logo", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint24", + "name": "color", + "type": "uint24" + }, + { + "indexed": false, + "internalType": "bool", + "name": "accessPointAutoApproval", + "type": "bool" + }, + { + "indexed": true, + "internalType": "address", + "name": "minter", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "verifier", + "type": "address" + } + ], + "name": "NewMint", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bool", + "name": "isPausable", + "type": "bool" + }, + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "PausableStatusChange", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bool", + "name": "isPaused", + "type": "bool" + }, + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "PauseStatusChange", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "RemoveAccessPoint", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "enum FleekAccessControl.TokenRoles", + "name": "role", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "address", + "name": "toAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "status", + "type": "bool" + }, + { + "indexed": false, + "internalType": "address", + "name": "byAddress", + "type": "address" + } + ], + "name": "TokenRoleChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "byAddress", + "type": "address" + } + ], + "name": "TokenRolesCleared", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "byAddress", + "type": "address" + } + ], + "name": "Withdrawn", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "addAccessPoint", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "burn", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "decreaseAccessPointScore", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "getAccessPointJSON", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getAppData", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum FleekBilling.Billing", + "name": "key", + "type": "uint8" + } + ], + "name": "getBilling", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getLastTokenId", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getToken", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "uint24", + "name": "", + "type": "uint24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getTokenVerifier", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum FleekAccessControl.CollectionRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantCollectionRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "enum FleekAccessControl.TokenRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantTokenRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum FleekAccessControl.CollectionRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasCollectionRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "enum FleekAccessControl.TokenRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasTokenRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "increaseAccessPointScore", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_name", + "type": "string" + }, + { + "internalType": "string", + "name": "_symbol", + "type": "string" + }, + { + "internalType": "uint256[]", + "name": "initialBillings", + "type": "uint256[]" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "isAccessPointNameVerified", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "isPausable", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "isPaused", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "isTokenVerified", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "externalURL", + "type": "string" + }, + { + "internalType": "string", + "name": "ens", + "type": "string" + }, + { + "internalType": "string", + "name": "commitHash", + "type": "string" + }, + { + "internalType": "string", + "name": "gitRepository", + "type": "string" + }, + { + "internalType": "string", + "name": "ipfsHash", + "type": "string" + }, + { + "internalType": "string", + "name": "logo", + "type": "string" + }, + { + "internalType": "uint24", + "name": "color", + "type": "uint24" + }, + { + "internalType": "bool", + "name": "accessPointAutoApproval", + "type": "bool" + }, + { + "internalType": "address", + "name": "verifier", + "type": "address" + } + ], + "name": "mint", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "removeAccessPoint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum FleekAccessControl.CollectionRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeCollectionRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "enum FleekAccessControl.TokenRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeTokenRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "_apAutoApproval", + "type": "bool" + } + ], + "name": "setAccessPointAutoApproval", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "internalType": "bool", + "name": "verified", + "type": "bool" + } + ], + "name": "setAccessPointContentVerify", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "internalType": "bool", + "name": "verified", + "type": "bool" + } + ], + "name": "setAccessPointNameVerify", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAccessPoint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum FleekBilling.Billing", + "name": "key", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "setBilling", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "pausable", + "type": "bool" + } + ], + "name": "setPausable", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_commitHash", + "type": "string" + }, + { + "internalType": "string", + "name": "_gitRepository", + "type": "string" + }, + { + "internalType": "string", + "name": "_ipfsHash", + "type": "string" + }, + { + "internalType": "string", + "name": "_domain", + "type": "string" + } + ], + "name": "setTokenBuild", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint24", + "name": "_tokenColor", + "type": "uint24" + } + ], + "name": "setTokenColor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenDescription", + "type": "string" + } + ], + "name": "setTokenDescription", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenENS", + "type": "string" + } + ], + "name": "setTokenENS", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenExternalURL", + "type": "string" + } + ], + "name": "setTokenExternalURL", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenLogo", + "type": "string" + } + ], + "name": "setTokenLogo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenLogo", + "type": "string" + }, + { + "internalType": "uint24", + "name": "_tokenColor", + "type": "uint24" + } + ], + "name": "setTokenLogoAndColor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenName", + "type": "string" + } + ], + "name": "setTokenName", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "verified", + "type": "bool" + } + ], + "name": "setTokenVerified", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "verifier", + "type": "address" + } + ], + "name": "setTokenVerifier", + "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": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "bytecode": "0x60808060405234620000975760cc549060ff8260081c16151560011462000080575061ff0019166101001760cc556040513381526001907f959581ef17eb8c8936ef9832169bc89dbcd1358765adca8ca81f28b416bb5efa90602090a26200006662000148565b620000706200009d565b604051615c429081620001c38239f35b632e15c5c160e21b81526001600482015260249150fd5b50600080fd5b60005460ff8160081c16620000f15760ff80821610620000ba5750565b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a1565b505060405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b60cc5460ff8116620001ae5760ff8160081c16156200019a5760019060ff19161760cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b5050604051635970d9f560e11b8152600490fd5b50506040516306d39fcd60e41b8152600490fdfe6040608081526004361015610015575b50600080fd5b600090813560e01c806301468deb1461090657806301ffc9a7146108ea57806302dba24d146108ce57806306fdde03146108b2578063081812fc14610896578063095ea7b31461087e5780630a212d2f1461086657806323b872dd1461084e578063246a908b1461083657806327dc5cec1461081a5780632d957aad14610802578063355c5561146107db5780633ccfd60b146107c45780633d01ff4d146107975780633e2332051461077f5780633f4ba83a1461076857806342842e0e1461075057806342966c681461073957806342e44bbf1461072157806349aa155e146107095780635aa6ab3b146106f15780636352211e146106d557806370a08231146106b957806372c299c414610684578063736d323a1461066d5780637469a03b1461065657806378278cca1461063e57806383c4c00d146106135780638456cb59146105fc5780638a2e25be146105e45780638c3c0a44146105cc57806394ec65c5146105b557806395d89b4114610599578063a09a160114610569578063a22cb46514610551578063a27d0b2714610539578063a397c83014610522578063a7ef6a9714610507578063aad045a2146104ef578063b187bd26146104c3578063b20b94f1146104ab578063b30437a014610498578063b42dbe3814610438578063b88d4fde1461041d578063b948a3c514610405578063ba4c458a146103ed578063c87b56dd146103c6578063cdb0e89e146103ae578063d7a75be114610392578063e4b50cb814610362578063e94472501461033e578063e985e9c5146102e6578063eb5fd26b146102ce578063f4fe5f0c1461029d5763f93151771461027f575061000f565b346102995761029661029036610be4565b90613741565b51f35b5080fd5b5034610299576102ca91506102b96102b436610a47565b6146b7565b905190151581529081906020820190565b0390f35b5034610299576102966102e03661120a565b90613e4b565b5034610299576102ca91506102b9610337610320610303366111f2565b6001600160a01b039091166000908152606a602052604090209091565b9060018060a01b0316600052602052604060002090565b5460ff1690565b5034610299576102ca91506102b961033761032061035b36610c4d565b9190611d21565b5034610299576102ca915061037e61037936610a47565b6134bd565b949795969390939291925197889788611182565b5034610299576102ca91506102b96103a936610c23565b611f77565b5034610299576102966103c036610be4565b906139de565b5034610299576102ca91506103e26103dd36610a47565b612ffa565b905191829182610a36565b5034610299576102966103ff366110c1565b9161211d565b50346102995761029661041736610be4565b90613cd2565b50346102995761029661042f36611067565b9291909161184a565b5034610299576102ca91506102b96103376104936103206104583661094d565b939091610484610472826000526099602052604060002090565b5491600052609a602052604060002090565b90600052602052604060002090565b611d5d565b506102966104a536610be4565b906146ef565b5034610299576102966104bd36610e87565b90614c34565b5034610299576102ca91506104d7366109ce565b60cc54905160ff909116151581529081906020820190565b50346102995761029661050136610ec2565b90614a8f565b50346102995761029661051936610fe4565b9392909261406b565b50346102995761029661053436610c23565b61208e565b50346102995761029661054b3661094d565b91614eb6565b50346102995761029661056336610fcc565b90611696565b5034610299576102ca915061057d366109ce565b60cc54905160089190911c60ff16151581529081906020820190565b5034610299576102ca91506105ad366109ce565b6103e2611499565b5034610299576102966105c736610c23565b611fbf565b5034610299576102966105de36610c4d565b90614fc5565b5034610299576102966105f636610f8c565b91614b38565b50346102995761060b366109ce565b61029661516f565b5034610299576102ca9150610627366109ce565b61062f613625565b90519081529081906020820190565b50346102995761029661065036610f59565b91613923565b50346102995761029661066836610c23565b6149ab565b50346102995761029661067f36610f3d565b615238565b5034610299576102ca91506106a061069b36610a47565b614500565b90516001600160a01b0390911681529081906020820190565b5034610299576102ca915061062f6106d036610f25565b61122d565b5034610299576102ca91506106a06106ec36610a47565b6112f3565b50346102995761029661070336610ee2565b91613f08565b50346102995761029661071b36610ec2565b9061453f565b50346102995761029661073336610e87565b90614d27565b50346102995761029661074b36610a47565b6141e8565b50346102995761029661076236610a94565b91611810565b503461029957610777366109ce565b6102966151db565b50346102995761029661079136610e6f565b906152ae565b5034610299576102ca91506107b36107ae36610a47565b61356c565b929593949190915195869586610e14565b5034610299576107d3366109ce565b6102966152c0565b506102ca915061062f6107ed36610cc4565b9b9a909a999199989298979397969496612913565b50346102995761029661081436610c4d565b90614dc7565b5034610299576102ca91506103e261083136610c23565b611dc1565b50346102995761029661084836610be4565b90613b54565b50346102995761029661086036610a94565b916117c2565b50346102995761029661087836610a78565b906143ef565b50346102995761029661089036610a59565b90611532565b5034610299576102ca91506106a06108ad36610a47565b611658565b5034610299576102ca91506108c6366109ce565b6103e26113e2565b5034610299576102ca915061062f6108e5366109b6565b612103565b5034610299576102ca91506102b961090136610994565b613652565b5034610299576102966109183661094d565b916150a6565b6001600160a01b038116141561000f57565b6004359061093d8261091e565b565b610164359061093d8261091e565b606090600319011261000f5760043590602435600181101561097957906044356109768161091e565b90565b505050600080fd5b6001600160e01b03198116141561000f57565b602090600319011261000f5760043561097681610981565b6002111561000f57565b602090600319011261000f57600435610976816109ac565b600090600319011261000f57565b918091926000905b8282106109fc5750116109f5575050565b6000910152565b915080602091830151818601520182916109e4565b90602091610a2a815180928185528580860191016109dc565b601f01601f1916010190565b906020610976928181520190610a11565b602090600319011261000f5760043590565b604090600319011261000f57600435610a718161091e565b9060243590565b604090600319011261000f57600435906024356109768161091e565b606090600319011261000f57600435610aac8161091e565b90602435610ab98161091e565b9060443590565b50634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b03821117610af257604052565b610afa610ac0565b604052565b90601f801991011681019081106001600160401b03821117610af257604052565b60405190608082018281106001600160401b03821117610af257604052565b6040519060c082018281106001600160401b03821117610af257604052565b6020906001600160401b038111610b7b575b601f01601f19160190565b610b83610ac0565b610b70565b929192610b9482610b5e565b91610ba26040519384610aff565b829481845281830111610bbf578281602093846000960137010152565b5050505050600080fd5b9080601f830112156109795781602061097693359101610b88565b906040600319830112610c1c5760043591602435906001600160401b038211610c135761097691600401610bc9565b50505050600080fd5b5050600080fd5b6020600319820112610c1c57600435906001600160401b0382116109795761097691600401610bc9565b604090600319011261000f57600435610c65816109ac565b906024356109768161091e565b9181601f84011215610979578235916001600160401b038311610c13576020838186019501011161097957565b610124359062ffffff8216821415610c1c57565b6101443590811515821415610c1c57565b90610180600319830112610c1c57610cda610930565b91602435906001600160401b03808311610bbf57610cfc826004948501610bc9565b93604435828111610e085783610d13918601610bc9565b93606435838111610dfb5784610d2a918301610bc9565b93608435848111610ded5781610d41918401610c72565b9490949360a435828111610ddd5783610d5b918601610bc9565b9360c435838111610dcc5784610d72918301610bc9565b9360e435848111610dba5781610d89918401610bc9565b9361010435908111610dba57610d9f9201610bc9565b90610da8610c9f565b90610db1610cb3565b9061097661093f565b50505050505050505050505050600080fd5b505050505050505050505050600080fd5b5050505050505050505050600080fd5b505050505050505050600080fd5b5050505050505050600080fd5b50505050505050600080fd5b93906109769593610e45610e6194610e37610e539460a08a5260a08a0190610a11565b9088820360208a0152610a11565b908682036040880152610a11565b908482036060860152610a11565b916080818403910152610a11565b604090600319011261000f57600435610a71816109ac565b6040600319820112610c1c57600435906001600160401b03821161097957610eb191600401610bc9565b906024358015158114156109795790565b604090600319011261000f57600435906024358015158114156109795790565b906060600319830112610c1c5760043591602435906001600160401b038211610c1357610f1191600401610bc9565b9060443562ffffff8116811415610c135790565b602090600319011261000f576004356109768161091e565b602090600319011261000f57600435801515811415610c1c5790565b906040600319830112610c1c5760043591602435906001600160401b038211610c1357610f8891600401610c72565b9091565b906060600319830112610c1c5760043591602435906001600160401b038211610c1357610fbb91600401610bc9565b90604435801515811415610c135790565b604090600319011261000f57600435610eb18161091e565b9060a0600319830112610c1c57600435916001600160401b0390602435828111610bbf578161101591600401610bc9565b9260443583811161105c578261102d91600401610bc9565b92606435818111610e08578361104591600401610bc9565b92608435918211610e085761097691600401610bc9565b505050505050600080fd5b906080600319830112610c1c576004356110808161091e565b9160243561108d8161091e565b9160443591606435906001600160401b03821161105c578060238301121561105c5781602461097693600401359101610b88565b906060600319830112610c1c576001600160401b0390600435828111610c1357836110ee91600401610bc9565b92602435838111610bbf578161110691600401610bc9565b926044359181831161105c578060238401121561105c578260040135918211611175575b8160051b6040519360209361114185840187610aff565b8552602484860192820101928311610dfb57602401905b828210611166575050505090565b81358152908301908301611158565b61117d610ac0565b61112a565b959062ffffff946111ca6111eb956111bc60c099966111ae6111d8969d9e9d60e08e8181520190610a11565b8c810360208e015290610a11565b908a820360408c0152610a11565b9088820360608a0152610a11565b91608087015285820360a0870152610a11565b9416910152565b604090600319011261000f57600435610c658161091e565b604090600319011261000f576004359060243562ffffff81168114156109795790565b6001600160a01b0316801561124d57600052606860205260406000205490565b505060405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608490fd5b156112ad57565b5060405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606490fd5b6000908152606760205260409020546001600160a01b03166109768115156112a6565b90600182811c92168015611348575b602083101461133057565b5050634e487b7160e01b600052602260045260246000fd5b91607f1691611325565b906000929180549161136383611316565b9182825260019384811690816000146113c55750600114611385575b50505050565b90919394506000526020928360002092846000945b8386106113b157505050500101903880808061137f565b80548587018301529401938590820161139a565b60ff1916602084015250506040019350389150819050808061137f565b60405190600082606554916113f683611316565b8083529260019081811690811561147c575060011461141d575b5061093d92500383610aff565b6065600090815291507f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c75b848310611461575061093d935050810160200138611410565b81935090816020925483858a01015201910190918592611448565b94505050505060ff1916602083015261093d826040810138611410565b60405190600082606654916114ad83611316565b8083529260019081811690811561147c57506001146114d3575061093d92500383610aff565b6066600090815291507f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e943545b848310611517575061093d935050810160200138611410565b81935090816020925483858a010152019101909185926114fe565b9061153c816112f3565b6001600160a01b0381811690841681146116055733149081156115d7575b50156115695761093d91611b34565b505060405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260849150fd5b6001600160a01b03166000908152606a6020526040902060ff91506115fd903390610320565b54163861155a565b5050505050608460405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152fd5b60008181526067602052604090205461167b906001600160a01b031615156112a6565b6000908152606960205260409020546001600160a01b031690565b6001600160a01b038116919033831461171757816116d66116e79233600052606a60205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405190151581527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3565b50505050606460405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b1561176657565b5060405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608490fd5b9061093d92916117da6117d584336118e6565b61175f565b6119b9565b60405190602082018281106001600160401b03821117611803575b60405260008252565b61180b610ac0565b6117fa565b909161093d9260405192602084018481106001600160401b0382111761183d575b6040526000845261184a565b611845610ac0565b611831565b9061186e93929161185e6117d584336118e6565b6118698383836119b9565b611c40565b1561187557565b5060405162461bcd60e51b81528061188f60048201611893565b0390fd5b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b6001600160a01b03806118f8846112f3565b16928183169284841494851561192e575b50508315611918575b50505090565b61192491929350611658565b1614388080611912565b6000908152606a602090815260408083206001600160a01b03949094168352929052205460ff1693503880611909565b1561196557565b5060405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b6119dd906119c6846112f3565b6001600160a01b038281169390918216841461195e565b8316928315611ade57611a5b826119f88784611ab596613696565b611a1a85611a14611a088a6112f3565b6001600160a01b031690565b1461195e565b611a41611a31886000526069602052604060002090565b80546001600160a01b0319169055565b6001600160a01b0316600090815260686020526040902090565b80546000190190556001600160a01b038116600090815260686020526040902060018154019055611a96856000526067602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4565b505050505050608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152fd5b600082815260696020526040902080546001600160a01b0319166001600160a01b0383161790556001600160a01b0380611b6d846112f3565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b60009081526067602052604090205461093d906001600160a01b031615156112a6565b90816020910312610c1c575161097681610981565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261097692910190610a11565b506040513d6000823e3d90fd5b3d15611c3b573d90611c2182610b5e565b91611c2f6040519384610aff565b82523d6000602084013e565b606090565b92909190823b15611cef57611c73926020926000604051809681958294630a85bd0160e11b9a8b85523360048601611bd2565b03926001600160a01b03165af160009181611ccf575b50611cc157505050611c99611c10565b80519081611cbc57505060405162461bcd60e51b81528061188f60048201611893565b602001fd5b6001600160e01b0319161490565b611ce8919250611cdf3d82610aff565b3d810190611bbd565b9038611c89565b50505050600190565b50634e487b7160e01b600052602160045260246000fd5b60021115611d1957565b61093d611cf8565b611d2a81611d0f565b6000526098602052604060002090565b611d4381611d0f565b6000526097602052604060002090565b60011115611d1957565b906001811015611d76575b600052602052604060002090565b611d7e611cf8565b611d68565b90611d96602092828151948592016109dc565b0190565b6020611db39181604051938285809451938492016109dc565b810161013081520301902090565b6001600160a01b0390816002611dd683611d9a565b015460101c1615611f6257611dea90611d9a565b908154611df6906157f6565b906001830154611e05906157f6565b92600201548060081c60ff16611e1a90615a92565b91611e2760ff8316615a92565b908260101c16611e36906159dd565b9160b01c60ff16611e4681614877565b611e4f906157f6565b604051607b60f81b60208201529586959194916021870169113a37b5b2b724b2111d60b11b8152600a01611e8291611d83565b611e8b906157e9565b671139b1b7b932911d60c11b8152600801611ea591611d83565b611eae906157e9565b6e113730b6b2ab32b934b334b2b2111d60891b8152600f01611ecf91611d83565b611ed8906157e9565b711131b7b73a32b73a2b32b934b334b2b2111d60711b8152601201611efc91611d83565b611f05906157e9565b681137bbb732b9111d1160b91b8152600901611f2091611d83565b61088b60f21b8152600201681139ba30ba3ab9911d60b91b8152600901611f4691611d83565b607d60f81b815260010103601f19810182526109769082610aff565b5050604051630d436c3560e21b815260049150fd5b6001600160a01b036002611f8a83611d9a565b015460101c1615611fab576002611fa260ff92611d9a565b015460081c1690565b5050604051630d436c3560e21b8152600490fd5b6001600160a01b036002611fd283611d9a565b015460101c1615611fab576001611fe882611d9a565b01611ff3815461205a565b9055611ffe81611d9a565b547f3ea1c0fcf71b86fca8f96ccac3cf26fba8983d3bbbe7bd720f1865d67fbaee4361203e600161202e85611d9a565b0154604051918291339683612072565b0390a3565b50634e487b7160e01b600052601160045260246000fd5b600190600019811461206a570190565b611d96612043565b929190612089602091604086526040860190610a11565b930152565b6001600160a01b0360026120a183611d9a565b015460101c1615611fab5760016120b782611d9a565b0154156120d45760016120c982611d9a565b01611ff381546120e8565b50506040516341f3125f60e11b8152600490fd5b80156120f6575b6000190190565b6120fe612043565b6120ef565b61210c81611d0f565b60005260fe60205260406000205490565b90916000549260ff8460081c16158094819561223f575b811561221f575b50156121bf576121619284612158600160ff196000541617600055565b6121a65761224d565b61216757565b61217761ff001960005416600055565b604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1565b6121ba61010061ff00196000541617600055565b61224d565b5050505050608460405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b303b15915081612231575b503861213b565b6001915060ff16143861222a565b600160ff8216109150612134565b92919061226a60ff60005460081c166122658161238f565b61238f565b83516001600160401b038111612382575b61228f8161228a606554611316565b612407565b602080601f83116001146122ec575090806122cc93926122d996976000926122e1575b50508160011b916000199060031b1c1916176065556124f8565b6122d46126cb565b612845565b61093d615327565b0151905038806122b2565b90601f1983169661231f60656000527f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c790565b926000905b89821061236a5750509183916001936122cc96956122d9999a10612351575b505050811b016065556124f8565b015160001960f88460031b161c19169055388080612343565b80600185968294968601518155019501930190612324565b61238a610ac0565b61227b565b1561239657565b5060405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b8181106123fb575050565b600081556001016123f0565b90601f8211612414575050565b61093d9160656000527f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c7906020601f840160051c8301931061245e575b601f0160051c01906123f0565b9091508190612451565b90601f8211612475575050565b61093d9160666000527f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e94354906020601f840160051c8301931061245e57601f0160051c01906123f0565b9190601f81116124cd57505050565b61093d926000526020600020906020601f840160051c8301931061245e57601f0160051c01906123f0565b9081516001600160401b0381116125e2575b61251e81612519606654611316565b612468565b602080601f831160011461255a575081929360009261254f575b50508160011b916000199060031b1c191617606655565b015190503880612538565b90601f1983169461258d60666000527f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e9435490565b926000905b8782106125ca5750508360019596106125b1575b505050811b01606655565b015160001960f88460031b161c191690553880806125a6565b80600185968294968601518155019501930190612592565b6125ea610ac0565b61250a565b91909182516001600160401b0381116126be575b612617816126118454611316565b846124be565b602080601f8311600114612653575081929394600092612648575b50508160011b916000199060031b1c1916179055565b015190503880612632565b90601f1983169561266985600052602060002090565b926000905b8882106126a65750508360019596971061268d575b505050811b019055565b015160001960f88460031b161c19169055388080612683565b8060018596829496860151815501950193019061266e565b6126c6610ac0565b612603565b60006126dd60ff825460081c1661238f565b808052609860209081526040808320336000908152908352819020549192909160ff16612811578080526098835281812033600090815260209190915260409020612730905b805460ff19166001179055565b808052609783528181206127448154612825565b905581516001815233602082018190527faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a949183908690604090a36001825260988152828220336000908152602091909152604090205460ff166127fc579181609760019485849552609881526127d2612723338686209060018060a01b0316600052602052604060002090565b85835252206127e18154612825565b9055516001815233602082018190529290806040810161203e565b5050516397b705ed60e01b8152600492509050fd5b50516397b705ed60e01b8152600492509050fd5b600190600119811161206a570190565b600290600219811161206a570190565b9061285760ff60005460081c1661238f565b60005b82518110156128a4578061287061289292611d0f565b8351811015612897575b61288d60208260051b86010151826128c0565b61205a565b61285a565b61289f6128a9565b61287a565b509050565b50634e487b7160e01b600052603260045260246000fd5b6040907f6819853ffee8927169953e7bdc42aaba347fb03ff918a45bfccaf88626d90096926128ee82611d0f565b8160005260fe60205280836000205582519161290981611d0f565b82526020820152a1565b9496919792989b999093959b612927612f74565b600160005260986020526129656129616103378d7fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa610320565b1590565b612aef578a938c9389612ae0575b610163549e8f9a6129848c8b612e45565b8d8d8d6101635461299490612825565b610163556129ad90600052610164602052604060002090565b906129b88c836125ef565b6129c590600183016125ef565b6129d282600283016125ef565b6129e0838e60038401612b1d565b6129ed87600483016125ef565b60058101805462ffffff191662ffffff8a1617905560006006820155612a11610b20565b918483528560208401528660408401526060830152600701612a3c9060008052602052604060002090565b90612a4691612bea565b6040519a8b9a600160a01b60019003169e339e612a639b8d612d2a565b037f11d53b6a608f8a1150f88cdb3e563af3830dd531f39be8e1cdaa8cc8b43d77b491a4612a9c83600052610165602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055612ace82600052610166602052604060002090565b805460ff191690556109769082612f50565b612aea8a8a615368565b612973565b505050505050505050505050505060405163070198dd60e51b81528061188f60048201906001602083019252565b9092916001600160401b038111612bdd575b612b3d816126118454611316565b6000601f8211600114612b765781929394600092612b6b5750508160011b916000199060031b1c1916179055565b013590503880612632565b601f19821694612b8b84600052602060002090565b91805b878110612bc5575083600195969710612bab57505050811b019055565b0135600019600384901b60f8161c19169055388080612683565b90926020600181928686013581550194019101612b8e565b612be5610ac0565b612b2f565b91909182519283516001600160401b038111612cfc575b612c1581612c0f8554611316565b856124be565b6020948590601f8311600114612c835761093d95968360609460039694612c5e94600092612c78575b50508160011b9160001990881b1c19161786555b820151600186016125ef565b612c6f6040820151600286016125ef565b015191016125ef565b015190503880612c3e565b90601f19831691612c9986600052602060002090565b9260005b818110612ce557508460039694612c5e9461093d9a9b9460609860019510612ccd575b505050811b018655612c52565b0151600019838a1b60f8161c19169055388080612cc0565b929389600181928786015181550195019301612c9d565b612d04610ac0565b612c01565b908060209392818452848401376000828201840152601f01601f1916010190565b9790612de897612da59b9e9d9b61093d9d98612d978c612dde9a6101409f999a612d89612dcf9c612d7b612dc19c612d6d612db39c610160808a52890190610a11565b908782036020890152610a11565b908582036040870152610a11565b926060818503910152612d09565b8c810360808e015290610a11565b908a820360a08c0152610a11565b9088820360c08a0152610a11565b9086820360e0880152610a11565b62ffffff909916610100850152565b1515610120830152565b6001600160a01b03909216910152565b15612dff57565b5060405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b6001600160a01b038116908115612f0857600083815260676020526040902054612ede9190612e80906001600160a01b031615155b15612df8565b612e88615349565b600084815260676020526040902054612eab906001600160a01b03161515612e7a565b6001600160a01b038116600090815260686020526040902060018154019055611a96846000526067602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef81604051a4565b50505050606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b9061093d9160005261013160205260406000209060ff801983541691151516179055565b6000805260fe6020527f32796e36004994222362c2f9423d5e208bb848170964890784a8d59ed40f50af5434811415612faa5750565b6024915060405190635f7e28df60e01b82526004820152fd5b600160005260fe6020527f457c8a48b4735f56b938837eb0a8a5f9c55f23c1a85767ce3b65c3e59d3d32b75434811415612faa5750565b60008181526067602052604090205461301d906001600160a01b031615156112a6565b613026816112f3565b90600090815260206101318152604060ff818420541692610166835260ff82822054169061016484528281209461309984519761306289610ad7565b601d89527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000878a01526001600160a01b03166159dd565b926003870160058801926130dd856130bc6130b7875462ffffff1690565b615ad8565b8b8a51938492839263891c235f60e01b845288600482019160048601615725565b038173__$ecf603b2c2aa531f37c90ec146d2a3e91a$__5af49586156134b0575b8096613486575b505061311090615a92565b9161311a90615a92565b90600789019160068a0154938361313c86809690600052602052604060002090565b946131509190600052602052604060002090565b6001019461315d906157f6565b955462ffffff1661316d90615ad8565b9689519b8c998c8b0161318890600190607b60f81b81520190565b67113730b6b2911d1160c11b81526008016131a3908361576d565b61088b60f21b81526002016e113232b9b1b934b83a34b7b7111d1160891b8152600f016131d3906001840161576d565b61088b60f21b8152600201681137bbb732b9111d1160b91b81526009016131f991611d83565b61088b60f21b81526002016f1132bc3a32b93730b62fbab936111d1160811b81526010016132299160020161576d565b61088b60f21b8152600201681134b6b0b3b2911d1160b91b815260090161324f91611d83565b61088b60f21b81526002017f226163636573735f706f696e745f6175746f5f617070726f76616c223a0000008152601d0161328991611d83565b613292906157e9565b6a113b32b934b334b2b2111d60a91b8152600b016132af91611d83565b6132b8906157e9565b6e2261747472696275746573223a205b60881b8152600f017f7b2274726169745f74797065223a2022454e53222c202276616c7565223a22008152601f016132ff9161576d565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a2022436f6d6d69742048617368222c20227681526630b63ab2911d1160c91b602082015260270161334a9161576d565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a20225265706f7369746f7279222c20227661815265363ab2911d1160d11b60208201526026016133949161576d565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a202256657273696f6e222c202276616c7565815262111d1160e91b60208201526023016133db91611d83565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a2022436f6c6f72222c202276616c7565223a8152601160f91b602082015260210161342091611d83565b61227d60f01b8152600201605d60f81b8152600101607d60f81b81526001010392601f199384810182526134549082610aff565b61345d906155ec565b9051938492830161346d91611d83565b61347691611d83565b0390810182526109769082610aff565b613110929650906134a8913d90823e61349f3d82610aff565b3d8101906156c7565b949038613105565b6134b8611c03565b6130fe565b6000818152606760205260409020546134e0906001600160a01b031615156112a6565b60005261016460205260409081600020600681015462ffffff600583015416938051613517816135108187611352565b0382610aff565b94815161352b816135108160018901611352565b9460046135688451613544816135108160028c01611352565b96613510865161355b816135108160038701611352565b9796518094819301611352565b9190565b60008181526067602052604090205461358f906001600160a01b031615156112a6565b600052610164602052604080600020906135b162ffffff600584015416615ad8565b90600683015460005260078301602052600281600020019361351061097683516135df81613510818a611352565b96600461360a60036135fa8a6135108a518094819301611352565b9861351088518094819301611352565b95945192838092611352565b600181106120f6576000190190565b61016354801561363e57600181106120f6576000190190565b50506040516327e4ec1b60e21b8152600490fd5b63ffffffff60e01b166380ac58cd60e01b8114908115613685575b8115613677575090565b6301ffc9a760e01b14919050565b635b5e139f60e01b8114915061366d565b9061369f615349565b6001600160a01b03918216151580806136df575b156136c45750505061093d906136ea565b6136cd57505050565b16156136d65750565b61093d906136ea565b5082821615156136b3565b80600052609960205260406000206001815481198111613734575b0190557f8c7eb22d1ba10f86d9249f2a8eb0e3e35b4f0b2f21f92dea9ec25a4d84b20fa06020604051338152a2565b61373c612043565b613705565b61374a816112f3565b6001600160a01b0316331415613886575b60008181526067602052604090205461377e906001600160a01b031615156112a6565b8060005260206101648152600260406000200190835180916001600160401b038211613879575b6137b9826137b38654611316565b866124be565b80601f831160011461380b5750600091613800575b508160011b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613894565b9050840151386137ce565b9150601f19831661382185600052602060002090565b926000905b8282106138615750509083600194939210613848575b5050811b0190556137e2565b86015160001960f88460031b161c19169055388061383c565b80600185968294968c01518155019501930190613826565b613881610ac0565b6137a5565b61388f816138c7565b61375b565b9060806109769260408152600b60408201526a195e1d195c9b985b15549360aa1b60608201528160208201520190610a11565b600081815260996020908152604080832054609a83528184209084528252808320838052825280832033845290915281205460ff1615613905575050565b604492506040519163158eff0360e21b835260048301526024820152fd5b9061203e600080516020615bdf83398151915291613940846112f3565b6001600160a01b03163314156139d0575b61395b8582615368565b60008481526067602052604090205461397e906001600160a01b031615156112a6565b6139a08582600361399a88600052610164602052604060002090565b01612b1d565b604051918291604083526003604084015262454e5360e81b60608401526080602084015233966080840191612d09565b6139d9846138c7565b613951565b6139e7816112f3565b6001600160a01b0316331415613b1a575b600081815260676020526040902054613a1b906001600160a01b031615156112a6565b8060005260206101648152604060002090835180916001600160401b038211613b0d575b613a4d826137b38654611316565b80601f8311600114613a9f5750600091613a94575b508160011b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613b28565b905084015138613a62565b9150601f198316613ab585600052602060002090565b926000905b828210613af55750509083600194939210613adc575b5050811b019055613a76565b86015160001960f88460031b161c191690553880613ad0565b80600185968294968c01518155019501930190613aba565b613b15610ac0565b613a3f565b613b23816138c7565b6139f8565b906080610976926040815260046040820152636e616d6560e01b60608201528160208201520190610a11565b613b5d816112f3565b6001600160a01b0316331415613c91575b600081815260676020526040902054613b91906001600160a01b031615156112a6565b8060005260206101648152600180604060002001918451906001600160401b038211613c84575b613bc6826137b38654611316565b80601f8311600114613c19575081928291600093613c0e575b501b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613c9f565b870151925038613bdf565b9082601f198116613c2f87600052602060002090565b936000905b87838310613c6a5750505010613c51575b5050811b019055613bf0565b86015160001960f88460031b161c191690553880613c45565b8b8601518755909501949384019386935090810190613c34565b613c8c610ac0565b613bb8565b613c9a816138c7565b613b6e565b9060806109769260408152600b60408201526a3232b9b1b934b83a34b7b760a91b60608201528160208201520190610a11565b613cdb816112f3565b6001600160a01b0316331415613e11575b600081815260676020526040902054613d0f906001600160a01b031615156112a6565b8060005260206101648152600460406000200190835180916001600160401b038211613e04575b613d44826137b38654611316565b80601f8311600114613d965750600091613d8b575b508160011b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613e1f565b905084015138613d59565b9150601f198316613dac85600052602060002090565b926000905b828210613dec5750509083600194939210613dd3575b5050811b019055613d6d565b86015160001960f88460031b161c191690553880613dc7565b80600185968294968c01518155019501930190613db1565b613e0c610ac0565b613d36565b613e1a816138c7565b613cec565b906080610976926040815260046040820152636c6f676f60e01b60608201528160208201520190610a11565b613e54816112f3565b6001600160a01b0316331415613efa575b600081815260676020526040902054613e88906001600160a01b031615156112a6565b600081815261016460205260409020600501805462ffffff191662ffffff841617905562ffffff6040519260408452600560408501526431b7b637b960d91b60608501521660208301527f7a3039988e102050cb4e0b6fe203e58afd9545e192ef2ca50df8d14ee2483e7e60803393a3565b613f03816138c7565b613e65565b92919092613f15816112f3565b6001600160a01b031633141561405d575b600081815260676020526040902054613f49906001600160a01b031615156112a6565b80600052602093610164855260046040600020018151956001600160401b038711614050575b613f7d876126118454611316565b80601f8811600114613fdf5750958061093d9697600091613fd4575b508160011b916000199060031b1c19161790555b81600080516020615bdf83398151915260405180613fcc339582613e1f565b0390a3613e4b565b905083015138613f99565b90601f198816613ff484600052602060002090565b926000905b82821061403857505091889161093d98996001941061401f575b5050811b019055613fad565b85015160001960f88460031b161c191690553880614013565b80600185968294968a01518155019501930190613ff9565b614058610ac0565b613f6f565b614066816138c7565b613f26565b92909391614078846112f3565b6001600160a01b031633141561416b575b6000848152606760205260409020546140ac906001600160a01b031615156112a6565b6141216140b7610b20565b86815282602082015283604082015284606082015261411c60076140e688600052610164602052604060002090565b0160066140fe89600052610164602052604060002090565b019061410a825461205a565b80925590600052602052604060002090565b612bea565b614129610b20565b9485526020850152604084015260608301527fc34cc0b39823c062f2d31bfcde1d16c45decb5d1378a2f63942221b5d39dfbf06040518061203e339582614179565b614174846138c7565b614089565b604081526005604082015264189d5a5b1960da1b6060820152608081019060209160808383015291610100820193926000905b600482106141bc57505050505090565b909192939483806141d9600193607f198982030186528951610a11565b970192019201909392916141ac565b6141f1816112f3565b6001600160a01b03908116331415614312576000818392614211846112f3565b614219615349565b161515808061430b575b83146142f45750614233836136ea565b61423c836112f3565b614253611a31856000526069602052604060002090565b6001600160a01b038116600090815260686020526040902083198154019055614289611a31856000526067602052604060002090565b167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef82604051a46142d060026142ca83600052610164602052604060002090565b0161432c565b6142d75750565b6142ef61093d91600052610164602052604060002090565b6143a7565b6142fd57614233565b614306836136ea565b614233565b5082614223565b5060249150604051906355d2292f60e11b82526004820152fd5b6109769054611316565b6001600160fe1b03811160011661434e575b60021b90565b614356612043565b614348565b6143658154611316565b908161436f575050565b81601f60009311600114614381575055565b8183526020832061439d91601f0160051c8101906001016123f0565b8160208120915555565b60066000916143b58161435b565b6143c16001820161435b565b6143cd6002820161435b565b6143d96003820161435b565b6143e56004820161435b565b8260058201550155565b6143f8816112f3565b6001600160a01b03163314156144e5576001600160a01b03821660009081527fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa602052604090205460ff16156144c95761445181611b9a565b61446a82611a9683600052610165602052604060002090565b60408051818152600891810191909152673b32b934b334b2b960c11b60608201526001600160a01b03909216602083015233917f967cd1f911fe3c627b223c427ab2e2a18d89bef4a19ba762b552fd5fbc1033aa90806080810161203e565b505060405163070198dd60e51b81526001600482015260249150fd5b905060249150604051906355d2292f60e11b82526004820152fd5b600081815260676020526040902054614523906001600160a01b031615156112a6565b600090815261016560205260409020546001600160a01b031690565b614547614611565b8060005261016560205260409160018060a01b038360002054163314156145f85760008281526067602052604090205461458b906001600160a01b031615156112a6565b816000526101666020526145ae81846000209060ff801983541691151516179055565b6008835193808552840152671d995c9a599a595960c21b6060840152151560208301527e91a55492d3e3f4e2c9b36ff4134889d9118003521f9d531728503da510b11f60803393a3565b509060249250519063926e6e9960e01b82526004820152fd5b3360009081527fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa602052604090205460ff161561464a57565b5060405163070198dd60e51b815260016004820152602490fd5b3360009081527fddaeee8e61001dbcfaf4f92c6943552c392a86665d734d3c1905d7b3c23b1b1e602052604090205460ff161561469d57565b5060405163070198dd60e51b815260006004820152602490fd5b6000818152606760205260409020546146da906001600160a01b031615156112a6565b60005261016660205260ff6040600020541690565b6146f7615349565b6146ff612fc3565b600081815260676020526040902054614722906001600160a01b031615156112a6565b6001600160a01b03614749600261473885611d9a565b015460101c6001600160a01b031690565b16614862577fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe890604051817f8140554c907b4ba66a04ea1f43b882cba992d3db4cd5c49298a56402d7b36ca23392806147a28882610a36565b0390a36147bd61033782600052610131602052604060002090565b1561481757614812906148046147d1610b3f565b828152600060208201819052604082018190526060820152336080820152600160a08201526147ff86611d9a565b614881565b60405191829133958361495d565b0390a2565b61481290614854614826610b3f565b828152600060208201819052604082018190526060820152336080820152600060a08201526147ff86611d9a565b604051918291339583614939565b505060405163142d0c2f60e11b815260049150fd5b60041115611d1957565b600290825181556020830151600182015501906148b060408201511515839060ff801983541691151516179055565b6060810151825461ff00191690151560081b61ff00161782556080810151825462010000600160b01b0319811660109290921b62010000600160b01b0316918217845560a09092015161490281614877565b600481101561492c575b62010000600160b81b03199092161760b09190911b60ff60b01b16179055565b614934611cf8565b61490c565b604090614953600093959495606083526060830190610a11565b9460208201520152565b604090614953600193959495606083526060830190610a11565b604090614953600393959495606083526060830190610a11565b604090614953600293959495606083526060830190610a11565b6149b3615349565b6001600160a01b038060026149c784611d9a565b015460101c1615611f625760026149dd83611d9a565b015460101c16331415614a7b57614a0c60026149f883611d9a565b01805460ff60b01b1916600360b01b179055565b614a1581611d9a565b546040517fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe8339180614a48858783614977565b0390a27fef2f6bed86b96d79b41799f5285f73b31274bb303ebe5d55a3cb48c567ab2db06040518061203e339582610a36565b5050604051631851b23d60e01b8152600490fd5b614a98816112f3565b6001600160a01b03163314156144e557600081815260676020526040902054614acb906001600160a01b031615156112a6565b614ad58282612f50565b6040519160408352601760408401527f616363657373506f696e744175746f417070726f76616c0000000000000000006060840152151560208301527e91a55492d3e3f4e2c9b36ff4134889d9118003521f9d531728503da510b11f60803393a3565b919091614b44816112f3565b6001600160a01b0316331415614c1857614b5d83611d9a565b8181541415614c025760020190614b79825460ff9060b01c1690565b614b8281614877565b614bec577fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe89215614bc857815460ff60b01b1916600160b01b1790915561481290614804565b815460ff60b01b1916600160b11b1790915561481290604051918291339583614991565b5050505050600460405163d9e5c51160e01b8152fd5b50505050506004604051636653b1a360e01b8152fd5b91505060249150604051906355d2292f60e11b82526004820152fd5b614c3c614611565b614c4581614cfc565b600081815261016560205260409020546001600160a01b0391908216331415614cdf57506002614c7483611d9a565b015460101c1615611f6257614ca0826002614c8e84611d9a565b019060ff801983541691151516179055565b7fe2e598f7ff2dfd4bc3bd989635401b4c56846b7893cb7eace51d099f21e69bff61203e614ccd83611d9a565b54604051918291339615159583612072565b92505050602491506040519063926e6e9960e01b82526004820152fd5b6001600160a01b036002614d0f83611d9a565b015460101c1615611fab57614d2390611d9a565b5490565b614d2f614611565b614d3881614cfc565b600081815261016560205260409020546001600160a01b0391908216331415614cdf57506002614d6783611d9a565b015460101c1615611f6257614d9a826002614d8184611d9a565b019061ff00825491151560081b169061ff001916179055565b7f17bd9b465aa0cdc6b308874903e9c38b13f561ecb1f2edaa8bf3969fe603d11c61203e614ccd83611d9a565b614dcf615349565b614dd7614664565b614de081611d0f565b60008181526098602090815260408083206001600160a01b038616845290915290205460ff16614ea157614e1381611d0f565b60008181526098602090815260408083206001600160a01b03861684529091529020614e3e90612723565b614e4781611d3a565b614e518154612825565b9055614e5c81611d0f565b60408051600181523360208201526001600160a01b03909316927faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a918190810161203e565b50506040516397b705ed60e01b815260049150fd5b614ebe615349565b614ec7816112f3565b6001600160a01b03908116331415614fa857816000526099602052614f0f6103378561032086610493604060002054609a602052604060002090600052602052604060002090565b614f92577fa4e6ad394cc40a3bae0d24623f88f7bb2e1463d19dab64bafd9985b0bc78211890614f6c6127238661032087610493614f57896000526099602052604060002090565b546104848a600052609a602052604060002090565b614f7584611d53565b60408051600181523360208201529190951694819081015b0390a4565b505050505060046040516397b705ed60e01b8152fd5b5091505060249150604051906355d2292f60e11b82526004820152fd5b614fcd615349565b614fd5614664565b614fe86129616103378461032085611d21565b614ea157614ff581611d0f565b801580615093575b61507e5761501b6150118361032084611d21565b805460ff19169055565b61502481611d3a565b61502e8154613616565b905561503981611d0f565b60408051600081523360208201526001600160a01b03909316927faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a918190810161203e565b50506040516360ed092b60e01b815260049150fd5b50600161509f82611d3a565b5414614ffd565b6150ae615349565b6150b7816112f3565b6001600160a01b03908116331415614fa8578160005260996020526151026129616103378661032087610493604060002054609a602052604060002090600052602052604060002090565b614f92577fa4e6ad394cc40a3bae0d24623f88f7bb2e1463d19dab64bafd9985b0bc7821189061514a6150118661032087610493614f57896000526099602052604060002090565b61515384611d53565b6040805160008152336020820152919095169481908101614f8d565b615177614664565b61517f615349565b60cc5460ff8160081c16156151c75760019060ff19161760cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b5050604051635970d9f560e11b8152600490fd5b6151e3614664565b60cc5460ff8116156152245760ff191660cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b50506040516355d413dd60e01b8152600490fd5b615240614664565b60cc549015159060ff8160081c16151582146152945761ff008260081b169061ff0019161760cc557f959581ef17eb8c8936ef9832169bc89dbcd1358765adca8ca81f28b416bb5efa6020604051338152a2565b506024915060405190632e15c5c160e21b82526004820152fd5b9061093d916152bb614664565b6128c0565b6152c8614664565b47806000811561531e575b600080809381933390f115615311575b6040519081527f8c7cdad0d12a8db3e23561b42da6f10c8137914c97beff202213a410e1f520a360203392a2565b615319611c03565b6152e3565b506108fc6152d3565b61533860ff60005460081c1661238f565b60cc805461ffff1916610100179055565b60ff60cc541661535557565b506040516306d39fcd60e41b8152600490fd5b6153749160009161543c565b604051906302571be360e01b825260048201526020816024816e0c2e074ec69a0dfb2997ba6c7d2e1e5afa908115615403575b6000916153d5575b506001600160a01b03163314156153c257565b50604051631644084960e21b8152600490fd5b906153e03d83610aff565b6020823d810103126153fd5750516153f78161091e565b386153af565b91505080fd5b61540b611c03565b6153a7565b9082101561541c570190565b611d966128a9565b90939293848311610bbf578411610c13578101920390565b91805b828110615498575090615456918161545d94615424565b3691610b88565b60208151910120604051615492816154846020820194856040916000825260208201520190565b03601f198101835282610aff565b51902090565b601760f91b6154c96154bc6154ae848789615410565b356001600160f81b03191690565b6001600160f81b03191690565b146154dc576154d79061205a565b61543f565b6154f26154eb82949394612825565b838661543c565b92615456926155019495615424565b8051602091820120604080519283019384528201526154928160608101615484565b60405190606082018281106001600160401b03821117615593575b604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b61559b610ac0565b61553e565b604051906155ad82610ad7565b6008825260203681840137565b906155c482610b5e565b6155d16040519182610aff565b82815280926155e2601f1991610b5e565b0190602036910137565b8051156156be576155fb615523565b61561f61561a61561561560e8551612835565b6003900490565b614336565b6155ba565b9160208301918182518301915b82821061566c575050506003905106806001146156595760021461564e575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c168801015160028601531685010151908201530193919061562c565b506109766117df565b602081830312610979578051906001600160401b038211610c13570181601f820112156109795780516156f981610b5e565b926157076040519485610aff565b81845260208284010111610c135761097691602080850191016109dc565b92615751610976959361574361575f94608088526080880190611352565b908682036020880152611352565b908482036040860152611352565b916060818403910152610a11565b60009291815461577c81611316565b926001918083169081156157d457506001146157985750505050565b90919293945060005260209081600020906000915b8583106157c3575050505001903880808061137f565b8054858401529183019181016157ad565b60ff191684525050500191503880808061137f565b600b60fa1b815260010190565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008082101561592b575b506d04ee2d6d415b85acef81000000008083101561591c575b50662386f26fc100008083101561590d575b506305f5e100808310156158fe575b50612710808310156158ef575b5060648210156158df575b600a809210156158d5575b60019081602161588d8287016155ba565b95860101905b61589f575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049182156158d057919082615893565b615898565b916001019161587c565b9190606460029104910191615871565b60049193920491019138615866565b60089193920491019138615859565b6010919392049101913861584a565b60209193920491019138615838565b60409350810491503861581f565b6040519061594682610ad7565b6007825260203681840137565b60209080511561541c570190565b60219080516001101561541c570190565b90602091805182101561598457010190565b61598c6128a9565b010190565b1561599857565b50606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b60405190606082018281106001600160401b03821117615a85575b604052602a825260403660208401376030615a1283615953565b536078615a1e83615961565b536029905b60018211615a3657610976915015615991565b80600f615a7292166010811015615a78575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a615a688486615972565b5360041c916120e8565b90615a23565b615a806128a9565b615a48565b615a8d610ac0565b6159f8565b15615ab757604051615aa381610ad7565b60048152637472756560e01b602082015290565b604051615ac381610ad7565b600581526466616c736560d81b602082015290565b62ffffff16615ae56155a0565b906030615af183615953565b536078615afd83615961565b5360079081905b60018211615b9957615b17915015615991565b615b1f615939565b91825115615b8c575b60236020840153600190815b838110615b42575050505090565b615b7a906001198111615b7f575b6001600160f81b0319615b6582860185615972565b511660001a615b748288615972565b5361205a565b615b34565b615b87612043565b615b50565b615b946128a9565b615b28565b80600f615bcb92166010811015615bd1575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a615a688487615972565b90615b04565b615bd96128a9565b615bab56fe0eef1ffa5f2982ad38bb9f5022d2ac4c29b22af1469b6ed4f49176c737d74a18a36469706673582212205f78f20fa944789cd75c7c7059259e69adf1d7575474fde59bda6a4c7766b4be6c6578706572696d656e74616cf564736f6c634300080c0041", + "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AccessPointAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointCreationStatusAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointNotExistent\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointScoreCannotBeLower\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsNotPausable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsNotPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTokenIdForAccessPoint\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeAccessPointOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeENSOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"MustBeTokenOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"MustBeTokenVerifier\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustHaveAtLeastOneOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"role\",\"type\":\"uint8\"}],\"name\":\"MustHaveCollectionRole\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"role\",\"type\":\"uint8\"}],\"name\":\"MustHaveTokenRole\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"state\",\"type\":\"bool\"}],\"name\":\"PausableIsSetTo\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredValue\",\"type\":\"uint256\"}],\"name\":\"RequiredPayment\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RoleAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ThereIsNoTokenMinted\",\"type\":\"error\"},{\"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\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"BillingChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointContentVerify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum FleekAccessPoints.AccessPointCreationStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointCreationStatus\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointNameVerify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"score\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointScore\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"CollectionRoleChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"value\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"value\",\"type\":\"uint24\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string[4]\",\"name\":\"value\",\"type\":\"string[4]\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"value\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"NewAccessPoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"ENS\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"ipfsHash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"accessPointAutoApproval\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"NewMint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"isPausable\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PausableStatusChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PauseStatusChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemoveAccessPoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"TokenRoleChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"TokenRolesCleared\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"addAccessPoint\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"decreaseAccessPointScore\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"getAccessPointJSON\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getAppData\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"}],\"name\":\"getBilling\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastTokenId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getTokenVerifier\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantCollectionRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantTokenRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasCollectionRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasTokenRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"increaseAccessPointScore\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"initialBillings\",\"type\":\"uint256[]\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"isAccessPointNameVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPausable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPaused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"isTokenVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ens\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ipfsHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"accessPointAutoApproval\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"removeAccessPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeCollectionRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeTokenRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_apAutoApproval\",\"type\":\"bool\"}],\"name\":\"setAccessPointAutoApproval\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setAccessPointContentVerify\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setAccessPointNameVerify\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAccessPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"setBilling\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"pausable\",\"type\":\"bool\"}],\"name\":\"setPausable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_gitRepository\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_ipfsHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_domain\",\"type\":\"string\"}],\"name\":\"setTokenBuild\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint24\",\"name\":\"_tokenColor\",\"type\":\"uint24\"}],\"name\":\"setTokenColor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenDescription\",\"type\":\"string\"}],\"name\":\"setTokenDescription\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenENS\",\"type\":\"string\"}],\"name\":\"setTokenENS\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenExternalURL\",\"type\":\"string\"}],\"name\":\"setTokenExternalURL\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenLogo\",\"type\":\"string\"}],\"name\":\"setTokenLogo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenLogo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"_tokenColor\",\"type\":\"uint24\"}],\"name\":\"setTokenLogoAndColor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenName\",\"type\":\"string\"}],\"name\":\"setTokenName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setTokenVerified\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"setTokenVerifier\",\"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\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addAccessPoint(uint256,string)\":{\"details\":\"Add a new AccessPoint register for an app token. The AP name should be a DNS or ENS url and it should be unique. Anyone can add an AP but it should requires a payment. May emit a {NewAccessPoint} event. Requirements: - the tokenId must be minted and valid. - billing for add acess point may be applied. - the contract must be not paused.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC721-approve}.\"},\"balanceOf(address)\":{\"details\":\"See {IERC721-balanceOf}.\"},\"burn(uint256)\":{\"details\":\"Burns a previously minted `tokenId`. May emit a {Transfer} event. Requirements: - the tokenId must be minted and valid. - the sender must be the owner of the token. - the contract must be not paused.\"},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"decreaseAccessPointScore(string)\":{\"details\":\"Decreases the score of a AccessPoint registry if is greater than 0.\"},\"getAccessPointJSON(string)\":{\"details\":\"A view function to gether information about an AccessPoint. It returns a JSON string representing the AccessPoint information.\"},\"getApproved(uint256)\":{\"details\":\"See {IERC721-getApproved}.\"},\"getBilling(uint8)\":{\"details\":\"Returns the billing value for a given key.\"},\"getLastTokenId()\":{\"details\":\"Returns the last minted tokenId.\"},\"getToken(uint256)\":{\"details\":\"Returns the token metadata associated with the `tokenId`. Returns multiple string and uint values in relation to metadata fields of the App struct. Requirements: - the tokenId must be minted and valid.\"},\"getTokenVerifier(uint256)\":{\"details\":\"Returns the verifier of a token. Requirements: - the tokenId must be minted and valid.\"},\"grantCollectionRole(uint8,address)\":{\"details\":\"Grants the collection role to an address. Requirements: - the caller should have the collection role.\"},\"grantTokenRole(uint256,uint8,address)\":{\"details\":\"Grants the token role to an address. Requirements: - the caller should have the token role.\"},\"hasCollectionRole(uint8,address)\":{\"details\":\"Returns `True` if a certain address has the collection role.\"},\"hasTokenRole(uint256,uint8,address)\":{\"details\":\"Returns `True` if a certain address has the token role.\"},\"increaseAccessPointScore(string)\":{\"details\":\"Increases the score of a AccessPoint registry.\"},\"initialize(string,string,uint256[])\":{\"details\":\"Initializes the contract by setting a `name` and a `symbol` to the token collection.\"},\"isAccessPointNameVerified(string)\":{\"details\":\"A view function to check if a AccessPoint is verified.\"},\"isApprovedForAll(address,address)\":{\"details\":\"See {IERC721-isApprovedForAll}.\"},\"isPausable()\":{\"details\":\"Returns true if the contract is pausable, and false otherwise.\"},\"isPaused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"isTokenVerified(uint256)\":{\"details\":\"Returns the verification status of a token. Requirements: - the tokenId must be minted and valid.\"},\"mint(address,string,string,string,string,string,string,string,string,uint24,bool,address)\":{\"details\":\"Mints a token and returns a tokenId. If the `tokenId` has not been minted before, and the `to` address is not zero, emits a {Transfer} event. Requirements: - the caller must have ``collectionOwner``'s admin role. - billing for the minting may be applied. - the contract must be not paused.\"},\"name()\":{\"details\":\"See {IERC721Metadata-name}.\"},\"ownerOf(uint256)\":{\"details\":\"See {IERC721-ownerOf}.\"},\"pause()\":{\"details\":\"Sets the contract to paused state. Requirements: - the sender must have the `controller` role. - the contract must be pausable. - the contract must be not paused.\"},\"removeAccessPoint(string)\":{\"details\":\"Remove an AccessPoint registry for an app token. It will also remove the AP from the app token APs list. May emit a {RemoveAccessPoint} event. Requirements: - the AP must exist. - must be called by the AP owner. - the contract must be not paused.\"},\"revokeCollectionRole(uint8,address)\":{\"details\":\"Revokes the collection role of an address. Requirements: - the caller should have the collection role.\"},\"revokeTokenRole(uint256,uint8,address)\":{\"details\":\"Revokes the token role of an address. Requirements: - the caller should have the token role.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"See {IERC721-safeTransferFrom}.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"See {IERC721-safeTransferFrom}.\"},\"setAccessPointAutoApproval(uint256,bool)\":{\"details\":\"Updates the `accessPointAutoApproval` settings on minted `tokenId`. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setAccessPointContentVerify(string,bool)\":{\"details\":\"Set the content verification of a AccessPoint registry. May emit a {ChangeAccessPointContentVerify} event. Requirements: - the AP must exist. - the sender must have the token controller role.\"},\"setAccessPointNameVerify(string,bool)\":{\"details\":\"Set the name verification of a AccessPoint registry. May emit a {ChangeAccessPointNameVerify} event. Requirements: - the AP must exist. - the sender must have the token controller role.\"},\"setApprovalForAccessPoint(uint256,string,bool)\":{\"details\":\"Set approval settings for an access point. It will add the access point to the token's AP list, if `approved` is true. May emit a {ChangeAccessPointApprovalStatus} event. Requirements: - the tokenId must exist and be the same as the tokenId that is set for the AP. - the AP must exist. - must be called by a token controller.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"See {IERC721-setApprovalForAll}.\"},\"setBilling(uint8,uint256)\":{\"details\":\"Sets the billing value for a given key. May emit a {BillingChanged} event. Requirements: - the sender must have the `collectionOwner` role.\"},\"setPausable(bool)\":{\"details\":\"Sets the contract to pausable state. Requirements: - the sender must have the `owner` role. - the contract must be in the oposite pausable state.\"},\"setTokenBuild(uint256,string,string,string,string)\":{\"details\":\"Adds a new build to a minted `tokenId`'s builds mapping. May emit a {NewBuild} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenColor(uint256,uint24)\":{\"details\":\"Updates the `color` metadata field of a minted `tokenId`. May emit a {NewTokenColor} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenDescription(uint256,string)\":{\"details\":\"Updates the `description` metadata field of a minted `tokenId`. May emit a {NewTokenDescription} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenENS(uint256,string)\":{\"details\":\"Updates the `ENS` metadata field of a minted `tokenId`. May emit a {NewTokenENS} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenExternalURL(uint256,string)\":{\"details\":\"Updates the `externalURL` metadata field of a minted `tokenId`. May emit a {NewTokenExternalURL} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenLogo(uint256,string)\":{\"details\":\"Updates the `logo` metadata field of a minted `tokenId`. May emit a {NewTokenLogo} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenLogoAndColor(uint256,string,uint24)\":{\"details\":\"Updates the `logo` and `color` metadata fields of a minted `tokenId`. May emit a {NewTokenLogo} and a {NewTokenColor} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenName(uint256,string)\":{\"details\":\"Updates the `name` metadata field of a minted `tokenId`. May emit a {NewTokenName} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenVerified(uint256,bool)\":{\"details\":\"Sets the verification status of a token. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must be the token verifier. - the sender must have `CollectionRoles.Verifier` role.\"},\"setTokenVerifier(uint256,address)\":{\"details\":\"Sets an address as verifier of a token. The verifier must have `CollectionRoles.Verifier` role. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must be the owner of the token. - the verifier must have `CollectionRoles.Verifier` role.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"symbol()\":{\"details\":\"See {IERC721Metadata-symbol}.\"},\"tokenURI(uint256)\":{\"details\":\"Returns the token metadata associated with the `tokenId`. Returns a based64 encoded string value of the URI. Requirements: - the tokenId must be minted and valid.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC721-transferFrom}.\"},\"unpause()\":{\"details\":\"Sets the contract to unpaused state. Requirements: - the sender must have the `controller` role. - the contract must be paused.\"},\"withdraw()\":{\"details\":\"Withdraws all the funds from contract. May emmit a {Withdrawn} event. Requirements: - the sender must have the `collectionOwner` role.\"}},\"version\":1},\"userdoc\":{\"events\":{\"MetadataUpdate(uint256,string,string,address)\":{\"notice\":\"Event emitted when a token's metadata is updated.\"}},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/FleekERC721.sol\":\"FleekERC721\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@ensdomains/ens-contracts/contracts/registry/ENS.sol\":{\"keccak256\":\"0x7cb1158c7d268b63de1468e28e2711b28d686e2628ddb22da2149cd93ddeafda\",\"urls\":[\"bzz-raw://a7018309acca24b10ea1235b1c27828f29f2ddfabb653a794639baf620dc2314\",\"dweb:/ipfs/QmakFQT5NFvGs3g8xxwtgtWdddq28Wtm6MjNSpJNhV1YpR\"]},\"@ensdomains/ens-contracts/contracts/resolvers/Resolver.sol\":{\"keccak256\":\"0x62b71222aa65138e124b94f5835c2163cc88213491e5f0a80d7a4c45641fbe64\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2def0b17096b07578ac974ab3871d71c757a01389bbfdb124d103308a3ecaad9\",\"dweb:/ipfs/QmepR8cbk2etYYnKHArZFuGNTZ2huqFihxq9mzfS3YgE3Y\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IABIResolver.sol\":{\"keccak256\":\"0x85b373d02d19374fe570af407f459768285704bf7f30ab17c30eabfb5a10e4c3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2046ce3d92d29806d7b447f7ab4227f19b0b2e5c75fd5b4a3fcaef7fe2442141\",\"dweb:/ipfs/QmRgnfWjFetrSJngkhU7Yui1ZcK1MeatvZDpvUTYNuYnND\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddrResolver.sol\":{\"keccak256\":\"0x2ad7f2fc60ebe0f93745fe70247f6a854f66af732483fda2a3c5e055614445e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://43922ba183ff20d87dce7fc5d715e626b26594151e36dcc8d7c6329b9a822963\",\"dweb:/ipfs/QmTg9uHTugTxzqddN68gnhNbGt4bGJBS9mQcss6GYggR4X\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddressResolver.sol\":{\"keccak256\":\"0x411447c1e90c51e09702815a85ec725ffbbe37cf96e8cc4d2a8bd4ad8a59d73e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://543aa2756447a428711b69aea79e9f4641c22f8330ba920b2a49fde8d9207f82\",\"dweb:/ipfs/QmTdpcYRWLH3BL7iytnqcSzRojTPe3YettKaTqeCvKPk54\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IContentHashResolver.sol\":{\"keccak256\":\"0xd95cd77684ba5752c428d7dceb4ecc6506ac94f4fbb910489637eb68dcd8e366\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://daf1fee7770679bd935b8b5686789a4ecc532caeef5a9b8e1b60ae0c285e743e\",\"dweb:/ipfs/QmSaHBAqtDdbQLH6QN4EbupMrq2ah8g6fqE7fLX1u4cjMZ\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSRecordResolver.sol\":{\"keccak256\":\"0xcfa52200edd337f2c6c5bf402352600584da033b21323603e53de33051a3e25d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2c8355211d58db82660140191678ee342eb8a7ac46fa097ae8e03eef008f592e\",\"dweb:/ipfs/QmYDNiECPd4fJ7Vk9Xywfpg73rUvDpcYqas95ofGcpt7fM\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSZoneResolver.sol\":{\"keccak256\":\"0xca1b3a16e7005533f2800a3e66fcdccf7c574deac7913d8c810f40aec1d58dc0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a4e38d5eb69e236c37e4a013628838070720c9e1923569650b01252868038c7a\",\"dweb:/ipfs/QmV397iZMRxtem79kJy5sueJadXoVL89gNViX2xciQHUrk\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IExtendedResolver.sol\":{\"keccak256\":\"0x5d81521cfae7d9a4475d27533cd8ed0d3475d369eb0674fd90ffbdbdf292faa3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d244d15588785044b54c453ab6dc51c616ab70cb8b9e687d3e54565bcae97760\",\"dweb:/ipfs/QmXz4ZZBTFogdkdTV1mcE3ywvL2agKVZHLNNeRHCKVruYM\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IInterfaceResolver.sol\":{\"keccak256\":\"0x390321fb58f7b927df9562450981e74b4be3907e7c09df321fd3b7409b63ae28\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://045d12c6e0e4596b3672614751a9e75188183a89765a6abd938294e0294e9c56\",\"dweb:/ipfs/QmazngvagEoKe29s4M9Rv8KygWD5hrAtNPkYDPJ2pK13yx\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/INameResolver.sol\":{\"keccak256\":\"0x9ec392b612447b1acbdc01114f2da2837a658d3f3157f60a99c5269f0b623346\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5b2cd9e5339b09f40e82bd91fed7d5f643dd031393eefb9aec588eaba8465049\",\"dweb:/ipfs/QmT2A8eswhJU9YadCs9BtwKNj6YGypntXmFepANQYyGw7x\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IPubkeyResolver.sol\":{\"keccak256\":\"0x69748947093dd2fda9ddcebd0adf19a6d1e7600df1d4b1462a0417156caddca7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc2f86e50bd17c38fb10feb577d88d8970c585017a391ef10e3aaa3d50f81555\",\"dweb:/ipfs/QmaxLx2pqCUxf9W2dusfviZ9aSiTuVwuekGo73rjvmGifE\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/ITextResolver.sol\":{\"keccak256\":\"0x7c5debb3c42cd9f5de2274ea7aa053f238608314b62db441c40e31cea2543fd5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://412e34ae2d84d542ffa6791486963f3fe04432a3ffd51877d441256dc2941914\",\"dweb:/ipfs/QmciS4mGAQ6KJtLiLcBFekHKhYAYMmubDWGkpZ3sUFtJPW\"]},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8a313cf42389440e2706837c91370323b85971c06afd6d056d21e2bc86459618\",\"dweb:/ipfs/QmT8XUrUvQ9aZaPKrqgRU2JVGWnaxBcUYJA7Q7K5KcLBSZ\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol\":{\"keccak256\":\"0x2a6a0b9fd2d316dcb4141159a9d13be92654066d6c0ae92757ed908ecdfecff0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c05d9be7ee043009eb9f2089b452efc0961345531fc63354a249d7337c69f3bb\",\"dweb:/ipfs/QmTXhzgaYrh6og76BP85i6exNFAv5NYw64uVWyworNogyG\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol\":{\"keccak256\":\"0xbb2ed8106d94aeae6858e2551a1e7174df73994b77b13ebd120ccaaef80155f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8bc3c6a456dba727d8dd9fd33420febede490abb49a07469f61d2a3ace66a95a\",\"dweb:/ipfs/QmVAWtEVj7K5AbvgJa9Dz22KiDq9eoptCjnVZqsTMtKXyd\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol\":{\"keccak256\":\"0x2c0b89cef83f353c6f9488c013d8a5968587ffdd6dfc26aad53774214b97e229\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4a68e662c2a82412308b1feb24f3d61a44b3b8772f44cbd440446237313c3195\",\"dweb:/ipfs/QmfBuWUE2TQef9hghDzzuVkDskw3UGAyPgLmPifTNV7K6g\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol\":{\"keccak256\":\"0x95a471796eb5f030fdc438660bebec121ad5d063763e64d92376ffb4b5ce8b70\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4ffbd627e6958983d288801acdedbf3491ee0ebf1a430338bce47c96481ce9e3\",\"dweb:/ipfs/QmUM1vpmNgBV34sYf946SthDJNGhwwqjoRggmj4TUUQmdB\"]},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://72460c66cd1c3b1c11b863e0d8df0a1c56f37743019e468dc312c754f43e3b06\",\"dweb:/ipfs/QmPExYKiNb9PUsgktQBupPaM33kzDHxaYoVeJdLhv8s879\"]},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d6520943ea55fdf5f0bafb39ed909f64de17051bc954ff3e88c9e5621412c79c\",\"dweb:/ipfs/QmWZ4rAKTQbNG2HxGs46AcTXShsVytKeLs7CUCdCSv5N7a\"]},\"@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol\":{\"keccak256\":\"0x6b9a5d35b744b25529a2856a8093e7c03fb35a34b1c4fb5499e560f8ade140da\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://187b5c3a1c9e77678732a2cc5284237f9cfca6bc28ee8bc0a0f4f951d7b3a2f8\",\"dweb:/ipfs/Qmb2KFr7WuQu7btdCiftQG64vTzrG4UyzVmo53EYHcnHYA\"]},\"@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol\":{\"keccak256\":\"0x9a3b990bd56d139df3e454a9edf1c64668530b5a77fc32eb063bc206f958274a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0895399d170daab2d69b4c43a0202e5a07f2e67a93b26e3354dcbedb062232f7\",\"dweb:/ipfs/QmUM1VH3XDk559Dsgh4QPvupr3YVKjz87HrSyYzzVFZbxw\"]},\"@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol\":{\"keccak256\":\"0xc6cef87559d0aeffdf0a99803de655938a7779ec0a3cd5d4383483ad85565a09\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://92ad7e572cf44e6b4b37631b44b62f9eb9fb1cf14d9ce51c1504d5dc7ccaf758\",\"dweb:/ipfs/QmcnbqX85tsWnUXPmtuPLE4SczME2sJaTfmqEFkuAJvWhy\"]},\"@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol\":{\"keccak256\":\"0xc1bd5b53319c68f84e3becd75694d941e8f4be94049903232cd8bc7c535aaa5a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://056027a78e6f4b78a39be530983551651ee5a052e786ca2c1c6a3bb1222b03b4\",\"dweb:/ipfs/QmXRUpywAqNwAfXS89vrtiE2THRM9dX9pQ4QxAkV1Wx9kt\"]},\"@openzeppelin/contracts/token/ERC721/IERC721.sol\":{\"keccak256\":\"0xab28a56179c1db258c9bf5235b382698cb650debecb51b23d12be9e241374b68\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://daae589a9d6fa7e55f99f86c0a16796ca490f243fb3693632c3711c0646c1d56\",\"dweb:/ipfs/QmR3zpd7wNw3rcUdekwiv6FYHJqksuTCXLVioTxu6Fbxk3\"]},\"@openzeppelin/contracts/utils/Base64.sol\":{\"keccak256\":\"0x5f3461639fe20794cfb4db4a6d8477388a15b2e70a018043084b7c4bedfa8136\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://77e5309e2cc4cdc3395214edb0ff43ff5a5f7373f5a425383e540f6fab530f96\",\"dweb:/ipfs/QmTV8DZ9knJDa3b5NPBFQqjvTzodyZVjRUg5mx5A99JPLJ\"]},\"@openzeppelin/contracts/utils/Strings.sol\":{\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8c969013129ba9e651a20735ef659fef6d8a1139ea3607bd4b26ddea2d645634\",\"dweb:/ipfs/QmVhVa6LGuzAcB8qgDtVHRkucn4ihj5UZr8xBLcJkP6ucb\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://33bbf48cc069be677705037ba7520c22b1b622c23b33e1a71495f2d36549d40b\",\"dweb:/ipfs/Qmct36zWXv3j7LZB83uwbg7TXwnZSN1fqHNDZ93GG98bGz\"]},\"contracts/FleekAccessControl.sol\":{\"keccak256\":\"0xdd0352b2e9e1a7393cb85a85efb7135cc5c0d5365ee156ca78eda2c82113b6f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb62245b17047d2261afb923ffb7592cc54c78cad599828deb3342e4e6de6c99\",\"dweb:/ipfs/QmRfsz1x2dh4fx78KizNXLMjfisgvzGkizbpAasqzZvggr\"]},\"contracts/FleekAccessPoints.sol\":{\"keccak256\":\"0xa74f4f1af3f7100dde68c4824784a93927191c72f00416f96dded39b36cd43cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6aee8dc6e13e77cec72fbfadee051aad02ab25848646cda7f5a57a89126ea729\",\"dweb:/ipfs/QmWk9raFrRkASBmmZ3Ng9a5HyHYUbjfxEJKhdqwfR2WmL9\"]},\"contracts/FleekBilling.sol\":{\"keccak256\":\"0xcb1568aa8629045a5c97a365d81c448a24f0d6434798e386125633029393ed94\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c775e1ea3aeab0841976c63bfcf95e64ba879ad4a4b635f76ef12fb6a5348b12\",\"dweb:/ipfs/Qmct7TaBnvH86d184URxWYtHwSHMAVyCrtvTG8hcoArD7p\"]},\"contracts/FleekERC721.sol\":{\"keccak256\":\"0xd3ad4111a7beda20e03a7ca63f87bc9c5666f55df966e5cb2b7b7701cbc24025\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://65e7540087fed5bcbab614a5eae54ccedee395bfab7cff1e05856bf2481fb2c0\",\"dweb:/ipfs/QmStsGYSjG8eGXaCJQyq37YpjrSzJpTW8dUNHQYF6afH9S\"]},\"contracts/FleekPausable.sol\":{\"keccak256\":\"0x4d172714ea6231b283f96cb8e355cc9f5825e01039aa5a521e7a29bcb3ccd1cb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3f099c1af04b71bf43bb34fe8413dffb51a8962f91fd99d61693160c3272bd58\",\"dweb:/ipfs/QmWQe9XyVeD955es4fgbHJuSDNZuqsdTCSDMrfJvioZCdj\"]},\"contracts/IERCX.sol\":{\"keccak256\":\"0xa3ed18c17836d56b1663c34de75a4ce309965fa6f13e88b08eeed29aca4cf4bc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1ae2d073b525af1cf0445655d94c78fe02492e7d4562f815251e6b44a73a5904\",\"dweb:/ipfs/Qmesee9NVvXn84TR2H8AudwGaAZvrQN3JQ9Xs7spcwVs7A\"]},\"contracts/util/FleekENS.sol\":{\"keccak256\":\"0xf9be784932977798e530160f38eefdfbb55ae25a3d9cc58b477b092ef9936039\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0ffc81ef864a34e42a3ab1638e56d95f88721ec1032baadbc251a5ba3b4dd445\",\"dweb:/ipfs/QmUieEHXPHU79i1nx7KmoTVMfwjJGJHWRy2BYGd3PEceSB\"]},\"contracts/util/FleekSVG.sol\":{\"keccak256\":\"0x9d52d0defd643999776563c3ac36f084ae5a04a22c76ec316a0aadf6666c3c9b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://87bc5cca5451b7b8f3986dec26087857fe0f09505116536efad370172fe731a3\",\"dweb:/ipfs/QmZmDxPG8BUUjrVD92T2dktcuFQBxvHgMEnWx5aPBcSfrA\"]},\"contracts/util/FleekStrings.sol\":{\"keccak256\":\"0xccadd4e9c9c14068c6ca83c95d98a5b83b321bf442443f5432045a4313fcfce6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb4b7110961d44fba3f8f016a6fe1eeba7d783c723be7153ac8f05b24c68676d\",\"dweb:/ipfs/QmSCetjeCy7TGG9WFFbDLvpdVwYZrkMsdTBQmJuPwrugUT\"]}},\"version\":1}", + "storageLayout": { + "storage": [ + { + "astId": 533, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8" + }, + { + "astId": 536, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 2151, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 2370, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "51", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 724, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_name", + "offset": 0, + "slot": "101", + "type": "t_string_storage" + }, + { + "astId": 726, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_symbol", + "offset": 0, + "slot": "102", + "type": "t_string_storage" + }, + { + "astId": 730, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_owners", + "offset": 0, + "slot": "103", + "type": "t_mapping(t_uint256,t_address)" + }, + { + "astId": 734, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_balances", + "offset": 0, + "slot": "104", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 738, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_tokenApprovals", + "offset": 0, + "slot": "105", + "type": "t_mapping(t_uint256,t_address)" + }, + { + "astId": 744, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_operatorApprovals", + "offset": 0, + "slot": "106", + "type": "t_mapping(t_address,t_mapping(t_address,t_bool))" + }, + { + "astId": 1664, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "107", + "type": "t_array(t_uint256)44_storage" + }, + { + "astId": 4526, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_collectionRolesCounter", + "offset": 0, + "slot": "151", + "type": "t_mapping(t_enum(CollectionRoles)4485,t_uint256)" + }, + { + "astId": 4534, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_collectionRoles", + "offset": 0, + "slot": "152", + "type": "t_mapping(t_enum(CollectionRoles)4485,t_mapping(t_address,t_bool))" + }, + { + "astId": 4539, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_tokenRolesVersion", + "offset": 0, + "slot": "153", + "type": "t_mapping(t_uint256,t_uint256)" + }, + { + "astId": 4551, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_tokenRoles", + "offset": 0, + "slot": "154", + "type": "t_mapping(t_uint256,t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool))))" + }, + { + "astId": 4884, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "155", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 7193, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_paused", + "offset": 0, + "slot": "204", + "type": "t_bool" + }, + { + "astId": 7195, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_canPause", + "offset": 1, + "slot": "204", + "type": "t_bool" + }, + { + "astId": 7346, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "205", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 5648, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_billings", + "offset": 0, + "slot": "254", + "type": "t_mapping(t_enum(Billing)5627,t_uint256)" + }, + { + "astId": 5776, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "255", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 4989, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_accessPoints", + "offset": 0, + "slot": "304", + "type": "t_mapping(t_string_memory_ptr,t_struct(AccessPoint)4984_storage)" + }, + { + "astId": 4993, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_autoApproval", + "offset": 0, + "slot": "305", + "type": "t_mapping(t_uint256,t_bool)" + }, + { + "astId": 5439, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "306", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 5868, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_appIds", + "offset": 0, + "slot": "355", + "type": "t_uint256" + }, + { + "astId": 5873, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_apps", + "offset": 0, + "slot": "356", + "type": "t_mapping(t_uint256,t_struct(Token)7423_storage)" + }, + { + "astId": 5877, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_tokenVerifier", + "offset": 0, + "slot": "357", + "type": "t_mapping(t_uint256,t_address)" + }, + { + "astId": 5881, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_tokenVerified", + "offset": 0, + "slot": "358", + "type": "t_mapping(t_uint256,t_bool)" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_enum(AccessPointCreationStatus)4970": { + "encoding": "inplace", + "label": "enum FleekAccessPoints.AccessPointCreationStatus", + "numberOfBytes": "1" + }, + "t_enum(Billing)5627": { + "encoding": "inplace", + "label": "enum FleekBilling.Billing", + "numberOfBytes": "1" + }, + "t_enum(CollectionRoles)4485": { + "encoding": "inplace", + "label": "enum FleekAccessControl.CollectionRoles", + "numberOfBytes": "1" + }, + "t_enum(TokenRoles)4487": { + "encoding": "inplace", + "label": "enum FleekAccessControl.TokenRoles", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_bool)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_mapping(t_address,t_mapping(t_address,t_bool))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(address => bool))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_bool)" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_enum(Billing)5627,t_uint256)": { + "encoding": "mapping", + "key": "t_enum(Billing)5627", + "label": "mapping(enum FleekBilling.Billing => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_enum(CollectionRoles)4485,t_mapping(t_address,t_bool))": { + "encoding": "mapping", + "key": "t_enum(CollectionRoles)4485", + "label": "mapping(enum FleekAccessControl.CollectionRoles => mapping(address => bool))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_bool)" + }, + "t_mapping(t_enum(CollectionRoles)4485,t_uint256)": { + "encoding": "mapping", + "key": "t_enum(CollectionRoles)4485", + "label": "mapping(enum FleekAccessControl.CollectionRoles => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool))": { + "encoding": "mapping", + "key": "t_enum(TokenRoles)4487", + "label": "mapping(enum FleekAccessControl.TokenRoles => mapping(address => bool))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_bool)" + }, + "t_mapping(t_string_memory_ptr,t_struct(AccessPoint)4984_storage)": { + "encoding": "mapping", + "key": "t_string_memory_ptr", + "label": "mapping(string => struct FleekAccessPoints.AccessPoint)", + "numberOfBytes": "32", + "value": "t_struct(AccessPoint)4984_storage" + }, + "t_mapping(t_uint256,t_address)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => address)", + "numberOfBytes": "32", + "value": "t_address" + }, + "t_mapping(t_uint256,t_bool)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool)))": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => mapping(enum FleekAccessControl.TokenRoles => mapping(address => bool)))", + "numberOfBytes": "32", + "value": "t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool))" + }, + "t_mapping(t_uint256,t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool))))": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => mapping(uint256 => mapping(enum FleekAccessControl.TokenRoles => mapping(address => bool))))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool)))" + }, + "t_mapping(t_uint256,t_struct(Build)7403_storage)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => struct IERCX.Build)", + "numberOfBytes": "32", + "value": "t_struct(Build)7403_storage" + }, + "t_mapping(t_uint256,t_struct(Token)7423_storage)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => struct IERCX.Token)", + "numberOfBytes": "32", + "value": "t_struct(Token)7423_storage" + }, + "t_mapping(t_uint256,t_uint256)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_string_memory_ptr": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_struct(AccessPoint)4984_storage": { + "encoding": "inplace", + "label": "struct FleekAccessPoints.AccessPoint", + "members": [ + { + "astId": 4972, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "tokenId", + "offset": 0, + "slot": "0", + "type": "t_uint256" + }, + { + "astId": 4974, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "score", + "offset": 0, + "slot": "1", + "type": "t_uint256" + }, + { + "astId": 4976, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "contentVerified", + "offset": 0, + "slot": "2", + "type": "t_bool" + }, + { + "astId": 4978, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "nameVerified", + "offset": 1, + "slot": "2", + "type": "t_bool" + }, + { + "astId": 4980, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "owner", + "offset": 2, + "slot": "2", + "type": "t_address" + }, + { + "astId": 4983, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "status", + "offset": 22, + "slot": "2", + "type": "t_enum(AccessPointCreationStatus)4970" + } + ], + "numberOfBytes": "96" + }, + "t_struct(Build)7403_storage": { + "encoding": "inplace", + "label": "struct IERCX.Build", + "members": [ + { + "astId": 7396, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "commitHash", + "offset": 0, + "slot": "0", + "type": "t_string_storage" + }, + { + "astId": 7398, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "gitRepository", + "offset": 0, + "slot": "1", + "type": "t_string_storage" + }, + { + "astId": 7400, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "ipfsHash", + "offset": 0, + "slot": "2", + "type": "t_string_storage" + }, + { + "astId": 7402, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "domain", + "offset": 0, + "slot": "3", + "type": "t_string_storage" + } + ], + "numberOfBytes": "128" + }, + "t_struct(Token)7423_storage": { + "encoding": "inplace", + "label": "struct IERCX.Token", + "members": [ + { + "astId": 7405, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "name", + "offset": 0, + "slot": "0", + "type": "t_string_storage" + }, + { + "astId": 7407, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "description", + "offset": 0, + "slot": "1", + "type": "t_string_storage" + }, + { + "astId": 7409, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "externalURL", + "offset": 0, + "slot": "2", + "type": "t_string_storage" + }, + { + "astId": 7411, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "ENS", + "offset": 0, + "slot": "3", + "type": "t_string_storage" + }, + { + "astId": 7413, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "logo", + "offset": 0, + "slot": "4", + "type": "t_string_storage" + }, + { + "astId": 7415, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "color", + "offset": 0, + "slot": "5", + "type": "t_uint24" + }, + { + "astId": 7417, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "currentBuild", + "offset": 0, + "slot": "6", + "type": "t_uint256" + }, + { + "astId": 7422, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "builds", + "offset": 0, + "slot": "7", + "type": "t_mapping(t_uint256,t_struct(Build)7403_storage)" + } + ], + "numberOfBytes": "256" + }, + "t_uint24": { + "encoding": "inplace", + "label": "uint24", + "numberOfBytes": "3" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "encoding": "inplace", + "label": "uint8", + "numberOfBytes": "1" + } + } + }, + "implementationAddress": "0x66Db6d191cd163F56197b767928A507dF8b47AA7" + } \ No newline at end of file diff --git a/contracts/deployments/qanet/FleekSVG.json b/contracts/deployments/qanet/FleekSVG.json new file mode 100644 index 0000000..6fa6411 --- /dev/null +++ b/contracts/deployments/qanet/FleekSVG.json @@ -0,0 +1,49 @@ +{ + "buildId": "51265c9b241f9c7af77f823edadaae04", + "timestamp": "6/16/2023, 8:51:33 AM", + "address": "0x77c7E3905c21177Be97956c6620567596492C497", + "transactionHash": "0xb68574472c815f85d7695fd3614983de620d34b306979f50f24dc0e6a93ae504", + "gasPrice": 1393736401, + "abi": [ + { + "inputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "ENS", + "type": "string" + }, + { + "internalType": "string", + "name": "logo", + "type": "string" + }, + { + "internalType": "string", + "name": "color", + "type": "string" + } + ], + "name": "generateBase64", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + } + ], + "bytecode": "0x6080806040523461001a57612ae99081610021823930815050f35b50600080fdfe6080604052600480361015610015575b50600080fd5b6000803560e01c63891c235f1461002c575061000f565b60803660031901126100e05767ffffffffffffffff82358181116100d9576100579036908501610156565b926024358281116100d15761006f9036908301610156565b916044358181116100c8576100879036908401610156565b936064359182116100bf5750916100a96100af94926100bb9694369101610156565b92610226565b604051918291826101e3565b0390f35b94505050505080fd5b50505050809150fd5b505050809150fd5b5050809150fd5b809150fd5b50634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761011e57604052565b6101266100e5565b604052565b60209067ffffffffffffffff8111610149575b601f01601f19160190565b6101516100e5565b61013e565b81601f820112156101a65780359061016d8261012b565b9261017b60405194856100fc565b8284526020838301011161019d57816000926020809301838601378301015290565b50505050600080fd5b505050600080fd5b918091926000905b8282106101ce5750116101c7575050565b6000910152565b915080602091830151818601520182916101b6565b6040916020825261020381518092816020860152602086860191016101ae565b601f01601f1916010190565b90610222602092828151948592016101ae565b0190565b604080517f3c7376672077696474683d223130363522206865696768743d2231303635222060208201527f76696577426f783d2230203020313036352031303635222066696c6c3d226e6f918101919091527f6e652220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32303060608201527f302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77608082015271199737b93397989c9c9c97bc3634b735911f60711b60a08201529384939092909160b285017f3c7374796c6520747970653d22746578742f637373223e40696d706f7274207581527f726c282268747470733a2f2f666f6e74732e676f6f676c65617069732e636f6d60208201527f2f637373323f66616d696c793d496e7465723a77676874403530303b36303022604082015269149d9e17b9ba3cb6329f60b11b6060820152606a017f3c726563742077696474683d223130363522206865696768743d22313036352281527f2066696c6c3d2275726c28236261636b67726f756e642922202f3e3c7265637460208201527f206f7061636974793d22302e32222077696474683d223130363522206865696760408201527f68743d2231303635222066696c6c3d2275726c28236261636b67726f756e642d60608201526a3930b234b0b6149110179f60a91b6080820152608b017f3c672066696c7465723d2275726c28236469736b657474652d736861646f772981527f223e3c7061746820643d224d3835372e323331203237392e3731324c3930322e60208201527f3234203238362e363735433931302e353437203238372e3936203931372e393160408201527f35203239322e373231203932322e35203239392e3736384c3933382e3839342060608201527f3332342e393634433934322e323439203333302e3132203934332e333131203360808201527f33362e343337203934312e383237203334322e3430364c3933372e373938203360a08201527f35382e3631354c3932342e303439203335362e36354c3931392e34313620333760c08201527f342e3038344c3933342e303638203337362e32344c3739312e3934372039323260e08201527f2e313532433738382e313039203933362e383936203737332e363934203934366101008201527f2e333038203735382e363531203934332e3839334c3137392e363336203835306101208201527f2e393238433136322e333138203834382e313437203135312e323135203833306101408201527f2e393837203135352e373736203831342e3035314c3136302e343738203739366101608201527f2e35394c3730342e333135203837392e3537344c3835372e323331203237392e6101808201527f3731325a222066696c6c3d222330353035303522202f3e3c2f673e00000000006101a08201526101bb017f3c7061746820643d224d3834302e323331203234302e3731324c3838352e323481527f203234372e363735433839332e353437203234382e393631203930302e39313560208201527f203235332e373232203930352e35203236302e3736384c3932312e383934203260408201527f38352e393635433932352e323439203239312e3132203932362e33313120323960608201527f372e343337203932342e383237203330332e3430364c3932302e37393820333160808201527f392e3631364c3930372e303439203331372e36354c3930322e3431362033333560a08201527f2e3038344c3931372e303638203333372e3234314c3737342e3934372038383360c08201527f2e313532433737312e313039203839372e383936203735362e3639342039303760e08201527f2e333038203734312e363531203930342e3839334c3136322e363336203831316101008201527f2e393238433134352e333138203830392e313437203133342e323135203739316101208201527f2e393837203133382e373736203737352e3035314c3134332e343738203735376101408201527f2e35394c3638372e333135203834302e3537344c3834302e323331203234302e6101608201527f3731325a222066696c6c3d2275726c28236d61696e2922202f3e00000000000061018082015261019a01600080516020612a8683398151915281527f756c653d226576656e6f64642220643d224d3331392e383437203136312e353060208201527f32433331302e333536203136302e303037203330302e363734203136362e333260408201527f36203239382e323231203137352e3631364c3133382e373234203737392e373560608201527f38433133362e323731203738392e303438203134312e393737203739372e373960808201527f203135312e343638203739392e3238354c3734302e303631203839312e39373360a08201527f433734392e353533203839332e343637203735392e323335203838372e31343860c08201527f203736312e363837203837372e3835384c3930322e343035203334342e38353460e08201527f4c3838392e313538203334322e3736384c3839382e383732203330352e3937326101008201527f4c3931322e313139203330382e3035394c3931332e373333203330312e3934366101208201527f433931342e383337203239372e373632203931342e333039203239332e3437366101408201527f203931322e323531203238392e3932374c3839332e343834203235372e3536396101608201527f433839312e313533203235332e353439203838372e303633203235302e3832336101808201527f203838322e323231203235302e3036314c3832382e323035203234312e3535346101a08201527f433832322e323234203234302e363133203831352e383639203234322e3738336101c08201527f203831312e343237203234372e3238344c3830352e363836203235332e3130336101e08201527f433830342e323035203235342e363033203830322e303837203235352e3332366102008201527f203830302e303933203235352e3031334c3738332e363131203235322e3431376102208201527f4c3733342e33203433392e313936433733312e343339203435302e30333520376102408201527f32302e313433203435372e343037203730392e3037203435352e3636334c33326102608201527f382e383437203339352e373838433331372e373734203339342e3034352033316102808201527f312e313137203338332e383435203331332e393738203337332e3030374c33366102a08201527f362e353238203137332e3936324c3336362e353333203137332e3934314333366102c08201527f372e323334203137312e3234203336352e353732203136382e373032203336326102e08201527f2e3831203136382e3236374c3331392e383437203136312e3530325a4d3336396103008201527f2e333932203137342e3431344c3336382e363532203137372e3231374c3331366103208201527f2e383433203337332e343538433331342e3339203338322e373438203332302e6103408201527f303936203339312e3439203332392e353837203339322e3938354c3730392e386103608201527f31203435322e3836433731392e333031203435342e333534203732382e3938336103808201527f203434382e303335203733312e343336203433382e3734354c3738302e3734376103a08201527f203235312e3936364c3738332e323435203234322e3530344c3738332e3938356103c08201527f203233392e3730314c3336392e333932203137342e3431345a222066696c6c3d6103e08201526b111198999899989b1110179f60a11b61040082015261040c01600080516020612a8683398151915281527f756c653d226576656e6f646422207374726f6b653d2275726c28236d61696e2960208201527f22207374726f6b652d77696474683d223422207374726f6b652d6c696e65636160408201527f703d22726f756e6422207374726f6b652d6c696e656a6f696e3d22726f756e6460608201527f2220643d224d3331392e383437203136312e353032433331302e33353620313660808201527f302e303037203330302e363734203136362e333236203239382e32323120313760a08201527f352e3631364c3133382e373234203737392e373538433133362e32373120373860c08201527f392e303438203134312e393737203739372e3739203135312e3436382037393960e08201527f2e3238354c3734302e303631203839312e393733433734392e353533203839336101008201527f2e343637203735392e323335203838372e313438203736312e363837203837376101208201527f2e3835384c3930322e343035203334342e3835344c3838392e313538203334326101408201527f2e3736384c3839382e383732203330352e3937324c3931322e313139203330386101608201527f2e3035394c3931332e373333203330312e393436433931342e383337203239376101808201527f2e373632203931342e333039203239332e343736203931322e323531203238396101a08201527f2e3932374c3839332e343834203235372e353639433839312e313533203235336101c08201527f2e353439203838372e303633203235302e383233203838322e323231203235306101e08201527f2e3036314c3832382e323035203234312e353534433832322e323234203234306102008201527f2e363133203831352e383639203234322e373833203831312e343237203234376102208201527f2e3238344c3830352e363836203235332e313033433830342e323035203235346102408201527f2e363033203830322e303837203235352e333236203830302e303933203235356102608201527f2e3031334c3738332e363131203235322e3431374c3733342e33203433392e316102808201527f3936433733312e343339203435302e303335203732302e313433203435372e346102a08201527f3037203730392e3037203435352e3636334c3332382e383437203339352e37386102c08201527f38433331372e373734203339342e303435203331312e313137203338332e38346102e08201527f35203331332e393738203337332e3030374c3336362e353238203137332e39366103008201527f324c3336362e353333203137332e393431433336372e323334203137312e32346103208201527f203336352e353732203136382e373032203336322e3831203136382e3236374c6103408201527f3331392e383437203136312e3530325a4d3336392e333932203137342e3431346103608201527f4c3336382e363532203137372e3231374c3331362e383433203337332e3435386103808201527f433331342e3339203338322e373438203332302e303936203339312e343920336103a08201527f32392e353837203339322e3938354c3730392e3831203435322e3836433731396103c08201527f2e333031203435342e333534203732382e393833203434382e303335203733316103e08201527f2e343336203433382e3734354c3738302e373437203235312e3936364c3738336104008201527f2e323435203234322e3530344c3738332e393835203233392e3730314c3336396104208201527f2e333932203137342e3431345a222066696c6c3d2275726c28236469736b65746104408201527f74652d6772616469656e7429222066696c6c2d6f7061636974793d22302e32226104608201526210179f60e91b610480820152610483017f3c7061746820643d224d3333352e3338203230382e313133433333352e39323281527f203230382e313938203333362e343137203230372e363836203333362e32383360208201527f203230372e3137394c3333302e3339203138342e373935433333302e3234392060408201527f3138342e323631203332392e353239203138342e313438203332392e3132392060608201527f3138342e3539374c3331322e333538203230332e343131433331312e3937382060808201527f3230332e383338203331322e313734203230342e343538203331322e3731362060a08201527f3230342e3534344c3331372e393632203230352e3337433331382e333537203260c08201527f30352e343332203331382e353935203230352e373936203331382e343933203260e08201527f30362e3138334c3331342e37203232302e353531433331342e353937203232306101008201527f2e393338203331342e383335203232312e333032203331352e323331203232316101208201527f2e3336344c3332342e353339203232322e3833433332342e393335203232322e6101408201527f383933203332352e333338203232322e363239203332352e3434203232322e326101608201527f34324c3332392e323333203230372e383735433332392e333336203230372e346101808201527f3838203332392e373339203230372e323234203333302e313335203230372e326101a08201527f38364c3333352e3338203230382e3131335a222066696c6c3d2275726c28236d6101c08201526730b4b7149110179f60c11b6101e08201526101e8017f3c7061746820643d224d3331392e323832203236392e303837433331392e383281527f34203236392e313733203332302e333139203236382e363631203332302e313860208201527f36203236382e3135344c3331342e323932203234352e3737433331342e31353160408201527f203234352e323336203331332e343331203234352e313233203331332e30333160608201527f203234352e3537324c3239362e323631203236342e333836433239352e38382060808201527f3236342e383132203239362e303736203236352e343333203239362e3631382060a08201527f3236352e3531384c3330312e383634203236362e333434433330322e3235392060c08201527f3236362e343037203330322e343937203236362e373731203330322e3339352060e08201527f3236372e3135384c3239382e363032203238312e353236433239382e352032386101008201527f312e393133203239382e373337203238322e323737203239392e3133332032386101208201527f322e3333394c3330382e343431203238332e383035433330382e3833372032386101408201527f332e383637203330392e3234203238332e363034203330392e333433203238336101608201527f2e3231374c3331332e313336203236382e383439433331332e323338203236386101808201527f2e343632203331332e363431203236382e313939203331342e303337203236386101a08201527f2e3236314c3331392e323832203236392e3038375a222066696c6c3d22626c616101c08201527f636b222066696c6c2d6f7061636974793d22302e3522202f3e000000000000006101e08201526101f9017f3c7061746820643d224d3330332e313834203333302e303632433330332e373281527f36203333302e313438203330342e323231203332392e363336203330342e303860208201527f38203332392e3132384c3239382e313934203330362e373435433239382e303560408201527f33203330362e323131203239372e333333203330362e303938203239362e393360608201527f33203330362e3534374c3238302e313633203332352e333631433237392e373860808201527f32203332352e373837203237392e393739203332362e343038203238302e353260a08201527f203332362e3439334c3238352e373636203332372e333139433238362e31363160c08201527f203332372e333832203238362e333939203332372e373436203238362e32393760e08201527f203332382e3133334c3238322e353034203334322e353031433238322e3430326101008201527f203334322e383838203238322e363339203334332e323532203238332e3033356101208201527f203334332e3331344c3239322e333434203334342e3738433239322e373339206101408201527f3334342e383432203239332e313432203334342e353739203239332e323435206101608201527f3334342e3139324c3239372e303338203332392e383234433239372e313420336101808201527f32392e343337203239372e353433203332392e313734203239372e39333920336101a08201527f32392e3233364c3330332e313834203333302e3036325a222066696c6c3d22626101c08201527f6c61636b222066696c6c2d6f7061636974793d22302e3522202f3e00000000006101e08201526101fb017f3c70617468207374726f6b653d2275726c28236d61696e2922207374726f6b6581527f2d77696474683d223622207374726f6b652d6c696e656361703d22726f756e6460208201527f22207374726f6b652d6c696e656a6f696e3d22726f756e642220643d224d323960408201527f302e313039203436332e343138433239322e333538203435342e39303220333060608201527f312e323333203434392e3131203330392e393333203435302e34384c3737312e60808201527f3037203532332e303936433737392e3737203532342e3436372037383520353360a08201527f322e3438203738322e373532203534302e3939364c3639322e3038362038383460c08201527f2e3431384c3139392e343433203830362e38344c3239302e313039203436332e60e08201527f3431385a222066696c6c3d22626c61636b222066696c6c2d6f7061636974793d61010082015268111817189a1110179f60b91b61012082015261012901600080516020612a8683398151915281527f756c653d226576656e6f646422207374726f6b653d2275726c28236d61696e2960208201527f22207374726f6b652d77696474683d223622207374726f6b652d6c696e65636160408201527f703d22726f756e6422207374726f6b652d6c696e656a6f696e3d22726f756e6460608201527f2220643d224d3738372e353839203233372e3334394c3436302e33353420313860808201527f352e3831384c3430362e333235203339302e343639433430332e38373220333960a08201527f392e373539203430392e353738203430382e353031203431392e30363920343060c08201527f392e3939364c3731312e393334203435362e313134433732312e34323520343560e08201527f372e363039203733312e313037203435312e3239203733332e3536203434324c6101008201527f3738372e353839203233372e3334395a4d3636302e323639203234352e3031436101208201527f3635352e353233203234342e323633203635302e363832203234372e343233206101408201527f3634392e343536203235322e3036384c3630372e333836203431312e343138436101608201527f3630362e3136203431362e303633203630392e303133203432302e34333420366101808201527f31332e373539203432312e3138314c3638322e343939203433322e30303643366101a08201527f38372e323435203433322e373533203639322e303836203432392e35393420366101c08201527f39332e333132203432342e3934394c3733352e333832203236352e35393943376101e08201527f33362e363038203236302e393534203733332e373535203235362e35383320376102008201527f32392e3031203235352e3833354c3636302e323639203234352e30315a2220666102208201527234b6361e913ab9361411b6b0b4b7149110179f60691b61024082015261025301600080516020612a8683398151915281527f756c653d226576656e6f64642220643d224d3836342e363433203238332e393360208201527f37433836352e313836203238332e363035203836352e373038203238342e323560408201527f37203836352e323339203238342e3638334c3834342e323638203330332e373160608201527f39433834332e393338203330342e303138203834342e303933203330342e353160808201527f37203834342e353236203330342e3534384c3835332e373236203330352e323060a08201527f37433835342e313834203330352e3234203835342e333231203330352e37383760c08201527f203835332e393432203330362e3037314c3833332e383834203332312e31313260e08201527f433833332e353036203332312e333936203833332e363433203332312e3934336101008201527f203833342e313031203332312e3937364c3834342e303037203332322e3638356101208201527f433834342e343931203332322e3732203834342e363035203332332e333139206101408201527f3834342e313737203332332e35384c3739372e373532203335312e39353443376101608201527f39372e323039203335322e323836203739362e363837203335312e36333420376101808201527f39372e313536203335312e3230394c3831382e343033203333312e39323243386101a08201527f31382e373333203333312e363232203831382e353737203333312e31323320386101c08201527f31382e313435203333312e3039324c3830382e373438203333302e34324338306101e08201527f382e323932203333302e333837203830382e313534203332392e3834332038306102008201527f382e353239203332392e3535384c3832382e303534203331342e3734344338326102208201527f382e3433203331342e343539203832382e323931203331332e393135203832376102408201527f2e383335203331332e3838324c3831382e333839203331332e323036433831376102608201527f2e393034203331332e313731203831372e3739203331322e353732203831382e6102808201527f323138203331322e3331314c3836342e363433203238332e3933375a222066696102a08201526c36361e913bb434ba329110179f60991b6102c08201526102cd017f3c67207472616e73666f726d3d226d617472697828302e39383738323720302e81527f313535353537202d302e32353532363120302e3936363837322032353020373360208201527f3529223e3c7465787420666f6e742d66616d696c793d22496e7465722c20736160408201527f6e732d73657269662220666f6e742d7765696768743d22626f6c642220666f6e60608201527f742d73697a653d223432222066696c6c3d2223453545374638223e00000000006080820152609b016121e99161020f565b7f3c2f746578743e3c7465787420666f6e742d66616d696c793d22496e7465722c81527f2073616e732d73657269662220666f6e742d7765696768743d226e6f726d616c60208201527f2220793d2234302220666f6e742d73697a653d223232222066696c6c3d222337604082015266231c189c99111f60c91b60608201526067016122749161020f565b6a1e17ba32bc3a1f1e17b39f60a91b8152600b017f3c696d6167652077696474683d2231363722206865696768743d22313637222081527f7472616e73666f726d3d226d617472697828302e39383738323720302e31353560208201527f353537202d302e32353532363120302e393636383732203434342e313137203560408201526d191a17189b949110343932b31e9160911b6060820152606e0161231a9161020f565b631110179f60e11b8152600401651e3232b3399f60d11b81526006017f3c66696c7465722069643d226469736b657474652d736861646f772220783d2281527f37302e373438392220793d223139352e373132222077696474683d223935352e60208201527f37333322206865696768743d223833322e353538222066696c746572556e697460408201527f733d227573657253706163654f6e5573652220636f6c6f722d696e746572706f60608201527f6c6174696f6e2d66696c746572733d2273524742223e3c6665466c6f6f64206660808201527f6c6f6f642d6f7061636974793d223022202f3e3c6665426c656e6420696e3d2260a08201527f536f757263654772617068696322202f3e3c6665476175737369616e426c757260c08201527f20737464446576696174696f6e3d22343222202f3e3c2f66696c7465723e000060e082015260fe017f3c6c696e6561724772616469656e742069643d226261636b67726f756e64222081527f78313d223533322e35222079313d2230222078323d223533322e35222079323d60208201527f223130363522206772616469656e74556e6974733d227573657253706163654f60408201527f6e557365223e3c73746f70202f3e3c73746f70206f66667365743d223122207360608201527f746f702d636f6c6f723d222331333133313322202f3e3c2f6c696e656172477260808201526630b234b2b73a1f60c91b60a082015260a7017f3c72616469616c4772616469656e742069643d226261636b67726f756e642d7281527f616469616c222063783d2230222063793d22302220723d22312220677261646960208201527f656e74556e6974733d227573657253706163654f6e557365222067726164696560408201527f6e745472616e73666f726d3d227472616e736c617465283533322e352035333260608201527f2e352920726f746174652838392e39363129207363616c652837333529223e3c60808201527039ba37b81039ba37b816b1b7b637b91e9160791b60a082015260b101612616908261020f565b7f22202f3e3c73746f70206f66667365743d2231222073746f702d636f6c6f723d8152601160f91b6020820152602101612650908261020f565b7f222073746f702d6f7061636974793d223022202f3e3c2f72616469616c4772618152653234b2b73a1f60d11b60208201526026017f3c6c696e6561724772616469656e742069643d226469736b657474652d67726181527f6469656e74222078313d223932352e363236222079313d223235362e3839362260208201527f2078323d223133362e373739222079323d223830302e3230332220677261646960408201527f656e74556e6974733d227573657253706163654f6e557365223e3c73746f702060608201526b39ba37b816b1b7b637b91e9160a11b6080820152608c0161273c908261020f565b7f22202f3e3c73746f70206f66667365743d2231222073746f702d636f6c6f723d81527f222332433331334622202f3e3c2f6c696e6561724772616469656e743e0000006020820152603d017f3c6c696e6561724772616469656e742069643d226d61696e223e3c73746f702081526b39ba37b816b1b7b637b91e9160a11b6020820152602c016127cc9161020f565b741110179f1e17b634b732b0b923b930b234b2b73a1f60591b8152601501661e17b232b3399f60c91b8152600701651e17b9bb339f60d11b81526006010390601f1991828101825261281e90826100fc565b612827906129aa565b6040517f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000602082015291908290603a82016128619161020f565b03908101825261287190826100fc565b90565b604051906020820182811067ffffffffffffffff821117612899575b60405260008252565b6128a16100e5565b612890565b604051906060820182811067ffffffffffffffff821117612917575b604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b61291f6100e5565b6128c2565b50634e487b7160e01b600052601160045260246000fd5b600290600219811161294b570190565b610222612924565b6001600160fe1b03811160011661296b575b60021b90565b612973612924565b612965565b906129828261012b565b61298f60405191826100fc565b82815280926129a0601f199161012b565b0190602036910137565b805115612a7c576129b96128a6565b6129dd6129d86129d36129cc855161293b565b6003900490565b612953565b612978565b9160208301918182518301915b828210612a2a57505050600390510680600114612a1757600214612a0c575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c16880101516002860153168501015190820153019391906129ea565b5061287161287456fe3c706174682066696c6c2d72756c653d226576656e6f64642220636c69702d72a3646970667358221220dcdcb8d4003e49048beca2ba9c0a200a894022b7deb6cc7334be65e6931c07fe6c6578706572696d656e74616cf564736f6c634300080c0041", + "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ENS\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"color\",\"type\":\"string\"}],\"name\":\"generateBase64\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"generateBase64(string,string,string,string)\":{\"details\":\"Generates a SVG image.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/util/FleekSVG.sol\":\"FleekSVG\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@openzeppelin/contracts/utils/Base64.sol\":{\"keccak256\":\"0x5f3461639fe20794cfb4db4a6d8477388a15b2e70a018043084b7c4bedfa8136\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://77e5309e2cc4cdc3395214edb0ff43ff5a5f7373f5a425383e540f6fab530f96\",\"dweb:/ipfs/QmTV8DZ9knJDa3b5NPBFQqjvTzodyZVjRUg5mx5A99JPLJ\"]},\"@openzeppelin/contracts/utils/Strings.sol\":{\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8c969013129ba9e651a20735ef659fef6d8a1139ea3607bd4b26ddea2d645634\",\"dweb:/ipfs/QmVhVa6LGuzAcB8qgDtVHRkucn4ihj5UZr8xBLcJkP6ucb\"]},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://33bbf48cc069be677705037ba7520c22b1b622c23b33e1a71495f2d36549d40b\",\"dweb:/ipfs/Qmct36zWXv3j7LZB83uwbg7TXwnZSN1fqHNDZ93GG98bGz\"]},\"contracts/util/FleekSVG.sol\":{\"keccak256\":\"0x9d52d0defd643999776563c3ac36f084ae5a04a22c76ec316a0aadf6666c3c9b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://87bc5cca5451b7b8f3986dec26087857fe0f09505116536efad370172fe731a3\",\"dweb:/ipfs/QmZmDxPG8BUUjrVD92T2dktcuFQBxvHgMEnWx5aPBcSfrA\"]}},\"version\":1}", + "storageLayout": { + "storage": [], + "types": null + } +} \ No newline at end of file diff --git a/contracts/deployments/qanet/proxy.json b/contracts/deployments/qanet/proxy.json new file mode 100644 index 0000000..72df998 --- /dev/null +++ b/contracts/deployments/qanet/proxy.json @@ -0,0 +1,8 @@ +{ + "FleekERC721": [ + { + "address": "0x1CfD8455F189c56a4FBd81EB7D4118DB04616BA8", + "timestamp": "6/16/2023, 8:51:33 AM" + } + ] + } \ No newline at end of file diff --git a/contracts/deployments/qanet/solcInputs/51265c9b241f9c7af77f823edadaae04.json b/contracts/deployments/qanet/solcInputs/51265c9b241f9c7af77f823edadaae04.json new file mode 100644 index 0000000..cd6851c --- /dev/null +++ b/contracts/deployments/qanet/solcInputs/51265c9b241f9c7af77f823edadaae04.json @@ -0,0 +1,147 @@ +{ + "language": "Solidity", + "sources": { + "@ensdomains/ens-contracts/contracts/registry/ENS.sol": { + "content": "pragma solidity >=0.8.4;\n\ninterface ENS {\n // Logged when the owner of a node assigns a new owner to a subnode.\n event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);\n\n // Logged when the owner of a node transfers ownership to a new account.\n event Transfer(bytes32 indexed node, address owner);\n\n // Logged when the resolver for a node changes.\n event NewResolver(bytes32 indexed node, address resolver);\n\n // Logged when the TTL of a node changes\n event NewTTL(bytes32 indexed node, uint64 ttl);\n\n // Logged when an operator is added or removed.\n event ApprovalForAll(\n address indexed owner,\n address indexed operator,\n bool approved\n );\n\n function setRecord(\n bytes32 node,\n address owner,\n address resolver,\n uint64 ttl\n ) external;\n\n function setSubnodeRecord(\n bytes32 node,\n bytes32 label,\n address owner,\n address resolver,\n uint64 ttl\n ) external;\n\n function setSubnodeOwner(\n bytes32 node,\n bytes32 label,\n address owner\n ) external returns (bytes32);\n\n function setResolver(bytes32 node, address resolver) external;\n\n function setOwner(bytes32 node, address owner) external;\n\n function setTTL(bytes32 node, uint64 ttl) external;\n\n function setApprovalForAll(address operator, bool approved) external;\n\n function owner(bytes32 node) external view returns (address);\n\n function resolver(bytes32 node) external view returns (address);\n\n function ttl(bytes32 node) external view returns (uint64);\n\n function recordExists(bytes32 node) external view returns (bool);\n\n function isApprovedForAll(\n address owner,\n address operator\n ) external view returns (bool);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IABIResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IABIResolver {\n event ABIChanged(bytes32 indexed node, uint256 indexed contentType);\n\n /**\n * Returns the ABI associated with an ENS node.\n * Defined in EIP205.\n * @param node The ENS node to query\n * @param contentTypes A bitwise OR of the ABI formats accepted by the caller.\n * @return contentType The content type of the return value\n * @return data The ABI data\n */\n function ABI(\n bytes32 node,\n uint256 contentTypes\n ) external view returns (uint256, bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddressResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\n/**\n * Interface for the new (multicoin) addr function.\n */\ninterface IAddressResolver {\n event AddressChanged(\n bytes32 indexed node,\n uint256 coinType,\n bytes newAddress\n );\n\n function addr(\n bytes32 node,\n uint256 coinType\n ) external view returns (bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddrResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\n/**\n * Interface for the legacy (ETH-only) addr function.\n */\ninterface IAddrResolver {\n event AddrChanged(bytes32 indexed node, address a);\n\n /**\n * Returns the address associated with an ENS node.\n * @param node The ENS node to query.\n * @return The associated address.\n */\n function addr(bytes32 node) external view returns (address payable);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IContentHashResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IContentHashResolver {\n event ContenthashChanged(bytes32 indexed node, bytes hash);\n\n /**\n * Returns the contenthash associated with an ENS node.\n * @param node The ENS node to query.\n * @return The associated contenthash.\n */\n function contenthash(bytes32 node) external view returns (bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSRecordResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IDNSRecordResolver {\n // DNSRecordChanged is emitted whenever a given node/name/resource's RRSET is updated.\n event DNSRecordChanged(\n bytes32 indexed node,\n bytes name,\n uint16 resource,\n bytes record\n );\n // DNSRecordDeleted is emitted whenever a given node/name/resource's RRSET is deleted.\n event DNSRecordDeleted(bytes32 indexed node, bytes name, uint16 resource);\n\n /**\n * Obtain a DNS record.\n * @param node the namehash of the node for which to fetch the record\n * @param name the keccak-256 hash of the fully-qualified name for which to fetch the record\n * @param resource the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types\n * @return the DNS record in wire format if present, otherwise empty\n */\n function dnsRecord(\n bytes32 node,\n bytes32 name,\n uint16 resource\n ) external view returns (bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSZoneResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IDNSZoneResolver {\n // DNSZonehashChanged is emitted whenever a given node's zone hash is updated.\n event DNSZonehashChanged(\n bytes32 indexed node,\n bytes lastzonehash,\n bytes zonehash\n );\n\n /**\n * zonehash obtains the hash for the zone.\n * @param node The ENS node to query.\n * @return The associated contenthash.\n */\n function zonehash(bytes32 node) external view returns (bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IExtendedResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\ninterface IExtendedResolver {\n function resolve(\n bytes memory name,\n bytes memory data\n ) external view returns (bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IInterfaceResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IInterfaceResolver {\n event InterfaceChanged(\n bytes32 indexed node,\n bytes4 indexed interfaceID,\n address implementer\n );\n\n /**\n * Returns the address of a contract that implements the specified interface for this name.\n * If an implementer has not been set for this interfaceID and name, the resolver will query\n * the contract at `addr()`. If `addr()` is set, a contract exists at that address, and that\n * contract implements EIP165 and returns `true` for the specified interfaceID, its address\n * will be returned.\n * @param node The ENS node to query.\n * @param interfaceID The EIP 165 interface ID to check for.\n * @return The address that implements this interface, or 0 if the interface is unsupported.\n */\n function interfaceImplementer(\n bytes32 node,\n bytes4 interfaceID\n ) external view returns (address);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/INameResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface INameResolver {\n event NameChanged(bytes32 indexed node, string name);\n\n /**\n * Returns the name associated with an ENS node, for reverse records.\n * Defined in EIP181.\n * @param node The ENS node to query.\n * @return The associated name.\n */\n function name(bytes32 node) external view returns (string memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IPubkeyResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IPubkeyResolver {\n event PubkeyChanged(bytes32 indexed node, bytes32 x, bytes32 y);\n\n /**\n * Returns the SECP256k1 public key associated with an ENS node.\n * Defined in EIP 619.\n * @param node The ENS node to query\n * @return x The X coordinate of the curve point for the public key.\n * @return y The Y coordinate of the curve point for the public key.\n */\n function pubkey(bytes32 node) external view returns (bytes32 x, bytes32 y);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/ITextResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface ITextResolver {\n event TextChanged(\n bytes32 indexed node,\n string indexed indexedKey,\n string key,\n string value\n );\n\n /**\n * Returns the text data associated with an ENS node and key.\n * @param node The ENS node to query.\n * @param key The text data key to query.\n * @return The associated text data.\n */\n function text(\n bytes32 node,\n string calldata key\n ) external view returns (string memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/Resolver.sol": { + "content": "//SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\nimport \"@openzeppelin/contracts/utils/introspection/IERC165.sol\";\nimport \"./profiles/IABIResolver.sol\";\nimport \"./profiles/IAddressResolver.sol\";\nimport \"./profiles/IAddrResolver.sol\";\nimport \"./profiles/IContentHashResolver.sol\";\nimport \"./profiles/IDNSRecordResolver.sol\";\nimport \"./profiles/IDNSZoneResolver.sol\";\nimport \"./profiles/IInterfaceResolver.sol\";\nimport \"./profiles/INameResolver.sol\";\nimport \"./profiles/IPubkeyResolver.sol\";\nimport \"./profiles/ITextResolver.sol\";\nimport \"./profiles/IExtendedResolver.sol\";\n\n/**\n * A generic resolver interface which includes all the functions including the ones deprecated\n */\ninterface Resolver is\n IERC165,\n IABIResolver,\n IAddressResolver,\n IAddrResolver,\n IContentHashResolver,\n IDNSRecordResolver,\n IDNSZoneResolver,\n IInterfaceResolver,\n INameResolver,\n IPubkeyResolver,\n ITextResolver,\n IExtendedResolver\n{\n /* Deprecated events */\n event ContentChanged(bytes32 indexed node, bytes32 hash);\n\n function setABI(\n bytes32 node,\n uint256 contentType,\n bytes calldata data\n ) external;\n\n function setAddr(bytes32 node, address addr) external;\n\n function setAddr(bytes32 node, uint256 coinType, bytes calldata a) external;\n\n function setContenthash(bytes32 node, bytes calldata hash) external;\n\n function setDnsrr(bytes32 node, bytes calldata data) external;\n\n function setName(bytes32 node, string calldata _name) external;\n\n function setPubkey(bytes32 node, bytes32 x, bytes32 y) external;\n\n function setText(\n bytes32 node,\n string calldata key,\n string calldata value\n ) external;\n\n function setInterface(\n bytes32 node,\n bytes4 interfaceID,\n address implementer\n ) external;\n\n function multicall(\n bytes[] calldata data\n ) external returns (bytes[] memory results);\n\n function multicallWithNodeCheck(\n bytes32 nodehash,\n bytes[] calldata data\n ) external returns (bytes[] memory results);\n\n /* Deprecated functions */\n function content(bytes32 node) external view returns (bytes32);\n\n function multihash(bytes32 node) external view returns (bytes memory);\n\n function setContent(bytes32 node, bytes32 hash) external;\n\n function setMultihash(bytes32 node, bytes calldata hash) external;\n}\n" + }, + "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n * @custom:oz-retyped-from bool\n */\n uint8 private _initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private _initializing;\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint8 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n * constructor.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n bool isTopLevelCall = !_initializing;\n require(\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n \"Initializable: contract is already initialized\"\n );\n _initialized = 1;\n if (isTopLevelCall) {\n _initializing = true;\n }\n _;\n if (isTopLevelCall) {\n _initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: setting the version to 255 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint8 version) {\n require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n _initialized = version;\n _initializing = true;\n _;\n _initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n _;\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n require(!_initializing, \"Initializable: contract is initializing\");\n if (_initialized < type(uint8).max) {\n _initialized = type(uint8).max;\n emit Initialized(type(uint8).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint8) {\n return _initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _initializing;\n }\n}\n" + }, + "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC721Upgradeable.sol\";\nimport \"./IERC721ReceiverUpgradeable.sol\";\nimport \"./extensions/IERC721MetadataUpgradeable.sol\";\nimport \"../../utils/AddressUpgradeable.sol\";\nimport \"../../utils/ContextUpgradeable.sol\";\nimport \"../../utils/StringsUpgradeable.sol\";\nimport \"../../utils/introspection/ERC165Upgradeable.sol\";\nimport \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including\n * the Metadata extension, but not including the Enumerable extension, which is available separately as\n * {ERC721Enumerable}.\n */\ncontract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {\n using AddressUpgradeable for address;\n using StringsUpgradeable for uint256;\n\n // Token name\n string private _name;\n\n // Token symbol\n string private _symbol;\n\n // Mapping from token ID to owner address\n mapping(uint256 => address) private _owners;\n\n // Mapping owner address to token count\n mapping(address => uint256) private _balances;\n\n // Mapping from token ID to approved address\n mapping(uint256 => address) private _tokenApprovals;\n\n // Mapping from owner to operator approvals\n mapping(address => mapping(address => bool)) private _operatorApprovals;\n\n /**\n * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n */\n function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {\n __ERC721_init_unchained(name_, symbol_);\n }\n\n function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {\n _name = name_;\n _symbol = symbol_;\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) {\n return\n interfaceId == type(IERC721Upgradeable).interfaceId ||\n interfaceId == type(IERC721MetadataUpgradeable).interfaceId ||\n super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev See {IERC721-balanceOf}.\n */\n function balanceOf(address owner) public view virtual override returns (uint256) {\n require(owner != address(0), \"ERC721: address zero is not a valid owner\");\n return _balances[owner];\n }\n\n /**\n * @dev See {IERC721-ownerOf}.\n */\n function ownerOf(uint256 tokenId) public view virtual override returns (address) {\n address owner = _ownerOf(tokenId);\n require(owner != address(0), \"ERC721: invalid token ID\");\n return owner;\n }\n\n /**\n * @dev See {IERC721Metadata-name}.\n */\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IERC721Metadata-symbol}.\n */\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev See {IERC721Metadata-tokenURI}.\n */\n function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {\n _requireMinted(tokenId);\n\n string memory baseURI = _baseURI();\n return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : \"\";\n }\n\n /**\n * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each\n * token will be the concatenation of the `baseURI` and the `tokenId`. Empty\n * by default, can be overridden in child contracts.\n */\n function _baseURI() internal view virtual returns (string memory) {\n return \"\";\n }\n\n /**\n * @dev See {IERC721-approve}.\n */\n function approve(address to, uint256 tokenId) public virtual override {\n address owner = ERC721Upgradeable.ownerOf(tokenId);\n require(to != owner, \"ERC721: approval to current owner\");\n\n require(\n _msgSender() == owner || isApprovedForAll(owner, _msgSender()),\n \"ERC721: approve caller is not token owner or approved for all\"\n );\n\n _approve(to, tokenId);\n }\n\n /**\n * @dev See {IERC721-getApproved}.\n */\n function getApproved(uint256 tokenId) public view virtual override returns (address) {\n _requireMinted(tokenId);\n\n return _tokenApprovals[tokenId];\n }\n\n /**\n * @dev See {IERC721-setApprovalForAll}.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n _setApprovalForAll(_msgSender(), operator, approved);\n }\n\n /**\n * @dev See {IERC721-isApprovedForAll}.\n */\n function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {\n return _operatorApprovals[owner][operator];\n }\n\n /**\n * @dev See {IERC721-transferFrom}.\n */\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) public virtual override {\n //solhint-disable-next-line max-line-length\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: caller is not token owner or approved\");\n\n _transfer(from, to, tokenId);\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) public virtual override {\n safeTransferFrom(from, to, tokenId, \"\");\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes memory data\n ) public virtual override {\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: caller is not token owner or approved\");\n _safeTransfer(from, to, tokenId, data);\n }\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * `data` is additional data, it has no specified format and it is sent in call to `to`.\n *\n * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.\n * implement alternative mechanisms to perform token transfer, such as signature-based.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeTransfer(\n address from,\n address to,\n uint256 tokenId,\n bytes memory data\n ) internal virtual {\n _transfer(from, to, tokenId);\n require(_checkOnERC721Received(from, to, tokenId, data), \"ERC721: transfer to non ERC721Receiver implementer\");\n }\n\n /**\n * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist\n */\n function _ownerOf(uint256 tokenId) internal view virtual returns (address) {\n return _owners[tokenId];\n }\n\n /**\n * @dev Returns whether `tokenId` exists.\n *\n * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.\n *\n * Tokens start existing when they are minted (`_mint`),\n * and stop existing when they are burned (`_burn`).\n */\n function _exists(uint256 tokenId) internal view virtual returns (bool) {\n return _ownerOf(tokenId) != address(0);\n }\n\n /**\n * @dev Returns whether `spender` is allowed to manage `tokenId`.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {\n address owner = ERC721Upgradeable.ownerOf(tokenId);\n return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);\n }\n\n /**\n * @dev Safely mints `tokenId` and transfers it to `to`.\n *\n * Requirements:\n *\n * - `tokenId` must not exist.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeMint(address to, uint256 tokenId) internal virtual {\n _safeMint(to, tokenId, \"\");\n }\n\n /**\n * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n */\n function _safeMint(\n address to,\n uint256 tokenId,\n bytes memory data\n ) internal virtual {\n _mint(to, tokenId);\n require(\n _checkOnERC721Received(address(0), to, tokenId, data),\n \"ERC721: transfer to non ERC721Receiver implementer\"\n );\n }\n\n /**\n * @dev Mints `tokenId` and transfers it to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n *\n * Requirements:\n *\n * - `tokenId` must not exist.\n * - `to` cannot be the zero address.\n *\n * Emits a {Transfer} event.\n */\n function _mint(address to, uint256 tokenId) internal virtual {\n require(to != address(0), \"ERC721: mint to the zero address\");\n require(!_exists(tokenId), \"ERC721: token already minted\");\n\n _beforeTokenTransfer(address(0), to, tokenId, 1);\n\n // Check that tokenId was not minted by `_beforeTokenTransfer` hook\n require(!_exists(tokenId), \"ERC721: token already minted\");\n\n unchecked {\n // Will not overflow unless all 2**256 token ids are minted to the same owner.\n // Given that tokens are minted one by one, it is impossible in practice that\n // this ever happens. Might change if we allow batch minting.\n // The ERC fails to describe this case.\n _balances[to] += 1;\n }\n\n _owners[tokenId] = to;\n\n emit Transfer(address(0), to, tokenId);\n\n _afterTokenTransfer(address(0), to, tokenId, 1);\n }\n\n /**\n * @dev Destroys `tokenId`.\n * The approval is cleared when the token is burned.\n * This is an internal function that does not check if the sender is authorized to operate on the token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n *\n * Emits a {Transfer} event.\n */\n function _burn(uint256 tokenId) internal virtual {\n address owner = ERC721Upgradeable.ownerOf(tokenId);\n\n _beforeTokenTransfer(owner, address(0), tokenId, 1);\n\n // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook\n owner = ERC721Upgradeable.ownerOf(tokenId);\n\n // Clear approvals\n delete _tokenApprovals[tokenId];\n\n unchecked {\n // Cannot overflow, as that would require more tokens to be burned/transferred\n // out than the owner initially received through minting and transferring in.\n _balances[owner] -= 1;\n }\n delete _owners[tokenId];\n\n emit Transfer(owner, address(0), tokenId);\n\n _afterTokenTransfer(owner, address(0), tokenId, 1);\n }\n\n /**\n * @dev Transfers `tokenId` from `from` to `to`.\n * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n *\n * Emits a {Transfer} event.\n */\n function _transfer(\n address from,\n address to,\n uint256 tokenId\n ) internal virtual {\n require(ERC721Upgradeable.ownerOf(tokenId) == from, \"ERC721: transfer from incorrect owner\");\n require(to != address(0), \"ERC721: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, tokenId, 1);\n\n // Check that tokenId was not transferred by `_beforeTokenTransfer` hook\n require(ERC721Upgradeable.ownerOf(tokenId) == from, \"ERC721: transfer from incorrect owner\");\n\n // Clear approvals from the previous owner\n delete _tokenApprovals[tokenId];\n\n unchecked {\n // `_balances[from]` cannot overflow for the same reason as described in `_burn`:\n // `from`'s balance is the number of token held, which is at least one before the current\n // transfer.\n // `_balances[to]` could overflow in the conditions described in `_mint`. That would require\n // all 2**256 token ids to be minted, which in practice is impossible.\n _balances[from] -= 1;\n _balances[to] += 1;\n }\n _owners[tokenId] = to;\n\n emit Transfer(from, to, tokenId);\n\n _afterTokenTransfer(from, to, tokenId, 1);\n }\n\n /**\n * @dev Approve `to` to operate on `tokenId`\n *\n * Emits an {Approval} event.\n */\n function _approve(address to, uint256 tokenId) internal virtual {\n _tokenApprovals[tokenId] = to;\n emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId);\n }\n\n /**\n * @dev Approve `operator` to operate on all of `owner` tokens\n *\n * Emits an {ApprovalForAll} event.\n */\n function _setApprovalForAll(\n address owner,\n address operator,\n bool approved\n ) internal virtual {\n require(owner != operator, \"ERC721: approve to caller\");\n _operatorApprovals[owner][operator] = approved;\n emit ApprovalForAll(owner, operator, approved);\n }\n\n /**\n * @dev Reverts if the `tokenId` has not been minted yet.\n */\n function _requireMinted(uint256 tokenId) internal view virtual {\n require(_exists(tokenId), \"ERC721: invalid token ID\");\n }\n\n /**\n * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.\n * The call is not executed if the target address is not a contract.\n *\n * @param from address representing the previous owner of the given token ID\n * @param to target address that will receive the tokens\n * @param tokenId uint256 ID of the token to be transferred\n * @param data bytes optional data to send along with the call\n * @return bool whether the call correctly returned the expected magic value\n */\n function _checkOnERC721Received(\n address from,\n address to,\n uint256 tokenId,\n bytes memory data\n ) private returns (bool) {\n if (to.isContract()) {\n try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {\n return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;\n } catch (bytes memory reason) {\n if (reason.length == 0) {\n revert(\"ERC721: transfer to non ERC721Receiver implementer\");\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n revert(add(32, reason), mload(reason))\n }\n }\n }\n } else {\n return true;\n }\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is\n * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.\n * - When `from` is zero, the tokens will be minted for `to`.\n * - When `to` is zero, ``from``'s tokens will be burned.\n * - `from` and `to` are never both zero.\n * - `batchSize` is non-zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256, /* firstTokenId */\n uint256 batchSize\n ) internal virtual {\n if (batchSize > 1) {\n if (from != address(0)) {\n _balances[from] -= batchSize;\n }\n if (to != address(0)) {\n _balances[to] += batchSize;\n }\n }\n }\n\n /**\n * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is\n * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.\n * - When `from` is zero, the tokens were minted for `to`.\n * - When `to` is zero, ``from``'s tokens were burned.\n * - `from` and `to` are never both zero.\n * - `batchSize` is non-zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 firstTokenId,\n uint256 batchSize\n ) internal virtual {}\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[44] private __gap;\n}\n" + }, + "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC721Upgradeable.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721MetadataUpgradeable is IERC721Upgradeable {\n /**\n * @dev Returns the token collection name.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the token collection symbol.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n */\n function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n" + }, + "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721ReceiverUpgradeable {\n /**\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n * by `operator` from `from`, this function is called.\n *\n * It must return its Solidity selector to confirm the token transfer.\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n *\n * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n */\n function onERC721Received(\n address operator,\n address from,\n uint256 tokenId,\n bytes calldata data\n ) external returns (bytes4);\n}\n" + }, + "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165Upgradeable.sol\";\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721Upgradeable is IERC165Upgradeable {\n /**\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n */\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n */\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n */\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n /**\n * @dev Returns the number of tokens in ``owner``'s account.\n */\n function balanceOf(address owner) external view returns (uint256 balance);\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) external view returns (address owner);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes calldata data\n ) external;\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n /**\n * @dev Transfers `tokenId` token from `from` to `to`.\n *\n * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721\n * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n * understand this adds an external call which potentially creates a reentrancy vulnerability.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function approve(address to, uint256 tokenId) external;\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the caller.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool _approved) external;\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) external view returns (address operator);\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}\n */\n function isApprovedForAll(address owner, address operator) external view returns (bool);\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165Upgradeable.sol\";\nimport \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {\n function __ERC165_init() internal onlyInitializing {\n }\n\n function __ERC165_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IERC165Upgradeable).interfaceId;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165Upgradeable {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary MathUpgradeable {\n enum Rounding {\n Down, // Toward negative infinity\n Up, // Toward infinity\n Zero // Toward zero\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two numbers. The result is rounded towards\n * zero.\n */\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b) / 2 can overflow.\n return (a & b) + (a ^ b) / 2;\n }\n\n /**\n * @dev Returns the ceiling of the division of two numbers.\n *\n * This differs from standard division with `/` in that it rounds up instead\n * of rounding down.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b - 1) / b can overflow on addition, so we distribute.\n return a == 0 ? 0 : (a - 1) / b + 1;\n }\n\n /**\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n * with further edits by Uniswap Labs also under MIT license.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator\n ) internal pure returns (uint256 result) {\n unchecked {\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = prod1 * 2^256 + prod0.\n uint256 prod0; // Least significant 256 bits of the product\n uint256 prod1; // Most significant 256 bits of the product\n assembly {\n let mm := mulmod(x, y, not(0))\n prod0 := mul(x, y)\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n }\n\n // Handle non-overflow cases, 256 by 256 division.\n if (prod1 == 0) {\n return prod0 / denominator;\n }\n\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\n require(denominator > prod1);\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [prod1 prod0].\n uint256 remainder;\n assembly {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n prod1 := sub(prod1, gt(remainder, prod0))\n prod0 := sub(prod0, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n // See https://cs.stackexchange.com/q/138556/92363.\n\n // Does not overflow because the denominator cannot be zero at this stage in the function.\n uint256 twos = denominator & (~denominator + 1);\n assembly {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [prod1 prod0] by twos.\n prod0 := div(prod0, twos)\n\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from prod1 into prod0.\n prod0 |= prod1 * twos;\n\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv = 1 mod 2^4.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n // in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n // is no longer required.\n result = prod0 * inverse;\n return result;\n }\n }\n\n /**\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator,\n Rounding rounding\n ) internal pure returns (uint256) {\n uint256 result = mulDiv(x, y, denominator);\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n result += 1;\n }\n return result;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n *\n * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n //\n // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n //\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n //\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n uint256 result = 1 << (log2(a) >> 1);\n\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n // into the expected uint128 result.\n unchecked {\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n return min(result, a / result);\n }\n }\n\n /**\n * @notice Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 2, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 128;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 64;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 32;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 16;\n }\n if (value >> 8 > 0) {\n value >>= 8;\n result += 8;\n }\n if (value >> 4 > 0) {\n value >>= 4;\n result += 4;\n }\n if (value >> 2 > 0) {\n value >>= 2;\n result += 2;\n }\n if (value >> 1 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 10, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10**64) {\n value /= 10**64;\n result += 64;\n }\n if (value >= 10**32) {\n value /= 10**32;\n result += 32;\n }\n if (value >= 10**16) {\n value /= 10**16;\n result += 16;\n }\n if (value >= 10**8) {\n value /= 10**8;\n result += 8;\n }\n if (value >= 10**4) {\n value /= 10**4;\n result += 4;\n }\n if (value >= 10**2) {\n value /= 10**2;\n result += 2;\n }\n if (value >= 10**1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 256, rounded down, of a positive value.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 16;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 8;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 4;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 2;\n }\n if (value >> 8 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\n }\n }\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/MathUpgradeable.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary StringsUpgradeable {\n bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n uint8 private constant _ADDRESS_LENGTH = 20;\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = MathUpgradeable.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n /// @solidity memory-safe-assembly\n assembly {\n ptr := add(buffer, add(32, length))\n }\n while (true) {\n ptr--;\n /// @solidity memory-safe-assembly\n assembly {\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, MathUpgradeable.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n bytes memory buffer = new bytes(2 * length + 2);\n buffer[0] = \"0\";\n buffer[1] = \"x\";\n for (uint256 i = 2 * length + 1; i > 1; --i) {\n buffer[i] = _SYMBOLS[value & 0xf];\n value >>= 4;\n }\n require(value == 0, \"Strings: hex length insufficient\");\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC721/IERC721.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n /**\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n */\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n */\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n */\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n /**\n * @dev Returns the number of tokens in ``owner``'s account.\n */\n function balanceOf(address owner) external view returns (uint256 balance);\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) external view returns (address owner);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes calldata data\n ) external;\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n /**\n * @dev Transfers `tokenId` token from `from` to `to`.\n *\n * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721\n * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n * understand this adds an external call which potentially creates a reentrancy vulnerability.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function approve(address to, uint256 tokenId) external;\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the caller.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool _approved) external;\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) external view returns (address operator);\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}\n */\n function isApprovedForAll(address owner, address operator) external view returns (bool);\n}\n" + }, + "@openzeppelin/contracts/utils/Base64.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides a set of functions to operate with Base64 strings.\n *\n * _Available since v4.5._\n */\nlibrary Base64 {\n /**\n * @dev Base64 Encoding/Decoding Table\n */\n string internal constant _TABLE = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\n /**\n * @dev Converts a `bytes` to its Bytes64 `string` representation.\n */\n function encode(bytes memory data) internal pure returns (string memory) {\n /**\n * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence\n * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol\n */\n if (data.length == 0) return \"\";\n\n // Loads the table into memory\n string memory table = _TABLE;\n\n // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter\n // and split into 4 numbers of 6 bits.\n // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up\n // - `data.length + 2` -> Round up\n // - `/ 3` -> Number of 3-bytes chunks\n // - `4 *` -> 4 characters for each chunk\n string memory result = new string(4 * ((data.length + 2) / 3));\n\n /// @solidity memory-safe-assembly\n assembly {\n // Prepare the lookup table (skip the first \"length\" byte)\n let tablePtr := add(table, 1)\n\n // Prepare result pointer, jump over length\n let resultPtr := add(result, 32)\n\n // Run over the input, 3 bytes at a time\n for {\n let dataPtr := data\n let endPtr := add(data, mload(data))\n } lt(dataPtr, endPtr) {\n\n } {\n // Advance 3 bytes\n dataPtr := add(dataPtr, 3)\n let input := mload(dataPtr)\n\n // To write each character, shift the 3 bytes (18 bits) chunk\n // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)\n // and apply logical AND with 0x3F which is the number of\n // the previous character in the ASCII table prior to the Base64 Table\n // The result is then added to the table to get the character to write,\n // and finally write it in the result pointer but with a left shift\n // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits\n\n mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))\n resultPtr := add(resultPtr, 1) // Advance\n\n mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))\n resultPtr := add(resultPtr, 1) // Advance\n\n mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))\n resultPtr := add(resultPtr, 1) // Advance\n\n mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))\n resultPtr := add(resultPtr, 1) // Advance\n }\n\n // When data `bytes` is not exactly 3 bytes long\n // it is padded with `=` characters at the end\n switch mod(mload(data), 3)\n case 1 {\n mstore8(sub(resultPtr, 1), 0x3d)\n mstore8(sub(resultPtr, 2), 0x3d)\n }\n case 2 {\n mstore8(sub(resultPtr, 1), 0x3d)\n }\n }\n\n return result;\n }\n}\n" + }, + "@openzeppelin/contracts/utils/introspection/IERC165.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n" + }, + "@openzeppelin/contracts/utils/math/Math.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Down, // Toward negative infinity\n Up, // Toward infinity\n Zero // Toward zero\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two numbers. The result is rounded towards\n * zero.\n */\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b) / 2 can overflow.\n return (a & b) + (a ^ b) / 2;\n }\n\n /**\n * @dev Returns the ceiling of the division of two numbers.\n *\n * This differs from standard division with `/` in that it rounds up instead\n * of rounding down.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b - 1) / b can overflow on addition, so we distribute.\n return a == 0 ? 0 : (a - 1) / b + 1;\n }\n\n /**\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n * with further edits by Uniswap Labs also under MIT license.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator\n ) internal pure returns (uint256 result) {\n unchecked {\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = prod1 * 2^256 + prod0.\n uint256 prod0; // Least significant 256 bits of the product\n uint256 prod1; // Most significant 256 bits of the product\n assembly {\n let mm := mulmod(x, y, not(0))\n prod0 := mul(x, y)\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n }\n\n // Handle non-overflow cases, 256 by 256 division.\n if (prod1 == 0) {\n return prod0 / denominator;\n }\n\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\n require(denominator > prod1);\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [prod1 prod0].\n uint256 remainder;\n assembly {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n prod1 := sub(prod1, gt(remainder, prod0))\n prod0 := sub(prod0, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n // See https://cs.stackexchange.com/q/138556/92363.\n\n // Does not overflow because the denominator cannot be zero at this stage in the function.\n uint256 twos = denominator & (~denominator + 1);\n assembly {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [prod1 prod0] by twos.\n prod0 := div(prod0, twos)\n\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from prod1 into prod0.\n prod0 |= prod1 * twos;\n\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv = 1 mod 2^4.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n // in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n // is no longer required.\n result = prod0 * inverse;\n return result;\n }\n }\n\n /**\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator,\n Rounding rounding\n ) internal pure returns (uint256) {\n uint256 result = mulDiv(x, y, denominator);\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n result += 1;\n }\n return result;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n *\n * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n //\n // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n //\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n //\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n uint256 result = 1 << (log2(a) >> 1);\n\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n // into the expected uint128 result.\n unchecked {\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n return min(result, a / result);\n }\n }\n\n /**\n * @notice Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 2, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 128;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 64;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 32;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 16;\n }\n if (value >> 8 > 0) {\n value >>= 8;\n result += 8;\n }\n if (value >> 4 > 0) {\n value >>= 4;\n result += 4;\n }\n if (value >> 2 > 0) {\n value >>= 2;\n result += 2;\n }\n if (value >> 1 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 10, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10**64) {\n value /= 10**64;\n result += 64;\n }\n if (value >= 10**32) {\n value /= 10**32;\n result += 32;\n }\n if (value >= 10**16) {\n value /= 10**16;\n result += 16;\n }\n if (value >= 10**8) {\n value /= 10**8;\n result += 8;\n }\n if (value >= 10**4) {\n value /= 10**4;\n result += 4;\n }\n if (value >= 10**2) {\n value /= 10**2;\n result += 2;\n }\n if (value >= 10**1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 256, rounded down, of a positive value.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 16;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 8;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 4;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 2;\n }\n if (value >> 8 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Strings.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n uint8 private constant _ADDRESS_LENGTH = 20;\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n /// @solidity memory-safe-assembly\n assembly {\n ptr := add(buffer, add(32, length))\n }\n while (true) {\n ptr--;\n /// @solidity memory-safe-assembly\n assembly {\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n bytes memory buffer = new bytes(2 * length + 2);\n buffer[0] = \"0\";\n buffer[1] = \"x\";\n for (uint256 i = 2 * length + 1; i > 1; --i) {\n buffer[i] = _SYMBOLS[value & 0xf];\n value >>= 4;\n }\n require(value == 0, \"Strings: hex length insufficient\");\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n }\n}\n" + }, + "contracts/FleekAccessControl.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\n\nerror MustHaveCollectionRole(uint8 role);\nerror MustHaveTokenRole(uint256 tokenId, uint8 role);\nerror MustHaveAtLeastOneOwner();\nerror RoleAlreadySet();\n\ncontract FleekAccessControl is Initializable {\n /**\n * @dev All available collection roles.\n */\n enum CollectionRoles {\n Owner,\n Verifier\n }\n\n /**\n * @dev All available token roles.\n */\n enum TokenRoles {\n Controller\n }\n\n /**\n * @dev Emitted when a token role is changed.\n */\n event TokenRoleChanged(\n uint256 indexed tokenId,\n TokenRoles indexed role,\n address indexed toAddress,\n bool status,\n address byAddress\n );\n\n /**\n * @dev Emitted when token roles version is increased and all token roles are cleared.\n */\n event TokenRolesCleared(uint256 indexed tokenId, address byAddress);\n\n /**\n * @dev Emitted when a collection role is changed.\n */\n event CollectionRoleChanged(\n CollectionRoles indexed role,\n address indexed toAddress,\n bool status,\n address byAddress\n );\n\n /**\n * @dev _collectionRolesCounter[role] is the number of addresses that have the role.\n * This is prevent Owner role to go to 0.\n */\n mapping(CollectionRoles => uint256) private _collectionRolesCounter;\n\n /**\n * @dev _collectionRoles[role][address] is the mapping of addresses that have the role.\n */\n mapping(CollectionRoles => mapping(address => bool)) private _collectionRoles;\n\n /**\n * @dev _tokenRolesVersion[tokenId] is the version of the token roles.\n * The version is incremented every time the token roles are cleared.\n * Should be incremented every token transfer.\n */\n mapping(uint256 => uint256) private _tokenRolesVersion;\n\n /**\n * @dev _tokenRoles[tokenId][version][role][address] is the mapping of addresses that have the role.\n */\n mapping(uint256 => mapping(uint256 => mapping(TokenRoles => mapping(address => bool)))) private _tokenRoles;\n\n /**\n * @dev Initializes the contract by granting the `Owner` role to the deployer.\n */\n function __FleekAccessControl_init() internal onlyInitializing {\n _grantCollectionRole(CollectionRoles.Owner, msg.sender);\n _grantCollectionRole(CollectionRoles.Verifier, msg.sender);\n }\n\n /**\n * @dev Checks if the `msg.sender` has a certain role.\n */\n function _requireCollectionRole(CollectionRoles role) internal view {\n if (!hasCollectionRole(role, msg.sender)) revert MustHaveCollectionRole(uint8(role));\n }\n\n /**\n * @dev Checks if the `msg.sender` has the `Token` role for a certain `tokenId`.\n */\n function _requireTokenRole(uint256 tokenId, TokenRoles role) internal view {\n if (!hasTokenRole(tokenId, role, msg.sender)) revert MustHaveTokenRole(tokenId, uint8(role));\n }\n\n /**\n * @dev Returns `True` if a certain address has the collection role.\n */\n function hasCollectionRole(CollectionRoles role, address account) public view returns (bool) {\n return _collectionRoles[role][account];\n }\n\n /**\n * @dev Returns `True` if a certain address has the token role.\n */\n function hasTokenRole(uint256 tokenId, TokenRoles role, address account) public view returns (bool) {\n uint256 currentVersion = _tokenRolesVersion[tokenId];\n return _tokenRoles[tokenId][currentVersion][role][account];\n }\n\n /**\n * @dev Grants the collection role to an address.\n */\n function _grantCollectionRole(CollectionRoles role, address account) internal {\n if (hasCollectionRole(role, account)) revert RoleAlreadySet();\n\n _collectionRoles[role][account] = true;\n _collectionRolesCounter[role] += 1;\n\n emit CollectionRoleChanged(role, account, true, msg.sender);\n }\n\n /**\n * @dev Revokes the collection role of an address.\n */\n function _revokeCollectionRole(CollectionRoles role, address account) internal {\n if (!hasCollectionRole(role, account)) revert RoleAlreadySet();\n if (role == CollectionRoles.Owner && _collectionRolesCounter[role] == 1) revert MustHaveAtLeastOneOwner();\n\n _collectionRoles[role][account] = false;\n _collectionRolesCounter[role] -= 1;\n\n emit CollectionRoleChanged(role, account, false, msg.sender);\n }\n\n /**\n * @dev Grants the token role to an address.\n */\n function _grantTokenRole(uint256 tokenId, TokenRoles role, address account) internal {\n if (hasTokenRole(tokenId, role, account)) revert RoleAlreadySet();\n\n uint256 currentVersion = _tokenRolesVersion[tokenId];\n _tokenRoles[tokenId][currentVersion][role][account] = true;\n\n emit TokenRoleChanged(tokenId, role, account, true, msg.sender);\n }\n\n /**\n * @dev Revokes the token role of an address.\n */\n function _revokeTokenRole(uint256 tokenId, TokenRoles role, address account) internal {\n if (!hasTokenRole(tokenId, role, account)) revert RoleAlreadySet();\n\n uint256 currentVersion = _tokenRolesVersion[tokenId];\n _tokenRoles[tokenId][currentVersion][role][account] = false;\n\n emit TokenRoleChanged(tokenId, role, account, false, msg.sender);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n function _clearTokenRoles(uint256 tokenId) internal {\n _tokenRolesVersion[tokenId] += 1;\n emit TokenRolesCleared(tokenId, msg.sender);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" + }, + "contracts/FleekAccessPoints.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport {FleekStrings} from \"./util/FleekStrings.sol\";\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\n\nerror AccessPointNotExistent();\nerror AccessPointAlreadyExists();\nerror AccessPointScoreCannotBeLower();\nerror MustBeAccessPointOwner();\nerror InvalidTokenIdForAccessPoint();\nerror AccessPointCreationStatusAlreadySet();\n\nabstract contract FleekAccessPoints is Initializable {\n using FleekStrings for FleekAccessPoints.AccessPoint;\n\n event NewAccessPoint(string apName, uint256 indexed tokenId, address indexed owner);\n event RemoveAccessPoint(string apName, uint256 indexed tokenId, address indexed owner);\n\n event ChangeAccessPointScore(string apName, uint256 indexed tokenId, uint256 score, address indexed triggeredBy);\n\n event ChangeAccessPointNameVerify(\n string apName,\n uint256 tokenId,\n bool indexed verified,\n address indexed triggeredBy\n );\n event ChangeAccessPointContentVerify(\n string apName,\n uint256 tokenId,\n bool indexed verified,\n address indexed triggeredBy\n );\n event ChangeAccessPointCreationStatus(\n string apName,\n uint256 tokenId,\n AccessPointCreationStatus status,\n address indexed triggeredBy\n );\n\n /**\n * Creation status enums for access points\n */\n enum AccessPointCreationStatus {\n DRAFT,\n APPROVED,\n REJECTED,\n REMOVED\n }\n\n /**\n * The stored data for each AccessPoint.\n */\n struct AccessPoint {\n uint256 tokenId;\n uint256 score;\n bool contentVerified;\n bool nameVerified;\n address owner;\n AccessPointCreationStatus status;\n }\n\n mapping(string => AccessPoint) private _accessPoints;\n\n mapping(uint256 => bool) private _autoApproval;\n\n /**\n * @dev Checks if the AccessPoint exists.\n */\n modifier requireAP(string memory apName) {\n if (_accessPoints[apName].owner == address(0)) revert AccessPointNotExistent();\n _;\n }\n\n /**\n * @dev A view function to gether information about an AccessPoint.\n * It returns a JSON string representing the AccessPoint information.\n */\n function getAccessPointJSON(string memory apName) public view requireAP(apName) returns (string memory) {\n AccessPoint storage _ap = _accessPoints[apName];\n return _ap.toString();\n }\n\n /**\n * @dev A view function to check if a AccessPoint is verified.\n */\n function isAccessPointNameVerified(string memory apName) public view requireAP(apName) returns (bool) {\n return _accessPoints[apName].nameVerified;\n }\n\n /**\n * @dev Increases the score of a AccessPoint registry.\n */\n function increaseAccessPointScore(string memory apName) public requireAP(apName) {\n _accessPoints[apName].score++;\n emit ChangeAccessPointScore(apName, _accessPoints[apName].tokenId, _accessPoints[apName].score, msg.sender);\n }\n\n /**\n * @dev Decreases the score of a AccessPoint registry if is greater than 0.\n */\n function decreaseAccessPointScore(string memory apName) public requireAP(apName) {\n if (_accessPoints[apName].score == 0) revert AccessPointScoreCannotBeLower();\n _accessPoints[apName].score--;\n emit ChangeAccessPointScore(apName, _accessPoints[apName].tokenId, _accessPoints[apName].score, msg.sender);\n }\n\n /**\n * @dev Add a new AccessPoint register for an app token.\n * The AP name should be a DNS or ENS url and it should be unique.\n */\n function _addAccessPoint(uint256 tokenId, string memory apName) internal {\n if (_accessPoints[apName].owner != address(0)) revert AccessPointAlreadyExists();\n\n emit NewAccessPoint(apName, tokenId, msg.sender);\n\n if (_autoApproval[tokenId]) {\n // Auto Approval is on.\n _accessPoints[apName] = AccessPoint(\n tokenId,\n 0,\n false,\n false,\n msg.sender,\n AccessPointCreationStatus.APPROVED\n );\n\n emit ChangeAccessPointCreationStatus(apName, tokenId, AccessPointCreationStatus.APPROVED, msg.sender);\n } else {\n // Auto Approval is off. Should wait for approval.\n _accessPoints[apName] = AccessPoint(tokenId, 0, false, false, msg.sender, AccessPointCreationStatus.DRAFT);\n emit ChangeAccessPointCreationStatus(apName, tokenId, AccessPointCreationStatus.DRAFT, msg.sender);\n }\n }\n\n /**\n * @dev Remove an AccessPoint registry for an app token.\n * It will also remove the AP from the app token APs list.\n */\n function _removeAccessPoint(string memory apName) internal requireAP(apName) {\n if (msg.sender != _accessPoints[apName].owner) revert MustBeAccessPointOwner();\n _accessPoints[apName].status = AccessPointCreationStatus.REMOVED;\n uint256 tokenId = _accessPoints[apName].tokenId;\n emit ChangeAccessPointCreationStatus(apName, tokenId, AccessPointCreationStatus.REMOVED, msg.sender);\n emit RemoveAccessPoint(apName, tokenId, msg.sender);\n }\n\n /**\n * @dev Updates the `accessPointAutoApproval` settings on minted `tokenId`.\n */\n function _setAccessPointAutoApproval(uint256 tokenId, bool _apAutoApproval) internal {\n _autoApproval[tokenId] = _apAutoApproval;\n }\n\n /**\n * @dev Set approval settings for an access point.\n * It will add the access point to the token's AP list, if `approved` is true.\n */\n function _setApprovalForAccessPoint(uint256 tokenId, string memory apName, bool approved) internal {\n AccessPoint storage accessPoint = _accessPoints[apName];\n if (accessPoint.tokenId != tokenId) revert InvalidTokenIdForAccessPoint();\n if (accessPoint.status != AccessPointCreationStatus.DRAFT) revert AccessPointCreationStatusAlreadySet();\n\n if (approved) {\n // Approval\n accessPoint.status = AccessPointCreationStatus.APPROVED;\n emit ChangeAccessPointCreationStatus(apName, tokenId, AccessPointCreationStatus.APPROVED, msg.sender);\n } else {\n // Not Approved\n accessPoint.status = AccessPointCreationStatus.REJECTED;\n emit ChangeAccessPointCreationStatus(apName, tokenId, AccessPointCreationStatus.REJECTED, msg.sender);\n }\n }\n\n /**\n * @dev Set the content verification of a AccessPoint registry.\n */\n function _setAccessPointContentVerify(string memory apName, bool verified) internal requireAP(apName) {\n _accessPoints[apName].contentVerified = verified;\n emit ChangeAccessPointContentVerify(apName, _accessPoints[apName].tokenId, verified, msg.sender);\n }\n\n /**\n * @dev Set the name verification of a AccessPoint registry.\n */\n function _setAccessPointNameVerify(string memory apName, bool verified) internal requireAP(apName) {\n _accessPoints[apName].nameVerified = verified;\n emit ChangeAccessPointNameVerify(apName, _accessPoints[apName].tokenId, verified, msg.sender);\n }\n\n /**\n * @dev Get the AccessPoint token id.\n */\n function _getAccessPointTokenId(string memory apName) internal view requireAP(apName) returns (uint256) {\n return _accessPoints[apName].tokenId;\n }\n\n /**\n * @dev Get the Auto Approval setting for token id.\n */\n function _getAccessPointAutoApproval(uint256 tokenId) internal view returns (bool) {\n return _autoApproval[tokenId];\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" + }, + "contracts/FleekApps.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol\";\nimport \"@openzeppelin/contracts/utils/Base64.sol\";\nimport \"./util/FleekSVG.sol\";\nimport \"./FleekERC721.sol\";\n\ncontract FleekApps is Initializable, ERC721Upgradeable {\n using Strings for address;\n using Base64 for bytes;\n\n uint256 public bindCount;\n mapping(uint256 => uint256) public bindings;\n\n FleekERC721 private main;\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(string memory _name, string memory _symbol, address _mainAddress) public initializer {\n __ERC721_init(_name, _symbol);\n main = FleekERC721(_mainAddress);\n }\n\n modifier _requireMainMinted(uint256 _tokenId) {\n require(main.ownerOf(_tokenId) != address(0), \"Main token does not exist\");\n _;\n }\n\n function mint(address _to, uint256 _tokenId) public _requireMainMinted(_tokenId) {\n _mint(_to, bindCount);\n bindings[bindCount] = _tokenId;\n bindCount++;\n }\n\n function tokenURI(uint256 _bindId) public view virtual override(ERC721Upgradeable) returns (string memory) {\n (string memory name, string memory ens, string memory logo, string memory color, string memory ipfsHash) = main\n .getAppData(bindings[_bindId]);\n\n // prettier-ignore\n return string(abi.encodePacked(_baseURI(),\n abi.encodePacked('{',\n '\"owner\":\"', ownerOf(_bindId).toHexString(), '\",',\n '\"name\":\"', name, '\",',\n '\"image\":\"', FleekSVG.generateBase64(name, ens, logo, color), '\",',\n '\"external_url\":\"ipfs://', ipfsHash, '\"',\n '}').encode()\n ));\n }\n\n function _baseURI() internal view virtual override returns (string memory) {\n return \"data:application/json;base64,\";\n }\n}\n" + }, + "contracts/FleekBilling.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\n\nerror RequiredPayment(uint requiredValue);\n\nabstract contract FleekBilling is Initializable {\n /**\n * @dev Available billing values.\n */\n enum Billing {\n Mint,\n AddAccessPoint\n }\n\n /**\n * @dev Emitted when the billing value is changed.\n */\n event BillingChanged(Billing key, uint256 price);\n\n /**\n * @dev Emitted when contract is withdrawn.\n */\n event Withdrawn(uint256 value, address indexed byAddress);\n\n /**\n * @dev Mapping of billing values.\n */\n mapping(Billing => uint256) private _billings;\n\n /**\n * @dev Initializes the contract by setting default billing values.\n */\n function __FleekBilling_init(uint256[] memory initialBillings) internal onlyInitializing {\n for (uint256 i = 0; i < initialBillings.length; i++) {\n _setBilling(Billing(i), initialBillings[i]);\n }\n }\n\n /**\n * @dev Returns the billing value for a given key.\n */\n function getBilling(Billing key) public view returns (uint256) {\n return _billings[key];\n }\n\n /**\n * @dev Sets the billing value for a given key.\n */\n function _setBilling(Billing key, uint256 price) internal {\n _billings[key] = price;\n emit BillingChanged(key, price);\n }\n\n /**\n * @dev Internal function to require a payment value.\n */\n function _requirePayment(Billing key) internal {\n uint256 requiredValue = _billings[key];\n if (msg.value != _billings[key]) revert RequiredPayment(requiredValue);\n }\n\n /**\n * @dev Internal function to withdraw the contract balance.\n */\n function _withdraw() internal {\n address by = msg.sender;\n uint256 value = address(this).balance;\n\n payable(by).transfer(value);\n emit Withdrawn(value, by);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" + }, + "contracts/FleekERC721.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol\";\nimport \"@openzeppelin/contracts/utils/Base64.sol\";\nimport \"@openzeppelin/contracts/utils/Strings.sol\";\nimport \"./FleekAccessControl.sol\";\nimport \"./FleekBilling.sol\";\nimport \"./FleekPausable.sol\";\nimport \"./FleekAccessPoints.sol\";\nimport \"./util/FleekENS.sol\";\nimport \"./util/FleekStrings.sol\";\nimport \"./IERCX.sol\";\n\nerror MustBeTokenOwner(uint256 tokenId);\nerror MustBeTokenVerifier(uint256 tokenId);\nerror ThereIsNoTokenMinted();\n\ncontract FleekERC721 is\n IERCX,\n Initializable,\n ERC721Upgradeable,\n FleekAccessControl,\n FleekPausable,\n FleekBilling,\n FleekAccessPoints\n{\n using Strings for uint256;\n using FleekStrings for FleekERC721.Token;\n using FleekStrings for string;\n using FleekStrings for uint24;\n\n event NewMint(\n uint256 indexed tokenId,\n string name,\n string description,\n string externalURL,\n string ENS,\n string commitHash,\n string gitRepository,\n string ipfsHash,\n string logo,\n uint24 color,\n bool accessPointAutoApproval,\n address indexed minter,\n address indexed owner,\n address verifier\n );\n\n event MetadataUpdate(uint256 indexed _tokenId, string key, address value, address indexed triggeredBy);\n\n uint256 private _appIds;\n mapping(uint256 => Token) private _apps;\n mapping(uint256 => address) private _tokenVerifier;\n mapping(uint256 => bool) private _tokenVerified;\n\n /**\n * @dev This constructor sets the state of implementation contract to paused\n * and disable initializers, not allowing interactions with the implementation\n * contracts.\n */\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _setPausable(true);\n _pause();\n _disableInitializers();\n }\n\n /**\n * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n */\n function initialize(\n string memory _name,\n string memory _symbol,\n uint256[] memory initialBillings\n ) public initializer {\n __ERC721_init(_name, _symbol);\n __FleekAccessControl_init();\n __FleekBilling_init(initialBillings);\n __FleekPausable_init();\n }\n\n /**\n * @dev Checks if caller is the verifier of the token.\n */\n modifier requireTokenVerifier(uint256 tokenId) {\n if (_tokenVerifier[tokenId] != msg.sender) revert MustBeTokenVerifier(tokenId);\n _;\n }\n\n /**\n * @dev Mints a token and returns a tokenId.\n *\n * If the `tokenId` has not been minted before, and the `to` address is not zero, emits a {Transfer} event.\n *\n * Requirements:\n *\n * - the caller must have ``collectionOwner``'s admin role.\n * - billing for the minting may be applied.\n * - the contract must be not paused.\n *\n */\n function mint(\n address to,\n string memory name,\n string memory description,\n string memory externalURL,\n string calldata ens,\n string memory commitHash,\n string memory gitRepository,\n string memory ipfsHash,\n string memory logo,\n uint24 color,\n bool accessPointAutoApproval,\n address verifier\n ) public payable requirePayment(Billing.Mint) returns (uint256) {\n if (!hasCollectionRole(CollectionRoles.Verifier, verifier))\n revert MustHaveCollectionRole(uint8(CollectionRoles.Verifier));\n if (bytes(ens).length > 0) FleekENS.requireENSOwner(ens);\n uint256 tokenId = _appIds;\n _mint(to, tokenId);\n\n _appIds += 1;\n\n Token storage app = _apps[tokenId];\n app.name = name;\n app.description = description;\n app.externalURL = externalURL;\n app.ENS = ens;\n app.logo = logo;\n app.color = color;\n\n // The mint interaction is considered to be the first build of the site. Updates from now on all increment the currentBuild by one and update the mapping.\n app.currentBuild = 0;\n app.builds[0] = Build(commitHash, gitRepository, ipfsHash, externalURL);\n\n emit NewMint(\n tokenId,\n name,\n description,\n externalURL,\n ens,\n commitHash,\n gitRepository,\n ipfsHash,\n logo,\n color,\n accessPointAutoApproval,\n msg.sender,\n to,\n verifier\n );\n\n _tokenVerifier[tokenId] = verifier;\n _tokenVerified[tokenId] = false;\n _setAccessPointAutoApproval(tokenId, accessPointAutoApproval);\n\n return tokenId;\n }\n\n /**\n * @dev Returns the token metadata associated with the `tokenId`.\n *\n * Returns a based64 encoded string value of the URI.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n *\n */\n function tokenURI(uint256 tokenId) public view virtual override(ERC721Upgradeable, IERCX) returns (string memory) {\n _requireMinted(tokenId);\n address owner = ownerOf(tokenId);\n bool accessPointAutoApproval = _getAccessPointAutoApproval(tokenId);\n bool verified = _tokenVerified[tokenId];\n Token storage app = _apps[tokenId];\n\n return string(abi.encodePacked(_baseURI(), app.toString(owner, accessPointAutoApproval, verified).toBase64()));\n }\n\n /**\n * @dev Returns the token metadata associated with the `tokenId`.\n *\n * Returns multiple string and uint values in relation to metadata fields of the App struct.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n *\n */\n function getToken(\n uint256 tokenId\n )\n public\n view\n virtual\n returns (string memory, string memory, string memory, string memory, uint256, string memory, uint24)\n {\n _requireMinted(tokenId);\n Token storage app = _apps[tokenId];\n return (app.name, app.description, app.externalURL, app.ENS, app.currentBuild, app.logo, app.color);\n }\n\n function getAppData(\n uint256 tokenId\n ) public view returns (string memory, string memory, string memory, string memory, string memory) {\n _requireMinted(tokenId);\n Token storage app = _apps[tokenId];\n\n return (app.name, app.ENS, app.logo, app.color.toColorString(), app.builds[app.currentBuild].ipfsHash);\n }\n\n /**\n * @dev Returns the last minted tokenId.\n */\n function getLastTokenId() public view virtual returns (uint256) {\n uint256 current = _appIds;\n if (current == 0) revert ThereIsNoTokenMinted();\n return current - 1;\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Upgradeable) returns (bool) {\n return super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev Override of _beforeTokenTransfer of ERC721.\n * Here it needs to update the token controller roles for mint, burn and transfer.\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 tokenId,\n uint256 batchSize\n ) internal virtual override whenNotPaused {\n if (from != address(0) && to != address(0)) {\n // Transfer\n _clearTokenRoles(tokenId);\n } else if (from == address(0)) {\n // Mint\n // TODO: set contract owner as controller\n } else if (to == address(0)) {\n // Burn\n _clearTokenRoles(tokenId);\n }\n super._beforeTokenTransfer(from, to, tokenId, batchSize);\n }\n\n /**\n * @dev A baseURI internal function implementation to be called in the `tokenURI` function.\n */\n function _baseURI() internal view virtual override returns (string memory) {\n return \"data:application/json;base64,\";\n }\n\n /**\n * @dev Updates the `externalURL` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenExternalURL} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenExternalURL(\n uint256 tokenId,\n string memory _tokenExternalURL\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].externalURL = _tokenExternalURL;\n emit MetadataUpdate(tokenId, \"externalURL\", _tokenExternalURL, msg.sender);\n }\n\n /**\n * @dev Updates the `ENS` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenENS} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenENS(\n uint256 tokenId,\n string calldata _tokenENS\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n FleekENS.requireENSOwner(_tokenENS);\n _requireMinted(tokenId);\n _apps[tokenId].ENS = _tokenENS;\n emit MetadataUpdate(tokenId, \"ENS\", _tokenENS, msg.sender);\n }\n\n /**\n * @dev Updates the `name` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenName} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenName(\n uint256 tokenId,\n string memory _tokenName\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].name = _tokenName;\n emit MetadataUpdate(tokenId, \"name\", _tokenName, msg.sender);\n }\n\n /**\n * @dev Updates the `description` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenDescription} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenDescription(\n uint256 tokenId,\n string memory _tokenDescription\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].description = _tokenDescription;\n emit MetadataUpdate(tokenId, \"description\", _tokenDescription, msg.sender);\n }\n\n /**\n * @dev Updates the `logo` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenLogo} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenLogo(\n uint256 tokenId,\n string memory _tokenLogo\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].logo = _tokenLogo;\n emit MetadataUpdate(tokenId, \"logo\", _tokenLogo, msg.sender);\n }\n\n /**\n * @dev Updates the `color` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenColor} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenColor(\n uint256 tokenId,\n uint24 _tokenColor\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].color = _tokenColor;\n emit MetadataUpdate(tokenId, \"color\", _tokenColor, msg.sender);\n }\n\n /**\n * @dev Updates the `logo` and `color` metadata fields of a minted `tokenId`.\n *\n * May emit a {NewTokenLogo} and a {NewTokenColor} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenLogoAndColor(uint256 tokenId, string memory _tokenLogo, uint24 _tokenColor) public virtual {\n setTokenLogo(tokenId, _tokenLogo);\n setTokenColor(tokenId, _tokenColor);\n }\n\n /**\n * @dev Adds a new build to a minted `tokenId`'s builds mapping.\n *\n * May emit a {NewBuild} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenBuild(\n uint256 tokenId,\n string memory _commitHash,\n string memory _gitRepository,\n string memory _ipfsHash,\n string memory _domain\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].builds[++_apps[tokenId].currentBuild] = Build(_commitHash, _gitRepository, _ipfsHash, _domain);\n // Note from Nima: should we update the externalURL field with each new domain?\n emit MetadataUpdate(tokenId, \"build\", [_commitHash, _gitRepository, _ipfsHash, _domain], msg.sender);\n }\n\n /**\n * @dev Burns a previously minted `tokenId`.\n *\n * May emit a {Transfer} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must be the owner of the token.\n * - the contract must be not paused.\n *\n */\n function burn(uint256 tokenId) public virtual requireTokenOwner(tokenId) {\n super._burn(tokenId);\n\n if (bytes(_apps[tokenId].externalURL).length != 0) {\n delete _apps[tokenId];\n }\n }\n\n /**\n * @dev Sets an address as verifier of a token.\n * The verifier must have `CollectionRoles.Verifier` role.\n *\n * May emit a {MetadataUpdate} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must be the owner of the token.\n * - the verifier must have `CollectionRoles.Verifier` role.\n *\n */\n function setTokenVerifier(uint256 tokenId, address verifier) public requireTokenOwner(tokenId) {\n if (!hasCollectionRole(CollectionRoles.Verifier, verifier))\n revert MustHaveCollectionRole(uint8(CollectionRoles.Verifier));\n _requireMinted(tokenId);\n _tokenVerifier[tokenId] = verifier;\n emit MetadataUpdate(tokenId, \"verifier\", verifier, msg.sender);\n }\n\n /**\n * @dev Returns the verifier of a token.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n *\n */\n function getTokenVerifier(uint256 tokenId) public view returns (address) {\n _requireMinted(tokenId);\n return _tokenVerifier[tokenId];\n }\n\n /**\n * @dev Sets the verification status of a token.\n *\n * May emit a {MetadataUpdate} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must be the token verifier.\n * - the sender must have `CollectionRoles.Verifier` role.\n *\n */\n function setTokenVerified(\n uint256 tokenId,\n bool verified\n ) public requireCollectionRole(CollectionRoles.Verifier) requireTokenVerifier(tokenId) {\n _requireMinted(tokenId);\n _tokenVerified[tokenId] = verified;\n emit MetadataUpdate(tokenId, \"verified\", verified, msg.sender);\n }\n\n /**\n * @dev Returns the verification status of a token.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n *\n */\n function isTokenVerified(uint256 tokenId) public view returns (bool) {\n _requireMinted(tokenId);\n return _tokenVerified[tokenId];\n }\n\n /*//////////////////////////////////////////////////////////////\n ACCESS POINTS\n //////////////////////////////////////////////////////////////*/\n\n /**\n * @dev Add a new AccessPoint register for an app token.\n * The AP name should be a DNS or ENS url and it should be unique.\n * Anyone can add an AP but it should requires a payment.\n *\n * May emit a {NewAccessPoint} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - billing for add acess point may be applied.\n * - the contract must be not paused.\n *\n */\n function addAccessPoint(\n uint256 tokenId,\n string memory apName\n ) public payable whenNotPaused requirePayment(Billing.AddAccessPoint) {\n _requireMinted(tokenId);\n _addAccessPoint(tokenId, apName);\n }\n\n /**\n * @dev Remove an AccessPoint registry for an app token.\n * It will also remove the AP from the app token APs list.\n *\n * May emit a {RemoveAccessPoint} event.\n *\n * Requirements:\n *\n * - the AP must exist.\n * - must be called by the AP owner.\n * - the contract must be not paused.\n *\n */\n function removeAccessPoint(string memory apName) public whenNotPaused {\n _removeAccessPoint(apName);\n }\n\n /**\n * @dev Updates the `accessPointAutoApproval` settings on minted `tokenId`.\n *\n * May emit a {MetadataUpdate} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setAccessPointAutoApproval(uint256 tokenId, bool _apAutoApproval) public requireTokenOwner(tokenId) {\n _requireMinted(tokenId);\n _setAccessPointAutoApproval(tokenId, _apAutoApproval);\n emit MetadataUpdate(tokenId, \"accessPointAutoApproval\", _apAutoApproval, msg.sender);\n }\n\n /**\n * @dev Set approval settings for an access point.\n * It will add the access point to the token's AP list, if `approved` is true.\n *\n * May emit a {ChangeAccessPointApprovalStatus} event.\n *\n * Requirements:\n *\n * - the tokenId must exist and be the same as the tokenId that is set for the AP.\n * - the AP must exist.\n * - must be called by a token controller.\n */\n function setApprovalForAccessPoint(\n uint256 tokenId,\n string memory apName,\n bool approved\n ) public requireTokenOwner(tokenId) {\n _setApprovalForAccessPoint(tokenId, apName, approved);\n }\n\n /**\n * @dev Set the content verification of a AccessPoint registry.\n *\n * May emit a {ChangeAccessPointContentVerify} event.\n *\n * Requirements:\n *\n * - the AP must exist.\n * - the sender must have the token controller role.\n *\n */\n function setAccessPointContentVerify(\n string memory apName,\n bool verified\n ) public requireCollectionRole(CollectionRoles.Verifier) requireTokenVerifier(_getAccessPointTokenId(apName)) {\n _setAccessPointContentVerify(apName, verified);\n }\n\n /**\n * @dev Set the name verification of a AccessPoint registry.\n *\n * May emit a {ChangeAccessPointNameVerify} event.\n *\n * Requirements:\n *\n * - the AP must exist.\n * - the sender must have the token controller role.\n *\n */\n function setAccessPointNameVerify(\n string memory apName,\n bool verified\n ) public requireCollectionRole(CollectionRoles.Verifier) requireTokenVerifier(_getAccessPointTokenId(apName)) {\n _setAccessPointNameVerify(apName, verified);\n }\n\n /*//////////////////////////////////////////////////////////////\n ACCESS CONTROL\n //////////////////////////////////////////////////////////////*/\n\n /**\n * @dev Requires caller to have a selected collection role.\n */\n modifier requireCollectionRole(CollectionRoles role) {\n _requireCollectionRole(role);\n _;\n }\n\n /**\n * @dev Requires caller to have a selected token role.\n */\n modifier requireTokenRole(uint256 tokenId, TokenRoles role) {\n if (ownerOf(tokenId) != msg.sender) _requireTokenRole(tokenId, role);\n _;\n }\n\n /**\n * @dev Requires caller to be selected token owner.\n */\n modifier requireTokenOwner(uint256 tokenId) {\n if (ownerOf(tokenId) != msg.sender) revert MustBeTokenOwner(tokenId);\n _;\n }\n\n /**\n * @dev Grants the collection role to an address.\n *\n * Requirements:\n *\n * - the caller should have the collection role.\n *\n */\n function grantCollectionRole(\n CollectionRoles role,\n address account\n ) public whenNotPaused requireCollectionRole(CollectionRoles.Owner) {\n _grantCollectionRole(role, account);\n }\n\n /**\n * @dev Grants the token role to an address.\n *\n * Requirements:\n *\n * - the caller should have the token role.\n *\n */\n function grantTokenRole(\n uint256 tokenId,\n TokenRoles role,\n address account\n ) public whenNotPaused requireTokenOwner(tokenId) {\n _grantTokenRole(tokenId, role, account);\n }\n\n /**\n * @dev Revokes the collection role of an address.\n *\n * Requirements:\n *\n * - the caller should have the collection role.\n *\n */\n function revokeCollectionRole(\n CollectionRoles role,\n address account\n ) public whenNotPaused requireCollectionRole(CollectionRoles.Owner) {\n _revokeCollectionRole(role, account);\n }\n\n /**\n * @dev Revokes the token role of an address.\n *\n * Requirements:\n *\n * - the caller should have the token role.\n *\n */\n function revokeTokenRole(\n uint256 tokenId,\n TokenRoles role,\n address account\n ) public whenNotPaused requireTokenOwner(tokenId) {\n _revokeTokenRole(tokenId, role, account);\n }\n\n /*//////////////////////////////////////////////////////////////\n PAUSABLE\n //////////////////////////////////////////////////////////////*/\n\n /**\n * @dev Sets the contract to paused state.\n *\n * Requirements:\n *\n * - the sender must have the `controller` role.\n * - the contract must be pausable.\n * - the contract must be not paused.\n *\n */\n function pause() public requireCollectionRole(CollectionRoles.Owner) {\n _pause();\n }\n\n /**\n * @dev Sets the contract to unpaused state.\n *\n * Requirements:\n *\n * - the sender must have the `controller` role.\n * - the contract must be paused.\n *\n */\n function unpause() public requireCollectionRole(CollectionRoles.Owner) {\n _unpause();\n }\n\n /**\n * @dev Sets the contract to pausable state.\n *\n * Requirements:\n *\n * - the sender must have the `owner` role.\n * - the contract must be in the oposite pausable state.\n *\n */\n function setPausable(bool pausable) public requireCollectionRole(CollectionRoles.Owner) {\n _setPausable(pausable);\n }\n\n /*//////////////////////////////////////////////////////////////\n BILLING\n //////////////////////////////////////////////////////////////*/\n\n /**\n * @dev Modifier to require billing with a given key.\n */\n modifier requirePayment(Billing key) {\n _requirePayment(key);\n _;\n }\n\n /**\n * @dev Sets the billing value for a given key.\n *\n * May emit a {BillingChanged} event.\n *\n * Requirements:\n *\n * - the sender must have the `collectionOwner` role.\n *\n */\n function setBilling(Billing key, uint256 value) public requireCollectionRole(CollectionRoles.Owner) {\n _setBilling(key, value);\n }\n\n /**\n * @dev Withdraws all the funds from contract.\n *\n * May emmit a {Withdrawn} event.\n *\n * Requirements:\n *\n * - the sender must have the `collectionOwner` role.\n *\n */\n function withdraw() public requireCollectionRole(CollectionRoles.Owner) {\n _withdraw();\n }\n}\n" + }, + "contracts/FleekPausable.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\n\nerror ContractIsPaused();\nerror ContractIsNotPaused();\nerror ContractIsNotPausable();\nerror PausableIsSetTo(bool state);\n\nabstract contract FleekPausable is Initializable {\n /**\n * @dev Emitted when the pause is triggered by `account` and set to `isPaused`.\n */\n event PauseStatusChange(bool indexed isPaused, address account);\n\n /**\n * @dev Emitted when the pausable is triggered by `account` and set to `isPausable`.\n */\n event PausableStatusChange(bool indexed isPausable, address account);\n\n bool private _paused;\n bool private _canPause; // TODO: how should we verify if the contract is pausable or not?\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n function __FleekPausable_init() internal onlyInitializing {\n _paused = false;\n _canPause = true;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n _requireNotPaused();\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n _requirePaused();\n _;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function isPaused() public view returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Returns true if the contract is pausable, and false otherwise.\n */\n function isPausable() public view returns (bool) {\n return _canPause;\n }\n\n /**\n * @dev Throws if the contract is paused.\n */\n function _requireNotPaused() internal view {\n if (isPaused()) revert ContractIsPaused();\n }\n\n /**\n * @dev Throws if the contract is not paused.\n */\n function _requirePaused() internal view {\n if (!isPaused()) revert ContractIsNotPaused();\n }\n\n /**\n * @dev Throws if the contract is not pausable.\n */\n function _requirePausable() internal view {\n if (!isPausable()) revert ContractIsNotPausable();\n }\n\n /**\n * @dev Sets the contract to be pausable or not.\n * @param canPause true if the contract is pausable, and false otherwise.\n */\n function _setPausable(bool canPause) internal {\n if (canPause == _canPause) revert PausableIsSetTo(canPause);\n _canPause = canPause;\n emit PausableStatusChange(canPause, msg.sender);\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal whenNotPaused {\n _requirePausable();\n _paused = true;\n emit PauseStatusChange(false, msg.sender);\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal whenPaused {\n _paused = false;\n emit PauseStatusChange(false, msg.sender);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" + }, + "contracts/IERCX.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts/token/ERC721/IERC721.sol\";\n\n/**\n * @title ERCX Interface\n * @author\n * @notice\n *\n * ERCX is a standard for NFTs that represent websites. It is a standard that\n * allows for the storage of metadata about a website, and allows for the\n * storage of multiple builds of a website. This allows for the NFT to be\n * used as a way to store the history of a website.\n */\ninterface IERCX {\n /**\n * Event emitted when a token's metadata is updated.\n * @param _tokenId the updated token id.\n * @param key which metadata key was updated\n * @param value the new value of the metadata\n * @param triggeredBy the address that triggered the update\n */\n event MetadataUpdate(uint256 indexed _tokenId, string key, string value, address indexed triggeredBy);\n event MetadataUpdate(uint256 indexed _tokenId, string key, uint24 value, address indexed triggeredBy);\n event MetadataUpdate(uint256 indexed _tokenId, string key, string[4] value, address indexed triggeredBy);\n event MetadataUpdate(uint256 indexed _tokenId, string key, bool value, address indexed triggeredBy);\n\n /**\n * The metadata that is stored for each build.\n */\n struct Build {\n string commitHash;\n string gitRepository;\n string ipfsHash;\n string domain;\n }\n\n /**\n * The properties are stored as string to keep consistency with\n * other token contracts, we might consider changing for bytes32\n * in the future due to gas optimization.\n */\n struct Token {\n string name; // Name of the site\n string description; // Description about the site\n string externalURL; // Site URL\n string ENS; // ENS for the site\n string logo; // Branding logo\n uint24 color; // Branding color\n uint256 currentBuild; // The current build number (Increments by one with each change, starts at zero)\n mapping(uint256 => Build) builds; // Mapping to build details for each build number\n }\n\n /**\n * @dev Sets a minted token's external URL.\n */\n function setTokenExternalURL(uint256 tokenId, string memory _tokenExternalURL) external;\n\n /**\n * @dev Sets a minted token's ENS.\n */\n function setTokenENS(uint256 tokenId, string memory _tokenENS) external;\n\n /**\n * @dev Sets a minted token's name.\n */\n function setTokenName(uint256 tokenId, string memory _tokenName) external;\n\n /**\n * @dev Sets a minted token's description.\n */\n function setTokenDescription(uint256 tokenId, string memory _tokenDescription) external;\n\n /**\n * @dev Sets a minted token's logo.\n */\n function setTokenLogo(uint256 tokenId, string memory _tokenLogo) external;\n\n /**\n * @dev Sets a minted token's color.\n */\n function setTokenColor(uint256 tokenId, uint24 _tokenColor) external;\n\n /**\n * @dev Sets a minted token's build.\n */\n function setTokenBuild(\n uint256 tokenId,\n string memory commitHash,\n string memory gitRepository,\n string memory ipfsHash,\n string memory domain\n ) external;\n\n /**\n * @dev Returns the token metadata for a given tokenId.\n * It must return a valid JSON object in string format encoded in Base64.\n */\n function tokenURI(uint256 tokenId) external returns (string memory);\n}\n" + }, + "contracts/util/FleekENS.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {ENS} from \"@ensdomains/ens-contracts/contracts/registry/ENS.sol\";\nimport {Resolver} from \"@ensdomains/ens-contracts/contracts/resolvers/Resolver.sol\";\n\nerror MustBeENSOwner();\n\nlibrary FleekENS {\n ENS internal constant _ens = ENS(0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e);\n\n /**\n * @dev Reverts if the sender is not the owner of the ENS node.\n */\n function requireENSOwner(string calldata name) internal view {\n if (_ens.owner(namehash(bytes(name), 0)) != msg.sender) revert MustBeENSOwner();\n }\n\n /**\n * @dev Processes the name and returns the ENS node hash.\n */\n function namehash(bytes calldata name, uint256 index) internal view returns (bytes32) {\n for (uint256 i = index; i < name.length; i++) {\n if (name[i] == \".\") {\n return keccak256(abi.encodePacked(namehash(name, i + 1), keccak256(name[index:i])));\n }\n }\n return keccak256(abi.encodePacked(bytes32(0x0), keccak256(name[index:name.length])));\n }\n}\n" + }, + "contracts/util/FleekStrings.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts/utils/Strings.sol\";\nimport \"@openzeppelin/contracts/utils/Base64.sol\";\nimport \"./FleekSVG.sol\";\nimport \"../IERCX.sol\";\nimport \"../FleekAccessPoints.sol\";\n\nlibrary FleekStrings {\n using Strings for uint256;\n using Strings for uint160;\n using FleekStrings for bool;\n using FleekStrings for uint24;\n using Strings for uint24;\n\n /**\n * @dev Converts a boolean value to a string.\n */\n function toString(bool _bool) internal pure returns (string memory) {\n return _bool ? \"true\" : \"false\";\n }\n\n /**\n * @dev Converts a string to a base64 string.\n */\n function toBase64(string memory str) internal pure returns (string memory) {\n return Base64.encode(bytes(str));\n }\n\n /**\n * @dev Converts IERCX.Token to a JSON string.\n * It requires to receive owner address as a parameter.\n */\n function toString(\n IERCX.Token storage app,\n address owner,\n bool accessPointAutoApproval,\n bool verified\n ) internal view returns (string memory) {\n // prettier-ignore\n return string(abi.encodePacked(\n '{',\n '\"name\":\"', app.name, '\",',\n '\"description\":\"', app.description, '\",',\n '\"owner\":\"', uint160(owner).toHexString(20), '\",',\n '\"external_url\":\"', app.externalURL, '\",',\n '\"image\":\"', FleekSVG.generateBase64(app.name, app.ENS, app.logo, app.color.toColorString()), '\",',\n '\"access_point_auto_approval\":', accessPointAutoApproval.toString(),',',\n '\"verified\":',verified.toString(),',',\n '\"attributes\": [',\n '{\"trait_type\": \"ENS\", \"value\":\"', app.ENS,'\"},',\n '{\"trait_type\": \"Commit Hash\", \"value\":\"', app.builds[app.currentBuild].commitHash,'\"},',\n '{\"trait_type\": \"Repository\", \"value\":\"', app.builds[app.currentBuild].gitRepository,'\"},',\n '{\"trait_type\": \"Version\", \"value\":\"', app.currentBuild.toString(),'\"},',\n '{\"trait_type\": \"Color\", \"value\":\"', app.color.toColorString(),'\"}',\n ']',\n '}'\n ));\n }\n\n /**\n * @dev Converts FleekAccessPoints.AccessPoint to a JSON string.\n */\n function toString(FleekAccessPoints.AccessPoint storage ap) internal view returns (string memory) {\n // prettier-ignore\n return string(abi.encodePacked(\n \"{\",\n '\"tokenId\":', ap.tokenId.toString(), \",\",\n '\"score\":', ap.score.toString(), \",\",\n '\"nameVerified\":', ap.nameVerified.toString(), \",\",\n '\"contentVerified\":', ap.contentVerified.toString(), \",\",\n '\"owner\":\"', uint160(ap.owner).toHexString(20), '\",',\n '\"status\":',uint(ap.status).toString(),\n \"}\"\n ));\n }\n\n /**\n * @dev Converts bytes3 to a hex color string.\n */\n function toColorString(uint24 color) internal pure returns (string memory) {\n bytes memory hexBytes = bytes(color.toHexString(3));\n bytes memory hexColor = new bytes(7);\n hexColor[0] = \"#\";\n for (uint256 i = 1; i < 7; i++) {\n hexColor[i] = hexBytes[i + 1];\n }\n return string(hexColor);\n }\n}\n" + }, + "contracts/util/FleekSVG.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts/utils/Strings.sol\";\nimport \"@openzeppelin/contracts/utils/Base64.sol\";\n\nlibrary FleekSVG {\n /**\n * @dev Generates a SVG image.\n */\n function generateBase64(\n string memory name,\n string memory ENS,\n string memory logo,\n string memory color\n ) public pure returns (string memory) {\n return (\n string(\n abi.encodePacked(\n \"data:image/svg+xml;base64,\",\n Base64.encode(\n abi.encodePacked(\n '',\n // background\n '',\n '',\n // shadows\n '',\n '',\n // diskette fill\n '',\n '',\n // arrows\n '',\n '',\n '',\n // body\n '',\n // slider\n '',\n // fleek logo\n '',\n // text\n '',\n name,\n '',\n ENS,\n \"\",\n // logo\n '',\n // defs\n \"\",\n // shadow\n '',\n // bg\n '',\n '',\n // fill gradient\n '',\n // color\n '',\n // end defs\n \"\",\n \"\"\n )\n )\n )\n )\n );\n }\n}\n" + } + }, + "settings": { + "optimizer": { + "enabled": true, + "runs": 200, + "details": { + "yul": true + } + }, + "viaIR": true, + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata", + "storageLayout" + ], + "": [ + "ast" + ] + } + } + } + } \ No newline at end of file diff --git a/contracts/deployments/sepolia/FleekERC721.json b/contracts/deployments/sepolia/FleekERC721.json index 96b76a4..51edfb1 100644 --- a/contracts/deployments/sepolia/FleekERC721.json +++ b/contracts/deployments/sepolia/FleekERC721.json @@ -1,2346 +1,2505 @@ { - "timestamp": "3/15/2023, 5:47:02 PM", - "address": "0xF4bBBb6F014456e19Baf843d10cd14ad4B15128E", - "transactionHash": "0x8eab9beb89113961fa28ba74b7402b5f7a6ecd9bc7d2d2c4ff3c6a99cc4031bf", - "gasPrice": 2500000008, - "abi": [ - { - "inputs": [], - "name": "AccessPointAlreadyExists", - "type": "error" - }, - { - "inputs": [], - "name": "AccessPointCreationStatusAlreadySet", - "type": "error" - }, - { - "inputs": [], - "name": "AccessPointNotExistent", - "type": "error" - }, - { - "inputs": [], - "name": "AccessPointScoreCannotBeLower", - "type": "error" - }, - { - "inputs": [], - "name": "ContractIsNotPausable", - "type": "error" - }, - { - "inputs": [], - "name": "ContractIsNotPaused", - "type": "error" - }, - { - "inputs": [], - "name": "ContractIsPaused", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidTokenIdForAccessPoint", - "type": "error" - }, - { - "inputs": [], - "name": "MustBeAccessPointOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "MustBeTokenOwner", - "type": "error" - }, - { - "inputs": [], - "name": "MustHaveAtLeastOneOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "role", - "type": "uint8" - } - ], - "name": "MustHaveCollectionRole", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "uint8", - "name": "role", - "type": "uint8" - } - ], - "name": "MustHaveTokenRole", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bool", - "name": "state", - "type": "bool" - } - ], - "name": "PausableIsSetTo", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "requiredValue", - "type": "uint256" - } - ], - "name": "RequiredPayment", - "type": "error" - }, - { - "inputs": [], - "name": "RoleAlreadySet", - "type": "error" - }, - { - "inputs": [], - "name": "ThereIsNoTokenMinted", - "type": "error" - }, - { - "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": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "approved", - "type": "bool" - } - ], - "name": "ApprovalForAll", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "enum FleekBilling.Billing", - "name": "key", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "price", - "type": "uint256" - } - ], - "name": "BillingChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "apName", - "type": "string" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "bool", - "name": "verified", - "type": "bool" - }, - { - "indexed": true, - "internalType": "address", - "name": "triggeredBy", - "type": "address" - } - ], - "name": "ChangeAccessPointContentVerify", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "apName", - "type": "string" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "enum FleekAccessPoints.AccessPointCreationStatus", - "name": "status", - "type": "uint8" - }, - { - "indexed": true, - "internalType": "address", - "name": "triggeredBy", - "type": "address" - } - ], - "name": "ChangeAccessPointCreationStatus", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "apName", - "type": "string" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "bool", - "name": "verified", - "type": "bool" - }, - { - "indexed": true, - "internalType": "address", - "name": "triggeredBy", - "type": "address" - } - ], - "name": "ChangeAccessPointNameVerify", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "apName", - "type": "string" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "score", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "triggeredBy", - "type": "address" - } - ], - "name": "ChangeAccessPointScore", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "enum FleekAccessControl.CollectionRoles", - "name": "role", - "type": "uint8" - }, - { - "indexed": true, - "internalType": "address", - "name": "toAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "status", - "type": "bool" - }, - { - "indexed": false, - "internalType": "address", - "name": "byAddress", - "type": "address" - } - ], - "name": "CollectionRoleChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint8", - "name": "version", - "type": "uint8" - } - ], - "name": "Initialized", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "key", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "value", - "type": "string" - }, - { - "indexed": true, - "internalType": "address", - "name": "triggeredBy", - "type": "address" - } - ], - "name": "MetadataUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "key", - "type": "string" - }, - { - "indexed": false, - "internalType": "uint24", - "name": "value", - "type": "uint24" - }, - { - "indexed": true, - "internalType": "address", - "name": "triggeredBy", - "type": "address" - } - ], - "name": "MetadataUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "key", - "type": "string" - }, - { - "indexed": false, - "internalType": "string[2]", - "name": "value", - "type": "string[2]" - }, - { - "indexed": true, - "internalType": "address", - "name": "triggeredBy", - "type": "address" - } - ], - "name": "MetadataUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "key", - "type": "string" - }, - { - "indexed": false, - "internalType": "bool", - "name": "value", - "type": "bool" - }, - { - "indexed": true, - "internalType": "address", - "name": "triggeredBy", - "type": "address" - } - ], - "name": "MetadataUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "apName", - "type": "string" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "NewAccessPoint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "externalURL", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "ENS", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "commitHash", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "gitRepository", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "logo", - "type": "string" - }, - { - "indexed": false, - "internalType": "uint24", - "name": "color", - "type": "uint24" - }, - { - "indexed": true, - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "NewMint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bool", - "name": "isPausable", - "type": "bool" - }, - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "PausableStatusChange", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bool", - "name": "isPaused", - "type": "bool" - }, - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "PauseStatusChange", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "apName", - "type": "string" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "RemoveAccessPoint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "enum FleekAccessControl.TokenRoles", - "name": "role", - "type": "uint8" - }, - { - "indexed": true, - "internalType": "address", - "name": "toAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "status", - "type": "bool" - }, - { - "indexed": false, - "internalType": "address", - "name": "byAddress", - "type": "address" - } - ], - "name": "TokenRoleChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "byAddress", - "type": "address" - } - ], - "name": "TokenRolesCleared", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "byAddress", - "type": "address" - } - ], - "name": "Withdrawn", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "enum FleekBilling.Billing", - "name": "", - "type": "uint8" - } - ], - "name": "_billings", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "apName", - "type": "string" - } - ], - "name": "addAccessPoint", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "apName", - "type": "string" - } - ], - "name": "decreaseAccessPointScore", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "apName", - "type": "string" - } - ], - "name": "getAccessPointJSON", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "getApproved", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "enum FleekBilling.Billing", - "name": "key", - "type": "uint8" - } - ], - "name": "getBilling", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getLastTokenId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "getToken", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - }, - { - "internalType": "string", - "name": "", - "type": "string" - }, - { - "internalType": "string", - "name": "", - "type": "string" - }, - { - "internalType": "string", - "name": "", - "type": "string" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "string", - "name": "", - "type": "string" - }, - { - "internalType": "uint24", - "name": "", - "type": "uint24" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "enum FleekAccessControl.CollectionRoles", - "name": "role", - "type": "uint8" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantCollectionRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "enum FleekAccessControl.TokenRoles", - "name": "role", - "type": "uint8" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantTokenRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "enum FleekAccessControl.CollectionRoles", - "name": "role", - "type": "uint8" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasCollectionRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "enum FleekAccessControl.TokenRoles", - "name": "role", - "type": "uint8" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasTokenRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "apName", - "type": "string" - } - ], - "name": "increaseAccessPointScore", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "_name", - "type": "string" - }, - { - "internalType": "string", - "name": "_symbol", - "type": "string" - }, - { - "internalType": "uint256[]", - "name": "initialBillings", - "type": "uint256[]" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "apName", - "type": "string" - } - ], - "name": "isAccessPointNameVerified", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "isApprovedForAll", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isPausable", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "externalURL", - "type": "string" - }, - { - "internalType": "string", - "name": "ENS", - "type": "string" - }, - { - "internalType": "string", - "name": "commitHash", - "type": "string" - }, - { - "internalType": "string", - "name": "gitRepository", - "type": "string" - }, - { - "internalType": "string", - "name": "logo", - "type": "string" - }, - { - "internalType": "uint24", - "name": "color", - "type": "uint24" - }, - { - "internalType": "bool", - "name": "accessPointAutoApproval", - "type": "bool" - } - ], - "name": "mint", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "externalURL", - "type": "string" - }, - { - "internalType": "string", - "name": "ENS", - "type": "string" - }, - { - "internalType": "string", - "name": "commitHash", - "type": "string" - }, - { - "internalType": "string", - "name": "gitRepository", - "type": "string" - }, - { - "internalType": "string", - "name": "logo", - "type": "string" - }, - { - "internalType": "uint24", - "name": "color", - "type": "uint24" - } - ], - "name": "mint", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "ownerOf", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "apName", - "type": "string" - } - ], - "name": "removeAccessPoint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "enum FleekAccessControl.CollectionRoles", - "name": "role", - "type": "uint8" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeCollectionRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "enum FleekAccessControl.TokenRoles", - "name": "role", - "type": "uint8" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeTokenRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "safeTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "safeTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "_apAutoApproval", - "type": "bool" - } - ], - "name": "setAccessPointAutoApproval", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "apName", - "type": "string" - }, - { - "internalType": "bool", - "name": "verified", - "type": "bool" - } - ], - "name": "setAccessPointContentVerify", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "apName", - "type": "string" - }, - { - "internalType": "bool", - "name": "verified", - "type": "bool" - } - ], - "name": "setAccessPointNameVerify", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "apName", - "type": "string" - }, - { - "internalType": "bool", - "name": "approved", - "type": "bool" - } - ], - "name": "setApprovalForAccessPoint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bool", - "name": "approved", - "type": "bool" - } - ], - "name": "setApprovalForAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "enum FleekBilling.Billing", - "name": "key", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "setBilling", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bool", - "name": "pausable", - "type": "bool" - } - ], - "name": "setPausable", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "_commitHash", - "type": "string" - }, - { - "internalType": "string", - "name": "_gitRepository", - "type": "string" - } - ], - "name": "setTokenBuild", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "uint24", - "name": "_tokenColor", - "type": "uint24" - } - ], - "name": "setTokenColor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "_tokenDescription", - "type": "string" - } - ], - "name": "setTokenDescription", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "_tokenENS", - "type": "string" - } - ], - "name": "setTokenENS", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "_tokenExternalURL", - "type": "string" - } - ], - "name": "setTokenExternalURL", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "_tokenLogo", - "type": "string" - } - ], - "name": "setTokenLogo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "_tokenLogo", - "type": "string" - }, - { - "internalType": "uint24", - "name": "_tokenColor", - "type": "uint24" - } - ], - "name": "setTokenLogoAndColor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "_tokenName", - "type": "string" - } - ], - "name": "setTokenName", - "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": [], - "name": "symbol", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "tokenURI", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unpause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "bytecode": "0x6080806040523461001657615474908161001d8239f35b50600080fdfe6040608081526004361015610015575b50600080fd5b600090813560e01c806301468deb1461086b57806301ffc9a71461084f57806302dba24d146104b257806306fdde0314610833578063081812fc14610817578063095ea7b3146107ff57806323b872dd146107e7578063246a908b146107cf57806327dc5cec146107b35780632d957aad1461079b5780633806f152146107835780633ccfd60b1461076c5780633e233205146107545780633f4ba83a1461073d57806342842e0e1461072557806342966c681461070e57806342e44bbf146106f65780635aa6ab3b146106de5780636352211e146106a957806370a082311461068d578063736d323a146106765780637469a03b1461065f57806378278cca1461064757806383c4c00d1461062b5780638456cb59146106145780638a2e25be146105fc5780638b9ec977146105d85780638c3c0a44146105c05780638deb2c321461059f57806394ec65c51461058857806395d89b411461056c578063a09a16011461053c578063a22cb46514610524578063a27d0b271461050c578063a397c830146104f5578063aad045a2146104dd578063ac8cf285146104b2578063b187bd2614610486578063b20b94f11461046e578063b30437a01461045b578063b42dbe38146103fb578063b88d4fde146103e0578063b948a3c5146103c8578063ba4c458a146103b0578063c87b56dd14610389578063cdb0e89e14610371578063d7a75be114610355578063e4b50cb814610325578063e944725014610301578063e985e9c514610294578063eb5fd26b1461027c5763f93151771461025e575061000f565b346102785761027561026f36610b33565b9061331e565b51f35b5080fd5b50346102785761027561028e3661118a565b90613adf565b5034610278576102fd91506102ec6102e56102ce6102b136611157565b6001600160a01b039091166000908152606a602052604090209091565b9060018060a01b0316600052602052604060002090565b5460ff1690565b905190151581529081906020820190565b0390f35b5034610278576102fd91506102ec6102e56102ce61031e36610b8c565b9190611c55565b5034610278576102fd915061034161033c366109af565b613144565b9497959693909392919251978897886110e7565b5034610278576102fd91506102ec61036c36610b62565b611eaf565b50346102785761027561038336610b33565b90613672565b5034610278576102fd91506103a56103a0366109af565b612cc1565b90519182918261099e565b5034610278576102756103c236611026565b9161203b565b5034610278576102756103da36610b33565b90613966565b5034610278576102756103f236610fb6565b929190916117ca565b5034610278576102fd91506102ec6102e56104566102ce61041b366108a1565b939091610447610435826000526099602052604060002090565b5491600052609a602052604060002090565b90600052602052604060002090565b611c91565b5061027561046836610b33565b906140ae565b50346102785761027561048036610c32565b9061460e565b5034610278576102fd915061049a36610936565b60cc54905160ff909116151581529081906020820190565b5034610278576102fd91506104ce6104c93661091e565b610f9c565b90519081529081906020820190565b5034610278576102756104ef36610f53565b9061444e565b50346102785761027561050736610b62565b611fc6565b50346102785761027561051e366108a1565b916148a4565b50346102785761027561053636610f22565b90611616565b5034610278576102fd915061055036610936565b60cc54905160089190911c60ff16151581529081906020820190565b5034610278576102fd915061058036610936565b6103a5611419565b50346102785761027561059a36610b62565b611ef7565b506102fd91506104ce6105b136610e5a565b97969096959195949294612831565b5034610278576102756105d236610b8c565b906149b3565b506102fd91506104ce6105ea36610d43565b98979097969196959295949394614073565b50346102785761027561060e36610d03565b91614512565b50346102785761062336610936565b610275614b61565b5034610278576102fd915061063f36610936565b6104ce613202565b50346102785761027561065936610b33565b906134fa565b50346102785761027561067136610b62565b61436a565b50346102785761027561068836610ce7565b614c2a565b5034610278576102fd91506104ce6106a436610cc4565b6111ad565b5034610278576102fd91506106c56106c0366109af565b611273565b90516001600160a01b0390911681529081906020820190565b5034610278576102756106f036610c81565b91613b9c565b50346102785761027561070836610c32565b9061473a565b503461027857610275610720366109af565b613e6c565b503461027857610275610737366109e8565b91611790565b50346102785761074c36610936565b610275614bcd565b50346102785761027561076636610c02565b90614ca0565b50346102785761077b36610936565b610275614cb2565b50346102785761027561079536610bbc565b91613cff565b5034610278576102756107ad36610b8c565b906147b5565b5034610278576102fd91506103a56107ca36610b62565b611cf5565b5034610278576102756107e136610b33565b906137e8565b5034610278576102756107f9366109e8565b91611742565b503461027857610275610811366109c1565b906114b2565b5034610278576102fd91506106c561082e366109af565b6115d8565b5034610278576102fd915061084736610936565b6103a5611362565b5034610278576102fd91506102ec610866366108f9565b61322f565b50346102785761027561087d366108a1565b91614a98565b600435906001600160a01b03821682141561089a57565b5050600080fd5b606090600319011261000f576004359060243560018110156108de57906044356001600160a01b0381168114156108d55790565b50505050600080fd5b505050600080fd5b6001600160e01b03198116141561000f57565b602090600319011261000f57600435610911816108e6565b90565b6002111561000f57565b602090600319011261000f5760043561091181610914565b600090600319011261000f57565b918091926000905b82821061096457501161095d575050565b6000910152565b9150806020918301518186015201829161094c565b9060209161099281518092818552858086019101610944565b601f01601f1916010190565b906020610911928181520190610979565b602090600319011261000f5760043590565b604090600319011261000f576004356001600160a01b03811681141561089a579060243590565b606090600319011261000f576001600160a01b03906004358281168114156108de57916024359081168114156108de579060443590565b50634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b03821117610a5157604052565b610a59610a1f565b604052565b90601f801991011681019081106001600160401b03821117610a5157604052565b60405190610a8c82610a36565b565b6040519060c082018281106001600160401b03821117610a5157604052565b6020906001600160401b038111610aca575b601f01601f19160190565b610ad2610a1f565b610abf565b929192610ae382610aad565b91610af16040519384610a5e565b829481845281830111610b0e578281602093846000960137010152565b5050505050600080fd5b9080601f830112156108de5781602061091193359101610ad7565b90604060031983011261089a5760043591602435906001600160401b0382116108d55761091191600401610b18565b602060031982011261089a57600435906001600160401b0382116108de5761091191600401610b18565b604090600319011261000f57600435610ba481610914565b906024356001600160a01b0381168114156108de5790565b606060031982011261089a57600435916001600160401b03602435818111610b0e5783610beb91600401610b18565b92604435918211610b0e5761091191600401610b18565b604090600319011261000f57600435610c1a81610914565b9060243590565b610124359081151582141561089a57565b604060031982011261089a57600435906001600160401b0382116108de57610c5c91600401610b18565b906024358015158114156108de5790565b610104359062ffffff821682141561089a57565b90606060031983011261089a5760043591602435906001600160401b0382116108d557610cb091600401610b18565b9060443562ffffff81168114156108d55790565b602090600319011261000f576004356001600160a01b03811681141561089a5790565b602090600319011261000f5760043580151581141561089a5790565b90606060031983011261089a5760043591602435906001600160401b0382116108d557610d3291600401610b18565b906044358015158114156108d55790565b61014060031982011261089a57610d58610883565b916001600160401b0390602435828111610b0e57610d7a846004928301610b18565b93604435848111610e4e5781610d91918401610b18565b93606435818111610e415782610da8918501610b18565b93608435828111610e335783610dbf918601610b18565b9360a435838111610e245784610dd6918301610b18565b9360c435848111610e145781610ded918401610b18565b9360e435908111610e1457610e029201610b18565b90610e0b610c6d565b90610911610c21565b5050505050505050505050600080fd5b50505050505050505050600080fd5b505050505050505050600080fd5b5050505050505050600080fd5b50505050505050600080fd5b61012060031982011261089a57610e6f610883565b916001600160401b0390602435828111610b0e57610e91846004928301610b18565b93604435848111610e4e5781610ea8918401610b18565b93606435818111610e415782610ebf918501610b18565b93608435828111610e335783610ed6918601610b18565b9360a435838111610e245784610eed918301610b18565b9360c435848111610e145781610f04918401610b18565b9360e435908111610e1457610f199201610b18565b90610911610c6d565b604090600319011261000f576004356001600160a01b03811681141561089a57906024358015158114156108de5790565b604090600319011261000f57600435906024358015158114156108de5790565b50634e487b7160e01b600052602160045260246000fd5b60021115610f9457565b610a8c610f73565b610fa581610f8a565b60005260fe60205260406000205490565b90608060031983011261089a576001600160a01b03916004358381168114156108d557926024359081168114156108d5579160443591606435906001600160401b03821161101b578060238301121561101b5781602461091193600401359101610ad7565b505050505050600080fd5b90606060031983011261089a576001600160401b03906004358281116108d5578361105391600401610b18565b92602435838111610b0e578161106b91600401610b18565b926044359181831161101b578060238401121561101b5782600401359182116110da575b8160051b604051936020936110a685840187610a5e565b8552602484860192820101928311610e4157602401905b8282106110cb575050505090565b813581529083019083016110bd565b6110e2610a1f565b61108f565b959062ffffff9461112f6111509561112160c0999661111361113d969d9e9d60e08e8181520190610979565b8c810360208e015290610979565b908a820360408c0152610979565b9088820360608a0152610979565b91608087015285820360a0870152610979565b9416910152565b604090600319011261000f576001600160a01b03906004358281168114156108de57916024359081168114156108de5790565b604090600319011261000f576004359060243562ffffff81168114156108de5790565b6001600160a01b031680156111cd57600052606860205260406000205490565b505060405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608490fd5b1561122d57565b5060405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606490fd5b6000908152606760205260409020546001600160a01b0316610911811515611226565b90600182811c921680156112c8575b60208310146112b057565b5050634e487b7160e01b600052602260045260246000fd5b91607f16916112a5565b90600092918054916112e383611296565b9182825260019384811690816000146113455750600114611305575b50505050565b90919394506000526020928360002092846000945b8386106113315750505050010190388080806112ff565b80548587018301529401938590820161131a565b60ff191660208401525050604001935038915081905080806112ff565b604051906000826065549161137683611296565b808352926001908181169081156113fc575060011461139d575b50610a8c92500383610a5e565b6065600090815291507f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c75b8483106113e15750610a8c935050810160200138611390565b81935090816020925483858a010152019101909185926113c8565b94505050505060ff19166020830152610a8c826040810138611390565b604051906000826066549161142d83611296565b808352926001908181169081156113fc57506001146114535750610a8c92500383610a5e565b6066600090815291507f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e943545b8483106114975750610a8c935050810160200138611390565b81935090816020925483858a0101520191019091859261147e565b906114bc81611273565b6001600160a01b038181169084168114611585573314908115611557575b50156114e957610a8c91611ab4565b505060405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260849150fd5b6001600160a01b03166000908152606a6020526040902060ff915061157d9033906102ce565b5416386114da565b5050505050608460405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152fd5b6000818152606760205260409020546115fb906001600160a01b03161515611226565b6000908152606960205260409020546001600160a01b031690565b6001600160a01b038116919033831461169757816116566116679233600052606a60205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405190151581527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3565b50505050606460405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b156116e657565b5060405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608490fd5b90610a8c929161175a6117558433611866565b6116df565b611939565b60405190602082018281106001600160401b03821117611783575b60405260008252565b61178b610a1f565b61177a565b9091610a8c9260405192602084018481106001600160401b038211176117bd575b604052600084526117ca565b6117c5610a1f565b6117b1565b906117ee9392916117de6117558433611866565b6117e9838383611939565b611b9d565b156117f557565b5060405162461bcd60e51b81528061180f60048201611813565b0390fd5b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b6001600160a01b038061187884611273565b1692818316928484149485156118ae575b50508315611898575b50505090565b6118a4919293506115d8565b1614388080611892565b6000908152606a602090815260408083206001600160a01b03949094168352929052205460ff1693503880611889565b156118e557565b5060405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b61195d9061194684611273565b6001600160a01b03828116939091821684146118de565b8316928315611a5e576119db826119788784611a3596613273565b61199a856119946119888a611273565b6001600160a01b031690565b146118de565b6119c16119b1886000526069602052604060002090565b80546001600160a01b0319169055565b6001600160a01b0316600090815260686020526040902090565b80546000190190556001600160a01b038116600090815260686020526040902060018154019055611a16856000526067602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4565b505050505050608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152fd5b600082815260696020526040902080546001600160a01b0319166001600160a01b0383161790556001600160a01b0380611aed84611273565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b9081602091031261089a5751610911816108e6565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261091192910190610979565b506040513d6000823e3d90fd5b3d15611b98573d90611b7e82610aad565b91611b8c6040519384610a5e565b82523d6000602084013e565b606090565b92909190823b15611c4c57611bd0926020926000604051809681958294630a85bd0160e11b9a8b85523360048601611b2f565b03926001600160a01b03165af160009181611c2c575b50611c1e57505050611bf6611b6d565b80519081611c1957505060405162461bcd60e51b81528061180f60048201611813565b602001fd5b6001600160e01b0319161490565b611c45919250611c3c3d82610a5e565b3d810190611b1a565b9038611be6565b50505050600190565b611c5e81610f8a565b6000526098602052604060002090565b611c7781610f8a565b6000526097602052604060002090565b60011115610f9457565b906001811015611caa575b600052602052604060002090565b611cb2610f73565b611c9c565b90611cca60209282815194859201610944565b0190565b6020611ce7918160405193828580945193849201610944565b810161013081520301902090565b6001600160a01b0390816002611d0a83611cce565b015460101c1615611e9a57611d1e90611cce565b908154611d2a90615020565b906001830154611d3990615020565b92600201548060081c60ff16611d4e906152c4565b91611d5b60ff83166152c4565b908260101c16611d6a9061520f565b9160b01c60ff16611d7a81614236565b611d8390615020565b604051607b60f81b60208201529586959194916021870169113a37b5b2b724b2111d60b11b8152600a01611db691611cb7565b600b60fa1b8152600101671139b1b7b932911d60c11b8152600801611dda91611cb7565b600b60fa1b81526001016e113730b6b2ab32b934b334b2b2111d60891b8152600f01611e0591611cb7565b600b60fa1b8152600101711131b7b73a32b73a2b32b934b334b2b2111d60711b8152601201611e3391611cb7565b600b60fa1b8152600101681137bbb732b9111d1160b91b8152600901611e5891611cb7565b61088b60f21b8152600201681139ba30ba3ab9911d60b91b8152600901611e7e91611cb7565b607d60f81b815260010103601f19810182526109119082610a5e565b5050604051630d436c3560e21b815260049150fd5b6001600160a01b036002611ec283611cce565b015460101c1615611ee3576002611eda60ff92611cce565b015460081c1690565b5050604051630d436c3560e21b8152600490fd5b6001600160a01b036002611f0a83611cce565b015460101c1615611ee3576001611f2082611cce565b01611f2b8154611f92565b9055611f3681611cce565b547f3ea1c0fcf71b86fca8f96ccac3cf26fba8983d3bbbe7bd720f1865d67fbaee43611f766001611f6685611cce565b0154604051918291339683611faa565b0390a3565b50634e487b7160e01b600052601160045260246000fd5b6001906000198114611fa2570190565b611cca611f7b565b929190611fc1602091604086526040860190610979565b930152565b6001600160a01b036002611fd983611cce565b015460101c1615611ee3576001611fef82611cce565b01541561200c57600161200182611cce565b01611f2b8154612020565b50506040516341f3125f60e11b8152600490fd5b801561202e575b6000190190565b612036611f7b565b612027565b90916000549260ff8460081c16158094819561215d575b811561213d575b50156120dd5761207f9284612076600160ff196000541617600055565b6120c45761216b565b61208557565b61209561ff001960005416600055565b604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1565b6120d861010061ff00196000541617600055565b61216b565b5050505050608460405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b303b1591508161214f575b5038612059565b6001915060ff161438612148565b600160ff8216109150612052565b92919061218860ff60005460081c16612183816122ad565b6122ad565b83516001600160401b0381116122a0575b6121ad816121a8606554611296565b612325565b602080601f831160011461220a575090806121ea93926121f796976000926121ff575b50508160011b916000199060031b1c191617606555612416565b6121f26125e9565b612763565b610a8c614d19565b0151905038806121d0565b90601f1983169661223d60656000527f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c790565b926000905b8982106122885750509183916001936121ea96956121f7999a1061226f575b505050811b01606555612416565b015160001960f88460031b161c19169055388080612261565b80600185968294968601518155019501930190612242565b6122a8610a1f565b612199565b156122b457565b5060405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b818110612319575050565b6000815560010161230e565b90601f8211612332575050565b610a8c9160656000527f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c7906020601f840160051c8301931061237c575b601f0160051c019061230e565b909150819061236f565b90601f8211612393575050565b610a8c9160666000527f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e94354906020601f840160051c8301931061237c57601f0160051c019061230e565b9190601f81116123eb57505050565b610a8c926000526020600020906020601f840160051c8301931061237c57601f0160051c019061230e565b9081516001600160401b038111612500575b61243c81612437606654611296565b612386565b602080601f8311600114612478575081929360009261246d575b50508160011b916000199060031b1c191617606655565b015190503880612456565b90601f198316946124ab60666000527f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e9435490565b926000905b8782106124e85750508360019596106124cf575b505050811b01606655565b015160001960f88460031b161c191690553880806124c4565b806001859682949686015181550195019301906124b0565b612508610a1f565b612428565b91909182516001600160401b0381116125dc575b6125358161252f8454611296565b846123dc565b602080601f8311600114612571575081929394600092612566575b50508160011b916000199060031b1c1916179055565b015190503880612550565b90601f1983169561258785600052602060002090565b926000905b8882106125c4575050836001959697106125ab575b505050811b019055565b015160001960f88460031b161c191690553880806125a1565b8060018596829496860151815501950193019061258c565b6125e4610a1f565b612521565b60006125fb60ff825460081c166122ad565b808052609860209081526040808320336000908152908352819020549192909160ff1661272f57808052609883528181203360009081526020919091526040902061264e905b805460ff19166001179055565b808052609783528181206126628154612743565b905581516001815233602082018190527faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a949183908690604090a36001825260988152828220336000908152602091909152604090205460ff1661271a579181609760019485849552609881526126f0612641338686209060018060a01b0316600052602052604060002090565b85835252206126ff8154612743565b90555160018152336020820181905292908060408101611f76565b5050516397b705ed60e01b8152600492509050fd5b50516397b705ed60e01b8152600492509050fd5b6001906001198111611fa2570190565b6002906002198111611fa2570190565b9061277560ff60005460081c166122ad565b60005b82518110156127c2578061278e6127b092610f8a565b83518110156127b5575b6127ab60208260051b86010151826127de565b611f92565b612778565b6127bd6127c7565b612798565b509050565b50634e487b7160e01b600052603260045260246000fd5b6040907f6819853ffee8927169953e7bdc42aaba347fb03ff918a45bfccaf88626d900969261280c82610f8a565b8160005260fe60205280836000205582519161282781610f8a565b82526020820152a1565b6000805260fe6020527f32796e36004994222362c2f9423d5e208bb848170964890784a8d59ed40f50af54959893979296959093919290348114156129765750610163958654998a976128848988612b66565b805461288f90612743565b90556128a688600052610164602052604060002090565b6128b0868261250d565b6128bd8a6001830161250d565b6128ca8b6002830161250d565b6128d7886003830161250d565b6128e4846004830161250d565b60058101805462ffffff191662ffffff871617905560006006820155612908610a7f565b908282528360208301526007016129289060008052602052604060002090565b9061293291612999565b604051968796600160a01b60019003169a339a61294f9789612a90565b037fe28e08833257b39aac87c92f3d33a3e58ced9b0b4371f4e0aac31677f16ef5d891a490565b985050505050505050506024915060405190635f7e28df60e01b82526004820152fd5b9080519081516001600160401b038111612a83575b6129c2816129bc8654611296565b866123dc565b6020928390601f8311600114612a0e57918060019492610a8c979694600092612a03575b5050600019600383901b1c191690841b1784555b0151910161250d565b0151905038806129e6565b90601f19831691612a2487600052602060002090565b9260005b818110612a6c57509260019593928592610a8c999896889510612a53575b505050811b0184556129fa565b015160001960f88460031b161c19169055388080612a46565b929387600181928786015181550195019301612a28565b612a8b610a1f565b6129ae565b969262ffffff95612aef61115096612ae1612afd94612ad39d9e9d8d612b0b99612ac560e09f9a610100808552840190610979565b916020818403910152610979565b8d810360408f015290610979565b908b820360608d0152610979565b9089820360808b0152610979565b9087820360a0890152610979565b9085820360c0870152610979565b15612b2057565b5060405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b6001600160a01b038116908115612c2957600083815260676020526040902054612bff9190612ba1906001600160a01b031615155b15612b19565b612ba9614d3b565b600084815260676020526040902054612bcc906001600160a01b03161515612b9b565b6001600160a01b038116600090815260686020526040902060018154019055611a16846000526067602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef81604051a4565b50505050606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b600160005260fe6020527f457c8a48b4735f56b938837eb0a8a5f9c55f23c1a85767ce3b65c3e59d3d32b75434811415612ca85750565b6024915060405190635f7e28df60e01b82526004820152fd5b600081815260676020526040902054612ce4906001600160a01b03161515611226565b612ced81611273565b90600090815261013160205260409160ff838320541661016460205283832092612d54855193612d1c85610a36565b601d85527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000060208601526001600160a01b031661520f565b91600385016005860191612d9784612d77612d72865462ffffff1690565b61530a565b8a518093819263891c235f60e01b83528c88600482019160048601614f5c565b038173__$ecf603b2c2aa531f37c90ec146d2a3e91a$__5af4948515613137575b809561310d575b5050612dca906152c4565b90600787019060068801549282612dec85809590600052602052604060002090565b93612e009190600052602052604060002090565b60010193612e0d90615020565b945462ffffff16612e1d9061530a565b8a51607b60f81b602082015267113730b6b2911d1160c11b6021820152998a98919791612e4d60298b0183614fa4565b61088b60f21b81526002016e113232b9b1b934b83a34b7b7111d1160891b8152600f01612e7d9060018401614fa4565b61088b60f21b8152600201681137bbb732b9111d1160b91b8152600901612ea391611cb7565b61088b60f21b81526002016f1132bc3a32b93730b62fbab936111d1160811b8152601001612ed391600201614fa4565b61088b60f21b8152600201681134b6b0b3b2911d1160b91b8152600901612ef991611cb7565b61088b60f21b81526002017f226163636573735f706f696e745f6175746f5f617070726f76616c223a0000008152601d01612f3391611cb7565b600b60fa1b81526001016e2261747472696275746573223a205b60881b8152600f017f7b2274726169745f74797065223a2022454e53222c202276616c7565223a22008152601f01612f8491614fa4565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a2022436f6d6d69742048617368222c20227681526630b63ab2911d1160c91b6020820152602701612fcf91614fa4565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a20225265706f7369746f7279222c20227661815265363ab2911d1160d11b602082015260260161301991614fa4565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a202256657273696f6e222c202276616c7565815262111d1160e91b602082015260230161306091611cb7565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a2022436f6c6f72222c202276616c7565223a8152601160f91b60208201526021016130a591611cb7565b61227d60f01b8152600201605d60f81b8152600101607d60f81b81526001010391601f199283810182526130d99082610a5e565b6130e290614e23565b9251928391602083016130f491611cb7565b6130fd91611cb7565b0390810182526109119082610a5e565b612dca9295509061312f913d90823e6131263d82610a5e565b3d810190614efe565b939038612dbf565b61313f611b60565b612db8565b600081815260676020526040902054613167906001600160a01b03161515611226565b60005261016460205260409081600020600681015462ffffff60058301541693805161319e8161319781876112d2565b0382610a5e565b9481516131b28161319781600189016112d2565b9460046131ef84516131cb816131978160028c016112d2565b9661319786516131e28161319781600387016112d2565b97965180948193016112d2565b9190565b6001811061202e576000190190565b61016354801561321b576001811061202e576000190190565b50506040516327e4ec1b60e21b8152600490fd5b63ffffffff60e01b166380ac58cd60e01b8114908115613262575b8115613254575090565b6301ffc9a760e01b14919050565b635b5e139f60e01b8114915061324a565b9061327c614d3b565b6001600160a01b03918216151580806132bc575b156132a157505050610a8c906132c7565b6132aa57505050565b16156132b35750565b610a8c906132c7565b508282161515613290565b80600052609960205260406000206001815481198111613311575b0190557f8c7eb22d1ba10f86d9249f2a8eb0e3e35b4f0b2f21f92dea9ec25a4d84b20fa06020604051338152a2565b613319611f7b565b6132e2565b61332781611273565b6001600160a01b031633141561345d575b60008181526067602052604090205461335b906001600160a01b03161515611226565b8060005260206101648152600260406000200190835180916001600160401b038211613450575b613390826129bc8654611296565b80601f83116001146133e257506000916133d7575b508160011b916000199060031b1c19161790555b60008051602061541183398151915260405180611f7633958261346b565b9050840151386133a5565b9150601f1983166133f885600052602060002090565b926000905b828210613438575050908360019493921061341f575b5050811b0190556133b9565b86015160001960f88460031b161c191690553880613413565b80600185968294968c015181550195019301906133fd565b613458610a1f565b613382565b6134668161349e565b613338565b9060806109119260408152600b60408201526a195e1d195c9b985b15549360aa1b60608201528160208201520190610979565b600081815260996020908152604080832054609a83528184209084528252808320838052825280832033845290915281205460ff16156134dc575050565b604492506040519163158eff0360e21b835260048301526024820152fd5b61350381611273565b6001600160a01b0316331415613639575b600081815260676020526040902054613537906001600160a01b03161515611226565b8060005260206101648152600360406000200190835180916001600160401b03821161362c575b61356c826129bc8654611296565b80601f83116001146135be57506000916135b3575b508160011b916000199060031b1c19161790555b60008051602061541183398151915260405180611f76339582613647565b905084015138613581565b9150601f1983166135d485600052602060002090565b926000905b82821061361457505090836001949392106135fb575b5050811b019055613595565b86015160001960f88460031b161c1916905538806135ef565b80600185968294968c015181550195019301906135d9565b613634610a1f565b61355e565b6136428161349e565b613514565b90608061091192604081526003604082015262454e5360e81b60608201528160208201520190610979565b61367b81611273565b6001600160a01b03163314156137ae575b6000818152606760205260409020546136af906001600160a01b03161515611226565b8060005260206101648152604060002090835180916001600160401b0382116137a1575b6136e1826129bc8654611296565b80601f83116001146137335750600091613728575b508160011b916000199060031b1c19161790555b60008051602061541183398151915260405180611f763395826137bc565b9050840151386136f6565b9150601f19831661374985600052602060002090565b926000905b8282106137895750509083600194939210613770575b5050811b01905561370a565b86015160001960f88460031b161c191690553880613764565b80600185968294968c0151815501950193019061374e565b6137a9610a1f565b6136d3565b6137b78161349e565b61368c565b906080610911926040815260046040820152636e616d6560e01b60608201528160208201520190610979565b6137f181611273565b6001600160a01b0316331415613925575b600081815260676020526040902054613825906001600160a01b03161515611226565b8060005260206101648152600180604060002001918451906001600160401b038211613918575b61385a826129bc8654611296565b80601f83116001146138ad5750819282916000936138a2575b501b916000199060031b1c19161790555b60008051602061541183398151915260405180611f76339582613933565b870151925038613873565b9082601f1981166138c387600052602060002090565b936000905b878383106138fe57505050106138e5575b5050811b019055613884565b86015160001960f88460031b161c1916905538806138d9565b8b86015187559095019493840193869350908101906138c8565b613920610a1f565b61384c565b61392e8161349e565b613802565b9060806109119260408152600b60408201526a3232b9b1b934b83a34b7b760a91b60608201528160208201520190610979565b61396f81611273565b6001600160a01b0316331415613aa5575b6000818152606760205260409020546139a3906001600160a01b03161515611226565b8060005260206101648152600460406000200190835180916001600160401b038211613a98575b6139d8826129bc8654611296565b80601f8311600114613a2a5750600091613a1f575b508160011b916000199060031b1c19161790555b60008051602061541183398151915260405180611f76339582613ab3565b9050840151386139ed565b9150601f198316613a4085600052602060002090565b926000905b828210613a805750509083600194939210613a67575b5050811b019055613a01565b86015160001960f88460031b161c191690553880613a5b565b80600185968294968c01518155019501930190613a45565b613aa0610a1f565b6139ca565b613aae8161349e565b613980565b906080610911926040815260046040820152636c6f676f60e01b60608201528160208201520190610979565b613ae881611273565b6001600160a01b0316331415613b8e575b600081815260676020526040902054613b1c906001600160a01b03161515611226565b600081815261016460205260409020600501805462ffffff191662ffffff841617905562ffffff6040519260408452600560408501526431b7b637b960d91b60608501521660208301527f7a3039988e102050cb4e0b6fe203e58afd9545e192ef2ca50df8d14ee2483e7e60803393a3565b613b978161349e565b613af9565b92919092613ba981611273565b6001600160a01b0316331415613cf1575b600081815260676020526040902054613bdd906001600160a01b03161515611226565b80600052602093610164855260046040600020018151956001600160401b038711613ce4575b613c118761252f8454611296565b80601f8811600114613c7357509580610a8c9697600091613c68575b508160011b916000199060031b1c19161790555b8160008051602061541183398151915260405180613c60339582613ab3565b0390a3613adf565b905083015138613c2d565b90601f198816613c8884600052602060002090565b926000905b828210613ccc575050918891610a8c989960019410613cb3575b5050811b019055613c41565b85015160001960f88460031b161c191690553880613ca7565b80600185968294968a01518155019501930190613c8d565b613cec610a1f565b613c03565b613cfa8161349e565b613bba565b90917f1df66319cf29e55bca75419e56e75507b2b443b0a062a59d4b06b8d4dd13ce6b90613d2c83611273565b6001600160a01b0316331415613df0575b600083815260676020526040902054613d60906001600160a01b03161515611226565b604090613dc682518381018181106001600160401b03821117613de3575b845286815282602082015285600052610164602052613dc1600785600020016006866000200190613daf8254611f92565b80925590600052602052604060002090565b612999565b613dce610a7f565b94855260208501525180611f76339582613dfe565b613deb610a1f565b613d7e565b613df98361349e565b613d3d565b604081526005604082015264189d5a5b1960da1b606082015260808101906020916080838301529160c0820193926000905b60028210613e4057505050505090565b90919293948380613e5d600193607f198982030186528951610979565b97019201920190939291613e30565b613e7581611273565b6001600160a01b03908116331415613f96576000818392613e9584611273565b613e9d614d3b565b1615158080613f8f575b8314613f785750613eb7836132c7565b613ec083611273565b613ed76119b1856000526069602052604060002090565b6001600160a01b038116600090815260686020526040902083198154019055613f0d6119b1856000526067602052604060002090565b167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef82604051a4613f546002613f4e83600052610164602052604060002090565b01613fb0565b613f5b5750565b613f73610a8c91600052610164602052604060002090565b61402b565b613f8157613eb7565b613f8a836132c7565b613eb7565b5082613ea7565b5060249150604051906355d2292f60e11b82526004820152fd5b6109119054611296565b6001600160fe1b038111600116613fd2575b60021b90565b613fda611f7b565b613fcc565b613fe98154611296565b9081613ff3575050565b81601f60009311600114614005575055565b8183526020832061402191601f0160051c81019060010161230e565b8160208120915555565b600660009161403981613fdf565b61404560018201613fdf565b61405160028201613fdf565b61405d60038201613fdf565b61406960048201613fdf565b8260058201550155565b916140879795939161091199979593612831565b91825b90610a8c9160005261013160205260406000209060ff801983541691151516179055565b6140b6614d3b565b6140be612c71565b6000818152606760205260409020546140e1906001600160a01b03161515611226565b6001600160a01b0361410860026140f785611cce565b015460101c6001600160a01b031690565b16614221577fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe890604051817f8140554c907b4ba66a04ea1f43b882cba992d3db4cd5c49298a56402d7b36ca2339280614161888261099e565b0390a361417c6102e582600052610131602052604060002090565b156141d6576141d1906141c3614190610a8e565b828152600060208201819052604082018190526060820152336080820152600160a08201526141be86611cce565b614240565b60405191829133958361431c565b0390a2565b6141d1906142136141e5610a8e565b828152600060208201819052604082018190526060820152336080820152600060a08201526141be86611cce565b6040519182913395836142f8565b505060405163142d0c2f60e11b815260049150fd5b60041115610f9457565b6002908251815560208301516001820155019061426f60408201511515839060ff801983541691151516179055565b6060810151825461ff00191690151560081b61ff00161782556080810151825462010000600160b01b0319811660109290921b62010000600160b01b0316918217845560a0909201516142c181614236565b60048110156142eb575b62010000600160b81b03199092161760b09190911b60ff60b01b16179055565b6142f3610f73565b6142cb565b604090614312600093959495606083526060830190610979565b9460208201520152565b604090614312600193959495606083526060830190610979565b604090614312600393959495606083526060830190610979565b604090614312600293959495606083526060830190610979565b614372614d3b565b6001600160a01b0380600261438684611cce565b015460101c1615611e9a57600261439c83611cce565b015460101c1633141561443a576143cb60026143b783611cce565b01805460ff60b01b1916600360b01b179055565b6143d481611cce565b546040517fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe8339180614407858783614336565b0390a27fef2f6bed86b96d79b41799f5285f73b31274bb303ebe5d55a3cb48c567ab2db060405180611f7633958261099e565b5050604051631851b23d60e01b8152600490fd5b61445781611273565b6001600160a01b03163314156144f75760008181526067602052604090205461448a906001600160a01b03161515611226565b614494828261408a565b6040519160408352601760408401527f616363657373506f696e744175746f417070726f76616c0000000000000000006060840152151560208301527e91a55492d3e3f4e2c9b36ff4134889d9118003521f9d531728503da510b11f60803393a3565b905060249150604051906355d2292f60e11b82526004820152fd5b91909161451e81611273565b6001600160a01b03163314156145f25761453783611cce565b81815414156145dc5760020190614553825460ff9060b01c1690565b61455c81614236565b6145c6577fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe892156145a257815460ff60b01b1916600160b01b179091556141d1906141c3565b815460ff60b01b1916600160b11b179091556141d190604051918291339583614350565b5050505050600460405163d9e5c51160e01b8152fd5b50505050506004604051636653b1a360e01b8152fd5b91505060249150604051906355d2292f60e11b82526004820152fd5b614616614694565b6001600160a01b03600261462983611cce565b015460101c1615611e9a5761465582600261464384611cce565b019060ff801983541691151516179055565b7fe2e598f7ff2dfd4bc3bd989635401b4c56846b7893cb7eace51d099f21e69bff611f7661468283611cce565b54604051918291339615159583611faa565b3360009081527fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa602052604090205460ff16156146cd57565b5060405163070198dd60e51b815260016004820152602490fd5b3360009081527fddaeee8e61001dbcfaf4f92c6943552c392a86665d734d3c1905d7b3c23b1b1e602052604090205460ff161561472057565b5060405163070198dd60e51b815260006004820152602490fd5b614742614694565b6001600160a01b03600261475583611cce565b015460101c1615611e9a5761478882600261476f84611cce565b019061ff00825491151560081b169061ff001916179055565b7f17bd9b465aa0cdc6b308874903e9c38b13f561ecb1f2edaa8bf3969fe603d11c611f7661468283611cce565b6147bd614d3b565b6147c56146e7565b6147ce81610f8a565b60008181526098602090815260408083206001600160a01b038616845290915290205460ff1661488f5761480181610f8a565b60008181526098602090815260408083206001600160a01b0386168452909152902061482c90612641565b61483581611c6e565b61483f8154612743565b905561484a81610f8a565b60408051600181523360208201526001600160a01b03909316927faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a9181908101611f76565b50506040516397b705ed60e01b815260049150fd5b6148ac614d3b565b6148b581611273565b6001600160a01b03908116331415614996578160005260996020526148fd6102e5856102ce86610456604060002054609a602052604060002090600052602052604060002090565b614980577fa4e6ad394cc40a3bae0d24623f88f7bb2e1463d19dab64bafd9985b0bc7821189061495a612641866102ce87610456614945896000526099602052604060002090565b546104478a600052609a602052604060002090565b61496384611c87565b60408051600181523360208201529190951694819081015b0390a4565b505050505060046040516397b705ed60e01b8152fd5b5091505060249150604051906355d2292f60e11b82526004820152fd5b6149bb614d3b565b6149c36146e7565b6149da6149d66102e5846102ce85611c55565b1590565b61488f576149e781610f8a565b801580614a85575b614a7057614a0d614a03836102ce84611c55565b805460ff19169055565b614a1681611c6e565b614a2081546131f3565b9055614a2b81610f8a565b60408051600081523360208201526001600160a01b03909316927faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a9181908101611f76565b50506040516360ed092b60e01b815260049150fd5b506001614a9182611c6e565b54146149ef565b614aa0614d3b565b614aa981611273565b6001600160a01b0390811633141561499657816000526099602052614af46149d66102e5866102ce87610456604060002054609a602052604060002090600052602052604060002090565b614980577fa4e6ad394cc40a3bae0d24623f88f7bb2e1463d19dab64bafd9985b0bc78211890614b3c614a03866102ce87610456614945896000526099602052604060002090565b614b4584611c87565b604080516000815233602082015291909516948190810161497b565b614b696146e7565b614b71614d3b565b60cc5460ff8160081c1615614bb95760019060ff19161760cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b5050604051635970d9f560e11b8152600490fd5b614bd56146e7565b60cc5460ff811615614c165760ff191660cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b50506040516355d413dd60e01b8152600490fd5b614c326146e7565b60cc549015159060ff8160081c1615158214614c865761ff008260081b169061ff0019161760cc557f959581ef17eb8c8936ef9832169bc89dbcd1358765adca8ca81f28b416bb5efa6020604051338152a2565b506024915060405190632e15c5c160e21b82526004820152fd5b90610a8c91614cad6146e7565b6127de565b614cba6146e7565b478060008115614d10575b600080809381933390f115614d03575b6040519081527f8c7cdad0d12a8db3e23561b42da6f10c8137914c97beff202213a410e1f520a360203392a2565b614d0b611b60565b614cd5565b506108fc614cc5565b614d2a60ff60005460081c166122ad565b60cc805461ffff1916610100179055565b60ff60cc5416614d4757565b506040516306d39fcd60e41b8152600490fd5b60405190606082018281106001600160401b03821117614dca575b604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b614dd2610a1f565b614d75565b60405190614de482610a36565b6008825260203681840137565b90614dfb82610aad565b614e086040519182610a5e565b8281528092614e19601f1991610aad565b0190602036910137565b805115614ef557614e32614d5a565b614e56614e51614e4c614e458551612753565b6003900490565b613fba565b614df1565b9160208301918182518301915b828210614ea357505050600390510680600114614e9057600214614e85575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c1688010151600286015316850101519082015301939190614e63565b5061091161175f565b6020818303126108de578051906001600160401b0382116108d5570181601f820112156108de578051614f3081610aad565b92614f3e6040519485610a5e565b818452602082840101116108d5576109119160208085019101610944565b92614f886109119593614f7a614f96946080885260808801906112d2565b9086820360208801526112d2565b9084820360408601526112d2565b916060818403910152610979565b600092918154614fb381611296565b9260019180831690811561500b5750600114614fcf5750505050565b90919293945060005260209081600020906000915b858310614ffa57505050500190388080806112ff565b805485840152918301918101614fe4565b60ff19168452505050019150388080806112ff565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000080821015615155575b506d04ee2d6d415b85acef810000000080831015615146575b50662386f26fc1000080831015615137575b506305f5e10080831015615128575b5061271080831015615119575b506064821015615109575b600a809210156150ff575b6001908160216150b7828701614df1565b95860101905b6150c9575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049182156150fa579190826150bd565b6150c2565b91600101916150a6565b919060646002910491019161509b565b60049193920491019138615090565b60089193920491019138615083565b60109193920491019138615074565b60209193920491019138615062565b604093508104915038615049565b6040519061517082610a36565b6007825260203681840137565b60209080511561518b570190565b611cca6127c7565b60219080516001101561518b570190565b9060209180518210156151b657010190565b6151be6127c7565b010190565b156151ca57565b50606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b60405190606082018281106001600160401b038211176152b7575b604052602a8252604036602084013760306152448361517d565b53607861525083615193565b536029905b60018211615268576109119150156151c3565b80600f6152a4921660108110156152aa575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a61529a84866151a4565b5360041c91612020565b90615255565b6152b26127c7565b61527a565b6152bf610a1f565b61522a565b156152e9576040516152d581610a36565b60048152637472756560e01b602082015290565b6040516152f581610a36565b600581526466616c736560d81b602082015290565b62ffffff16615317614dd7565b9060306153238361517d565b53607861532f83615193565b5360079081905b600182116153cb576153499150156151c3565b615351615163565b918251156153be575b60236020840153600190815b838110615374575050505090565b6153ac9060011981116153b1575b6001600160f81b0319615397828601856151a4565b511660001a6153a682886151a4565b53611f92565b615366565b6153b9611f7b565b615382565b6153c66127c7565b61535a565b80600f6153fd92166010811015615403575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a61529a84876151a4565b90615336565b61540b6127c7565b6153dd56fe0eef1ffa5f2982ad38bb9f5022d2ac4c29b22af1469b6ed4f49176c737d74a18a3646970667358221220a46cc561cb941d4cb253baff3fb82ca4751f5808e7c9f5492a283bc24daab90b6c6578706572696d656e74616cf564736f6c634300080c0041", - "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"AccessPointAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointCreationStatusAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointNotExistent\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointScoreCannotBeLower\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsNotPausable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsNotPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTokenIdForAccessPoint\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeAccessPointOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"MustBeTokenOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustHaveAtLeastOneOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"role\",\"type\":\"uint8\"}],\"name\":\"MustHaveCollectionRole\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"role\",\"type\":\"uint8\"}],\"name\":\"MustHaveTokenRole\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"state\",\"type\":\"bool\"}],\"name\":\"PausableIsSetTo\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredValue\",\"type\":\"uint256\"}],\"name\":\"RequiredPayment\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RoleAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ThereIsNoTokenMinted\",\"type\":\"error\"},{\"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\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"BillingChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointContentVerify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum FleekAccessPoints.AccessPointCreationStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointCreationStatus\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointNameVerify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"score\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointScore\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"CollectionRoleChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"value\",\"type\":\"uint24\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string[2]\",\"name\":\"value\",\"type\":\"string[2]\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"value\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"NewAccessPoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"ENS\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"NewMint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"isPausable\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PausableStatusChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PauseStatusChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemoveAccessPoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"TokenRoleChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"TokenRolesCleared\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"\",\"type\":\"uint8\"}],\"name\":\"_billings\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"addAccessPoint\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"decreaseAccessPointScore\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"getAccessPointJSON\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"}],\"name\":\"getBilling\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastTokenId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantCollectionRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantTokenRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasCollectionRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasTokenRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"increaseAccessPointScore\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"initialBillings\",\"type\":\"uint256[]\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"isAccessPointNameVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPausable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPaused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ENS\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"accessPointAutoApproval\",\"type\":\"bool\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ENS\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"removeAccessPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeCollectionRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeTokenRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_apAutoApproval\",\"type\":\"bool\"}],\"name\":\"setAccessPointAutoApproval\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setAccessPointContentVerify\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setAccessPointNameVerify\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAccessPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"setBilling\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"pausable\",\"type\":\"bool\"}],\"name\":\"setPausable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_gitRepository\",\"type\":\"string\"}],\"name\":\"setTokenBuild\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint24\",\"name\":\"_tokenColor\",\"type\":\"uint24\"}],\"name\":\"setTokenColor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenDescription\",\"type\":\"string\"}],\"name\":\"setTokenDescription\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenENS\",\"type\":\"string\"}],\"name\":\"setTokenENS\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenExternalURL\",\"type\":\"string\"}],\"name\":\"setTokenExternalURL\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenLogo\",\"type\":\"string\"}],\"name\":\"setTokenLogo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenLogo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"_tokenColor\",\"type\":\"uint24\"}],\"name\":\"setTokenLogoAndColor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenName\",\"type\":\"string\"}],\"name\":\"setTokenName\",\"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\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addAccessPoint(uint256,string)\":{\"details\":\"Add a new AccessPoint register for an app token. The AP name should be a DNS or ENS url and it should be unique. Anyone can add an AP but it should requires a payment. May emit a {NewAccessPoint} event. Requirements: - the tokenId must be minted and valid. - billing for add acess point may be applied. - the contract must be not paused.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC721-approve}.\"},\"balanceOf(address)\":{\"details\":\"See {IERC721-balanceOf}.\"},\"burn(uint256)\":{\"details\":\"Burns a previously minted `tokenId`. May emit a {Transfer} event. Requirements: - the tokenId must be minted and valid. - the sender must be the owner of the token. - the contract must be not paused.\"},\"decreaseAccessPointScore(string)\":{\"details\":\"Decreases the score of a AccessPoint registry if is greater than 0.\"},\"getAccessPointJSON(string)\":{\"details\":\"A view function to gether information about an AccessPoint. It returns a JSON string representing the AccessPoint information.\"},\"getApproved(uint256)\":{\"details\":\"See {IERC721-getApproved}.\"},\"getBilling(uint8)\":{\"details\":\"Returns the billing value for a given key.\"},\"getLastTokenId()\":{\"details\":\"Returns the last minted tokenId.\"},\"getToken(uint256)\":{\"details\":\"Returns the token metadata associated with the `tokenId`. Returns multiple string and uint values in relation to metadata fields of the App struct. Requirements: - the tokenId must be minted and valid.\"},\"grantCollectionRole(uint8,address)\":{\"details\":\"Grants the collection role to an address. Requirements: - the caller should have the collection role.\"},\"grantTokenRole(uint256,uint8,address)\":{\"details\":\"Grants the token role to an address. Requirements: - the caller should have the token role.\"},\"hasCollectionRole(uint8,address)\":{\"details\":\"Returns `True` if a certain address has the collection role.\"},\"hasTokenRole(uint256,uint8,address)\":{\"details\":\"Returns `True` if a certain address has the token role.\"},\"increaseAccessPointScore(string)\":{\"details\":\"Increases the score of a AccessPoint registry.\"},\"initialize(string,string,uint256[])\":{\"details\":\"Initializes the contract by setting a `name` and a `symbol` to the token collection.\"},\"isAccessPointNameVerified(string)\":{\"details\":\"A view function to check if a AccessPoint is verified.\"},\"isApprovedForAll(address,address)\":{\"details\":\"See {IERC721-isApprovedForAll}.\"},\"isPausable()\":{\"details\":\"Returns true if the contract is pausable, and false otherwise.\"},\"isPaused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"mint(address,string,string,string,string,string,string,string,uint24)\":{\"details\":\"Mints a token and returns a tokenId. If the `tokenId` has not been minted before, and the `to` address is not zero, emits a {Transfer} event. Requirements: - the caller must have ``collectionOwner``'s admin role. - billing for the minting may be applied. - the contract must be not paused.\"},\"mint(address,string,string,string,string,string,string,string,uint24,bool)\":{\"details\":\"Mints with access auto approval setting\"},\"name()\":{\"details\":\"See {IERC721Metadata-name}.\"},\"ownerOf(uint256)\":{\"details\":\"See {IERC721-ownerOf}.\"},\"pause()\":{\"details\":\"Sets the contract to paused state. Requirements: - the sender must have the `controller` role. - the contract must be pausable. - the contract must be not paused.\"},\"removeAccessPoint(string)\":{\"details\":\"Remove an AccessPoint registry for an app token. It will also remove the AP from the app token APs list. May emit a {RemoveAccessPoint} event. Requirements: - the AP must exist. - must be called by the AP owner. - the contract must be not paused.\"},\"revokeCollectionRole(uint8,address)\":{\"details\":\"Revokes the collection role of an address. Requirements: - the caller should have the collection role.\"},\"revokeTokenRole(uint256,uint8,address)\":{\"details\":\"Revokes the token role of an address. Requirements: - the caller should have the token role.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"See {IERC721-safeTransferFrom}.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"See {IERC721-safeTransferFrom}.\"},\"setAccessPointAutoApproval(uint256,bool)\":{\"details\":\"Updates the `accessPointAutoApproval` settings on minted `tokenId`. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setAccessPointContentVerify(string,bool)\":{\"details\":\"Set the content verification of a AccessPoint registry. May emit a {ChangeAccessPointContentVerify} event. Requirements: - the AP must exist. - the sender must have the token controller role.\"},\"setAccessPointNameVerify(string,bool)\":{\"details\":\"Set the name verification of a AccessPoint registry. May emit a {ChangeAccessPointNameVerify} event. Requirements: - the AP must exist. - the sender must have the token controller role.\"},\"setApprovalForAccessPoint(uint256,string,bool)\":{\"details\":\"Set approval settings for an access point. It will add the access point to the token's AP list, if `approved` is true. May emit a {ChangeAccessPointApprovalStatus} event. Requirements: - the tokenId must exist and be the same as the tokenId that is set for the AP. - the AP must exist. - must be called by a token controller.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"See {IERC721-setApprovalForAll}.\"},\"setBilling(uint8,uint256)\":{\"details\":\"Sets the billing value for a given key. May emit a {BillingChanged} event. Requirements: - the sender must have the `collectionOwner` role.\"},\"setPausable(bool)\":{\"details\":\"Sets the contract to pausable state. Requirements: - the sender must have the `owner` role. - the contract must be in the oposite pausable state.\"},\"setTokenBuild(uint256,string,string)\":{\"details\":\"Adds a new build to a minted `tokenId`'s builds mapping. May emit a {NewBuild} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenColor(uint256,uint24)\":{\"details\":\"Updates the `color` metadata field of a minted `tokenId`. May emit a {NewTokenColor} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenDescription(uint256,string)\":{\"details\":\"Updates the `description` metadata field of a minted `tokenId`. May emit a {NewTokenDescription} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenENS(uint256,string)\":{\"details\":\"Updates the `ENS` metadata field of a minted `tokenId`. May emit a {NewTokenENS} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenExternalURL(uint256,string)\":{\"details\":\"Updates the `externalURL` metadata field of a minted `tokenId`. May emit a {NewTokenExternalURL} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenLogo(uint256,string)\":{\"details\":\"Updates the `logo` metadata field of a minted `tokenId`. May emit a {NewTokenLogo} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenLogoAndColor(uint256,string,uint24)\":{\"details\":\"Updates the `logo` and `color` metadata fields of a minted `tokenId`. May emit a {NewTokenLogo} and a {NewTokenColor} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenName(uint256,string)\":{\"details\":\"Updates the `name` metadata field of a minted `tokenId`. May emit a {NewTokenName} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"symbol()\":{\"details\":\"See {IERC721Metadata-symbol}.\"},\"tokenURI(uint256)\":{\"details\":\"Returns the token metadata associated with the `tokenId`. Returns a based64 encoded string value of the URI. Requirements: - the tokenId must be minted and valid.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC721-transferFrom}.\"},\"unpause()\":{\"details\":\"Sets the contract to unpaused state. Requirements: - the sender must have the `controller` role. - the contract must be paused.\"},\"withdraw()\":{\"details\":\"Withdraws all the funds from contract. May emmit a {Withdrawn} event. Requirements: - the sender must have the `collectionOwner` role.\"}},\"version\":1},\"userdoc\":{\"events\":{\"MetadataUpdate(uint256,string,string,address)\":{\"notice\":\"Event emitted when a token's metadata is updated.\"}},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/FleekERC721.sol\":\"FleekERC721\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8a313cf42389440e2706837c91370323b85971c06afd6d056d21e2bc86459618\",\"dweb:/ipfs/QmT8XUrUvQ9aZaPKrqgRU2JVGWnaxBcUYJA7Q7K5KcLBSZ\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol\":{\"keccak256\":\"0x2a6a0b9fd2d316dcb4141159a9d13be92654066d6c0ae92757ed908ecdfecff0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c05d9be7ee043009eb9f2089b452efc0961345531fc63354a249d7337c69f3bb\",\"dweb:/ipfs/QmTXhzgaYrh6og76BP85i6exNFAv5NYw64uVWyworNogyG\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol\":{\"keccak256\":\"0xbb2ed8106d94aeae6858e2551a1e7174df73994b77b13ebd120ccaaef80155f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8bc3c6a456dba727d8dd9fd33420febede490abb49a07469f61d2a3ace66a95a\",\"dweb:/ipfs/QmVAWtEVj7K5AbvgJa9Dz22KiDq9eoptCjnVZqsTMtKXyd\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol\":{\"keccak256\":\"0x2c0b89cef83f353c6f9488c013d8a5968587ffdd6dfc26aad53774214b97e229\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4a68e662c2a82412308b1feb24f3d61a44b3b8772f44cbd440446237313c3195\",\"dweb:/ipfs/QmfBuWUE2TQef9hghDzzuVkDskw3UGAyPgLmPifTNV7K6g\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol\":{\"keccak256\":\"0x95a471796eb5f030fdc438660bebec121ad5d063763e64d92376ffb4b5ce8b70\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4ffbd627e6958983d288801acdedbf3491ee0ebf1a430338bce47c96481ce9e3\",\"dweb:/ipfs/QmUM1vpmNgBV34sYf946SthDJNGhwwqjoRggmj4TUUQmdB\"]},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://72460c66cd1c3b1c11b863e0d8df0a1c56f37743019e468dc312c754f43e3b06\",\"dweb:/ipfs/QmPExYKiNb9PUsgktQBupPaM33kzDHxaYoVeJdLhv8s879\"]},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d6520943ea55fdf5f0bafb39ed909f64de17051bc954ff3e88c9e5621412c79c\",\"dweb:/ipfs/QmWZ4rAKTQbNG2HxGs46AcTXShsVytKeLs7CUCdCSv5N7a\"]},\"@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol\":{\"keccak256\":\"0x6b9a5d35b744b25529a2856a8093e7c03fb35a34b1c4fb5499e560f8ade140da\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://187b5c3a1c9e77678732a2cc5284237f9cfca6bc28ee8bc0a0f4f951d7b3a2f8\",\"dweb:/ipfs/Qmb2KFr7WuQu7btdCiftQG64vTzrG4UyzVmo53EYHcnHYA\"]},\"@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol\":{\"keccak256\":\"0x9a3b990bd56d139df3e454a9edf1c64668530b5a77fc32eb063bc206f958274a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0895399d170daab2d69b4c43a0202e5a07f2e67a93b26e3354dcbedb062232f7\",\"dweb:/ipfs/QmUM1VH3XDk559Dsgh4QPvupr3YVKjz87HrSyYzzVFZbxw\"]},\"@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol\":{\"keccak256\":\"0xc6cef87559d0aeffdf0a99803de655938a7779ec0a3cd5d4383483ad85565a09\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://92ad7e572cf44e6b4b37631b44b62f9eb9fb1cf14d9ce51c1504d5dc7ccaf758\",\"dweb:/ipfs/QmcnbqX85tsWnUXPmtuPLE4SczME2sJaTfmqEFkuAJvWhy\"]},\"@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol\":{\"keccak256\":\"0xc1bd5b53319c68f84e3becd75694d941e8f4be94049903232cd8bc7c535aaa5a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://056027a78e6f4b78a39be530983551651ee5a052e786ca2c1c6a3bb1222b03b4\",\"dweb:/ipfs/QmXRUpywAqNwAfXS89vrtiE2THRM9dX9pQ4QxAkV1Wx9kt\"]},\"@openzeppelin/contracts/token/ERC721/IERC721.sol\":{\"keccak256\":\"0xab28a56179c1db258c9bf5235b382698cb650debecb51b23d12be9e241374b68\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://daae589a9d6fa7e55f99f86c0a16796ca490f243fb3693632c3711c0646c1d56\",\"dweb:/ipfs/QmR3zpd7wNw3rcUdekwiv6FYHJqksuTCXLVioTxu6Fbxk3\"]},\"@openzeppelin/contracts/utils/Base64.sol\":{\"keccak256\":\"0x5f3461639fe20794cfb4db4a6d8477388a15b2e70a018043084b7c4bedfa8136\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://77e5309e2cc4cdc3395214edb0ff43ff5a5f7373f5a425383e540f6fab530f96\",\"dweb:/ipfs/QmTV8DZ9knJDa3b5NPBFQqjvTzodyZVjRUg5mx5A99JPLJ\"]},\"@openzeppelin/contracts/utils/Strings.sol\":{\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8c969013129ba9e651a20735ef659fef6d8a1139ea3607bd4b26ddea2d645634\",\"dweb:/ipfs/QmVhVa6LGuzAcB8qgDtVHRkucn4ihj5UZr8xBLcJkP6ucb\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://33bbf48cc069be677705037ba7520c22b1b622c23b33e1a71495f2d36549d40b\",\"dweb:/ipfs/Qmct36zWXv3j7LZB83uwbg7TXwnZSN1fqHNDZ93GG98bGz\"]},\"contracts/FleekAccessControl.sol\":{\"keccak256\":\"0xdd0352b2e9e1a7393cb85a85efb7135cc5c0d5365ee156ca78eda2c82113b6f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb62245b17047d2261afb923ffb7592cc54c78cad599828deb3342e4e6de6c99\",\"dweb:/ipfs/QmRfsz1x2dh4fx78KizNXLMjfisgvzGkizbpAasqzZvggr\"]},\"contracts/FleekAccessPoints.sol\":{\"keccak256\":\"0xa74f4f1af3f7100dde68c4824784a93927191c72f00416f96dded39b36cd43cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6aee8dc6e13e77cec72fbfadee051aad02ab25848646cda7f5a57a89126ea729\",\"dweb:/ipfs/QmWk9raFrRkASBmmZ3Ng9a5HyHYUbjfxEJKhdqwfR2WmL9\"]},\"contracts/FleekBilling.sol\":{\"keccak256\":\"0x6fed8b7faba37011bd15b0bc395ca40e24a85499dec167de6942acabc5407d63\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a1f71b1173e8cd21e14e44e97a1add07d1f08115aa2a4053e40aacfbbc270a19\",\"dweb:/ipfs/QmSej6eRfhhL84SMMFrPJWesTUhMRc4HSTY85b2zAKzzhs\"]},\"contracts/FleekERC721.sol\":{\"keccak256\":\"0xf756cce416b825a30cdb8372c4572879adcb67424be2959c846aaade72d040f7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6be1a5b0e6ab69adda6463eaf8e3c7dafa396acc4a9430a77607041537c4c7b7\",\"dweb:/ipfs/QmaVFpXHLUSt5ExvHkckUeTtxbwgTc4yKBExc6sJDpNu5b\"]},\"contracts/FleekPausable.sol\":{\"keccak256\":\"0x4d172714ea6231b283f96cb8e355cc9f5825e01039aa5a521e7a29bcb3ccd1cb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3f099c1af04b71bf43bb34fe8413dffb51a8962f91fd99d61693160c3272bd58\",\"dweb:/ipfs/QmWQe9XyVeD955es4fgbHJuSDNZuqsdTCSDMrfJvioZCdj\"]},\"contracts/IERCX.sol\":{\"keccak256\":\"0x3f874b897fb1cf75ed2c17c531a6cf3ea539cddc28818030a8c27017efb602e3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8db701aa21782b005bb46b6ac57cc3255b47ca86a4666a65b3b1c90bd0fb18f3\",\"dweb:/ipfs/QmSM2qDZVWYCAruiG16qiWwx8ZUSWmxMmi8A3WqRNL96vi\"]},\"contracts/util/FleekSVG.sol\":{\"keccak256\":\"0x9d52d0defd643999776563c3ac36f084ae5a04a22c76ec316a0aadf6666c3c9b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://87bc5cca5451b7b8f3986dec26087857fe0f09505116536efad370172fe731a3\",\"dweb:/ipfs/QmZmDxPG8BUUjrVD92T2dktcuFQBxvHgMEnWx5aPBcSfrA\"]},\"contracts/util/FleekStrings.sol\":{\"keccak256\":\"0x8e33068360a9dae2a7fc41f614ce463448a1ef8a9c01605408bb6df8ed456486\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4b7392c591ef6cd1aa8fb018871717c204eb533bb61392f047a48e250b961c42\",\"dweb:/ipfs/Qmc3FAfBPj36egS9xKxsBYMeWMgAYNKtDAyw1eGbdZoZGN\"]}},\"version\":1}", - "storageLayout": { - "storage": [ + "buildId": "51265c9b241f9c7af77f823edadaae04", + "timestamp": "6/16/2023, 12:21:27 PM", + "address": "0x40208b6aFfCc39CD42A25EC47B410Cfe117837D6", + "transactionHash": "0xbf0358ec3a4b41a355115907565abcb8b453dabc0bc21cf61fde3ea2ac3bfa06", + "gasPrice": 204, + "abi": [ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AccessPointAlreadyExists", + "type": "error" + }, + { + "inputs": [], + "name": "AccessPointCreationStatusAlreadySet", + "type": "error" + }, + { + "inputs": [], + "name": "AccessPointNotExistent", + "type": "error" + }, + { + "inputs": [], + "name": "AccessPointScoreCannotBeLower", + "type": "error" + }, + { + "inputs": [], + "name": "ContractIsNotPausable", + "type": "error" + }, + { + "inputs": [], + "name": "ContractIsNotPaused", + "type": "error" + }, + { + "inputs": [], + "name": "ContractIsPaused", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidTokenIdForAccessPoint", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeAccessPointOwner", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeENSOwner", + "type": "error" + }, + { + "inputs": [ { - "astId": 6, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_initialized", - "offset": 0, - "slot": "0", - "type": "t_uint8" - }, - { - "astId": 9, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_initializing", - "offset": 1, - "slot": "0", - "type": "t_bool" - }, - { - "astId": 1624, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "__gap", - "offset": 0, - "slot": "1", - "type": "t_array(t_uint256)50_storage" - }, - { - "astId": 1843, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "__gap", - "offset": 0, - "slot": "51", - "type": "t_array(t_uint256)50_storage" - }, - { - "astId": 197, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_name", - "offset": 0, - "slot": "101", - "type": "t_string_storage" - }, - { - "astId": 199, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_symbol", - "offset": 0, - "slot": "102", - "type": "t_string_storage" - }, - { - "astId": 203, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_owners", - "offset": 0, - "slot": "103", - "type": "t_mapping(t_uint256,t_address)" - }, - { - "astId": 207, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_balances", - "offset": 0, - "slot": "104", - "type": "t_mapping(t_address,t_uint256)" - }, - { - "astId": 211, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_tokenApprovals", - "offset": 0, - "slot": "105", - "type": "t_mapping(t_uint256,t_address)" - }, - { - "astId": 217, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_operatorApprovals", - "offset": 0, - "slot": "106", - "type": "t_mapping(t_address,t_mapping(t_address,t_bool))" - }, - { - "astId": 1137, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "__gap", - "offset": 0, - "slot": "107", - "type": "t_array(t_uint256)44_storage" - }, - { - "astId": 3999, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_collectionRolesCounter", - "offset": 0, - "slot": "151", - "type": "t_mapping(t_enum(CollectionRoles)3958,t_uint256)" - }, - { - "astId": 4007, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_collectionRoles", - "offset": 0, - "slot": "152", - "type": "t_mapping(t_enum(CollectionRoles)3958,t_mapping(t_address,t_bool))" - }, - { - "astId": 4012, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_tokenRolesVersion", - "offset": 0, - "slot": "153", - "type": "t_mapping(t_uint256,t_uint256)" - }, - { - "astId": 4024, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_tokenRoles", - "offset": 0, - "slot": "154", - "type": "t_mapping(t_uint256,t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)3960,t_mapping(t_address,t_bool))))" - }, - { - "astId": 4357, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "__gap", - "offset": 0, - "slot": "155", - "type": "t_array(t_uint256)49_storage" - }, - { - "astId": 6231, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_paused", - "offset": 0, - "slot": "204", - "type": "t_bool" - }, - { - "astId": 6233, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_canPause", - "offset": 1, - "slot": "204", - "type": "t_bool" - }, - { - "astId": 6384, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "__gap", - "offset": 0, - "slot": "205", - "type": "t_array(t_uint256)49_storage" - }, - { - "astId": 4946, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_billings", - "offset": 0, - "slot": "254", - "type": "t_mapping(t_enum(Billing)4925,t_uint256)" - }, - { - "astId": 5074, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "__gap", - "offset": 0, - "slot": "255", - "type": "t_array(t_uint256)49_storage" - }, - { - "astId": 4462, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_accessPoints", - "offset": 0, - "slot": "304", - "type": "t_mapping(t_string_memory_ptr,t_struct(AccessPoint)4457_storage)" - }, - { - "astId": 4466, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_autoApproval", - "offset": 0, - "slot": "305", - "type": "t_mapping(t_uint256,t_bool)" - }, - { - "astId": 4912, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "__gap", - "offset": 0, - "slot": "306", - "type": "t_array(t_uint256)49_storage" - }, - { - "astId": 5145, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_appIds", - "offset": 0, - "slot": "355", - "type": "t_uint256" - }, - { - "astId": 5150, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "_apps", - "offset": 0, - "slot": "356", - "type": "t_mapping(t_uint256,t_struct(Token)6457_storage)" + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" } ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_uint256)44_storage": { - "base": "t_uint256", - "encoding": "inplace", - "label": "uint256[44]", - "numberOfBytes": "1408" - }, - "t_array(t_uint256)49_storage": { - "base": "t_uint256", - "encoding": "inplace", - "label": "uint256[49]", - "numberOfBytes": "1568" - }, - "t_array(t_uint256)50_storage": { - "base": "t_uint256", - "encoding": "inplace", - "label": "uint256[50]", - "numberOfBytes": "1600" - }, - "t_bool": { - "encoding": "inplace", - "label": "bool", - "numberOfBytes": "1" - }, - "t_enum(AccessPointCreationStatus)4443": { - "encoding": "inplace", - "label": "enum FleekAccessPoints.AccessPointCreationStatus", - "numberOfBytes": "1" - }, - "t_enum(Billing)4925": { - "encoding": "inplace", - "label": "enum FleekBilling.Billing", - "numberOfBytes": "1" - }, - "t_enum(CollectionRoles)3958": { - "encoding": "inplace", - "label": "enum FleekAccessControl.CollectionRoles", - "numberOfBytes": "1" - }, - "t_enum(TokenRoles)3960": { - "encoding": "inplace", - "label": "enum FleekAccessControl.TokenRoles", - "numberOfBytes": "1" - }, - "t_mapping(t_address,t_bool)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_address,t_mapping(t_address,t_bool))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(address => bool))", - "numberOfBytes": "32", - "value": "t_mapping(t_address,t_bool)" - }, - "t_mapping(t_address,t_uint256)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_enum(Billing)4925,t_uint256)": { - "encoding": "mapping", - "key": "t_enum(Billing)4925", - "label": "mapping(enum FleekBilling.Billing => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_enum(CollectionRoles)3958,t_mapping(t_address,t_bool))": { - "encoding": "mapping", - "key": "t_enum(CollectionRoles)3958", - "label": "mapping(enum FleekAccessControl.CollectionRoles => mapping(address => bool))", - "numberOfBytes": "32", - "value": "t_mapping(t_address,t_bool)" - }, - "t_mapping(t_enum(CollectionRoles)3958,t_uint256)": { - "encoding": "mapping", - "key": "t_enum(CollectionRoles)3958", - "label": "mapping(enum FleekAccessControl.CollectionRoles => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_enum(TokenRoles)3960,t_mapping(t_address,t_bool))": { - "encoding": "mapping", - "key": "t_enum(TokenRoles)3960", - "label": "mapping(enum FleekAccessControl.TokenRoles => mapping(address => bool))", - "numberOfBytes": "32", - "value": "t_mapping(t_address,t_bool)" - }, - "t_mapping(t_string_memory_ptr,t_struct(AccessPoint)4457_storage)": { - "encoding": "mapping", - "key": "t_string_memory_ptr", - "label": "mapping(string => struct FleekAccessPoints.AccessPoint)", - "numberOfBytes": "32", - "value": "t_struct(AccessPoint)4457_storage" - }, - "t_mapping(t_uint256,t_address)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => address)", - "numberOfBytes": "32", - "value": "t_address" - }, - "t_mapping(t_uint256,t_bool)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)3960,t_mapping(t_address,t_bool)))": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => mapping(enum FleekAccessControl.TokenRoles => mapping(address => bool)))", - "numberOfBytes": "32", - "value": "t_mapping(t_enum(TokenRoles)3960,t_mapping(t_address,t_bool))" - }, - "t_mapping(t_uint256,t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)3960,t_mapping(t_address,t_bool))))": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => mapping(uint256 => mapping(enum FleekAccessControl.TokenRoles => mapping(address => bool))))", - "numberOfBytes": "32", - "value": "t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)3960,t_mapping(t_address,t_bool)))" - }, - "t_mapping(t_uint256,t_struct(Build)6437_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct IERCX.Build)", - "numberOfBytes": "32", - "value": "t_struct(Build)6437_storage" - }, - "t_mapping(t_uint256,t_struct(Token)6457_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct IERCX.Token)", - "numberOfBytes": "32", - "value": "t_struct(Token)6457_storage" - }, - "t_mapping(t_uint256,t_uint256)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_string_memory_ptr": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(AccessPoint)4457_storage": { - "encoding": "inplace", - "label": "struct FleekAccessPoints.AccessPoint", - "members": [ - { - "astId": 4445, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "tokenId", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 4447, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "score", - "offset": 0, - "slot": "1", - "type": "t_uint256" - }, - { - "astId": 4449, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "contentVerified", - "offset": 0, - "slot": "2", - "type": "t_bool" - }, - { - "astId": 4451, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "nameVerified", - "offset": 1, - "slot": "2", - "type": "t_bool" - }, - { - "astId": 4453, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "owner", - "offset": 2, - "slot": "2", - "type": "t_address" - }, - { - "astId": 4456, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "status", - "offset": 22, - "slot": "2", - "type": "t_enum(AccessPointCreationStatus)4443" - } - ], - "numberOfBytes": "96" - }, - "t_struct(Build)6437_storage": { - "encoding": "inplace", - "label": "struct IERCX.Build", - "members": [ - { - "astId": 6434, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "commitHash", - "offset": 0, - "slot": "0", - "type": "t_string_storage" - }, - { - "astId": 6436, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "gitRepository", - "offset": 0, - "slot": "1", - "type": "t_string_storage" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Token)6457_storage": { - "encoding": "inplace", - "label": "struct IERCX.Token", - "members": [ - { - "astId": 6439, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "name", - "offset": 0, - "slot": "0", - "type": "t_string_storage" - }, - { - "astId": 6441, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "description", - "offset": 0, - "slot": "1", - "type": "t_string_storage" - }, - { - "astId": 6443, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "externalURL", - "offset": 0, - "slot": "2", - "type": "t_string_storage" - }, - { - "astId": 6445, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "ENS", - "offset": 0, - "slot": "3", - "type": "t_string_storage" - }, - { - "astId": 6447, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "logo", - "offset": 0, - "slot": "4", - "type": "t_string_storage" - }, - { - "astId": 6449, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "color", - "offset": 0, - "slot": "5", - "type": "t_uint24" - }, - { - "astId": 6451, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "currentBuild", - "offset": 0, - "slot": "6", - "type": "t_uint256" - }, - { - "astId": 6456, - "contract": "contracts/FleekERC721.sol:FleekERC721", - "label": "builds", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_uint256,t_struct(Build)6437_storage)" - } - ], - "numberOfBytes": "256" - }, - "t_uint24": { - "encoding": "inplace", - "label": "uint24", - "numberOfBytes": "3" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint8": { - "encoding": "inplace", - "label": "uint8", - "numberOfBytes": "1" + "name": "MustBeTokenOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" } + ], + "name": "MustBeTokenVerifier", + "type": "error" + }, + { + "inputs": [], + "name": "MustHaveAtLeastOneOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "role", + "type": "uint8" + } + ], + "name": "MustHaveCollectionRole", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint8", + "name": "role", + "type": "uint8" + } + ], + "name": "MustHaveTokenRole", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "state", + "type": "bool" + } + ], + "name": "PausableIsSetTo", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "requiredValue", + "type": "uint256" + } + ], + "name": "RequiredPayment", + "type": "error" + }, + { + "inputs": [], + "name": "RoleAlreadySet", + "type": "error" + }, + { + "inputs": [], + "name": "ThereIsNoTokenMinted", + "type": "error" + }, + { + "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": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "enum FleekBilling.Billing", + "name": "key", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "price", + "type": "uint256" + } + ], + "name": "BillingChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bool", + "name": "verified", + "type": "bool" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "ChangeAccessPointContentVerify", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "enum FleekAccessPoints.AccessPointCreationStatus", + "name": "status", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "ChangeAccessPointCreationStatus", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bool", + "name": "verified", + "type": "bool" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "ChangeAccessPointNameVerify", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "score", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "ChangeAccessPointScore", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "enum FleekAccessControl.CollectionRoles", + "name": "role", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "address", + "name": "toAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "status", + "type": "bool" + }, + { + "indexed": false, + "internalType": "address", + "name": "byAddress", + "type": "address" + } + ], + "name": "CollectionRoleChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "address", + "name": "value", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "MetadataUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "value", + "type": "string" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "MetadataUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint24", + "name": "value", + "type": "uint24" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "MetadataUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "string[4]", + "name": "value", + "type": "string[4]" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "MetadataUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "bool", + "name": "value", + "type": "bool" + }, + { + "indexed": true, + "internalType": "address", + "name": "triggeredBy", + "type": "address" + } + ], + "name": "MetadataUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "NewAccessPoint", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "externalURL", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "ENS", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "commitHash", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "gitRepository", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "ipfsHash", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "logo", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint24", + "name": "color", + "type": "uint24" + }, + { + "indexed": false, + "internalType": "bool", + "name": "accessPointAutoApproval", + "type": "bool" + }, + { + "indexed": true, + "internalType": "address", + "name": "minter", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "verifier", + "type": "address" + } + ], + "name": "NewMint", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bool", + "name": "isPausable", + "type": "bool" + }, + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "PausableStatusChange", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bool", + "name": "isPaused", + "type": "bool" + }, + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "PauseStatusChange", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "RemoveAccessPoint", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "enum FleekAccessControl.TokenRoles", + "name": "role", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "address", + "name": "toAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "status", + "type": "bool" + }, + { + "indexed": false, + "internalType": "address", + "name": "byAddress", + "type": "address" + } + ], + "name": "TokenRoleChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "byAddress", + "type": "address" + } + ], + "name": "TokenRolesCleared", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "byAddress", + "type": "address" + } + ], + "name": "Withdrawn", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "addAccessPoint", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "burn", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "decreaseAccessPointScore", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "getAccessPointJSON", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getAppData", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum FleekBilling.Billing", + "name": "key", + "type": "uint8" + } + ], + "name": "getBilling", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getLastTokenId", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getToken", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "uint24", + "name": "", + "type": "uint24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getTokenVerifier", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum FleekAccessControl.CollectionRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantCollectionRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "enum FleekAccessControl.TokenRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantTokenRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum FleekAccessControl.CollectionRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasCollectionRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "enum FleekAccessControl.TokenRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasTokenRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "increaseAccessPointScore", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_name", + "type": "string" + }, + { + "internalType": "string", + "name": "_symbol", + "type": "string" + }, + { + "internalType": "uint256[]", + "name": "initialBillings", + "type": "uint256[]" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "isAccessPointNameVerified", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "isPausable", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "isPaused", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "isTokenVerified", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "externalURL", + "type": "string" + }, + { + "internalType": "string", + "name": "ens", + "type": "string" + }, + { + "internalType": "string", + "name": "commitHash", + "type": "string" + }, + { + "internalType": "string", + "name": "gitRepository", + "type": "string" + }, + { + "internalType": "string", + "name": "ipfsHash", + "type": "string" + }, + { + "internalType": "string", + "name": "logo", + "type": "string" + }, + { + "internalType": "uint24", + "name": "color", + "type": "uint24" + }, + { + "internalType": "bool", + "name": "accessPointAutoApproval", + "type": "bool" + }, + { + "internalType": "address", + "name": "verifier", + "type": "address" + } + ], + "name": "mint", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + } + ], + "name": "removeAccessPoint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum FleekAccessControl.CollectionRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeCollectionRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "enum FleekAccessControl.TokenRoles", + "name": "role", + "type": "uint8" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeTokenRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "_apAutoApproval", + "type": "bool" + } + ], + "name": "setAccessPointAutoApproval", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "internalType": "bool", + "name": "verified", + "type": "bool" + } + ], + "name": "setAccessPointContentVerify", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "internalType": "bool", + "name": "verified", + "type": "bool" + } + ], + "name": "setAccessPointNameVerify", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "apName", + "type": "string" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAccessPoint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum FleekBilling.Billing", + "name": "key", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "setBilling", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "pausable", + "type": "bool" + } + ], + "name": "setPausable", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_commitHash", + "type": "string" + }, + { + "internalType": "string", + "name": "_gitRepository", + "type": "string" + }, + { + "internalType": "string", + "name": "_ipfsHash", + "type": "string" + }, + { + "internalType": "string", + "name": "_domain", + "type": "string" + } + ], + "name": "setTokenBuild", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint24", + "name": "_tokenColor", + "type": "uint24" + } + ], + "name": "setTokenColor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenDescription", + "type": "string" + } + ], + "name": "setTokenDescription", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenENS", + "type": "string" + } + ], + "name": "setTokenENS", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenExternalURL", + "type": "string" + } + ], + "name": "setTokenExternalURL", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenLogo", + "type": "string" + } + ], + "name": "setTokenLogo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenLogo", + "type": "string" + }, + { + "internalType": "uint24", + "name": "_tokenColor", + "type": "uint24" + } + ], + "name": "setTokenLogoAndColor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_tokenName", + "type": "string" + } + ], + "name": "setTokenName", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "verified", + "type": "bool" + } + ], + "name": "setTokenVerified", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "verifier", + "type": "address" + } + ], + "name": "setTokenVerifier", + "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": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "bytecode": "0x60808060405234620000975760cc549060ff8260081c16151560011462000080575061ff0019166101001760cc556040513381526001907f959581ef17eb8c8936ef9832169bc89dbcd1358765adca8ca81f28b416bb5efa90602090a26200006662000148565b620000706200009d565b604051615c429081620001c38239f35b632e15c5c160e21b81526001600482015260249150fd5b50600080fd5b60005460ff8160081c16620000f15760ff80821610620000ba5750565b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a1565b505060405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b60cc5460ff8116620001ae5760ff8160081c16156200019a5760019060ff19161760cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b5050604051635970d9f560e11b8152600490fd5b50506040516306d39fcd60e41b8152600490fdfe6040608081526004361015610015575b50600080fd5b600090813560e01c806301468deb1461090657806301ffc9a7146108ea57806302dba24d146108ce57806306fdde03146108b2578063081812fc14610896578063095ea7b31461087e5780630a212d2f1461086657806323b872dd1461084e578063246a908b1461083657806327dc5cec1461081a5780632d957aad14610802578063355c5561146107db5780633ccfd60b146107c45780633d01ff4d146107975780633e2332051461077f5780633f4ba83a1461076857806342842e0e1461075057806342966c681461073957806342e44bbf1461072157806349aa155e146107095780635aa6ab3b146106f15780636352211e146106d557806370a08231146106b957806372c299c414610684578063736d323a1461066d5780637469a03b1461065657806378278cca1461063e57806383c4c00d146106135780638456cb59146105fc5780638a2e25be146105e45780638c3c0a44146105cc57806394ec65c5146105b557806395d89b4114610599578063a09a160114610569578063a22cb46514610551578063a27d0b2714610539578063a397c83014610522578063a7ef6a9714610507578063aad045a2146104ef578063b187bd26146104c3578063b20b94f1146104ab578063b30437a014610498578063b42dbe3814610438578063b88d4fde1461041d578063b948a3c514610405578063ba4c458a146103ed578063c87b56dd146103c6578063cdb0e89e146103ae578063d7a75be114610392578063e4b50cb814610362578063e94472501461033e578063e985e9c5146102e6578063eb5fd26b146102ce578063f4fe5f0c1461029d5763f93151771461027f575061000f565b346102995761029661029036610be4565b90613741565b51f35b5080fd5b5034610299576102ca91506102b96102b436610a47565b6146b7565b905190151581529081906020820190565b0390f35b5034610299576102966102e03661120a565b90613e4b565b5034610299576102ca91506102b9610337610320610303366111f2565b6001600160a01b039091166000908152606a602052604090209091565b9060018060a01b0316600052602052604060002090565b5460ff1690565b5034610299576102ca91506102b961033761032061035b36610c4d565b9190611d21565b5034610299576102ca915061037e61037936610a47565b6134bd565b949795969390939291925197889788611182565b5034610299576102ca91506102b96103a936610c23565b611f77565b5034610299576102966103c036610be4565b906139de565b5034610299576102ca91506103e26103dd36610a47565b612ffa565b905191829182610a36565b5034610299576102966103ff366110c1565b9161211d565b50346102995761029661041736610be4565b90613cd2565b50346102995761029661042f36611067565b9291909161184a565b5034610299576102ca91506102b96103376104936103206104583661094d565b939091610484610472826000526099602052604060002090565b5491600052609a602052604060002090565b90600052602052604060002090565b611d5d565b506102966104a536610be4565b906146ef565b5034610299576102966104bd36610e87565b90614c34565b5034610299576102ca91506104d7366109ce565b60cc54905160ff909116151581529081906020820190565b50346102995761029661050136610ec2565b90614a8f565b50346102995761029661051936610fe4565b9392909261406b565b50346102995761029661053436610c23565b61208e565b50346102995761029661054b3661094d565b91614eb6565b50346102995761029661056336610fcc565b90611696565b5034610299576102ca915061057d366109ce565b60cc54905160089190911c60ff16151581529081906020820190565b5034610299576102ca91506105ad366109ce565b6103e2611499565b5034610299576102966105c736610c23565b611fbf565b5034610299576102966105de36610c4d565b90614fc5565b5034610299576102966105f636610f8c565b91614b38565b50346102995761060b366109ce565b61029661516f565b5034610299576102ca9150610627366109ce565b61062f613625565b90519081529081906020820190565b50346102995761029661065036610f59565b91613923565b50346102995761029661066836610c23565b6149ab565b50346102995761029661067f36610f3d565b615238565b5034610299576102ca91506106a061069b36610a47565b614500565b90516001600160a01b0390911681529081906020820190565b5034610299576102ca915061062f6106d036610f25565b61122d565b5034610299576102ca91506106a06106ec36610a47565b6112f3565b50346102995761029661070336610ee2565b91613f08565b50346102995761029661071b36610ec2565b9061453f565b50346102995761029661073336610e87565b90614d27565b50346102995761029661074b36610a47565b6141e8565b50346102995761029661076236610a94565b91611810565b503461029957610777366109ce565b6102966151db565b50346102995761029661079136610e6f565b906152ae565b5034610299576102ca91506107b36107ae36610a47565b61356c565b929593949190915195869586610e14565b5034610299576107d3366109ce565b6102966152c0565b506102ca915061062f6107ed36610cc4565b9b9a909a999199989298979397969496612913565b50346102995761029661081436610c4d565b90614dc7565b5034610299576102ca91506103e261083136610c23565b611dc1565b50346102995761029661084836610be4565b90613b54565b50346102995761029661086036610a94565b916117c2565b50346102995761029661087836610a78565b906143ef565b50346102995761029661089036610a59565b90611532565b5034610299576102ca91506106a06108ad36610a47565b611658565b5034610299576102ca91506108c6366109ce565b6103e26113e2565b5034610299576102ca915061062f6108e5366109b6565b612103565b5034610299576102ca91506102b961090136610994565b613652565b5034610299576102966109183661094d565b916150a6565b6001600160a01b038116141561000f57565b6004359061093d8261091e565b565b610164359061093d8261091e565b606090600319011261000f5760043590602435600181101561097957906044356109768161091e565b90565b505050600080fd5b6001600160e01b03198116141561000f57565b602090600319011261000f5760043561097681610981565b6002111561000f57565b602090600319011261000f57600435610976816109ac565b600090600319011261000f57565b918091926000905b8282106109fc5750116109f5575050565b6000910152565b915080602091830151818601520182916109e4565b90602091610a2a815180928185528580860191016109dc565b601f01601f1916010190565b906020610976928181520190610a11565b602090600319011261000f5760043590565b604090600319011261000f57600435610a718161091e565b9060243590565b604090600319011261000f57600435906024356109768161091e565b606090600319011261000f57600435610aac8161091e565b90602435610ab98161091e565b9060443590565b50634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b03821117610af257604052565b610afa610ac0565b604052565b90601f801991011681019081106001600160401b03821117610af257604052565b60405190608082018281106001600160401b03821117610af257604052565b6040519060c082018281106001600160401b03821117610af257604052565b6020906001600160401b038111610b7b575b601f01601f19160190565b610b83610ac0565b610b70565b929192610b9482610b5e565b91610ba26040519384610aff565b829481845281830111610bbf578281602093846000960137010152565b5050505050600080fd5b9080601f830112156109795781602061097693359101610b88565b906040600319830112610c1c5760043591602435906001600160401b038211610c135761097691600401610bc9565b50505050600080fd5b5050600080fd5b6020600319820112610c1c57600435906001600160401b0382116109795761097691600401610bc9565b604090600319011261000f57600435610c65816109ac565b906024356109768161091e565b9181601f84011215610979578235916001600160401b038311610c13576020838186019501011161097957565b610124359062ffffff8216821415610c1c57565b6101443590811515821415610c1c57565b90610180600319830112610c1c57610cda610930565b91602435906001600160401b03808311610bbf57610cfc826004948501610bc9565b93604435828111610e085783610d13918601610bc9565b93606435838111610dfb5784610d2a918301610bc9565b93608435848111610ded5781610d41918401610c72565b9490949360a435828111610ddd5783610d5b918601610bc9565b9360c435838111610dcc5784610d72918301610bc9565b9360e435848111610dba5781610d89918401610bc9565b9361010435908111610dba57610d9f9201610bc9565b90610da8610c9f565b90610db1610cb3565b9061097661093f565b50505050505050505050505050600080fd5b505050505050505050505050600080fd5b5050505050505050505050600080fd5b505050505050505050600080fd5b5050505050505050600080fd5b50505050505050600080fd5b93906109769593610e45610e6194610e37610e539460a08a5260a08a0190610a11565b9088820360208a0152610a11565b908682036040880152610a11565b908482036060860152610a11565b916080818403910152610a11565b604090600319011261000f57600435610a71816109ac565b6040600319820112610c1c57600435906001600160401b03821161097957610eb191600401610bc9565b906024358015158114156109795790565b604090600319011261000f57600435906024358015158114156109795790565b906060600319830112610c1c5760043591602435906001600160401b038211610c1357610f1191600401610bc9565b9060443562ffffff8116811415610c135790565b602090600319011261000f576004356109768161091e565b602090600319011261000f57600435801515811415610c1c5790565b906040600319830112610c1c5760043591602435906001600160401b038211610c1357610f8891600401610c72565b9091565b906060600319830112610c1c5760043591602435906001600160401b038211610c1357610fbb91600401610bc9565b90604435801515811415610c135790565b604090600319011261000f57600435610eb18161091e565b9060a0600319830112610c1c57600435916001600160401b0390602435828111610bbf578161101591600401610bc9565b9260443583811161105c578261102d91600401610bc9565b92606435818111610e08578361104591600401610bc9565b92608435918211610e085761097691600401610bc9565b505050505050600080fd5b906080600319830112610c1c576004356110808161091e565b9160243561108d8161091e565b9160443591606435906001600160401b03821161105c578060238301121561105c5781602461097693600401359101610b88565b906060600319830112610c1c576001600160401b0390600435828111610c1357836110ee91600401610bc9565b92602435838111610bbf578161110691600401610bc9565b926044359181831161105c578060238401121561105c578260040135918211611175575b8160051b6040519360209361114185840187610aff565b8552602484860192820101928311610dfb57602401905b828210611166575050505090565b81358152908301908301611158565b61117d610ac0565b61112a565b959062ffffff946111ca6111eb956111bc60c099966111ae6111d8969d9e9d60e08e8181520190610a11565b8c810360208e015290610a11565b908a820360408c0152610a11565b9088820360608a0152610a11565b91608087015285820360a0870152610a11565b9416910152565b604090600319011261000f57600435610c658161091e565b604090600319011261000f576004359060243562ffffff81168114156109795790565b6001600160a01b0316801561124d57600052606860205260406000205490565b505060405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608490fd5b156112ad57565b5060405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606490fd5b6000908152606760205260409020546001600160a01b03166109768115156112a6565b90600182811c92168015611348575b602083101461133057565b5050634e487b7160e01b600052602260045260246000fd5b91607f1691611325565b906000929180549161136383611316565b9182825260019384811690816000146113c55750600114611385575b50505050565b90919394506000526020928360002092846000945b8386106113b157505050500101903880808061137f565b80548587018301529401938590820161139a565b60ff1916602084015250506040019350389150819050808061137f565b60405190600082606554916113f683611316565b8083529260019081811690811561147c575060011461141d575b5061093d92500383610aff565b6065600090815291507f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c75b848310611461575061093d935050810160200138611410565b81935090816020925483858a01015201910190918592611448565b94505050505060ff1916602083015261093d826040810138611410565b60405190600082606654916114ad83611316565b8083529260019081811690811561147c57506001146114d3575061093d92500383610aff565b6066600090815291507f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e943545b848310611517575061093d935050810160200138611410565b81935090816020925483858a010152019101909185926114fe565b9061153c816112f3565b6001600160a01b0381811690841681146116055733149081156115d7575b50156115695761093d91611b34565b505060405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260849150fd5b6001600160a01b03166000908152606a6020526040902060ff91506115fd903390610320565b54163861155a565b5050505050608460405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152fd5b60008181526067602052604090205461167b906001600160a01b031615156112a6565b6000908152606960205260409020546001600160a01b031690565b6001600160a01b038116919033831461171757816116d66116e79233600052606a60205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405190151581527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3565b50505050606460405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b1561176657565b5060405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608490fd5b9061093d92916117da6117d584336118e6565b61175f565b6119b9565b60405190602082018281106001600160401b03821117611803575b60405260008252565b61180b610ac0565b6117fa565b909161093d9260405192602084018481106001600160401b0382111761183d575b6040526000845261184a565b611845610ac0565b611831565b9061186e93929161185e6117d584336118e6565b6118698383836119b9565b611c40565b1561187557565b5060405162461bcd60e51b81528061188f60048201611893565b0390fd5b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b6001600160a01b03806118f8846112f3565b16928183169284841494851561192e575b50508315611918575b50505090565b61192491929350611658565b1614388080611912565b6000908152606a602090815260408083206001600160a01b03949094168352929052205460ff1693503880611909565b1561196557565b5060405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b6119dd906119c6846112f3565b6001600160a01b038281169390918216841461195e565b8316928315611ade57611a5b826119f88784611ab596613696565b611a1a85611a14611a088a6112f3565b6001600160a01b031690565b1461195e565b611a41611a31886000526069602052604060002090565b80546001600160a01b0319169055565b6001600160a01b0316600090815260686020526040902090565b80546000190190556001600160a01b038116600090815260686020526040902060018154019055611a96856000526067602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4565b505050505050608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152fd5b600082815260696020526040902080546001600160a01b0319166001600160a01b0383161790556001600160a01b0380611b6d846112f3565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b60009081526067602052604090205461093d906001600160a01b031615156112a6565b90816020910312610c1c575161097681610981565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261097692910190610a11565b506040513d6000823e3d90fd5b3d15611c3b573d90611c2182610b5e565b91611c2f6040519384610aff565b82523d6000602084013e565b606090565b92909190823b15611cef57611c73926020926000604051809681958294630a85bd0160e11b9a8b85523360048601611bd2565b03926001600160a01b03165af160009181611ccf575b50611cc157505050611c99611c10565b80519081611cbc57505060405162461bcd60e51b81528061188f60048201611893565b602001fd5b6001600160e01b0319161490565b611ce8919250611cdf3d82610aff565b3d810190611bbd565b9038611c89565b50505050600190565b50634e487b7160e01b600052602160045260246000fd5b60021115611d1957565b61093d611cf8565b611d2a81611d0f565b6000526098602052604060002090565b611d4381611d0f565b6000526097602052604060002090565b60011115611d1957565b906001811015611d76575b600052602052604060002090565b611d7e611cf8565b611d68565b90611d96602092828151948592016109dc565b0190565b6020611db39181604051938285809451938492016109dc565b810161013081520301902090565b6001600160a01b0390816002611dd683611d9a565b015460101c1615611f6257611dea90611d9a565b908154611df6906157f6565b906001830154611e05906157f6565b92600201548060081c60ff16611e1a90615a92565b91611e2760ff8316615a92565b908260101c16611e36906159dd565b9160b01c60ff16611e4681614877565b611e4f906157f6565b604051607b60f81b60208201529586959194916021870169113a37b5b2b724b2111d60b11b8152600a01611e8291611d83565b611e8b906157e9565b671139b1b7b932911d60c11b8152600801611ea591611d83565b611eae906157e9565b6e113730b6b2ab32b934b334b2b2111d60891b8152600f01611ecf91611d83565b611ed8906157e9565b711131b7b73a32b73a2b32b934b334b2b2111d60711b8152601201611efc91611d83565b611f05906157e9565b681137bbb732b9111d1160b91b8152600901611f2091611d83565b61088b60f21b8152600201681139ba30ba3ab9911d60b91b8152600901611f4691611d83565b607d60f81b815260010103601f19810182526109769082610aff565b5050604051630d436c3560e21b815260049150fd5b6001600160a01b036002611f8a83611d9a565b015460101c1615611fab576002611fa260ff92611d9a565b015460081c1690565b5050604051630d436c3560e21b8152600490fd5b6001600160a01b036002611fd283611d9a565b015460101c1615611fab576001611fe882611d9a565b01611ff3815461205a565b9055611ffe81611d9a565b547f3ea1c0fcf71b86fca8f96ccac3cf26fba8983d3bbbe7bd720f1865d67fbaee4361203e600161202e85611d9a565b0154604051918291339683612072565b0390a3565b50634e487b7160e01b600052601160045260246000fd5b600190600019811461206a570190565b611d96612043565b929190612089602091604086526040860190610a11565b930152565b6001600160a01b0360026120a183611d9a565b015460101c1615611fab5760016120b782611d9a565b0154156120d45760016120c982611d9a565b01611ff381546120e8565b50506040516341f3125f60e11b8152600490fd5b80156120f6575b6000190190565b6120fe612043565b6120ef565b61210c81611d0f565b60005260fe60205260406000205490565b90916000549260ff8460081c16158094819561223f575b811561221f575b50156121bf576121619284612158600160ff196000541617600055565b6121a65761224d565b61216757565b61217761ff001960005416600055565b604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1565b6121ba61010061ff00196000541617600055565b61224d565b5050505050608460405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b303b15915081612231575b503861213b565b6001915060ff16143861222a565b600160ff8216109150612134565b92919061226a60ff60005460081c166122658161238f565b61238f565b83516001600160401b038111612382575b61228f8161228a606554611316565b612407565b602080601f83116001146122ec575090806122cc93926122d996976000926122e1575b50508160011b916000199060031b1c1916176065556124f8565b6122d46126cb565b612845565b61093d615327565b0151905038806122b2565b90601f1983169661231f60656000527f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c790565b926000905b89821061236a5750509183916001936122cc96956122d9999a10612351575b505050811b016065556124f8565b015160001960f88460031b161c19169055388080612343565b80600185968294968601518155019501930190612324565b61238a610ac0565b61227b565b1561239657565b5060405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b8181106123fb575050565b600081556001016123f0565b90601f8211612414575050565b61093d9160656000527f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c7906020601f840160051c8301931061245e575b601f0160051c01906123f0565b9091508190612451565b90601f8211612475575050565b61093d9160666000527f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e94354906020601f840160051c8301931061245e57601f0160051c01906123f0565b9190601f81116124cd57505050565b61093d926000526020600020906020601f840160051c8301931061245e57601f0160051c01906123f0565b9081516001600160401b0381116125e2575b61251e81612519606654611316565b612468565b602080601f831160011461255a575081929360009261254f575b50508160011b916000199060031b1c191617606655565b015190503880612538565b90601f1983169461258d60666000527f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e9435490565b926000905b8782106125ca5750508360019596106125b1575b505050811b01606655565b015160001960f88460031b161c191690553880806125a6565b80600185968294968601518155019501930190612592565b6125ea610ac0565b61250a565b91909182516001600160401b0381116126be575b612617816126118454611316565b846124be565b602080601f8311600114612653575081929394600092612648575b50508160011b916000199060031b1c1916179055565b015190503880612632565b90601f1983169561266985600052602060002090565b926000905b8882106126a65750508360019596971061268d575b505050811b019055565b015160001960f88460031b161c19169055388080612683565b8060018596829496860151815501950193019061266e565b6126c6610ac0565b612603565b60006126dd60ff825460081c1661238f565b808052609860209081526040808320336000908152908352819020549192909160ff16612811578080526098835281812033600090815260209190915260409020612730905b805460ff19166001179055565b808052609783528181206127448154612825565b905581516001815233602082018190527faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a949183908690604090a36001825260988152828220336000908152602091909152604090205460ff166127fc579181609760019485849552609881526127d2612723338686209060018060a01b0316600052602052604060002090565b85835252206127e18154612825565b9055516001815233602082018190529290806040810161203e565b5050516397b705ed60e01b8152600492509050fd5b50516397b705ed60e01b8152600492509050fd5b600190600119811161206a570190565b600290600219811161206a570190565b9061285760ff60005460081c1661238f565b60005b82518110156128a4578061287061289292611d0f565b8351811015612897575b61288d60208260051b86010151826128c0565b61205a565b61285a565b61289f6128a9565b61287a565b509050565b50634e487b7160e01b600052603260045260246000fd5b6040907f6819853ffee8927169953e7bdc42aaba347fb03ff918a45bfccaf88626d90096926128ee82611d0f565b8160005260fe60205280836000205582519161290981611d0f565b82526020820152a1565b9496919792989b999093959b612927612f74565b600160005260986020526129656129616103378d7fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa610320565b1590565b612aef578a938c9389612ae0575b610163549e8f9a6129848c8b612e45565b8d8d8d6101635461299490612825565b610163556129ad90600052610164602052604060002090565b906129b88c836125ef565b6129c590600183016125ef565b6129d282600283016125ef565b6129e0838e60038401612b1d565b6129ed87600483016125ef565b60058101805462ffffff191662ffffff8a1617905560006006820155612a11610b20565b918483528560208401528660408401526060830152600701612a3c9060008052602052604060002090565b90612a4691612bea565b6040519a8b9a600160a01b60019003169e339e612a639b8d612d2a565b037f11d53b6a608f8a1150f88cdb3e563af3830dd531f39be8e1cdaa8cc8b43d77b491a4612a9c83600052610165602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055612ace82600052610166602052604060002090565b805460ff191690556109769082612f50565b612aea8a8a615368565b612973565b505050505050505050505050505060405163070198dd60e51b81528061188f60048201906001602083019252565b9092916001600160401b038111612bdd575b612b3d816126118454611316565b6000601f8211600114612b765781929394600092612b6b5750508160011b916000199060031b1c1916179055565b013590503880612632565b601f19821694612b8b84600052602060002090565b91805b878110612bc5575083600195969710612bab57505050811b019055565b0135600019600384901b60f8161c19169055388080612683565b90926020600181928686013581550194019101612b8e565b612be5610ac0565b612b2f565b91909182519283516001600160401b038111612cfc575b612c1581612c0f8554611316565b856124be565b6020948590601f8311600114612c835761093d95968360609460039694612c5e94600092612c78575b50508160011b9160001990881b1c19161786555b820151600186016125ef565b612c6f6040820151600286016125ef565b015191016125ef565b015190503880612c3e565b90601f19831691612c9986600052602060002090565b9260005b818110612ce557508460039694612c5e9461093d9a9b9460609860019510612ccd575b505050811b018655612c52565b0151600019838a1b60f8161c19169055388080612cc0565b929389600181928786015181550195019301612c9d565b612d04610ac0565b612c01565b908060209392818452848401376000828201840152601f01601f1916010190565b9790612de897612da59b9e9d9b61093d9d98612d978c612dde9a6101409f999a612d89612dcf9c612d7b612dc19c612d6d612db39c610160808a52890190610a11565b908782036020890152610a11565b908582036040870152610a11565b926060818503910152612d09565b8c810360808e015290610a11565b908a820360a08c0152610a11565b9088820360c08a0152610a11565b9086820360e0880152610a11565b62ffffff909916610100850152565b1515610120830152565b6001600160a01b03909216910152565b15612dff57565b5060405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b6001600160a01b038116908115612f0857600083815260676020526040902054612ede9190612e80906001600160a01b031615155b15612df8565b612e88615349565b600084815260676020526040902054612eab906001600160a01b03161515612e7a565b6001600160a01b038116600090815260686020526040902060018154019055611a96846000526067602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef81604051a4565b50505050606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b9061093d9160005261013160205260406000209060ff801983541691151516179055565b6000805260fe6020527f32796e36004994222362c2f9423d5e208bb848170964890784a8d59ed40f50af5434811415612faa5750565b6024915060405190635f7e28df60e01b82526004820152fd5b600160005260fe6020527f457c8a48b4735f56b938837eb0a8a5f9c55f23c1a85767ce3b65c3e59d3d32b75434811415612faa5750565b60008181526067602052604090205461301d906001600160a01b031615156112a6565b613026816112f3565b90600090815260206101318152604060ff818420541692610166835260ff82822054169061016484528281209461309984519761306289610ad7565b601d89527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000878a01526001600160a01b03166159dd565b926003870160058801926130dd856130bc6130b7875462ffffff1690565b615ad8565b8b8a51938492839263891c235f60e01b845288600482019160048601615725565b038173__$ecf603b2c2aa531f37c90ec146d2a3e91a$__5af49586156134b0575b8096613486575b505061311090615a92565b9161311a90615a92565b90600789019160068a0154938361313c86809690600052602052604060002090565b946131509190600052602052604060002090565b6001019461315d906157f6565b955462ffffff1661316d90615ad8565b9689519b8c998c8b0161318890600190607b60f81b81520190565b67113730b6b2911d1160c11b81526008016131a3908361576d565b61088b60f21b81526002016e113232b9b1b934b83a34b7b7111d1160891b8152600f016131d3906001840161576d565b61088b60f21b8152600201681137bbb732b9111d1160b91b81526009016131f991611d83565b61088b60f21b81526002016f1132bc3a32b93730b62fbab936111d1160811b81526010016132299160020161576d565b61088b60f21b8152600201681134b6b0b3b2911d1160b91b815260090161324f91611d83565b61088b60f21b81526002017f226163636573735f706f696e745f6175746f5f617070726f76616c223a0000008152601d0161328991611d83565b613292906157e9565b6a113b32b934b334b2b2111d60a91b8152600b016132af91611d83565b6132b8906157e9565b6e2261747472696275746573223a205b60881b8152600f017f7b2274726169745f74797065223a2022454e53222c202276616c7565223a22008152601f016132ff9161576d565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a2022436f6d6d69742048617368222c20227681526630b63ab2911d1160c91b602082015260270161334a9161576d565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a20225265706f7369746f7279222c20227661815265363ab2911d1160d11b60208201526026016133949161576d565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a202256657273696f6e222c202276616c7565815262111d1160e91b60208201526023016133db91611d83565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a2022436f6c6f72222c202276616c7565223a8152601160f91b602082015260210161342091611d83565b61227d60f01b8152600201605d60f81b8152600101607d60f81b81526001010392601f199384810182526134549082610aff565b61345d906155ec565b9051938492830161346d91611d83565b61347691611d83565b0390810182526109769082610aff565b613110929650906134a8913d90823e61349f3d82610aff565b3d8101906156c7565b949038613105565b6134b8611c03565b6130fe565b6000818152606760205260409020546134e0906001600160a01b031615156112a6565b60005261016460205260409081600020600681015462ffffff600583015416938051613517816135108187611352565b0382610aff565b94815161352b816135108160018901611352565b9460046135688451613544816135108160028c01611352565b96613510865161355b816135108160038701611352565b9796518094819301611352565b9190565b60008181526067602052604090205461358f906001600160a01b031615156112a6565b600052610164602052604080600020906135b162ffffff600584015416615ad8565b90600683015460005260078301602052600281600020019361351061097683516135df81613510818a611352565b96600461360a60036135fa8a6135108a518094819301611352565b9861351088518094819301611352565b95945192838092611352565b600181106120f6576000190190565b61016354801561363e57600181106120f6576000190190565b50506040516327e4ec1b60e21b8152600490fd5b63ffffffff60e01b166380ac58cd60e01b8114908115613685575b8115613677575090565b6301ffc9a760e01b14919050565b635b5e139f60e01b8114915061366d565b9061369f615349565b6001600160a01b03918216151580806136df575b156136c45750505061093d906136ea565b6136cd57505050565b16156136d65750565b61093d906136ea565b5082821615156136b3565b80600052609960205260406000206001815481198111613734575b0190557f8c7eb22d1ba10f86d9249f2a8eb0e3e35b4f0b2f21f92dea9ec25a4d84b20fa06020604051338152a2565b61373c612043565b613705565b61374a816112f3565b6001600160a01b0316331415613886575b60008181526067602052604090205461377e906001600160a01b031615156112a6565b8060005260206101648152600260406000200190835180916001600160401b038211613879575b6137b9826137b38654611316565b866124be565b80601f831160011461380b5750600091613800575b508160011b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613894565b9050840151386137ce565b9150601f19831661382185600052602060002090565b926000905b8282106138615750509083600194939210613848575b5050811b0190556137e2565b86015160001960f88460031b161c19169055388061383c565b80600185968294968c01518155019501930190613826565b613881610ac0565b6137a5565b61388f816138c7565b61375b565b9060806109769260408152600b60408201526a195e1d195c9b985b15549360aa1b60608201528160208201520190610a11565b600081815260996020908152604080832054609a83528184209084528252808320838052825280832033845290915281205460ff1615613905575050565b604492506040519163158eff0360e21b835260048301526024820152fd5b9061203e600080516020615bdf83398151915291613940846112f3565b6001600160a01b03163314156139d0575b61395b8582615368565b60008481526067602052604090205461397e906001600160a01b031615156112a6565b6139a08582600361399a88600052610164602052604060002090565b01612b1d565b604051918291604083526003604084015262454e5360e81b60608401526080602084015233966080840191612d09565b6139d9846138c7565b613951565b6139e7816112f3565b6001600160a01b0316331415613b1a575b600081815260676020526040902054613a1b906001600160a01b031615156112a6565b8060005260206101648152604060002090835180916001600160401b038211613b0d575b613a4d826137b38654611316565b80601f8311600114613a9f5750600091613a94575b508160011b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613b28565b905084015138613a62565b9150601f198316613ab585600052602060002090565b926000905b828210613af55750509083600194939210613adc575b5050811b019055613a76565b86015160001960f88460031b161c191690553880613ad0565b80600185968294968c01518155019501930190613aba565b613b15610ac0565b613a3f565b613b23816138c7565b6139f8565b906080610976926040815260046040820152636e616d6560e01b60608201528160208201520190610a11565b613b5d816112f3565b6001600160a01b0316331415613c91575b600081815260676020526040902054613b91906001600160a01b031615156112a6565b8060005260206101648152600180604060002001918451906001600160401b038211613c84575b613bc6826137b38654611316565b80601f8311600114613c19575081928291600093613c0e575b501b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613c9f565b870151925038613bdf565b9082601f198116613c2f87600052602060002090565b936000905b87838310613c6a5750505010613c51575b5050811b019055613bf0565b86015160001960f88460031b161c191690553880613c45565b8b8601518755909501949384019386935090810190613c34565b613c8c610ac0565b613bb8565b613c9a816138c7565b613b6e565b9060806109769260408152600b60408201526a3232b9b1b934b83a34b7b760a91b60608201528160208201520190610a11565b613cdb816112f3565b6001600160a01b0316331415613e11575b600081815260676020526040902054613d0f906001600160a01b031615156112a6565b8060005260206101648152600460406000200190835180916001600160401b038211613e04575b613d44826137b38654611316565b80601f8311600114613d965750600091613d8b575b508160011b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613e1f565b905084015138613d59565b9150601f198316613dac85600052602060002090565b926000905b828210613dec5750509083600194939210613dd3575b5050811b019055613d6d565b86015160001960f88460031b161c191690553880613dc7565b80600185968294968c01518155019501930190613db1565b613e0c610ac0565b613d36565b613e1a816138c7565b613cec565b906080610976926040815260046040820152636c6f676f60e01b60608201528160208201520190610a11565b613e54816112f3565b6001600160a01b0316331415613efa575b600081815260676020526040902054613e88906001600160a01b031615156112a6565b600081815261016460205260409020600501805462ffffff191662ffffff841617905562ffffff6040519260408452600560408501526431b7b637b960d91b60608501521660208301527f7a3039988e102050cb4e0b6fe203e58afd9545e192ef2ca50df8d14ee2483e7e60803393a3565b613f03816138c7565b613e65565b92919092613f15816112f3565b6001600160a01b031633141561405d575b600081815260676020526040902054613f49906001600160a01b031615156112a6565b80600052602093610164855260046040600020018151956001600160401b038711614050575b613f7d876126118454611316565b80601f8811600114613fdf5750958061093d9697600091613fd4575b508160011b916000199060031b1c19161790555b81600080516020615bdf83398151915260405180613fcc339582613e1f565b0390a3613e4b565b905083015138613f99565b90601f198816613ff484600052602060002090565b926000905b82821061403857505091889161093d98996001941061401f575b5050811b019055613fad565b85015160001960f88460031b161c191690553880614013565b80600185968294968a01518155019501930190613ff9565b614058610ac0565b613f6f565b614066816138c7565b613f26565b92909391614078846112f3565b6001600160a01b031633141561416b575b6000848152606760205260409020546140ac906001600160a01b031615156112a6565b6141216140b7610b20565b86815282602082015283604082015284606082015261411c60076140e688600052610164602052604060002090565b0160066140fe89600052610164602052604060002090565b019061410a825461205a565b80925590600052602052604060002090565b612bea565b614129610b20565b9485526020850152604084015260608301527fc34cc0b39823c062f2d31bfcde1d16c45decb5d1378a2f63942221b5d39dfbf06040518061203e339582614179565b614174846138c7565b614089565b604081526005604082015264189d5a5b1960da1b6060820152608081019060209160808383015291610100820193926000905b600482106141bc57505050505090565b909192939483806141d9600193607f198982030186528951610a11565b970192019201909392916141ac565b6141f1816112f3565b6001600160a01b03908116331415614312576000818392614211846112f3565b614219615349565b161515808061430b575b83146142f45750614233836136ea565b61423c836112f3565b614253611a31856000526069602052604060002090565b6001600160a01b038116600090815260686020526040902083198154019055614289611a31856000526067602052604060002090565b167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef82604051a46142d060026142ca83600052610164602052604060002090565b0161432c565b6142d75750565b6142ef61093d91600052610164602052604060002090565b6143a7565b6142fd57614233565b614306836136ea565b614233565b5082614223565b5060249150604051906355d2292f60e11b82526004820152fd5b6109769054611316565b6001600160fe1b03811160011661434e575b60021b90565b614356612043565b614348565b6143658154611316565b908161436f575050565b81601f60009311600114614381575055565b8183526020832061439d91601f0160051c8101906001016123f0565b8160208120915555565b60066000916143b58161435b565b6143c16001820161435b565b6143cd6002820161435b565b6143d96003820161435b565b6143e56004820161435b565b8260058201550155565b6143f8816112f3565b6001600160a01b03163314156144e5576001600160a01b03821660009081527fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa602052604090205460ff16156144c95761445181611b9a565b61446a82611a9683600052610165602052604060002090565b60408051818152600891810191909152673b32b934b334b2b960c11b60608201526001600160a01b03909216602083015233917f967cd1f911fe3c627b223c427ab2e2a18d89bef4a19ba762b552fd5fbc1033aa90806080810161203e565b505060405163070198dd60e51b81526001600482015260249150fd5b905060249150604051906355d2292f60e11b82526004820152fd5b600081815260676020526040902054614523906001600160a01b031615156112a6565b600090815261016560205260409020546001600160a01b031690565b614547614611565b8060005261016560205260409160018060a01b038360002054163314156145f85760008281526067602052604090205461458b906001600160a01b031615156112a6565b816000526101666020526145ae81846000209060ff801983541691151516179055565b6008835193808552840152671d995c9a599a595960c21b6060840152151560208301527e91a55492d3e3f4e2c9b36ff4134889d9118003521f9d531728503da510b11f60803393a3565b509060249250519063926e6e9960e01b82526004820152fd5b3360009081527fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa602052604090205460ff161561464a57565b5060405163070198dd60e51b815260016004820152602490fd5b3360009081527fddaeee8e61001dbcfaf4f92c6943552c392a86665d734d3c1905d7b3c23b1b1e602052604090205460ff161561469d57565b5060405163070198dd60e51b815260006004820152602490fd5b6000818152606760205260409020546146da906001600160a01b031615156112a6565b60005261016660205260ff6040600020541690565b6146f7615349565b6146ff612fc3565b600081815260676020526040902054614722906001600160a01b031615156112a6565b6001600160a01b03614749600261473885611d9a565b015460101c6001600160a01b031690565b16614862577fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe890604051817f8140554c907b4ba66a04ea1f43b882cba992d3db4cd5c49298a56402d7b36ca23392806147a28882610a36565b0390a36147bd61033782600052610131602052604060002090565b1561481757614812906148046147d1610b3f565b828152600060208201819052604082018190526060820152336080820152600160a08201526147ff86611d9a565b614881565b60405191829133958361495d565b0390a2565b61481290614854614826610b3f565b828152600060208201819052604082018190526060820152336080820152600060a08201526147ff86611d9a565b604051918291339583614939565b505060405163142d0c2f60e11b815260049150fd5b60041115611d1957565b600290825181556020830151600182015501906148b060408201511515839060ff801983541691151516179055565b6060810151825461ff00191690151560081b61ff00161782556080810151825462010000600160b01b0319811660109290921b62010000600160b01b0316918217845560a09092015161490281614877565b600481101561492c575b62010000600160b81b03199092161760b09190911b60ff60b01b16179055565b614934611cf8565b61490c565b604090614953600093959495606083526060830190610a11565b9460208201520152565b604090614953600193959495606083526060830190610a11565b604090614953600393959495606083526060830190610a11565b604090614953600293959495606083526060830190610a11565b6149b3615349565b6001600160a01b038060026149c784611d9a565b015460101c1615611f625760026149dd83611d9a565b015460101c16331415614a7b57614a0c60026149f883611d9a565b01805460ff60b01b1916600360b01b179055565b614a1581611d9a565b546040517fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe8339180614a48858783614977565b0390a27fef2f6bed86b96d79b41799f5285f73b31274bb303ebe5d55a3cb48c567ab2db06040518061203e339582610a36565b5050604051631851b23d60e01b8152600490fd5b614a98816112f3565b6001600160a01b03163314156144e557600081815260676020526040902054614acb906001600160a01b031615156112a6565b614ad58282612f50565b6040519160408352601760408401527f616363657373506f696e744175746f417070726f76616c0000000000000000006060840152151560208301527e91a55492d3e3f4e2c9b36ff4134889d9118003521f9d531728503da510b11f60803393a3565b919091614b44816112f3565b6001600160a01b0316331415614c1857614b5d83611d9a565b8181541415614c025760020190614b79825460ff9060b01c1690565b614b8281614877565b614bec577fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe89215614bc857815460ff60b01b1916600160b01b1790915561481290614804565b815460ff60b01b1916600160b11b1790915561481290604051918291339583614991565b5050505050600460405163d9e5c51160e01b8152fd5b50505050506004604051636653b1a360e01b8152fd5b91505060249150604051906355d2292f60e11b82526004820152fd5b614c3c614611565b614c4581614cfc565b600081815261016560205260409020546001600160a01b0391908216331415614cdf57506002614c7483611d9a565b015460101c1615611f6257614ca0826002614c8e84611d9a565b019060ff801983541691151516179055565b7fe2e598f7ff2dfd4bc3bd989635401b4c56846b7893cb7eace51d099f21e69bff61203e614ccd83611d9a565b54604051918291339615159583612072565b92505050602491506040519063926e6e9960e01b82526004820152fd5b6001600160a01b036002614d0f83611d9a565b015460101c1615611fab57614d2390611d9a565b5490565b614d2f614611565b614d3881614cfc565b600081815261016560205260409020546001600160a01b0391908216331415614cdf57506002614d6783611d9a565b015460101c1615611f6257614d9a826002614d8184611d9a565b019061ff00825491151560081b169061ff001916179055565b7f17bd9b465aa0cdc6b308874903e9c38b13f561ecb1f2edaa8bf3969fe603d11c61203e614ccd83611d9a565b614dcf615349565b614dd7614664565b614de081611d0f565b60008181526098602090815260408083206001600160a01b038616845290915290205460ff16614ea157614e1381611d0f565b60008181526098602090815260408083206001600160a01b03861684529091529020614e3e90612723565b614e4781611d3a565b614e518154612825565b9055614e5c81611d0f565b60408051600181523360208201526001600160a01b03909316927faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a918190810161203e565b50506040516397b705ed60e01b815260049150fd5b614ebe615349565b614ec7816112f3565b6001600160a01b03908116331415614fa857816000526099602052614f0f6103378561032086610493604060002054609a602052604060002090600052602052604060002090565b614f92577fa4e6ad394cc40a3bae0d24623f88f7bb2e1463d19dab64bafd9985b0bc78211890614f6c6127238661032087610493614f57896000526099602052604060002090565b546104848a600052609a602052604060002090565b614f7584611d53565b60408051600181523360208201529190951694819081015b0390a4565b505050505060046040516397b705ed60e01b8152fd5b5091505060249150604051906355d2292f60e11b82526004820152fd5b614fcd615349565b614fd5614664565b614fe86129616103378461032085611d21565b614ea157614ff581611d0f565b801580615093575b61507e5761501b6150118361032084611d21565b805460ff19169055565b61502481611d3a565b61502e8154613616565b905561503981611d0f565b60408051600081523360208201526001600160a01b03909316927faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a918190810161203e565b50506040516360ed092b60e01b815260049150fd5b50600161509f82611d3a565b5414614ffd565b6150ae615349565b6150b7816112f3565b6001600160a01b03908116331415614fa8578160005260996020526151026129616103378661032087610493604060002054609a602052604060002090600052602052604060002090565b614f92577fa4e6ad394cc40a3bae0d24623f88f7bb2e1463d19dab64bafd9985b0bc7821189061514a6150118661032087610493614f57896000526099602052604060002090565b61515384611d53565b6040805160008152336020820152919095169481908101614f8d565b615177614664565b61517f615349565b60cc5460ff8160081c16156151c75760019060ff19161760cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b5050604051635970d9f560e11b8152600490fd5b6151e3614664565b60cc5460ff8116156152245760ff191660cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b50506040516355d413dd60e01b8152600490fd5b615240614664565b60cc549015159060ff8160081c16151582146152945761ff008260081b169061ff0019161760cc557f959581ef17eb8c8936ef9832169bc89dbcd1358765adca8ca81f28b416bb5efa6020604051338152a2565b506024915060405190632e15c5c160e21b82526004820152fd5b9061093d916152bb614664565b6128c0565b6152c8614664565b47806000811561531e575b600080809381933390f115615311575b6040519081527f8c7cdad0d12a8db3e23561b42da6f10c8137914c97beff202213a410e1f520a360203392a2565b615319611c03565b6152e3565b506108fc6152d3565b61533860ff60005460081c1661238f565b60cc805461ffff1916610100179055565b60ff60cc541661535557565b506040516306d39fcd60e41b8152600490fd5b6153749160009161543c565b604051906302571be360e01b825260048201526020816024816e0c2e074ec69a0dfb2997ba6c7d2e1e5afa908115615403575b6000916153d5575b506001600160a01b03163314156153c257565b50604051631644084960e21b8152600490fd5b906153e03d83610aff565b6020823d810103126153fd5750516153f78161091e565b386153af565b91505080fd5b61540b611c03565b6153a7565b9082101561541c570190565b611d966128a9565b90939293848311610bbf578411610c13578101920390565b91805b828110615498575090615456918161545d94615424565b3691610b88565b60208151910120604051615492816154846020820194856040916000825260208201520190565b03601f198101835282610aff565b51902090565b601760f91b6154c96154bc6154ae848789615410565b356001600160f81b03191690565b6001600160f81b03191690565b146154dc576154d79061205a565b61543f565b6154f26154eb82949394612825565b838661543c565b92615456926155019495615424565b8051602091820120604080519283019384528201526154928160608101615484565b60405190606082018281106001600160401b03821117615593575b604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b61559b610ac0565b61553e565b604051906155ad82610ad7565b6008825260203681840137565b906155c482610b5e565b6155d16040519182610aff565b82815280926155e2601f1991610b5e565b0190602036910137565b8051156156be576155fb615523565b61561f61561a61561561560e8551612835565b6003900490565b614336565b6155ba565b9160208301918182518301915b82821061566c575050506003905106806001146156595760021461564e575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c168801015160028601531685010151908201530193919061562c565b506109766117df565b602081830312610979578051906001600160401b038211610c13570181601f820112156109795780516156f981610b5e565b926157076040519485610aff565b81845260208284010111610c135761097691602080850191016109dc565b92615751610976959361574361575f94608088526080880190611352565b908682036020880152611352565b908482036040860152611352565b916060818403910152610a11565b60009291815461577c81611316565b926001918083169081156157d457506001146157985750505050565b90919293945060005260209081600020906000915b8583106157c3575050505001903880808061137f565b8054858401529183019181016157ad565b60ff191684525050500191503880808061137f565b600b60fa1b815260010190565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008082101561592b575b506d04ee2d6d415b85acef81000000008083101561591c575b50662386f26fc100008083101561590d575b506305f5e100808310156158fe575b50612710808310156158ef575b5060648210156158df575b600a809210156158d5575b60019081602161588d8287016155ba565b95860101905b61589f575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049182156158d057919082615893565b615898565b916001019161587c565b9190606460029104910191615871565b60049193920491019138615866565b60089193920491019138615859565b6010919392049101913861584a565b60209193920491019138615838565b60409350810491503861581f565b6040519061594682610ad7565b6007825260203681840137565b60209080511561541c570190565b60219080516001101561541c570190565b90602091805182101561598457010190565b61598c6128a9565b010190565b1561599857565b50606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b60405190606082018281106001600160401b03821117615a85575b604052602a825260403660208401376030615a1283615953565b536078615a1e83615961565b536029905b60018211615a3657610976915015615991565b80600f615a7292166010811015615a78575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a615a688486615972565b5360041c916120e8565b90615a23565b615a806128a9565b615a48565b615a8d610ac0565b6159f8565b15615ab757604051615aa381610ad7565b60048152637472756560e01b602082015290565b604051615ac381610ad7565b600581526466616c736560d81b602082015290565b62ffffff16615ae56155a0565b906030615af183615953565b536078615afd83615961565b5360079081905b60018211615b9957615b17915015615991565b615b1f615939565b91825115615b8c575b60236020840153600190815b838110615b42575050505090565b615b7a906001198111615b7f575b6001600160f81b0319615b6582860185615972565b511660001a615b748288615972565b5361205a565b615b34565b615b87612043565b615b50565b615b946128a9565b615b28565b80600f615bcb92166010811015615bd1575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a615a688487615972565b90615b04565b615bd96128a9565b615bab56fe0eef1ffa5f2982ad38bb9f5022d2ac4c29b22af1469b6ed4f49176c737d74a18a36469706673582212205f78f20fa944789cd75c7c7059259e69adf1d7575474fde59bda6a4c7766b4be6c6578706572696d656e74616cf564736f6c634300080c0041", + "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AccessPointAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointCreationStatusAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointNotExistent\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointScoreCannotBeLower\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsNotPausable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsNotPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTokenIdForAccessPoint\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeAccessPointOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeENSOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"MustBeTokenOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"MustBeTokenVerifier\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustHaveAtLeastOneOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"role\",\"type\":\"uint8\"}],\"name\":\"MustHaveCollectionRole\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"role\",\"type\":\"uint8\"}],\"name\":\"MustHaveTokenRole\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"state\",\"type\":\"bool\"}],\"name\":\"PausableIsSetTo\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredValue\",\"type\":\"uint256\"}],\"name\":\"RequiredPayment\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RoleAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ThereIsNoTokenMinted\",\"type\":\"error\"},{\"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\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"BillingChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointContentVerify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum FleekAccessPoints.AccessPointCreationStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointCreationStatus\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointNameVerify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"score\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointScore\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"CollectionRoleChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"value\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"value\",\"type\":\"uint24\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string[4]\",\"name\":\"value\",\"type\":\"string[4]\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"value\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"NewAccessPoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"ENS\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"ipfsHash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"accessPointAutoApproval\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"NewMint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"isPausable\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PausableStatusChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PauseStatusChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemoveAccessPoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"TokenRoleChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"TokenRolesCleared\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"addAccessPoint\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"decreaseAccessPointScore\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"getAccessPointJSON\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getAppData\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"}],\"name\":\"getBilling\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastTokenId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getTokenVerifier\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantCollectionRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantTokenRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasCollectionRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasTokenRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"increaseAccessPointScore\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"initialBillings\",\"type\":\"uint256[]\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"isAccessPointNameVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPausable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPaused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"isTokenVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ens\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ipfsHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"accessPointAutoApproval\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"removeAccessPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeCollectionRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeTokenRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_apAutoApproval\",\"type\":\"bool\"}],\"name\":\"setAccessPointAutoApproval\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setAccessPointContentVerify\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setAccessPointNameVerify\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAccessPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"setBilling\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"pausable\",\"type\":\"bool\"}],\"name\":\"setPausable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_gitRepository\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_ipfsHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_domain\",\"type\":\"string\"}],\"name\":\"setTokenBuild\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint24\",\"name\":\"_tokenColor\",\"type\":\"uint24\"}],\"name\":\"setTokenColor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenDescription\",\"type\":\"string\"}],\"name\":\"setTokenDescription\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenENS\",\"type\":\"string\"}],\"name\":\"setTokenENS\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenExternalURL\",\"type\":\"string\"}],\"name\":\"setTokenExternalURL\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenLogo\",\"type\":\"string\"}],\"name\":\"setTokenLogo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenLogo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"_tokenColor\",\"type\":\"uint24\"}],\"name\":\"setTokenLogoAndColor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenName\",\"type\":\"string\"}],\"name\":\"setTokenName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setTokenVerified\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"setTokenVerifier\",\"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\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addAccessPoint(uint256,string)\":{\"details\":\"Add a new AccessPoint register for an app token. The AP name should be a DNS or ENS url and it should be unique. Anyone can add an AP but it should requires a payment. May emit a {NewAccessPoint} event. Requirements: - the tokenId must be minted and valid. - billing for add acess point may be applied. - the contract must be not paused.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC721-approve}.\"},\"balanceOf(address)\":{\"details\":\"See {IERC721-balanceOf}.\"},\"burn(uint256)\":{\"details\":\"Burns a previously minted `tokenId`. May emit a {Transfer} event. Requirements: - the tokenId must be minted and valid. - the sender must be the owner of the token. - the contract must be not paused.\"},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"decreaseAccessPointScore(string)\":{\"details\":\"Decreases the score of a AccessPoint registry if is greater than 0.\"},\"getAccessPointJSON(string)\":{\"details\":\"A view function to gether information about an AccessPoint. It returns a JSON string representing the AccessPoint information.\"},\"getApproved(uint256)\":{\"details\":\"See {IERC721-getApproved}.\"},\"getBilling(uint8)\":{\"details\":\"Returns the billing value for a given key.\"},\"getLastTokenId()\":{\"details\":\"Returns the last minted tokenId.\"},\"getToken(uint256)\":{\"details\":\"Returns the token metadata associated with the `tokenId`. Returns multiple string and uint values in relation to metadata fields of the App struct. Requirements: - the tokenId must be minted and valid.\"},\"getTokenVerifier(uint256)\":{\"details\":\"Returns the verifier of a token. Requirements: - the tokenId must be minted and valid.\"},\"grantCollectionRole(uint8,address)\":{\"details\":\"Grants the collection role to an address. Requirements: - the caller should have the collection role.\"},\"grantTokenRole(uint256,uint8,address)\":{\"details\":\"Grants the token role to an address. Requirements: - the caller should have the token role.\"},\"hasCollectionRole(uint8,address)\":{\"details\":\"Returns `True` if a certain address has the collection role.\"},\"hasTokenRole(uint256,uint8,address)\":{\"details\":\"Returns `True` if a certain address has the token role.\"},\"increaseAccessPointScore(string)\":{\"details\":\"Increases the score of a AccessPoint registry.\"},\"initialize(string,string,uint256[])\":{\"details\":\"Initializes the contract by setting a `name` and a `symbol` to the token collection.\"},\"isAccessPointNameVerified(string)\":{\"details\":\"A view function to check if a AccessPoint is verified.\"},\"isApprovedForAll(address,address)\":{\"details\":\"See {IERC721-isApprovedForAll}.\"},\"isPausable()\":{\"details\":\"Returns true if the contract is pausable, and false otherwise.\"},\"isPaused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"isTokenVerified(uint256)\":{\"details\":\"Returns the verification status of a token. Requirements: - the tokenId must be minted and valid.\"},\"mint(address,string,string,string,string,string,string,string,string,uint24,bool,address)\":{\"details\":\"Mints a token and returns a tokenId. If the `tokenId` has not been minted before, and the `to` address is not zero, emits a {Transfer} event. Requirements: - the caller must have ``collectionOwner``'s admin role. - billing for the minting may be applied. - the contract must be not paused.\"},\"name()\":{\"details\":\"See {IERC721Metadata-name}.\"},\"ownerOf(uint256)\":{\"details\":\"See {IERC721-ownerOf}.\"},\"pause()\":{\"details\":\"Sets the contract to paused state. Requirements: - the sender must have the `controller` role. - the contract must be pausable. - the contract must be not paused.\"},\"removeAccessPoint(string)\":{\"details\":\"Remove an AccessPoint registry for an app token. It will also remove the AP from the app token APs list. May emit a {RemoveAccessPoint} event. Requirements: - the AP must exist. - must be called by the AP owner. - the contract must be not paused.\"},\"revokeCollectionRole(uint8,address)\":{\"details\":\"Revokes the collection role of an address. Requirements: - the caller should have the collection role.\"},\"revokeTokenRole(uint256,uint8,address)\":{\"details\":\"Revokes the token role of an address. Requirements: - the caller should have the token role.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"See {IERC721-safeTransferFrom}.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"See {IERC721-safeTransferFrom}.\"},\"setAccessPointAutoApproval(uint256,bool)\":{\"details\":\"Updates the `accessPointAutoApproval` settings on minted `tokenId`. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setAccessPointContentVerify(string,bool)\":{\"details\":\"Set the content verification of a AccessPoint registry. May emit a {ChangeAccessPointContentVerify} event. Requirements: - the AP must exist. - the sender must have the token controller role.\"},\"setAccessPointNameVerify(string,bool)\":{\"details\":\"Set the name verification of a AccessPoint registry. May emit a {ChangeAccessPointNameVerify} event. Requirements: - the AP must exist. - the sender must have the token controller role.\"},\"setApprovalForAccessPoint(uint256,string,bool)\":{\"details\":\"Set approval settings for an access point. It will add the access point to the token's AP list, if `approved` is true. May emit a {ChangeAccessPointApprovalStatus} event. Requirements: - the tokenId must exist and be the same as the tokenId that is set for the AP. - the AP must exist. - must be called by a token controller.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"See {IERC721-setApprovalForAll}.\"},\"setBilling(uint8,uint256)\":{\"details\":\"Sets the billing value for a given key. May emit a {BillingChanged} event. Requirements: - the sender must have the `collectionOwner` role.\"},\"setPausable(bool)\":{\"details\":\"Sets the contract to pausable state. Requirements: - the sender must have the `owner` role. - the contract must be in the oposite pausable state.\"},\"setTokenBuild(uint256,string,string,string,string)\":{\"details\":\"Adds a new build to a minted `tokenId`'s builds mapping. May emit a {NewBuild} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenColor(uint256,uint24)\":{\"details\":\"Updates the `color` metadata field of a minted `tokenId`. May emit a {NewTokenColor} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenDescription(uint256,string)\":{\"details\":\"Updates the `description` metadata field of a minted `tokenId`. May emit a {NewTokenDescription} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenENS(uint256,string)\":{\"details\":\"Updates the `ENS` metadata field of a minted `tokenId`. May emit a {NewTokenENS} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenExternalURL(uint256,string)\":{\"details\":\"Updates the `externalURL` metadata field of a minted `tokenId`. May emit a {NewTokenExternalURL} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenLogo(uint256,string)\":{\"details\":\"Updates the `logo` metadata field of a minted `tokenId`. May emit a {NewTokenLogo} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenLogoAndColor(uint256,string,uint24)\":{\"details\":\"Updates the `logo` and `color` metadata fields of a minted `tokenId`. May emit a {NewTokenLogo} and a {NewTokenColor} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenName(uint256,string)\":{\"details\":\"Updates the `name` metadata field of a minted `tokenId`. May emit a {NewTokenName} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenVerified(uint256,bool)\":{\"details\":\"Sets the verification status of a token. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must be the token verifier. - the sender must have `CollectionRoles.Verifier` role.\"},\"setTokenVerifier(uint256,address)\":{\"details\":\"Sets an address as verifier of a token. The verifier must have `CollectionRoles.Verifier` role. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must be the owner of the token. - the verifier must have `CollectionRoles.Verifier` role.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"symbol()\":{\"details\":\"See {IERC721Metadata-symbol}.\"},\"tokenURI(uint256)\":{\"details\":\"Returns the token metadata associated with the `tokenId`. Returns a based64 encoded string value of the URI. Requirements: - the tokenId must be minted and valid.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC721-transferFrom}.\"},\"unpause()\":{\"details\":\"Sets the contract to unpaused state. Requirements: - the sender must have the `controller` role. - the contract must be paused.\"},\"withdraw()\":{\"details\":\"Withdraws all the funds from contract. May emmit a {Withdrawn} event. Requirements: - the sender must have the `collectionOwner` role.\"}},\"version\":1},\"userdoc\":{\"events\":{\"MetadataUpdate(uint256,string,string,address)\":{\"notice\":\"Event emitted when a token's metadata is updated.\"}},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/FleekERC721.sol\":\"FleekERC721\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@ensdomains/ens-contracts/contracts/registry/ENS.sol\":{\"keccak256\":\"0x7cb1158c7d268b63de1468e28e2711b28d686e2628ddb22da2149cd93ddeafda\",\"urls\":[\"bzz-raw://a7018309acca24b10ea1235b1c27828f29f2ddfabb653a794639baf620dc2314\",\"dweb:/ipfs/QmakFQT5NFvGs3g8xxwtgtWdddq28Wtm6MjNSpJNhV1YpR\"]},\"@ensdomains/ens-contracts/contracts/resolvers/Resolver.sol\":{\"keccak256\":\"0x62b71222aa65138e124b94f5835c2163cc88213491e5f0a80d7a4c45641fbe64\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2def0b17096b07578ac974ab3871d71c757a01389bbfdb124d103308a3ecaad9\",\"dweb:/ipfs/QmepR8cbk2etYYnKHArZFuGNTZ2huqFihxq9mzfS3YgE3Y\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IABIResolver.sol\":{\"keccak256\":\"0x85b373d02d19374fe570af407f459768285704bf7f30ab17c30eabfb5a10e4c3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2046ce3d92d29806d7b447f7ab4227f19b0b2e5c75fd5b4a3fcaef7fe2442141\",\"dweb:/ipfs/QmRgnfWjFetrSJngkhU7Yui1ZcK1MeatvZDpvUTYNuYnND\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddrResolver.sol\":{\"keccak256\":\"0x2ad7f2fc60ebe0f93745fe70247f6a854f66af732483fda2a3c5e055614445e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://43922ba183ff20d87dce7fc5d715e626b26594151e36dcc8d7c6329b9a822963\",\"dweb:/ipfs/QmTg9uHTugTxzqddN68gnhNbGt4bGJBS9mQcss6GYggR4X\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddressResolver.sol\":{\"keccak256\":\"0x411447c1e90c51e09702815a85ec725ffbbe37cf96e8cc4d2a8bd4ad8a59d73e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://543aa2756447a428711b69aea79e9f4641c22f8330ba920b2a49fde8d9207f82\",\"dweb:/ipfs/QmTdpcYRWLH3BL7iytnqcSzRojTPe3YettKaTqeCvKPk54\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IContentHashResolver.sol\":{\"keccak256\":\"0xd95cd77684ba5752c428d7dceb4ecc6506ac94f4fbb910489637eb68dcd8e366\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://daf1fee7770679bd935b8b5686789a4ecc532caeef5a9b8e1b60ae0c285e743e\",\"dweb:/ipfs/QmSaHBAqtDdbQLH6QN4EbupMrq2ah8g6fqE7fLX1u4cjMZ\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSRecordResolver.sol\":{\"keccak256\":\"0xcfa52200edd337f2c6c5bf402352600584da033b21323603e53de33051a3e25d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2c8355211d58db82660140191678ee342eb8a7ac46fa097ae8e03eef008f592e\",\"dweb:/ipfs/QmYDNiECPd4fJ7Vk9Xywfpg73rUvDpcYqas95ofGcpt7fM\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSZoneResolver.sol\":{\"keccak256\":\"0xca1b3a16e7005533f2800a3e66fcdccf7c574deac7913d8c810f40aec1d58dc0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a4e38d5eb69e236c37e4a013628838070720c9e1923569650b01252868038c7a\",\"dweb:/ipfs/QmV397iZMRxtem79kJy5sueJadXoVL89gNViX2xciQHUrk\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IExtendedResolver.sol\":{\"keccak256\":\"0x5d81521cfae7d9a4475d27533cd8ed0d3475d369eb0674fd90ffbdbdf292faa3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d244d15588785044b54c453ab6dc51c616ab70cb8b9e687d3e54565bcae97760\",\"dweb:/ipfs/QmXz4ZZBTFogdkdTV1mcE3ywvL2agKVZHLNNeRHCKVruYM\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IInterfaceResolver.sol\":{\"keccak256\":\"0x390321fb58f7b927df9562450981e74b4be3907e7c09df321fd3b7409b63ae28\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://045d12c6e0e4596b3672614751a9e75188183a89765a6abd938294e0294e9c56\",\"dweb:/ipfs/QmazngvagEoKe29s4M9Rv8KygWD5hrAtNPkYDPJ2pK13yx\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/INameResolver.sol\":{\"keccak256\":\"0x9ec392b612447b1acbdc01114f2da2837a658d3f3157f60a99c5269f0b623346\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5b2cd9e5339b09f40e82bd91fed7d5f643dd031393eefb9aec588eaba8465049\",\"dweb:/ipfs/QmT2A8eswhJU9YadCs9BtwKNj6YGypntXmFepANQYyGw7x\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IPubkeyResolver.sol\":{\"keccak256\":\"0x69748947093dd2fda9ddcebd0adf19a6d1e7600df1d4b1462a0417156caddca7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc2f86e50bd17c38fb10feb577d88d8970c585017a391ef10e3aaa3d50f81555\",\"dweb:/ipfs/QmaxLx2pqCUxf9W2dusfviZ9aSiTuVwuekGo73rjvmGifE\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/ITextResolver.sol\":{\"keccak256\":\"0x7c5debb3c42cd9f5de2274ea7aa053f238608314b62db441c40e31cea2543fd5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://412e34ae2d84d542ffa6791486963f3fe04432a3ffd51877d441256dc2941914\",\"dweb:/ipfs/QmciS4mGAQ6KJtLiLcBFekHKhYAYMmubDWGkpZ3sUFtJPW\"]},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8a313cf42389440e2706837c91370323b85971c06afd6d056d21e2bc86459618\",\"dweb:/ipfs/QmT8XUrUvQ9aZaPKrqgRU2JVGWnaxBcUYJA7Q7K5KcLBSZ\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol\":{\"keccak256\":\"0x2a6a0b9fd2d316dcb4141159a9d13be92654066d6c0ae92757ed908ecdfecff0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c05d9be7ee043009eb9f2089b452efc0961345531fc63354a249d7337c69f3bb\",\"dweb:/ipfs/QmTXhzgaYrh6og76BP85i6exNFAv5NYw64uVWyworNogyG\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol\":{\"keccak256\":\"0xbb2ed8106d94aeae6858e2551a1e7174df73994b77b13ebd120ccaaef80155f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8bc3c6a456dba727d8dd9fd33420febede490abb49a07469f61d2a3ace66a95a\",\"dweb:/ipfs/QmVAWtEVj7K5AbvgJa9Dz22KiDq9eoptCjnVZqsTMtKXyd\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol\":{\"keccak256\":\"0x2c0b89cef83f353c6f9488c013d8a5968587ffdd6dfc26aad53774214b97e229\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4a68e662c2a82412308b1feb24f3d61a44b3b8772f44cbd440446237313c3195\",\"dweb:/ipfs/QmfBuWUE2TQef9hghDzzuVkDskw3UGAyPgLmPifTNV7K6g\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol\":{\"keccak256\":\"0x95a471796eb5f030fdc438660bebec121ad5d063763e64d92376ffb4b5ce8b70\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4ffbd627e6958983d288801acdedbf3491ee0ebf1a430338bce47c96481ce9e3\",\"dweb:/ipfs/QmUM1vpmNgBV34sYf946SthDJNGhwwqjoRggmj4TUUQmdB\"]},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://72460c66cd1c3b1c11b863e0d8df0a1c56f37743019e468dc312c754f43e3b06\",\"dweb:/ipfs/QmPExYKiNb9PUsgktQBupPaM33kzDHxaYoVeJdLhv8s879\"]},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d6520943ea55fdf5f0bafb39ed909f64de17051bc954ff3e88c9e5621412c79c\",\"dweb:/ipfs/QmWZ4rAKTQbNG2HxGs46AcTXShsVytKeLs7CUCdCSv5N7a\"]},\"@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol\":{\"keccak256\":\"0x6b9a5d35b744b25529a2856a8093e7c03fb35a34b1c4fb5499e560f8ade140da\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://187b5c3a1c9e77678732a2cc5284237f9cfca6bc28ee8bc0a0f4f951d7b3a2f8\",\"dweb:/ipfs/Qmb2KFr7WuQu7btdCiftQG64vTzrG4UyzVmo53EYHcnHYA\"]},\"@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol\":{\"keccak256\":\"0x9a3b990bd56d139df3e454a9edf1c64668530b5a77fc32eb063bc206f958274a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0895399d170daab2d69b4c43a0202e5a07f2e67a93b26e3354dcbedb062232f7\",\"dweb:/ipfs/QmUM1VH3XDk559Dsgh4QPvupr3YVKjz87HrSyYzzVFZbxw\"]},\"@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol\":{\"keccak256\":\"0xc6cef87559d0aeffdf0a99803de655938a7779ec0a3cd5d4383483ad85565a09\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://92ad7e572cf44e6b4b37631b44b62f9eb9fb1cf14d9ce51c1504d5dc7ccaf758\",\"dweb:/ipfs/QmcnbqX85tsWnUXPmtuPLE4SczME2sJaTfmqEFkuAJvWhy\"]},\"@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol\":{\"keccak256\":\"0xc1bd5b53319c68f84e3becd75694d941e8f4be94049903232cd8bc7c535aaa5a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://056027a78e6f4b78a39be530983551651ee5a052e786ca2c1c6a3bb1222b03b4\",\"dweb:/ipfs/QmXRUpywAqNwAfXS89vrtiE2THRM9dX9pQ4QxAkV1Wx9kt\"]},\"@openzeppelin/contracts/token/ERC721/IERC721.sol\":{\"keccak256\":\"0xab28a56179c1db258c9bf5235b382698cb650debecb51b23d12be9e241374b68\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://daae589a9d6fa7e55f99f86c0a16796ca490f243fb3693632c3711c0646c1d56\",\"dweb:/ipfs/QmR3zpd7wNw3rcUdekwiv6FYHJqksuTCXLVioTxu6Fbxk3\"]},\"@openzeppelin/contracts/utils/Base64.sol\":{\"keccak256\":\"0x5f3461639fe20794cfb4db4a6d8477388a15b2e70a018043084b7c4bedfa8136\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://77e5309e2cc4cdc3395214edb0ff43ff5a5f7373f5a425383e540f6fab530f96\",\"dweb:/ipfs/QmTV8DZ9knJDa3b5NPBFQqjvTzodyZVjRUg5mx5A99JPLJ\"]},\"@openzeppelin/contracts/utils/Strings.sol\":{\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8c969013129ba9e651a20735ef659fef6d8a1139ea3607bd4b26ddea2d645634\",\"dweb:/ipfs/QmVhVa6LGuzAcB8qgDtVHRkucn4ihj5UZr8xBLcJkP6ucb\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://33bbf48cc069be677705037ba7520c22b1b622c23b33e1a71495f2d36549d40b\",\"dweb:/ipfs/Qmct36zWXv3j7LZB83uwbg7TXwnZSN1fqHNDZ93GG98bGz\"]},\"contracts/FleekAccessControl.sol\":{\"keccak256\":\"0xdd0352b2e9e1a7393cb85a85efb7135cc5c0d5365ee156ca78eda2c82113b6f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb62245b17047d2261afb923ffb7592cc54c78cad599828deb3342e4e6de6c99\",\"dweb:/ipfs/QmRfsz1x2dh4fx78KizNXLMjfisgvzGkizbpAasqzZvggr\"]},\"contracts/FleekAccessPoints.sol\":{\"keccak256\":\"0xa74f4f1af3f7100dde68c4824784a93927191c72f00416f96dded39b36cd43cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6aee8dc6e13e77cec72fbfadee051aad02ab25848646cda7f5a57a89126ea729\",\"dweb:/ipfs/QmWk9raFrRkASBmmZ3Ng9a5HyHYUbjfxEJKhdqwfR2WmL9\"]},\"contracts/FleekBilling.sol\":{\"keccak256\":\"0xcb1568aa8629045a5c97a365d81c448a24f0d6434798e386125633029393ed94\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c775e1ea3aeab0841976c63bfcf95e64ba879ad4a4b635f76ef12fb6a5348b12\",\"dweb:/ipfs/Qmct7TaBnvH86d184URxWYtHwSHMAVyCrtvTG8hcoArD7p\"]},\"contracts/FleekERC721.sol\":{\"keccak256\":\"0xd3ad4111a7beda20e03a7ca63f87bc9c5666f55df966e5cb2b7b7701cbc24025\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://65e7540087fed5bcbab614a5eae54ccedee395bfab7cff1e05856bf2481fb2c0\",\"dweb:/ipfs/QmStsGYSjG8eGXaCJQyq37YpjrSzJpTW8dUNHQYF6afH9S\"]},\"contracts/FleekPausable.sol\":{\"keccak256\":\"0x4d172714ea6231b283f96cb8e355cc9f5825e01039aa5a521e7a29bcb3ccd1cb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3f099c1af04b71bf43bb34fe8413dffb51a8962f91fd99d61693160c3272bd58\",\"dweb:/ipfs/QmWQe9XyVeD955es4fgbHJuSDNZuqsdTCSDMrfJvioZCdj\"]},\"contracts/IERCX.sol\":{\"keccak256\":\"0xa3ed18c17836d56b1663c34de75a4ce309965fa6f13e88b08eeed29aca4cf4bc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1ae2d073b525af1cf0445655d94c78fe02492e7d4562f815251e6b44a73a5904\",\"dweb:/ipfs/Qmesee9NVvXn84TR2H8AudwGaAZvrQN3JQ9Xs7spcwVs7A\"]},\"contracts/util/FleekENS.sol\":{\"keccak256\":\"0xf9be784932977798e530160f38eefdfbb55ae25a3d9cc58b477b092ef9936039\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0ffc81ef864a34e42a3ab1638e56d95f88721ec1032baadbc251a5ba3b4dd445\",\"dweb:/ipfs/QmUieEHXPHU79i1nx7KmoTVMfwjJGJHWRy2BYGd3PEceSB\"]},\"contracts/util/FleekSVG.sol\":{\"keccak256\":\"0x9d52d0defd643999776563c3ac36f084ae5a04a22c76ec316a0aadf6666c3c9b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://87bc5cca5451b7b8f3986dec26087857fe0f09505116536efad370172fe731a3\",\"dweb:/ipfs/QmZmDxPG8BUUjrVD92T2dktcuFQBxvHgMEnWx5aPBcSfrA\"]},\"contracts/util/FleekStrings.sol\":{\"keccak256\":\"0xccadd4e9c9c14068c6ca83c95d98a5b83b321bf442443f5432045a4313fcfce6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb4b7110961d44fba3f8f016a6fe1eeba7d783c723be7153ac8f05b24c68676d\",\"dweb:/ipfs/QmSCetjeCy7TGG9WFFbDLvpdVwYZrkMsdTBQmJuPwrugUT\"]}},\"version\":1}", + "storageLayout": { + "storage": [ + { + "astId": 533, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8" + }, + { + "astId": 536, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 2151, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 2370, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "51", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 724, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_name", + "offset": 0, + "slot": "101", + "type": "t_string_storage" + }, + { + "astId": 726, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_symbol", + "offset": 0, + "slot": "102", + "type": "t_string_storage" + }, + { + "astId": 730, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_owners", + "offset": 0, + "slot": "103", + "type": "t_mapping(t_uint256,t_address)" + }, + { + "astId": 734, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_balances", + "offset": 0, + "slot": "104", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 738, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_tokenApprovals", + "offset": 0, + "slot": "105", + "type": "t_mapping(t_uint256,t_address)" + }, + { + "astId": 744, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_operatorApprovals", + "offset": 0, + "slot": "106", + "type": "t_mapping(t_address,t_mapping(t_address,t_bool))" + }, + { + "astId": 1664, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "107", + "type": "t_array(t_uint256)44_storage" + }, + { + "astId": 4526, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_collectionRolesCounter", + "offset": 0, + "slot": "151", + "type": "t_mapping(t_enum(CollectionRoles)4485,t_uint256)" + }, + { + "astId": 4534, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_collectionRoles", + "offset": 0, + "slot": "152", + "type": "t_mapping(t_enum(CollectionRoles)4485,t_mapping(t_address,t_bool))" + }, + { + "astId": 4539, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_tokenRolesVersion", + "offset": 0, + "slot": "153", + "type": "t_mapping(t_uint256,t_uint256)" + }, + { + "astId": 4551, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_tokenRoles", + "offset": 0, + "slot": "154", + "type": "t_mapping(t_uint256,t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool))))" + }, + { + "astId": 4884, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "155", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 7193, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_paused", + "offset": 0, + "slot": "204", + "type": "t_bool" + }, + { + "astId": 7195, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_canPause", + "offset": 1, + "slot": "204", + "type": "t_bool" + }, + { + "astId": 7346, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "205", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 5648, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_billings", + "offset": 0, + "slot": "254", + "type": "t_mapping(t_enum(Billing)5627,t_uint256)" + }, + { + "astId": 5776, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "255", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 4989, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_accessPoints", + "offset": 0, + "slot": "304", + "type": "t_mapping(t_string_memory_ptr,t_struct(AccessPoint)4984_storage)" + }, + { + "astId": 4993, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_autoApproval", + "offset": 0, + "slot": "305", + "type": "t_mapping(t_uint256,t_bool)" + }, + { + "astId": 5439, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "__gap", + "offset": 0, + "slot": "306", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 5868, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_appIds", + "offset": 0, + "slot": "355", + "type": "t_uint256" + }, + { + "astId": 5873, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_apps", + "offset": 0, + "slot": "356", + "type": "t_mapping(t_uint256,t_struct(Token)7423_storage)" + }, + { + "astId": 5877, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_tokenVerifier", + "offset": 0, + "slot": "357", + "type": "t_mapping(t_uint256,t_address)" + }, + { + "astId": 5881, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "_tokenVerified", + "offset": 0, + "slot": "358", + "type": "t_mapping(t_uint256,t_bool)" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_enum(AccessPointCreationStatus)4970": { + "encoding": "inplace", + "label": "enum FleekAccessPoints.AccessPointCreationStatus", + "numberOfBytes": "1" + }, + "t_enum(Billing)5627": { + "encoding": "inplace", + "label": "enum FleekBilling.Billing", + "numberOfBytes": "1" + }, + "t_enum(CollectionRoles)4485": { + "encoding": "inplace", + "label": "enum FleekAccessControl.CollectionRoles", + "numberOfBytes": "1" + }, + "t_enum(TokenRoles)4487": { + "encoding": "inplace", + "label": "enum FleekAccessControl.TokenRoles", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_bool)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_mapping(t_address,t_mapping(t_address,t_bool))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(address => bool))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_bool)" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_enum(Billing)5627,t_uint256)": { + "encoding": "mapping", + "key": "t_enum(Billing)5627", + "label": "mapping(enum FleekBilling.Billing => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_enum(CollectionRoles)4485,t_mapping(t_address,t_bool))": { + "encoding": "mapping", + "key": "t_enum(CollectionRoles)4485", + "label": "mapping(enum FleekAccessControl.CollectionRoles => mapping(address => bool))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_bool)" + }, + "t_mapping(t_enum(CollectionRoles)4485,t_uint256)": { + "encoding": "mapping", + "key": "t_enum(CollectionRoles)4485", + "label": "mapping(enum FleekAccessControl.CollectionRoles => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool))": { + "encoding": "mapping", + "key": "t_enum(TokenRoles)4487", + "label": "mapping(enum FleekAccessControl.TokenRoles => mapping(address => bool))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_bool)" + }, + "t_mapping(t_string_memory_ptr,t_struct(AccessPoint)4984_storage)": { + "encoding": "mapping", + "key": "t_string_memory_ptr", + "label": "mapping(string => struct FleekAccessPoints.AccessPoint)", + "numberOfBytes": "32", + "value": "t_struct(AccessPoint)4984_storage" + }, + "t_mapping(t_uint256,t_address)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => address)", + "numberOfBytes": "32", + "value": "t_address" + }, + "t_mapping(t_uint256,t_bool)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool)))": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => mapping(enum FleekAccessControl.TokenRoles => mapping(address => bool)))", + "numberOfBytes": "32", + "value": "t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool))" + }, + "t_mapping(t_uint256,t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool))))": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => mapping(uint256 => mapping(enum FleekAccessControl.TokenRoles => mapping(address => bool))))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool)))" + }, + "t_mapping(t_uint256,t_struct(Build)7403_storage)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => struct IERCX.Build)", + "numberOfBytes": "32", + "value": "t_struct(Build)7403_storage" + }, + "t_mapping(t_uint256,t_struct(Token)7423_storage)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => struct IERCX.Token)", + "numberOfBytes": "32", + "value": "t_struct(Token)7423_storage" + }, + "t_mapping(t_uint256,t_uint256)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_string_memory_ptr": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_struct(AccessPoint)4984_storage": { + "encoding": "inplace", + "label": "struct FleekAccessPoints.AccessPoint", + "members": [ + { + "astId": 4972, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "tokenId", + "offset": 0, + "slot": "0", + "type": "t_uint256" + }, + { + "astId": 4974, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "score", + "offset": 0, + "slot": "1", + "type": "t_uint256" + }, + { + "astId": 4976, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "contentVerified", + "offset": 0, + "slot": "2", + "type": "t_bool" + }, + { + "astId": 4978, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "nameVerified", + "offset": 1, + "slot": "2", + "type": "t_bool" + }, + { + "astId": 4980, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "owner", + "offset": 2, + "slot": "2", + "type": "t_address" + }, + { + "astId": 4983, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "status", + "offset": 22, + "slot": "2", + "type": "t_enum(AccessPointCreationStatus)4970" + } + ], + "numberOfBytes": "96" + }, + "t_struct(Build)7403_storage": { + "encoding": "inplace", + "label": "struct IERCX.Build", + "members": [ + { + "astId": 7396, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "commitHash", + "offset": 0, + "slot": "0", + "type": "t_string_storage" + }, + { + "astId": 7398, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "gitRepository", + "offset": 0, + "slot": "1", + "type": "t_string_storage" + }, + { + "astId": 7400, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "ipfsHash", + "offset": 0, + "slot": "2", + "type": "t_string_storage" + }, + { + "astId": 7402, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "domain", + "offset": 0, + "slot": "3", + "type": "t_string_storage" + } + ], + "numberOfBytes": "128" + }, + "t_struct(Token)7423_storage": { + "encoding": "inplace", + "label": "struct IERCX.Token", + "members": [ + { + "astId": 7405, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "name", + "offset": 0, + "slot": "0", + "type": "t_string_storage" + }, + { + "astId": 7407, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "description", + "offset": 0, + "slot": "1", + "type": "t_string_storage" + }, + { + "astId": 7409, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "externalURL", + "offset": 0, + "slot": "2", + "type": "t_string_storage" + }, + { + "astId": 7411, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "ENS", + "offset": 0, + "slot": "3", + "type": "t_string_storage" + }, + { + "astId": 7413, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "logo", + "offset": 0, + "slot": "4", + "type": "t_string_storage" + }, + { + "astId": 7415, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "color", + "offset": 0, + "slot": "5", + "type": "t_uint24" + }, + { + "astId": 7417, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "currentBuild", + "offset": 0, + "slot": "6", + "type": "t_uint256" + }, + { + "astId": 7422, + "contract": "contracts/FleekERC721.sol:FleekERC721", + "label": "builds", + "offset": 0, + "slot": "7", + "type": "t_mapping(t_uint256,t_struct(Build)7403_storage)" + } + ], + "numberOfBytes": "256" + }, + "t_uint24": { + "encoding": "inplace", + "label": "uint24", + "numberOfBytes": "3" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "encoding": "inplace", + "label": "uint8", + "numberOfBytes": "1" } } - } \ No newline at end of file + }, + "implementationAddress": "0xca9f61a35385f26f1bE8949940f559a8ccD9b50F" +} \ No newline at end of file diff --git a/contracts/deployments/sepolia/FleekSVG.json b/contracts/deployments/sepolia/FleekSVG.json new file mode 100644 index 0000000..5a61412 --- /dev/null +++ b/contracts/deployments/sepolia/FleekSVG.json @@ -0,0 +1,49 @@ +{ + "buildId": "51265c9b241f9c7af77f823edadaae04", + "timestamp": "6/16/2023, 12:20:28 PM", + "address": "0xA9DA4834BE5F6Ac9bd5E408Ef27FE2efbBb49011", + "transactionHash": "0x03cc2cf0266e6fb955e85921923c589244a532e04af0eb3077f5356780344377", + "gasPrice": 1520000002, + "abi": [ + { + "inputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "ENS", + "type": "string" + }, + { + "internalType": "string", + "name": "logo", + "type": "string" + }, + { + "internalType": "string", + "name": "color", + "type": "string" + } + ], + "name": "generateBase64", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + } + ], + "bytecode": "0x6080806040523461001a57612ae99081610021823930815050f35b50600080fdfe6080604052600480361015610015575b50600080fd5b6000803560e01c63891c235f1461002c575061000f565b60803660031901126100e05767ffffffffffffffff82358181116100d9576100579036908501610156565b926024358281116100d15761006f9036908301610156565b916044358181116100c8576100879036908401610156565b936064359182116100bf5750916100a96100af94926100bb9694369101610156565b92610226565b604051918291826101e3565b0390f35b94505050505080fd5b50505050809150fd5b505050809150fd5b5050809150fd5b809150fd5b50634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761011e57604052565b6101266100e5565b604052565b60209067ffffffffffffffff8111610149575b601f01601f19160190565b6101516100e5565b61013e565b81601f820112156101a65780359061016d8261012b565b9261017b60405194856100fc565b8284526020838301011161019d57816000926020809301838601378301015290565b50505050600080fd5b505050600080fd5b918091926000905b8282106101ce5750116101c7575050565b6000910152565b915080602091830151818601520182916101b6565b6040916020825261020381518092816020860152602086860191016101ae565b601f01601f1916010190565b90610222602092828151948592016101ae565b0190565b604080517f3c7376672077696474683d223130363522206865696768743d2231303635222060208201527f76696577426f783d2230203020313036352031303635222066696c6c3d226e6f918101919091527f6e652220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32303060608201527f302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77608082015271199737b93397989c9c9c97bc3634b735911f60711b60a08201529384939092909160b285017f3c7374796c6520747970653d22746578742f637373223e40696d706f7274207581527f726c282268747470733a2f2f666f6e74732e676f6f676c65617069732e636f6d60208201527f2f637373323f66616d696c793d496e7465723a77676874403530303b36303022604082015269149d9e17b9ba3cb6329f60b11b6060820152606a017f3c726563742077696474683d223130363522206865696768743d22313036352281527f2066696c6c3d2275726c28236261636b67726f756e642922202f3e3c7265637460208201527f206f7061636974793d22302e32222077696474683d223130363522206865696760408201527f68743d2231303635222066696c6c3d2275726c28236261636b67726f756e642d60608201526a3930b234b0b6149110179f60a91b6080820152608b017f3c672066696c7465723d2275726c28236469736b657474652d736861646f772981527f223e3c7061746820643d224d3835372e323331203237392e3731324c3930322e60208201527f3234203238362e363735433931302e353437203238372e3936203931372e393160408201527f35203239322e373231203932322e35203239392e3736384c3933382e3839342060608201527f3332342e393634433934322e323439203333302e3132203934332e333131203360808201527f33362e343337203934312e383237203334322e3430364c3933372e373938203360a08201527f35382e3631354c3932342e303439203335362e36354c3931392e34313620333760c08201527f342e3038344c3933342e303638203337362e32344c3739312e3934372039323260e08201527f2e313532433738382e313039203933362e383936203737332e363934203934366101008201527f2e333038203735382e363531203934332e3839334c3137392e363336203835306101208201527f2e393238433136322e333138203834382e313437203135312e323135203833306101408201527f2e393837203135352e373736203831342e3035314c3136302e343738203739366101608201527f2e35394c3730342e333135203837392e3537344c3835372e323331203237392e6101808201527f3731325a222066696c6c3d222330353035303522202f3e3c2f673e00000000006101a08201526101bb017f3c7061746820643d224d3834302e323331203234302e3731324c3838352e323481527f203234372e363735433839332e353437203234382e393631203930302e39313560208201527f203235332e373232203930352e35203236302e3736384c3932312e383934203260408201527f38352e393635433932352e323439203239312e3132203932362e33313120323960608201527f372e343337203932342e383237203330332e3430364c3932302e37393820333160808201527f392e3631364c3930372e303439203331372e36354c3930322e3431362033333560a08201527f2e3038344c3931372e303638203333372e3234314c3737342e3934372038383360c08201527f2e313532433737312e313039203839372e383936203735362e3639342039303760e08201527f2e333038203734312e363531203930342e3839334c3136322e363336203831316101008201527f2e393238433134352e333138203830392e313437203133342e323135203739316101208201527f2e393837203133382e373736203737352e3035314c3134332e343738203735376101408201527f2e35394c3638372e333135203834302e3537344c3834302e323331203234302e6101608201527f3731325a222066696c6c3d2275726c28236d61696e2922202f3e00000000000061018082015261019a01600080516020612a8683398151915281527f756c653d226576656e6f64642220643d224d3331392e383437203136312e353060208201527f32433331302e333536203136302e303037203330302e363734203136362e333260408201527f36203239382e323231203137352e3631364c3133382e373234203737392e373560608201527f38433133362e323731203738392e303438203134312e393737203739372e373960808201527f203135312e343638203739392e3238354c3734302e303631203839312e39373360a08201527f433734392e353533203839332e343637203735392e323335203838372e31343860c08201527f203736312e363837203837372e3835384c3930322e343035203334342e38353460e08201527f4c3838392e313538203334322e3736384c3839382e383732203330352e3937326101008201527f4c3931322e313139203330382e3035394c3931332e373333203330312e3934366101208201527f433931342e383337203239372e373632203931342e333039203239332e3437366101408201527f203931322e323531203238392e3932374c3839332e343834203235372e3536396101608201527f433839312e313533203235332e353439203838372e303633203235302e3832336101808201527f203838322e323231203235302e3036314c3832382e323035203234312e3535346101a08201527f433832322e323234203234302e363133203831352e383639203234322e3738336101c08201527f203831312e343237203234372e3238344c3830352e363836203235332e3130336101e08201527f433830342e323035203235342e363033203830322e303837203235352e3332366102008201527f203830302e303933203235352e3031334c3738332e363131203235322e3431376102208201527f4c3733342e33203433392e313936433733312e343339203435302e30333520376102408201527f32302e313433203435372e343037203730392e3037203435352e3636334c33326102608201527f382e383437203339352e373838433331372e373734203339342e3034352033316102808201527f312e313137203338332e383435203331332e393738203337332e3030374c33366102a08201527f362e353238203137332e3936324c3336362e353333203137332e3934314333366102c08201527f372e323334203137312e3234203336352e353732203136382e373032203336326102e08201527f2e3831203136382e3236374c3331392e383437203136312e3530325a4d3336396103008201527f2e333932203137342e3431344c3336382e363532203137372e3231374c3331366103208201527f2e383433203337332e343538433331342e3339203338322e373438203332302e6103408201527f303936203339312e3439203332392e353837203339322e3938354c3730392e386103608201527f31203435322e3836433731392e333031203435342e333534203732382e3938336103808201527f203434382e303335203733312e343336203433382e3734354c3738302e3734376103a08201527f203235312e3936364c3738332e323435203234322e3530344c3738332e3938356103c08201527f203233392e3730314c3336392e333932203137342e3431345a222066696c6c3d6103e08201526b111198999899989b1110179f60a11b61040082015261040c01600080516020612a8683398151915281527f756c653d226576656e6f646422207374726f6b653d2275726c28236d61696e2960208201527f22207374726f6b652d77696474683d223422207374726f6b652d6c696e65636160408201527f703d22726f756e6422207374726f6b652d6c696e656a6f696e3d22726f756e6460608201527f2220643d224d3331392e383437203136312e353032433331302e33353620313660808201527f302e303037203330302e363734203136362e333236203239382e32323120313760a08201527f352e3631364c3133382e373234203737392e373538433133362e32373120373860c08201527f392e303438203134312e393737203739372e3739203135312e3436382037393960e08201527f2e3238354c3734302e303631203839312e393733433734392e353533203839336101008201527f2e343637203735392e323335203838372e313438203736312e363837203837376101208201527f2e3835384c3930322e343035203334342e3835344c3838392e313538203334326101408201527f2e3736384c3839382e383732203330352e3937324c3931322e313139203330386101608201527f2e3035394c3931332e373333203330312e393436433931342e383337203239376101808201527f2e373632203931342e333039203239332e343736203931322e323531203238396101a08201527f2e3932374c3839332e343834203235372e353639433839312e313533203235336101c08201527f2e353439203838372e303633203235302e383233203838322e323231203235306101e08201527f2e3036314c3832382e323035203234312e353534433832322e323234203234306102008201527f2e363133203831352e383639203234322e373833203831312e343237203234376102208201527f2e3238344c3830352e363836203235332e313033433830342e323035203235346102408201527f2e363033203830322e303837203235352e333236203830302e303933203235356102608201527f2e3031334c3738332e363131203235322e3431374c3733342e33203433392e316102808201527f3936433733312e343339203435302e303335203732302e313433203435372e346102a08201527f3037203730392e3037203435352e3636334c3332382e383437203339352e37386102c08201527f38433331372e373734203339342e303435203331312e313137203338332e38346102e08201527f35203331332e393738203337332e3030374c3336362e353238203137332e39366103008201527f324c3336362e353333203137332e393431433336372e323334203137312e32346103208201527f203336352e353732203136382e373032203336322e3831203136382e3236374c6103408201527f3331392e383437203136312e3530325a4d3336392e333932203137342e3431346103608201527f4c3336382e363532203137372e3231374c3331362e383433203337332e3435386103808201527f433331342e3339203338322e373438203332302e303936203339312e343920336103a08201527f32392e353837203339322e3938354c3730392e3831203435322e3836433731396103c08201527f2e333031203435342e333534203732382e393833203434382e303335203733316103e08201527f2e343336203433382e3734354c3738302e373437203235312e3936364c3738336104008201527f2e323435203234322e3530344c3738332e393835203233392e3730314c3336396104208201527f2e333932203137342e3431345a222066696c6c3d2275726c28236469736b65746104408201527f74652d6772616469656e7429222066696c6c2d6f7061636974793d22302e32226104608201526210179f60e91b610480820152610483017f3c7061746820643d224d3333352e3338203230382e313133433333352e39323281527f203230382e313938203333362e343137203230372e363836203333362e32383360208201527f203230372e3137394c3333302e3339203138342e373935433333302e3234392060408201527f3138342e323631203332392e353239203138342e313438203332392e3132392060608201527f3138342e3539374c3331322e333538203230332e343131433331312e3937382060808201527f3230332e383338203331322e313734203230342e343538203331322e3731362060a08201527f3230342e3534344c3331372e393632203230352e3337433331382e333537203260c08201527f30352e343332203331382e353935203230352e373936203331382e343933203260e08201527f30362e3138334c3331342e37203232302e353531433331342e353937203232306101008201527f2e393338203331342e383335203232312e333032203331352e323331203232316101208201527f2e3336344c3332342e353339203232322e3833433332342e393335203232322e6101408201527f383933203332352e333338203232322e363239203332352e3434203232322e326101608201527f34324c3332392e323333203230372e383735433332392e333336203230372e346101808201527f3838203332392e373339203230372e323234203333302e313335203230372e326101a08201527f38364c3333352e3338203230382e3131335a222066696c6c3d2275726c28236d6101c08201526730b4b7149110179f60c11b6101e08201526101e8017f3c7061746820643d224d3331392e323832203236392e303837433331392e383281527f34203236392e313733203332302e333139203236382e363631203332302e313860208201527f36203236382e3135344c3331342e323932203234352e3737433331342e31353160408201527f203234352e323336203331332e343331203234352e313233203331332e30333160608201527f203234352e3537324c3239362e323631203236342e333836433239352e38382060808201527f3236342e383132203239362e303736203236352e343333203239362e3631382060a08201527f3236352e3531384c3330312e383634203236362e333434433330322e3235392060c08201527f3236362e343037203330322e343937203236362e373731203330322e3339352060e08201527f3236372e3135384c3239382e363032203238312e353236433239382e352032386101008201527f312e393133203239382e373337203238322e323737203239392e3133332032386101208201527f322e3333394c3330382e343431203238332e383035433330382e3833372032386101408201527f332e383637203330392e3234203238332e363034203330392e333433203238336101608201527f2e3231374c3331332e313336203236382e383439433331332e323338203236386101808201527f2e343632203331332e363431203236382e313939203331342e303337203236386101a08201527f2e3236314c3331392e323832203236392e3038375a222066696c6c3d22626c616101c08201527f636b222066696c6c2d6f7061636974793d22302e3522202f3e000000000000006101e08201526101f9017f3c7061746820643d224d3330332e313834203333302e303632433330332e373281527f36203333302e313438203330342e323231203332392e363336203330342e303860208201527f38203332392e3132384c3239382e313934203330362e373435433239382e303560408201527f33203330362e323131203239372e333333203330362e303938203239362e393360608201527f33203330362e3534374c3238302e313633203332352e333631433237392e373860808201527f32203332352e373837203237392e393739203332362e343038203238302e353260a08201527f203332362e3439334c3238352e373636203332372e333139433238362e31363160c08201527f203332372e333832203238362e333939203332372e373436203238362e32393760e08201527f203332382e3133334c3238322e353034203334322e353031433238322e3430326101008201527f203334322e383838203238322e363339203334332e323532203238332e3033356101208201527f203334332e3331344c3239322e333434203334342e3738433239322e373339206101408201527f3334342e383432203239332e313432203334342e353739203239332e323435206101608201527f3334342e3139324c3239372e303338203332392e383234433239372e313420336101808201527f32392e343337203239372e353433203332392e313734203239372e39333920336101a08201527f32392e3233364c3330332e313834203333302e3036325a222066696c6c3d22626101c08201527f6c61636b222066696c6c2d6f7061636974793d22302e3522202f3e00000000006101e08201526101fb017f3c70617468207374726f6b653d2275726c28236d61696e2922207374726f6b6581527f2d77696474683d223622207374726f6b652d6c696e656361703d22726f756e6460208201527f22207374726f6b652d6c696e656a6f696e3d22726f756e642220643d224d323960408201527f302e313039203436332e343138433239322e333538203435342e39303220333060608201527f312e323333203434392e3131203330392e393333203435302e34384c3737312e60808201527f3037203532332e303936433737392e3737203532342e3436372037383520353360a08201527f322e3438203738322e373532203534302e3939364c3639322e3038362038383460c08201527f2e3431384c3139392e343433203830362e38344c3239302e313039203436332e60e08201527f3431385a222066696c6c3d22626c61636b222066696c6c2d6f7061636974793d61010082015268111817189a1110179f60b91b61012082015261012901600080516020612a8683398151915281527f756c653d226576656e6f646422207374726f6b653d2275726c28236d61696e2960208201527f22207374726f6b652d77696474683d223622207374726f6b652d6c696e65636160408201527f703d22726f756e6422207374726f6b652d6c696e656a6f696e3d22726f756e6460608201527f2220643d224d3738372e353839203233372e3334394c3436302e33353420313860808201527f352e3831384c3430362e333235203339302e343639433430332e38373220333960a08201527f392e373539203430392e353738203430382e353031203431392e30363920343060c08201527f392e3939364c3731312e393334203435362e313134433732312e34323520343560e08201527f372e363039203733312e313037203435312e3239203733332e3536203434324c6101008201527f3738372e353839203233372e3334395a4d3636302e323639203234352e3031436101208201527f3635352e353233203234342e323633203635302e363832203234372e343233206101408201527f3634392e343536203235322e3036384c3630372e333836203431312e343138436101608201527f3630362e3136203431362e303633203630392e303133203432302e34333420366101808201527f31332e373539203432312e3138314c3638322e343939203433322e30303643366101a08201527f38372e323435203433322e373533203639322e303836203432392e35393420366101c08201527f39332e333132203432342e3934394c3733352e333832203236352e35393943376101e08201527f33362e363038203236302e393534203733332e373535203235362e35383320376102008201527f32392e3031203235352e3833354c3636302e323639203234352e30315a2220666102208201527234b6361e913ab9361411b6b0b4b7149110179f60691b61024082015261025301600080516020612a8683398151915281527f756c653d226576656e6f64642220643d224d3836342e363433203238332e393360208201527f37433836352e313836203238332e363035203836352e373038203238342e323560408201527f37203836352e323339203238342e3638334c3834342e323638203330332e373160608201527f39433834332e393338203330342e303138203834342e303933203330342e353160808201527f37203834342e353236203330342e3534384c3835332e373236203330352e323060a08201527f37433835342e313834203330352e3234203835342e333231203330352e37383760c08201527f203835332e393432203330362e3037314c3833332e383834203332312e31313260e08201527f433833332e353036203332312e333936203833332e363433203332312e3934336101008201527f203833342e313031203332312e3937364c3834342e303037203332322e3638356101208201527f433834342e343931203332322e3732203834342e363035203332332e333139206101408201527f3834342e313737203332332e35384c3739372e373532203335312e39353443376101608201527f39372e323039203335322e323836203739362e363837203335312e36333420376101808201527f39372e313536203335312e3230394c3831382e343033203333312e39323243386101a08201527f31382e373333203333312e363232203831382e353737203333312e31323320386101c08201527f31382e313435203333312e3039324c3830382e373438203333302e34324338306101e08201527f382e323932203333302e333837203830382e313534203332392e3834332038306102008201527f382e353239203332392e3535384c3832382e303534203331342e3734344338326102208201527f382e3433203331342e343539203832382e323931203331332e393135203832376102408201527f2e383335203331332e3838324c3831382e333839203331332e323036433831376102608201527f2e393034203331332e313731203831372e3739203331322e353732203831382e6102808201527f323138203331322e3331314c3836342e363433203238332e3933375a222066696102a08201526c36361e913bb434ba329110179f60991b6102c08201526102cd017f3c67207472616e73666f726d3d226d617472697828302e39383738323720302e81527f313535353537202d302e32353532363120302e3936363837322032353020373360208201527f3529223e3c7465787420666f6e742d66616d696c793d22496e7465722c20736160408201527f6e732d73657269662220666f6e742d7765696768743d22626f6c642220666f6e60608201527f742d73697a653d223432222066696c6c3d2223453545374638223e00000000006080820152609b016121e99161020f565b7f3c2f746578743e3c7465787420666f6e742d66616d696c793d22496e7465722c81527f2073616e732d73657269662220666f6e742d7765696768743d226e6f726d616c60208201527f2220793d2234302220666f6e742d73697a653d223232222066696c6c3d222337604082015266231c189c99111f60c91b60608201526067016122749161020f565b6a1e17ba32bc3a1f1e17b39f60a91b8152600b017f3c696d6167652077696474683d2231363722206865696768743d22313637222081527f7472616e73666f726d3d226d617472697828302e39383738323720302e31353560208201527f353537202d302e32353532363120302e393636383732203434342e313137203560408201526d191a17189b949110343932b31e9160911b6060820152606e0161231a9161020f565b631110179f60e11b8152600401651e3232b3399f60d11b81526006017f3c66696c7465722069643d226469736b657474652d736861646f772220783d2281527f37302e373438392220793d223139352e373132222077696474683d223935352e60208201527f37333322206865696768743d223833322e353538222066696c746572556e697460408201527f733d227573657253706163654f6e5573652220636f6c6f722d696e746572706f60608201527f6c6174696f6e2d66696c746572733d2273524742223e3c6665466c6f6f64206660808201527f6c6f6f642d6f7061636974793d223022202f3e3c6665426c656e6420696e3d2260a08201527f536f757263654772617068696322202f3e3c6665476175737369616e426c757260c08201527f20737464446576696174696f6e3d22343222202f3e3c2f66696c7465723e000060e082015260fe017f3c6c696e6561724772616469656e742069643d226261636b67726f756e64222081527f78313d223533322e35222079313d2230222078323d223533322e35222079323d60208201527f223130363522206772616469656e74556e6974733d227573657253706163654f60408201527f6e557365223e3c73746f70202f3e3c73746f70206f66667365743d223122207360608201527f746f702d636f6c6f723d222331333133313322202f3e3c2f6c696e656172477260808201526630b234b2b73a1f60c91b60a082015260a7017f3c72616469616c4772616469656e742069643d226261636b67726f756e642d7281527f616469616c222063783d2230222063793d22302220723d22312220677261646960208201527f656e74556e6974733d227573657253706163654f6e557365222067726164696560408201527f6e745472616e73666f726d3d227472616e736c617465283533322e352035333260608201527f2e352920726f746174652838392e39363129207363616c652837333529223e3c60808201527039ba37b81039ba37b816b1b7b637b91e9160791b60a082015260b101612616908261020f565b7f22202f3e3c73746f70206f66667365743d2231222073746f702d636f6c6f723d8152601160f91b6020820152602101612650908261020f565b7f222073746f702d6f7061636974793d223022202f3e3c2f72616469616c4772618152653234b2b73a1f60d11b60208201526026017f3c6c696e6561724772616469656e742069643d226469736b657474652d67726181527f6469656e74222078313d223932352e363236222079313d223235362e3839362260208201527f2078323d223133362e373739222079323d223830302e3230332220677261646960408201527f656e74556e6974733d227573657253706163654f6e557365223e3c73746f702060608201526b39ba37b816b1b7b637b91e9160a11b6080820152608c0161273c908261020f565b7f22202f3e3c73746f70206f66667365743d2231222073746f702d636f6c6f723d81527f222332433331334622202f3e3c2f6c696e6561724772616469656e743e0000006020820152603d017f3c6c696e6561724772616469656e742069643d226d61696e223e3c73746f702081526b39ba37b816b1b7b637b91e9160a11b6020820152602c016127cc9161020f565b741110179f1e17b634b732b0b923b930b234b2b73a1f60591b8152601501661e17b232b3399f60c91b8152600701651e17b9bb339f60d11b81526006010390601f1991828101825261281e90826100fc565b612827906129aa565b6040517f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000602082015291908290603a82016128619161020f565b03908101825261287190826100fc565b90565b604051906020820182811067ffffffffffffffff821117612899575b60405260008252565b6128a16100e5565b612890565b604051906060820182811067ffffffffffffffff821117612917575b604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b61291f6100e5565b6128c2565b50634e487b7160e01b600052601160045260246000fd5b600290600219811161294b570190565b610222612924565b6001600160fe1b03811160011661296b575b60021b90565b612973612924565b612965565b906129828261012b565b61298f60405191826100fc565b82815280926129a0601f199161012b565b0190602036910137565b805115612a7c576129b96128a6565b6129dd6129d86129d36129cc855161293b565b6003900490565b612953565b612978565b9160208301918182518301915b828210612a2a57505050600390510680600114612a1757600214612a0c575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c16880101516002860153168501015190820153019391906129ea565b5061287161287456fe3c706174682066696c6c2d72756c653d226576656e6f64642220636c69702d72a3646970667358221220dcdcb8d4003e49048beca2ba9c0a200a894022b7deb6cc7334be65e6931c07fe6c6578706572696d656e74616cf564736f6c634300080c0041", + "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ENS\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"color\",\"type\":\"string\"}],\"name\":\"generateBase64\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"generateBase64(string,string,string,string)\":{\"details\":\"Generates a SVG image.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/util/FleekSVG.sol\":\"FleekSVG\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@openzeppelin/contracts/utils/Base64.sol\":{\"keccak256\":\"0x5f3461639fe20794cfb4db4a6d8477388a15b2e70a018043084b7c4bedfa8136\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://77e5309e2cc4cdc3395214edb0ff43ff5a5f7373f5a425383e540f6fab530f96\",\"dweb:/ipfs/QmTV8DZ9knJDa3b5NPBFQqjvTzodyZVjRUg5mx5A99JPLJ\"]},\"@openzeppelin/contracts/utils/Strings.sol\":{\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8c969013129ba9e651a20735ef659fef6d8a1139ea3607bd4b26ddea2d645634\",\"dweb:/ipfs/QmVhVa6LGuzAcB8qgDtVHRkucn4ihj5UZr8xBLcJkP6ucb\"]},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://33bbf48cc069be677705037ba7520c22b1b622c23b33e1a71495f2d36549d40b\",\"dweb:/ipfs/Qmct36zWXv3j7LZB83uwbg7TXwnZSN1fqHNDZ93GG98bGz\"]},\"contracts/util/FleekSVG.sol\":{\"keccak256\":\"0x9d52d0defd643999776563c3ac36f084ae5a04a22c76ec316a0aadf6666c3c9b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://87bc5cca5451b7b8f3986dec26087857fe0f09505116536efad370172fe731a3\",\"dweb:/ipfs/QmZmDxPG8BUUjrVD92T2dktcuFQBxvHgMEnWx5aPBcSfrA\"]}},\"version\":1}", + "storageLayout": { + "storage": [], + "types": null + } +} \ No newline at end of file diff --git a/contracts/deployments/sepolia/proxy.json b/contracts/deployments/sepolia/proxy.json new file mode 100644 index 0000000..8ab4a9e --- /dev/null +++ b/contracts/deployments/sepolia/proxy.json @@ -0,0 +1,8 @@ +{ + "FleekERC721": [ + { + "address": "0x40208b6aFfCc39CD42A25EC47B410Cfe117837D6", + "timestamp": "6/16/2023, 12:21:27 PM" + } + ] + } \ No newline at end of file diff --git a/contracts/deployments/sepolia/solcInputs/51265c9b241f9c7af77f823edadaae04.json b/contracts/deployments/sepolia/solcInputs/51265c9b241f9c7af77f823edadaae04.json new file mode 100644 index 0000000..cd6851c --- /dev/null +++ b/contracts/deployments/sepolia/solcInputs/51265c9b241f9c7af77f823edadaae04.json @@ -0,0 +1,147 @@ +{ + "language": "Solidity", + "sources": { + "@ensdomains/ens-contracts/contracts/registry/ENS.sol": { + "content": "pragma solidity >=0.8.4;\n\ninterface ENS {\n // Logged when the owner of a node assigns a new owner to a subnode.\n event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);\n\n // Logged when the owner of a node transfers ownership to a new account.\n event Transfer(bytes32 indexed node, address owner);\n\n // Logged when the resolver for a node changes.\n event NewResolver(bytes32 indexed node, address resolver);\n\n // Logged when the TTL of a node changes\n event NewTTL(bytes32 indexed node, uint64 ttl);\n\n // Logged when an operator is added or removed.\n event ApprovalForAll(\n address indexed owner,\n address indexed operator,\n bool approved\n );\n\n function setRecord(\n bytes32 node,\n address owner,\n address resolver,\n uint64 ttl\n ) external;\n\n function setSubnodeRecord(\n bytes32 node,\n bytes32 label,\n address owner,\n address resolver,\n uint64 ttl\n ) external;\n\n function setSubnodeOwner(\n bytes32 node,\n bytes32 label,\n address owner\n ) external returns (bytes32);\n\n function setResolver(bytes32 node, address resolver) external;\n\n function setOwner(bytes32 node, address owner) external;\n\n function setTTL(bytes32 node, uint64 ttl) external;\n\n function setApprovalForAll(address operator, bool approved) external;\n\n function owner(bytes32 node) external view returns (address);\n\n function resolver(bytes32 node) external view returns (address);\n\n function ttl(bytes32 node) external view returns (uint64);\n\n function recordExists(bytes32 node) external view returns (bool);\n\n function isApprovedForAll(\n address owner,\n address operator\n ) external view returns (bool);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IABIResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IABIResolver {\n event ABIChanged(bytes32 indexed node, uint256 indexed contentType);\n\n /**\n * Returns the ABI associated with an ENS node.\n * Defined in EIP205.\n * @param node The ENS node to query\n * @param contentTypes A bitwise OR of the ABI formats accepted by the caller.\n * @return contentType The content type of the return value\n * @return data The ABI data\n */\n function ABI(\n bytes32 node,\n uint256 contentTypes\n ) external view returns (uint256, bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddressResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\n/**\n * Interface for the new (multicoin) addr function.\n */\ninterface IAddressResolver {\n event AddressChanged(\n bytes32 indexed node,\n uint256 coinType,\n bytes newAddress\n );\n\n function addr(\n bytes32 node,\n uint256 coinType\n ) external view returns (bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddrResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\n/**\n * Interface for the legacy (ETH-only) addr function.\n */\ninterface IAddrResolver {\n event AddrChanged(bytes32 indexed node, address a);\n\n /**\n * Returns the address associated with an ENS node.\n * @param node The ENS node to query.\n * @return The associated address.\n */\n function addr(bytes32 node) external view returns (address payable);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IContentHashResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IContentHashResolver {\n event ContenthashChanged(bytes32 indexed node, bytes hash);\n\n /**\n * Returns the contenthash associated with an ENS node.\n * @param node The ENS node to query.\n * @return The associated contenthash.\n */\n function contenthash(bytes32 node) external view returns (bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSRecordResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IDNSRecordResolver {\n // DNSRecordChanged is emitted whenever a given node/name/resource's RRSET is updated.\n event DNSRecordChanged(\n bytes32 indexed node,\n bytes name,\n uint16 resource,\n bytes record\n );\n // DNSRecordDeleted is emitted whenever a given node/name/resource's RRSET is deleted.\n event DNSRecordDeleted(bytes32 indexed node, bytes name, uint16 resource);\n\n /**\n * Obtain a DNS record.\n * @param node the namehash of the node for which to fetch the record\n * @param name the keccak-256 hash of the fully-qualified name for which to fetch the record\n * @param resource the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types\n * @return the DNS record in wire format if present, otherwise empty\n */\n function dnsRecord(\n bytes32 node,\n bytes32 name,\n uint16 resource\n ) external view returns (bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSZoneResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IDNSZoneResolver {\n // DNSZonehashChanged is emitted whenever a given node's zone hash is updated.\n event DNSZonehashChanged(\n bytes32 indexed node,\n bytes lastzonehash,\n bytes zonehash\n );\n\n /**\n * zonehash obtains the hash for the zone.\n * @param node The ENS node to query.\n * @return The associated contenthash.\n */\n function zonehash(bytes32 node) external view returns (bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IExtendedResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\ninterface IExtendedResolver {\n function resolve(\n bytes memory name,\n bytes memory data\n ) external view returns (bytes memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IInterfaceResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IInterfaceResolver {\n event InterfaceChanged(\n bytes32 indexed node,\n bytes4 indexed interfaceID,\n address implementer\n );\n\n /**\n * Returns the address of a contract that implements the specified interface for this name.\n * If an implementer has not been set for this interfaceID and name, the resolver will query\n * the contract at `addr()`. If `addr()` is set, a contract exists at that address, and that\n * contract implements EIP165 and returns `true` for the specified interfaceID, its address\n * will be returned.\n * @param node The ENS node to query.\n * @param interfaceID The EIP 165 interface ID to check for.\n * @return The address that implements this interface, or 0 if the interface is unsupported.\n */\n function interfaceImplementer(\n bytes32 node,\n bytes4 interfaceID\n ) external view returns (address);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/INameResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface INameResolver {\n event NameChanged(bytes32 indexed node, string name);\n\n /**\n * Returns the name associated with an ENS node, for reverse records.\n * Defined in EIP181.\n * @param node The ENS node to query.\n * @return The associated name.\n */\n function name(bytes32 node) external view returns (string memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/IPubkeyResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface IPubkeyResolver {\n event PubkeyChanged(bytes32 indexed node, bytes32 x, bytes32 y);\n\n /**\n * Returns the SECP256k1 public key associated with an ENS node.\n * Defined in EIP 619.\n * @param node The ENS node to query\n * @return x The X coordinate of the curve point for the public key.\n * @return y The Y coordinate of the curve point for the public key.\n */\n function pubkey(bytes32 node) external view returns (bytes32 x, bytes32 y);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/profiles/ITextResolver.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\ninterface ITextResolver {\n event TextChanged(\n bytes32 indexed node,\n string indexed indexedKey,\n string key,\n string value\n );\n\n /**\n * Returns the text data associated with an ENS node and key.\n * @param node The ENS node to query.\n * @param key The text data key to query.\n * @return The associated text data.\n */\n function text(\n bytes32 node,\n string calldata key\n ) external view returns (string memory);\n}\n" + }, + "@ensdomains/ens-contracts/contracts/resolvers/Resolver.sol": { + "content": "//SPDX-License-Identifier: MIT\npragma solidity >=0.8.4;\n\nimport \"@openzeppelin/contracts/utils/introspection/IERC165.sol\";\nimport \"./profiles/IABIResolver.sol\";\nimport \"./profiles/IAddressResolver.sol\";\nimport \"./profiles/IAddrResolver.sol\";\nimport \"./profiles/IContentHashResolver.sol\";\nimport \"./profiles/IDNSRecordResolver.sol\";\nimport \"./profiles/IDNSZoneResolver.sol\";\nimport \"./profiles/IInterfaceResolver.sol\";\nimport \"./profiles/INameResolver.sol\";\nimport \"./profiles/IPubkeyResolver.sol\";\nimport \"./profiles/ITextResolver.sol\";\nimport \"./profiles/IExtendedResolver.sol\";\n\n/**\n * A generic resolver interface which includes all the functions including the ones deprecated\n */\ninterface Resolver is\n IERC165,\n IABIResolver,\n IAddressResolver,\n IAddrResolver,\n IContentHashResolver,\n IDNSRecordResolver,\n IDNSZoneResolver,\n IInterfaceResolver,\n INameResolver,\n IPubkeyResolver,\n ITextResolver,\n IExtendedResolver\n{\n /* Deprecated events */\n event ContentChanged(bytes32 indexed node, bytes32 hash);\n\n function setABI(\n bytes32 node,\n uint256 contentType,\n bytes calldata data\n ) external;\n\n function setAddr(bytes32 node, address addr) external;\n\n function setAddr(bytes32 node, uint256 coinType, bytes calldata a) external;\n\n function setContenthash(bytes32 node, bytes calldata hash) external;\n\n function setDnsrr(bytes32 node, bytes calldata data) external;\n\n function setName(bytes32 node, string calldata _name) external;\n\n function setPubkey(bytes32 node, bytes32 x, bytes32 y) external;\n\n function setText(\n bytes32 node,\n string calldata key,\n string calldata value\n ) external;\n\n function setInterface(\n bytes32 node,\n bytes4 interfaceID,\n address implementer\n ) external;\n\n function multicall(\n bytes[] calldata data\n ) external returns (bytes[] memory results);\n\n function multicallWithNodeCheck(\n bytes32 nodehash,\n bytes[] calldata data\n ) external returns (bytes[] memory results);\n\n /* Deprecated functions */\n function content(bytes32 node) external view returns (bytes32);\n\n function multihash(bytes32 node) external view returns (bytes memory);\n\n function setContent(bytes32 node, bytes32 hash) external;\n\n function setMultihash(bytes32 node, bytes calldata hash) external;\n}\n" + }, + "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n * @custom:oz-retyped-from bool\n */\n uint8 private _initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private _initializing;\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint8 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n * constructor.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n bool isTopLevelCall = !_initializing;\n require(\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n \"Initializable: contract is already initialized\"\n );\n _initialized = 1;\n if (isTopLevelCall) {\n _initializing = true;\n }\n _;\n if (isTopLevelCall) {\n _initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: setting the version to 255 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint8 version) {\n require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n _initialized = version;\n _initializing = true;\n _;\n _initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n _;\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n require(!_initializing, \"Initializable: contract is initializing\");\n if (_initialized < type(uint8).max) {\n _initialized = type(uint8).max;\n emit Initialized(type(uint8).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint8) {\n return _initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _initializing;\n }\n}\n" + }, + "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC721Upgradeable.sol\";\nimport \"./IERC721ReceiverUpgradeable.sol\";\nimport \"./extensions/IERC721MetadataUpgradeable.sol\";\nimport \"../../utils/AddressUpgradeable.sol\";\nimport \"../../utils/ContextUpgradeable.sol\";\nimport \"../../utils/StringsUpgradeable.sol\";\nimport \"../../utils/introspection/ERC165Upgradeable.sol\";\nimport \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including\n * the Metadata extension, but not including the Enumerable extension, which is available separately as\n * {ERC721Enumerable}.\n */\ncontract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {\n using AddressUpgradeable for address;\n using StringsUpgradeable for uint256;\n\n // Token name\n string private _name;\n\n // Token symbol\n string private _symbol;\n\n // Mapping from token ID to owner address\n mapping(uint256 => address) private _owners;\n\n // Mapping owner address to token count\n mapping(address => uint256) private _balances;\n\n // Mapping from token ID to approved address\n mapping(uint256 => address) private _tokenApprovals;\n\n // Mapping from owner to operator approvals\n mapping(address => mapping(address => bool)) private _operatorApprovals;\n\n /**\n * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n */\n function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {\n __ERC721_init_unchained(name_, symbol_);\n }\n\n function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {\n _name = name_;\n _symbol = symbol_;\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) {\n return\n interfaceId == type(IERC721Upgradeable).interfaceId ||\n interfaceId == type(IERC721MetadataUpgradeable).interfaceId ||\n super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev See {IERC721-balanceOf}.\n */\n function balanceOf(address owner) public view virtual override returns (uint256) {\n require(owner != address(0), \"ERC721: address zero is not a valid owner\");\n return _balances[owner];\n }\n\n /**\n * @dev See {IERC721-ownerOf}.\n */\n function ownerOf(uint256 tokenId) public view virtual override returns (address) {\n address owner = _ownerOf(tokenId);\n require(owner != address(0), \"ERC721: invalid token ID\");\n return owner;\n }\n\n /**\n * @dev See {IERC721Metadata-name}.\n */\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IERC721Metadata-symbol}.\n */\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev See {IERC721Metadata-tokenURI}.\n */\n function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {\n _requireMinted(tokenId);\n\n string memory baseURI = _baseURI();\n return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : \"\";\n }\n\n /**\n * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each\n * token will be the concatenation of the `baseURI` and the `tokenId`. Empty\n * by default, can be overridden in child contracts.\n */\n function _baseURI() internal view virtual returns (string memory) {\n return \"\";\n }\n\n /**\n * @dev See {IERC721-approve}.\n */\n function approve(address to, uint256 tokenId) public virtual override {\n address owner = ERC721Upgradeable.ownerOf(tokenId);\n require(to != owner, \"ERC721: approval to current owner\");\n\n require(\n _msgSender() == owner || isApprovedForAll(owner, _msgSender()),\n \"ERC721: approve caller is not token owner or approved for all\"\n );\n\n _approve(to, tokenId);\n }\n\n /**\n * @dev See {IERC721-getApproved}.\n */\n function getApproved(uint256 tokenId) public view virtual override returns (address) {\n _requireMinted(tokenId);\n\n return _tokenApprovals[tokenId];\n }\n\n /**\n * @dev See {IERC721-setApprovalForAll}.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n _setApprovalForAll(_msgSender(), operator, approved);\n }\n\n /**\n * @dev See {IERC721-isApprovedForAll}.\n */\n function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {\n return _operatorApprovals[owner][operator];\n }\n\n /**\n * @dev See {IERC721-transferFrom}.\n */\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) public virtual override {\n //solhint-disable-next-line max-line-length\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: caller is not token owner or approved\");\n\n _transfer(from, to, tokenId);\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) public virtual override {\n safeTransferFrom(from, to, tokenId, \"\");\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes memory data\n ) public virtual override {\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: caller is not token owner or approved\");\n _safeTransfer(from, to, tokenId, data);\n }\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * `data` is additional data, it has no specified format and it is sent in call to `to`.\n *\n * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.\n * implement alternative mechanisms to perform token transfer, such as signature-based.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeTransfer(\n address from,\n address to,\n uint256 tokenId,\n bytes memory data\n ) internal virtual {\n _transfer(from, to, tokenId);\n require(_checkOnERC721Received(from, to, tokenId, data), \"ERC721: transfer to non ERC721Receiver implementer\");\n }\n\n /**\n * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist\n */\n function _ownerOf(uint256 tokenId) internal view virtual returns (address) {\n return _owners[tokenId];\n }\n\n /**\n * @dev Returns whether `tokenId` exists.\n *\n * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.\n *\n * Tokens start existing when they are minted (`_mint`),\n * and stop existing when they are burned (`_burn`).\n */\n function _exists(uint256 tokenId) internal view virtual returns (bool) {\n return _ownerOf(tokenId) != address(0);\n }\n\n /**\n * @dev Returns whether `spender` is allowed to manage `tokenId`.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {\n address owner = ERC721Upgradeable.ownerOf(tokenId);\n return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);\n }\n\n /**\n * @dev Safely mints `tokenId` and transfers it to `to`.\n *\n * Requirements:\n *\n * - `tokenId` must not exist.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeMint(address to, uint256 tokenId) internal virtual {\n _safeMint(to, tokenId, \"\");\n }\n\n /**\n * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n */\n function _safeMint(\n address to,\n uint256 tokenId,\n bytes memory data\n ) internal virtual {\n _mint(to, tokenId);\n require(\n _checkOnERC721Received(address(0), to, tokenId, data),\n \"ERC721: transfer to non ERC721Receiver implementer\"\n );\n }\n\n /**\n * @dev Mints `tokenId` and transfers it to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n *\n * Requirements:\n *\n * - `tokenId` must not exist.\n * - `to` cannot be the zero address.\n *\n * Emits a {Transfer} event.\n */\n function _mint(address to, uint256 tokenId) internal virtual {\n require(to != address(0), \"ERC721: mint to the zero address\");\n require(!_exists(tokenId), \"ERC721: token already minted\");\n\n _beforeTokenTransfer(address(0), to, tokenId, 1);\n\n // Check that tokenId was not minted by `_beforeTokenTransfer` hook\n require(!_exists(tokenId), \"ERC721: token already minted\");\n\n unchecked {\n // Will not overflow unless all 2**256 token ids are minted to the same owner.\n // Given that tokens are minted one by one, it is impossible in practice that\n // this ever happens. Might change if we allow batch minting.\n // The ERC fails to describe this case.\n _balances[to] += 1;\n }\n\n _owners[tokenId] = to;\n\n emit Transfer(address(0), to, tokenId);\n\n _afterTokenTransfer(address(0), to, tokenId, 1);\n }\n\n /**\n * @dev Destroys `tokenId`.\n * The approval is cleared when the token is burned.\n * This is an internal function that does not check if the sender is authorized to operate on the token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n *\n * Emits a {Transfer} event.\n */\n function _burn(uint256 tokenId) internal virtual {\n address owner = ERC721Upgradeable.ownerOf(tokenId);\n\n _beforeTokenTransfer(owner, address(0), tokenId, 1);\n\n // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook\n owner = ERC721Upgradeable.ownerOf(tokenId);\n\n // Clear approvals\n delete _tokenApprovals[tokenId];\n\n unchecked {\n // Cannot overflow, as that would require more tokens to be burned/transferred\n // out than the owner initially received through minting and transferring in.\n _balances[owner] -= 1;\n }\n delete _owners[tokenId];\n\n emit Transfer(owner, address(0), tokenId);\n\n _afterTokenTransfer(owner, address(0), tokenId, 1);\n }\n\n /**\n * @dev Transfers `tokenId` from `from` to `to`.\n * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n *\n * Emits a {Transfer} event.\n */\n function _transfer(\n address from,\n address to,\n uint256 tokenId\n ) internal virtual {\n require(ERC721Upgradeable.ownerOf(tokenId) == from, \"ERC721: transfer from incorrect owner\");\n require(to != address(0), \"ERC721: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, tokenId, 1);\n\n // Check that tokenId was not transferred by `_beforeTokenTransfer` hook\n require(ERC721Upgradeable.ownerOf(tokenId) == from, \"ERC721: transfer from incorrect owner\");\n\n // Clear approvals from the previous owner\n delete _tokenApprovals[tokenId];\n\n unchecked {\n // `_balances[from]` cannot overflow for the same reason as described in `_burn`:\n // `from`'s balance is the number of token held, which is at least one before the current\n // transfer.\n // `_balances[to]` could overflow in the conditions described in `_mint`. That would require\n // all 2**256 token ids to be minted, which in practice is impossible.\n _balances[from] -= 1;\n _balances[to] += 1;\n }\n _owners[tokenId] = to;\n\n emit Transfer(from, to, tokenId);\n\n _afterTokenTransfer(from, to, tokenId, 1);\n }\n\n /**\n * @dev Approve `to` to operate on `tokenId`\n *\n * Emits an {Approval} event.\n */\n function _approve(address to, uint256 tokenId) internal virtual {\n _tokenApprovals[tokenId] = to;\n emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId);\n }\n\n /**\n * @dev Approve `operator` to operate on all of `owner` tokens\n *\n * Emits an {ApprovalForAll} event.\n */\n function _setApprovalForAll(\n address owner,\n address operator,\n bool approved\n ) internal virtual {\n require(owner != operator, \"ERC721: approve to caller\");\n _operatorApprovals[owner][operator] = approved;\n emit ApprovalForAll(owner, operator, approved);\n }\n\n /**\n * @dev Reverts if the `tokenId` has not been minted yet.\n */\n function _requireMinted(uint256 tokenId) internal view virtual {\n require(_exists(tokenId), \"ERC721: invalid token ID\");\n }\n\n /**\n * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.\n * The call is not executed if the target address is not a contract.\n *\n * @param from address representing the previous owner of the given token ID\n * @param to target address that will receive the tokens\n * @param tokenId uint256 ID of the token to be transferred\n * @param data bytes optional data to send along with the call\n * @return bool whether the call correctly returned the expected magic value\n */\n function _checkOnERC721Received(\n address from,\n address to,\n uint256 tokenId,\n bytes memory data\n ) private returns (bool) {\n if (to.isContract()) {\n try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {\n return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;\n } catch (bytes memory reason) {\n if (reason.length == 0) {\n revert(\"ERC721: transfer to non ERC721Receiver implementer\");\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n revert(add(32, reason), mload(reason))\n }\n }\n }\n } else {\n return true;\n }\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is\n * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.\n * - When `from` is zero, the tokens will be minted for `to`.\n * - When `to` is zero, ``from``'s tokens will be burned.\n * - `from` and `to` are never both zero.\n * - `batchSize` is non-zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256, /* firstTokenId */\n uint256 batchSize\n ) internal virtual {\n if (batchSize > 1) {\n if (from != address(0)) {\n _balances[from] -= batchSize;\n }\n if (to != address(0)) {\n _balances[to] += batchSize;\n }\n }\n }\n\n /**\n * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is\n * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.\n * - When `from` is zero, the tokens were minted for `to`.\n * - When `to` is zero, ``from``'s tokens were burned.\n * - `from` and `to` are never both zero.\n * - `batchSize` is non-zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 firstTokenId,\n uint256 batchSize\n ) internal virtual {}\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[44] private __gap;\n}\n" + }, + "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC721Upgradeable.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721MetadataUpgradeable is IERC721Upgradeable {\n /**\n * @dev Returns the token collection name.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the token collection symbol.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n */\n function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n" + }, + "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721ReceiverUpgradeable {\n /**\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n * by `operator` from `from`, this function is called.\n *\n * It must return its Solidity selector to confirm the token transfer.\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n *\n * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n */\n function onERC721Received(\n address operator,\n address from,\n uint256 tokenId,\n bytes calldata data\n ) external returns (bytes4);\n}\n" + }, + "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165Upgradeable.sol\";\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721Upgradeable is IERC165Upgradeable {\n /**\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n */\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n */\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n */\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n /**\n * @dev Returns the number of tokens in ``owner``'s account.\n */\n function balanceOf(address owner) external view returns (uint256 balance);\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) external view returns (address owner);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes calldata data\n ) external;\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n /**\n * @dev Transfers `tokenId` token from `from` to `to`.\n *\n * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721\n * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n * understand this adds an external call which potentially creates a reentrancy vulnerability.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function approve(address to, uint256 tokenId) external;\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the caller.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool _approved) external;\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) external view returns (address operator);\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}\n */\n function isApprovedForAll(address owner, address operator) external view returns (bool);\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165Upgradeable.sol\";\nimport \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {\n function __ERC165_init() internal onlyInitializing {\n }\n\n function __ERC165_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IERC165Upgradeable).interfaceId;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165Upgradeable {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary MathUpgradeable {\n enum Rounding {\n Down, // Toward negative infinity\n Up, // Toward infinity\n Zero // Toward zero\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two numbers. The result is rounded towards\n * zero.\n */\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b) / 2 can overflow.\n return (a & b) + (a ^ b) / 2;\n }\n\n /**\n * @dev Returns the ceiling of the division of two numbers.\n *\n * This differs from standard division with `/` in that it rounds up instead\n * of rounding down.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b - 1) / b can overflow on addition, so we distribute.\n return a == 0 ? 0 : (a - 1) / b + 1;\n }\n\n /**\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n * with further edits by Uniswap Labs also under MIT license.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator\n ) internal pure returns (uint256 result) {\n unchecked {\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = prod1 * 2^256 + prod0.\n uint256 prod0; // Least significant 256 bits of the product\n uint256 prod1; // Most significant 256 bits of the product\n assembly {\n let mm := mulmod(x, y, not(0))\n prod0 := mul(x, y)\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n }\n\n // Handle non-overflow cases, 256 by 256 division.\n if (prod1 == 0) {\n return prod0 / denominator;\n }\n\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\n require(denominator > prod1);\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [prod1 prod0].\n uint256 remainder;\n assembly {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n prod1 := sub(prod1, gt(remainder, prod0))\n prod0 := sub(prod0, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n // See https://cs.stackexchange.com/q/138556/92363.\n\n // Does not overflow because the denominator cannot be zero at this stage in the function.\n uint256 twos = denominator & (~denominator + 1);\n assembly {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [prod1 prod0] by twos.\n prod0 := div(prod0, twos)\n\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from prod1 into prod0.\n prod0 |= prod1 * twos;\n\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv = 1 mod 2^4.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n // in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n // is no longer required.\n result = prod0 * inverse;\n return result;\n }\n }\n\n /**\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator,\n Rounding rounding\n ) internal pure returns (uint256) {\n uint256 result = mulDiv(x, y, denominator);\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n result += 1;\n }\n return result;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n *\n * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n //\n // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n //\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n //\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n uint256 result = 1 << (log2(a) >> 1);\n\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n // into the expected uint128 result.\n unchecked {\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n return min(result, a / result);\n }\n }\n\n /**\n * @notice Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 2, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 128;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 64;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 32;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 16;\n }\n if (value >> 8 > 0) {\n value >>= 8;\n result += 8;\n }\n if (value >> 4 > 0) {\n value >>= 4;\n result += 4;\n }\n if (value >> 2 > 0) {\n value >>= 2;\n result += 2;\n }\n if (value >> 1 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 10, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10**64) {\n value /= 10**64;\n result += 64;\n }\n if (value >= 10**32) {\n value /= 10**32;\n result += 32;\n }\n if (value >= 10**16) {\n value /= 10**16;\n result += 16;\n }\n if (value >= 10**8) {\n value /= 10**8;\n result += 8;\n }\n if (value >= 10**4) {\n value /= 10**4;\n result += 4;\n }\n if (value >= 10**2) {\n value /= 10**2;\n result += 2;\n }\n if (value >= 10**1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 256, rounded down, of a positive value.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 16;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 8;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 4;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 2;\n }\n if (value >> 8 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\n }\n }\n}\n" + }, + "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/MathUpgradeable.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary StringsUpgradeable {\n bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n uint8 private constant _ADDRESS_LENGTH = 20;\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = MathUpgradeable.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n /// @solidity memory-safe-assembly\n assembly {\n ptr := add(buffer, add(32, length))\n }\n while (true) {\n ptr--;\n /// @solidity memory-safe-assembly\n assembly {\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, MathUpgradeable.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n bytes memory buffer = new bytes(2 * length + 2);\n buffer[0] = \"0\";\n buffer[1] = \"x\";\n for (uint256 i = 2 * length + 1; i > 1; --i) {\n buffer[i] = _SYMBOLS[value & 0xf];\n value >>= 4;\n }\n require(value == 0, \"Strings: hex length insufficient\");\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC721/IERC721.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n /**\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n */\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n */\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n */\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n /**\n * @dev Returns the number of tokens in ``owner``'s account.\n */\n function balanceOf(address owner) external view returns (uint256 balance);\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) external view returns (address owner);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes calldata data\n ) external;\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n /**\n * @dev Transfers `tokenId` token from `from` to `to`.\n *\n * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721\n * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n * understand this adds an external call which potentially creates a reentrancy vulnerability.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function approve(address to, uint256 tokenId) external;\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the caller.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool _approved) external;\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) external view returns (address operator);\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}\n */\n function isApprovedForAll(address owner, address operator) external view returns (bool);\n}\n" + }, + "@openzeppelin/contracts/utils/Base64.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides a set of functions to operate with Base64 strings.\n *\n * _Available since v4.5._\n */\nlibrary Base64 {\n /**\n * @dev Base64 Encoding/Decoding Table\n */\n string internal constant _TABLE = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\n /**\n * @dev Converts a `bytes` to its Bytes64 `string` representation.\n */\n function encode(bytes memory data) internal pure returns (string memory) {\n /**\n * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence\n * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol\n */\n if (data.length == 0) return \"\";\n\n // Loads the table into memory\n string memory table = _TABLE;\n\n // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter\n // and split into 4 numbers of 6 bits.\n // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up\n // - `data.length + 2` -> Round up\n // - `/ 3` -> Number of 3-bytes chunks\n // - `4 *` -> 4 characters for each chunk\n string memory result = new string(4 * ((data.length + 2) / 3));\n\n /// @solidity memory-safe-assembly\n assembly {\n // Prepare the lookup table (skip the first \"length\" byte)\n let tablePtr := add(table, 1)\n\n // Prepare result pointer, jump over length\n let resultPtr := add(result, 32)\n\n // Run over the input, 3 bytes at a time\n for {\n let dataPtr := data\n let endPtr := add(data, mload(data))\n } lt(dataPtr, endPtr) {\n\n } {\n // Advance 3 bytes\n dataPtr := add(dataPtr, 3)\n let input := mload(dataPtr)\n\n // To write each character, shift the 3 bytes (18 bits) chunk\n // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)\n // and apply logical AND with 0x3F which is the number of\n // the previous character in the ASCII table prior to the Base64 Table\n // The result is then added to the table to get the character to write,\n // and finally write it in the result pointer but with a left shift\n // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits\n\n mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))\n resultPtr := add(resultPtr, 1) // Advance\n\n mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))\n resultPtr := add(resultPtr, 1) // Advance\n\n mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))\n resultPtr := add(resultPtr, 1) // Advance\n\n mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))\n resultPtr := add(resultPtr, 1) // Advance\n }\n\n // When data `bytes` is not exactly 3 bytes long\n // it is padded with `=` characters at the end\n switch mod(mload(data), 3)\n case 1 {\n mstore8(sub(resultPtr, 1), 0x3d)\n mstore8(sub(resultPtr, 2), 0x3d)\n }\n case 2 {\n mstore8(sub(resultPtr, 1), 0x3d)\n }\n }\n\n return result;\n }\n}\n" + }, + "@openzeppelin/contracts/utils/introspection/IERC165.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n" + }, + "@openzeppelin/contracts/utils/math/Math.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Down, // Toward negative infinity\n Up, // Toward infinity\n Zero // Toward zero\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two numbers. The result is rounded towards\n * zero.\n */\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b) / 2 can overflow.\n return (a & b) + (a ^ b) / 2;\n }\n\n /**\n * @dev Returns the ceiling of the division of two numbers.\n *\n * This differs from standard division with `/` in that it rounds up instead\n * of rounding down.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b - 1) / b can overflow on addition, so we distribute.\n return a == 0 ? 0 : (a - 1) / b + 1;\n }\n\n /**\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n * with further edits by Uniswap Labs also under MIT license.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator\n ) internal pure returns (uint256 result) {\n unchecked {\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = prod1 * 2^256 + prod0.\n uint256 prod0; // Least significant 256 bits of the product\n uint256 prod1; // Most significant 256 bits of the product\n assembly {\n let mm := mulmod(x, y, not(0))\n prod0 := mul(x, y)\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n }\n\n // Handle non-overflow cases, 256 by 256 division.\n if (prod1 == 0) {\n return prod0 / denominator;\n }\n\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\n require(denominator > prod1);\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [prod1 prod0].\n uint256 remainder;\n assembly {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n prod1 := sub(prod1, gt(remainder, prod0))\n prod0 := sub(prod0, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n // See https://cs.stackexchange.com/q/138556/92363.\n\n // Does not overflow because the denominator cannot be zero at this stage in the function.\n uint256 twos = denominator & (~denominator + 1);\n assembly {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [prod1 prod0] by twos.\n prod0 := div(prod0, twos)\n\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from prod1 into prod0.\n prod0 |= prod1 * twos;\n\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv = 1 mod 2^4.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n // in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n // is no longer required.\n result = prod0 * inverse;\n return result;\n }\n }\n\n /**\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator,\n Rounding rounding\n ) internal pure returns (uint256) {\n uint256 result = mulDiv(x, y, denominator);\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n result += 1;\n }\n return result;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n *\n * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n //\n // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n //\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n //\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n uint256 result = 1 << (log2(a) >> 1);\n\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n // into the expected uint128 result.\n unchecked {\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n return min(result, a / result);\n }\n }\n\n /**\n * @notice Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 2, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 128;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 64;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 32;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 16;\n }\n if (value >> 8 > 0) {\n value >>= 8;\n result += 8;\n }\n if (value >> 4 > 0) {\n value >>= 4;\n result += 4;\n }\n if (value >> 2 > 0) {\n value >>= 2;\n result += 2;\n }\n if (value >> 1 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 10, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10**64) {\n value /= 10**64;\n result += 64;\n }\n if (value >= 10**32) {\n value /= 10**32;\n result += 32;\n }\n if (value >= 10**16) {\n value /= 10**16;\n result += 16;\n }\n if (value >= 10**8) {\n value /= 10**8;\n result += 8;\n }\n if (value >= 10**4) {\n value /= 10**4;\n result += 4;\n }\n if (value >= 10**2) {\n value /= 10**2;\n result += 2;\n }\n if (value >= 10**1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 256, rounded down, of a positive value.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 16;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 8;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 4;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 2;\n }\n if (value >> 8 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Strings.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n uint8 private constant _ADDRESS_LENGTH = 20;\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n /// @solidity memory-safe-assembly\n assembly {\n ptr := add(buffer, add(32, length))\n }\n while (true) {\n ptr--;\n /// @solidity memory-safe-assembly\n assembly {\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n bytes memory buffer = new bytes(2 * length + 2);\n buffer[0] = \"0\";\n buffer[1] = \"x\";\n for (uint256 i = 2 * length + 1; i > 1; --i) {\n buffer[i] = _SYMBOLS[value & 0xf];\n value >>= 4;\n }\n require(value == 0, \"Strings: hex length insufficient\");\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n }\n}\n" + }, + "contracts/FleekAccessControl.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\n\nerror MustHaveCollectionRole(uint8 role);\nerror MustHaveTokenRole(uint256 tokenId, uint8 role);\nerror MustHaveAtLeastOneOwner();\nerror RoleAlreadySet();\n\ncontract FleekAccessControl is Initializable {\n /**\n * @dev All available collection roles.\n */\n enum CollectionRoles {\n Owner,\n Verifier\n }\n\n /**\n * @dev All available token roles.\n */\n enum TokenRoles {\n Controller\n }\n\n /**\n * @dev Emitted when a token role is changed.\n */\n event TokenRoleChanged(\n uint256 indexed tokenId,\n TokenRoles indexed role,\n address indexed toAddress,\n bool status,\n address byAddress\n );\n\n /**\n * @dev Emitted when token roles version is increased and all token roles are cleared.\n */\n event TokenRolesCleared(uint256 indexed tokenId, address byAddress);\n\n /**\n * @dev Emitted when a collection role is changed.\n */\n event CollectionRoleChanged(\n CollectionRoles indexed role,\n address indexed toAddress,\n bool status,\n address byAddress\n );\n\n /**\n * @dev _collectionRolesCounter[role] is the number of addresses that have the role.\n * This is prevent Owner role to go to 0.\n */\n mapping(CollectionRoles => uint256) private _collectionRolesCounter;\n\n /**\n * @dev _collectionRoles[role][address] is the mapping of addresses that have the role.\n */\n mapping(CollectionRoles => mapping(address => bool)) private _collectionRoles;\n\n /**\n * @dev _tokenRolesVersion[tokenId] is the version of the token roles.\n * The version is incremented every time the token roles are cleared.\n * Should be incremented every token transfer.\n */\n mapping(uint256 => uint256) private _tokenRolesVersion;\n\n /**\n * @dev _tokenRoles[tokenId][version][role][address] is the mapping of addresses that have the role.\n */\n mapping(uint256 => mapping(uint256 => mapping(TokenRoles => mapping(address => bool)))) private _tokenRoles;\n\n /**\n * @dev Initializes the contract by granting the `Owner` role to the deployer.\n */\n function __FleekAccessControl_init() internal onlyInitializing {\n _grantCollectionRole(CollectionRoles.Owner, msg.sender);\n _grantCollectionRole(CollectionRoles.Verifier, msg.sender);\n }\n\n /**\n * @dev Checks if the `msg.sender` has a certain role.\n */\n function _requireCollectionRole(CollectionRoles role) internal view {\n if (!hasCollectionRole(role, msg.sender)) revert MustHaveCollectionRole(uint8(role));\n }\n\n /**\n * @dev Checks if the `msg.sender` has the `Token` role for a certain `tokenId`.\n */\n function _requireTokenRole(uint256 tokenId, TokenRoles role) internal view {\n if (!hasTokenRole(tokenId, role, msg.sender)) revert MustHaveTokenRole(tokenId, uint8(role));\n }\n\n /**\n * @dev Returns `True` if a certain address has the collection role.\n */\n function hasCollectionRole(CollectionRoles role, address account) public view returns (bool) {\n return _collectionRoles[role][account];\n }\n\n /**\n * @dev Returns `True` if a certain address has the token role.\n */\n function hasTokenRole(uint256 tokenId, TokenRoles role, address account) public view returns (bool) {\n uint256 currentVersion = _tokenRolesVersion[tokenId];\n return _tokenRoles[tokenId][currentVersion][role][account];\n }\n\n /**\n * @dev Grants the collection role to an address.\n */\n function _grantCollectionRole(CollectionRoles role, address account) internal {\n if (hasCollectionRole(role, account)) revert RoleAlreadySet();\n\n _collectionRoles[role][account] = true;\n _collectionRolesCounter[role] += 1;\n\n emit CollectionRoleChanged(role, account, true, msg.sender);\n }\n\n /**\n * @dev Revokes the collection role of an address.\n */\n function _revokeCollectionRole(CollectionRoles role, address account) internal {\n if (!hasCollectionRole(role, account)) revert RoleAlreadySet();\n if (role == CollectionRoles.Owner && _collectionRolesCounter[role] == 1) revert MustHaveAtLeastOneOwner();\n\n _collectionRoles[role][account] = false;\n _collectionRolesCounter[role] -= 1;\n\n emit CollectionRoleChanged(role, account, false, msg.sender);\n }\n\n /**\n * @dev Grants the token role to an address.\n */\n function _grantTokenRole(uint256 tokenId, TokenRoles role, address account) internal {\n if (hasTokenRole(tokenId, role, account)) revert RoleAlreadySet();\n\n uint256 currentVersion = _tokenRolesVersion[tokenId];\n _tokenRoles[tokenId][currentVersion][role][account] = true;\n\n emit TokenRoleChanged(tokenId, role, account, true, msg.sender);\n }\n\n /**\n * @dev Revokes the token role of an address.\n */\n function _revokeTokenRole(uint256 tokenId, TokenRoles role, address account) internal {\n if (!hasTokenRole(tokenId, role, account)) revert RoleAlreadySet();\n\n uint256 currentVersion = _tokenRolesVersion[tokenId];\n _tokenRoles[tokenId][currentVersion][role][account] = false;\n\n emit TokenRoleChanged(tokenId, role, account, false, msg.sender);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n function _clearTokenRoles(uint256 tokenId) internal {\n _tokenRolesVersion[tokenId] += 1;\n emit TokenRolesCleared(tokenId, msg.sender);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" + }, + "contracts/FleekAccessPoints.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport {FleekStrings} from \"./util/FleekStrings.sol\";\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\n\nerror AccessPointNotExistent();\nerror AccessPointAlreadyExists();\nerror AccessPointScoreCannotBeLower();\nerror MustBeAccessPointOwner();\nerror InvalidTokenIdForAccessPoint();\nerror AccessPointCreationStatusAlreadySet();\n\nabstract contract FleekAccessPoints is Initializable {\n using FleekStrings for FleekAccessPoints.AccessPoint;\n\n event NewAccessPoint(string apName, uint256 indexed tokenId, address indexed owner);\n event RemoveAccessPoint(string apName, uint256 indexed tokenId, address indexed owner);\n\n event ChangeAccessPointScore(string apName, uint256 indexed tokenId, uint256 score, address indexed triggeredBy);\n\n event ChangeAccessPointNameVerify(\n string apName,\n uint256 tokenId,\n bool indexed verified,\n address indexed triggeredBy\n );\n event ChangeAccessPointContentVerify(\n string apName,\n uint256 tokenId,\n bool indexed verified,\n address indexed triggeredBy\n );\n event ChangeAccessPointCreationStatus(\n string apName,\n uint256 tokenId,\n AccessPointCreationStatus status,\n address indexed triggeredBy\n );\n\n /**\n * Creation status enums for access points\n */\n enum AccessPointCreationStatus {\n DRAFT,\n APPROVED,\n REJECTED,\n REMOVED\n }\n\n /**\n * The stored data for each AccessPoint.\n */\n struct AccessPoint {\n uint256 tokenId;\n uint256 score;\n bool contentVerified;\n bool nameVerified;\n address owner;\n AccessPointCreationStatus status;\n }\n\n mapping(string => AccessPoint) private _accessPoints;\n\n mapping(uint256 => bool) private _autoApproval;\n\n /**\n * @dev Checks if the AccessPoint exists.\n */\n modifier requireAP(string memory apName) {\n if (_accessPoints[apName].owner == address(0)) revert AccessPointNotExistent();\n _;\n }\n\n /**\n * @dev A view function to gether information about an AccessPoint.\n * It returns a JSON string representing the AccessPoint information.\n */\n function getAccessPointJSON(string memory apName) public view requireAP(apName) returns (string memory) {\n AccessPoint storage _ap = _accessPoints[apName];\n return _ap.toString();\n }\n\n /**\n * @dev A view function to check if a AccessPoint is verified.\n */\n function isAccessPointNameVerified(string memory apName) public view requireAP(apName) returns (bool) {\n return _accessPoints[apName].nameVerified;\n }\n\n /**\n * @dev Increases the score of a AccessPoint registry.\n */\n function increaseAccessPointScore(string memory apName) public requireAP(apName) {\n _accessPoints[apName].score++;\n emit ChangeAccessPointScore(apName, _accessPoints[apName].tokenId, _accessPoints[apName].score, msg.sender);\n }\n\n /**\n * @dev Decreases the score of a AccessPoint registry if is greater than 0.\n */\n function decreaseAccessPointScore(string memory apName) public requireAP(apName) {\n if (_accessPoints[apName].score == 0) revert AccessPointScoreCannotBeLower();\n _accessPoints[apName].score--;\n emit ChangeAccessPointScore(apName, _accessPoints[apName].tokenId, _accessPoints[apName].score, msg.sender);\n }\n\n /**\n * @dev Add a new AccessPoint register for an app token.\n * The AP name should be a DNS or ENS url and it should be unique.\n */\n function _addAccessPoint(uint256 tokenId, string memory apName) internal {\n if (_accessPoints[apName].owner != address(0)) revert AccessPointAlreadyExists();\n\n emit NewAccessPoint(apName, tokenId, msg.sender);\n\n if (_autoApproval[tokenId]) {\n // Auto Approval is on.\n _accessPoints[apName] = AccessPoint(\n tokenId,\n 0,\n false,\n false,\n msg.sender,\n AccessPointCreationStatus.APPROVED\n );\n\n emit ChangeAccessPointCreationStatus(apName, tokenId, AccessPointCreationStatus.APPROVED, msg.sender);\n } else {\n // Auto Approval is off. Should wait for approval.\n _accessPoints[apName] = AccessPoint(tokenId, 0, false, false, msg.sender, AccessPointCreationStatus.DRAFT);\n emit ChangeAccessPointCreationStatus(apName, tokenId, AccessPointCreationStatus.DRAFT, msg.sender);\n }\n }\n\n /**\n * @dev Remove an AccessPoint registry for an app token.\n * It will also remove the AP from the app token APs list.\n */\n function _removeAccessPoint(string memory apName) internal requireAP(apName) {\n if (msg.sender != _accessPoints[apName].owner) revert MustBeAccessPointOwner();\n _accessPoints[apName].status = AccessPointCreationStatus.REMOVED;\n uint256 tokenId = _accessPoints[apName].tokenId;\n emit ChangeAccessPointCreationStatus(apName, tokenId, AccessPointCreationStatus.REMOVED, msg.sender);\n emit RemoveAccessPoint(apName, tokenId, msg.sender);\n }\n\n /**\n * @dev Updates the `accessPointAutoApproval` settings on minted `tokenId`.\n */\n function _setAccessPointAutoApproval(uint256 tokenId, bool _apAutoApproval) internal {\n _autoApproval[tokenId] = _apAutoApproval;\n }\n\n /**\n * @dev Set approval settings for an access point.\n * It will add the access point to the token's AP list, if `approved` is true.\n */\n function _setApprovalForAccessPoint(uint256 tokenId, string memory apName, bool approved) internal {\n AccessPoint storage accessPoint = _accessPoints[apName];\n if (accessPoint.tokenId != tokenId) revert InvalidTokenIdForAccessPoint();\n if (accessPoint.status != AccessPointCreationStatus.DRAFT) revert AccessPointCreationStatusAlreadySet();\n\n if (approved) {\n // Approval\n accessPoint.status = AccessPointCreationStatus.APPROVED;\n emit ChangeAccessPointCreationStatus(apName, tokenId, AccessPointCreationStatus.APPROVED, msg.sender);\n } else {\n // Not Approved\n accessPoint.status = AccessPointCreationStatus.REJECTED;\n emit ChangeAccessPointCreationStatus(apName, tokenId, AccessPointCreationStatus.REJECTED, msg.sender);\n }\n }\n\n /**\n * @dev Set the content verification of a AccessPoint registry.\n */\n function _setAccessPointContentVerify(string memory apName, bool verified) internal requireAP(apName) {\n _accessPoints[apName].contentVerified = verified;\n emit ChangeAccessPointContentVerify(apName, _accessPoints[apName].tokenId, verified, msg.sender);\n }\n\n /**\n * @dev Set the name verification of a AccessPoint registry.\n */\n function _setAccessPointNameVerify(string memory apName, bool verified) internal requireAP(apName) {\n _accessPoints[apName].nameVerified = verified;\n emit ChangeAccessPointNameVerify(apName, _accessPoints[apName].tokenId, verified, msg.sender);\n }\n\n /**\n * @dev Get the AccessPoint token id.\n */\n function _getAccessPointTokenId(string memory apName) internal view requireAP(apName) returns (uint256) {\n return _accessPoints[apName].tokenId;\n }\n\n /**\n * @dev Get the Auto Approval setting for token id.\n */\n function _getAccessPointAutoApproval(uint256 tokenId) internal view returns (bool) {\n return _autoApproval[tokenId];\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" + }, + "contracts/FleekApps.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol\";\nimport \"@openzeppelin/contracts/utils/Base64.sol\";\nimport \"./util/FleekSVG.sol\";\nimport \"./FleekERC721.sol\";\n\ncontract FleekApps is Initializable, ERC721Upgradeable {\n using Strings for address;\n using Base64 for bytes;\n\n uint256 public bindCount;\n mapping(uint256 => uint256) public bindings;\n\n FleekERC721 private main;\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(string memory _name, string memory _symbol, address _mainAddress) public initializer {\n __ERC721_init(_name, _symbol);\n main = FleekERC721(_mainAddress);\n }\n\n modifier _requireMainMinted(uint256 _tokenId) {\n require(main.ownerOf(_tokenId) != address(0), \"Main token does not exist\");\n _;\n }\n\n function mint(address _to, uint256 _tokenId) public _requireMainMinted(_tokenId) {\n _mint(_to, bindCount);\n bindings[bindCount] = _tokenId;\n bindCount++;\n }\n\n function tokenURI(uint256 _bindId) public view virtual override(ERC721Upgradeable) returns (string memory) {\n (string memory name, string memory ens, string memory logo, string memory color, string memory ipfsHash) = main\n .getAppData(bindings[_bindId]);\n\n // prettier-ignore\n return string(abi.encodePacked(_baseURI(),\n abi.encodePacked('{',\n '\"owner\":\"', ownerOf(_bindId).toHexString(), '\",',\n '\"name\":\"', name, '\",',\n '\"image\":\"', FleekSVG.generateBase64(name, ens, logo, color), '\",',\n '\"external_url\":\"ipfs://', ipfsHash, '\"',\n '}').encode()\n ));\n }\n\n function _baseURI() internal view virtual override returns (string memory) {\n return \"data:application/json;base64,\";\n }\n}\n" + }, + "contracts/FleekBilling.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\n\nerror RequiredPayment(uint requiredValue);\n\nabstract contract FleekBilling is Initializable {\n /**\n * @dev Available billing values.\n */\n enum Billing {\n Mint,\n AddAccessPoint\n }\n\n /**\n * @dev Emitted when the billing value is changed.\n */\n event BillingChanged(Billing key, uint256 price);\n\n /**\n * @dev Emitted when contract is withdrawn.\n */\n event Withdrawn(uint256 value, address indexed byAddress);\n\n /**\n * @dev Mapping of billing values.\n */\n mapping(Billing => uint256) private _billings;\n\n /**\n * @dev Initializes the contract by setting default billing values.\n */\n function __FleekBilling_init(uint256[] memory initialBillings) internal onlyInitializing {\n for (uint256 i = 0; i < initialBillings.length; i++) {\n _setBilling(Billing(i), initialBillings[i]);\n }\n }\n\n /**\n * @dev Returns the billing value for a given key.\n */\n function getBilling(Billing key) public view returns (uint256) {\n return _billings[key];\n }\n\n /**\n * @dev Sets the billing value for a given key.\n */\n function _setBilling(Billing key, uint256 price) internal {\n _billings[key] = price;\n emit BillingChanged(key, price);\n }\n\n /**\n * @dev Internal function to require a payment value.\n */\n function _requirePayment(Billing key) internal {\n uint256 requiredValue = _billings[key];\n if (msg.value != _billings[key]) revert RequiredPayment(requiredValue);\n }\n\n /**\n * @dev Internal function to withdraw the contract balance.\n */\n function _withdraw() internal {\n address by = msg.sender;\n uint256 value = address(this).balance;\n\n payable(by).transfer(value);\n emit Withdrawn(value, by);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" + }, + "contracts/FleekERC721.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol\";\nimport \"@openzeppelin/contracts/utils/Base64.sol\";\nimport \"@openzeppelin/contracts/utils/Strings.sol\";\nimport \"./FleekAccessControl.sol\";\nimport \"./FleekBilling.sol\";\nimport \"./FleekPausable.sol\";\nimport \"./FleekAccessPoints.sol\";\nimport \"./util/FleekENS.sol\";\nimport \"./util/FleekStrings.sol\";\nimport \"./IERCX.sol\";\n\nerror MustBeTokenOwner(uint256 tokenId);\nerror MustBeTokenVerifier(uint256 tokenId);\nerror ThereIsNoTokenMinted();\n\ncontract FleekERC721 is\n IERCX,\n Initializable,\n ERC721Upgradeable,\n FleekAccessControl,\n FleekPausable,\n FleekBilling,\n FleekAccessPoints\n{\n using Strings for uint256;\n using FleekStrings for FleekERC721.Token;\n using FleekStrings for string;\n using FleekStrings for uint24;\n\n event NewMint(\n uint256 indexed tokenId,\n string name,\n string description,\n string externalURL,\n string ENS,\n string commitHash,\n string gitRepository,\n string ipfsHash,\n string logo,\n uint24 color,\n bool accessPointAutoApproval,\n address indexed minter,\n address indexed owner,\n address verifier\n );\n\n event MetadataUpdate(uint256 indexed _tokenId, string key, address value, address indexed triggeredBy);\n\n uint256 private _appIds;\n mapping(uint256 => Token) private _apps;\n mapping(uint256 => address) private _tokenVerifier;\n mapping(uint256 => bool) private _tokenVerified;\n\n /**\n * @dev This constructor sets the state of implementation contract to paused\n * and disable initializers, not allowing interactions with the implementation\n * contracts.\n */\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _setPausable(true);\n _pause();\n _disableInitializers();\n }\n\n /**\n * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n */\n function initialize(\n string memory _name,\n string memory _symbol,\n uint256[] memory initialBillings\n ) public initializer {\n __ERC721_init(_name, _symbol);\n __FleekAccessControl_init();\n __FleekBilling_init(initialBillings);\n __FleekPausable_init();\n }\n\n /**\n * @dev Checks if caller is the verifier of the token.\n */\n modifier requireTokenVerifier(uint256 tokenId) {\n if (_tokenVerifier[tokenId] != msg.sender) revert MustBeTokenVerifier(tokenId);\n _;\n }\n\n /**\n * @dev Mints a token and returns a tokenId.\n *\n * If the `tokenId` has not been minted before, and the `to` address is not zero, emits a {Transfer} event.\n *\n * Requirements:\n *\n * - the caller must have ``collectionOwner``'s admin role.\n * - billing for the minting may be applied.\n * - the contract must be not paused.\n *\n */\n function mint(\n address to,\n string memory name,\n string memory description,\n string memory externalURL,\n string calldata ens,\n string memory commitHash,\n string memory gitRepository,\n string memory ipfsHash,\n string memory logo,\n uint24 color,\n bool accessPointAutoApproval,\n address verifier\n ) public payable requirePayment(Billing.Mint) returns (uint256) {\n if (!hasCollectionRole(CollectionRoles.Verifier, verifier))\n revert MustHaveCollectionRole(uint8(CollectionRoles.Verifier));\n if (bytes(ens).length > 0) FleekENS.requireENSOwner(ens);\n uint256 tokenId = _appIds;\n _mint(to, tokenId);\n\n _appIds += 1;\n\n Token storage app = _apps[tokenId];\n app.name = name;\n app.description = description;\n app.externalURL = externalURL;\n app.ENS = ens;\n app.logo = logo;\n app.color = color;\n\n // The mint interaction is considered to be the first build of the site. Updates from now on all increment the currentBuild by one and update the mapping.\n app.currentBuild = 0;\n app.builds[0] = Build(commitHash, gitRepository, ipfsHash, externalURL);\n\n emit NewMint(\n tokenId,\n name,\n description,\n externalURL,\n ens,\n commitHash,\n gitRepository,\n ipfsHash,\n logo,\n color,\n accessPointAutoApproval,\n msg.sender,\n to,\n verifier\n );\n\n _tokenVerifier[tokenId] = verifier;\n _tokenVerified[tokenId] = false;\n _setAccessPointAutoApproval(tokenId, accessPointAutoApproval);\n\n return tokenId;\n }\n\n /**\n * @dev Returns the token metadata associated with the `tokenId`.\n *\n * Returns a based64 encoded string value of the URI.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n *\n */\n function tokenURI(uint256 tokenId) public view virtual override(ERC721Upgradeable, IERCX) returns (string memory) {\n _requireMinted(tokenId);\n address owner = ownerOf(tokenId);\n bool accessPointAutoApproval = _getAccessPointAutoApproval(tokenId);\n bool verified = _tokenVerified[tokenId];\n Token storage app = _apps[tokenId];\n\n return string(abi.encodePacked(_baseURI(), app.toString(owner, accessPointAutoApproval, verified).toBase64()));\n }\n\n /**\n * @dev Returns the token metadata associated with the `tokenId`.\n *\n * Returns multiple string and uint values in relation to metadata fields of the App struct.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n *\n */\n function getToken(\n uint256 tokenId\n )\n public\n view\n virtual\n returns (string memory, string memory, string memory, string memory, uint256, string memory, uint24)\n {\n _requireMinted(tokenId);\n Token storage app = _apps[tokenId];\n return (app.name, app.description, app.externalURL, app.ENS, app.currentBuild, app.logo, app.color);\n }\n\n function getAppData(\n uint256 tokenId\n ) public view returns (string memory, string memory, string memory, string memory, string memory) {\n _requireMinted(tokenId);\n Token storage app = _apps[tokenId];\n\n return (app.name, app.ENS, app.logo, app.color.toColorString(), app.builds[app.currentBuild].ipfsHash);\n }\n\n /**\n * @dev Returns the last minted tokenId.\n */\n function getLastTokenId() public view virtual returns (uint256) {\n uint256 current = _appIds;\n if (current == 0) revert ThereIsNoTokenMinted();\n return current - 1;\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Upgradeable) returns (bool) {\n return super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev Override of _beforeTokenTransfer of ERC721.\n * Here it needs to update the token controller roles for mint, burn and transfer.\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 tokenId,\n uint256 batchSize\n ) internal virtual override whenNotPaused {\n if (from != address(0) && to != address(0)) {\n // Transfer\n _clearTokenRoles(tokenId);\n } else if (from == address(0)) {\n // Mint\n // TODO: set contract owner as controller\n } else if (to == address(0)) {\n // Burn\n _clearTokenRoles(tokenId);\n }\n super._beforeTokenTransfer(from, to, tokenId, batchSize);\n }\n\n /**\n * @dev A baseURI internal function implementation to be called in the `tokenURI` function.\n */\n function _baseURI() internal view virtual override returns (string memory) {\n return \"data:application/json;base64,\";\n }\n\n /**\n * @dev Updates the `externalURL` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenExternalURL} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenExternalURL(\n uint256 tokenId,\n string memory _tokenExternalURL\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].externalURL = _tokenExternalURL;\n emit MetadataUpdate(tokenId, \"externalURL\", _tokenExternalURL, msg.sender);\n }\n\n /**\n * @dev Updates the `ENS` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenENS} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenENS(\n uint256 tokenId,\n string calldata _tokenENS\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n FleekENS.requireENSOwner(_tokenENS);\n _requireMinted(tokenId);\n _apps[tokenId].ENS = _tokenENS;\n emit MetadataUpdate(tokenId, \"ENS\", _tokenENS, msg.sender);\n }\n\n /**\n * @dev Updates the `name` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenName} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenName(\n uint256 tokenId,\n string memory _tokenName\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].name = _tokenName;\n emit MetadataUpdate(tokenId, \"name\", _tokenName, msg.sender);\n }\n\n /**\n * @dev Updates the `description` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenDescription} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenDescription(\n uint256 tokenId,\n string memory _tokenDescription\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].description = _tokenDescription;\n emit MetadataUpdate(tokenId, \"description\", _tokenDescription, msg.sender);\n }\n\n /**\n * @dev Updates the `logo` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenLogo} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenLogo(\n uint256 tokenId,\n string memory _tokenLogo\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].logo = _tokenLogo;\n emit MetadataUpdate(tokenId, \"logo\", _tokenLogo, msg.sender);\n }\n\n /**\n * @dev Updates the `color` metadata field of a minted `tokenId`.\n *\n * May emit a {NewTokenColor} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenColor(\n uint256 tokenId,\n uint24 _tokenColor\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].color = _tokenColor;\n emit MetadataUpdate(tokenId, \"color\", _tokenColor, msg.sender);\n }\n\n /**\n * @dev Updates the `logo` and `color` metadata fields of a minted `tokenId`.\n *\n * May emit a {NewTokenLogo} and a {NewTokenColor} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenLogoAndColor(uint256 tokenId, string memory _tokenLogo, uint24 _tokenColor) public virtual {\n setTokenLogo(tokenId, _tokenLogo);\n setTokenColor(tokenId, _tokenColor);\n }\n\n /**\n * @dev Adds a new build to a minted `tokenId`'s builds mapping.\n *\n * May emit a {NewBuild} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setTokenBuild(\n uint256 tokenId,\n string memory _commitHash,\n string memory _gitRepository,\n string memory _ipfsHash,\n string memory _domain\n ) public virtual requireTokenRole(tokenId, TokenRoles.Controller) {\n _requireMinted(tokenId);\n _apps[tokenId].builds[++_apps[tokenId].currentBuild] = Build(_commitHash, _gitRepository, _ipfsHash, _domain);\n // Note from Nima: should we update the externalURL field with each new domain?\n emit MetadataUpdate(tokenId, \"build\", [_commitHash, _gitRepository, _ipfsHash, _domain], msg.sender);\n }\n\n /**\n * @dev Burns a previously minted `tokenId`.\n *\n * May emit a {Transfer} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must be the owner of the token.\n * - the contract must be not paused.\n *\n */\n function burn(uint256 tokenId) public virtual requireTokenOwner(tokenId) {\n super._burn(tokenId);\n\n if (bytes(_apps[tokenId].externalURL).length != 0) {\n delete _apps[tokenId];\n }\n }\n\n /**\n * @dev Sets an address as verifier of a token.\n * The verifier must have `CollectionRoles.Verifier` role.\n *\n * May emit a {MetadataUpdate} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must be the owner of the token.\n * - the verifier must have `CollectionRoles.Verifier` role.\n *\n */\n function setTokenVerifier(uint256 tokenId, address verifier) public requireTokenOwner(tokenId) {\n if (!hasCollectionRole(CollectionRoles.Verifier, verifier))\n revert MustHaveCollectionRole(uint8(CollectionRoles.Verifier));\n _requireMinted(tokenId);\n _tokenVerifier[tokenId] = verifier;\n emit MetadataUpdate(tokenId, \"verifier\", verifier, msg.sender);\n }\n\n /**\n * @dev Returns the verifier of a token.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n *\n */\n function getTokenVerifier(uint256 tokenId) public view returns (address) {\n _requireMinted(tokenId);\n return _tokenVerifier[tokenId];\n }\n\n /**\n * @dev Sets the verification status of a token.\n *\n * May emit a {MetadataUpdate} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must be the token verifier.\n * - the sender must have `CollectionRoles.Verifier` role.\n *\n */\n function setTokenVerified(\n uint256 tokenId,\n bool verified\n ) public requireCollectionRole(CollectionRoles.Verifier) requireTokenVerifier(tokenId) {\n _requireMinted(tokenId);\n _tokenVerified[tokenId] = verified;\n emit MetadataUpdate(tokenId, \"verified\", verified, msg.sender);\n }\n\n /**\n * @dev Returns the verification status of a token.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n *\n */\n function isTokenVerified(uint256 tokenId) public view returns (bool) {\n _requireMinted(tokenId);\n return _tokenVerified[tokenId];\n }\n\n /*//////////////////////////////////////////////////////////////\n ACCESS POINTS\n //////////////////////////////////////////////////////////////*/\n\n /**\n * @dev Add a new AccessPoint register for an app token.\n * The AP name should be a DNS or ENS url and it should be unique.\n * Anyone can add an AP but it should requires a payment.\n *\n * May emit a {NewAccessPoint} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - billing for add acess point may be applied.\n * - the contract must be not paused.\n *\n */\n function addAccessPoint(\n uint256 tokenId,\n string memory apName\n ) public payable whenNotPaused requirePayment(Billing.AddAccessPoint) {\n _requireMinted(tokenId);\n _addAccessPoint(tokenId, apName);\n }\n\n /**\n * @dev Remove an AccessPoint registry for an app token.\n * It will also remove the AP from the app token APs list.\n *\n * May emit a {RemoveAccessPoint} event.\n *\n * Requirements:\n *\n * - the AP must exist.\n * - must be called by the AP owner.\n * - the contract must be not paused.\n *\n */\n function removeAccessPoint(string memory apName) public whenNotPaused {\n _removeAccessPoint(apName);\n }\n\n /**\n * @dev Updates the `accessPointAutoApproval` settings on minted `tokenId`.\n *\n * May emit a {MetadataUpdate} event.\n *\n * Requirements:\n *\n * - the tokenId must be minted and valid.\n * - the sender must have the `tokenController` role.\n *\n */\n function setAccessPointAutoApproval(uint256 tokenId, bool _apAutoApproval) public requireTokenOwner(tokenId) {\n _requireMinted(tokenId);\n _setAccessPointAutoApproval(tokenId, _apAutoApproval);\n emit MetadataUpdate(tokenId, \"accessPointAutoApproval\", _apAutoApproval, msg.sender);\n }\n\n /**\n * @dev Set approval settings for an access point.\n * It will add the access point to the token's AP list, if `approved` is true.\n *\n * May emit a {ChangeAccessPointApprovalStatus} event.\n *\n * Requirements:\n *\n * - the tokenId must exist and be the same as the tokenId that is set for the AP.\n * - the AP must exist.\n * - must be called by a token controller.\n */\n function setApprovalForAccessPoint(\n uint256 tokenId,\n string memory apName,\n bool approved\n ) public requireTokenOwner(tokenId) {\n _setApprovalForAccessPoint(tokenId, apName, approved);\n }\n\n /**\n * @dev Set the content verification of a AccessPoint registry.\n *\n * May emit a {ChangeAccessPointContentVerify} event.\n *\n * Requirements:\n *\n * - the AP must exist.\n * - the sender must have the token controller role.\n *\n */\n function setAccessPointContentVerify(\n string memory apName,\n bool verified\n ) public requireCollectionRole(CollectionRoles.Verifier) requireTokenVerifier(_getAccessPointTokenId(apName)) {\n _setAccessPointContentVerify(apName, verified);\n }\n\n /**\n * @dev Set the name verification of a AccessPoint registry.\n *\n * May emit a {ChangeAccessPointNameVerify} event.\n *\n * Requirements:\n *\n * - the AP must exist.\n * - the sender must have the token controller role.\n *\n */\n function setAccessPointNameVerify(\n string memory apName,\n bool verified\n ) public requireCollectionRole(CollectionRoles.Verifier) requireTokenVerifier(_getAccessPointTokenId(apName)) {\n _setAccessPointNameVerify(apName, verified);\n }\n\n /*//////////////////////////////////////////////////////////////\n ACCESS CONTROL\n //////////////////////////////////////////////////////////////*/\n\n /**\n * @dev Requires caller to have a selected collection role.\n */\n modifier requireCollectionRole(CollectionRoles role) {\n _requireCollectionRole(role);\n _;\n }\n\n /**\n * @dev Requires caller to have a selected token role.\n */\n modifier requireTokenRole(uint256 tokenId, TokenRoles role) {\n if (ownerOf(tokenId) != msg.sender) _requireTokenRole(tokenId, role);\n _;\n }\n\n /**\n * @dev Requires caller to be selected token owner.\n */\n modifier requireTokenOwner(uint256 tokenId) {\n if (ownerOf(tokenId) != msg.sender) revert MustBeTokenOwner(tokenId);\n _;\n }\n\n /**\n * @dev Grants the collection role to an address.\n *\n * Requirements:\n *\n * - the caller should have the collection role.\n *\n */\n function grantCollectionRole(\n CollectionRoles role,\n address account\n ) public whenNotPaused requireCollectionRole(CollectionRoles.Owner) {\n _grantCollectionRole(role, account);\n }\n\n /**\n * @dev Grants the token role to an address.\n *\n * Requirements:\n *\n * - the caller should have the token role.\n *\n */\n function grantTokenRole(\n uint256 tokenId,\n TokenRoles role,\n address account\n ) public whenNotPaused requireTokenOwner(tokenId) {\n _grantTokenRole(tokenId, role, account);\n }\n\n /**\n * @dev Revokes the collection role of an address.\n *\n * Requirements:\n *\n * - the caller should have the collection role.\n *\n */\n function revokeCollectionRole(\n CollectionRoles role,\n address account\n ) public whenNotPaused requireCollectionRole(CollectionRoles.Owner) {\n _revokeCollectionRole(role, account);\n }\n\n /**\n * @dev Revokes the token role of an address.\n *\n * Requirements:\n *\n * - the caller should have the token role.\n *\n */\n function revokeTokenRole(\n uint256 tokenId,\n TokenRoles role,\n address account\n ) public whenNotPaused requireTokenOwner(tokenId) {\n _revokeTokenRole(tokenId, role, account);\n }\n\n /*//////////////////////////////////////////////////////////////\n PAUSABLE\n //////////////////////////////////////////////////////////////*/\n\n /**\n * @dev Sets the contract to paused state.\n *\n * Requirements:\n *\n * - the sender must have the `controller` role.\n * - the contract must be pausable.\n * - the contract must be not paused.\n *\n */\n function pause() public requireCollectionRole(CollectionRoles.Owner) {\n _pause();\n }\n\n /**\n * @dev Sets the contract to unpaused state.\n *\n * Requirements:\n *\n * - the sender must have the `controller` role.\n * - the contract must be paused.\n *\n */\n function unpause() public requireCollectionRole(CollectionRoles.Owner) {\n _unpause();\n }\n\n /**\n * @dev Sets the contract to pausable state.\n *\n * Requirements:\n *\n * - the sender must have the `owner` role.\n * - the contract must be in the oposite pausable state.\n *\n */\n function setPausable(bool pausable) public requireCollectionRole(CollectionRoles.Owner) {\n _setPausable(pausable);\n }\n\n /*//////////////////////////////////////////////////////////////\n BILLING\n //////////////////////////////////////////////////////////////*/\n\n /**\n * @dev Modifier to require billing with a given key.\n */\n modifier requirePayment(Billing key) {\n _requirePayment(key);\n _;\n }\n\n /**\n * @dev Sets the billing value for a given key.\n *\n * May emit a {BillingChanged} event.\n *\n * Requirements:\n *\n * - the sender must have the `collectionOwner` role.\n *\n */\n function setBilling(Billing key, uint256 value) public requireCollectionRole(CollectionRoles.Owner) {\n _setBilling(key, value);\n }\n\n /**\n * @dev Withdraws all the funds from contract.\n *\n * May emmit a {Withdrawn} event.\n *\n * Requirements:\n *\n * - the sender must have the `collectionOwner` role.\n *\n */\n function withdraw() public requireCollectionRole(CollectionRoles.Owner) {\n _withdraw();\n }\n}\n" + }, + "contracts/FleekPausable.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\n\nerror ContractIsPaused();\nerror ContractIsNotPaused();\nerror ContractIsNotPausable();\nerror PausableIsSetTo(bool state);\n\nabstract contract FleekPausable is Initializable {\n /**\n * @dev Emitted when the pause is triggered by `account` and set to `isPaused`.\n */\n event PauseStatusChange(bool indexed isPaused, address account);\n\n /**\n * @dev Emitted when the pausable is triggered by `account` and set to `isPausable`.\n */\n event PausableStatusChange(bool indexed isPausable, address account);\n\n bool private _paused;\n bool private _canPause; // TODO: how should we verify if the contract is pausable or not?\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n function __FleekPausable_init() internal onlyInitializing {\n _paused = false;\n _canPause = true;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n _requireNotPaused();\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n _requirePaused();\n _;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function isPaused() public view returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Returns true if the contract is pausable, and false otherwise.\n */\n function isPausable() public view returns (bool) {\n return _canPause;\n }\n\n /**\n * @dev Throws if the contract is paused.\n */\n function _requireNotPaused() internal view {\n if (isPaused()) revert ContractIsPaused();\n }\n\n /**\n * @dev Throws if the contract is not paused.\n */\n function _requirePaused() internal view {\n if (!isPaused()) revert ContractIsNotPaused();\n }\n\n /**\n * @dev Throws if the contract is not pausable.\n */\n function _requirePausable() internal view {\n if (!isPausable()) revert ContractIsNotPausable();\n }\n\n /**\n * @dev Sets the contract to be pausable or not.\n * @param canPause true if the contract is pausable, and false otherwise.\n */\n function _setPausable(bool canPause) internal {\n if (canPause == _canPause) revert PausableIsSetTo(canPause);\n _canPause = canPause;\n emit PausableStatusChange(canPause, msg.sender);\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal whenNotPaused {\n _requirePausable();\n _paused = true;\n emit PauseStatusChange(false, msg.sender);\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal whenPaused {\n _paused = false;\n emit PauseStatusChange(false, msg.sender);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" + }, + "contracts/IERCX.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts/token/ERC721/IERC721.sol\";\n\n/**\n * @title ERCX Interface\n * @author\n * @notice\n *\n * ERCX is a standard for NFTs that represent websites. It is a standard that\n * allows for the storage of metadata about a website, and allows for the\n * storage of multiple builds of a website. This allows for the NFT to be\n * used as a way to store the history of a website.\n */\ninterface IERCX {\n /**\n * Event emitted when a token's metadata is updated.\n * @param _tokenId the updated token id.\n * @param key which metadata key was updated\n * @param value the new value of the metadata\n * @param triggeredBy the address that triggered the update\n */\n event MetadataUpdate(uint256 indexed _tokenId, string key, string value, address indexed triggeredBy);\n event MetadataUpdate(uint256 indexed _tokenId, string key, uint24 value, address indexed triggeredBy);\n event MetadataUpdate(uint256 indexed _tokenId, string key, string[4] value, address indexed triggeredBy);\n event MetadataUpdate(uint256 indexed _tokenId, string key, bool value, address indexed triggeredBy);\n\n /**\n * The metadata that is stored for each build.\n */\n struct Build {\n string commitHash;\n string gitRepository;\n string ipfsHash;\n string domain;\n }\n\n /**\n * The properties are stored as string to keep consistency with\n * other token contracts, we might consider changing for bytes32\n * in the future due to gas optimization.\n */\n struct Token {\n string name; // Name of the site\n string description; // Description about the site\n string externalURL; // Site URL\n string ENS; // ENS for the site\n string logo; // Branding logo\n uint24 color; // Branding color\n uint256 currentBuild; // The current build number (Increments by one with each change, starts at zero)\n mapping(uint256 => Build) builds; // Mapping to build details for each build number\n }\n\n /**\n * @dev Sets a minted token's external URL.\n */\n function setTokenExternalURL(uint256 tokenId, string memory _tokenExternalURL) external;\n\n /**\n * @dev Sets a minted token's ENS.\n */\n function setTokenENS(uint256 tokenId, string memory _tokenENS) external;\n\n /**\n * @dev Sets a minted token's name.\n */\n function setTokenName(uint256 tokenId, string memory _tokenName) external;\n\n /**\n * @dev Sets a minted token's description.\n */\n function setTokenDescription(uint256 tokenId, string memory _tokenDescription) external;\n\n /**\n * @dev Sets a minted token's logo.\n */\n function setTokenLogo(uint256 tokenId, string memory _tokenLogo) external;\n\n /**\n * @dev Sets a minted token's color.\n */\n function setTokenColor(uint256 tokenId, uint24 _tokenColor) external;\n\n /**\n * @dev Sets a minted token's build.\n */\n function setTokenBuild(\n uint256 tokenId,\n string memory commitHash,\n string memory gitRepository,\n string memory ipfsHash,\n string memory domain\n ) external;\n\n /**\n * @dev Returns the token metadata for a given tokenId.\n * It must return a valid JSON object in string format encoded in Base64.\n */\n function tokenURI(uint256 tokenId) external returns (string memory);\n}\n" + }, + "contracts/util/FleekENS.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {ENS} from \"@ensdomains/ens-contracts/contracts/registry/ENS.sol\";\nimport {Resolver} from \"@ensdomains/ens-contracts/contracts/resolvers/Resolver.sol\";\n\nerror MustBeENSOwner();\n\nlibrary FleekENS {\n ENS internal constant _ens = ENS(0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e);\n\n /**\n * @dev Reverts if the sender is not the owner of the ENS node.\n */\n function requireENSOwner(string calldata name) internal view {\n if (_ens.owner(namehash(bytes(name), 0)) != msg.sender) revert MustBeENSOwner();\n }\n\n /**\n * @dev Processes the name and returns the ENS node hash.\n */\n function namehash(bytes calldata name, uint256 index) internal view returns (bytes32) {\n for (uint256 i = index; i < name.length; i++) {\n if (name[i] == \".\") {\n return keccak256(abi.encodePacked(namehash(name, i + 1), keccak256(name[index:i])));\n }\n }\n return keccak256(abi.encodePacked(bytes32(0x0), keccak256(name[index:name.length])));\n }\n}\n" + }, + "contracts/util/FleekStrings.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts/utils/Strings.sol\";\nimport \"@openzeppelin/contracts/utils/Base64.sol\";\nimport \"./FleekSVG.sol\";\nimport \"../IERCX.sol\";\nimport \"../FleekAccessPoints.sol\";\n\nlibrary FleekStrings {\n using Strings for uint256;\n using Strings for uint160;\n using FleekStrings for bool;\n using FleekStrings for uint24;\n using Strings for uint24;\n\n /**\n * @dev Converts a boolean value to a string.\n */\n function toString(bool _bool) internal pure returns (string memory) {\n return _bool ? \"true\" : \"false\";\n }\n\n /**\n * @dev Converts a string to a base64 string.\n */\n function toBase64(string memory str) internal pure returns (string memory) {\n return Base64.encode(bytes(str));\n }\n\n /**\n * @dev Converts IERCX.Token to a JSON string.\n * It requires to receive owner address as a parameter.\n */\n function toString(\n IERCX.Token storage app,\n address owner,\n bool accessPointAutoApproval,\n bool verified\n ) internal view returns (string memory) {\n // prettier-ignore\n return string(abi.encodePacked(\n '{',\n '\"name\":\"', app.name, '\",',\n '\"description\":\"', app.description, '\",',\n '\"owner\":\"', uint160(owner).toHexString(20), '\",',\n '\"external_url\":\"', app.externalURL, '\",',\n '\"image\":\"', FleekSVG.generateBase64(app.name, app.ENS, app.logo, app.color.toColorString()), '\",',\n '\"access_point_auto_approval\":', accessPointAutoApproval.toString(),',',\n '\"verified\":',verified.toString(),',',\n '\"attributes\": [',\n '{\"trait_type\": \"ENS\", \"value\":\"', app.ENS,'\"},',\n '{\"trait_type\": \"Commit Hash\", \"value\":\"', app.builds[app.currentBuild].commitHash,'\"},',\n '{\"trait_type\": \"Repository\", \"value\":\"', app.builds[app.currentBuild].gitRepository,'\"},',\n '{\"trait_type\": \"Version\", \"value\":\"', app.currentBuild.toString(),'\"},',\n '{\"trait_type\": \"Color\", \"value\":\"', app.color.toColorString(),'\"}',\n ']',\n '}'\n ));\n }\n\n /**\n * @dev Converts FleekAccessPoints.AccessPoint to a JSON string.\n */\n function toString(FleekAccessPoints.AccessPoint storage ap) internal view returns (string memory) {\n // prettier-ignore\n return string(abi.encodePacked(\n \"{\",\n '\"tokenId\":', ap.tokenId.toString(), \",\",\n '\"score\":', ap.score.toString(), \",\",\n '\"nameVerified\":', ap.nameVerified.toString(), \",\",\n '\"contentVerified\":', ap.contentVerified.toString(), \",\",\n '\"owner\":\"', uint160(ap.owner).toHexString(20), '\",',\n '\"status\":',uint(ap.status).toString(),\n \"}\"\n ));\n }\n\n /**\n * @dev Converts bytes3 to a hex color string.\n */\n function toColorString(uint24 color) internal pure returns (string memory) {\n bytes memory hexBytes = bytes(color.toHexString(3));\n bytes memory hexColor = new bytes(7);\n hexColor[0] = \"#\";\n for (uint256 i = 1; i < 7; i++) {\n hexColor[i] = hexBytes[i + 1];\n }\n return string(hexColor);\n }\n}\n" + }, + "contracts/util/FleekSVG.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts/utils/Strings.sol\";\nimport \"@openzeppelin/contracts/utils/Base64.sol\";\n\nlibrary FleekSVG {\n /**\n * @dev Generates a SVG image.\n */\n function generateBase64(\n string memory name,\n string memory ENS,\n string memory logo,\n string memory color\n ) public pure returns (string memory) {\n return (\n string(\n abi.encodePacked(\n \"data:image/svg+xml;base64,\",\n Base64.encode(\n abi.encodePacked(\n '',\n // background\n '',\n '',\n // shadows\n '',\n '',\n // diskette fill\n '',\n '',\n // arrows\n '',\n '',\n '',\n // body\n '',\n // slider\n '',\n // fleek logo\n '',\n // text\n '',\n name,\n '',\n ENS,\n \"\",\n // logo\n '',\n // defs\n \"\",\n // shadow\n '',\n // bg\n '',\n '',\n // fill gradient\n '',\n // color\n '',\n // end defs\n \"\",\n \"\"\n )\n )\n )\n )\n );\n }\n}\n" + } + }, + "settings": { + "optimizer": { + "enabled": true, + "runs": 200, + "details": { + "yul": true + } + }, + "viaIR": true, + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata", + "storageLayout" + ], + "": [ + "ast" + ] + } + } + } + } \ No newline at end of file diff --git a/contracts/hardhat.config.ts b/contracts/hardhat.config.ts index b5903af..d157dec 100644 --- a/contracts/hardhat.config.ts +++ b/contracts/hardhat.config.ts @@ -25,6 +25,7 @@ const { ETH_GOERLI_API_URL, MAINNET_API_KEY, COINMARKETCAP_KEY, + QANET_RPC_URL, } = process.env; const config: HardhatUserConfig = { @@ -59,6 +60,11 @@ const config: HardhatUserConfig = { accounts: PRIVATE_KEY ? [PRIVATE_KEY] : [], chainId: 1, }, + qanet: { + url: QANET_RPC_URL ? QANET_RPC_URL : '', + accounts: PRIVATE_KEY ? [PRIVATE_KEY] : [], + chainId: 31337, + }, local: { url: 'http://localhost:8545', accounts: PRIVATE_KEY ? [PRIVATE_KEY] : [], diff --git a/serverless/package.json b/serverless/package.json index 93c30d9..ec77ac6 100644 --- a/serverless/package.json +++ b/serverless/package.json @@ -5,12 +5,11 @@ "main": "index.js", "scripts": { "build": "yarn tsc", - "invoke:build": "yarn build && serverless invoke local --function submitBuildInfo", "prisma:generate": "npx prisma generate", "prisma:pull": "npx prisma db pull --force", "start": "yarn build && serverless offline", - "generate:layers": "./scripts/prepare-prisma-client-lambda-layer.sh && ./scripts/prepare-libs-lambda-layer.sh && ./scripts/prepare-node-modules-lambda-layer.sh", - "deploy:dev": "yarn build && yarn generate:layers && yarn sls deploy --stage dev" + "deploy:dev": "sh ./scripts/deploy.sh dev", + "deploy:prd": "sh ./scripts/deploy.sh prd" }, "author": "fleek", "license": "MIT", diff --git a/serverless/scripts/deploy.sh b/serverless/scripts/deploy.sh index 5ac9d93..a324b6e 100755 --- a/serverless/scripts/deploy.sh +++ b/serverless/scripts/deploy.sh @@ -79,12 +79,16 @@ echo "${bold}Copying the Prisma schema file to function directories${normal}" cp prisma/schema.prisma dist/src/functions/builds/ cp prisma/schema.prisma dist/src/functions/mints/ +echo "${bold}Generating Prisma Client${normal}" +yarn prisma:generate + echo "${bold}Running the build command${normal}" yarn build echo "${bold}Copying the rhel openssl engine to dist/${normal}" cp node_modules/.prisma/client/libquery_engine-rhel-openssl-1.0.x.so.node dist/src/functions/mints cp node_modules/.prisma/client/libquery_engine-rhel-openssl-1.0.x.so.node dist/src/functions/builds +cp node_modules/.prisma/client/libquery_engine-rhel-openssl-1.0.x.so.node dist/src/functions/apps echo "${bold}Copying the .env file to dist/${normal}" cp .env src/ @@ -95,9 +99,7 @@ cp src/libs/FleekERC721.json dist/src/libs/ echo "${bold}Copying the Prisma schema file to function directories${normal}" cp prisma/schema.prisma dist/src/functions/builds/ cp prisma/schema.prisma dist/src/functions/mints/ - -echo "${bold}Generating Prisma Client${normal}" -yarn prisma:generate +cp prisma/schema.prisma dist/src/functions/apps/ echo "${bold}Creating layer zip files${normal}" /bin/bash ./scripts/prepare-libs-lambda-layer.sh diff --git a/serverless/serverless.yaml b/serverless/serverless.yaml index 67a01f9..3f1bba2 100644 --- a/serverless/serverless.yaml +++ b/serverless/serverless.yaml @@ -11,7 +11,6 @@ provider: runtime: nodejs18.x stage: ${opt:stage, 'prd'} region: ${opt:region, 'us-west-2'} - timeout: 40 apiGateway: minimumCompressionSize: 1024 shouldStartNameWithService: true @@ -88,7 +87,7 @@ functions: - { Ref: TopicPrismaAwsPrismaClientLambdaLayer } verifyAccessPoint: - handler: src/functions/apps/handler.verifyApp + handler: ./dist/src/functions/apps/handler.verifyApp events: - http: path: verifyApp @@ -96,7 +95,7 @@ functions: cors: true submitAppInfo: - handler: src/functions/apps/handler.submitAppInfo + handler: ./dist/src/functions/apps/handler.submitAppInfo events: - http: path: app diff --git a/serverless/src/functions/apps/handler.ts b/serverless/src/functions/apps/handler.ts index dd99ca1..382a74b 100644 --- a/serverless/src/functions/apps/handler.ts +++ b/serverless/src/functions/apps/handler.ts @@ -9,24 +9,7 @@ import { CreatePullZoneMethodArgs, LoadFreeCertificateMethodArgs, } from '@libs/bunnyCDN'; -import * as crypto from "crypto"; - -function isTheSignatureValid( - body: string, // must be raw string body, not json transformed version of the body - signature: string, // the "lambda-signature" from header - signingKey: string, // signing secret key for front-end -) { - const hmac = crypto.createHmac("sha256", signingKey); // Create a HMAC SHA256 hash using the signing key - hmac.update(body, "utf8"); // Update the token hash with the request body using utf8 - const digest = hmac.digest("hex"); - if (signature !== digest) { - // the request is not valid - return formatJSONResponse({ - status: 401, - message: 'Unauthorized', - }); - } -} +import { isTheSignatureValid } from '@libs/verify-signature'; export const verifyApp = async ( event: APIGatewayEvent @@ -34,7 +17,7 @@ export const verifyApp = async ( try { // Check the parameters and environment variables dotenv.config(); - if (event.body === null || process.env.BUNNY_CDN_ACCESS_KEY == undefined) { + if (event.body === null || process.env.BUNNY_CDN_ACCESS_KEY === undefined) { return formatJSONResponse({ status: 422, message: 'Required parameters were not passed.', @@ -43,10 +26,23 @@ export const verifyApp = async ( // Check the lambda-signature and confirm the value of the FE_SIGNING_KEY env variable. // If both are valid, verify the authenticity of the request. - if (event.headers["lambda-signature"] === undefined) throw Error("Header field 'lambda-signature' was not found."); - - if (process.env.FE_SIGNING_KEY === undefined) throw Error("FE_SIGNING_KEY env variable not found."); - else { isTheSignatureValid(event.body, event.headers["lambda-signature"], process.env.FE_SIGNING_KEY); }; + if (event.headers['lambda-signature'] === undefined) + throw Error("Header field 'lambda-signature' was not found."); + + if (process.env.FE_SIGNING_KEY === undefined) + throw Error('FE_SIGNING_KEY env variable not found.'); + else if ( + !isTheSignatureValid( + event.body, + event.headers['lambda-signature'], + process.env.FE_SIGNING_KEY + ) + ) { + return formatJSONResponse({ + status: 401, + message: 'Unauthorized', + }); + } // Set up constants const bunnyCdn = new BunnyCdn(process.env.BUNNY_CDN_ACCESS_KEY); @@ -75,7 +71,7 @@ export const submitAppInfo = async ( try { // Check the parameters and environment variables dotenv.config(); - if (event.body === null || process.env.BUNNY_CDN_ACCESS_KEY == undefined || event.headers.originUrl === undefined) { + if (event.body === null || process.env.BUNNY_CDN_ACCESS_KEY === undefined) { return formatJSONResponse({ status: 422, message: 'Required parameters were not passed.', @@ -84,10 +80,23 @@ export const submitAppInfo = async ( // Check the lambda-signature and confirm the value of the FE_SIGNING_KEY env variable. // If both are valid, verify the authenticity of the request. - if (event.headers["lambda-signature"] === undefined) throw Error("Header field 'lambda-signature' was not found."); - - if (process.env.FE_SIGNING_KEY === undefined) throw Error("FE_SIGNING_KEY env variable not found."); - else { isTheSignatureValid(event.body, event.headers["lambda-signature"], process.env.FE_SIGNING_KEY); }; + if (event.headers['lambda-signature'] === undefined) + throw Error("Header field 'lambda-signature' was not found."); + + if (process.env.FE_SIGNING_KEY === undefined) + throw Error('FE_SIGNING_KEY env variable not found.'); + else if ( + !isTheSignatureValid( + event.body, + event.headers['lambda-signature'], + process.env.FE_SIGNING_KEY + ) + ) { + return formatJSONResponse({ + status: 401, + message: 'Unauthorized', + }); + } // Set up constants const bunnyCdn = new BunnyCdn(process.env.BUNNY_CDN_ACCESS_KEY); diff --git a/serverless/src/functions/builds/handler.ts b/serverless/src/functions/builds/handler.ts index 1156e39..d265267 100644 --- a/serverless/src/functions/builds/handler.ts +++ b/serverless/src/functions/builds/handler.ts @@ -27,7 +27,7 @@ export const submitBuildInfo = async ( domain: data.domain, verificationTransactionHash: 'Not verified.', }; - + // Add build record to the database, if it's not already added const buildRecord = await prisma.builds.findMany({ where: { @@ -37,10 +37,9 @@ export const submitBuildInfo = async ( domain: buildInfo.domain, }, }); - if (buildRecord.length == 0) { - + await prisma.builds.create({ data: { githubRepository: buildInfo.githubRepository, diff --git a/serverless/src/functions/mints/handler.ts b/serverless/src/functions/mints/handler.ts index 3cf4d17..90705a7 100644 --- a/serverless/src/functions/mints/handler.ts +++ b/serverless/src/functions/mints/handler.ts @@ -7,24 +7,8 @@ import { formatJSONResponse } from '@libs/api-gateway'; import { v4 } from 'uuid'; import { initPrisma, prisma } from '@libs/prisma'; import { contractInstance, web3 } from '@libs/nfa-contract'; -import * as crypto from "crypto"; - -function isTheSignatureValid( - body: string, // must be raw string body, not json transformed version of the body - signature: string, // the "x-alchemy-signature" from header - signingKey: string, // taken from dashboard for specific webhook -) { - const hmac = crypto.createHmac("sha256", signingKey); // Create a HMAC SHA256 hash using the signing key - hmac.update(body, "utf8"); // Update the token hash with the request body using utf8 - const digest = hmac.digest("hex"); - if (signature !== digest) { - // the request is not valid - return formatJSONResponse({ - status: 401, - message: 'Unauthorized', - }); - } -} +import { isTheSignatureValid } from '@libs/verify-signature'; +import { ethers } from 'ethers'; export const submitMintInfo = async ( event: APIGatewayEvent @@ -40,14 +24,39 @@ export const submitMintInfo = async ( // Check the alchemy signature and confirm the value of the ALCHEMY_SIGNING_KEY env variable. // If both are valid, verify the authenticity of the request. - if (event.headers["x-alchemy-signature"] === undefined) throw Error("Header field 'x-alchemy-signature' was not found."); - - if (process.env.ALCHEMY_SIGNING_KEY === undefined) throw Error("ALCHEMY_SIGNING_KEY env variable not found."); - else { isTheSignatureValid(event.body, event.headers["x-alchemy-signature"], process.env.ALCHEMY_SIGNING_KEY); }; + if (event.headers['x-alchemy-signature'] === undefined) + throw Error("Header field 'x-alchemy-signature' was not found."); + + if (process.env.ALCHEMY_SIGNING_KEY === undefined) + throw Error('ALCHEMY_SIGNING_KEY env variable not found.'); + else if ( + !isTheSignatureValid( + event.body, + event.headers['x-alchemy-signature'], + process.env.ALCHEMY_SIGNING_KEY + ) + ) { + return formatJSONResponse({ + status: 401, + message: 'Unauthorized', + }); + } const id = v4(); const eventBody = JSON.parse(event.body); + + if ( + eventBody.event.data.block.logs[1].topics[0] != + ethers.utils.id( + 'NewMint(uint256,string,string,string,string,string,string,string,string,uint24,bool,address,address,address)' + ) // The first topic should be equal to the hash of the event name and its parameter types + ) { + throw Error( + 'The emitted event is not `NewMint`. This request is ignored.' + ); + } + const topics = eventBody.event.data.block.logs[1].topics.slice(1, 4); const hexCalldata = eventBody.event.data.block.logs[1].data; const decodedLogs = web3.eth.abi.decodeLog( @@ -150,7 +159,7 @@ export const submitMintInfo = async ( owner: decodedLogs.owner, ipfsHash: decodedLogs.ipfsHash, domain: decodedLogs.externalURL, - verificationTransactionHash: 'Not verified' + verificationTransactionHash: 'Not verified', }; initPrisma(); diff --git a/serverless/src/libs/FleekERC721.json b/serverless/src/libs/FleekERC721.json index 126accf..51edfb1 100644 --- a/serverless/src/libs/FleekERC721.json +++ b/serverless/src/libs/FleekERC721.json @@ -1,9 +1,9 @@ { - "buildId": "ac10169ad2aa4aa05d336485b75a1a2f", - "timestamp": "5/17/2023, 5:27:20 PM", - "address": "0xdAbc1E0f926545a2898c644870FA4DC39E83EB70", - "transactionHash": "0xfc68decd1ce3d80c8bb94ef0c715792ef0fc555e9b63b85945841349a5640918", - "gasPrice": 1746000023, + "buildId": "51265c9b241f9c7af77f823edadaae04", + "timestamp": "6/16/2023, 12:21:27 PM", + "address": "0x40208b6aFfCc39CD42A25EC47B410Cfe117837D6", + "transactionHash": "0xbf0358ec3a4b41a355115907565abcb8b453dabc0bc21cf61fde3ea2ac3bfa06", + "gasPrice": 204, "abi": [ { "inputs": [], @@ -917,6 +917,45 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getAppData", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + }, + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1887,8 +1926,8 @@ "type": "function" } ], - "bytecode": "0x60808060405234620000975760cc549060ff8260081c16151560011462000080575061ff0019166101001760cc556040513381526001907f959581ef17eb8c8936ef9832169bc89dbcd1358765adca8ca81f28b416bb5efa90602090a26200006662000148565b620000706200009d565b604051615b059081620001c38239f35b632e15c5c160e21b81526001600482015260249150fd5b50600080fd5b60005460ff8160081c16620000f15760ff80821610620000ba5750565b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a1565b505060405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b60cc5460ff8116620001ae5760ff8160081c16156200019a5760019060ff19161760cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b5050604051635970d9f560e11b8152600490fd5b50506040516306d39fcd60e41b8152600490fdfe6040608081526004361015610015575b50600080fd5b600090813560e01c806301468deb146108ce57806301ffc9a7146108b257806302dba24d1461089657806306fdde031461087a578063081812fc1461085e578063095ea7b3146108465780630a212d2f1461082e57806323b872dd14610816578063246a908b146107fe57806327dc5cec146107e25780632d957aad146107ca578063355c5561146107a35780633ccfd60b1461078c5780633e233205146107745780633f4ba83a1461075d57806342842e0e1461074557806342966c681461072e57806342e44bbf1461071657806349aa155e146106fe5780635aa6ab3b146106e65780636352211e146106ca57806370a08231146106ae57806372c299c414610679578063736d323a146106625780637469a03b1461064b57806378278cca1461063357806383c4c00d146106085780638456cb59146105f15780638a2e25be146105d95780638c3c0a44146105c157806394ec65c5146105aa57806395d89b411461058e578063a09a16011461055e578063a22cb46514610546578063a27d0b271461052e578063a397c83014610517578063a7ef6a97146104fc578063aad045a2146104e4578063b187bd26146104b8578063b20b94f1146104a0578063b30437a01461048d578063b42dbe381461042d578063b88d4fde14610412578063b948a3c5146103fa578063ba4c458a146103e2578063c87b56dd146103bb578063cdb0e89e146103a3578063d7a75be114610387578063e4b50cb814610357578063e944725014610333578063e985e9c5146102db578063eb5fd26b146102c3578063f4fe5f0c146102925763f931517714610274575061000f565b3461028e5761028b61028536610bac565b90613604565b51f35b5080fd5b503461028e576102bf91506102ae6102a936610a0f565b61457a565b905190151581529081906020820190565b0390f35b503461028e5761028b6102d536611177565b90613d0e565b503461028e576102bf91506102ae61032c6103156102f83661115f565b6001600160a01b039091166000908152606a602052604090209091565b9060018060a01b0316600052602052604060002090565b5460ff1690565b503461028e576102bf91506102ae61032c61031561035036610c15565b9190611c8e565b503461028e576102bf915061037361036e36610a0f565b61342a565b9497959693909392919251978897886110ef565b503461028e576102bf91506102ae61039e36610beb565b611ee4565b503461028e5761028b6103b536610bac565b906138a1565b503461028e576102bf91506103d76103d236610a0f565b612f67565b9051918291826109fe565b503461028e5761028b6103f43661102e565b9161208a565b503461028e5761028b61040c36610bac565b90613b95565b503461028e5761028b61042436610fd4565b929190916117b7565b503461028e576102bf91506102ae61032c61048861031561044d36610915565b939091610479610467826000526099602052604060002090565b5491600052609a602052604060002090565b90600052602052604060002090565b611cca565b5061028b61049a36610bac565b906145b2565b503461028e5761028b6104b236610df4565b90614af7565b503461028e576102bf91506104cc36610996565b60cc54905160ff909116151581529081906020820190565b503461028e5761028b6104f636610e2f565b90614952565b503461028e5761028b61050e36610f51565b93929092613f2e565b503461028e5761028b61052936610beb565b611ffb565b503461028e5761028b61054036610915565b91614d79565b503461028e5761028b61055836610f39565b90611603565b503461028e576102bf915061057236610996565b60cc54905160089190911c60ff16151581529081906020820190565b503461028e576102bf91506105a236610996565b6103d7611406565b503461028e5761028b6105bc36610beb565b611f2c565b503461028e5761028b6105d336610c15565b90614e88565b503461028e5761028b6105eb36610ef9565b916149fb565b503461028e5761060036610996565b61028b615032565b503461028e576102bf915061061c36610996565b6106246134e8565b90519081529081906020820190565b503461028e5761028b61064536610ec6565b916137e6565b503461028e5761028b61065d36610beb565b61486e565b503461028e5761028b61067436610eaa565b6150fb565b503461028e576102bf915061069561069036610a0f565b6143c3565b90516001600160a01b0390911681529081906020820190565b503461028e576102bf91506106246106c536610e92565b61119a565b503461028e576102bf91506106956106e136610a0f565b611260565b503461028e5761028b6106f836610e4f565b91613dcb565b503461028e5761028b61071036610e2f565b90614402565b503461028e5761028b61072836610df4565b90614bea565b503461028e5761028b61074036610a0f565b6140ab565b503461028e5761028b61075736610a5c565b9161177d565b503461028e5761076c36610996565b61028b61509e565b503461028e5761028b61078636610ddc565b90615171565b503461028e5761079b36610996565b61028b615183565b506102bf91506106246107b536610c8c565b9b9a909a999199989298979397969496612880565b503461028e5761028b6107dc36610c15565b90614c8a565b503461028e576102bf91506103d76107f936610beb565b611d2e565b503461028e5761028b61081036610bac565b90613a17565b503461028e5761028b61082836610a5c565b9161172f565b503461028e5761028b61084036610a40565b906142b2565b503461028e5761028b61085836610a21565b9061149f565b503461028e576102bf915061069561087536610a0f565b6115c5565b503461028e576102bf915061088e36610996565b6103d761134f565b503461028e576102bf91506106246108ad3661097e565b612070565b503461028e576102bf91506102ae6108c93661095c565b613515565b503461028e5761028b6108e036610915565b91614f69565b6001600160a01b038116141561000f57565b60043590610905826108e6565b565b6101643590610905826108e6565b606090600319011261000f57600435906024356001811015610941579060443561093e816108e6565b90565b505050600080fd5b6001600160e01b03198116141561000f57565b602090600319011261000f5760043561093e81610949565b6002111561000f57565b602090600319011261000f5760043561093e81610974565b600090600319011261000f57565b918091926000905b8282106109c45750116109bd575050565b6000910152565b915080602091830151818601520182916109ac565b906020916109f2815180928185528580860191016109a4565b601f01601f1916010190565b90602061093e9281815201906109d9565b602090600319011261000f5760043590565b604090600319011261000f57600435610a39816108e6565b9060243590565b604090600319011261000f576004359060243561093e816108e6565b606090600319011261000f57600435610a74816108e6565b90602435610a81816108e6565b9060443590565b50634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b03821117610aba57604052565b610ac2610a88565b604052565b90601f801991011681019081106001600160401b03821117610aba57604052565b60405190608082018281106001600160401b03821117610aba57604052565b6040519060c082018281106001600160401b03821117610aba57604052565b6020906001600160401b038111610b43575b601f01601f19160190565b610b4b610a88565b610b38565b929192610b5c82610b26565b91610b6a6040519384610ac7565b829481845281830111610b87578281602093846000960137010152565b5050505050600080fd5b9080601f830112156109415781602061093e93359101610b50565b906040600319830112610be45760043591602435906001600160401b038211610bdb5761093e91600401610b91565b50505050600080fd5b5050600080fd5b6020600319820112610be457600435906001600160401b0382116109415761093e91600401610b91565b604090600319011261000f57600435610c2d81610974565b9060243561093e816108e6565b9181601f84011215610941578235916001600160401b038311610bdb576020838186019501011161094157565b610124359062ffffff8216821415610be457565b6101443590811515821415610be457565b90610180600319830112610be457610ca26108f8565b91602435906001600160401b03808311610b8757610cc4826004948501610b91565b93604435828111610dd05783610cdb918601610b91565b93606435838111610dc35784610cf2918301610b91565b93608435848111610db55781610d09918401610c3a565b9490949360a435828111610da55783610d23918601610b91565b9360c435838111610d945784610d3a918301610b91565b9360e435848111610d825781610d51918401610b91565b9361010435908111610d8257610d679201610b91565b90610d70610c67565b90610d79610c7b565b9061093e610907565b50505050505050505050505050600080fd5b505050505050505050505050600080fd5b5050505050505050505050600080fd5b505050505050505050600080fd5b5050505050505050600080fd5b50505050505050600080fd5b604090600319011261000f57600435610a3981610974565b6040600319820112610be457600435906001600160401b03821161094157610e1e91600401610b91565b906024358015158114156109415790565b604090600319011261000f57600435906024358015158114156109415790565b906060600319830112610be45760043591602435906001600160401b038211610bdb57610e7e91600401610b91565b9060443562ffffff8116811415610bdb5790565b602090600319011261000f5760043561093e816108e6565b602090600319011261000f57600435801515811415610be45790565b906040600319830112610be45760043591602435906001600160401b038211610bdb57610ef591600401610c3a565b9091565b906060600319830112610be45760043591602435906001600160401b038211610bdb57610f2891600401610b91565b90604435801515811415610bdb5790565b604090600319011261000f57600435610e1e816108e6565b9060a0600319830112610be457600435916001600160401b0390602435828111610b875781610f8291600401610b91565b92604435838111610fc95782610f9a91600401610b91565b92606435818111610dd05783610fb291600401610b91565b92608435918211610dd05761093e91600401610b91565b505050505050600080fd5b906080600319830112610be457600435610fed816108e6565b91602435610ffa816108e6565b9160443591606435906001600160401b038211610fc95780602383011215610fc95781602461093e93600401359101610b50565b906060600319830112610be4576001600160401b0390600435828111610bdb578361105b91600401610b91565b92602435838111610b87578161107391600401610b91565b9260443591818311610fc95780602384011215610fc95782600401359182116110e2575b8160051b604051936020936110ae85840187610ac7565b8552602484860192820101928311610dc357602401905b8282106110d3575050505090565b813581529083019083016110c5565b6110ea610a88565b611097565b959062ffffff946111376111589561112960c0999661111b611145969d9e9d60e08e81815201906109d9565b8c810360208e0152906109d9565b908a820360408c01526109d9565b9088820360608a01526109d9565b91608087015285820360a08701526109d9565b9416910152565b604090600319011261000f57600435610c2d816108e6565b604090600319011261000f576004359060243562ffffff81168114156109415790565b6001600160a01b031680156111ba57600052606860205260406000205490565b505060405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608490fd5b1561121a57565b5060405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606490fd5b6000908152606760205260409020546001600160a01b031661093e811515611213565b90600182811c921680156112b5575b602083101461129d57565b5050634e487b7160e01b600052602260045260246000fd5b91607f1691611292565b90600092918054916112d083611283565b91828252600193848116908160001461133257506001146112f2575b50505050565b90919394506000526020928360002092846000945b83861061131e5750505050010190388080806112ec565b805485870183015294019385908201611307565b60ff191660208401525050604001935038915081905080806112ec565b604051906000826065549161136383611283565b808352926001908181169081156113e9575060011461138a575b5061090592500383610ac7565b6065600090815291507f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c75b8483106113ce575061090593505081016020013861137d565b81935090816020925483858a010152019101909185926113b5565b94505050505060ff1916602083015261090582604081013861137d565b604051906000826066549161141a83611283565b808352926001908181169081156113e95750600114611440575061090592500383610ac7565b6066600090815291507f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e943545b848310611484575061090593505081016020013861137d565b81935090816020925483858a0101520191019091859261146b565b906114a981611260565b6001600160a01b038181169084168114611572573314908115611544575b50156114d65761090591611aa1565b505060405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260849150fd5b6001600160a01b03166000908152606a6020526040902060ff915061156a903390610315565b5416386114c7565b5050505050608460405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152fd5b6000818152606760205260409020546115e8906001600160a01b03161515611213565b6000908152606960205260409020546001600160a01b031690565b6001600160a01b038116919033831461168457816116436116549233600052606a60205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405190151581527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3565b50505050606460405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b156116d357565b5060405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608490fd5b9061090592916117476117428433611853565b6116cc565b611926565b60405190602082018281106001600160401b03821117611770575b60405260008252565b611778610a88565b611767565b90916109059260405192602084018481106001600160401b038211176117aa575b604052600084526117b7565b6117b2610a88565b61179e565b906117db9392916117cb6117428433611853565b6117d6838383611926565b611bad565b156117e257565b5060405162461bcd60e51b8152806117fc60048201611800565b0390fd5b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b6001600160a01b038061186584611260565b16928183169284841494851561189b575b50508315611885575b50505090565b611891919293506115c5565b161438808061187f565b6000908152606a602090815260408083206001600160a01b03949094168352929052205460ff1693503880611876565b156118d257565b5060405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b61194a9061193384611260565b6001600160a01b03828116939091821684146118cb565b8316928315611a4b576119c8826119658784611a2296613559565b611987856119816119758a611260565b6001600160a01b031690565b146118cb565b6119ae61199e886000526069602052604060002090565b80546001600160a01b0319169055565b6001600160a01b0316600090815260686020526040902090565b80546000190190556001600160a01b038116600090815260686020526040902060018154019055611a03856000526067602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4565b505050505050608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152fd5b600082815260696020526040902080546001600160a01b0319166001600160a01b0383161790556001600160a01b0380611ada84611260565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b600090815260676020526040902054610905906001600160a01b03161515611213565b90816020910312610be4575161093e81610949565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261093e929101906109d9565b506040513d6000823e3d90fd5b3d15611ba8573d90611b8e82610b26565b91611b9c6040519384610ac7565b82523d6000602084013e565b606090565b92909190823b15611c5c57611be0926020926000604051809681958294630a85bd0160e11b9a8b85523360048601611b3f565b03926001600160a01b03165af160009181611c3c575b50611c2e57505050611c06611b7d565b80519081611c2957505060405162461bcd60e51b8152806117fc60048201611800565b602001fd5b6001600160e01b0319161490565b611c55919250611c4c3d82610ac7565b3d810190611b2a565b9038611bf6565b50505050600190565b50634e487b7160e01b600052602160045260246000fd5b60021115611c8657565b610905611c65565b611c9781611c7c565b6000526098602052604060002090565b611cb081611c7c565b6000526097602052604060002090565b60011115611c8657565b906001811015611ce3575b600052602052604060002090565b611ceb611c65565b611cd5565b90611d03602092828151948592016109a4565b0190565b6020611d209181604051938285809451938492016109a4565b810161013081520301902090565b6001600160a01b0390816002611d4383611d07565b015460101c1615611ecf57611d5790611d07565b908154611d63906156b9565b906001830154611d72906156b9565b92600201548060081c60ff16611d8790615955565b91611d9460ff8316615955565b908260101c16611da3906158a0565b9160b01c60ff16611db38161473a565b611dbc906156b9565b604051607b60f81b60208201529586959194916021870169113a37b5b2b724b2111d60b11b8152600a01611def91611cf0565b611df8906156ac565b671139b1b7b932911d60c11b8152600801611e1291611cf0565b611e1b906156ac565b6e113730b6b2ab32b934b334b2b2111d60891b8152600f01611e3c91611cf0565b611e45906156ac565b711131b7b73a32b73a2b32b934b334b2b2111d60711b8152601201611e6991611cf0565b611e72906156ac565b681137bbb732b9111d1160b91b8152600901611e8d91611cf0565b61088b60f21b8152600201681139ba30ba3ab9911d60b91b8152600901611eb391611cf0565b607d60f81b815260010103601f198101825261093e9082610ac7565b5050604051630d436c3560e21b815260049150fd5b6001600160a01b036002611ef783611d07565b015460101c1615611f18576002611f0f60ff92611d07565b015460081c1690565b5050604051630d436c3560e21b8152600490fd5b6001600160a01b036002611f3f83611d07565b015460101c1615611f18576001611f5582611d07565b01611f608154611fc7565b9055611f6b81611d07565b547f3ea1c0fcf71b86fca8f96ccac3cf26fba8983d3bbbe7bd720f1865d67fbaee43611fab6001611f9b85611d07565b0154604051918291339683611fdf565b0390a3565b50634e487b7160e01b600052601160045260246000fd5b6001906000198114611fd7570190565b611d03611fb0565b929190611ff66020916040865260408601906109d9565b930152565b6001600160a01b03600261200e83611d07565b015460101c1615611f1857600161202482611d07565b01541561204157600161203682611d07565b01611f608154612055565b50506040516341f3125f60e11b8152600490fd5b8015612063575b6000190190565b61206b611fb0565b61205c565b61207981611c7c565b60005260fe60205260406000205490565b90916000549260ff8460081c1615809481956121ac575b811561218c575b501561212c576120ce92846120c5600160ff196000541617600055565b612113576121ba565b6120d457565b6120e461ff001960005416600055565b604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1565b61212761010061ff00196000541617600055565b6121ba565b5050505050608460405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b303b1591508161219e575b50386120a8565b6001915060ff161438612197565b600160ff82161091506120a1565b9291906121d760ff60005460081c166121d2816122fc565b6122fc565b83516001600160401b0381116122ef575b6121fc816121f7606554611283565b612374565b602080601f8311600114612259575090806122399392612246969760009261224e575b50508160011b916000199060031b1c191617606555612465565b612241612638565b6127b2565b6109056151ea565b01519050388061221f565b90601f1983169661228c60656000527f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c790565b926000905b8982106122d75750509183916001936122399695612246999a106122be575b505050811b01606555612465565b015160001960f88460031b161c191690553880806122b0565b80600185968294968601518155019501930190612291565b6122f7610a88565b6121e8565b1561230357565b5060405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b818110612368575050565b6000815560010161235d565b90601f8211612381575050565b6109059160656000527f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c7906020601f840160051c830193106123cb575b601f0160051c019061235d565b90915081906123be565b90601f82116123e2575050565b6109059160666000527f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e94354906020601f840160051c830193106123cb57601f0160051c019061235d565b9190601f811161243a57505050565b610905926000526020600020906020601f840160051c830193106123cb57601f0160051c019061235d565b9081516001600160401b03811161254f575b61248b81612486606654611283565b6123d5565b602080601f83116001146124c757508192936000926124bc575b50508160011b916000199060031b1c191617606655565b0151905038806124a5565b90601f198316946124fa60666000527f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e9435490565b926000905b87821061253757505083600195961061251e575b505050811b01606655565b015160001960f88460031b161c19169055388080612513565b806001859682949686015181550195019301906124ff565b612557610a88565b612477565b91909182516001600160401b03811161262b575b6125848161257e8454611283565b8461242b565b602080601f83116001146125c05750819293946000926125b5575b50508160011b916000199060031b1c1916179055565b01519050388061259f565b90601f198316956125d685600052602060002090565b926000905b888210612613575050836001959697106125fa575b505050811b019055565b015160001960f88460031b161c191690553880806125f0565b806001859682949686015181550195019301906125db565b612633610a88565b612570565b600061264a60ff825460081c166122fc565b808052609860209081526040808320336000908152908352819020549192909160ff1661277e57808052609883528181203360009081526020919091526040902061269d905b805460ff19166001179055565b808052609783528181206126b18154612792565b905581516001815233602082018190527faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a949183908690604090a36001825260988152828220336000908152602091909152604090205460ff166127695791816097600194858495526098815261273f612690338686209060018060a01b0316600052602052604060002090565b858352522061274e8154612792565b90555160018152336020820181905292908060408101611fab565b5050516397b705ed60e01b8152600492509050fd5b50516397b705ed60e01b8152600492509050fd5b6001906001198111611fd7570190565b6002906002198111611fd7570190565b906127c460ff60005460081c166122fc565b60005b825181101561281157806127dd6127ff92611c7c565b8351811015612804575b6127fa60208260051b860101518261282d565b611fc7565b6127c7565b61280c612816565b6127e7565b509050565b50634e487b7160e01b600052603260045260246000fd5b6040907f6819853ffee8927169953e7bdc42aaba347fb03ff918a45bfccaf88626d900969261285b82611c7c565b8160005260fe60205280836000205582519161287681611c7c565b82526020820152a1565b9496919792989b999093959b612894612ee1565b600160005260986020526128d26128ce61032c8d7fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa610315565b1590565b612a5c578a938c9389612a4d575b610163549e8f9a6128f18c8b612db2565b8d8d8d6101635461290190612792565b6101635561291a90600052610164602052604060002090565b906129258c8361255c565b612932906001830161255c565b61293f826002830161255c565b61294d838e60038401612a8a565b61295a876004830161255c565b60058101805462ffffff191662ffffff8a161790556000600682015561297e610ae8565b9184835285602084015286604084015260608301526007016129a99060008052602052604060002090565b906129b391612b57565b6040519a8b9a600160a01b60019003169e339e6129d09b8d612c97565b037f11d53b6a608f8a1150f88cdb3e563af3830dd531f39be8e1cdaa8cc8b43d77b491a4612a0983600052610165602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055612a3b82600052610166602052604060002090565b805460ff1916905561093e9082612ebd565b612a578a8a61522b565b6128e0565b505050505050505050505050505060405163070198dd60e51b8152806117fc60048201906001602083019252565b9092916001600160401b038111612b4a575b612aaa8161257e8454611283565b6000601f8211600114612ae35781929394600092612ad85750508160011b916000199060031b1c1916179055565b01359050388061259f565b601f19821694612af884600052602060002090565b91805b878110612b32575083600195969710612b1857505050811b019055565b0135600019600384901b60f8161c191690553880806125f0565b90926020600181928686013581550194019101612afb565b612b52610a88565b612a9c565b91909182519283516001600160401b038111612c69575b612b8281612b7c8554611283565b8561242b565b6020948590601f8311600114612bf05761090595968360609460039694612bcb94600092612be5575b50508160011b9160001990881b1c19161786555b8201516001860161255c565b612bdc60408201516002860161255c565b0151910161255c565b015190503880612bab565b90601f19831691612c0686600052602060002090565b9260005b818110612c5257508460039694612bcb946109059a9b9460609860019510612c3a575b505050811b018655612bbf565b0151600019838a1b60f8161c19169055388080612c2d565b929389600181928786015181550195019301612c0a565b612c71610a88565b612b6e565b908060209392818452848401376000828201840152601f01601f1916010190565b9790612d5597612d129b9e9d9b6109059d98612d048c612d4b9a6101409f999a612cf6612d3c9c612ce8612d2e9c612cda612d209c610160808a528901906109d9565b9087820360208901526109d9565b9085820360408701526109d9565b926060818503910152612c76565b8c810360808e0152906109d9565b908a820360a08c01526109d9565b9088820360c08a01526109d9565b9086820360e08801526109d9565b62ffffff909916610100850152565b1515610120830152565b6001600160a01b03909216910152565b15612d6c57565b5060405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b6001600160a01b038116908115612e7557600083815260676020526040902054612e4b9190612ded906001600160a01b031615155b15612d65565b612df561520c565b600084815260676020526040902054612e18906001600160a01b03161515612de7565b6001600160a01b038116600090815260686020526040902060018154019055611a03846000526067602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef81604051a4565b50505050606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b906109059160005261013160205260406000209060ff801983541691151516179055565b6000805260fe6020527f32796e36004994222362c2f9423d5e208bb848170964890784a8d59ed40f50af5434811415612f175750565b6024915060405190635f7e28df60e01b82526004820152fd5b600160005260fe6020527f457c8a48b4735f56b938837eb0a8a5f9c55f23c1a85767ce3b65c3e59d3d32b75434811415612f175750565b600081815260676020526040902054612f8a906001600160a01b03161515611213565b612f9381611260565b90600090815260206101318152604060ff818420541692610166835260ff828220541690610164845282812094613006845197612fcf89610a9f565b601d89527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000878a01526001600160a01b03166158a0565b9260038701600588019261304a85613029613024875462ffffff1690565b61599b565b8b8a51938492839263891c235f60e01b8452886004820191600486016155e8565b038173__$ecf603b2c2aa531f37c90ec146d2a3e91a$__5af495861561341d575b80966133f3575b505061307d90615955565b9161308790615955565b90600789019160068a015493836130a986809690600052602052604060002090565b946130bd9190600052602052604060002090565b600101946130ca906156b9565b955462ffffff166130da9061599b565b9689519b8c998c8b016130f590600190607b60f81b81520190565b67113730b6b2911d1160c11b81526008016131109083615630565b61088b60f21b81526002016e113232b9b1b934b83a34b7b7111d1160891b8152600f016131409060018401615630565b61088b60f21b8152600201681137bbb732b9111d1160b91b815260090161316691611cf0565b61088b60f21b81526002016f1132bc3a32b93730b62fbab936111d1160811b815260100161319691600201615630565b61088b60f21b8152600201681134b6b0b3b2911d1160b91b81526009016131bc91611cf0565b61088b60f21b81526002017f226163636573735f706f696e745f6175746f5f617070726f76616c223a0000008152601d016131f691611cf0565b6131ff906156ac565b6a113b32b934b334b2b2111d60a91b8152600b0161321c91611cf0565b613225906156ac565b6e2261747472696275746573223a205b60881b8152600f017f7b2274726169745f74797065223a2022454e53222c202276616c7565223a22008152601f0161326c91615630565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a2022436f6d6d69742048617368222c20227681526630b63ab2911d1160c91b60208201526027016132b791615630565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a20225265706f7369746f7279222c20227661815265363ab2911d1160d11b602082015260260161330191615630565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a202256657273696f6e222c202276616c7565815262111d1160e91b602082015260230161334891611cf0565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a2022436f6c6f72222c202276616c7565223a8152601160f91b602082015260210161338d91611cf0565b61227d60f01b8152600201605d60f81b8152600101607d60f81b81526001010392601f199384810182526133c19082610ac7565b6133ca906154af565b905193849283016133da91611cf0565b6133e391611cf0565b03908101825261093e9082610ac7565b61307d92965090613415913d90823e61340c3d82610ac7565b3d81019061558a565b949038613072565b613425611b70565b61306b565b60008181526067602052604090205461344d906001600160a01b03161515611213565b60005261016460205260409081600020600681015462ffffff6005830154169380516134848161347d81876112bf565b0382610ac7565b9481516134988161347d81600189016112bf565b9460046134d584516134b18161347d8160028c016112bf565b9661347d86516134c88161347d81600387016112bf565b97965180948193016112bf565b9190565b60018110612063576000190190565b6101635480156135015760018110612063576000190190565b50506040516327e4ec1b60e21b8152600490fd5b63ffffffff60e01b166380ac58cd60e01b8114908115613548575b811561353a575090565b6301ffc9a760e01b14919050565b635b5e139f60e01b81149150613530565b9061356261520c565b6001600160a01b03918216151580806135a2575b1561358757505050610905906135ad565b61359057505050565b16156135995750565b610905906135ad565b508282161515613576565b806000526099602052604060002060018154811981116135f7575b0190557f8c7eb22d1ba10f86d9249f2a8eb0e3e35b4f0b2f21f92dea9ec25a4d84b20fa06020604051338152a2565b6135ff611fb0565b6135c8565b61360d81611260565b6001600160a01b0316331415613749575b600081815260676020526040902054613641906001600160a01b03161515611213565b8060005260206101648152600260406000200190835180916001600160401b03821161373c575b61367c826136768654611283565b8661242b565b80601f83116001146136ce57506000916136c3575b508160011b916000199060031b1c19161790555b600080516020615aa283398151915260405180611fab339582613757565b905084015138613691565b9150601f1983166136e485600052602060002090565b926000905b828210613724575050908360019493921061370b575b5050811b0190556136a5565b86015160001960f88460031b161c1916905538806136ff565b80600185968294968c015181550195019301906136e9565b613744610a88565b613668565b6137528161378a565b61361e565b90608061093e9260408152600b60408201526a195e1d195c9b985b15549360aa1b606082015281602082015201906109d9565b600081815260996020908152604080832054609a83528184209084528252808320838052825280832033845290915281205460ff16156137c8575050565b604492506040519163158eff0360e21b835260048301526024820152fd5b90611fab600080516020615aa28339815191529161380384611260565b6001600160a01b0316331415613893575b61381e858261522b565b600084815260676020526040902054613841906001600160a01b03161515611213565b6138638582600361385d88600052610164602052604060002090565b01612a8a565b604051918291604083526003604084015262454e5360e81b60608401526080602084015233966080840191612c76565b61389c8461378a565b613814565b6138aa81611260565b6001600160a01b03163314156139dd575b6000818152606760205260409020546138de906001600160a01b03161515611213565b8060005260206101648152604060002090835180916001600160401b0382116139d0575b613910826136768654611283565b80601f83116001146139625750600091613957575b508160011b916000199060031b1c19161790555b600080516020615aa283398151915260405180611fab3395826139eb565b905084015138613925565b9150601f19831661397885600052602060002090565b926000905b8282106139b8575050908360019493921061399f575b5050811b019055613939565b86015160001960f88460031b161c191690553880613993565b80600185968294968c0151815501950193019061397d565b6139d8610a88565b613902565b6139e68161378a565b6138bb565b90608061093e926040815260046040820152636e616d6560e01b606082015281602082015201906109d9565b613a2081611260565b6001600160a01b0316331415613b54575b600081815260676020526040902054613a54906001600160a01b03161515611213565b8060005260206101648152600180604060002001918451906001600160401b038211613b47575b613a89826136768654611283565b80601f8311600114613adc575081928291600093613ad1575b501b916000199060031b1c19161790555b600080516020615aa283398151915260405180611fab339582613b62565b870151925038613aa2565b9082601f198116613af287600052602060002090565b936000905b87838310613b2d5750505010613b14575b5050811b019055613ab3565b86015160001960f88460031b161c191690553880613b08565b8b8601518755909501949384019386935090810190613af7565b613b4f610a88565b613a7b565b613b5d8161378a565b613a31565b90608061093e9260408152600b60408201526a3232b9b1b934b83a34b7b760a91b606082015281602082015201906109d9565b613b9e81611260565b6001600160a01b0316331415613cd4575b600081815260676020526040902054613bd2906001600160a01b03161515611213565b8060005260206101648152600460406000200190835180916001600160401b038211613cc7575b613c07826136768654611283565b80601f8311600114613c595750600091613c4e575b508160011b916000199060031b1c19161790555b600080516020615aa283398151915260405180611fab339582613ce2565b905084015138613c1c565b9150601f198316613c6f85600052602060002090565b926000905b828210613caf5750509083600194939210613c96575b5050811b019055613c30565b86015160001960f88460031b161c191690553880613c8a565b80600185968294968c01518155019501930190613c74565b613ccf610a88565b613bf9565b613cdd8161378a565b613baf565b90608061093e926040815260046040820152636c6f676f60e01b606082015281602082015201906109d9565b613d1781611260565b6001600160a01b0316331415613dbd575b600081815260676020526040902054613d4b906001600160a01b03161515611213565b600081815261016460205260409020600501805462ffffff191662ffffff841617905562ffffff6040519260408452600560408501526431b7b637b960d91b60608501521660208301527f7a3039988e102050cb4e0b6fe203e58afd9545e192ef2ca50df8d14ee2483e7e60803393a3565b613dc68161378a565b613d28565b92919092613dd881611260565b6001600160a01b0316331415613f20575b600081815260676020526040902054613e0c906001600160a01b03161515611213565b80600052602093610164855260046040600020018151956001600160401b038711613f13575b613e408761257e8454611283565b80601f8811600114613ea2575095806109059697600091613e97575b508160011b916000199060031b1c19161790555b81600080516020615aa283398151915260405180613e8f339582613ce2565b0390a3613d0e565b905083015138613e5c565b90601f198816613eb784600052602060002090565b926000905b828210613efb575050918891610905989960019410613ee2575b5050811b019055613e70565b85015160001960f88460031b161c191690553880613ed6565b80600185968294968a01518155019501930190613ebc565b613f1b610a88565b613e32565b613f298161378a565b613de9565b92909391613f3b84611260565b6001600160a01b031633141561402e575b600084815260676020526040902054613f6f906001600160a01b03161515611213565b613fe4613f7a610ae8565b868152826020820152836040820152846060820152613fdf6007613fa988600052610164602052604060002090565b016006613fc189600052610164602052604060002090565b0190613fcd8254611fc7565b80925590600052602052604060002090565b612b57565b613fec610ae8565b9485526020850152604084015260608301527fc34cc0b39823c062f2d31bfcde1d16c45decb5d1378a2f63942221b5d39dfbf060405180611fab33958261403c565b6140378461378a565b613f4c565b604081526005604082015264189d5a5b1960da1b6060820152608081019060209160808383015291610100820193926000905b6004821061407f57505050505090565b9091929394838061409c600193607f1989820301865289516109d9565b9701920192019093929161406f565b6140b481611260565b6001600160a01b039081163314156141d55760008183926140d484611260565b6140dc61520c565b16151580806141ce575b83146141b757506140f6836135ad565b6140ff83611260565b61411661199e856000526069602052604060002090565b6001600160a01b03811660009081526068602052604090208319815401905561414c61199e856000526067602052604060002090565b167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef82604051a4614193600261418d83600052610164602052604060002090565b016141ef565b61419a5750565b6141b261090591600052610164602052604060002090565b61426a565b6141c0576140f6565b6141c9836135ad565b6140f6565b50826140e6565b5060249150604051906355d2292f60e11b82526004820152fd5b61093e9054611283565b6001600160fe1b038111600116614211575b60021b90565b614219611fb0565b61420b565b6142288154611283565b9081614232575050565b81601f60009311600114614244575055565b8183526020832061426091601f0160051c81019060010161235d565b8160208120915555565b60066000916142788161421e565b6142846001820161421e565b6142906002820161421e565b61429c6003820161421e565b6142a86004820161421e565b8260058201550155565b6142bb81611260565b6001600160a01b03163314156143a8576001600160a01b03821660009081527fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa602052604090205460ff161561438c5761431481611b07565b61432d82611a0383600052610165602052604060002090565b60408051818152600891810191909152673b32b934b334b2b960c11b60608201526001600160a01b03909216602083015233917f967cd1f911fe3c627b223c427ab2e2a18d89bef4a19ba762b552fd5fbc1033aa908060808101611fab565b505060405163070198dd60e51b81526001600482015260249150fd5b905060249150604051906355d2292f60e11b82526004820152fd5b6000818152606760205260409020546143e6906001600160a01b03161515611213565b600090815261016560205260409020546001600160a01b031690565b61440a6144d4565b8060005261016560205260409160018060a01b038360002054163314156144bb5760008281526067602052604090205461444e906001600160a01b03161515611213565b8160005261016660205261447181846000209060ff801983541691151516179055565b6008835193808552840152671d995c9a599a595960c21b6060840152151560208301527e91a55492d3e3f4e2c9b36ff4134889d9118003521f9d531728503da510b11f60803393a3565b509060249250519063926e6e9960e01b82526004820152fd5b3360009081527fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa602052604090205460ff161561450d57565b5060405163070198dd60e51b815260016004820152602490fd5b3360009081527fddaeee8e61001dbcfaf4f92c6943552c392a86665d734d3c1905d7b3c23b1b1e602052604090205460ff161561456057565b5060405163070198dd60e51b815260006004820152602490fd5b60008181526067602052604090205461459d906001600160a01b03161515611213565b60005261016660205260ff6040600020541690565b6145ba61520c565b6145c2612f30565b6000818152606760205260409020546145e5906001600160a01b03161515611213565b6001600160a01b0361460c60026145fb85611d07565b015460101c6001600160a01b031690565b16614725577fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe890604051817f8140554c907b4ba66a04ea1f43b882cba992d3db4cd5c49298a56402d7b36ca233928061466588826109fe565b0390a361468061032c82600052610131602052604060002090565b156146da576146d5906146c7614694610b07565b828152600060208201819052604082018190526060820152336080820152600160a08201526146c286611d07565b614744565b604051918291339583614820565b0390a2565b6146d5906147176146e9610b07565b828152600060208201819052604082018190526060820152336080820152600060a08201526146c286611d07565b6040519182913395836147fc565b505060405163142d0c2f60e11b815260049150fd5b60041115611c8657565b6002908251815560208301516001820155019061477360408201511515839060ff801983541691151516179055565b6060810151825461ff00191690151560081b61ff00161782556080810151825462010000600160b01b0319811660109290921b62010000600160b01b0316918217845560a0909201516147c58161473a565b60048110156147ef575b62010000600160b81b03199092161760b09190911b60ff60b01b16179055565b6147f7611c65565b6147cf565b6040906148166000939594956060835260608301906109d9565b9460208201520152565b6040906148166001939594956060835260608301906109d9565b6040906148166003939594956060835260608301906109d9565b6040906148166002939594956060835260608301906109d9565b61487661520c565b6001600160a01b0380600261488a84611d07565b015460101c1615611ecf5760026148a083611d07565b015460101c1633141561493e576148cf60026148bb83611d07565b01805460ff60b01b1916600360b01b179055565b6148d881611d07565b546040517fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe833918061490b85878361483a565b0390a27fef2f6bed86b96d79b41799f5285f73b31274bb303ebe5d55a3cb48c567ab2db060405180611fab3395826109fe565b5050604051631851b23d60e01b8152600490fd5b61495b81611260565b6001600160a01b03163314156143a85760008181526067602052604090205461498e906001600160a01b03161515611213565b6149988282612ebd565b6040519160408352601760408401527f616363657373506f696e744175746f417070726f76616c0000000000000000006060840152151560208301527e91a55492d3e3f4e2c9b36ff4134889d9118003521f9d531728503da510b11f60803393a3565b919091614a0781611260565b6001600160a01b0316331415614adb57614a2083611d07565b8181541415614ac55760020190614a3c825460ff9060b01c1690565b614a458161473a565b614aaf577fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe89215614a8b57815460ff60b01b1916600160b01b179091556146d5906146c7565b815460ff60b01b1916600160b11b179091556146d590604051918291339583614854565b5050505050600460405163d9e5c51160e01b8152fd5b50505050506004604051636653b1a360e01b8152fd5b91505060249150604051906355d2292f60e11b82526004820152fd5b614aff6144d4565b614b0881614bbf565b600081815261016560205260409020546001600160a01b0391908216331415614ba257506002614b3783611d07565b015460101c1615611ecf57614b63826002614b5184611d07565b019060ff801983541691151516179055565b7fe2e598f7ff2dfd4bc3bd989635401b4c56846b7893cb7eace51d099f21e69bff611fab614b9083611d07565b54604051918291339615159583611fdf565b92505050602491506040519063926e6e9960e01b82526004820152fd5b6001600160a01b036002614bd283611d07565b015460101c1615611f1857614be690611d07565b5490565b614bf26144d4565b614bfb81614bbf565b600081815261016560205260409020546001600160a01b0391908216331415614ba257506002614c2a83611d07565b015460101c1615611ecf57614c5d826002614c4484611d07565b019061ff00825491151560081b169061ff001916179055565b7f17bd9b465aa0cdc6b308874903e9c38b13f561ecb1f2edaa8bf3969fe603d11c611fab614b9083611d07565b614c9261520c565b614c9a614527565b614ca381611c7c565b60008181526098602090815260408083206001600160a01b038616845290915290205460ff16614d6457614cd681611c7c565b60008181526098602090815260408083206001600160a01b03861684529091529020614d0190612690565b614d0a81611ca7565b614d148154612792565b9055614d1f81611c7c565b60408051600181523360208201526001600160a01b03909316927faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a9181908101611fab565b50506040516397b705ed60e01b815260049150fd5b614d8161520c565b614d8a81611260565b6001600160a01b03908116331415614e6b57816000526099602052614dd261032c8561031586610488604060002054609a602052604060002090600052602052604060002090565b614e55577fa4e6ad394cc40a3bae0d24623f88f7bb2e1463d19dab64bafd9985b0bc78211890614e2f6126908661031587610488614e1a896000526099602052604060002090565b546104798a600052609a602052604060002090565b614e3884611cc0565b60408051600181523360208201529190951694819081015b0390a4565b505050505060046040516397b705ed60e01b8152fd5b5091505060249150604051906355d2292f60e11b82526004820152fd5b614e9061520c565b614e98614527565b614eab6128ce61032c8461031585611c8e565b614d6457614eb881611c7c565b801580614f56575b614f4157614ede614ed48361031584611c8e565b805460ff19169055565b614ee781611ca7565b614ef181546134d9565b9055614efc81611c7c565b60408051600081523360208201526001600160a01b03909316927faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a9181908101611fab565b50506040516360ed092b60e01b815260049150fd5b506001614f6282611ca7565b5414614ec0565b614f7161520c565b614f7a81611260565b6001600160a01b03908116331415614e6b57816000526099602052614fc56128ce61032c8661031587610488604060002054609a602052604060002090600052602052604060002090565b614e55577fa4e6ad394cc40a3bae0d24623f88f7bb2e1463d19dab64bafd9985b0bc7821189061500d614ed48661031587610488614e1a896000526099602052604060002090565b61501684611cc0565b6040805160008152336020820152919095169481908101614e50565b61503a614527565b61504261520c565b60cc5460ff8160081c161561508a5760019060ff19161760cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b5050604051635970d9f560e11b8152600490fd5b6150a6614527565b60cc5460ff8116156150e75760ff191660cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b50506040516355d413dd60e01b8152600490fd5b615103614527565b60cc549015159060ff8160081c16151582146151575761ff008260081b169061ff0019161760cc557f959581ef17eb8c8936ef9832169bc89dbcd1358765adca8ca81f28b416bb5efa6020604051338152a2565b506024915060405190632e15c5c160e21b82526004820152fd5b906109059161517e614527565b61282d565b61518b614527565b4780600081156151e1575b600080809381933390f1156151d4575b6040519081527f8c7cdad0d12a8db3e23561b42da6f10c8137914c97beff202213a410e1f520a360203392a2565b6151dc611b70565b6151a6565b506108fc615196565b6151fb60ff60005460081c166122fc565b60cc805461ffff1916610100179055565b60ff60cc541661521857565b506040516306d39fcd60e41b8152600490fd5b615237916000916152ff565b604051906302571be360e01b825260048201526020816024816e0c2e074ec69a0dfb2997ba6c7d2e1e5afa9081156152c6575b600091615298575b506001600160a01b031633141561528557565b50604051631644084960e21b8152600490fd5b906152a33d83610ac7565b6020823d810103126152c05750516152ba816108e6565b38615272565b91505080fd5b6152ce611b70565b61526a565b908210156152df570190565b611d03612816565b90939293848311610b87578411610bdb578101920390565b91805b82811061535b5750906153199181615320946152e7565b3691610b50565b60208151910120604051615355816153476020820194856040916000825260208201520190565b03601f198101835282610ac7565b51902090565b601760f91b61538c61537f6153718487896152d3565b356001600160f81b03191690565b6001600160f81b03191690565b1461539f5761539a90611fc7565b615302565b6153b56153ae82949394612792565b83866152ff565b92615319926153c494956152e7565b8051602091820120604080519283019384528201526153558160608101615347565b60405190606082018281106001600160401b03821117615456575b604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b61545e610a88565b615401565b6040519061547082610a9f565b6008825260203681840137565b9061548782610b26565b6154946040519182610ac7565b82815280926154a5601f1991610b26565b0190602036910137565b805115615581576154be6153e6565b6154e26154dd6154d86154d185516127a2565b6003900490565b6141f9565b61547d565b9160208301918182518301915b82821061552f5750505060039051068060011461551c57600214615511575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c16880101516002860153168501015190820153019391906154ef565b5061093e61174c565b602081830312610941578051906001600160401b038211610bdb570181601f820112156109415780516155bc81610b26565b926155ca6040519485610ac7565b81845260208284010111610bdb5761093e91602080850191016109a4565b9261561461093e9593615606615622946080885260808801906112bf565b9086820360208801526112bf565b9084820360408601526112bf565b9160608184039101526109d9565b60009291815461563f81611283565b92600191808316908115615697575060011461565b5750505050565b90919293945060005260209081600020906000915b85831061568657505050500190388080806112ec565b805485840152918301918101615670565b60ff19168452505050019150388080806112ec565b600b60fa1b815260010190565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000808210156157ee575b506d04ee2d6d415b85acef8100000000808310156157df575b50662386f26fc10000808310156157d0575b506305f5e100808310156157c1575b50612710808310156157b2575b5060648210156157a2575b600a80921015615798575b60019081602161575082870161547d565b95860101905b615762575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530491821561579357919082615756565b61575b565b916001019161573f565b9190606460029104910191615734565b60049193920491019138615729565b6008919392049101913861571c565b6010919392049101913861570d565b602091939204910191386156fb565b6040935081049150386156e2565b6040519061580982610a9f565b6007825260203681840137565b6020908051156152df570190565b6021908051600110156152df570190565b90602091805182101561584757010190565b61584f612816565b010190565b1561585b57565b50606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b60405190606082018281106001600160401b03821117615948575b604052602a8252604036602084013760306158d583615816565b5360786158e183615824565b536029905b600182116158f95761093e915015615854565b80600f6159359216601081101561593b575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a61592b8486615835565b5360041c91612055565b906158e6565b615943612816565b61590b565b615950610a88565b6158bb565b1561597a5760405161596681610a9f565b60048152637472756560e01b602082015290565b60405161598681610a9f565b600581526466616c736560d81b602082015290565b62ffffff166159a8615463565b9060306159b483615816565b5360786159c083615824565b5360079081905b60018211615a5c576159da915015615854565b6159e26157fc565b91825115615a4f575b60236020840153600190815b838110615a05575050505090565b615a3d906001198111615a42575b6001600160f81b0319615a2882860185615835565b511660001a615a378288615835565b53611fc7565b6159f7565b615a4a611fb0565b615a13565b615a57612816565b6159eb565b80600f615a8e92166010811015615a94575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a61592b8487615835565b906159c7565b615a9c612816565b615a6e56fe0eef1ffa5f2982ad38bb9f5022d2ac4c29b22af1469b6ed4f49176c737d74a18a3646970667358221220643a832f303122bb101860c1f4e4f43c514c06eba21d20ca2352d0017715cc8a6c6578706572696d656e74616cf564736f6c634300080c0041", - "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AccessPointAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointCreationStatusAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointNotExistent\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointScoreCannotBeLower\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsNotPausable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsNotPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTokenIdForAccessPoint\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeAccessPointOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeENSOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"MustBeTokenOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"MustBeTokenVerifier\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustHaveAtLeastOneOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"role\",\"type\":\"uint8\"}],\"name\":\"MustHaveCollectionRole\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"role\",\"type\":\"uint8\"}],\"name\":\"MustHaveTokenRole\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"state\",\"type\":\"bool\"}],\"name\":\"PausableIsSetTo\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredValue\",\"type\":\"uint256\"}],\"name\":\"RequiredPayment\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RoleAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ThereIsNoTokenMinted\",\"type\":\"error\"},{\"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\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"BillingChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointContentVerify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum FleekAccessPoints.AccessPointCreationStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointCreationStatus\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointNameVerify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"score\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointScore\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"CollectionRoleChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"value\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"value\",\"type\":\"uint24\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string[4]\",\"name\":\"value\",\"type\":\"string[4]\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"value\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"NewAccessPoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"ENS\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"ipfsHash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"accessPointAutoApproval\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"NewMint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"isPausable\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PausableStatusChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PauseStatusChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemoveAccessPoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"TokenRoleChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"TokenRolesCleared\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"addAccessPoint\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"decreaseAccessPointScore\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"getAccessPointJSON\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"}],\"name\":\"getBilling\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastTokenId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getTokenVerifier\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantCollectionRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantTokenRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasCollectionRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasTokenRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"increaseAccessPointScore\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"initialBillings\",\"type\":\"uint256[]\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"isAccessPointNameVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPausable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPaused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"isTokenVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ens\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ipfsHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"accessPointAutoApproval\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"removeAccessPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeCollectionRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeTokenRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_apAutoApproval\",\"type\":\"bool\"}],\"name\":\"setAccessPointAutoApproval\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setAccessPointContentVerify\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setAccessPointNameVerify\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAccessPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"setBilling\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"pausable\",\"type\":\"bool\"}],\"name\":\"setPausable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_gitRepository\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_ipfsHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_domain\",\"type\":\"string\"}],\"name\":\"setTokenBuild\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint24\",\"name\":\"_tokenColor\",\"type\":\"uint24\"}],\"name\":\"setTokenColor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenDescription\",\"type\":\"string\"}],\"name\":\"setTokenDescription\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenENS\",\"type\":\"string\"}],\"name\":\"setTokenENS\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenExternalURL\",\"type\":\"string\"}],\"name\":\"setTokenExternalURL\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenLogo\",\"type\":\"string\"}],\"name\":\"setTokenLogo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenLogo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"_tokenColor\",\"type\":\"uint24\"}],\"name\":\"setTokenLogoAndColor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenName\",\"type\":\"string\"}],\"name\":\"setTokenName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setTokenVerified\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"setTokenVerifier\",\"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\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addAccessPoint(uint256,string)\":{\"details\":\"Add a new AccessPoint register for an app token. The AP name should be a DNS or ENS url and it should be unique. Anyone can add an AP but it should requires a payment. May emit a {NewAccessPoint} event. Requirements: - the tokenId must be minted and valid. - billing for add acess point may be applied. - the contract must be not paused.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC721-approve}.\"},\"balanceOf(address)\":{\"details\":\"See {IERC721-balanceOf}.\"},\"burn(uint256)\":{\"details\":\"Burns a previously minted `tokenId`. May emit a {Transfer} event. Requirements: - the tokenId must be minted and valid. - the sender must be the owner of the token. - the contract must be not paused.\"},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"decreaseAccessPointScore(string)\":{\"details\":\"Decreases the score of a AccessPoint registry if is greater than 0.\"},\"getAccessPointJSON(string)\":{\"details\":\"A view function to gether information about an AccessPoint. It returns a JSON string representing the AccessPoint information.\"},\"getApproved(uint256)\":{\"details\":\"See {IERC721-getApproved}.\"},\"getBilling(uint8)\":{\"details\":\"Returns the billing value for a given key.\"},\"getLastTokenId()\":{\"details\":\"Returns the last minted tokenId.\"},\"getToken(uint256)\":{\"details\":\"Returns the token metadata associated with the `tokenId`. Returns multiple string and uint values in relation to metadata fields of the App struct. Requirements: - the tokenId must be minted and valid.\"},\"getTokenVerifier(uint256)\":{\"details\":\"Returns the verifier of a token. Requirements: - the tokenId must be minted and valid.\"},\"grantCollectionRole(uint8,address)\":{\"details\":\"Grants the collection role to an address. Requirements: - the caller should have the collection role.\"},\"grantTokenRole(uint256,uint8,address)\":{\"details\":\"Grants the token role to an address. Requirements: - the caller should have the token role.\"},\"hasCollectionRole(uint8,address)\":{\"details\":\"Returns `True` if a certain address has the collection role.\"},\"hasTokenRole(uint256,uint8,address)\":{\"details\":\"Returns `True` if a certain address has the token role.\"},\"increaseAccessPointScore(string)\":{\"details\":\"Increases the score of a AccessPoint registry.\"},\"initialize(string,string,uint256[])\":{\"details\":\"Initializes the contract by setting a `name` and a `symbol` to the token collection.\"},\"isAccessPointNameVerified(string)\":{\"details\":\"A view function to check if a AccessPoint is verified.\"},\"isApprovedForAll(address,address)\":{\"details\":\"See {IERC721-isApprovedForAll}.\"},\"isPausable()\":{\"details\":\"Returns true if the contract is pausable, and false otherwise.\"},\"isPaused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"isTokenVerified(uint256)\":{\"details\":\"Returns the verification status of a token. Requirements: - the tokenId must be minted and valid.\"},\"mint(address,string,string,string,string,string,string,string,string,uint24,bool,address)\":{\"details\":\"Mints a token and returns a tokenId. If the `tokenId` has not been minted before, and the `to` address is not zero, emits a {Transfer} event. Requirements: - the caller must have ``collectionOwner``'s admin role. - billing for the minting may be applied. - the contract must be not paused.\"},\"name()\":{\"details\":\"See {IERC721Metadata-name}.\"},\"ownerOf(uint256)\":{\"details\":\"See {IERC721-ownerOf}.\"},\"pause()\":{\"details\":\"Sets the contract to paused state. Requirements: - the sender must have the `controller` role. - the contract must be pausable. - the contract must be not paused.\"},\"removeAccessPoint(string)\":{\"details\":\"Remove an AccessPoint registry for an app token. It will also remove the AP from the app token APs list. May emit a {RemoveAccessPoint} event. Requirements: - the AP must exist. - must be called by the AP owner. - the contract must be not paused.\"},\"revokeCollectionRole(uint8,address)\":{\"details\":\"Revokes the collection role of an address. Requirements: - the caller should have the collection role.\"},\"revokeTokenRole(uint256,uint8,address)\":{\"details\":\"Revokes the token role of an address. Requirements: - the caller should have the token role.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"See {IERC721-safeTransferFrom}.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"See {IERC721-safeTransferFrom}.\"},\"setAccessPointAutoApproval(uint256,bool)\":{\"details\":\"Updates the `accessPointAutoApproval` settings on minted `tokenId`. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setAccessPointContentVerify(string,bool)\":{\"details\":\"Set the content verification of a AccessPoint registry. May emit a {ChangeAccessPointContentVerify} event. Requirements: - the AP must exist. - the sender must have the token controller role.\"},\"setAccessPointNameVerify(string,bool)\":{\"details\":\"Set the name verification of a AccessPoint registry. May emit a {ChangeAccessPointNameVerify} event. Requirements: - the AP must exist. - the sender must have the token controller role.\"},\"setApprovalForAccessPoint(uint256,string,bool)\":{\"details\":\"Set approval settings for an access point. It will add the access point to the token's AP list, if `approved` is true. May emit a {ChangeAccessPointApprovalStatus} event. Requirements: - the tokenId must exist and be the same as the tokenId that is set for the AP. - the AP must exist. - must be called by a token controller.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"See {IERC721-setApprovalForAll}.\"},\"setBilling(uint8,uint256)\":{\"details\":\"Sets the billing value for a given key. May emit a {BillingChanged} event. Requirements: - the sender must have the `collectionOwner` role.\"},\"setPausable(bool)\":{\"details\":\"Sets the contract to pausable state. Requirements: - the sender must have the `owner` role. - the contract must be in the oposite pausable state.\"},\"setTokenBuild(uint256,string,string,string,string)\":{\"details\":\"Adds a new build to a minted `tokenId`'s builds mapping. May emit a {NewBuild} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenColor(uint256,uint24)\":{\"details\":\"Updates the `color` metadata field of a minted `tokenId`. May emit a {NewTokenColor} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenDescription(uint256,string)\":{\"details\":\"Updates the `description` metadata field of a minted `tokenId`. May emit a {NewTokenDescription} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenENS(uint256,string)\":{\"details\":\"Updates the `ENS` metadata field of a minted `tokenId`. May emit a {NewTokenENS} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenExternalURL(uint256,string)\":{\"details\":\"Updates the `externalURL` metadata field of a minted `tokenId`. May emit a {NewTokenExternalURL} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenLogo(uint256,string)\":{\"details\":\"Updates the `logo` metadata field of a minted `tokenId`. May emit a {NewTokenLogo} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenLogoAndColor(uint256,string,uint24)\":{\"details\":\"Updates the `logo` and `color` metadata fields of a minted `tokenId`. May emit a {NewTokenLogo} and a {NewTokenColor} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenName(uint256,string)\":{\"details\":\"Updates the `name` metadata field of a minted `tokenId`. May emit a {NewTokenName} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenVerified(uint256,bool)\":{\"details\":\"Sets the verification status of a token. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must be the token verifier. - the sender must have `CollectionRoles.Verifier` role.\"},\"setTokenVerifier(uint256,address)\":{\"details\":\"Sets an address as verifier of a token. The verifier must have `CollectionRoles.Verifier` role. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must be the owner of the token. - the verifier must have `CollectionRoles.Verifier` role.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"symbol()\":{\"details\":\"See {IERC721Metadata-symbol}.\"},\"tokenURI(uint256)\":{\"details\":\"Returns the token metadata associated with the `tokenId`. Returns a based64 encoded string value of the URI. Requirements: - the tokenId must be minted and valid.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC721-transferFrom}.\"},\"unpause()\":{\"details\":\"Sets the contract to unpaused state. Requirements: - the sender must have the `controller` role. - the contract must be paused.\"},\"withdraw()\":{\"details\":\"Withdraws all the funds from contract. May emmit a {Withdrawn} event. Requirements: - the sender must have the `collectionOwner` role.\"}},\"version\":1},\"userdoc\":{\"events\":{\"MetadataUpdate(uint256,string,string,address)\":{\"notice\":\"Event emitted when a token's metadata is updated.\"}},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/FleekERC721.sol\":\"FleekERC721\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@ensdomains/ens-contracts/contracts/registry/ENS.sol\":{\"keccak256\":\"0x7cb1158c7d268b63de1468e28e2711b28d686e2628ddb22da2149cd93ddeafda\",\"urls\":[\"bzz-raw://a7018309acca24b10ea1235b1c27828f29f2ddfabb653a794639baf620dc2314\",\"dweb:/ipfs/QmakFQT5NFvGs3g8xxwtgtWdddq28Wtm6MjNSpJNhV1YpR\"]},\"@ensdomains/ens-contracts/contracts/resolvers/Resolver.sol\":{\"keccak256\":\"0x62b71222aa65138e124b94f5835c2163cc88213491e5f0a80d7a4c45641fbe64\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2def0b17096b07578ac974ab3871d71c757a01389bbfdb124d103308a3ecaad9\",\"dweb:/ipfs/QmepR8cbk2etYYnKHArZFuGNTZ2huqFihxq9mzfS3YgE3Y\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IABIResolver.sol\":{\"keccak256\":\"0x85b373d02d19374fe570af407f459768285704bf7f30ab17c30eabfb5a10e4c3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2046ce3d92d29806d7b447f7ab4227f19b0b2e5c75fd5b4a3fcaef7fe2442141\",\"dweb:/ipfs/QmRgnfWjFetrSJngkhU7Yui1ZcK1MeatvZDpvUTYNuYnND\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddrResolver.sol\":{\"keccak256\":\"0x2ad7f2fc60ebe0f93745fe70247f6a854f66af732483fda2a3c5e055614445e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://43922ba183ff20d87dce7fc5d715e626b26594151e36dcc8d7c6329b9a822963\",\"dweb:/ipfs/QmTg9uHTugTxzqddN68gnhNbGt4bGJBS9mQcss6GYggR4X\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddressResolver.sol\":{\"keccak256\":\"0x411447c1e90c51e09702815a85ec725ffbbe37cf96e8cc4d2a8bd4ad8a59d73e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://543aa2756447a428711b69aea79e9f4641c22f8330ba920b2a49fde8d9207f82\",\"dweb:/ipfs/QmTdpcYRWLH3BL7iytnqcSzRojTPe3YettKaTqeCvKPk54\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IContentHashResolver.sol\":{\"keccak256\":\"0xd95cd77684ba5752c428d7dceb4ecc6506ac94f4fbb910489637eb68dcd8e366\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://daf1fee7770679bd935b8b5686789a4ecc532caeef5a9b8e1b60ae0c285e743e\",\"dweb:/ipfs/QmSaHBAqtDdbQLH6QN4EbupMrq2ah8g6fqE7fLX1u4cjMZ\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSRecordResolver.sol\":{\"keccak256\":\"0xcfa52200edd337f2c6c5bf402352600584da033b21323603e53de33051a3e25d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2c8355211d58db82660140191678ee342eb8a7ac46fa097ae8e03eef008f592e\",\"dweb:/ipfs/QmYDNiECPd4fJ7Vk9Xywfpg73rUvDpcYqas95ofGcpt7fM\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSZoneResolver.sol\":{\"keccak256\":\"0xca1b3a16e7005533f2800a3e66fcdccf7c574deac7913d8c810f40aec1d58dc0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a4e38d5eb69e236c37e4a013628838070720c9e1923569650b01252868038c7a\",\"dweb:/ipfs/QmV397iZMRxtem79kJy5sueJadXoVL89gNViX2xciQHUrk\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IExtendedResolver.sol\":{\"keccak256\":\"0x5d81521cfae7d9a4475d27533cd8ed0d3475d369eb0674fd90ffbdbdf292faa3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d244d15588785044b54c453ab6dc51c616ab70cb8b9e687d3e54565bcae97760\",\"dweb:/ipfs/QmXz4ZZBTFogdkdTV1mcE3ywvL2agKVZHLNNeRHCKVruYM\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IInterfaceResolver.sol\":{\"keccak256\":\"0x390321fb58f7b927df9562450981e74b4be3907e7c09df321fd3b7409b63ae28\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://045d12c6e0e4596b3672614751a9e75188183a89765a6abd938294e0294e9c56\",\"dweb:/ipfs/QmazngvagEoKe29s4M9Rv8KygWD5hrAtNPkYDPJ2pK13yx\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/INameResolver.sol\":{\"keccak256\":\"0x9ec392b612447b1acbdc01114f2da2837a658d3f3157f60a99c5269f0b623346\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5b2cd9e5339b09f40e82bd91fed7d5f643dd031393eefb9aec588eaba8465049\",\"dweb:/ipfs/QmT2A8eswhJU9YadCs9BtwKNj6YGypntXmFepANQYyGw7x\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IPubkeyResolver.sol\":{\"keccak256\":\"0x69748947093dd2fda9ddcebd0adf19a6d1e7600df1d4b1462a0417156caddca7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc2f86e50bd17c38fb10feb577d88d8970c585017a391ef10e3aaa3d50f81555\",\"dweb:/ipfs/QmaxLx2pqCUxf9W2dusfviZ9aSiTuVwuekGo73rjvmGifE\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/ITextResolver.sol\":{\"keccak256\":\"0x7c5debb3c42cd9f5de2274ea7aa053f238608314b62db441c40e31cea2543fd5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://412e34ae2d84d542ffa6791486963f3fe04432a3ffd51877d441256dc2941914\",\"dweb:/ipfs/QmciS4mGAQ6KJtLiLcBFekHKhYAYMmubDWGkpZ3sUFtJPW\"]},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8a313cf42389440e2706837c91370323b85971c06afd6d056d21e2bc86459618\",\"dweb:/ipfs/QmT8XUrUvQ9aZaPKrqgRU2JVGWnaxBcUYJA7Q7K5KcLBSZ\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol\":{\"keccak256\":\"0x2a6a0b9fd2d316dcb4141159a9d13be92654066d6c0ae92757ed908ecdfecff0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c05d9be7ee043009eb9f2089b452efc0961345531fc63354a249d7337c69f3bb\",\"dweb:/ipfs/QmTXhzgaYrh6og76BP85i6exNFAv5NYw64uVWyworNogyG\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol\":{\"keccak256\":\"0xbb2ed8106d94aeae6858e2551a1e7174df73994b77b13ebd120ccaaef80155f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8bc3c6a456dba727d8dd9fd33420febede490abb49a07469f61d2a3ace66a95a\",\"dweb:/ipfs/QmVAWtEVj7K5AbvgJa9Dz22KiDq9eoptCjnVZqsTMtKXyd\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol\":{\"keccak256\":\"0x2c0b89cef83f353c6f9488c013d8a5968587ffdd6dfc26aad53774214b97e229\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4a68e662c2a82412308b1feb24f3d61a44b3b8772f44cbd440446237313c3195\",\"dweb:/ipfs/QmfBuWUE2TQef9hghDzzuVkDskw3UGAyPgLmPifTNV7K6g\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol\":{\"keccak256\":\"0x95a471796eb5f030fdc438660bebec121ad5d063763e64d92376ffb4b5ce8b70\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4ffbd627e6958983d288801acdedbf3491ee0ebf1a430338bce47c96481ce9e3\",\"dweb:/ipfs/QmUM1vpmNgBV34sYf946SthDJNGhwwqjoRggmj4TUUQmdB\"]},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://72460c66cd1c3b1c11b863e0d8df0a1c56f37743019e468dc312c754f43e3b06\",\"dweb:/ipfs/QmPExYKiNb9PUsgktQBupPaM33kzDHxaYoVeJdLhv8s879\"]},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d6520943ea55fdf5f0bafb39ed909f64de17051bc954ff3e88c9e5621412c79c\",\"dweb:/ipfs/QmWZ4rAKTQbNG2HxGs46AcTXShsVytKeLs7CUCdCSv5N7a\"]},\"@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol\":{\"keccak256\":\"0x6b9a5d35b744b25529a2856a8093e7c03fb35a34b1c4fb5499e560f8ade140da\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://187b5c3a1c9e77678732a2cc5284237f9cfca6bc28ee8bc0a0f4f951d7b3a2f8\",\"dweb:/ipfs/Qmb2KFr7WuQu7btdCiftQG64vTzrG4UyzVmo53EYHcnHYA\"]},\"@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol\":{\"keccak256\":\"0x9a3b990bd56d139df3e454a9edf1c64668530b5a77fc32eb063bc206f958274a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0895399d170daab2d69b4c43a0202e5a07f2e67a93b26e3354dcbedb062232f7\",\"dweb:/ipfs/QmUM1VH3XDk559Dsgh4QPvupr3YVKjz87HrSyYzzVFZbxw\"]},\"@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol\":{\"keccak256\":\"0xc6cef87559d0aeffdf0a99803de655938a7779ec0a3cd5d4383483ad85565a09\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://92ad7e572cf44e6b4b37631b44b62f9eb9fb1cf14d9ce51c1504d5dc7ccaf758\",\"dweb:/ipfs/QmcnbqX85tsWnUXPmtuPLE4SczME2sJaTfmqEFkuAJvWhy\"]},\"@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol\":{\"keccak256\":\"0xc1bd5b53319c68f84e3becd75694d941e8f4be94049903232cd8bc7c535aaa5a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://056027a78e6f4b78a39be530983551651ee5a052e786ca2c1c6a3bb1222b03b4\",\"dweb:/ipfs/QmXRUpywAqNwAfXS89vrtiE2THRM9dX9pQ4QxAkV1Wx9kt\"]},\"@openzeppelin/contracts/token/ERC721/IERC721.sol\":{\"keccak256\":\"0xab28a56179c1db258c9bf5235b382698cb650debecb51b23d12be9e241374b68\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://daae589a9d6fa7e55f99f86c0a16796ca490f243fb3693632c3711c0646c1d56\",\"dweb:/ipfs/QmR3zpd7wNw3rcUdekwiv6FYHJqksuTCXLVioTxu6Fbxk3\"]},\"@openzeppelin/contracts/utils/Base64.sol\":{\"keccak256\":\"0x5f3461639fe20794cfb4db4a6d8477388a15b2e70a018043084b7c4bedfa8136\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://77e5309e2cc4cdc3395214edb0ff43ff5a5f7373f5a425383e540f6fab530f96\",\"dweb:/ipfs/QmTV8DZ9knJDa3b5NPBFQqjvTzodyZVjRUg5mx5A99JPLJ\"]},\"@openzeppelin/contracts/utils/Strings.sol\":{\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8c969013129ba9e651a20735ef659fef6d8a1139ea3607bd4b26ddea2d645634\",\"dweb:/ipfs/QmVhVa6LGuzAcB8qgDtVHRkucn4ihj5UZr8xBLcJkP6ucb\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://33bbf48cc069be677705037ba7520c22b1b622c23b33e1a71495f2d36549d40b\",\"dweb:/ipfs/Qmct36zWXv3j7LZB83uwbg7TXwnZSN1fqHNDZ93GG98bGz\"]},\"contracts/FleekAccessControl.sol\":{\"keccak256\":\"0xdd0352b2e9e1a7393cb85a85efb7135cc5c0d5365ee156ca78eda2c82113b6f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb62245b17047d2261afb923ffb7592cc54c78cad599828deb3342e4e6de6c99\",\"dweb:/ipfs/QmRfsz1x2dh4fx78KizNXLMjfisgvzGkizbpAasqzZvggr\"]},\"contracts/FleekAccessPoints.sol\":{\"keccak256\":\"0xa74f4f1af3f7100dde68c4824784a93927191c72f00416f96dded39b36cd43cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6aee8dc6e13e77cec72fbfadee051aad02ab25848646cda7f5a57a89126ea729\",\"dweb:/ipfs/QmWk9raFrRkASBmmZ3Ng9a5HyHYUbjfxEJKhdqwfR2WmL9\"]},\"contracts/FleekBilling.sol\":{\"keccak256\":\"0xcb1568aa8629045a5c97a365d81c448a24f0d6434798e386125633029393ed94\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c775e1ea3aeab0841976c63bfcf95e64ba879ad4a4b635f76ef12fb6a5348b12\",\"dweb:/ipfs/Qmct7TaBnvH86d184URxWYtHwSHMAVyCrtvTG8hcoArD7p\"]},\"contracts/FleekERC721.sol\":{\"keccak256\":\"0xcc28cd2b0afd53d984cc2bb88d008dd4d3b7cfc4ada6448e127fd002bf48368e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce93fa89b284d106f8357ed5e370895bb077011149b9b4a9daca45fa8b30ed96\",\"dweb:/ipfs/Qme5ejsjF9k4LXRQFKf83qX3cZGPipgumoweRihwEeCcoA\"]},\"contracts/FleekPausable.sol\":{\"keccak256\":\"0x4d172714ea6231b283f96cb8e355cc9f5825e01039aa5a521e7a29bcb3ccd1cb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3f099c1af04b71bf43bb34fe8413dffb51a8962f91fd99d61693160c3272bd58\",\"dweb:/ipfs/QmWQe9XyVeD955es4fgbHJuSDNZuqsdTCSDMrfJvioZCdj\"]},\"contracts/IERCX.sol\":{\"keccak256\":\"0xa3ed18c17836d56b1663c34de75a4ce309965fa6f13e88b08eeed29aca4cf4bc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1ae2d073b525af1cf0445655d94c78fe02492e7d4562f815251e6b44a73a5904\",\"dweb:/ipfs/Qmesee9NVvXn84TR2H8AudwGaAZvrQN3JQ9Xs7spcwVs7A\"]},\"contracts/util/FleekENS.sol\":{\"keccak256\":\"0xf9be784932977798e530160f38eefdfbb55ae25a3d9cc58b477b092ef9936039\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0ffc81ef864a34e42a3ab1638e56d95f88721ec1032baadbc251a5ba3b4dd445\",\"dweb:/ipfs/QmUieEHXPHU79i1nx7KmoTVMfwjJGJHWRy2BYGd3PEceSB\"]},\"contracts/util/FleekSVG.sol\":{\"keccak256\":\"0x9d52d0defd643999776563c3ac36f084ae5a04a22c76ec316a0aadf6666c3c9b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://87bc5cca5451b7b8f3986dec26087857fe0f09505116536efad370172fe731a3\",\"dweb:/ipfs/QmZmDxPG8BUUjrVD92T2dktcuFQBxvHgMEnWx5aPBcSfrA\"]},\"contracts/util/FleekStrings.sol\":{\"keccak256\":\"0xccadd4e9c9c14068c6ca83c95d98a5b83b321bf442443f5432045a4313fcfce6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb4b7110961d44fba3f8f016a6fe1eeba7d783c723be7153ac8f05b24c68676d\",\"dweb:/ipfs/QmSCetjeCy7TGG9WFFbDLvpdVwYZrkMsdTBQmJuPwrugUT\"]}},\"version\":1}", + "bytecode": "0x60808060405234620000975760cc549060ff8260081c16151560011462000080575061ff0019166101001760cc556040513381526001907f959581ef17eb8c8936ef9832169bc89dbcd1358765adca8ca81f28b416bb5efa90602090a26200006662000148565b620000706200009d565b604051615c429081620001c38239f35b632e15c5c160e21b81526001600482015260249150fd5b50600080fd5b60005460ff8160081c16620000f15760ff80821610620000ba5750565b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a1565b505060405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b60cc5460ff8116620001ae5760ff8160081c16156200019a5760019060ff19161760cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b5050604051635970d9f560e11b8152600490fd5b50506040516306d39fcd60e41b8152600490fdfe6040608081526004361015610015575b50600080fd5b600090813560e01c806301468deb1461090657806301ffc9a7146108ea57806302dba24d146108ce57806306fdde03146108b2578063081812fc14610896578063095ea7b31461087e5780630a212d2f1461086657806323b872dd1461084e578063246a908b1461083657806327dc5cec1461081a5780632d957aad14610802578063355c5561146107db5780633ccfd60b146107c45780633d01ff4d146107975780633e2332051461077f5780633f4ba83a1461076857806342842e0e1461075057806342966c681461073957806342e44bbf1461072157806349aa155e146107095780635aa6ab3b146106f15780636352211e146106d557806370a08231146106b957806372c299c414610684578063736d323a1461066d5780637469a03b1461065657806378278cca1461063e57806383c4c00d146106135780638456cb59146105fc5780638a2e25be146105e45780638c3c0a44146105cc57806394ec65c5146105b557806395d89b4114610599578063a09a160114610569578063a22cb46514610551578063a27d0b2714610539578063a397c83014610522578063a7ef6a9714610507578063aad045a2146104ef578063b187bd26146104c3578063b20b94f1146104ab578063b30437a014610498578063b42dbe3814610438578063b88d4fde1461041d578063b948a3c514610405578063ba4c458a146103ed578063c87b56dd146103c6578063cdb0e89e146103ae578063d7a75be114610392578063e4b50cb814610362578063e94472501461033e578063e985e9c5146102e6578063eb5fd26b146102ce578063f4fe5f0c1461029d5763f93151771461027f575061000f565b346102995761029661029036610be4565b90613741565b51f35b5080fd5b5034610299576102ca91506102b96102b436610a47565b6146b7565b905190151581529081906020820190565b0390f35b5034610299576102966102e03661120a565b90613e4b565b5034610299576102ca91506102b9610337610320610303366111f2565b6001600160a01b039091166000908152606a602052604090209091565b9060018060a01b0316600052602052604060002090565b5460ff1690565b5034610299576102ca91506102b961033761032061035b36610c4d565b9190611d21565b5034610299576102ca915061037e61037936610a47565b6134bd565b949795969390939291925197889788611182565b5034610299576102ca91506102b96103a936610c23565b611f77565b5034610299576102966103c036610be4565b906139de565b5034610299576102ca91506103e26103dd36610a47565b612ffa565b905191829182610a36565b5034610299576102966103ff366110c1565b9161211d565b50346102995761029661041736610be4565b90613cd2565b50346102995761029661042f36611067565b9291909161184a565b5034610299576102ca91506102b96103376104936103206104583661094d565b939091610484610472826000526099602052604060002090565b5491600052609a602052604060002090565b90600052602052604060002090565b611d5d565b506102966104a536610be4565b906146ef565b5034610299576102966104bd36610e87565b90614c34565b5034610299576102ca91506104d7366109ce565b60cc54905160ff909116151581529081906020820190565b50346102995761029661050136610ec2565b90614a8f565b50346102995761029661051936610fe4565b9392909261406b565b50346102995761029661053436610c23565b61208e565b50346102995761029661054b3661094d565b91614eb6565b50346102995761029661056336610fcc565b90611696565b5034610299576102ca915061057d366109ce565b60cc54905160089190911c60ff16151581529081906020820190565b5034610299576102ca91506105ad366109ce565b6103e2611499565b5034610299576102966105c736610c23565b611fbf565b5034610299576102966105de36610c4d565b90614fc5565b5034610299576102966105f636610f8c565b91614b38565b50346102995761060b366109ce565b61029661516f565b5034610299576102ca9150610627366109ce565b61062f613625565b90519081529081906020820190565b50346102995761029661065036610f59565b91613923565b50346102995761029661066836610c23565b6149ab565b50346102995761029661067f36610f3d565b615238565b5034610299576102ca91506106a061069b36610a47565b614500565b90516001600160a01b0390911681529081906020820190565b5034610299576102ca915061062f6106d036610f25565b61122d565b5034610299576102ca91506106a06106ec36610a47565b6112f3565b50346102995761029661070336610ee2565b91613f08565b50346102995761029661071b36610ec2565b9061453f565b50346102995761029661073336610e87565b90614d27565b50346102995761029661074b36610a47565b6141e8565b50346102995761029661076236610a94565b91611810565b503461029957610777366109ce565b6102966151db565b50346102995761029661079136610e6f565b906152ae565b5034610299576102ca91506107b36107ae36610a47565b61356c565b929593949190915195869586610e14565b5034610299576107d3366109ce565b6102966152c0565b506102ca915061062f6107ed36610cc4565b9b9a909a999199989298979397969496612913565b50346102995761029661081436610c4d565b90614dc7565b5034610299576102ca91506103e261083136610c23565b611dc1565b50346102995761029661084836610be4565b90613b54565b50346102995761029661086036610a94565b916117c2565b50346102995761029661087836610a78565b906143ef565b50346102995761029661089036610a59565b90611532565b5034610299576102ca91506106a06108ad36610a47565b611658565b5034610299576102ca91506108c6366109ce565b6103e26113e2565b5034610299576102ca915061062f6108e5366109b6565b612103565b5034610299576102ca91506102b961090136610994565b613652565b5034610299576102966109183661094d565b916150a6565b6001600160a01b038116141561000f57565b6004359061093d8261091e565b565b610164359061093d8261091e565b606090600319011261000f5760043590602435600181101561097957906044356109768161091e565b90565b505050600080fd5b6001600160e01b03198116141561000f57565b602090600319011261000f5760043561097681610981565b6002111561000f57565b602090600319011261000f57600435610976816109ac565b600090600319011261000f57565b918091926000905b8282106109fc5750116109f5575050565b6000910152565b915080602091830151818601520182916109e4565b90602091610a2a815180928185528580860191016109dc565b601f01601f1916010190565b906020610976928181520190610a11565b602090600319011261000f5760043590565b604090600319011261000f57600435610a718161091e565b9060243590565b604090600319011261000f57600435906024356109768161091e565b606090600319011261000f57600435610aac8161091e565b90602435610ab98161091e565b9060443590565b50634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b03821117610af257604052565b610afa610ac0565b604052565b90601f801991011681019081106001600160401b03821117610af257604052565b60405190608082018281106001600160401b03821117610af257604052565b6040519060c082018281106001600160401b03821117610af257604052565b6020906001600160401b038111610b7b575b601f01601f19160190565b610b83610ac0565b610b70565b929192610b9482610b5e565b91610ba26040519384610aff565b829481845281830111610bbf578281602093846000960137010152565b5050505050600080fd5b9080601f830112156109795781602061097693359101610b88565b906040600319830112610c1c5760043591602435906001600160401b038211610c135761097691600401610bc9565b50505050600080fd5b5050600080fd5b6020600319820112610c1c57600435906001600160401b0382116109795761097691600401610bc9565b604090600319011261000f57600435610c65816109ac565b906024356109768161091e565b9181601f84011215610979578235916001600160401b038311610c13576020838186019501011161097957565b610124359062ffffff8216821415610c1c57565b6101443590811515821415610c1c57565b90610180600319830112610c1c57610cda610930565b91602435906001600160401b03808311610bbf57610cfc826004948501610bc9565b93604435828111610e085783610d13918601610bc9565b93606435838111610dfb5784610d2a918301610bc9565b93608435848111610ded5781610d41918401610c72565b9490949360a435828111610ddd5783610d5b918601610bc9565b9360c435838111610dcc5784610d72918301610bc9565b9360e435848111610dba5781610d89918401610bc9565b9361010435908111610dba57610d9f9201610bc9565b90610da8610c9f565b90610db1610cb3565b9061097661093f565b50505050505050505050505050600080fd5b505050505050505050505050600080fd5b5050505050505050505050600080fd5b505050505050505050600080fd5b5050505050505050600080fd5b50505050505050600080fd5b93906109769593610e45610e6194610e37610e539460a08a5260a08a0190610a11565b9088820360208a0152610a11565b908682036040880152610a11565b908482036060860152610a11565b916080818403910152610a11565b604090600319011261000f57600435610a71816109ac565b6040600319820112610c1c57600435906001600160401b03821161097957610eb191600401610bc9565b906024358015158114156109795790565b604090600319011261000f57600435906024358015158114156109795790565b906060600319830112610c1c5760043591602435906001600160401b038211610c1357610f1191600401610bc9565b9060443562ffffff8116811415610c135790565b602090600319011261000f576004356109768161091e565b602090600319011261000f57600435801515811415610c1c5790565b906040600319830112610c1c5760043591602435906001600160401b038211610c1357610f8891600401610c72565b9091565b906060600319830112610c1c5760043591602435906001600160401b038211610c1357610fbb91600401610bc9565b90604435801515811415610c135790565b604090600319011261000f57600435610eb18161091e565b9060a0600319830112610c1c57600435916001600160401b0390602435828111610bbf578161101591600401610bc9565b9260443583811161105c578261102d91600401610bc9565b92606435818111610e08578361104591600401610bc9565b92608435918211610e085761097691600401610bc9565b505050505050600080fd5b906080600319830112610c1c576004356110808161091e565b9160243561108d8161091e565b9160443591606435906001600160401b03821161105c578060238301121561105c5781602461097693600401359101610b88565b906060600319830112610c1c576001600160401b0390600435828111610c1357836110ee91600401610bc9565b92602435838111610bbf578161110691600401610bc9565b926044359181831161105c578060238401121561105c578260040135918211611175575b8160051b6040519360209361114185840187610aff565b8552602484860192820101928311610dfb57602401905b828210611166575050505090565b81358152908301908301611158565b61117d610ac0565b61112a565b959062ffffff946111ca6111eb956111bc60c099966111ae6111d8969d9e9d60e08e8181520190610a11565b8c810360208e015290610a11565b908a820360408c0152610a11565b9088820360608a0152610a11565b91608087015285820360a0870152610a11565b9416910152565b604090600319011261000f57600435610c658161091e565b604090600319011261000f576004359060243562ffffff81168114156109795790565b6001600160a01b0316801561124d57600052606860205260406000205490565b505060405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608490fd5b156112ad57565b5060405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606490fd5b6000908152606760205260409020546001600160a01b03166109768115156112a6565b90600182811c92168015611348575b602083101461133057565b5050634e487b7160e01b600052602260045260246000fd5b91607f1691611325565b906000929180549161136383611316565b9182825260019384811690816000146113c55750600114611385575b50505050565b90919394506000526020928360002092846000945b8386106113b157505050500101903880808061137f565b80548587018301529401938590820161139a565b60ff1916602084015250506040019350389150819050808061137f565b60405190600082606554916113f683611316565b8083529260019081811690811561147c575060011461141d575b5061093d92500383610aff565b6065600090815291507f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c75b848310611461575061093d935050810160200138611410565b81935090816020925483858a01015201910190918592611448565b94505050505060ff1916602083015261093d826040810138611410565b60405190600082606654916114ad83611316565b8083529260019081811690811561147c57506001146114d3575061093d92500383610aff565b6066600090815291507f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e943545b848310611517575061093d935050810160200138611410565b81935090816020925483858a010152019101909185926114fe565b9061153c816112f3565b6001600160a01b0381811690841681146116055733149081156115d7575b50156115695761093d91611b34565b505060405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260849150fd5b6001600160a01b03166000908152606a6020526040902060ff91506115fd903390610320565b54163861155a565b5050505050608460405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152fd5b60008181526067602052604090205461167b906001600160a01b031615156112a6565b6000908152606960205260409020546001600160a01b031690565b6001600160a01b038116919033831461171757816116d66116e79233600052606a60205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405190151581527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3565b50505050606460405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b1561176657565b5060405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608490fd5b9061093d92916117da6117d584336118e6565b61175f565b6119b9565b60405190602082018281106001600160401b03821117611803575b60405260008252565b61180b610ac0565b6117fa565b909161093d9260405192602084018481106001600160401b0382111761183d575b6040526000845261184a565b611845610ac0565b611831565b9061186e93929161185e6117d584336118e6565b6118698383836119b9565b611c40565b1561187557565b5060405162461bcd60e51b81528061188f60048201611893565b0390fd5b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b6001600160a01b03806118f8846112f3565b16928183169284841494851561192e575b50508315611918575b50505090565b61192491929350611658565b1614388080611912565b6000908152606a602090815260408083206001600160a01b03949094168352929052205460ff1693503880611909565b1561196557565b5060405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b6119dd906119c6846112f3565b6001600160a01b038281169390918216841461195e565b8316928315611ade57611a5b826119f88784611ab596613696565b611a1a85611a14611a088a6112f3565b6001600160a01b031690565b1461195e565b611a41611a31886000526069602052604060002090565b80546001600160a01b0319169055565b6001600160a01b0316600090815260686020526040902090565b80546000190190556001600160a01b038116600090815260686020526040902060018154019055611a96856000526067602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4565b505050505050608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152fd5b600082815260696020526040902080546001600160a01b0319166001600160a01b0383161790556001600160a01b0380611b6d846112f3565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b60009081526067602052604090205461093d906001600160a01b031615156112a6565b90816020910312610c1c575161097681610981565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261097692910190610a11565b506040513d6000823e3d90fd5b3d15611c3b573d90611c2182610b5e565b91611c2f6040519384610aff565b82523d6000602084013e565b606090565b92909190823b15611cef57611c73926020926000604051809681958294630a85bd0160e11b9a8b85523360048601611bd2565b03926001600160a01b03165af160009181611ccf575b50611cc157505050611c99611c10565b80519081611cbc57505060405162461bcd60e51b81528061188f60048201611893565b602001fd5b6001600160e01b0319161490565b611ce8919250611cdf3d82610aff565b3d810190611bbd565b9038611c89565b50505050600190565b50634e487b7160e01b600052602160045260246000fd5b60021115611d1957565b61093d611cf8565b611d2a81611d0f565b6000526098602052604060002090565b611d4381611d0f565b6000526097602052604060002090565b60011115611d1957565b906001811015611d76575b600052602052604060002090565b611d7e611cf8565b611d68565b90611d96602092828151948592016109dc565b0190565b6020611db39181604051938285809451938492016109dc565b810161013081520301902090565b6001600160a01b0390816002611dd683611d9a565b015460101c1615611f6257611dea90611d9a565b908154611df6906157f6565b906001830154611e05906157f6565b92600201548060081c60ff16611e1a90615a92565b91611e2760ff8316615a92565b908260101c16611e36906159dd565b9160b01c60ff16611e4681614877565b611e4f906157f6565b604051607b60f81b60208201529586959194916021870169113a37b5b2b724b2111d60b11b8152600a01611e8291611d83565b611e8b906157e9565b671139b1b7b932911d60c11b8152600801611ea591611d83565b611eae906157e9565b6e113730b6b2ab32b934b334b2b2111d60891b8152600f01611ecf91611d83565b611ed8906157e9565b711131b7b73a32b73a2b32b934b334b2b2111d60711b8152601201611efc91611d83565b611f05906157e9565b681137bbb732b9111d1160b91b8152600901611f2091611d83565b61088b60f21b8152600201681139ba30ba3ab9911d60b91b8152600901611f4691611d83565b607d60f81b815260010103601f19810182526109769082610aff565b5050604051630d436c3560e21b815260049150fd5b6001600160a01b036002611f8a83611d9a565b015460101c1615611fab576002611fa260ff92611d9a565b015460081c1690565b5050604051630d436c3560e21b8152600490fd5b6001600160a01b036002611fd283611d9a565b015460101c1615611fab576001611fe882611d9a565b01611ff3815461205a565b9055611ffe81611d9a565b547f3ea1c0fcf71b86fca8f96ccac3cf26fba8983d3bbbe7bd720f1865d67fbaee4361203e600161202e85611d9a565b0154604051918291339683612072565b0390a3565b50634e487b7160e01b600052601160045260246000fd5b600190600019811461206a570190565b611d96612043565b929190612089602091604086526040860190610a11565b930152565b6001600160a01b0360026120a183611d9a565b015460101c1615611fab5760016120b782611d9a565b0154156120d45760016120c982611d9a565b01611ff381546120e8565b50506040516341f3125f60e11b8152600490fd5b80156120f6575b6000190190565b6120fe612043565b6120ef565b61210c81611d0f565b60005260fe60205260406000205490565b90916000549260ff8460081c16158094819561223f575b811561221f575b50156121bf576121619284612158600160ff196000541617600055565b6121a65761224d565b61216757565b61217761ff001960005416600055565b604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1565b6121ba61010061ff00196000541617600055565b61224d565b5050505050608460405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b303b15915081612231575b503861213b565b6001915060ff16143861222a565b600160ff8216109150612134565b92919061226a60ff60005460081c166122658161238f565b61238f565b83516001600160401b038111612382575b61228f8161228a606554611316565b612407565b602080601f83116001146122ec575090806122cc93926122d996976000926122e1575b50508160011b916000199060031b1c1916176065556124f8565b6122d46126cb565b612845565b61093d615327565b0151905038806122b2565b90601f1983169661231f60656000527f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c790565b926000905b89821061236a5750509183916001936122cc96956122d9999a10612351575b505050811b016065556124f8565b015160001960f88460031b161c19169055388080612343565b80600185968294968601518155019501930190612324565b61238a610ac0565b61227b565b1561239657565b5060405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b8181106123fb575050565b600081556001016123f0565b90601f8211612414575050565b61093d9160656000527f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c7906020601f840160051c8301931061245e575b601f0160051c01906123f0565b9091508190612451565b90601f8211612475575050565b61093d9160666000527f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e94354906020601f840160051c8301931061245e57601f0160051c01906123f0565b9190601f81116124cd57505050565b61093d926000526020600020906020601f840160051c8301931061245e57601f0160051c01906123f0565b9081516001600160401b0381116125e2575b61251e81612519606654611316565b612468565b602080601f831160011461255a575081929360009261254f575b50508160011b916000199060031b1c191617606655565b015190503880612538565b90601f1983169461258d60666000527f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e9435490565b926000905b8782106125ca5750508360019596106125b1575b505050811b01606655565b015160001960f88460031b161c191690553880806125a6565b80600185968294968601518155019501930190612592565b6125ea610ac0565b61250a565b91909182516001600160401b0381116126be575b612617816126118454611316565b846124be565b602080601f8311600114612653575081929394600092612648575b50508160011b916000199060031b1c1916179055565b015190503880612632565b90601f1983169561266985600052602060002090565b926000905b8882106126a65750508360019596971061268d575b505050811b019055565b015160001960f88460031b161c19169055388080612683565b8060018596829496860151815501950193019061266e565b6126c6610ac0565b612603565b60006126dd60ff825460081c1661238f565b808052609860209081526040808320336000908152908352819020549192909160ff16612811578080526098835281812033600090815260209190915260409020612730905b805460ff19166001179055565b808052609783528181206127448154612825565b905581516001815233602082018190527faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a949183908690604090a36001825260988152828220336000908152602091909152604090205460ff166127fc579181609760019485849552609881526127d2612723338686209060018060a01b0316600052602052604060002090565b85835252206127e18154612825565b9055516001815233602082018190529290806040810161203e565b5050516397b705ed60e01b8152600492509050fd5b50516397b705ed60e01b8152600492509050fd5b600190600119811161206a570190565b600290600219811161206a570190565b9061285760ff60005460081c1661238f565b60005b82518110156128a4578061287061289292611d0f565b8351811015612897575b61288d60208260051b86010151826128c0565b61205a565b61285a565b61289f6128a9565b61287a565b509050565b50634e487b7160e01b600052603260045260246000fd5b6040907f6819853ffee8927169953e7bdc42aaba347fb03ff918a45bfccaf88626d90096926128ee82611d0f565b8160005260fe60205280836000205582519161290981611d0f565b82526020820152a1565b9496919792989b999093959b612927612f74565b600160005260986020526129656129616103378d7fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa610320565b1590565b612aef578a938c9389612ae0575b610163549e8f9a6129848c8b612e45565b8d8d8d6101635461299490612825565b610163556129ad90600052610164602052604060002090565b906129b88c836125ef565b6129c590600183016125ef565b6129d282600283016125ef565b6129e0838e60038401612b1d565b6129ed87600483016125ef565b60058101805462ffffff191662ffffff8a1617905560006006820155612a11610b20565b918483528560208401528660408401526060830152600701612a3c9060008052602052604060002090565b90612a4691612bea565b6040519a8b9a600160a01b60019003169e339e612a639b8d612d2a565b037f11d53b6a608f8a1150f88cdb3e563af3830dd531f39be8e1cdaa8cc8b43d77b491a4612a9c83600052610165602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055612ace82600052610166602052604060002090565b805460ff191690556109769082612f50565b612aea8a8a615368565b612973565b505050505050505050505050505060405163070198dd60e51b81528061188f60048201906001602083019252565b9092916001600160401b038111612bdd575b612b3d816126118454611316565b6000601f8211600114612b765781929394600092612b6b5750508160011b916000199060031b1c1916179055565b013590503880612632565b601f19821694612b8b84600052602060002090565b91805b878110612bc5575083600195969710612bab57505050811b019055565b0135600019600384901b60f8161c19169055388080612683565b90926020600181928686013581550194019101612b8e565b612be5610ac0565b612b2f565b91909182519283516001600160401b038111612cfc575b612c1581612c0f8554611316565b856124be565b6020948590601f8311600114612c835761093d95968360609460039694612c5e94600092612c78575b50508160011b9160001990881b1c19161786555b820151600186016125ef565b612c6f6040820151600286016125ef565b015191016125ef565b015190503880612c3e565b90601f19831691612c9986600052602060002090565b9260005b818110612ce557508460039694612c5e9461093d9a9b9460609860019510612ccd575b505050811b018655612c52565b0151600019838a1b60f8161c19169055388080612cc0565b929389600181928786015181550195019301612c9d565b612d04610ac0565b612c01565b908060209392818452848401376000828201840152601f01601f1916010190565b9790612de897612da59b9e9d9b61093d9d98612d978c612dde9a6101409f999a612d89612dcf9c612d7b612dc19c612d6d612db39c610160808a52890190610a11565b908782036020890152610a11565b908582036040870152610a11565b926060818503910152612d09565b8c810360808e015290610a11565b908a820360a08c0152610a11565b9088820360c08a0152610a11565b9086820360e0880152610a11565b62ffffff909916610100850152565b1515610120830152565b6001600160a01b03909216910152565b15612dff57565b5060405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b6001600160a01b038116908115612f0857600083815260676020526040902054612ede9190612e80906001600160a01b031615155b15612df8565b612e88615349565b600084815260676020526040902054612eab906001600160a01b03161515612e7a565b6001600160a01b038116600090815260686020526040902060018154019055611a96846000526067602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef81604051a4565b50505050606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b9061093d9160005261013160205260406000209060ff801983541691151516179055565b6000805260fe6020527f32796e36004994222362c2f9423d5e208bb848170964890784a8d59ed40f50af5434811415612faa5750565b6024915060405190635f7e28df60e01b82526004820152fd5b600160005260fe6020527f457c8a48b4735f56b938837eb0a8a5f9c55f23c1a85767ce3b65c3e59d3d32b75434811415612faa5750565b60008181526067602052604090205461301d906001600160a01b031615156112a6565b613026816112f3565b90600090815260206101318152604060ff818420541692610166835260ff82822054169061016484528281209461309984519761306289610ad7565b601d89527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000878a01526001600160a01b03166159dd565b926003870160058801926130dd856130bc6130b7875462ffffff1690565b615ad8565b8b8a51938492839263891c235f60e01b845288600482019160048601615725565b038173__$ecf603b2c2aa531f37c90ec146d2a3e91a$__5af49586156134b0575b8096613486575b505061311090615a92565b9161311a90615a92565b90600789019160068a0154938361313c86809690600052602052604060002090565b946131509190600052602052604060002090565b6001019461315d906157f6565b955462ffffff1661316d90615ad8565b9689519b8c998c8b0161318890600190607b60f81b81520190565b67113730b6b2911d1160c11b81526008016131a3908361576d565b61088b60f21b81526002016e113232b9b1b934b83a34b7b7111d1160891b8152600f016131d3906001840161576d565b61088b60f21b8152600201681137bbb732b9111d1160b91b81526009016131f991611d83565b61088b60f21b81526002016f1132bc3a32b93730b62fbab936111d1160811b81526010016132299160020161576d565b61088b60f21b8152600201681134b6b0b3b2911d1160b91b815260090161324f91611d83565b61088b60f21b81526002017f226163636573735f706f696e745f6175746f5f617070726f76616c223a0000008152601d0161328991611d83565b613292906157e9565b6a113b32b934b334b2b2111d60a91b8152600b016132af91611d83565b6132b8906157e9565b6e2261747472696275746573223a205b60881b8152600f017f7b2274726169745f74797065223a2022454e53222c202276616c7565223a22008152601f016132ff9161576d565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a2022436f6d6d69742048617368222c20227681526630b63ab2911d1160c91b602082015260270161334a9161576d565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a20225265706f7369746f7279222c20227661815265363ab2911d1160d11b60208201526026016133949161576d565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a202256657273696f6e222c202276616c7565815262111d1160e91b60208201526023016133db91611d83565b62089f4b60ea1b81526003017f7b2274726169745f74797065223a2022436f6c6f72222c202276616c7565223a8152601160f91b602082015260210161342091611d83565b61227d60f01b8152600201605d60f81b8152600101607d60f81b81526001010392601f199384810182526134549082610aff565b61345d906155ec565b9051938492830161346d91611d83565b61347691611d83565b0390810182526109769082610aff565b613110929650906134a8913d90823e61349f3d82610aff565b3d8101906156c7565b949038613105565b6134b8611c03565b6130fe565b6000818152606760205260409020546134e0906001600160a01b031615156112a6565b60005261016460205260409081600020600681015462ffffff600583015416938051613517816135108187611352565b0382610aff565b94815161352b816135108160018901611352565b9460046135688451613544816135108160028c01611352565b96613510865161355b816135108160038701611352565b9796518094819301611352565b9190565b60008181526067602052604090205461358f906001600160a01b031615156112a6565b600052610164602052604080600020906135b162ffffff600584015416615ad8565b90600683015460005260078301602052600281600020019361351061097683516135df81613510818a611352565b96600461360a60036135fa8a6135108a518094819301611352565b9861351088518094819301611352565b95945192838092611352565b600181106120f6576000190190565b61016354801561363e57600181106120f6576000190190565b50506040516327e4ec1b60e21b8152600490fd5b63ffffffff60e01b166380ac58cd60e01b8114908115613685575b8115613677575090565b6301ffc9a760e01b14919050565b635b5e139f60e01b8114915061366d565b9061369f615349565b6001600160a01b03918216151580806136df575b156136c45750505061093d906136ea565b6136cd57505050565b16156136d65750565b61093d906136ea565b5082821615156136b3565b80600052609960205260406000206001815481198111613734575b0190557f8c7eb22d1ba10f86d9249f2a8eb0e3e35b4f0b2f21f92dea9ec25a4d84b20fa06020604051338152a2565b61373c612043565b613705565b61374a816112f3565b6001600160a01b0316331415613886575b60008181526067602052604090205461377e906001600160a01b031615156112a6565b8060005260206101648152600260406000200190835180916001600160401b038211613879575b6137b9826137b38654611316565b866124be565b80601f831160011461380b5750600091613800575b508160011b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613894565b9050840151386137ce565b9150601f19831661382185600052602060002090565b926000905b8282106138615750509083600194939210613848575b5050811b0190556137e2565b86015160001960f88460031b161c19169055388061383c565b80600185968294968c01518155019501930190613826565b613881610ac0565b6137a5565b61388f816138c7565b61375b565b9060806109769260408152600b60408201526a195e1d195c9b985b15549360aa1b60608201528160208201520190610a11565b600081815260996020908152604080832054609a83528184209084528252808320838052825280832033845290915281205460ff1615613905575050565b604492506040519163158eff0360e21b835260048301526024820152fd5b9061203e600080516020615bdf83398151915291613940846112f3565b6001600160a01b03163314156139d0575b61395b8582615368565b60008481526067602052604090205461397e906001600160a01b031615156112a6565b6139a08582600361399a88600052610164602052604060002090565b01612b1d565b604051918291604083526003604084015262454e5360e81b60608401526080602084015233966080840191612d09565b6139d9846138c7565b613951565b6139e7816112f3565b6001600160a01b0316331415613b1a575b600081815260676020526040902054613a1b906001600160a01b031615156112a6565b8060005260206101648152604060002090835180916001600160401b038211613b0d575b613a4d826137b38654611316565b80601f8311600114613a9f5750600091613a94575b508160011b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613b28565b905084015138613a62565b9150601f198316613ab585600052602060002090565b926000905b828210613af55750509083600194939210613adc575b5050811b019055613a76565b86015160001960f88460031b161c191690553880613ad0565b80600185968294968c01518155019501930190613aba565b613b15610ac0565b613a3f565b613b23816138c7565b6139f8565b906080610976926040815260046040820152636e616d6560e01b60608201528160208201520190610a11565b613b5d816112f3565b6001600160a01b0316331415613c91575b600081815260676020526040902054613b91906001600160a01b031615156112a6565b8060005260206101648152600180604060002001918451906001600160401b038211613c84575b613bc6826137b38654611316565b80601f8311600114613c19575081928291600093613c0e575b501b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613c9f565b870151925038613bdf565b9082601f198116613c2f87600052602060002090565b936000905b87838310613c6a5750505010613c51575b5050811b019055613bf0565b86015160001960f88460031b161c191690553880613c45565b8b8601518755909501949384019386935090810190613c34565b613c8c610ac0565b613bb8565b613c9a816138c7565b613b6e565b9060806109769260408152600b60408201526a3232b9b1b934b83a34b7b760a91b60608201528160208201520190610a11565b613cdb816112f3565b6001600160a01b0316331415613e11575b600081815260676020526040902054613d0f906001600160a01b031615156112a6565b8060005260206101648152600460406000200190835180916001600160401b038211613e04575b613d44826137b38654611316565b80601f8311600114613d965750600091613d8b575b508160011b916000199060031b1c19161790555b600080516020615bdf8339815191526040518061203e339582613e1f565b905084015138613d59565b9150601f198316613dac85600052602060002090565b926000905b828210613dec5750509083600194939210613dd3575b5050811b019055613d6d565b86015160001960f88460031b161c191690553880613dc7565b80600185968294968c01518155019501930190613db1565b613e0c610ac0565b613d36565b613e1a816138c7565b613cec565b906080610976926040815260046040820152636c6f676f60e01b60608201528160208201520190610a11565b613e54816112f3565b6001600160a01b0316331415613efa575b600081815260676020526040902054613e88906001600160a01b031615156112a6565b600081815261016460205260409020600501805462ffffff191662ffffff841617905562ffffff6040519260408452600560408501526431b7b637b960d91b60608501521660208301527f7a3039988e102050cb4e0b6fe203e58afd9545e192ef2ca50df8d14ee2483e7e60803393a3565b613f03816138c7565b613e65565b92919092613f15816112f3565b6001600160a01b031633141561405d575b600081815260676020526040902054613f49906001600160a01b031615156112a6565b80600052602093610164855260046040600020018151956001600160401b038711614050575b613f7d876126118454611316565b80601f8811600114613fdf5750958061093d9697600091613fd4575b508160011b916000199060031b1c19161790555b81600080516020615bdf83398151915260405180613fcc339582613e1f565b0390a3613e4b565b905083015138613f99565b90601f198816613ff484600052602060002090565b926000905b82821061403857505091889161093d98996001941061401f575b5050811b019055613fad565b85015160001960f88460031b161c191690553880614013565b80600185968294968a01518155019501930190613ff9565b614058610ac0565b613f6f565b614066816138c7565b613f26565b92909391614078846112f3565b6001600160a01b031633141561416b575b6000848152606760205260409020546140ac906001600160a01b031615156112a6565b6141216140b7610b20565b86815282602082015283604082015284606082015261411c60076140e688600052610164602052604060002090565b0160066140fe89600052610164602052604060002090565b019061410a825461205a565b80925590600052602052604060002090565b612bea565b614129610b20565b9485526020850152604084015260608301527fc34cc0b39823c062f2d31bfcde1d16c45decb5d1378a2f63942221b5d39dfbf06040518061203e339582614179565b614174846138c7565b614089565b604081526005604082015264189d5a5b1960da1b6060820152608081019060209160808383015291610100820193926000905b600482106141bc57505050505090565b909192939483806141d9600193607f198982030186528951610a11565b970192019201909392916141ac565b6141f1816112f3565b6001600160a01b03908116331415614312576000818392614211846112f3565b614219615349565b161515808061430b575b83146142f45750614233836136ea565b61423c836112f3565b614253611a31856000526069602052604060002090565b6001600160a01b038116600090815260686020526040902083198154019055614289611a31856000526067602052604060002090565b167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef82604051a46142d060026142ca83600052610164602052604060002090565b0161432c565b6142d75750565b6142ef61093d91600052610164602052604060002090565b6143a7565b6142fd57614233565b614306836136ea565b614233565b5082614223565b5060249150604051906355d2292f60e11b82526004820152fd5b6109769054611316565b6001600160fe1b03811160011661434e575b60021b90565b614356612043565b614348565b6143658154611316565b908161436f575050565b81601f60009311600114614381575055565b8183526020832061439d91601f0160051c8101906001016123f0565b8160208120915555565b60066000916143b58161435b565b6143c16001820161435b565b6143cd6002820161435b565b6143d96003820161435b565b6143e56004820161435b565b8260058201550155565b6143f8816112f3565b6001600160a01b03163314156144e5576001600160a01b03821660009081527fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa602052604090205460ff16156144c95761445181611b9a565b61446a82611a9683600052610165602052604060002090565b60408051818152600891810191909152673b32b934b334b2b960c11b60608201526001600160a01b03909216602083015233917f967cd1f911fe3c627b223c427ab2e2a18d89bef4a19ba762b552fd5fbc1033aa90806080810161203e565b505060405163070198dd60e51b81526001600482015260249150fd5b905060249150604051906355d2292f60e11b82526004820152fd5b600081815260676020526040902054614523906001600160a01b031615156112a6565b600090815261016560205260409020546001600160a01b031690565b614547614611565b8060005261016560205260409160018060a01b038360002054163314156145f85760008281526067602052604090205461458b906001600160a01b031615156112a6565b816000526101666020526145ae81846000209060ff801983541691151516179055565b6008835193808552840152671d995c9a599a595960c21b6060840152151560208301527e91a55492d3e3f4e2c9b36ff4134889d9118003521f9d531728503da510b11f60803393a3565b509060249250519063926e6e9960e01b82526004820152fd5b3360009081527fe66b7f18a15fed257e722ee4e0b46d479842712099771fae6234a4975b3be6fa602052604090205460ff161561464a57565b5060405163070198dd60e51b815260016004820152602490fd5b3360009081527fddaeee8e61001dbcfaf4f92c6943552c392a86665d734d3c1905d7b3c23b1b1e602052604090205460ff161561469d57565b5060405163070198dd60e51b815260006004820152602490fd5b6000818152606760205260409020546146da906001600160a01b031615156112a6565b60005261016660205260ff6040600020541690565b6146f7615349565b6146ff612fc3565b600081815260676020526040902054614722906001600160a01b031615156112a6565b6001600160a01b03614749600261473885611d9a565b015460101c6001600160a01b031690565b16614862577fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe890604051817f8140554c907b4ba66a04ea1f43b882cba992d3db4cd5c49298a56402d7b36ca23392806147a28882610a36565b0390a36147bd61033782600052610131602052604060002090565b1561481757614812906148046147d1610b3f565b828152600060208201819052604082018190526060820152336080820152600160a08201526147ff86611d9a565b614881565b60405191829133958361495d565b0390a2565b61481290614854614826610b3f565b828152600060208201819052604082018190526060820152336080820152600060a08201526147ff86611d9a565b604051918291339583614939565b505060405163142d0c2f60e11b815260049150fd5b60041115611d1957565b600290825181556020830151600182015501906148b060408201511515839060ff801983541691151516179055565b6060810151825461ff00191690151560081b61ff00161782556080810151825462010000600160b01b0319811660109290921b62010000600160b01b0316918217845560a09092015161490281614877565b600481101561492c575b62010000600160b81b03199092161760b09190911b60ff60b01b16179055565b614934611cf8565b61490c565b604090614953600093959495606083526060830190610a11565b9460208201520152565b604090614953600193959495606083526060830190610a11565b604090614953600393959495606083526060830190610a11565b604090614953600293959495606083526060830190610a11565b6149b3615349565b6001600160a01b038060026149c784611d9a565b015460101c1615611f625760026149dd83611d9a565b015460101c16331415614a7b57614a0c60026149f883611d9a565b01805460ff60b01b1916600360b01b179055565b614a1581611d9a565b546040517fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe8339180614a48858783614977565b0390a27fef2f6bed86b96d79b41799f5285f73b31274bb303ebe5d55a3cb48c567ab2db06040518061203e339582610a36565b5050604051631851b23d60e01b8152600490fd5b614a98816112f3565b6001600160a01b03163314156144e557600081815260676020526040902054614acb906001600160a01b031615156112a6565b614ad58282612f50565b6040519160408352601760408401527f616363657373506f696e744175746f417070726f76616c0000000000000000006060840152151560208301527e91a55492d3e3f4e2c9b36ff4134889d9118003521f9d531728503da510b11f60803393a3565b919091614b44816112f3565b6001600160a01b0316331415614c1857614b5d83611d9a565b8181541415614c025760020190614b79825460ff9060b01c1690565b614b8281614877565b614bec577fb3f4be48c43e81d71721c23e88ed2db7f6782bf8b181c690104db1e31f82bbe89215614bc857815460ff60b01b1916600160b01b1790915561481290614804565b815460ff60b01b1916600160b11b1790915561481290604051918291339583614991565b5050505050600460405163d9e5c51160e01b8152fd5b50505050506004604051636653b1a360e01b8152fd5b91505060249150604051906355d2292f60e11b82526004820152fd5b614c3c614611565b614c4581614cfc565b600081815261016560205260409020546001600160a01b0391908216331415614cdf57506002614c7483611d9a565b015460101c1615611f6257614ca0826002614c8e84611d9a565b019060ff801983541691151516179055565b7fe2e598f7ff2dfd4bc3bd989635401b4c56846b7893cb7eace51d099f21e69bff61203e614ccd83611d9a565b54604051918291339615159583612072565b92505050602491506040519063926e6e9960e01b82526004820152fd5b6001600160a01b036002614d0f83611d9a565b015460101c1615611fab57614d2390611d9a565b5490565b614d2f614611565b614d3881614cfc565b600081815261016560205260409020546001600160a01b0391908216331415614cdf57506002614d6783611d9a565b015460101c1615611f6257614d9a826002614d8184611d9a565b019061ff00825491151560081b169061ff001916179055565b7f17bd9b465aa0cdc6b308874903e9c38b13f561ecb1f2edaa8bf3969fe603d11c61203e614ccd83611d9a565b614dcf615349565b614dd7614664565b614de081611d0f565b60008181526098602090815260408083206001600160a01b038616845290915290205460ff16614ea157614e1381611d0f565b60008181526098602090815260408083206001600160a01b03861684529091529020614e3e90612723565b614e4781611d3a565b614e518154612825565b9055614e5c81611d0f565b60408051600181523360208201526001600160a01b03909316927faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a918190810161203e565b50506040516397b705ed60e01b815260049150fd5b614ebe615349565b614ec7816112f3565b6001600160a01b03908116331415614fa857816000526099602052614f0f6103378561032086610493604060002054609a602052604060002090600052602052604060002090565b614f92577fa4e6ad394cc40a3bae0d24623f88f7bb2e1463d19dab64bafd9985b0bc78211890614f6c6127238661032087610493614f57896000526099602052604060002090565b546104848a600052609a602052604060002090565b614f7584611d53565b60408051600181523360208201529190951694819081015b0390a4565b505050505060046040516397b705ed60e01b8152fd5b5091505060249150604051906355d2292f60e11b82526004820152fd5b614fcd615349565b614fd5614664565b614fe86129616103378461032085611d21565b614ea157614ff581611d0f565b801580615093575b61507e5761501b6150118361032084611d21565b805460ff19169055565b61502481611d3a565b61502e8154613616565b905561503981611d0f565b60408051600081523360208201526001600160a01b03909316927faf048a30703f33a377518eb62cc39bd3a14d6d1a1bb8267dcc440f1bde67b61a918190810161203e565b50506040516360ed092b60e01b815260049150fd5b50600161509f82611d3a565b5414614ffd565b6150ae615349565b6150b7816112f3565b6001600160a01b03908116331415614fa8578160005260996020526151026129616103378661032087610493604060002054609a602052604060002090600052602052604060002090565b614f92577fa4e6ad394cc40a3bae0d24623f88f7bb2e1463d19dab64bafd9985b0bc7821189061514a6150118661032087610493614f57896000526099602052604060002090565b61515384611d53565b6040805160008152336020820152919095169481908101614f8d565b615177614664565b61517f615349565b60cc5460ff8160081c16156151c75760019060ff19161760cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b5050604051635970d9f560e11b8152600490fd5b6151e3614664565b60cc5460ff8116156152245760ff191660cc5560007f07e8f74f605213c41c1a057118d86bca5540e9cf52c351026d0d65e46421aa1a6020604051338152a2565b50506040516355d413dd60e01b8152600490fd5b615240614664565b60cc549015159060ff8160081c16151582146152945761ff008260081b169061ff0019161760cc557f959581ef17eb8c8936ef9832169bc89dbcd1358765adca8ca81f28b416bb5efa6020604051338152a2565b506024915060405190632e15c5c160e21b82526004820152fd5b9061093d916152bb614664565b6128c0565b6152c8614664565b47806000811561531e575b600080809381933390f115615311575b6040519081527f8c7cdad0d12a8db3e23561b42da6f10c8137914c97beff202213a410e1f520a360203392a2565b615319611c03565b6152e3565b506108fc6152d3565b61533860ff60005460081c1661238f565b60cc805461ffff1916610100179055565b60ff60cc541661535557565b506040516306d39fcd60e41b8152600490fd5b6153749160009161543c565b604051906302571be360e01b825260048201526020816024816e0c2e074ec69a0dfb2997ba6c7d2e1e5afa908115615403575b6000916153d5575b506001600160a01b03163314156153c257565b50604051631644084960e21b8152600490fd5b906153e03d83610aff565b6020823d810103126153fd5750516153f78161091e565b386153af565b91505080fd5b61540b611c03565b6153a7565b9082101561541c570190565b611d966128a9565b90939293848311610bbf578411610c13578101920390565b91805b828110615498575090615456918161545d94615424565b3691610b88565b60208151910120604051615492816154846020820194856040916000825260208201520190565b03601f198101835282610aff565b51902090565b601760f91b6154c96154bc6154ae848789615410565b356001600160f81b03191690565b6001600160f81b03191690565b146154dc576154d79061205a565b61543f565b6154f26154eb82949394612825565b838661543c565b92615456926155019495615424565b8051602091820120604080519283019384528201526154928160608101615484565b60405190606082018281106001600160401b03821117615593575b604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b61559b610ac0565b61553e565b604051906155ad82610ad7565b6008825260203681840137565b906155c482610b5e565b6155d16040519182610aff565b82815280926155e2601f1991610b5e565b0190602036910137565b8051156156be576155fb615523565b61561f61561a61561561560e8551612835565b6003900490565b614336565b6155ba565b9160208301918182518301915b82821061566c575050506003905106806001146156595760021461564e575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c168801015160028601531685010151908201530193919061562c565b506109766117df565b602081830312610979578051906001600160401b038211610c13570181601f820112156109795780516156f981610b5e565b926157076040519485610aff565b81845260208284010111610c135761097691602080850191016109dc565b92615751610976959361574361575f94608088526080880190611352565b908682036020880152611352565b908482036040860152611352565b916060818403910152610a11565b60009291815461577c81611316565b926001918083169081156157d457506001146157985750505050565b90919293945060005260209081600020906000915b8583106157c3575050505001903880808061137f565b8054858401529183019181016157ad565b60ff191684525050500191503880808061137f565b600b60fa1b815260010190565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008082101561592b575b506d04ee2d6d415b85acef81000000008083101561591c575b50662386f26fc100008083101561590d575b506305f5e100808310156158fe575b50612710808310156158ef575b5060648210156158df575b600a809210156158d5575b60019081602161588d8287016155ba565b95860101905b61589f575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049182156158d057919082615893565b615898565b916001019161587c565b9190606460029104910191615871565b60049193920491019138615866565b60089193920491019138615859565b6010919392049101913861584a565b60209193920491019138615838565b60409350810491503861581f565b6040519061594682610ad7565b6007825260203681840137565b60209080511561541c570190565b60219080516001101561541c570190565b90602091805182101561598457010190565b61598c6128a9565b010190565b1561599857565b50606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b60405190606082018281106001600160401b03821117615a85575b604052602a825260403660208401376030615a1283615953565b536078615a1e83615961565b536029905b60018211615a3657610976915015615991565b80600f615a7292166010811015615a78575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a615a688486615972565b5360041c916120e8565b90615a23565b615a806128a9565b615a48565b615a8d610ac0565b6159f8565b15615ab757604051615aa381610ad7565b60048152637472756560e01b602082015290565b604051615ac381610ad7565b600581526466616c736560d81b602082015290565b62ffffff16615ae56155a0565b906030615af183615953565b536078615afd83615961565b5360079081905b60018211615b9957615b17915015615991565b615b1f615939565b91825115615b8c575b60236020840153600190815b838110615b42575050505090565b615b7a906001198111615b7f575b6001600160f81b0319615b6582860185615972565b511660001a615b748288615972565b5361205a565b615b34565b615b87612043565b615b50565b615b946128a9565b615b28565b80600f615bcb92166010811015615bd1575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a615a688487615972565b90615b04565b615bd96128a9565b615bab56fe0eef1ffa5f2982ad38bb9f5022d2ac4c29b22af1469b6ed4f49176c737d74a18a36469706673582212205f78f20fa944789cd75c7c7059259e69adf1d7575474fde59bda6a4c7766b4be6c6578706572696d656e74616cf564736f6c634300080c0041", + "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AccessPointAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointCreationStatusAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointNotExistent\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AccessPointScoreCannotBeLower\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsNotPausable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsNotPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ContractIsPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTokenIdForAccessPoint\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeAccessPointOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeENSOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"MustBeTokenOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"MustBeTokenVerifier\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustHaveAtLeastOneOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"role\",\"type\":\"uint8\"}],\"name\":\"MustHaveCollectionRole\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"role\",\"type\":\"uint8\"}],\"name\":\"MustHaveTokenRole\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"state\",\"type\":\"bool\"}],\"name\":\"PausableIsSetTo\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredValue\",\"type\":\"uint256\"}],\"name\":\"RequiredPayment\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RoleAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ThereIsNoTokenMinted\",\"type\":\"error\"},{\"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\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"BillingChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointContentVerify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum FleekAccessPoints.AccessPointCreationStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointCreationStatus\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointNameVerify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"score\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"ChangeAccessPointScore\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"CollectionRoleChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"value\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"value\",\"type\":\"uint24\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string[4]\",\"name\":\"value\",\"type\":\"string[4]\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"value\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"triggeredBy\",\"type\":\"address\"}],\"name\":\"MetadataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"NewAccessPoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"ENS\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"ipfsHash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"accessPointAutoApproval\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"NewMint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"isPausable\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PausableStatusChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PauseStatusChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemoveAccessPoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"TokenRoleChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"TokenRolesCleared\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"byAddress\",\"type\":\"address\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"addAccessPoint\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"decreaseAccessPointScore\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"getAccessPointJSON\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getAppData\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"}],\"name\":\"getBilling\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastTokenId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getTokenVerifier\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantCollectionRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantTokenRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasCollectionRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasTokenRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"increaseAccessPointScore\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"initialBillings\",\"type\":\"uint256[]\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"isAccessPointNameVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPausable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPaused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"isTokenVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"externalURL\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ens\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"gitRepository\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ipfsHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"logo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"color\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"accessPointAutoApproval\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"}],\"name\":\"removeAccessPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekAccessControl.CollectionRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeCollectionRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"enum FleekAccessControl.TokenRoles\",\"name\":\"role\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeTokenRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_apAutoApproval\",\"type\":\"bool\"}],\"name\":\"setAccessPointAutoApproval\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setAccessPointContentVerify\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setAccessPointNameVerify\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"apName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAccessPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum FleekBilling.Billing\",\"name\":\"key\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"setBilling\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"pausable\",\"type\":\"bool\"}],\"name\":\"setPausable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_commitHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_gitRepository\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_ipfsHash\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_domain\",\"type\":\"string\"}],\"name\":\"setTokenBuild\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint24\",\"name\":\"_tokenColor\",\"type\":\"uint24\"}],\"name\":\"setTokenColor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenDescription\",\"type\":\"string\"}],\"name\":\"setTokenDescription\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenENS\",\"type\":\"string\"}],\"name\":\"setTokenENS\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenExternalURL\",\"type\":\"string\"}],\"name\":\"setTokenExternalURL\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenLogo\",\"type\":\"string\"}],\"name\":\"setTokenLogo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenLogo\",\"type\":\"string\"},{\"internalType\":\"uint24\",\"name\":\"_tokenColor\",\"type\":\"uint24\"}],\"name\":\"setTokenLogoAndColor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_tokenName\",\"type\":\"string\"}],\"name\":\"setTokenName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"verified\",\"type\":\"bool\"}],\"name\":\"setTokenVerified\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"setTokenVerifier\",\"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\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addAccessPoint(uint256,string)\":{\"details\":\"Add a new AccessPoint register for an app token. The AP name should be a DNS or ENS url and it should be unique. Anyone can add an AP but it should requires a payment. May emit a {NewAccessPoint} event. Requirements: - the tokenId must be minted and valid. - billing for add acess point may be applied. - the contract must be not paused.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC721-approve}.\"},\"balanceOf(address)\":{\"details\":\"See {IERC721-balanceOf}.\"},\"burn(uint256)\":{\"details\":\"Burns a previously minted `tokenId`. May emit a {Transfer} event. Requirements: - the tokenId must be minted and valid. - the sender must be the owner of the token. - the contract must be not paused.\"},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"decreaseAccessPointScore(string)\":{\"details\":\"Decreases the score of a AccessPoint registry if is greater than 0.\"},\"getAccessPointJSON(string)\":{\"details\":\"A view function to gether information about an AccessPoint. It returns a JSON string representing the AccessPoint information.\"},\"getApproved(uint256)\":{\"details\":\"See {IERC721-getApproved}.\"},\"getBilling(uint8)\":{\"details\":\"Returns the billing value for a given key.\"},\"getLastTokenId()\":{\"details\":\"Returns the last minted tokenId.\"},\"getToken(uint256)\":{\"details\":\"Returns the token metadata associated with the `tokenId`. Returns multiple string and uint values in relation to metadata fields of the App struct. Requirements: - the tokenId must be minted and valid.\"},\"getTokenVerifier(uint256)\":{\"details\":\"Returns the verifier of a token. Requirements: - the tokenId must be minted and valid.\"},\"grantCollectionRole(uint8,address)\":{\"details\":\"Grants the collection role to an address. Requirements: - the caller should have the collection role.\"},\"grantTokenRole(uint256,uint8,address)\":{\"details\":\"Grants the token role to an address. Requirements: - the caller should have the token role.\"},\"hasCollectionRole(uint8,address)\":{\"details\":\"Returns `True` if a certain address has the collection role.\"},\"hasTokenRole(uint256,uint8,address)\":{\"details\":\"Returns `True` if a certain address has the token role.\"},\"increaseAccessPointScore(string)\":{\"details\":\"Increases the score of a AccessPoint registry.\"},\"initialize(string,string,uint256[])\":{\"details\":\"Initializes the contract by setting a `name` and a `symbol` to the token collection.\"},\"isAccessPointNameVerified(string)\":{\"details\":\"A view function to check if a AccessPoint is verified.\"},\"isApprovedForAll(address,address)\":{\"details\":\"See {IERC721-isApprovedForAll}.\"},\"isPausable()\":{\"details\":\"Returns true if the contract is pausable, and false otherwise.\"},\"isPaused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"isTokenVerified(uint256)\":{\"details\":\"Returns the verification status of a token. Requirements: - the tokenId must be minted and valid.\"},\"mint(address,string,string,string,string,string,string,string,string,uint24,bool,address)\":{\"details\":\"Mints a token and returns a tokenId. If the `tokenId` has not been minted before, and the `to` address is not zero, emits a {Transfer} event. Requirements: - the caller must have ``collectionOwner``'s admin role. - billing for the minting may be applied. - the contract must be not paused.\"},\"name()\":{\"details\":\"See {IERC721Metadata-name}.\"},\"ownerOf(uint256)\":{\"details\":\"See {IERC721-ownerOf}.\"},\"pause()\":{\"details\":\"Sets the contract to paused state. Requirements: - the sender must have the `controller` role. - the contract must be pausable. - the contract must be not paused.\"},\"removeAccessPoint(string)\":{\"details\":\"Remove an AccessPoint registry for an app token. It will also remove the AP from the app token APs list. May emit a {RemoveAccessPoint} event. Requirements: - the AP must exist. - must be called by the AP owner. - the contract must be not paused.\"},\"revokeCollectionRole(uint8,address)\":{\"details\":\"Revokes the collection role of an address. Requirements: - the caller should have the collection role.\"},\"revokeTokenRole(uint256,uint8,address)\":{\"details\":\"Revokes the token role of an address. Requirements: - the caller should have the token role.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"See {IERC721-safeTransferFrom}.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"See {IERC721-safeTransferFrom}.\"},\"setAccessPointAutoApproval(uint256,bool)\":{\"details\":\"Updates the `accessPointAutoApproval` settings on minted `tokenId`. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setAccessPointContentVerify(string,bool)\":{\"details\":\"Set the content verification of a AccessPoint registry. May emit a {ChangeAccessPointContentVerify} event. Requirements: - the AP must exist. - the sender must have the token controller role.\"},\"setAccessPointNameVerify(string,bool)\":{\"details\":\"Set the name verification of a AccessPoint registry. May emit a {ChangeAccessPointNameVerify} event. Requirements: - the AP must exist. - the sender must have the token controller role.\"},\"setApprovalForAccessPoint(uint256,string,bool)\":{\"details\":\"Set approval settings for an access point. It will add the access point to the token's AP list, if `approved` is true. May emit a {ChangeAccessPointApprovalStatus} event. Requirements: - the tokenId must exist and be the same as the tokenId that is set for the AP. - the AP must exist. - must be called by a token controller.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"See {IERC721-setApprovalForAll}.\"},\"setBilling(uint8,uint256)\":{\"details\":\"Sets the billing value for a given key. May emit a {BillingChanged} event. Requirements: - the sender must have the `collectionOwner` role.\"},\"setPausable(bool)\":{\"details\":\"Sets the contract to pausable state. Requirements: - the sender must have the `owner` role. - the contract must be in the oposite pausable state.\"},\"setTokenBuild(uint256,string,string,string,string)\":{\"details\":\"Adds a new build to a minted `tokenId`'s builds mapping. May emit a {NewBuild} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenColor(uint256,uint24)\":{\"details\":\"Updates the `color` metadata field of a minted `tokenId`. May emit a {NewTokenColor} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenDescription(uint256,string)\":{\"details\":\"Updates the `description` metadata field of a minted `tokenId`. May emit a {NewTokenDescription} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenENS(uint256,string)\":{\"details\":\"Updates the `ENS` metadata field of a minted `tokenId`. May emit a {NewTokenENS} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenExternalURL(uint256,string)\":{\"details\":\"Updates the `externalURL` metadata field of a minted `tokenId`. May emit a {NewTokenExternalURL} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenLogo(uint256,string)\":{\"details\":\"Updates the `logo` metadata field of a minted `tokenId`. May emit a {NewTokenLogo} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenLogoAndColor(uint256,string,uint24)\":{\"details\":\"Updates the `logo` and `color` metadata fields of a minted `tokenId`. May emit a {NewTokenLogo} and a {NewTokenColor} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenName(uint256,string)\":{\"details\":\"Updates the `name` metadata field of a minted `tokenId`. May emit a {NewTokenName} event. Requirements: - the tokenId must be minted and valid. - the sender must have the `tokenController` role.\"},\"setTokenVerified(uint256,bool)\":{\"details\":\"Sets the verification status of a token. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must be the token verifier. - the sender must have `CollectionRoles.Verifier` role.\"},\"setTokenVerifier(uint256,address)\":{\"details\":\"Sets an address as verifier of a token. The verifier must have `CollectionRoles.Verifier` role. May emit a {MetadataUpdate} event. Requirements: - the tokenId must be minted and valid. - the sender must be the owner of the token. - the verifier must have `CollectionRoles.Verifier` role.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"symbol()\":{\"details\":\"See {IERC721Metadata-symbol}.\"},\"tokenURI(uint256)\":{\"details\":\"Returns the token metadata associated with the `tokenId`. Returns a based64 encoded string value of the URI. Requirements: - the tokenId must be minted and valid.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC721-transferFrom}.\"},\"unpause()\":{\"details\":\"Sets the contract to unpaused state. Requirements: - the sender must have the `controller` role. - the contract must be paused.\"},\"withdraw()\":{\"details\":\"Withdraws all the funds from contract. May emmit a {Withdrawn} event. Requirements: - the sender must have the `collectionOwner` role.\"}},\"version\":1},\"userdoc\":{\"events\":{\"MetadataUpdate(uint256,string,string,address)\":{\"notice\":\"Event emitted when a token's metadata is updated.\"}},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/FleekERC721.sol\":\"FleekERC721\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@ensdomains/ens-contracts/contracts/registry/ENS.sol\":{\"keccak256\":\"0x7cb1158c7d268b63de1468e28e2711b28d686e2628ddb22da2149cd93ddeafda\",\"urls\":[\"bzz-raw://a7018309acca24b10ea1235b1c27828f29f2ddfabb653a794639baf620dc2314\",\"dweb:/ipfs/QmakFQT5NFvGs3g8xxwtgtWdddq28Wtm6MjNSpJNhV1YpR\"]},\"@ensdomains/ens-contracts/contracts/resolvers/Resolver.sol\":{\"keccak256\":\"0x62b71222aa65138e124b94f5835c2163cc88213491e5f0a80d7a4c45641fbe64\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2def0b17096b07578ac974ab3871d71c757a01389bbfdb124d103308a3ecaad9\",\"dweb:/ipfs/QmepR8cbk2etYYnKHArZFuGNTZ2huqFihxq9mzfS3YgE3Y\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IABIResolver.sol\":{\"keccak256\":\"0x85b373d02d19374fe570af407f459768285704bf7f30ab17c30eabfb5a10e4c3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2046ce3d92d29806d7b447f7ab4227f19b0b2e5c75fd5b4a3fcaef7fe2442141\",\"dweb:/ipfs/QmRgnfWjFetrSJngkhU7Yui1ZcK1MeatvZDpvUTYNuYnND\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddrResolver.sol\":{\"keccak256\":\"0x2ad7f2fc60ebe0f93745fe70247f6a854f66af732483fda2a3c5e055614445e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://43922ba183ff20d87dce7fc5d715e626b26594151e36dcc8d7c6329b9a822963\",\"dweb:/ipfs/QmTg9uHTugTxzqddN68gnhNbGt4bGJBS9mQcss6GYggR4X\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IAddressResolver.sol\":{\"keccak256\":\"0x411447c1e90c51e09702815a85ec725ffbbe37cf96e8cc4d2a8bd4ad8a59d73e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://543aa2756447a428711b69aea79e9f4641c22f8330ba920b2a49fde8d9207f82\",\"dweb:/ipfs/QmTdpcYRWLH3BL7iytnqcSzRojTPe3YettKaTqeCvKPk54\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IContentHashResolver.sol\":{\"keccak256\":\"0xd95cd77684ba5752c428d7dceb4ecc6506ac94f4fbb910489637eb68dcd8e366\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://daf1fee7770679bd935b8b5686789a4ecc532caeef5a9b8e1b60ae0c285e743e\",\"dweb:/ipfs/QmSaHBAqtDdbQLH6QN4EbupMrq2ah8g6fqE7fLX1u4cjMZ\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSRecordResolver.sol\":{\"keccak256\":\"0xcfa52200edd337f2c6c5bf402352600584da033b21323603e53de33051a3e25d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2c8355211d58db82660140191678ee342eb8a7ac46fa097ae8e03eef008f592e\",\"dweb:/ipfs/QmYDNiECPd4fJ7Vk9Xywfpg73rUvDpcYqas95ofGcpt7fM\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IDNSZoneResolver.sol\":{\"keccak256\":\"0xca1b3a16e7005533f2800a3e66fcdccf7c574deac7913d8c810f40aec1d58dc0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a4e38d5eb69e236c37e4a013628838070720c9e1923569650b01252868038c7a\",\"dweb:/ipfs/QmV397iZMRxtem79kJy5sueJadXoVL89gNViX2xciQHUrk\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IExtendedResolver.sol\":{\"keccak256\":\"0x5d81521cfae7d9a4475d27533cd8ed0d3475d369eb0674fd90ffbdbdf292faa3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d244d15588785044b54c453ab6dc51c616ab70cb8b9e687d3e54565bcae97760\",\"dweb:/ipfs/QmXz4ZZBTFogdkdTV1mcE3ywvL2agKVZHLNNeRHCKVruYM\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IInterfaceResolver.sol\":{\"keccak256\":\"0x390321fb58f7b927df9562450981e74b4be3907e7c09df321fd3b7409b63ae28\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://045d12c6e0e4596b3672614751a9e75188183a89765a6abd938294e0294e9c56\",\"dweb:/ipfs/QmazngvagEoKe29s4M9Rv8KygWD5hrAtNPkYDPJ2pK13yx\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/INameResolver.sol\":{\"keccak256\":\"0x9ec392b612447b1acbdc01114f2da2837a658d3f3157f60a99c5269f0b623346\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5b2cd9e5339b09f40e82bd91fed7d5f643dd031393eefb9aec588eaba8465049\",\"dweb:/ipfs/QmT2A8eswhJU9YadCs9BtwKNj6YGypntXmFepANQYyGw7x\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/IPubkeyResolver.sol\":{\"keccak256\":\"0x69748947093dd2fda9ddcebd0adf19a6d1e7600df1d4b1462a0417156caddca7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc2f86e50bd17c38fb10feb577d88d8970c585017a391ef10e3aaa3d50f81555\",\"dweb:/ipfs/QmaxLx2pqCUxf9W2dusfviZ9aSiTuVwuekGo73rjvmGifE\"]},\"@ensdomains/ens-contracts/contracts/resolvers/profiles/ITextResolver.sol\":{\"keccak256\":\"0x7c5debb3c42cd9f5de2274ea7aa053f238608314b62db441c40e31cea2543fd5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://412e34ae2d84d542ffa6791486963f3fe04432a3ffd51877d441256dc2941914\",\"dweb:/ipfs/QmciS4mGAQ6KJtLiLcBFekHKhYAYMmubDWGkpZ3sUFtJPW\"]},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8a313cf42389440e2706837c91370323b85971c06afd6d056d21e2bc86459618\",\"dweb:/ipfs/QmT8XUrUvQ9aZaPKrqgRU2JVGWnaxBcUYJA7Q7K5KcLBSZ\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol\":{\"keccak256\":\"0x2a6a0b9fd2d316dcb4141159a9d13be92654066d6c0ae92757ed908ecdfecff0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c05d9be7ee043009eb9f2089b452efc0961345531fc63354a249d7337c69f3bb\",\"dweb:/ipfs/QmTXhzgaYrh6og76BP85i6exNFAv5NYw64uVWyworNogyG\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol\":{\"keccak256\":\"0xbb2ed8106d94aeae6858e2551a1e7174df73994b77b13ebd120ccaaef80155f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8bc3c6a456dba727d8dd9fd33420febede490abb49a07469f61d2a3ace66a95a\",\"dweb:/ipfs/QmVAWtEVj7K5AbvgJa9Dz22KiDq9eoptCjnVZqsTMtKXyd\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol\":{\"keccak256\":\"0x2c0b89cef83f353c6f9488c013d8a5968587ffdd6dfc26aad53774214b97e229\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4a68e662c2a82412308b1feb24f3d61a44b3b8772f44cbd440446237313c3195\",\"dweb:/ipfs/QmfBuWUE2TQef9hghDzzuVkDskw3UGAyPgLmPifTNV7K6g\"]},\"@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol\":{\"keccak256\":\"0x95a471796eb5f030fdc438660bebec121ad5d063763e64d92376ffb4b5ce8b70\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4ffbd627e6958983d288801acdedbf3491ee0ebf1a430338bce47c96481ce9e3\",\"dweb:/ipfs/QmUM1vpmNgBV34sYf946SthDJNGhwwqjoRggmj4TUUQmdB\"]},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://72460c66cd1c3b1c11b863e0d8df0a1c56f37743019e468dc312c754f43e3b06\",\"dweb:/ipfs/QmPExYKiNb9PUsgktQBupPaM33kzDHxaYoVeJdLhv8s879\"]},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d6520943ea55fdf5f0bafb39ed909f64de17051bc954ff3e88c9e5621412c79c\",\"dweb:/ipfs/QmWZ4rAKTQbNG2HxGs46AcTXShsVytKeLs7CUCdCSv5N7a\"]},\"@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol\":{\"keccak256\":\"0x6b9a5d35b744b25529a2856a8093e7c03fb35a34b1c4fb5499e560f8ade140da\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://187b5c3a1c9e77678732a2cc5284237f9cfca6bc28ee8bc0a0f4f951d7b3a2f8\",\"dweb:/ipfs/Qmb2KFr7WuQu7btdCiftQG64vTzrG4UyzVmo53EYHcnHYA\"]},\"@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol\":{\"keccak256\":\"0x9a3b990bd56d139df3e454a9edf1c64668530b5a77fc32eb063bc206f958274a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0895399d170daab2d69b4c43a0202e5a07f2e67a93b26e3354dcbedb062232f7\",\"dweb:/ipfs/QmUM1VH3XDk559Dsgh4QPvupr3YVKjz87HrSyYzzVFZbxw\"]},\"@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol\":{\"keccak256\":\"0xc6cef87559d0aeffdf0a99803de655938a7779ec0a3cd5d4383483ad85565a09\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://92ad7e572cf44e6b4b37631b44b62f9eb9fb1cf14d9ce51c1504d5dc7ccaf758\",\"dweb:/ipfs/QmcnbqX85tsWnUXPmtuPLE4SczME2sJaTfmqEFkuAJvWhy\"]},\"@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol\":{\"keccak256\":\"0xc1bd5b53319c68f84e3becd75694d941e8f4be94049903232cd8bc7c535aaa5a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://056027a78e6f4b78a39be530983551651ee5a052e786ca2c1c6a3bb1222b03b4\",\"dweb:/ipfs/QmXRUpywAqNwAfXS89vrtiE2THRM9dX9pQ4QxAkV1Wx9kt\"]},\"@openzeppelin/contracts/token/ERC721/IERC721.sol\":{\"keccak256\":\"0xab28a56179c1db258c9bf5235b382698cb650debecb51b23d12be9e241374b68\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://daae589a9d6fa7e55f99f86c0a16796ca490f243fb3693632c3711c0646c1d56\",\"dweb:/ipfs/QmR3zpd7wNw3rcUdekwiv6FYHJqksuTCXLVioTxu6Fbxk3\"]},\"@openzeppelin/contracts/utils/Base64.sol\":{\"keccak256\":\"0x5f3461639fe20794cfb4db4a6d8477388a15b2e70a018043084b7c4bedfa8136\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://77e5309e2cc4cdc3395214edb0ff43ff5a5f7373f5a425383e540f6fab530f96\",\"dweb:/ipfs/QmTV8DZ9knJDa3b5NPBFQqjvTzodyZVjRUg5mx5A99JPLJ\"]},\"@openzeppelin/contracts/utils/Strings.sol\":{\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8c969013129ba9e651a20735ef659fef6d8a1139ea3607bd4b26ddea2d645634\",\"dweb:/ipfs/QmVhVa6LGuzAcB8qgDtVHRkucn4ihj5UZr8xBLcJkP6ucb\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://33bbf48cc069be677705037ba7520c22b1b622c23b33e1a71495f2d36549d40b\",\"dweb:/ipfs/Qmct36zWXv3j7LZB83uwbg7TXwnZSN1fqHNDZ93GG98bGz\"]},\"contracts/FleekAccessControl.sol\":{\"keccak256\":\"0xdd0352b2e9e1a7393cb85a85efb7135cc5c0d5365ee156ca78eda2c82113b6f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb62245b17047d2261afb923ffb7592cc54c78cad599828deb3342e4e6de6c99\",\"dweb:/ipfs/QmRfsz1x2dh4fx78KizNXLMjfisgvzGkizbpAasqzZvggr\"]},\"contracts/FleekAccessPoints.sol\":{\"keccak256\":\"0xa74f4f1af3f7100dde68c4824784a93927191c72f00416f96dded39b36cd43cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6aee8dc6e13e77cec72fbfadee051aad02ab25848646cda7f5a57a89126ea729\",\"dweb:/ipfs/QmWk9raFrRkASBmmZ3Ng9a5HyHYUbjfxEJKhdqwfR2WmL9\"]},\"contracts/FleekBilling.sol\":{\"keccak256\":\"0xcb1568aa8629045a5c97a365d81c448a24f0d6434798e386125633029393ed94\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c775e1ea3aeab0841976c63bfcf95e64ba879ad4a4b635f76ef12fb6a5348b12\",\"dweb:/ipfs/Qmct7TaBnvH86d184URxWYtHwSHMAVyCrtvTG8hcoArD7p\"]},\"contracts/FleekERC721.sol\":{\"keccak256\":\"0xd3ad4111a7beda20e03a7ca63f87bc9c5666f55df966e5cb2b7b7701cbc24025\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://65e7540087fed5bcbab614a5eae54ccedee395bfab7cff1e05856bf2481fb2c0\",\"dweb:/ipfs/QmStsGYSjG8eGXaCJQyq37YpjrSzJpTW8dUNHQYF6afH9S\"]},\"contracts/FleekPausable.sol\":{\"keccak256\":\"0x4d172714ea6231b283f96cb8e355cc9f5825e01039aa5a521e7a29bcb3ccd1cb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3f099c1af04b71bf43bb34fe8413dffb51a8962f91fd99d61693160c3272bd58\",\"dweb:/ipfs/QmWQe9XyVeD955es4fgbHJuSDNZuqsdTCSDMrfJvioZCdj\"]},\"contracts/IERCX.sol\":{\"keccak256\":\"0xa3ed18c17836d56b1663c34de75a4ce309965fa6f13e88b08eeed29aca4cf4bc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1ae2d073b525af1cf0445655d94c78fe02492e7d4562f815251e6b44a73a5904\",\"dweb:/ipfs/Qmesee9NVvXn84TR2H8AudwGaAZvrQN3JQ9Xs7spcwVs7A\"]},\"contracts/util/FleekENS.sol\":{\"keccak256\":\"0xf9be784932977798e530160f38eefdfbb55ae25a3d9cc58b477b092ef9936039\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0ffc81ef864a34e42a3ab1638e56d95f88721ec1032baadbc251a5ba3b4dd445\",\"dweb:/ipfs/QmUieEHXPHU79i1nx7KmoTVMfwjJGJHWRy2BYGd3PEceSB\"]},\"contracts/util/FleekSVG.sol\":{\"keccak256\":\"0x9d52d0defd643999776563c3ac36f084ae5a04a22c76ec316a0aadf6666c3c9b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://87bc5cca5451b7b8f3986dec26087857fe0f09505116536efad370172fe731a3\",\"dweb:/ipfs/QmZmDxPG8BUUjrVD92T2dktcuFQBxvHgMEnWx5aPBcSfrA\"]},\"contracts/util/FleekStrings.sol\":{\"keccak256\":\"0xccadd4e9c9c14068c6ca83c95d98a5b83b321bf442443f5432045a4313fcfce6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb4b7110961d44fba3f8f016a6fe1eeba7d783c723be7153ac8f05b24c68676d\",\"dweb:/ipfs/QmSCetjeCy7TGG9WFFbDLvpdVwYZrkMsdTBQmJuPwrugUT\"]}},\"version\":1}", "storageLayout": { "storage": [ { @@ -2020,7 +2059,7 @@ "type": "t_array(t_uint256)49_storage" }, { - "astId": 6973, + "astId": 7193, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "_paused", "offset": 0, @@ -2028,7 +2067,7 @@ "type": "t_bool" }, { - "astId": 6975, + "astId": 7195, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "_canPause", "offset": 1, @@ -2036,7 +2075,7 @@ "type": "t_bool" }, { - "astId": 7126, + "astId": 7346, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "__gap", "offset": 0, @@ -2044,15 +2083,15 @@ "type": "t_array(t_uint256)49_storage" }, { - "astId": 5473, + "astId": 5648, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "_billings", "offset": 0, "slot": "254", - "type": "t_mapping(t_enum(Billing)5452,t_uint256)" + "type": "t_mapping(t_enum(Billing)5627,t_uint256)" }, { - "astId": 5601, + "astId": 5776, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "__gap", "offset": 0, @@ -2084,7 +2123,7 @@ "type": "t_array(t_uint256)49_storage" }, { - "astId": 5693, + "astId": 5868, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "_appIds", "offset": 0, @@ -2092,15 +2131,15 @@ "type": "t_uint256" }, { - "astId": 5698, + "astId": 5873, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "_apps", "offset": 0, "slot": "356", - "type": "t_mapping(t_uint256,t_struct(Token)7203_storage)" + "type": "t_mapping(t_uint256,t_struct(Token)7423_storage)" }, { - "astId": 5702, + "astId": 5877, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "_tokenVerifier", "offset": 0, @@ -2108,7 +2147,7 @@ "type": "t_mapping(t_uint256,t_address)" }, { - "astId": 5706, + "astId": 5881, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "_tokenVerified", "offset": 0, @@ -2150,7 +2189,7 @@ "label": "enum FleekAccessPoints.AccessPointCreationStatus", "numberOfBytes": "1" }, - "t_enum(Billing)5452": { + "t_enum(Billing)5627": { "encoding": "inplace", "label": "enum FleekBilling.Billing", "numberOfBytes": "1" @@ -2186,9 +2225,9 @@ "numberOfBytes": "32", "value": "t_uint256" }, - "t_mapping(t_enum(Billing)5452,t_uint256)": { + "t_mapping(t_enum(Billing)5627,t_uint256)": { "encoding": "mapping", - "key": "t_enum(Billing)5452", + "key": "t_enum(Billing)5627", "label": "mapping(enum FleekBilling.Billing => uint256)", "numberOfBytes": "32", "value": "t_uint256" @@ -2249,19 +2288,19 @@ "numberOfBytes": "32", "value": "t_mapping(t_uint256,t_mapping(t_enum(TokenRoles)4487,t_mapping(t_address,t_bool)))" }, - "t_mapping(t_uint256,t_struct(Build)7183_storage)": { + "t_mapping(t_uint256,t_struct(Build)7403_storage)": { "encoding": "mapping", "key": "t_uint256", "label": "mapping(uint256 => struct IERCX.Build)", "numberOfBytes": "32", - "value": "t_struct(Build)7183_storage" + "value": "t_struct(Build)7403_storage" }, - "t_mapping(t_uint256,t_struct(Token)7203_storage)": { + "t_mapping(t_uint256,t_struct(Token)7423_storage)": { "encoding": "mapping", "key": "t_uint256", "label": "mapping(uint256 => struct IERCX.Token)", "numberOfBytes": "32", - "value": "t_struct(Token)7203_storage" + "value": "t_struct(Token)7423_storage" }, "t_mapping(t_uint256,t_uint256)": { "encoding": "mapping", @@ -2335,12 +2374,12 @@ ], "numberOfBytes": "96" }, - "t_struct(Build)7183_storage": { + "t_struct(Build)7403_storage": { "encoding": "inplace", "label": "struct IERCX.Build", "members": [ { - "astId": 7176, + "astId": 7396, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "commitHash", "offset": 0, @@ -2348,7 +2387,7 @@ "type": "t_string_storage" }, { - "astId": 7178, + "astId": 7398, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "gitRepository", "offset": 0, @@ -2356,7 +2395,7 @@ "type": "t_string_storage" }, { - "astId": 7180, + "astId": 7400, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "ipfsHash", "offset": 0, @@ -2364,7 +2403,7 @@ "type": "t_string_storage" }, { - "astId": 7182, + "astId": 7402, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "domain", "offset": 0, @@ -2374,12 +2413,12 @@ ], "numberOfBytes": "128" }, - "t_struct(Token)7203_storage": { + "t_struct(Token)7423_storage": { "encoding": "inplace", "label": "struct IERCX.Token", "members": [ { - "astId": 7185, + "astId": 7405, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "name", "offset": 0, @@ -2387,7 +2426,7 @@ "type": "t_string_storage" }, { - "astId": 7187, + "astId": 7407, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "description", "offset": 0, @@ -2395,7 +2434,7 @@ "type": "t_string_storage" }, { - "astId": 7189, + "astId": 7409, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "externalURL", "offset": 0, @@ -2403,7 +2442,7 @@ "type": "t_string_storage" }, { - "astId": 7191, + "astId": 7411, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "ENS", "offset": 0, @@ -2411,7 +2450,7 @@ "type": "t_string_storage" }, { - "astId": 7193, + "astId": 7413, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "logo", "offset": 0, @@ -2419,7 +2458,7 @@ "type": "t_string_storage" }, { - "astId": 7195, + "astId": 7415, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "color", "offset": 0, @@ -2427,7 +2466,7 @@ "type": "t_uint24" }, { - "astId": 7197, + "astId": 7417, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "currentBuild", "offset": 0, @@ -2435,12 +2474,12 @@ "type": "t_uint256" }, { - "astId": 7202, + "astId": 7422, "contract": "contracts/FleekERC721.sol:FleekERC721", "label": "builds", "offset": 0, "slot": "7", - "type": "t_mapping(t_uint256,t_struct(Build)7183_storage)" + "type": "t_mapping(t_uint256,t_struct(Build)7403_storage)" } ], "numberOfBytes": "256" @@ -2462,5 +2501,5 @@ } } }, - "implementationAddress": "0x5c456c91fe4ADd4440aAfCb856C66F105e8Ade83" + "implementationAddress": "0xca9f61a35385f26f1bE8949940f559a8ccD9b50F" } \ No newline at end of file diff --git a/serverless/src/libs/bunnyCDN.ts b/serverless/src/libs/bunnyCDN.ts index 301a606..c557db7 100644 --- a/serverless/src/libs/bunnyCDN.ts +++ b/serverless/src/libs/bunnyCDN.ts @@ -1,4 +1,4 @@ -import axios, { AxiosRequestConfig, AxiosError } from 'axios'; +import axios, { AxiosRequestConfig } from 'axios'; type BunnyCdnErrorOptions = { name: string; diff --git a/serverless/src/libs/verify-signature.ts b/serverless/src/libs/verify-signature.ts new file mode 100644 index 0000000..51fdbee --- /dev/null +++ b/serverless/src/libs/verify-signature.ts @@ -0,0 +1,12 @@ +import * as crypto from 'crypto'; + +export function isTheSignatureValid( + body: string, // must be raw string body, not json transformed version of the body + signature: string, // the "lambda-signature" from header + signingKey: string // signing secret key for front-end +): boolean { + const hmac = crypto.createHmac('sha256', signingKey); // Create a HMAC SHA256 hash using the signing key + hmac.update(body, 'utf8'); // Update the token hash with the request body using utf8 + const digest = hmac.digest('hex'); + return signature === digest; // returns true for valid and false for invalid +} \ No newline at end of file diff --git a/subgraph/subgraph.yaml b/subgraph/subgraph.yaml index f971acd..fe7c036 100644 --- a/subgraph/subgraph.yaml +++ b/subgraph/subgraph.yaml @@ -3,11 +3,11 @@ schema: dataSources: - kind: ethereum name: FleekNFA - network: goerli + network: mainnet # Works with the Anvil QA network also source: - address: "0x8795608346Eb475E42e69F1281008AEAa522479D" # <- Proxy Contract + address: "0x1CfD8455F189c56a4FBd81EB7D4118DB04616BA8" # <- Proxy Contract abi: FleekNFA - startBlock: 8671990 + # startBlock: 8671990 mapping: kind: ethereum/events apiVersion: 0.0.7 @@ -32,7 +32,7 @@ dataSources: - ChangeAccessPointAutoApproval abis: - name: FleekNFA - file: ../contracts/artifacts/contracts/FleekERC721.sol/FleekERC721.json + file: ../contracts/deployments/qanet/FleekERC721.json eventHandlers: - event: Approval(indexed address,indexed address,indexed uint256) handler: handleApproval