UNPKG

@settlemint/solidity-zeto

Version:

Smart contract set to build Zero Knowledge tokens in SettleMint

278 lines 8.04 kB
{ "compiler": { "version": "0.8.27+commit.40a35a09" }, "language": "Solidity", "output": { "abi": [ { "inputs": [ { "internalType": "uint256[2]", "name": "", "type": "uint256[2]" } ], "type": "error", "name": "AlreadyRegistered" }, { "inputs": [], "type": "error", "name": "InvalidInitialization" }, { "inputs": [], "type": "error", "name": "NotInitializing" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "type": "error", "name": "OwnableInvalidOwner" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "type": "error", "name": "OwnableUnauthorizedAccount" }, { "inputs": [ { "internalType": "uint256[2]", "name": "publicKey", "type": "uint256[2]", "indexed": false } ], "type": "event", "name": "IdentityRegistered", "anonymous": false }, { "inputs": [ { "internalType": "uint64", "name": "version", "type": "uint64", "indexed": false } ], "type": "event", "name": "Initialized", "anonymous": false }, { "inputs": [ { "internalType": "address", "name": "previousOwner", "type": "address", "indexed": true }, { "internalType": "address", "name": "newOwner", "type": "address", "indexed": true } ], "type": "event", "name": "OwnershipTransferred", "anonymous": false }, { "inputs": [], "stateMutability": "view", "type": "function", "name": "getIdentitiesRoot", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ] }, { "inputs": [ { "internalType": "uint256[2]", "name": "publicKey", "type": "uint256[2]" } ], "stateMutability": "view", "type": "function", "name": "isRegistered", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ] }, { "inputs": [], "stateMutability": "view", "type": "function", "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ] }, { "inputs": [], "stateMutability": "nonpayable", "type": "function", "name": "renounceOwnership" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "stateMutability": "nonpayable", "type": "function", "name": "transferOwnership" } ], "devdoc": { "kind": "dev", "methods": { "isRegistered(uint256[2])": { "details": "returns whether the given public key is registered", "params": { "publicKey": "The Babyjubjub public key to check" }, "returns": { "_0": "bool whether the given public key is included in the registry" } }, "owner()": { "details": "Returns the address of the current owner." }, "renounceOwnership()": { "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner." }, "transferOwnership(address)": { "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }, "settings": { "remappings": [ "@iden3/=node_modules/@iden3/", "@openzeppelin/=node_modules/@openzeppelin/", "forge-std/=lib/forge-std/src/", "hardhat/=node_modules/hardhat/" ], "optimizer": { "enabled": true, "runs": 10000 }, "metadata": { "bytecodeHash": "ipfs" }, "compilationTarget": { "contracts/lib/registry.sol": "Registry" }, "evmVersion": "cancun", "libraries": {}, "viaIR": true }, "sources": { "contracts/lib/common.sol": { "keccak256": "0x41a6c108b95ddee950755303e6e59bceca9c55d518cc7e4ca6e8f5badfe490cb", "urls": [ "bzz-raw://c6865168ec6355ee85c6ce11d17c7c1bc57baec729de7cdbb9d6e8d860f70957", "dweb:/ipfs/QmXysx5oVKrSzoAvhzQCQs5bx1p5T5LeuJW6DtvgT7pXnV" ], "license": "Apache-2.0" }, "contracts/lib/registry.sol": { "keccak256": "0x040b7a4e1e0f7ca22e59e8be24548afd1ed1322a5acdd18193d4cf5e98d8c7de", "urls": [ "bzz-raw://b0c617332af5e0a0fb92d8492b1472a59c735bb4d6f0d56be43a58e3bd36791c", "dweb:/ipfs/Qme1FSyTGwvrdAQ82m9SoPXWeLgnaQECBU9xfGSR5zkGS6" ], "license": "Apache-2.0" }, "node_modules/@iden3/contracts/lib/ArrayUtils.sol": { "keccak256": "0x7c5e3f9c56e8e80811db1f1336a1e37c657947f44687451e5a1d6bd12e9e6141", "urls": [ "bzz-raw://c9497d8d8fe9fc2b2c9d61bbdfa5a4eb881ddf8948bbc099024e5026fadd6846", "dweb:/ipfs/Qmczkk8FLcxpM91ZAWpixowBEdq64YVLke3ZqVDt3NkYiT" ], "license": "GPL-3.0" }, "node_modules/@iden3/contracts/lib/Poseidon.sol": { "keccak256": "0x1776fa64b19c5e2f42d1449537ea5e911d7f067ee5d0409ca7daf7319853381f", "urls": [ "bzz-raw://516c8ae954d17c4c5e4366249b93e85660f5887640c8141c6912831a42b89539", "dweb:/ipfs/QmVMZW5sFUmb3Bgypmfn19z1cNUWhubYXWFthbFruopZNc" ], "license": "GPL-3.0" }, "node_modules/@iden3/contracts/lib/SmtLib.sol": { "keccak256": "0x9c67be9b7d045ded48a63bd827a5bdc3f2255c68f9640bae41eef074640f1779", "urls": [ "bzz-raw://1f2b2452120f5b2b2c5589fcf58183f7d800d3f8a2c202ebdc3b69815bcfb2aa", "dweb:/ipfs/QmbnvLnfJaKL3eqt1CfXofsiLJ7G3nYTawUEqGpCazWbrQ" ], "license": "GPL-3.0" }, "node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol": { "keccak256": "0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a", "urls": [ "bzz-raw://9706d43a0124053d9880f6e31a59f31bc0a6a3dc1acd66ce0a16e1111658c5f6", "dweb:/ipfs/QmUFmfowzkRwGtDu36cXV9SPTBHJ3n7dG9xQiK5B28jTf2" ], "license": "MIT" }, "node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol": { "keccak256": "0xdb4d24ee2c087c391d587cd17adfe5b3f9d93b3110b1388c2ab6c7c0ad1dcd05", "urls": [ "bzz-raw://ab7b6d5b9e2b88176312967fe0f0e78f3d9a1422fa5e4b64e2440c35869b5d08", "dweb:/ipfs/QmXKYWWyzcLg1B2k7Sb1qkEXgLCYfXecR9wYW5obRzWP1Q" ], "license": "MIT" }, "node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol": { "keccak256": "0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397", "urls": [ "bzz-raw://08e39f23d5b4692f9a40803e53a8156b72b4c1f9902a88cd65ba964db103dab9", "dweb:/ipfs/QmPKn6EYDgpga7KtpkA8wV2yJCYGMtc9K4LkJfhKX2RVSV" ], "license": "MIT" } }, "version": 1 }