{ "name": "contracts", "version": "0.1.1", "description": "Iden3 smartcontracts", "type": "module", "repository": { "type": "git", "url": "https://github.com/iden3/contracts.git" }, "license": "GPL-3.0", "bugs": { "url": "https://github.com/iden3/contracts/issues" }, "homepage": "https://github.com/iden3/contracts", "devDependencies": { "@0xpolygonid/js-sdk": "^1.43.0", "@iden3/js-crypto": "^1.3.2", "@iden3/js-iden3-core": "^1.8.0", "@iden3/js-jsonld-merklization": "1.7.2", "@iden3/js-jwz": "^1.12.2", "@nomicfoundation/hardhat-ethers": "^4.0.5", "@nomicfoundation/hardhat-ignition": "^3.0.8", "@nomicfoundation/hardhat-ledger": "^3.0.3", "@nomicfoundation/hardhat-toolbox-mocha-ethers": "^3.0.2", "@nomicfoundation/hardhat-verify": "^3.0.10", "@openzeppelin/contracts": "5.4.0", "@openzeppelin/contracts-upgradeable": "5.4.0", "@solidstate/hardhat-contract-sizer": "^3.0.0", "@types/chai": "^4.3.20", "@types/chai-as-promised": "^8.0.2", "@types/mocha": "^10.0.10", "@types/node": "^22.19.3", "@typescript-eslint/eslint-plugin": "^7.6.0", "@typescript-eslint/parser": "^7.6.0", "chai": "^5.3.3", "circomlibjs": "^0.1.6", "dotenv": "^16.4.5", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-promise": "^6.1.1", "ethers": "^6.16.0", "forge-std": "github:foundry-rs/forge-std#v1.9.4", "hardhat": "^3.1.10", "mocha": "^11.7.5", "prettier": "^3.2.5", "prettier-plugin-solidity": "^1.1.1", "solhint": "4.1.1", "solhint-plugin-prettier": "^0.1.0", "solidity-bytes-utils": "^0.8.0", "typescript": "^5.9.3", "uuid": "14.0.0" }, "scripts": { "node:local": "npx hardhat node", "compile": "npx hardhat compile", "test": "npx hardhat test", "test:verifiers": "npx hardhat test test/verifier/*.test.ts", "test:validators": "npx hardhat test test/validators/**/*.ts", "test:identitytreestore": "npx hardhat test test/identitytreestore/*.test.ts", "test:oracle:proof:validator": "npx hardhat test test/cross-chain/cross-chain-proof-validator.test.ts", "test:submitzkpresponse:v2": "npx hardhat test test/verifier/universal-verifier-submit-v2.test.ts", "test:primitive:utils": "npx hardhat test test/primitiveUtils/primitiveUtils.test.ts", "test:poseidon": "npx hardhat test test/poseidon/poseidon.test.ts", "test:state": "npx hardhat test test/state/state.test.ts", "test:state:localhost": "npx hardhat test test/state/state.test.ts --network localhost", "test:gas": "COINMARKETCAP_KEY= REPORT_GAS=true npx hardhat test", "test:coverage": "npx hardhat test --coverage", "deploy:create2:address:anchor:localhost": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network localhost", "deploy:create2:address:anchor:polygon-amoy": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network polygon-amoy", "deploy:create2:address:anchor:zkevm-cardona": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network zkevm-cardona", "deploy:create2:address:anchor:linea-sepolia": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network linea-sepolia", "deploy:create2:address:anchor:ethereum-sepolia": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network ethereum-sepolia", "deploy:create2:address:anchor:privado-test": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network privado-test", "deploy:create2:address:anchor:polygon-mainnet": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network polygon-mainnet", "deploy:create2:address:anchor:zkevm-mainnet": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network zkevm-mainnet", "deploy:create2:address:anchor:linea-mainnet": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network linea-mainnet", "deploy:create2:address:anchor:ethereum-mainnet": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network ethereum-mainnet", "deploy:create2:address:anchor:privado-main": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network privado-main", "deploy:create2:address:anchor:base-mainnet": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network base-mainnet", "deploy:state:localhost": "npx hardhat run scripts/deploy/deployState.ts --network localhost", "deploy:state:polygon-amoy": "npx hardhat run scripts/deploy/deployState.ts --network polygon-amoy", "deploy:state:zkevm-cardona": "npx hardhat run scripts/deploy/deployState.ts --network zkevm-cardona", "deploy:state:linea-sepolia": "npx hardhat run scripts/deploy/deployState.ts --network linea-sepolia", "deploy:state:ethereum-sepolia": "npx hardhat run scripts/deploy/deployState.ts --network ethereum-sepolia", "deploy:state:privado-test": "npx hardhat run scripts/deploy/deployState.ts --network privado-test", "deploy:state:polygon-mainnet": "npx hardhat run scripts/deploy/deployState.ts --network polygon-mainnet", "deploy:state:zkevm-mainnet": "npx hardhat run scripts/deploy/deployState.ts --network zkevm-mainnet", "deploy:state:linea-mainnet": "npx hardhat run scripts/deploy/deployState.ts --network linea-mainnet", "deploy:state:ethereum-mainnet": "npx hardhat run scripts/deploy/deployState.ts --network ethereum-mainnet", "deploy:state:privado-main": "npx hardhat run scripts/deploy/deployState.ts --network privado-main", "deploy:libraries:localhost": "npx hardhat run scripts/deploy/deployLibraries.ts --network localhost", "deploy:libraries:polygon-amoy": "npx hardhat run scripts/deploy/deployLibraries.ts --network polygon-amoy", "deploy:libraries:zkevm-cardona": "npx hardhat run scripts/deploy/deployLibraries.ts --network zkevm-cardona", "deploy:libraries:linea-sepolia": "npx hardhat run scripts/deploy/deployLibraries.ts --network linea-sepolia", "deploy:libraries:ethereum-sepolia": "npx hardhat run scripts/deploy/deployLibraries.ts --network ethereum-sepolia", "deploy:libraries:privado-test": "npx hardhat run scripts/deploy/deployLibraries.ts --network privado-test", "deploy:libraries:polygon-mainnet": "npx hardhat run scripts/deploy/deployLibraries.ts --network polygon-mainnet", "deploy:libraries:zkevm-mainnet": "npx hardhat run scripts/deploy/deployLibraries.ts --network zkevm-mainnet", "deploy:libraries:linea-mainnet": "npx hardhat run scripts/deploy/deployLibraries.ts --network linea-mainnet", "deploy:libraries:ethereum-mainnet": "npx hardhat run scripts/deploy/deployLibraries.ts --network ethereum-mainnet", "deploy:libraries:privado-main": "npx hardhat run scripts/deploy/deployLibraries.ts --network privado-main", "deploy:its:localhost": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network localhost", "deploy:its:polygon-amoy": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network polygon-amoy", "deploy:its:zkevm-cardona": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network zkevm-cardona", "deploy:its:linea-sepolia": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network linea-sepolia", "deploy:its:ethereum-sepolia": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network ethereum-sepolia", "deploy:its:privado-test": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network privado-test", "deploy:its:polygon-mainnet": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network polygon-mainnet", "deploy:its:zkevm-mainnet": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network zkevm-mainnet", "deploy:its:linea-mainnet": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network linea-mainnet", "deploy:its:ethereum-mainnet": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network ethereum-mainnet", "deploy:its:privado-main": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network privado-main", "deploy:validators:localhost": "npx hardhat run scripts/deploy/deployValidators.ts --network localhost", "deploy:validators:polygon-amoy": "npx hardhat run scripts/deploy/deployValidators.ts --network polygon-amoy", "deploy:validators:zkevm-cardona": "npx hardhat run scripts/deploy/deployValidators.ts --network zkevm-cardona", "deploy:validators:linea-sepolia": "npx hardhat run scripts/deploy/deployValidators.ts --network linea-sepolia", "deploy:validators:ethereum-sepolia": "npx hardhat run scripts/deploy/deployValidators.ts --network ethereum-sepolia", "deploy:validators:privado-test": "npx hardhat run scripts/deploy/deployValidators.ts --network privado-test", "deploy:validators:polygon-mainnet": "npx hardhat run scripts/deploy/deployValidators.ts --network polygon-mainnet", "deploy:validators:zkevm-mainnet": "npx hardhat run scripts/deploy/deployValidators.ts --network zkevm-mainnet", "deploy:validators:linea-mainnet": "npx hardhat run scripts/deploy/deployValidators.ts --network linea-mainnet", "deploy:validators:ethereum-mainnet": "npx hardhat run scripts/deploy/deployValidators.ts --network ethereum-mainnet", "deploy:validators:privado-main": "npx hardhat run scripts/deploy/deployValidators.ts --network privado-main", "deploy:universalverifier:localhost": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network localhost", "deploy:universalverifier:polygon-amoy": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network polygon-amoy", "deploy:universalverifier:zkevm-cardona": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network zkevm-cardona", "deploy:universalverifier:linea-sepolia": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network linea-sepolia", "deploy:universalverifier:ethereum-sepolia": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network ethereum-sepolia", "deploy:universalverifier:privado-test": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network privado-test", "deploy:universalverifier:polygon-mainnet": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network polygon-mainnet", "deploy:universalverifier:zkevm-mainnet": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network zkevm-mainnet", "deploy:universalverifier:linea-mainnet": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network linea-mainnet", "deploy:universalverifier:ethereum-mainnet": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network ethereum-mainnet", "deploy:universalverifier:privado-main": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network privado-main", "deploy:set:request:polygon-amoy": "npx hardhat run scripts/maintenance/setProofRequest.ts --network polygon-amoy", "deploy:set:request:linea-sepolia": "npx hardhat run scripts/maintenance/setProofRequest.ts --network linea-sepolia", "deploy:crossChainProofValidator:localhost": "npx hardhat run scripts/deploy/deployCrossChainProofValidator.ts --network localhost", "deploy:vc-payment:polygon-amoy": "npx hardhat run scripts/deploy/deployVCPayment.ts --network polygon-amoy", "deploy:system:step1:implementation:localhost": "npx hardhat run scripts/deploy/deployment-step-1/deploySystem.ts --network localhost", "deploy:system:step2:implementation:localhost": "npx hardhat run scripts/deploy/deployment-step-2/deploySystem.ts --network localhost", "deploy:mc-payment:base-mainnet": "npx hardhat run scripts/deploy/deployMCPayment.ts --network base-mainnet", "upgrade:contracts:universal:verifier:localhost": "npx hardhat run scripts/upgrade/verifiers/universal-verifier-upgrade.ts --network localhost", "upgrade:contracts:universal:verifier:polygon-amoy": "npx hardhat run scripts/upgrade/verifiers/universal-verifier-upgrade.ts --network polygon-amoy", "upgrade:contracts:universal:verifier:ethereum-sepolia": "npx hardhat run scripts/upgrade/verifiers/universal-verifier-upgrade.ts --network ethereum-sepolia", "upgrade:contracts:its:polygon-amoy": "npx hardhat run scripts/upgrade/identitytreestore/identitytreestore-upgrade.ts --network polygon-amoy", "upgrade:contracts:its:polygon-mainnet": "npx hardhat run scripts/upgrade/identitytreestore/identitytreestore-upgrade.ts --network polygon-mainnet", "upgrade:contracts:state:localhost": "npx hardhat run scripts/upgrade/state/state-upgrade.ts --network localhost", "upgrade:contracts:state:polygon-amoy": "npx hardhat run scripts/upgrade/state/state-upgrade.ts --network polygon-amoy", "upgrade:contracts:state:polygon-mainnet": "npx hardhat run scripts/upgrade/state/state-upgrade.ts --network polygon-mainnet", "disable:proxy:contract:localhost": "npx hardhat run scripts/maintenance/disableProxyContract.ts --network localhost", "add:validators:universal:verifier:localhost": "npx hardhat run scripts/maintenance/addValidatorsToUniversalVerifier.ts --network localhost", "add:validators:universal:verifier:polygon-amoy": "npx hardhat run scripts/maintenance/addValidatorsToUniversalVerifier.ts --network polygon-amoy", "payment:set-payment-value:polygon-amoy": "npx hardhat run scripts/maintenance/setPaymentValue.ts --network polygon-amoy", "set:oracle:signing:address:polygon-amoy": "npx hardhat run scripts/maintenance/setOracleSigningAddress.ts --network polygon-amoy", "set:oracle:signing:address:polygon-mainnet": "npx hardhat run scripts/maintenance/setOracleSigningAddress.ts --network polygon-mainnet", "verify:polygon-mainnet": "npx hardhat run scripts/maintenance/verifyEtherescan.js --network polygon-mainnet", "lint:contracts": "npx solhint contracts/**/*.sol", "prettier:contracts": "prettier --write --plugin=prettier-plugin-solidity 'contracts/**/*.sol'", "slither": "slither ." }, "overrides": { "diff": "^8.0.3", "lodash": "^4.18.1", "lodash-es": "^4.18.1", "minimatch": "^10.2.2", "axios": "1.20.0", "bn.js": "^5.2.3", "bfj": "^9.1.3", "serialize-javascript": "^7.0.4", "ws@^8.0.0": "^8.21.0", "ajv@^8.0.0": "^8.18.0", "jayson": "^5.0.0", "@0xpolygonid/js-sdk": { ".": "^1.43.0", "uuid": "^13.0.2" }, "@digitalbazaar/http-client": { "undici": "^6.28.1" } } }