├── .env.sample ├── .eslintrc.js ├── .gitignore ├── .openzeppelin ├── polygon-mumbai.json ├── polygon.json └── unknown-80002.json ├── .prettierrc ├── .solhint.json ├── LICENSE ├── Readme.md ├── contracts └── examples │ ├── BalanceCredentialIssuer.sol │ ├── ERC20LinkedUniversalVerifier.sol │ ├── ERC20SelectiveDisclosureVerifier.sol │ ├── ERC20Verifier.sol │ ├── IdentityExample.sol │ ├── Imports.sol │ └── VCPayment.sol ├── hardhat.config.ts ├── package.json ├── scripts ├── deployBalanceCredentialIssuer.ts ├── deployERC20.ts ├── deployERC20LinkedUniversalVerifier.ts ├── deployERC20SelectiveDisclosure.ts ├── deployIdentityExample.ts ├── deployMTPV2Validator.ts ├── deploySigV2Validator.ts ├── deployV3Validator.ts ├── deployVCPayment.ts ├── getPaymentEvents.ts ├── setPaymentValue.ts ├── setRequests-v2validator.ts ├── setRequests-v3validator.ts ├── upgradeMTPValidator.ts ├── upgradeSigValidator.ts └── upgradeV3Validator.ts ├── test ├── helpers │ ├── BalanceCredentialIssuerDeployHelper.ts │ ├── ChainIdDefTypeMap.ts │ ├── OnchainIdentityDeployHelper.ts │ ├── StateDeployHelper.ts │ └── constants.ts ├── onchain-identity │ └── index.ts ├── onchain-nonmerklized-identity │ └── index.ts ├── payment-example │ └── index.ts ├── utils │ ├── deploy-poseidons.util.ts │ ├── deploy-utils.ts │ ├── pack-utils.ts │ └── utils.ts └── verifiers │ ├── common-data │ ├── issuer_from_genesis_state_to_first_auth_disabled_transition_v3.json │ ├── issuer_genesis_state.json │ ├── user_state_transition.json │ ├── valid_mtp_user_cross_chain.json │ ├── valid_mtp_user_non_genesis_challenge_address.json │ ├── valid_sig_user_cross_chain.json │ ├── valid_sig_user_non_genesis_challenge_address.json │ └── valid_sig_v3.json │ ├── erc20-selective-disclosure-v3.ts │ ├── erc20-with-universal-verifier.ts │ └── erc20.ts └── tsconfig.json /.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/.env.sample -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/.gitignore -------------------------------------------------------------------------------- /.openzeppelin/polygon-mumbai.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/.openzeppelin/polygon-mumbai.json -------------------------------------------------------------------------------- /.openzeppelin/polygon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/.openzeppelin/polygon.json -------------------------------------------------------------------------------- /.openzeppelin/unknown-80002.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/.openzeppelin/unknown-80002.json -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/.prettierrc -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/.solhint.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/LICENSE -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/Readme.md -------------------------------------------------------------------------------- /contracts/examples/BalanceCredentialIssuer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/contracts/examples/BalanceCredentialIssuer.sol -------------------------------------------------------------------------------- /contracts/examples/ERC20LinkedUniversalVerifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/contracts/examples/ERC20LinkedUniversalVerifier.sol -------------------------------------------------------------------------------- /contracts/examples/ERC20SelectiveDisclosureVerifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/contracts/examples/ERC20SelectiveDisclosureVerifier.sol -------------------------------------------------------------------------------- /contracts/examples/ERC20Verifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/contracts/examples/ERC20Verifier.sol -------------------------------------------------------------------------------- /contracts/examples/IdentityExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/contracts/examples/IdentityExample.sol -------------------------------------------------------------------------------- /contracts/examples/Imports.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/contracts/examples/Imports.sol -------------------------------------------------------------------------------- /contracts/examples/VCPayment.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/contracts/examples/VCPayment.sol -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/package.json -------------------------------------------------------------------------------- /scripts/deployBalanceCredentialIssuer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/deployBalanceCredentialIssuer.ts -------------------------------------------------------------------------------- /scripts/deployERC20.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/deployERC20.ts -------------------------------------------------------------------------------- /scripts/deployERC20LinkedUniversalVerifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/deployERC20LinkedUniversalVerifier.ts -------------------------------------------------------------------------------- /scripts/deployERC20SelectiveDisclosure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/deployERC20SelectiveDisclosure.ts -------------------------------------------------------------------------------- /scripts/deployIdentityExample.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/deployIdentityExample.ts -------------------------------------------------------------------------------- /scripts/deployMTPV2Validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/deployMTPV2Validator.ts -------------------------------------------------------------------------------- /scripts/deploySigV2Validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/deploySigV2Validator.ts -------------------------------------------------------------------------------- /scripts/deployV3Validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/deployV3Validator.ts -------------------------------------------------------------------------------- /scripts/deployVCPayment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/deployVCPayment.ts -------------------------------------------------------------------------------- /scripts/getPaymentEvents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/getPaymentEvents.ts -------------------------------------------------------------------------------- /scripts/setPaymentValue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/setPaymentValue.ts -------------------------------------------------------------------------------- /scripts/setRequests-v2validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/setRequests-v2validator.ts -------------------------------------------------------------------------------- /scripts/setRequests-v3validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/setRequests-v3validator.ts -------------------------------------------------------------------------------- /scripts/upgradeMTPValidator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/upgradeMTPValidator.ts -------------------------------------------------------------------------------- /scripts/upgradeSigValidator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/upgradeSigValidator.ts -------------------------------------------------------------------------------- /scripts/upgradeV3Validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/scripts/upgradeV3Validator.ts -------------------------------------------------------------------------------- /test/helpers/BalanceCredentialIssuerDeployHelper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/helpers/BalanceCredentialIssuerDeployHelper.ts -------------------------------------------------------------------------------- /test/helpers/ChainIdDefTypeMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/helpers/ChainIdDefTypeMap.ts -------------------------------------------------------------------------------- /test/helpers/OnchainIdentityDeployHelper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/helpers/OnchainIdentityDeployHelper.ts -------------------------------------------------------------------------------- /test/helpers/StateDeployHelper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/helpers/StateDeployHelper.ts -------------------------------------------------------------------------------- /test/helpers/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/helpers/constants.ts -------------------------------------------------------------------------------- /test/onchain-identity/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/onchain-identity/index.ts -------------------------------------------------------------------------------- /test/onchain-nonmerklized-identity/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/onchain-nonmerklized-identity/index.ts -------------------------------------------------------------------------------- /test/payment-example/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/payment-example/index.ts -------------------------------------------------------------------------------- /test/utils/deploy-poseidons.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/utils/deploy-poseidons.util.ts -------------------------------------------------------------------------------- /test/utils/deploy-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/utils/deploy-utils.ts -------------------------------------------------------------------------------- /test/utils/pack-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/utils/pack-utils.ts -------------------------------------------------------------------------------- /test/utils/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/utils/utils.ts -------------------------------------------------------------------------------- /test/verifiers/common-data/issuer_from_genesis_state_to_first_auth_disabled_transition_v3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/common-data/issuer_from_genesis_state_to_first_auth_disabled_transition_v3.json -------------------------------------------------------------------------------- /test/verifiers/common-data/issuer_genesis_state.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/common-data/issuer_genesis_state.json -------------------------------------------------------------------------------- /test/verifiers/common-data/user_state_transition.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/common-data/user_state_transition.json -------------------------------------------------------------------------------- /test/verifiers/common-data/valid_mtp_user_cross_chain.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/common-data/valid_mtp_user_cross_chain.json -------------------------------------------------------------------------------- /test/verifiers/common-data/valid_mtp_user_non_genesis_challenge_address.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/common-data/valid_mtp_user_non_genesis_challenge_address.json -------------------------------------------------------------------------------- /test/verifiers/common-data/valid_sig_user_cross_chain.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/common-data/valid_sig_user_cross_chain.json -------------------------------------------------------------------------------- /test/verifiers/common-data/valid_sig_user_non_genesis_challenge_address.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/common-data/valid_sig_user_non_genesis_challenge_address.json -------------------------------------------------------------------------------- /test/verifiers/common-data/valid_sig_v3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/common-data/valid_sig_v3.json -------------------------------------------------------------------------------- /test/verifiers/erc20-selective-disclosure-v3.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/erc20-selective-disclosure-v3.ts -------------------------------------------------------------------------------- /test/verifiers/erc20-with-universal-verifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/erc20-with-universal-verifier.ts -------------------------------------------------------------------------------- /test/verifiers/erc20.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/test/verifiers/erc20.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xPolygonID/contracts/HEAD/tsconfig.json --------------------------------------------------------------------------------