@t-rex-network/t-rex 5.0.0-beta2 → 5.0.0-beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE.md +78 -0
- package/README.md +19 -22
- package/contracts/{roles/AgentRole.sol → ERC-3643/ERC3643ErrorsLib.sol} +60 -33
- package/contracts/ERC-3643/IERC3643.sol +61 -5
- package/contracts/ERC-3643/IERC3643ClaimTopicsRegistry.sol +11 -2
- package/contracts/ERC-3643/IERC3643Compliance.sol +21 -8
- package/contracts/ERC-3643/IERC3643IdentityRegistry.sol +33 -0
- package/contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol +62 -7
- package/contracts/ERC-3643/IERC3643TrustedIssuersRegistry.sol +29 -12
- package/contracts/ERC-3643/base/ERC3643ClaimTopicsRegistry.sol +140 -0
- package/contracts/ERC-3643/base/ERC3643Compliance.sol +223 -0
- package/contracts/ERC-3643/base/ERC3643IdentityRegistry.sol +382 -0
- package/contracts/ERC-3643/base/ERC3643IdentityRegistryStorage.sol +290 -0
- package/contracts/ERC-3643/base/ERC3643Token.sol +601 -0
- package/contracts/ERC-3643/base/ERC3643TrustedIssuersRegistry.sol +237 -0
- package/contracts/compliance/modular/ComplianceLedger.sol +175 -0
- package/contracts/compliance/modular/ComplianceLedgerLib.sol +120 -0
- package/contracts/compliance/modular/IComplianceLedger.sol +104 -0
- package/contracts/compliance/modular/IModularCompliance.sol +119 -28
- package/contracts/compliance/modular/ITransferValidation.sol +308 -0
- package/contracts/compliance/modular/ModularCompliance.sol +399 -240
- package/contracts/compliance/modular/ModuleSetLib.sol +182 -0
- package/contracts/compliance/modular/MovementKindLib.sol +97 -0
- package/contracts/compliance/modular/TransferContextLib.sol +140 -0
- package/contracts/compliance/modular/TransferValidation.sol +822 -0
- package/contracts/compliance/modular/TransferValidationLib.sol +183 -0
- package/contracts/compliance/modular/modules/AbstractModuleUpgradeable.sol +87 -56
- package/contracts/compliance/modular/modules/IModule.sol +142 -58
- package/contracts/compliance/modular/modules/MaxBalancePerIdentityModule.sol +175 -0
- package/contracts/compliance/modular/modules/ModuleProxy.sol +24 -24
- package/contracts/compliance/modular/modules/SpenderVerificationModule.sol +149 -0
- package/contracts/compliance/modular/modules/SpenderWhitelistModule.sol +215 -0
- package/contracts/factory/ITREXFactory.sol +94 -44
- package/contracts/factory/TREXFactory.sol +408 -201
- package/contracts/interop/ISettlementHandler.sol +101 -0
- package/contracts/interop/ITREXMessaging.sol +166 -0
- package/contracts/{proxy/ModularComplianceProxy.sol → interop/ITrustedGatewayRegistry.sol} +48 -43
- package/contracts/interop/TREXMessaging.sol +189 -0
- package/contracts/interop/TREXMessagingLib.sol +425 -0
- package/contracts/{proxy/TrustedIssuersRegistryProxy.sol → interop/TrustedGatewayRegistry.sol} +46 -37
- package/contracts/libraries/AccessManagerSetupLib.sol +484 -0
- package/contracts/libraries/ErrorsLib.sol +172 -65
- package/contracts/libraries/EventsLib.sol +168 -66
- package/contracts/libraries/MessageTypesLib.sol +259 -0
- package/contracts/libraries/RolesLib.sol +146 -0
- package/contracts/{roles/Roles.sol → libraries/VersionLib.sol} +46 -49
- package/contracts/libraries/WalletKeyLib.sol +156 -0
- package/contracts/proxy/beacon/ITREXImplementationAuthority.sol +157 -0
- package/contracts/proxy/beacon/TREXImplementationAuthority.sol +188 -0
- package/contracts/registry/implementation/IdentityRegistryStorage.sol +215 -163
- package/contracts/registry/implementation/TREXRegistry.sol +475 -0
- package/contracts/registry/interface/IIdentityRegistryStorage.sol +30 -25
- package/contracts/registry/interface/ITREXRegistry.sol +180 -0
- package/contracts/token/IToken.sol +210 -49
- package/contracts/token/Token.sol +411 -476
- package/contracts/token/TokenDelegationLib.sol +339 -0
- package/contracts/token/TokenGuardsLib.sol +123 -0
- package/contracts/token/TokenLedgerLib.sol +316 -0
- package/contracts/token/TokenRecoveryLib.sol +130 -0
- package/contracts/{roles/AgentRoleUpgradeable.sol → utils/AccessManagedOwnable.sol} +31 -31
- package/contracts/{proxy/IdentityRegistryStorageProxy.sol → utils/AccessManagedOwnableBase.sol} +56 -34
- package/contracts/utils/AccessManagedOwnableUpgradeable.sol +116 -0
- package/contracts/utils/IUtilityChecker.sol +32 -26
- package/contracts/{roles/AbstractAgentRole.sol → utils/TREXAccessManager.sol} +54 -57
- package/contracts/utils/UtilityChecker.sol +175 -52
- package/contracts/utils/UtilityCheckerProxy.sol +24 -24
- package/contracts/{proxy/interface/IProxy.sol → vendor/IERC173.sol} +15 -28
- package/out/AbstractModuleUpgradeable.sol/AbstractModuleUpgradeable.json +1 -1
- package/out/AbstractSigner.sol/AbstractSigner.json +1 -0
- package/out/AccessManaged.sol/AccessManaged.json +1 -0
- package/out/AccessManagedOwnable.sol/AccessManagedOwnable.json +1 -0
- package/out/AccessManagedOwnableBase.sol/AccessManagedOwnableBase.json +1 -0
- package/out/AccessManagedOwnableUpgradeable.sol/AccessManagedOwnableUpgradeable.json +1 -0
- package/out/AccessManagedUpgradeable.sol/AccessManagedUpgradeable.json +1 -0
- package/out/AccessManager.sol/AccessManager.json +1 -0
- package/out/AccessManagerHelper.sol/AccessManagerHelper.json +1 -0
- package/out/AccessManagerSetupLib.sol/AccessManagerSetupLib.json +1 -0
- package/out/AccessManagerUpgradeable.sol/AccessManagerUpgradeable.json +1 -0
- package/out/Account.sol/Account.json +1 -0
- package/out/Address.sol/Address.json +1 -1
- package/out/Arrays.sol/Arrays.json +1 -1
- package/out/AuthorityUtils.sol/AuthorityUtils.json +1 -0
- package/out/Base.sol/CommonBase.json +1 -1
- package/out/Base.sol/ScriptBase.json +1 -1
- package/out/Base.sol/TestBase.json +1 -1
- package/out/Base64.sol/Base64.json +1 -0
- package/out/BeaconProxy.sol/BeaconProxy.json +1 -0
- package/out/BeaconProxyDeployer.sol/BeaconProxyDeployer.json +1 -0
- package/out/Bytes.sol/Bytes.json +1 -1
- package/out/Calldata.sol/Calldata.json +1 -0
- package/out/CapabilityModules.sol/AllTypesModule.json +1 -0
- package/out/CapabilityModules.sol/CappedRecipientModule.json +1 -0
- package/out/CapabilityModules.sol/DelegatedCapRuleModule.json +1 -0
- package/out/CapabilityModules.sol/DuplicateTypeModule.json +1 -0
- package/out/CapabilityModules.sol/LockedSenderModule.json +1 -0
- package/out/CapabilityModules.sol/NoTypeModule.json +1 -0
- package/out/CapabilityModules.sol/RecordingModule.json +1 -0
- package/out/CapabilityModules.sol/RuleAndMintTrackerModule.json +1 -0
- package/out/CapabilityModules.sol/RuleAndTrackerModule.json +1 -0
- package/out/CapabilityModules.sol/RuleOnlyModule.json +1 -0
- package/out/CapabilityModules.sol/SpenderOnlyModule.json +1 -0
- package/out/CapabilityModules.sol/TrackerOnlyModule.json +1 -0
- package/out/CapabilityModules.sol/UndeclaredRuleModule.json +1 -0
- package/out/CapabilityModules.sol/WritingRuleModule.json +1 -0
- package/out/ClaimIssuerAlwaysReverts.sol/ClaimIssuerAlwaysReverts.json +1 -0
- package/out/ClaimIssuerTrick.sol/ClaimIssuerTrick.json +1 -1
- package/out/Comparators.sol/Comparators.json +1 -1
- package/out/ComplianceLedger.sol/ComplianceLedger.json +1 -0
- package/out/ComplianceLedgerLib.sol/ComplianceLedgerLib.json +1 -0
- package/out/Context.sol/Context.json +1 -1
- package/out/ContextUpgradeable.sol/ContextUpgradeable.json +1 -1
- package/out/Countries.sol/Countries.json +1 -1
- package/out/Create2.sol/Create2.json +1 -1
- package/out/Create3.sol/Create3.json +1 -1
- package/out/DeployComplianceModules.s.sol/DeployComplianceModules.json +1 -0
- package/out/DeployComplianceModules.s.sol/ITokenCompliance.json +1 -0
- package/out/DeployUtilityChecker.s.sol/DeployUtilityChecker.json +1 -0
- package/out/ECDSA.sol/ECDSA.json +1 -1
- package/out/EIP712.sol/EIP712.json +1 -1
- package/out/EIP712Upgradeable.sol/EIP712Upgradeable.json +1 -1
- package/out/ERC165.sol/ERC165.json +1 -0
- package/out/ERC165Checker.sol/ERC165Checker.json +1 -0
- package/out/ERC165Upgradeable.sol/ERC165Upgradeable.json +1 -0
- package/out/ERC1967Proxy.sol/ERC1967Proxy.json +1 -1
- package/out/ERC1967Utils.sol/ERC1967Utils.json +1 -1
- package/out/ERC20.sol/ERC20.json +1 -1
- package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
- package/out/ERC20PermitUpgradeable.sol/ERC20PermitUpgradeable.json +1 -1
- package/out/ERC20Upgradeable.sol/ERC20Upgradeable.json +1 -1
- package/out/ERC3643ClaimTopicsRegistry.sol/ERC3643ClaimTopicsRegistry.json +1 -0
- package/out/ERC3643Compliance.sol/ERC3643Compliance.json +1 -0
- package/out/ERC3643ErrorsLib.sol/ERC3643ErrorsLib.json +1 -0
- package/out/ERC3643IdentityRegistry.sol/ERC3643IdentityRegistry.json +1 -0
- package/out/ERC3643IdentityRegistryStorage.sol/ERC3643IdentityRegistryStorage.json +1 -0
- package/out/ERC3643Token.sol/ERC3643Token.json +1 -0
- package/out/ERC3643TrustedIssuersRegistry.sol/ERC3643TrustedIssuersRegistry.json +1 -0
- package/out/ERC4337Utils.sol/ERC4337Utils.json +1 -0
- package/out/ERC4337Utils.sol/IEntryPointExtra.json +1 -0
- package/out/ERC734Validator.sol/ERC734Validator.json +1 -0
- package/out/ERC7579Validator.sol/ERC7579Validator.json +1 -0
- package/out/ERC7786GatewayMock.sol/ERC7786GatewayMock.json +1 -0
- package/out/ERC7786Recipient.sol/ERC7786Recipient.json +1 -0
- package/out/ERC7913WebAuthnVerifier.sol/ERC7913WebAuthnVerifier.json +1 -0
- package/out/EnumerableSet.sol/EnumerableSet.json +1 -1
- package/out/Errors.sol/Errors.json +1 -1
- package/out/ErrorsLib.sol/ErrorsLib.json +1 -1
- package/out/EventsLib.sol/EventsLib.json +1 -1
- package/out/Hashes.sol/Hashes.json +1 -0
- package/out/HostileModules.sol/RevertEverywhereModule.json +1 -0
- package/out/HostileModules.sol/UnbindRevertingModule.json +1 -0
- package/out/IAccessManaged.sol/IAccessManaged.json +1 -0
- package/out/IAccessManager.sol/IAccessManager.json +1 -0
- package/out/IAuthority.sol/IAuthority.json +1 -0
- package/out/IBeacon.sol/IBeacon.json +1 -1
- package/out/IClaimIssuer.sol/IClaimIssuer.json +1 -1
- package/out/IComplianceLedger.sol/IComplianceLedger.json +1 -0
- package/out/IERC1271.sol/IERC1271.json +1 -0
- package/out/IERC165.sol/IERC165.json +1 -1
- package/out/IERC173.sol/IERC173.json +1 -1
- package/out/IERC1967.sol/IERC1967.json +1 -1
- package/out/IERC20.sol/IERC20.json +1 -1
- package/out/IERC20Metadata.sol/IERC20Metadata.json +1 -1
- package/out/IERC20Permit.sol/IERC20Permit.json +1 -1
- package/out/IERC3643.sol/IERC3643.json +1 -1
- package/out/IERC3643ClaimTopicsRegistry.sol/IERC3643ClaimTopicsRegistry.json +1 -1
- package/out/IERC3643Compliance.sol/IERC3643Compliance.json +1 -1
- package/out/IERC3643IdentityRegistry.sol/IERC3643IdentityRegistry.json +1 -1
- package/out/IERC3643IdentityRegistryStorage.sol/IERC3643IdentityRegistryStorage.json +1 -1
- package/out/IERC3643TrustedIssuersRegistry.sol/IERC3643TrustedIssuersRegistry.json +1 -1
- package/out/IERC4337.sol/IAccount.json +1 -0
- package/out/IERC4337.sol/IAccountExecute.json +1 -0
- package/out/IERC4337.sol/IAggregator.json +1 -0
- package/out/IERC4337.sol/IEntryPoint.json +1 -0
- package/out/IERC4337.sol/IEntryPointNonces.json +1 -0
- package/out/IERC4337.sol/IEntryPointStake.json +1 -0
- package/out/IERC4337.sol/IPaymaster.json +1 -0
- package/out/IERC5267.sol/IERC5267.json +1 -1
- package/out/IERC734.sol/IERC734.json +1 -1
- package/out/IERC735.sol/IERC735.json +1 -1
- package/out/IERC7913.sol/IERC7913SignatureVerifier.json +1 -0
- package/out/IIdentity.sol/IIdentity.json +1 -1
- package/out/IIdentityFactory.sol/IIdentityFactory.json +1 -0
- package/out/IIdentityRegistryStorage.sol/IIdentityRegistryStorage.json +1 -1
- package/out/IKeyExecutor.sol/IKeyExecutor.json +1 -0
- package/out/IModularCompliance.sol/IModularCompliance.json +1 -1
- package/out/IModule.sol/IModule.json +1 -1
- package/out/IMulticall3.sol/IMulticall3.json +1 -1
- package/out/IReputationRegistry.sol/IReputationRegistry.json +1 -0
- package/out/ISettlementHandler.sol/ISettlementHandler.json +1 -0
- package/out/ITREXFactory.sol/ITREXFactory.json +1 -1
- package/out/ITREXImplementationAuthority.sol/ITREXImplementationAuthority.json +1 -1
- package/out/ITREXMessaging.sol/ITREXMessaging.json +1 -0
- package/out/ITREXRegistry.sol/ITREXRegistry.json +1 -0
- package/out/IToken.sol/IToken.json +1 -1
- package/out/ITransferValidation.sol/ITransferValidation.json +1 -0
- package/out/ITrustedGatewayRegistry.sol/ITrustedGatewayRegistry.json +1 -0
- package/out/IUtilityChecker.sol/IUtilityChecker.json +1 -1
- package/out/Identity.sol/Identity.json +1 -1
- package/out/IdentityFactory.sol/IdentityFactory.json +1 -0
- package/out/IdentityModulesHelper.sol/IdentityModulesHelper.json +1 -0
- package/out/IdentityRegistryStorage.sol/IdentityRegistryStorage.json +1 -1
- package/out/IdentityTypes.sol/IdentityTypes.json +1 -0
- package/out/Initializable.sol/Initializable.json +1 -1
- package/out/InteropSuiteTest.sol/InteropSuiteTest.json +1 -0
- package/out/KeyApprovalModule.sol/IIdentityAccount.json +1 -0
- package/out/KeyApprovalModule.sol/KeyApprovalModule.json +1 -0
- package/out/KeyManager.sol/KeyManager.json +1 -0
- package/out/KeyPurposes.sol/KeyPurposes.json +1 -1
- package/out/KeyTypes.sol/KeyTypes.json +1 -1
- package/out/LowLevelCall.sol/LowLevelCall.json +1 -1
- package/out/Math.sol/Math.json +1 -1
- package/out/MaxBalancePerIdentityModule.sol/MaxBalancePerIdentityModule.json +1 -0
- package/out/MessageHashUtils.sol/MessageHashUtils.json +1 -1
- package/out/MessageTypesLib.sol/MessageTypesLib.json +1 -0
- package/out/MockTREXAccessManagerV2.sol/MockTREXAccessManagerV2.json +1 -0
- package/out/MockTokenV2.sol/MockTokenV2.json +1 -0
- package/out/Mocks.sol/ClaimTopicsRegistryMock.json +1 -0
- package/out/Mocks.sol/ComplianceMock.json +1 -0
- package/out/Mocks.sol/IdentityRegistryMock.json +1 -0
- package/out/Mocks.sol/IdentityRegistryStorageMock.json +1 -0
- package/out/Mocks.sol/TokenMock.json +1 -0
- package/out/Mocks.sol/TrustedIssuersRegistryMock.json +1 -0
- package/out/ModularCompliance.sol/ModularCompliance.json +1 -1
- package/out/ModuleNotPnP.sol/ModuleNotPnP.json +1 -1
- package/out/ModuleProxy.sol/ModuleProxy.json +1 -1
- package/out/ModuleSetLib.sol/ModuleSetLib.json +1 -0
- package/out/MovementKindLib.sol/MovementKindLib.json +1 -0
- package/out/Multicall.sol/Multicall.json +1 -0
- package/out/MulticallUpgradeable.sol/MulticallUpgradeable.json +1 -1
- package/out/Nonces.sol/Nonces.json +1 -1
- package/out/NoncesUpgradeable.sol/NoncesUpgradeable.json +1 -1
- package/out/Ownable.sol/Ownable.json +1 -1
- package/out/OwnableUpgradeable.sol/OwnableUpgradeable.json +1 -1
- package/out/P256.sol/P256.json +1 -0
- package/out/Packing.sol/Packing.json +1 -0
- package/out/Panic.sol/Panic.json +1 -1
- package/out/Pausable.sol/Pausable.json +1 -1
- package/out/PausableUpgradeable.sol/PausableUpgradeable.json +1 -1
- package/out/Proxy.sol/Proxy.json +1 -1
- package/out/ReentrancyGuardTransient.sol/ReentrancyGuardTransient.json +1 -0
- package/out/ReentrantModule.sol/ReentrantModule.json +1 -0
- package/out/ReputationRegistry.sol/ReputationRegistry.json +1 -0
- package/out/RolesLib.sol/RolesLib.json +1 -0
- package/out/SafeCalldataBatch.sol/SafeCalldataBatch.json +1 -0
- package/out/SafeCast.sol/SafeCast.json +1 -1
- package/out/SatelliteLiteMock.sol/SatelliteLiteMock.json +1 -0
- package/out/Script.sol/Script.json +1 -0
- package/out/ShortStrings.sol/ShortStrings.json +1 -1
- package/out/SignatureChecker.sol/SignatureChecker.json +1 -0
- package/out/SignedMath.sol/SignedMath.json +1 -1
- package/out/SlotDerivation.sol/SlotDerivation.json +1 -1
- package/out/SmartAccount.sol/SmartAccount.json +1 -0
- package/out/SpenderVerificationModule.sol/SpenderVerificationModule.json +1 -0
- package/out/SpenderWhitelistModule.sol/SpenderWhitelistModule.json +1 -0
- package/out/StdAssertions.sol/StdAssertions.json +1 -1
- package/out/StdChains.sol/StdChains.json +1 -1
- package/out/StdCheats.sol/StdCheats.json +1 -1
- package/out/StdCheats.sol/StdCheatsSafe.json +1 -1
- package/out/StdConstants.sol/StdConstants.json +1 -1
- package/out/StdError.sol/stdError.json +1 -1
- package/out/StdInvariant.sol/StdInvariant.json +1 -1
- package/out/StdJson.sol/stdJson.json +1 -1
- package/out/StdMath.sol/stdMath.json +1 -1
- package/out/StdStorage.sol/stdStorage.json +1 -1
- package/out/StdStorage.sol/stdStorageSafe.json +1 -1
- package/out/StdStyle.sol/StdStyle.json +1 -1
- package/out/StdToml.sol/stdToml.json +1 -1
- package/out/StdUtils.sol/StdUtils.json +1 -1
- package/out/StorageSlot.sol/StorageSlot.json +1 -1
- package/out/Strings.sol/Strings.json +1 -1
- package/out/Structs.sol/Structs.json +1 -1
- package/out/TREXAccessManager.sol/TREXAccessManager.json +1 -0
- package/out/TREXFactory.sol/TREXFactory.json +1 -1
- package/out/TREXImplementationAuthority.sol/TREXImplementationAuthority.json +1 -1
- package/out/TREXMessaging.sol/TREXMessaging.json +1 -0
- package/out/TREXMessagingLib.sol/TREXMessagingLib.json +1 -0
- package/out/TREXRegistry.sol/TREXRegistry.json +1 -0
- package/out/TestERC20.sol/TestERC20.json +1 -1
- package/out/TestModule.sol/TestModule.json +1 -1
- package/out/TestTREXFactory.sol/TestTREXFactory.json +1 -1
- package/out/Time.sol/Time.json +1 -0
- package/out/Token.sol/Token.json +1 -1
- package/out/TokenDelegationLib.sol/TokenDelegationLib.json +1 -0
- package/out/TokenGuardsLib.sol/TokenGuardsLib.json +1 -0
- package/out/TokenHandler.sol/TokenHandler.json +1 -0
- package/out/TokenLedgerHarness.sol/TokenLedgerHarness.json +1 -0
- package/out/TokenLedgerLib.sol/TokenLedgerLib.json +1 -0
- package/out/TokenRecoveryLib.sol/TokenRecoveryLib.json +1 -0
- package/out/TokenReservationStub.sol/TokenReservationStub.json +1 -0
- package/out/TransferContextLib.sol/TransferContextLib.json +1 -0
- package/out/TransferValidation.sol/TransferValidation.json +1 -0
- package/out/TransferValidationHarness.sol/TransferValidationHarness.json +1 -0
- package/out/TransferValidationLib.sol/TransferValidationLib.json +1 -0
- package/out/TransientSlot.sol/TransientSlot.json +1 -0
- package/out/TrustedGatewayRegistry.sol/TrustedGatewayRegistry.json +1 -0
- package/out/UUPSUpgradeable.sol/UUPSUpgradeable.json +1 -1
- package/out/UpgradeableBeacon.sol/UpgradeableBeacon.json +1 -0
- package/out/UtilityChecker.sol/UtilityChecker.json +1 -1
- package/out/UtilityCheckerProxy.sol/UtilityCheckerProxy.json +1 -1
- package/out/Utils.sol/Utils.json +1 -1
- package/out/VersionLib.sol/VersionLib.json +1 -0
- package/out/Vm.sol/Vm.json +1 -1
- package/out/Vm.sol/VmSafe.json +1 -1
- package/out/WalletKeyLib.sol/WalletKeyLib.json +1 -0
- package/out/WebAuthn.sol/WebAuthn.json +1 -0
- package/out/console.sol/console.json +1 -1
- package/out/draft-AccountERC7579Upgradeable.sol/AccountERC7579Upgradeable.json +1 -0
- package/out/draft-ERC7579Utils.sol/ERC7579Utils.json +1 -0
- package/out/draft-IERC1822.sol/IERC1822Proxiable.json +1 -1
- package/out/draft-IERC6093.sol/IERC1155Errors.json +1 -1
- package/out/draft-IERC6093.sol/IERC20Errors.json +1 -1
- package/out/draft-IERC6093.sol/IERC721Errors.json +1 -1
- package/out/draft-IERC7579.sol/IERC7579AccountConfig.json +1 -0
- package/out/draft-IERC7579.sol/IERC7579Execution.json +1 -0
- package/out/draft-IERC7579.sol/IERC7579Hook.json +1 -0
- package/out/draft-IERC7579.sol/IERC7579Module.json +1 -0
- package/out/draft-IERC7579.sol/IERC7579ModuleConfig.json +1 -0
- package/out/draft-IERC7579.sol/IERC7579Validator.json +1 -0
- package/out/draft-IERC7786.sol/IERC7786GatewaySource.json +1 -0
- package/out/draft-IERC7786.sol/IERC7786Recipient.json +1 -0
- package/out/draft-InteroperableAddress.sol/InteroperableAddress.json +1 -0
- package/out/libraries/Errors.sol/Errors.json +1 -1
- package/out/safeconsole.sol/safeconsole.json +1 -1
- package/package.json +11 -7
- package/contracts/ERC-3643/ERC3643EventsLib.sol +0 -150
- package/contracts/factory/ITREXGateway.sol +0 -234
- package/contracts/factory/TREXGateway.sol +0 -274
- package/contracts/proxy/AbstractProxy.sol +0 -146
- package/contracts/proxy/ClaimTopicsRegistryProxy.sol +0 -83
- package/contracts/proxy/IdentityRegistryProxy.sol +0 -95
- package/contracts/proxy/TokenProxy.sol +0 -97
- package/contracts/proxy/authority/IAFactory.sol +0 -122
- package/contracts/proxy/authority/IIAFactory.sol +0 -87
- package/contracts/proxy/authority/ITREXImplementationAuthority.sol +0 -239
- package/contracts/proxy/authority/TREXImplementationAuthority.sol +0 -350
- package/contracts/registry/implementation/ClaimTopicsRegistry.sol +0 -152
- package/contracts/registry/implementation/IdentityRegistry.sol +0 -352
- package/contracts/registry/implementation/TrustedIssuersRegistry.sol +0 -272
- package/contracts/registry/interface/IClaimTopicsRegistry.sol +0 -70
- package/contracts/registry/interface/IIdentityRegistry.sol +0 -102
- package/contracts/registry/interface/ITrustedIssuersRegistry.sol +0 -70
- package/contracts/roles/IERC173.sol +0 -21
- package/contracts/token/TokenStructs.sol +0 -74
- package/contracts/utils/InterfaceIdCalculator.sol +0 -223
- package/contracts/vendor/openzeppelin/Create3.sol +0 -143
- package/out/AbstractAgentRole.sol/AbstractAgentRole.json +0 -1
- package/out/AbstractProxy.sol/AbstractProxy.json +0 -1
- package/out/AgentRole.sol/AgentRole.json +0 -1
- package/out/AgentRoleUpgradeable.sol/AgentRoleUpgradeable.json +0 -1
- package/out/ClaimIssuer.sol/ClaimIssuer.json +0 -1
- package/out/ClaimTopicsRegistry.sol/ClaimTopicsRegistry.json +0 -1
- package/out/ClaimTopicsRegistryProxy.sol/ClaimTopicsRegistryProxy.json +0 -1
- package/out/ERC2771Context.sol/ERC2771Context.json +0 -1
- package/out/ERC2771ContextUpgradeable.sol/ERC2771ContextUpgradeable.json +0 -1
- package/out/ERC2771Forwarder.sol/ERC2771Forwarder.json +0 -1
- package/out/ERC3643EventsLib.sol/ERC3643EventsLib.json +0 -1
- package/out/IAFactory.sol/IAFactory.json +0 -1
- package/out/IClaimTopicsRegistry.sol/IClaimTopicsRegistry.json +0 -1
- package/out/IERC1363.sol/IERC1363.json +0 -1
- package/out/IIAFactory.sol/IIAFactory.json +0 -1
- package/out/IIdFactory.sol/IIdFactory.json +0 -1
- package/out/IIdentityRegistry.sol/IIdentityRegistry.json +0 -1
- package/out/IImplementationAuthority.sol/IImplementationAuthority.json +0 -1
- package/out/IProxy.sol/IProxy.json +0 -1
- package/out/ITREXGateway.sol/ITREXGateway.json +0 -1
- package/out/ITrustedIssuersRegistry.sol/ITrustedIssuersRegistry.json +0 -1
- package/out/IdFactory.sol/IdFactory.json +0 -1
- package/out/IdentityProxy.sol/IdentityProxy.json +0 -1
- package/out/IdentityRegistry.sol/IdentityRegistry.json +0 -1
- package/out/IdentityRegistryProxy.sol/IdentityRegistryProxy.json +0 -1
- package/out/IdentityRegistryStorageProxy.sol/IdentityRegistryStorageProxy.json +0 -1
- package/out/ImplementationAuthority.sol/ImplementationAuthority.json +0 -1
- package/out/InterfaceIdCalculator.sol/InterfaceIdCalculator.json +0 -1
- package/out/ModularComplianceProxy.sol/ModularComplianceProxy.json +0 -1
- package/out/Ownable2Step.sol/Ownable2Step.json +0 -1
- package/out/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.json +0 -1
- package/out/Roles.sol/Roles.json +0 -1
- package/out/SafeERC20.sol/SafeERC20.json +0 -1
- package/out/Storage.sol/Storage.json +0 -1
- package/out/TREXGateway.sol/TREXGateway.json +0 -1
- package/out/TestAgentRole.sol/TestAgentRole.json +0 -1
- package/out/TestAgentRoleUpgradeable.sol/TestAgentRoleUpgradeable.json +0 -1
- package/out/TokenProxy.sol/TokenProxy.json +0 -1
- package/out/TrustedIssuersRegistry.sol/TrustedIssuersRegistry.json +0 -1
- package/out/TrustedIssuersRegistryProxy.sol/TrustedIssuersRegistryProxy.json +0 -1
- package/out/Version.sol/Version.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":[{"type":"function","name":"addClaimTopic","inputs":[{"name":"_claimTopic","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getClaimTopics","inputs":[],"outputs":[{"name":"","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"type":"function","name":"removeClaimTopic","inputs":[{"name":"_claimTopic","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"addClaimTopic(uint256)":"c7b22551","getClaimTopics()":"df09d604","removeClaimTopic(uint256)":"08297846"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_claimTopic\",\"type\":\"uint256\"}],\"name\":\"addClaimTopic\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getClaimTopics\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_claimTopic\",\"type\":\"uint256\"}],\"name\":\"removeClaimTopic\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addClaimTopic(uint256)\":{\"details\":\"Add a trusted claim topic (For example: KYC=1, AML=2).
|
|
1
|
+
{"abi":[{"type":"function","name":"addClaimTopic","inputs":[{"name":"_claimTopic","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getClaimTopics","inputs":[],"outputs":[{"name":"","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"type":"function","name":"removeClaimTopic","inputs":[{"name":"_claimTopic","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ClaimTopicAdded","inputs":[{"name":"_claimTopic","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"ClaimTopicRemoved","inputs":[{"name":"_claimTopic","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"addClaimTopic(uint256)":"c7b22551","getClaimTopics()":"df09d604","removeClaimTopic(uint256)":"08297846"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_claimTopic\",\"type\":\"uint256\"}],\"name\":\"ClaimTopicAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_claimTopic\",\"type\":\"uint256\"}],\"name\":\"ClaimTopicRemoved\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_claimTopic\",\"type\":\"uint256\"}],\"name\":\"addClaimTopic\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getClaimTopics\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_claimTopic\",\"type\":\"uint256\"}],\"name\":\"removeClaimTopic\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"ClaimTopicAdded(uint256)\":{\"details\":\"Emitted when a claim topic has been added to the requirement list.\",\"params\":{\"_claimTopic\":\"The claim topic that has been added.\"}},\"ClaimTopicRemoved(uint256)\":{\"details\":\"Emitted when a claim topic has been removed from the requirement list.\",\"params\":{\"_claimTopic\":\"The claim topic that has been removed.\"}}},\"kind\":\"dev\",\"methods\":{\"addClaimTopic(uint256)\":{\"details\":\"Add a trusted claim topic (For example: KYC=1, AML=2). Restricted to the configured AccessManager role (OWNER). emits `ClaimTopicAdded` event cannot add more than 15 topics for 1 token as adding more could create gas issues\",\"params\":{\"_claimTopic\":\"The claim topic index\"}},\"getClaimTopics()\":{\"details\":\"Get the trusted claim topics for the security token\",\"returns\":{\"_0\":\"Array of trusted claim topics\"}},\"removeClaimTopic(uint256)\":{\"details\":\"Remove a trusted claim topic (For example: KYC=1, AML=2). Restricted to the configured AccessManager role (OWNER). emits `ClaimTopicRemoved` event\",\"params\":{\"_claimTopic\":\"The claim topic index\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ERC-3643/IERC3643ClaimTopicsRegistry.sol\":\"IERC3643ClaimTopicsRegistry\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@forge-std/=dependencies/forge-std-1.16.2/src/\",\":@onchain-id/solidity/=dependencies/onchain-id-develop/\",\":@openzeppelin-contracts-5.7.0/=dependencies/@openzeppelin-contracts-5.7.0/\",\":@openzeppelin-contracts-upgradeable-5.7.0/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/\",\":@openzeppelin/accounts/=dependencies/onchain-id-develop/dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/\",\":@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/\",\":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.7.0/\",\":forge-std-1.16.2/=dependencies/forge-std-1.16.2/src/\",\":forge-std/=dependencies/onchain-id-develop/dependencies/forge-std-v1.14.0/src/\",\":onchain-id-develop/=dependencies/onchain-id-develop/\"]},\"sources\":{\"contracts/ERC-3643/IERC3643ClaimTopicsRegistry.sol\":{\"keccak256\":\"0x817bd116fa823a1e9a29190073605ac78d59e264dd9c2dde5b44d6160560dd65\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://26c01a407f6540f61ea84c9fcc2f179afbe3cca1eadd4f43f1956abafa4cf94d\",\"dweb:/ipfs/QmdoUbos3XwvGaa9NyujZ8XTuotSoRaCkGqTwmeSiTcfHD\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"uint256","name":"_claimTopic","type":"uint256","indexed":true}],"type":"event","name":"ClaimTopicAdded","anonymous":false},{"inputs":[{"internalType":"uint256","name":"_claimTopic","type":"uint256","indexed":true}],"type":"event","name":"ClaimTopicRemoved","anonymous":false},{"inputs":[{"internalType":"uint256","name":"_claimTopic","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"addClaimTopic"},{"inputs":[],"stateMutability":"view","type":"function","name":"getClaimTopics","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}]},{"inputs":[{"internalType":"uint256","name":"_claimTopic","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"removeClaimTopic"}],"devdoc":{"kind":"dev","methods":{"addClaimTopic(uint256)":{"details":"Add a trusted claim topic (For example: KYC=1, AML=2). Restricted to the configured AccessManager role (OWNER). emits `ClaimTopicAdded` event cannot add more than 15 topics for 1 token as adding more could create gas issues","params":{"_claimTopic":"The claim topic index"}},"getClaimTopics()":{"details":"Get the trusted claim topics for the security token","returns":{"_0":"Array of trusted claim topics"}},"removeClaimTopic(uint256)":{"details":"Remove a trusted claim topic (For example: KYC=1, AML=2). Restricted to the configured AccessManager role (OWNER). emits `ClaimTopicRemoved` event","params":{"_claimTopic":"The claim topic index"}}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@forge-std/=dependencies/forge-std-1.16.2/src/","@onchain-id/solidity/=dependencies/onchain-id-develop/","@openzeppelin-contracts-5.7.0/=dependencies/@openzeppelin-contracts-5.7.0/","@openzeppelin-contracts-upgradeable-5.7.0/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/","@openzeppelin/accounts/=dependencies/onchain-id-develop/dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/","@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.7.0/","forge-std-1.16.2/=dependencies/forge-std-1.16.2/src/","forge-std/=dependencies/onchain-id-develop/dependencies/forge-std-v1.14.0/src/","onchain-id-develop/=dependencies/onchain-id-develop/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/ERC-3643/IERC3643ClaimTopicsRegistry.sol":"IERC3643ClaimTopicsRegistry"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/ERC-3643/IERC3643ClaimTopicsRegistry.sol":{"keccak256":"0x817bd116fa823a1e9a29190073605ac78d59e264dd9c2dde5b44d6160560dd65","urls":["bzz-raw://26c01a407f6540f61ea84c9fcc2f179afbe3cca1eadd4f43f1956abafa4cf94d","dweb:/ipfs/QmdoUbos3XwvGaa9NyujZ8XTuotSoRaCkGqTwmeSiTcfHD"],"license":"CC0-1.0"}},"version":1},"id":2}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":[{"type":"function","name":"bindToken","inputs":[{"name":"_token","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"canTransfer","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"created","inputs":[{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"destroyed","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getTokenBound","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"isTokenBound","inputs":[{"name":"_token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"transferred","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"unbindToken","inputs":[{"name":"_token","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"bindToken(address)":"3ff5aa02","canTransfer(address,address,uint256)":"e46638e6","created(address,uint256)":"5f8dead3","destroyed(address,uint256)":"8d2ea772","getTokenBound()":"6a3edf28","isTokenBound(address)":"993e8b95","transferred(address,address,uint256)":"8baf29b4","unbindToken(address)":"40db3b50"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"bindToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"canTransfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"created\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"destroyed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenBound\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"isTokenBound\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"transferred\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"unbindToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"bindToken(address)\":{\"details\":\"binds a token to the compliance contract\",\"params\":{\"_token\":\"address of the token to bind This function can be called ONLY by the owner of the compliance contract Emits a TokenBound event\"}},\"canTransfer(address,address,uint256)\":{\"details\":\"checks that the transfer is compliant. default compliance always returns true READ ONLY FUNCTION, this function cannot be used to increment counters, emit events, ...\",\"params\":{\"_amount\":\"The amount of tokens involved in the transfer This function will call moduleCheck() on every module bound to the compliance If each of the module checks return TRUE, this function will return TRUE as well returns FALSE otherwise\",\"_from\":\"The address of the sender\",\"_to\":\"The address of the receiver\"}},\"created(address,uint256)\":{\"details\":\"function called whenever tokens are created on a wallet this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance\",\"params\":{\"_amount\":\"The amount of tokens involved in the minting This function calls moduleMintAction() on each module bound to the compliance contract\",\"_to\":\"The address of the receiver\"}},\"destroyed(address,uint256)\":{\"details\":\"function called whenever tokens are destroyed from a wallet this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance\",\"params\":{\"_amount\":\"The amount of tokens involved in the burn This function calls moduleBurnAction() on each module bound to the compliance contract\",\"_from\":\"The address on which tokens are burnt\"}},\"getTokenBound()\":{\"details\":\"getter for the address of the token bound returns the address of the token\"},\"transferred(address,address,uint256)\":{\"details\":\"function called whenever tokens are transferred from one wallet to another this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance\",\"params\":{\"_amount\":\"The amount of tokens involved in the transfer This function calls moduleTransferAction() on each module bound to the compliance contract\",\"_from\":\"The address of the sender\",\"_to\":\"The address of the receiver\"}},\"unbindToken(address)\":{\"details\":\"unbinds a token from the compliance contract\",\"params\":{\"_token\":\"address of the token to unbind This function can be called ONLY by the owner of the compliance contract Emits a TokenUnbound event\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"isTokenBound(address)\":{\"notice\":\"check the parameters of the compliance contract\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ERC-3643/IERC3643Compliance.sol\":\"IERC3643Compliance\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@forge-std/=dependencies/forge-std-1.12.0/src/\",\":@onchain-id/solidity/=dependencies/onchain-id-2.2.2-beta3/\",\":@openzeppelin-contracts-5.6.1/=dependencies/@openzeppelin-contracts-5.6.1/\",\":@openzeppelin-contracts-upgradeable-5.6.1/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/\",\":@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/\",\":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.6.1/\",\":forge-std-1.12.0/=dependencies/forge-std-1.12.0/src/\",\":onchain-id-2.2.2-beta3/=dependencies/onchain-id-2.2.2-beta3/contracts/\"]},\"sources\":{\"contracts/ERC-3643/IERC3643Compliance.sol\":{\"keccak256\":\"0x0c0fe341ba4c9f036d2f006fe72befd9ab4a3cdf02111b96360e4fedd5413200\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://afb977b4a0947d599418b6997e5ca4cd4fb8604065148ec9d38f30334d580226\",\"dweb:/ipfs/QmWmWAo6jgifG1fTCVdsuVUntMr3N8PY5BWf6z9yvVRque\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"bindToken"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"view","type":"function","name":"canTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"created"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"destroyed"},{"inputs":[],"stateMutability":"view","type":"function","name":"getTokenBound","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"view","type":"function","name":"isTokenBound","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"transferred"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"unbindToken"}],"devdoc":{"kind":"dev","methods":{"bindToken(address)":{"details":"binds a token to the compliance contract","params":{"_token":"address of the token to bind This function can be called ONLY by the owner of the compliance contract Emits a TokenBound event"}},"canTransfer(address,address,uint256)":{"details":"checks that the transfer is compliant. default compliance always returns true READ ONLY FUNCTION, this function cannot be used to increment counters, emit events, ...","params":{"_amount":"The amount of tokens involved in the transfer This function will call moduleCheck() on every module bound to the compliance If each of the module checks return TRUE, this function will return TRUE as well returns FALSE otherwise","_from":"The address of the sender","_to":"The address of the receiver"}},"created(address,uint256)":{"details":"function called whenever tokens are created on a wallet this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance","params":{"_amount":"The amount of tokens involved in the minting This function calls moduleMintAction() on each module bound to the compliance contract","_to":"The address of the receiver"}},"destroyed(address,uint256)":{"details":"function called whenever tokens are destroyed from a wallet this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance","params":{"_amount":"The amount of tokens involved in the burn This function calls moduleBurnAction() on each module bound to the compliance contract","_from":"The address on which tokens are burnt"}},"getTokenBound()":{"details":"getter for the address of the token bound returns the address of the token"},"transferred(address,address,uint256)":{"details":"function called whenever tokens are transferred from one wallet to another this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance","params":{"_amount":"The amount of tokens involved in the transfer This function calls moduleTransferAction() on each module bound to the compliance contract","_from":"The address of the sender","_to":"The address of the receiver"}},"unbindToken(address)":{"details":"unbinds a token from the compliance contract","params":{"_token":"address of the token to unbind This function can be called ONLY by the owner of the compliance contract Emits a TokenUnbound event"}}},"version":1},"userdoc":{"kind":"user","methods":{"isTokenBound(address)":{"notice":"check the parameters of the compliance contract"}},"version":1}},"settings":{"remappings":["@forge-std/=dependencies/forge-std-1.12.0/src/","@onchain-id/solidity/=dependencies/onchain-id-2.2.2-beta3/","@openzeppelin-contracts-5.6.1/=dependencies/@openzeppelin-contracts-5.6.1/","@openzeppelin-contracts-upgradeable-5.6.1/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/","@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.6.1/","forge-std-1.12.0/=dependencies/forge-std-1.12.0/src/","onchain-id-2.2.2-beta3/=dependencies/onchain-id-2.2.2-beta3/contracts/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"contracts/ERC-3643/IERC3643Compliance.sol":"IERC3643Compliance"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/ERC-3643/IERC3643Compliance.sol":{"keccak256":"0x0c0fe341ba4c9f036d2f006fe72befd9ab4a3cdf02111b96360e4fedd5413200","urls":["bzz-raw://afb977b4a0947d599418b6997e5ca4cd4fb8604065148ec9d38f30334d580226","dweb:/ipfs/QmWmWAo6jgifG1fTCVdsuVUntMr3N8PY5BWf6z9yvVRque"],"license":"CC0-1.0"}},"version":1},"id":3}
|
|
1
|
+
{"abi":[{"type":"function","name":"bindToken","inputs":[{"name":"_token","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"canTransfer","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"created","inputs":[{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"destroyed","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getTokenBound","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"isTokenBound","inputs":[{"name":"_token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"transferred","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"unbindToken","inputs":[{"name":"_token","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"TokenBound","inputs":[{"name":"_token","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"TokenUnbound","inputs":[{"name":"_token","type":"address","indexed":false,"internalType":"address"}],"anonymous":false}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"bindToken(address)":"3ff5aa02","canTransfer(address,address,uint256)":"e46638e6","created(address,uint256)":"5f8dead3","destroyed(address,uint256)":"8d2ea772","getTokenBound()":"6a3edf28","isTokenBound(address)":"993e8b95","transferred(address,address,uint256)":"8baf29b4","unbindToken(address)":"40db3b50"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"TokenBound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"TokenUnbound\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"bindToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"canTransfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"created\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"destroyed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenBound\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"isTokenBound\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"transferred\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"unbindToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"TokenBound(address)\":{\"details\":\"Emitted when a token is bound to the compliance contract.\",\"params\":{\"_token\":\"The address of the bound token.\"}},\"TokenUnbound(address)\":{\"details\":\"Emitted when a token is unbound from the compliance contract.\",\"params\":{\"_token\":\"The address of the unbound token.\"}}},\"kind\":\"dev\",\"methods\":{\"bindToken(address)\":{\"details\":\"binds a token to the compliance contract\",\"params\":{\"_token\":\"address of the token to bind Callable by the AccessManager-configured role or by the bound token itself. Emits a TokenBound event\"}},\"canTransfer(address,address,uint256)\":{\"details\":\"checks that the transfer is compliant. default compliance always returns true READ ONLY FUNCTION, this function cannot be used to increment counters, emit events, ...\",\"params\":{\"_amount\":\"The amount of tokens involved in the transfer the implementation asks every rule bound to the compliance what it allows, and returns TRUE when `_amount` is within every answer, FALSE otherwise the token also calls this function on a mint, with `_from` set to the zero address, so that distribution rules can be enforced at issuance, following the same convention as the `Transfer` event of `ERC-20` a burn does not go through this function\",\"_from\":\"The address of the sender\",\"_to\":\"The address of the receiver\"}},\"created(address,uint256)\":{\"details\":\"function called whenever tokens are created on a wallet this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance\",\"params\":{\"_amount\":\"The amount of tokens involved in the minting This function calls afterTransfer() on each TRACKER module bound to the compliance contract, as a movement with a zero sender side\",\"_to\":\"The address of the receiver\"}},\"destroyed(address,uint256)\":{\"details\":\"function called whenever tokens are destroyed from a wallet this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance\",\"params\":{\"_amount\":\"The amount of tokens involved in the burn This function calls afterTransfer() on each TRACKER module bound to the compliance contract, as a movement with a zero recipient side\",\"_from\":\"The address on which tokens are burnt\"}},\"getTokenBound()\":{\"details\":\"getter for the address of the token bound returns the address of the token\"},\"transferred(address,address,uint256)\":{\"details\":\"function called whenever tokens are transferred from one wallet to another this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance\",\"params\":{\"_amount\":\"The amount of tokens involved in the transfer This function calls afterTransfer() on each TRACKER module bound to the compliance contract\",\"_from\":\"The address of the sender\",\"_to\":\"The address of the receiver\"}},\"unbindToken(address)\":{\"details\":\"unbinds a token from the compliance contract\",\"params\":{\"_token\":\"address of the token to unbind Callable by the AccessManager-configured role or by the bound token itself. Emits a TokenUnbound event\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"isTokenBound(address)\":{\"notice\":\"check the parameters of the compliance contract\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ERC-3643/IERC3643Compliance.sol\":\"IERC3643Compliance\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@forge-std/=dependencies/forge-std-1.16.2/src/\",\":@onchain-id/solidity/=dependencies/onchain-id-develop/\",\":@openzeppelin-contracts-5.7.0/=dependencies/@openzeppelin-contracts-5.7.0/\",\":@openzeppelin-contracts-upgradeable-5.7.0/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/\",\":@openzeppelin/accounts/=dependencies/onchain-id-develop/dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/\",\":@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/\",\":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.7.0/\",\":forge-std-1.16.2/=dependencies/forge-std-1.16.2/src/\",\":forge-std/=dependencies/onchain-id-develop/dependencies/forge-std-v1.14.0/src/\",\":onchain-id-develop/=dependencies/onchain-id-develop/\"]},\"sources\":{\"contracts/ERC-3643/IERC3643Compliance.sol\":{\"keccak256\":\"0xe8adf70d358e33526f7d823ea5a115c6a82d4682fda3173b0ae75e4ae4a5cf77\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://e926a86ac20200a83f806e7bd031c3b7ef578d5d31a4412cb432238feddf3713\",\"dweb:/ipfs/QmcncZcQZfrV78Tqahe974tcjV8GXVyD7vCZuXXsdDAg33\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_token","type":"address","indexed":false}],"type":"event","name":"TokenBound","anonymous":false},{"inputs":[{"internalType":"address","name":"_token","type":"address","indexed":false}],"type":"event","name":"TokenUnbound","anonymous":false},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"bindToken"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"view","type":"function","name":"canTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"created"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"destroyed"},{"inputs":[],"stateMutability":"view","type":"function","name":"getTokenBound","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"view","type":"function","name":"isTokenBound","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"transferred"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"unbindToken"}],"devdoc":{"kind":"dev","methods":{"bindToken(address)":{"details":"binds a token to the compliance contract","params":{"_token":"address of the token to bind Callable by the AccessManager-configured role or by the bound token itself. Emits a TokenBound event"}},"canTransfer(address,address,uint256)":{"details":"checks that the transfer is compliant. default compliance always returns true READ ONLY FUNCTION, this function cannot be used to increment counters, emit events, ...","params":{"_amount":"The amount of tokens involved in the transfer the implementation asks every rule bound to the compliance what it allows, and returns TRUE when `_amount` is within every answer, FALSE otherwise the token also calls this function on a mint, with `_from` set to the zero address, so that distribution rules can be enforced at issuance, following the same convention as the `Transfer` event of `ERC-20` a burn does not go through this function","_from":"The address of the sender","_to":"The address of the receiver"}},"created(address,uint256)":{"details":"function called whenever tokens are created on a wallet this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance","params":{"_amount":"The amount of tokens involved in the minting This function calls afterTransfer() on each TRACKER module bound to the compliance contract, as a movement with a zero sender side","_to":"The address of the receiver"}},"destroyed(address,uint256)":{"details":"function called whenever tokens are destroyed from a wallet this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance","params":{"_amount":"The amount of tokens involved in the burn This function calls afterTransfer() on each TRACKER module bound to the compliance contract, as a movement with a zero recipient side","_from":"The address on which tokens are burnt"}},"getTokenBound()":{"details":"getter for the address of the token bound returns the address of the token"},"transferred(address,address,uint256)":{"details":"function called whenever tokens are transferred from one wallet to another this function can update state variables in the modules bound to the compliance these state variables being used by the module checks to decide if a transfer is compliant or not depending on the values stored in these state variables and on the parameters of the modules This function can be called ONLY by the token contract bound to the compliance","params":{"_amount":"The amount of tokens involved in the transfer This function calls afterTransfer() on each TRACKER module bound to the compliance contract","_from":"The address of the sender","_to":"The address of the receiver"}},"unbindToken(address)":{"details":"unbinds a token from the compliance contract","params":{"_token":"address of the token to unbind Callable by the AccessManager-configured role or by the bound token itself. Emits a TokenUnbound event"}}},"version":1},"userdoc":{"kind":"user","methods":{"isTokenBound(address)":{"notice":"check the parameters of the compliance contract"}},"version":1}},"settings":{"remappings":["@forge-std/=dependencies/forge-std-1.16.2/src/","@onchain-id/solidity/=dependencies/onchain-id-develop/","@openzeppelin-contracts-5.7.0/=dependencies/@openzeppelin-contracts-5.7.0/","@openzeppelin-contracts-upgradeable-5.7.0/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/","@openzeppelin/accounts/=dependencies/onchain-id-develop/dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/","@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.7.0/","forge-std-1.16.2/=dependencies/forge-std-1.16.2/src/","forge-std/=dependencies/onchain-id-develop/dependencies/forge-std-v1.14.0/src/","onchain-id-develop/=dependencies/onchain-id-develop/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/ERC-3643/IERC3643Compliance.sol":"IERC3643Compliance"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/ERC-3643/IERC3643Compliance.sol":{"keccak256":"0xe8adf70d358e33526f7d823ea5a115c6a82d4682fda3173b0ae75e4ae4a5cf77","urls":["bzz-raw://e926a86ac20200a83f806e7bd031c3b7ef578d5d31a4412cb432238feddf3713","dweb:/ipfs/QmcncZcQZfrV78Tqahe974tcjV8GXVyD7vCZuXXsdDAg33"],"license":"CC0-1.0"}},"version":1},"id":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":[{"type":"function","name":"batchRegisterIdentity","inputs":[{"name":"_userAddresses","type":"address[]","internalType":"address[]"},{"name":"_identities","type":"address[]","internalType":"contract IIdentity[]"},{"name":"_countries","type":"uint16[]","internalType":"uint16[]"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"contains","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"deleteIdentity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"identity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"contract IIdentity"}],"stateMutability":"view"},{"type":"function","name":"identityStorage","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC3643IdentityRegistryStorage"}],"stateMutability":"view"},{"type":"function","name":"investorCountry","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint16","internalType":"uint16"}],"stateMutability":"view"},{"type":"function","name":"isVerified","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"issuersRegistry","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC3643TrustedIssuersRegistry"}],"stateMutability":"view"},{"type":"function","name":"registerIdentity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_identity","type":"address","internalType":"contract IIdentity"},{"name":"_country","type":"uint16","internalType":"uint16"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setClaimTopicsRegistry","inputs":[{"name":"_claimTopicsRegistry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setIdentityRegistryStorage","inputs":[{"name":"_identityRegistryStorage","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setTrustedIssuersRegistry","inputs":[{"name":"_trustedIssuersRegistry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"topicsRegistry","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC3643ClaimTopicsRegistry"}],"stateMutability":"view"},{"type":"function","name":"updateCountry","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_country","type":"uint16","internalType":"uint16"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"updateIdentity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_identity","type":"address","internalType":"contract IIdentity"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"batchRegisterIdentity(address[],address[],uint16[])":"653dc9f1","contains(address)":"5dbe47e8","deleteIdentity(address)":"a8d29d1d","identity(address)":"f0eb5e54","identityStorage()":"f11abfd8","investorCountry(address)":"7e42683b","isVerified(address)":"b9209e33","issuersRegistry()":"b4f3fcb7","registerIdentity(address,address,uint16)":"454a03e0","setClaimTopicsRegistry(address)":"670af6a9","setIdentityRegistryStorage(address)":"26d941ae","setTrustedIssuersRegistry(address)":"e744d789","topicsRegistry()":"3b3e12f4","updateCountry(address,uint16)":"3b239a7f","updateIdentity(address,address)":"8e098ca1"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_userAddresses\",\"type\":\"address[]\"},{\"internalType\":\"contract IIdentity[]\",\"name\":\"_identities\",\"type\":\"address[]\"},{\"internalType\":\"uint16[]\",\"name\":\"_countries\",\"type\":\"uint16[]\"}],\"name\":\"batchRegisterIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"contains\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"deleteIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"identity\",\"outputs\":[{\"internalType\":\"contract IIdentity\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"identityStorage\",\"outputs\":[{\"internalType\":\"contract IERC3643IdentityRegistryStorage\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"investorCountry\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"isVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"issuersRegistry\",\"outputs\":[{\"internalType\":\"contract IERC3643TrustedIssuersRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_country\",\"type\":\"uint16\"}],\"name\":\"registerIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_claimTopicsRegistry\",\"type\":\"address\"}],\"name\":\"setClaimTopicsRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_identityRegistryStorage\",\"type\":\"address\"}],\"name\":\"setIdentityRegistryStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustedIssuersRegistry\",\"type\":\"address\"}],\"name\":\"setTrustedIssuersRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"topicsRegistry\",\"outputs\":[{\"internalType\":\"contract IERC3643ClaimTopicsRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_country\",\"type\":\"uint16\"}],\"name\":\"updateCountry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"}],\"name\":\"updateIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"batchRegisterIdentity(address[],address[],uint16[])\":{\"details\":\"function allowing to register identities in batch This function can only be called by a wallet set as agent of the smart contract Requires that none of the users has an identity contract already registered. IMPORTANT : THIS TRANSACTION COULD EXCEED GAS LIMIT IF `_userAddresses.length` IS TOO HIGH, USE WITH CARE OR YOU COULD LOSE TX FEES WITH AN \\\"OUT OF GAS\\\" TRANSACTION\",\"params\":{\"_countries\":\"The countries of the corresponding investors emits _userAddresses.length `IdentityRegistered` events\",\"_identities\":\"The addresses of the corresponding identity contracts\",\"_userAddresses\":\"The addresses of the users\"}},\"contains(address)\":{\"details\":\"This functions checks whether a wallet has its Identity registered or not in the Identity Registry.\",\"params\":{\"_userAddress\":\"The address of the user to be checked.\"},\"returns\":{\"_0\":\"'True' if the address is contained in the Identity Registry, 'false' if not.\"}},\"deleteIdentity(address)\":{\"details\":\"Removes an user from the identity registry. Requires that the user have an identity contract already deployed that will be deleted. This function can only be called by a wallet set as agent of the smart contract\",\"params\":{\"_userAddress\":\"The address of the user to be removed emits `IdentityRemoved` event\"}},\"identity(address)\":{\"details\":\"Returns the onchainID of an investor.\",\"params\":{\"_userAddress\":\"The wallet of the investor\"}},\"identityStorage()\":{\"details\":\"Returns the IdentityRegistryStorage linked to the current IdentityRegistry.\"},\"investorCountry(address)\":{\"details\":\"Returns the country code of an investor.\",\"params\":{\"_userAddress\":\"The wallet of the investor\"}},\"isVerified(address)\":{\"details\":\"This functions checks whether an identity contract corresponding to the provided user address has the required claims or not based on the data fetched from trusted issuers registry and from the claim topics registry\",\"params\":{\"_userAddress\":\"The address of the user to be verified.\"},\"returns\":{\"_0\":\"'True' if the address is verified, 'false' if not.\"}},\"issuersRegistry()\":{\"details\":\"Returns the TrustedIssuersRegistry linked to the current IdentityRegistry.\"},\"registerIdentity(address,address,uint16)\":{\"details\":\"Register an identity contract corresponding to a user address. Requires that the user doesn't have an identity contract already registered. This function can only be called by a wallet set as agent of the smart contract\",\"params\":{\"_country\":\"The country of the investor emits `IdentityRegistered` event\",\"_identity\":\"The address of the user's identity contract\",\"_userAddress\":\"The address of the user\"}},\"setClaimTopicsRegistry(address)\":{\"details\":\"Replace the actual claimTopicsRegistry contract with a new one. This function can only be called by the wallet set as owner of the smart contract\",\"params\":{\"_claimTopicsRegistry\":\"The address of the new claim Topics Registry emits `ClaimTopicsRegistrySet` event\"}},\"setIdentityRegistryStorage(address)\":{\"details\":\"Replace the actual identityRegistryStorage contract with a new one. This function can only be called by the wallet set as owner of the smart contract\",\"params\":{\"_identityRegistryStorage\":\"The address of the new Identity Registry Storage emits `IdentityStorageSet` event\"}},\"setTrustedIssuersRegistry(address)\":{\"details\":\"Replace the actual trustedIssuersRegistry contract with a new one. This function can only be called by the wallet set as owner of the smart contract\",\"params\":{\"_trustedIssuersRegistry\":\"The address of the new Trusted Issuers Registry emits `TrustedIssuersRegistrySet` event\"}},\"topicsRegistry()\":{\"details\":\"Returns the ClaimTopicsRegistry linked to the current IdentityRegistry.\"},\"updateCountry(address,uint16)\":{\"details\":\"Updates the country corresponding to a user address. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by a wallet set as agent of the smart contract\",\"params\":{\"_country\":\"The new country of the user emits `CountryUpdated` event\",\"_userAddress\":\"The address of the user\"}},\"updateIdentity(address,address)\":{\"details\":\"Updates an identity contract corresponding to a user address. Requires that the user address should be the owner of the identity contract. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by a wallet set as agent of the smart contract\",\"params\":{\"_identity\":\"The address of the user's new identity contract emits `IdentityUpdated` event\",\"_userAddress\":\"The address of the user\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ERC-3643/IERC3643IdentityRegistry.sol\":\"IERC3643IdentityRegistry\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@forge-std/=dependencies/forge-std-1.12.0/src/\",\":@onchain-id/solidity/=dependencies/onchain-id-2.2.2-beta3/\",\":@openzeppelin-contracts-5.6.1/=dependencies/@openzeppelin-contracts-5.6.1/\",\":@openzeppelin-contracts-upgradeable-5.6.1/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/\",\":@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/\",\":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.6.1/\",\":forge-std-1.12.0/=dependencies/forge-std-1.12.0/src/\",\":onchain-id-2.2.2-beta3/=dependencies/onchain-id-2.2.2-beta3/contracts/\"]},\"sources\":{\"contracts/ERC-3643/IERC3643ClaimTopicsRegistry.sol\":{\"keccak256\":\"0xa92a2b9791e297cfc19551dd4128b62668d04b430cefc563372632964abd5f1e\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://ac8b764ac97eb3ceaa3d82a31866b4212d9f22f6469b8ef093057042356e389e\",\"dweb:/ipfs/QmXjdm1BuvJiAn5DKVbgNBQoD5nEjvPP4d3HaAmCNCYeWY\"]},\"contracts/ERC-3643/IERC3643IdentityRegistry.sol\":{\"keccak256\":\"0x498e2b56aaa6921fbb1833f348e1067206cae3a71f4458c7332bce0e6b4eec99\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://44ad6ce8f2cb3db57f211a0cf494cb1caf8e2dbf70a28b56f458b53e208e54b6\",\"dweb:/ipfs/QmdXDQ1uchujcGBHbde79JasuruvX3BZgwysMfaAMpVXrc\"]},\"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol\":{\"keccak256\":\"0xd564e0e053f5ff3f2eccc7816882c1f6f638aa48045e39f4e1acd8b9c5675eda\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://35f6f5a2dd5c9e27a3663e5a0493e9d2a10c07b1fcbb87e8989e6b5cb98c2823\",\"dweb:/ipfs/QmVWg7znBs4hkTz6Qd1oXteAY55yvcAK1KL4u2g4bAsQRp\"]},\"contracts/ERC-3643/IERC3643TrustedIssuersRegistry.sol\":{\"keccak256\":\"0x778f7737e9f21d3dd32a67950209de857d402d61c812899ed3e694110d32e328\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://3038395e2572c9ac47c352ce73d8df369886629bf524ae8dbc9b4a0d612c2129\",\"dweb:/ipfs/Qmb58UurtCtiRBNwDnQyLJkqpw8WJG6F3siam7iHq3zvUN\"]},\"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IClaimIssuer.sol\":{\"keccak256\":\"0xfa00fab9cdae78d678041fde219784d085b13bf384f5ced1b9d672b66047d2b1\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://16728964bed464c22f1dec8374c2b889557369825d6f3e7865024014395dbd15\",\"dweb:/ipfs/QmWm4tYqDMPMLBnkJNTv3K6whQugXky99Voyn3Xo9fDb5S\"]},\"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IERC734.sol\":{\"keccak256\":\"0x039a0ff5b1531a5a0f86144416358eb20c5b5d2953b40e86e9ac2f68abff9138\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://2697b84976059ea30fe4478b2ec0e2e56a6d9994ca7ef032c3a88fe669687293\",\"dweb:/ipfs/QmceXGqfM81EZaVU9SoT6oVMKZ4q21QQj3pcs4LbgaRrV9\"]},\"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IERC735.sol\":{\"keccak256\":\"0x8331ad94717c3840dfec7d8d607bbdc520fc9d7a6bde1aca25f563d8b4a4b010\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://52bcb40e7461232cf9e17d7180704b8ffd49dac29c37a195e416ad3fe53a9793\",\"dweb:/ipfs/QmURLhrNs72BJB4wxU4s7vqgUEaM8DoHNeWVjnQwJZDwEL\"]},\"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IIdentity.sol\":{\"keccak256\":\"0xa3d88d2e1e62d62a8b115deaad1d9c22e106220708b448d7a5d3a7755eb31748\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://db98a894f96cf2d815fb8c9760269c761f6ad113a76b6ae6c856a16948590895\",\"dweb:/ipfs/QmRsSJrvmrjsDtXNGrrKTzES2Exa7h7yzyBHmKSwCArLrj\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address[]","name":"_userAddresses","type":"address[]"},{"internalType":"contract IIdentity[]","name":"_identities","type":"address[]"},{"internalType":"uint16[]","name":"_countries","type":"uint16[]"}],"stateMutability":"nonpayable","type":"function","name":"batchRegisterIdentity"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"contains","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"deleteIdentity"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"identity","outputs":[{"internalType":"contract IIdentity","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"identityStorage","outputs":[{"internalType":"contract IERC3643IdentityRegistryStorage","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"investorCountry","outputs":[{"internalType":"uint16","name":"","type":"uint16"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"isVerified","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"issuersRegistry","outputs":[{"internalType":"contract IERC3643TrustedIssuersRegistry","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"contract IIdentity","name":"_identity","type":"address"},{"internalType":"uint16","name":"_country","type":"uint16"}],"stateMutability":"nonpayable","type":"function","name":"registerIdentity"},{"inputs":[{"internalType":"address","name":"_claimTopicsRegistry","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setClaimTopicsRegistry"},{"inputs":[{"internalType":"address","name":"_identityRegistryStorage","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setIdentityRegistryStorage"},{"inputs":[{"internalType":"address","name":"_trustedIssuersRegistry","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setTrustedIssuersRegistry"},{"inputs":[],"stateMutability":"view","type":"function","name":"topicsRegistry","outputs":[{"internalType":"contract IERC3643ClaimTopicsRegistry","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"uint16","name":"_country","type":"uint16"}],"stateMutability":"nonpayable","type":"function","name":"updateCountry"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"contract IIdentity","name":"_identity","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"updateIdentity"}],"devdoc":{"kind":"dev","methods":{"batchRegisterIdentity(address[],address[],uint16[])":{"details":"function allowing to register identities in batch This function can only be called by a wallet set as agent of the smart contract Requires that none of the users has an identity contract already registered. IMPORTANT : THIS TRANSACTION COULD EXCEED GAS LIMIT IF `_userAddresses.length` IS TOO HIGH, USE WITH CARE OR YOU COULD LOSE TX FEES WITH AN \"OUT OF GAS\" TRANSACTION","params":{"_countries":"The countries of the corresponding investors emits _userAddresses.length `IdentityRegistered` events","_identities":"The addresses of the corresponding identity contracts","_userAddresses":"The addresses of the users"}},"contains(address)":{"details":"This functions checks whether a wallet has its Identity registered or not in the Identity Registry.","params":{"_userAddress":"The address of the user to be checked."},"returns":{"_0":"'True' if the address is contained in the Identity Registry, 'false' if not."}},"deleteIdentity(address)":{"details":"Removes an user from the identity registry. Requires that the user have an identity contract already deployed that will be deleted. This function can only be called by a wallet set as agent of the smart contract","params":{"_userAddress":"The address of the user to be removed emits `IdentityRemoved` event"}},"identity(address)":{"details":"Returns the onchainID of an investor.","params":{"_userAddress":"The wallet of the investor"}},"identityStorage()":{"details":"Returns the IdentityRegistryStorage linked to the current IdentityRegistry."},"investorCountry(address)":{"details":"Returns the country code of an investor.","params":{"_userAddress":"The wallet of the investor"}},"isVerified(address)":{"details":"This functions checks whether an identity contract corresponding to the provided user address has the required claims or not based on the data fetched from trusted issuers registry and from the claim topics registry","params":{"_userAddress":"The address of the user to be verified."},"returns":{"_0":"'True' if the address is verified, 'false' if not."}},"issuersRegistry()":{"details":"Returns the TrustedIssuersRegistry linked to the current IdentityRegistry."},"registerIdentity(address,address,uint16)":{"details":"Register an identity contract corresponding to a user address. Requires that the user doesn't have an identity contract already registered. This function can only be called by a wallet set as agent of the smart contract","params":{"_country":"The country of the investor emits `IdentityRegistered` event","_identity":"The address of the user's identity contract","_userAddress":"The address of the user"}},"setClaimTopicsRegistry(address)":{"details":"Replace the actual claimTopicsRegistry contract with a new one. This function can only be called by the wallet set as owner of the smart contract","params":{"_claimTopicsRegistry":"The address of the new claim Topics Registry emits `ClaimTopicsRegistrySet` event"}},"setIdentityRegistryStorage(address)":{"details":"Replace the actual identityRegistryStorage contract with a new one. This function can only be called by the wallet set as owner of the smart contract","params":{"_identityRegistryStorage":"The address of the new Identity Registry Storage emits `IdentityStorageSet` event"}},"setTrustedIssuersRegistry(address)":{"details":"Replace the actual trustedIssuersRegistry contract with a new one. This function can only be called by the wallet set as owner of the smart contract","params":{"_trustedIssuersRegistry":"The address of the new Trusted Issuers Registry emits `TrustedIssuersRegistrySet` event"}},"topicsRegistry()":{"details":"Returns the ClaimTopicsRegistry linked to the current IdentityRegistry."},"updateCountry(address,uint16)":{"details":"Updates the country corresponding to a user address. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by a wallet set as agent of the smart contract","params":{"_country":"The new country of the user emits `CountryUpdated` event","_userAddress":"The address of the user"}},"updateIdentity(address,address)":{"details":"Updates an identity contract corresponding to a user address. Requires that the user address should be the owner of the identity contract. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by a wallet set as agent of the smart contract","params":{"_identity":"The address of the user's new identity contract emits `IdentityUpdated` event","_userAddress":"The address of the user"}}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@forge-std/=dependencies/forge-std-1.12.0/src/","@onchain-id/solidity/=dependencies/onchain-id-2.2.2-beta3/","@openzeppelin-contracts-5.6.1/=dependencies/@openzeppelin-contracts-5.6.1/","@openzeppelin-contracts-upgradeable-5.6.1/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/","@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.6.1/","forge-std-1.12.0/=dependencies/forge-std-1.12.0/src/","onchain-id-2.2.2-beta3/=dependencies/onchain-id-2.2.2-beta3/contracts/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"contracts/ERC-3643/IERC3643IdentityRegistry.sol":"IERC3643IdentityRegistry"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/ERC-3643/IERC3643ClaimTopicsRegistry.sol":{"keccak256":"0xa92a2b9791e297cfc19551dd4128b62668d04b430cefc563372632964abd5f1e","urls":["bzz-raw://ac8b764ac97eb3ceaa3d82a31866b4212d9f22f6469b8ef093057042356e389e","dweb:/ipfs/QmXjdm1BuvJiAn5DKVbgNBQoD5nEjvPP4d3HaAmCNCYeWY"],"license":"CC0-1.0"},"contracts/ERC-3643/IERC3643IdentityRegistry.sol":{"keccak256":"0x498e2b56aaa6921fbb1833f348e1067206cae3a71f4458c7332bce0e6b4eec99","urls":["bzz-raw://44ad6ce8f2cb3db57f211a0cf494cb1caf8e2dbf70a28b56f458b53e208e54b6","dweb:/ipfs/QmdXDQ1uchujcGBHbde79JasuruvX3BZgwysMfaAMpVXrc"],"license":"CC0-1.0"},"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol":{"keccak256":"0xd564e0e053f5ff3f2eccc7816882c1f6f638aa48045e39f4e1acd8b9c5675eda","urls":["bzz-raw://35f6f5a2dd5c9e27a3663e5a0493e9d2a10c07b1fcbb87e8989e6b5cb98c2823","dweb:/ipfs/QmVWg7znBs4hkTz6Qd1oXteAY55yvcAK1KL4u2g4bAsQRp"],"license":"CC0-1.0"},"contracts/ERC-3643/IERC3643TrustedIssuersRegistry.sol":{"keccak256":"0x778f7737e9f21d3dd32a67950209de857d402d61c812899ed3e694110d32e328","urls":["bzz-raw://3038395e2572c9ac47c352ce73d8df369886629bf524ae8dbc9b4a0d612c2129","dweb:/ipfs/Qmb58UurtCtiRBNwDnQyLJkqpw8WJG6F3siam7iHq3zvUN"],"license":"CC0-1.0"},"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IClaimIssuer.sol":{"keccak256":"0xfa00fab9cdae78d678041fde219784d085b13bf384f5ced1b9d672b66047d2b1","urls":["bzz-raw://16728964bed464c22f1dec8374c2b889557369825d6f3e7865024014395dbd15","dweb:/ipfs/QmWm4tYqDMPMLBnkJNTv3K6whQugXky99Voyn3Xo9fDb5S"],"license":"GPL-3.0"},"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IERC734.sol":{"keccak256":"0x039a0ff5b1531a5a0f86144416358eb20c5b5d2953b40e86e9ac2f68abff9138","urls":["bzz-raw://2697b84976059ea30fe4478b2ec0e2e56a6d9994ca7ef032c3a88fe669687293","dweb:/ipfs/QmceXGqfM81EZaVU9SoT6oVMKZ4q21QQj3pcs4LbgaRrV9"],"license":"GPL-3.0"},"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IERC735.sol":{"keccak256":"0x8331ad94717c3840dfec7d8d607bbdc520fc9d7a6bde1aca25f563d8b4a4b010","urls":["bzz-raw://52bcb40e7461232cf9e17d7180704b8ffd49dac29c37a195e416ad3fe53a9793","dweb:/ipfs/QmURLhrNs72BJB4wxU4s7vqgUEaM8DoHNeWVjnQwJZDwEL"],"license":"GPL-3.0"},"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IIdentity.sol":{"keccak256":"0xa3d88d2e1e62d62a8b115deaad1d9c22e106220708b448d7a5d3a7755eb31748","urls":["bzz-raw://db98a894f96cf2d815fb8c9760269c761f6ad113a76b6ae6c856a16948590895","dweb:/ipfs/QmRsSJrvmrjsDtXNGrrKTzES2Exa7h7yzyBHmKSwCArLrj"],"license":"GPL-3.0"}},"version":1},"id":4}
|
|
1
|
+
{"abi":[{"type":"function","name":"batchRegisterIdentity","inputs":[{"name":"_userAddresses","type":"address[]","internalType":"address[]"},{"name":"_identities","type":"address[]","internalType":"contract IIdentity[]"},{"name":"_countries","type":"uint16[]","internalType":"uint16[]"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"contains","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"deleteIdentity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"identity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"contract IIdentity"}],"stateMutability":"view"},{"type":"function","name":"identityStorage","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC3643IdentityRegistryStorage"}],"stateMutability":"view"},{"type":"function","name":"investorCountry","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint16","internalType":"uint16"}],"stateMutability":"view"},{"type":"function","name":"isVerified","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"issuersRegistry","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC3643TrustedIssuersRegistry"}],"stateMutability":"view"},{"type":"function","name":"registerIdentity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_identity","type":"address","internalType":"contract IIdentity"},{"name":"_country","type":"uint16","internalType":"uint16"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setClaimTopicsRegistry","inputs":[{"name":"_claimTopicsRegistry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setIdentityRegistryStorage","inputs":[{"name":"_identityRegistryStorage","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setTrustedIssuersRegistry","inputs":[{"name":"_trustedIssuersRegistry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"topicsRegistry","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC3643ClaimTopicsRegistry"}],"stateMutability":"view"},{"type":"function","name":"updateCountry","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_country","type":"uint16","internalType":"uint16"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"updateIdentity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_identity","type":"address","internalType":"contract IIdentity"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ClaimTopicsRegistrySet","inputs":[{"name":"_claimTopicsRegistry","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"CountryUpdated","inputs":[{"name":"_investorAddress","type":"address","indexed":true,"internalType":"address"},{"name":"_country","type":"uint16","indexed":true,"internalType":"uint16"}],"anonymous":false},{"type":"event","name":"IdentityRegistered","inputs":[{"name":"_investorAddress","type":"address","indexed":true,"internalType":"address"},{"name":"_identity","type":"address","indexed":true,"internalType":"contract IIdentity"}],"anonymous":false},{"type":"event","name":"IdentityRemoved","inputs":[{"name":"_investorAddress","type":"address","indexed":true,"internalType":"address"},{"name":"_identity","type":"address","indexed":true,"internalType":"contract IIdentity"}],"anonymous":false},{"type":"event","name":"IdentityStorageSet","inputs":[{"name":"_identityStorage","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"IdentityUpdated","inputs":[{"name":"_oldIdentity","type":"address","indexed":true,"internalType":"contract IIdentity"},{"name":"_newIdentity","type":"address","indexed":true,"internalType":"contract IIdentity"}],"anonymous":false},{"type":"event","name":"TrustedIssuersRegistrySet","inputs":[{"name":"_trustedIssuersRegistry","type":"address","indexed":true,"internalType":"address"}],"anonymous":false}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"batchRegisterIdentity(address[],address[],uint16[])":"653dc9f1","contains(address)":"5dbe47e8","deleteIdentity(address)":"a8d29d1d","identity(address)":"f0eb5e54","identityStorage()":"f11abfd8","investorCountry(address)":"7e42683b","isVerified(address)":"b9209e33","issuersRegistry()":"b4f3fcb7","registerIdentity(address,address,uint16)":"454a03e0","setClaimTopicsRegistry(address)":"670af6a9","setIdentityRegistryStorage(address)":"26d941ae","setTrustedIssuersRegistry(address)":"e744d789","topicsRegistry()":"3b3e12f4","updateCountry(address,uint16)":"3b239a7f","updateIdentity(address,address)":"8e098ca1"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_claimTopicsRegistry\",\"type\":\"address\"}],\"name\":\"ClaimTopicsRegistrySet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_investorAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"_country\",\"type\":\"uint16\"}],\"name\":\"CountryUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_investorAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"}],\"name\":\"IdentityRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_investorAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"}],\"name\":\"IdentityRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_identityStorage\",\"type\":\"address\"}],\"name\":\"IdentityStorageSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contract IIdentity\",\"name\":\"_oldIdentity\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IIdentity\",\"name\":\"_newIdentity\",\"type\":\"address\"}],\"name\":\"IdentityUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_trustedIssuersRegistry\",\"type\":\"address\"}],\"name\":\"TrustedIssuersRegistrySet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_userAddresses\",\"type\":\"address[]\"},{\"internalType\":\"contract IIdentity[]\",\"name\":\"_identities\",\"type\":\"address[]\"},{\"internalType\":\"uint16[]\",\"name\":\"_countries\",\"type\":\"uint16[]\"}],\"name\":\"batchRegisterIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"contains\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"deleteIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"identity\",\"outputs\":[{\"internalType\":\"contract IIdentity\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"identityStorage\",\"outputs\":[{\"internalType\":\"contract IERC3643IdentityRegistryStorage\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"investorCountry\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"isVerified\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"issuersRegistry\",\"outputs\":[{\"internalType\":\"contract IERC3643TrustedIssuersRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_country\",\"type\":\"uint16\"}],\"name\":\"registerIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_claimTopicsRegistry\",\"type\":\"address\"}],\"name\":\"setClaimTopicsRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_identityRegistryStorage\",\"type\":\"address\"}],\"name\":\"setIdentityRegistryStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustedIssuersRegistry\",\"type\":\"address\"}],\"name\":\"setTrustedIssuersRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"topicsRegistry\",\"outputs\":[{\"internalType\":\"contract IERC3643ClaimTopicsRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_country\",\"type\":\"uint16\"}],\"name\":\"updateCountry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"}],\"name\":\"updateIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"ClaimTopicsRegistrySet(address)\":{\"details\":\"Emitted when the ClaimTopicsRegistry has been set for the Identity Registry.\",\"params\":{\"_claimTopicsRegistry\":\"The address of the Claim Topics Registry.\"}},\"CountryUpdated(address,uint16)\":{\"details\":\"Emitted when an investor's country is updated in the Identity Registry.\",\"params\":{\"_country\":\"The investor's new country code (ISO-3166).\",\"_investorAddress\":\"The address of the investor's wallet.\"}},\"IdentityRegistered(address,address)\":{\"details\":\"Emitted when an identity is registered into the Identity Registry.\",\"params\":{\"_identity\":\"The address of the investor's ONCHAINID.\",\"_investorAddress\":\"The address of the investor's wallet.\"}},\"IdentityRemoved(address,address)\":{\"details\":\"Emitted when an identity is removed from the Identity Registry.\",\"params\":{\"_identity\":\"The address of the investor's ONCHAINID.\",\"_investorAddress\":\"The address of the investor's wallet.\"}},\"IdentityStorageSet(address)\":{\"details\":\"Emitted when the IdentityRegistryStorage has been set for the Identity Registry.\",\"params\":{\"_identityStorage\":\"The address of the Identity Registry Storage.\"}},\"IdentityUpdated(address,address)\":{\"details\":\"Emitted when an identity contract is replaced in the Identity Registry.\",\"params\":{\"_newIdentity\":\"The new ONCHAINID address.\",\"_oldIdentity\":\"The old ONCHAINID address.\"}},\"TrustedIssuersRegistrySet(address)\":{\"details\":\"Emitted when the TrustedIssuersRegistry has been set for the Identity Registry.\",\"params\":{\"_trustedIssuersRegistry\":\"The address of the Trusted Issuers Registry.\"}}},\"kind\":\"dev\",\"methods\":{\"batchRegisterIdentity(address[],address[],uint16[])\":{\"details\":\"function allowing to register identities in batch This function can only be called by a wallet set as agent of the smart contract Requires that none of the users has an identity contract already registered. IMPORTANT : THIS TRANSACTION COULD EXCEED GAS LIMIT IF `_userAddresses.length` IS TOO HIGH, USE WITH CARE OR YOU COULD LOSE TX FEES WITH AN \\\"OUT OF GAS\\\" TRANSACTION\",\"params\":{\"_countries\":\"The countries of the corresponding investors emits _userAddresses.length `IdentityRegistered` events\",\"_identities\":\"The addresses of the corresponding identity contracts\",\"_userAddresses\":\"The addresses of the users\"}},\"contains(address)\":{\"details\":\"This functions checks whether a wallet has its Identity registered or not in the Identity Registry.\",\"params\":{\"_userAddress\":\"The address of the user to be checked.\"},\"returns\":{\"_0\":\"'True' if the address is contained in the Identity Registry, 'false' if not.\"}},\"deleteIdentity(address)\":{\"details\":\"Removes an user from the identity registry. Requires that the user have an identity contract already deployed that will be deleted. This function can only be called by a wallet set as agent of the smart contract\",\"params\":{\"_userAddress\":\"The address of the user to be removed emits `IdentityRemoved` event\"}},\"identity(address)\":{\"details\":\"Returns the onchainID of an investor.\",\"params\":{\"_userAddress\":\"The wallet of the investor\"}},\"identityStorage()\":{\"details\":\"Returns the IdentityRegistryStorage linked to the current IdentityRegistry.\"},\"investorCountry(address)\":{\"details\":\"Returns the country code of an investor.\",\"params\":{\"_userAddress\":\"The wallet of the investor\"}},\"isVerified(address)\":{\"details\":\"This functions checks whether an identity contract corresponding to the provided user address has the required claims or not based on the data fetched from trusted issuers registry and from the claim topics registry\",\"params\":{\"_userAddress\":\"The address of the user to be verified.\"},\"returns\":{\"_0\":\"'True' if the address is verified, 'false' if not.\"}},\"issuersRegistry()\":{\"details\":\"Returns the TrustedIssuersRegistry linked to the current IdentityRegistry.\"},\"registerIdentity(address,address,uint16)\":{\"details\":\"Register an identity contract corresponding to a user address. Requires that the user doesn't have an identity contract already registered. This function can only be called by a wallet set as agent of the smart contract\",\"params\":{\"_country\":\"The country of the investor emits `IdentityRegistered` event\",\"_identity\":\"The address of the user's identity contract\",\"_userAddress\":\"The address of the user\"}},\"setClaimTopicsRegistry(address)\":{\"details\":\"Replace the actual claimTopicsRegistry contract with a new one. This function can only be called by the wallet set as owner of the smart contract\",\"params\":{\"_claimTopicsRegistry\":\"The address of the new claim Topics Registry emits `ClaimTopicsRegistrySet` event\"}},\"setIdentityRegistryStorage(address)\":{\"details\":\"Replace the actual identityRegistryStorage contract with a new one. This function can only be called by the wallet set as owner of the smart contract\",\"params\":{\"_identityRegistryStorage\":\"The address of the new Identity Registry Storage emits `IdentityStorageSet` event\"}},\"setTrustedIssuersRegistry(address)\":{\"details\":\"Replace the actual trustedIssuersRegistry contract with a new one. This function can only be called by the wallet set as owner of the smart contract\",\"params\":{\"_trustedIssuersRegistry\":\"The address of the new Trusted Issuers Registry emits `TrustedIssuersRegistrySet` event\"}},\"topicsRegistry()\":{\"details\":\"Returns the ClaimTopicsRegistry linked to the current IdentityRegistry.\"},\"updateCountry(address,uint16)\":{\"details\":\"Updates the country corresponding to a user address. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by a wallet set as agent of the smart contract\",\"params\":{\"_country\":\"The new country of the user emits `CountryUpdated` event\",\"_userAddress\":\"The address of the user\"}},\"updateIdentity(address,address)\":{\"details\":\"Updates an identity contract corresponding to a user address. Requires that the user address should be the owner of the identity contract. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by a wallet set as agent of the smart contract\",\"params\":{\"_identity\":\"The address of the user's new identity contract emits `IdentityUpdated` event\",\"_userAddress\":\"The address of the user\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ERC-3643/IERC3643IdentityRegistry.sol\":\"IERC3643IdentityRegistry\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@forge-std/=dependencies/forge-std-1.16.2/src/\",\":@onchain-id/solidity/=dependencies/onchain-id-develop/\",\":@openzeppelin-contracts-5.7.0/=dependencies/@openzeppelin-contracts-5.7.0/\",\":@openzeppelin-contracts-upgradeable-5.7.0/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/\",\":@openzeppelin/accounts/=dependencies/onchain-id-develop/dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/\",\":@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/\",\":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.7.0/\",\":forge-std-1.16.2/=dependencies/forge-std-1.16.2/src/\",\":forge-std/=dependencies/onchain-id-develop/dependencies/forge-std-v1.14.0/src/\",\":onchain-id-develop/=dependencies/onchain-id-develop/\"]},\"sources\":{\"contracts/ERC-3643/IERC3643ClaimTopicsRegistry.sol\":{\"keccak256\":\"0x817bd116fa823a1e9a29190073605ac78d59e264dd9c2dde5b44d6160560dd65\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://26c01a407f6540f61ea84c9fcc2f179afbe3cca1eadd4f43f1956abafa4cf94d\",\"dweb:/ipfs/QmdoUbos3XwvGaa9NyujZ8XTuotSoRaCkGqTwmeSiTcfHD\"]},\"contracts/ERC-3643/IERC3643IdentityRegistry.sol\":{\"keccak256\":\"0x1978f75528e2b60090e7fd8b95500ba93362f34de3dd828b234fa783be45ca72\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://c86ce6964ec4d5a59b88f02b88f64c89d22d5a64e4ff7f5d65b67586a6f199b8\",\"dweb:/ipfs/QmcJpBtDU4BxG2wuJSNScCxueGw3uGspsaAfYZVzNGSpoh\"]},\"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol\":{\"keccak256\":\"0xf4e3d94a124d016a94e6f33b3a56b39ce6a9053416739f687676577073d2590f\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://ec0ac1447a15f5dfc63e019cf07be4a607c551eb7ac8536e986af5b339ca4293\",\"dweb:/ipfs/QmTRqZgXgXPPzrgcS371UQmT8kcR9obf6GQSDResd6NZRA\"]},\"contracts/ERC-3643/IERC3643TrustedIssuersRegistry.sol\":{\"keccak256\":\"0x402227e7414460948ed67b816e5b30e1fdf2e9c2639b3e2cfa403dadbe7d1db1\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://860034b771e0df5a995ed2fe5a61773ae7a1855e340ca85f17f7147ae6f75ce9\",\"dweb:/ipfs/QmUtjtYV59RhEh4HYdmgdoacvHFw4kme3e6Xd3jMPC57N1\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Arrays.sol\":{\"keccak256\":\"0x772f0c778626a7bdcbcbabca74b825ae9b9dc89d2a47a98b402b1187fbaa63a4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://eba1d46e58e8880b45c6d51245dc94585b81d6d7290ca77ef50037a6193ed301\",\"dweb:/ipfs/Qme3CWun5qQACjGEerT2MCvhs6brKGFfJirGnzV1ypKTXA\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Comparators.sol\":{\"keccak256\":\"0x302eecd8cf323b4690e3494a7d960b3cbce077032ab8ef655b323cdd136cec58\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://49ba706f1bc476d68fe6c1fad75517acea4e9e275be0989b548e292eb3a3eacd\",\"dweb:/ipfs/QmeBpvcdGWzWMKTQESUCEhHgnEQYYATVwPxLMxa6vMT7jC\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Panic.sol\":{\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a\",\"dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/SlotDerivation.sol\":{\"keccak256\":\"0x94045fd4f268edf2b2d01ef119268548c320366d6f5294ad30c1b8f9d4f5225f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://edfda81f426f8948b3834115c21e83c48180e6db0d2a8cd2debb2185ed349337\",\"dweb:/ipfs/QmdYZneFyDAux1BuWQxLAdqtABrGS2k9WYCa7C9dvpKkWv\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/math/Math.sol\":{\"keccak256\":\"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5\",\"dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/math/SafeCast.sol\":{\"keccak256\":\"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9\",\"dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/structs/EnumerableSet.sol\":{\"keccak256\":\"0xd553ff8b7d55679f0711f1598600ac292dbd8cfdf4b2419b9cabe4c931172895\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7905ccb27e2308fd0d90dc1212161003ab6964e1c176593db1ccedef705bcc09\",\"dweb:/ipfs/QmW37vm2PcrWLKnN74sKkvAzqSwntCEfCp4EoSEvbBHWkj\"]},\"dependencies/onchain-id-develop/contracts/interface/IERC734.sol\":{\"keccak256\":\"0x5b63b065db77b9c63ef7cc4c1d2b623892aa2b32feb6a78d9d22ed362bb648e4\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://f6cf5fed483831e41840fa24bede977d3bc0868b67883b5b45b14f66db1e035b\",\"dweb:/ipfs/QmZazhde9xnU42t31xugynSPDWQbrjoGLWq2NNNNeBDukm\"]},\"dependencies/onchain-id-develop/contracts/interface/IERC735.sol\":{\"keccak256\":\"0x82391e9ecc8fc076e3671c3e2f41f6ca9f11e71b5c3faee023cb5a062c84b8a0\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://19cc8e243b11cbab035972cbcda6080388a7b05d4d4b50597e88a12fadf498b8\",\"dweb:/ipfs/QmdeBuh3JFWDnfMGekxAtQXE6zW4Awkerp85qhpvBQmR2F\"]},\"dependencies/onchain-id-develop/contracts/interface/IIdentity.sol\":{\"keccak256\":\"0xcae5ac4efee4856d102c113e025fad00a453e14e2ede5c87ae00f4ddfd150566\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://221d5f426a856f783ac23058f2b86bd27d4719575c733ade5f2056871c3d5465\",\"dweb:/ipfs/QmYqxYvtiUpsKj9KgpJhSm5jPohq3KEGxMCSGsr1MnWUUY\"]},\"dependencies/onchain-id-develop/contracts/storage/Structs.sol\":{\"keccak256\":\"0xeb175771b30b07bfaa713dc9f7b50d9ef6e222a9aa887f530bd9323cc51a21df\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://225fb773f556d5768b4998fed00a344b3f3549705bdf9c0ac283ef1d5d35be89\",\"dweb:/ipfs/QmbU1LKiKeVKi2cdYUR7txbh4RTn9YChX3e1QivPdfEEkK\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_claimTopicsRegistry","type":"address","indexed":true}],"type":"event","name":"ClaimTopicsRegistrySet","anonymous":false},{"inputs":[{"internalType":"address","name":"_investorAddress","type":"address","indexed":true},{"internalType":"uint16","name":"_country","type":"uint16","indexed":true}],"type":"event","name":"CountryUpdated","anonymous":false},{"inputs":[{"internalType":"address","name":"_investorAddress","type":"address","indexed":true},{"internalType":"contract IIdentity","name":"_identity","type":"address","indexed":true}],"type":"event","name":"IdentityRegistered","anonymous":false},{"inputs":[{"internalType":"address","name":"_investorAddress","type":"address","indexed":true},{"internalType":"contract IIdentity","name":"_identity","type":"address","indexed":true}],"type":"event","name":"IdentityRemoved","anonymous":false},{"inputs":[{"internalType":"address","name":"_identityStorage","type":"address","indexed":true}],"type":"event","name":"IdentityStorageSet","anonymous":false},{"inputs":[{"internalType":"contract IIdentity","name":"_oldIdentity","type":"address","indexed":true},{"internalType":"contract IIdentity","name":"_newIdentity","type":"address","indexed":true}],"type":"event","name":"IdentityUpdated","anonymous":false},{"inputs":[{"internalType":"address","name":"_trustedIssuersRegistry","type":"address","indexed":true}],"type":"event","name":"TrustedIssuersRegistrySet","anonymous":false},{"inputs":[{"internalType":"address[]","name":"_userAddresses","type":"address[]"},{"internalType":"contract IIdentity[]","name":"_identities","type":"address[]"},{"internalType":"uint16[]","name":"_countries","type":"uint16[]"}],"stateMutability":"nonpayable","type":"function","name":"batchRegisterIdentity"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"contains","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"deleteIdentity"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"identity","outputs":[{"internalType":"contract IIdentity","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"identityStorage","outputs":[{"internalType":"contract IERC3643IdentityRegistryStorage","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"investorCountry","outputs":[{"internalType":"uint16","name":"","type":"uint16"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"isVerified","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"issuersRegistry","outputs":[{"internalType":"contract IERC3643TrustedIssuersRegistry","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"contract IIdentity","name":"_identity","type":"address"},{"internalType":"uint16","name":"_country","type":"uint16"}],"stateMutability":"nonpayable","type":"function","name":"registerIdentity"},{"inputs":[{"internalType":"address","name":"_claimTopicsRegistry","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setClaimTopicsRegistry"},{"inputs":[{"internalType":"address","name":"_identityRegistryStorage","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setIdentityRegistryStorage"},{"inputs":[{"internalType":"address","name":"_trustedIssuersRegistry","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setTrustedIssuersRegistry"},{"inputs":[],"stateMutability":"view","type":"function","name":"topicsRegistry","outputs":[{"internalType":"contract IERC3643ClaimTopicsRegistry","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"uint16","name":"_country","type":"uint16"}],"stateMutability":"nonpayable","type":"function","name":"updateCountry"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"contract IIdentity","name":"_identity","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"updateIdentity"}],"devdoc":{"kind":"dev","methods":{"batchRegisterIdentity(address[],address[],uint16[])":{"details":"function allowing to register identities in batch This function can only be called by a wallet set as agent of the smart contract Requires that none of the users has an identity contract already registered. IMPORTANT : THIS TRANSACTION COULD EXCEED GAS LIMIT IF `_userAddresses.length` IS TOO HIGH, USE WITH CARE OR YOU COULD LOSE TX FEES WITH AN \"OUT OF GAS\" TRANSACTION","params":{"_countries":"The countries of the corresponding investors emits _userAddresses.length `IdentityRegistered` events","_identities":"The addresses of the corresponding identity contracts","_userAddresses":"The addresses of the users"}},"contains(address)":{"details":"This functions checks whether a wallet has its Identity registered or not in the Identity Registry.","params":{"_userAddress":"The address of the user to be checked."},"returns":{"_0":"'True' if the address is contained in the Identity Registry, 'false' if not."}},"deleteIdentity(address)":{"details":"Removes an user from the identity registry. Requires that the user have an identity contract already deployed that will be deleted. This function can only be called by a wallet set as agent of the smart contract","params":{"_userAddress":"The address of the user to be removed emits `IdentityRemoved` event"}},"identity(address)":{"details":"Returns the onchainID of an investor.","params":{"_userAddress":"The wallet of the investor"}},"identityStorage()":{"details":"Returns the IdentityRegistryStorage linked to the current IdentityRegistry."},"investorCountry(address)":{"details":"Returns the country code of an investor.","params":{"_userAddress":"The wallet of the investor"}},"isVerified(address)":{"details":"This functions checks whether an identity contract corresponding to the provided user address has the required claims or not based on the data fetched from trusted issuers registry and from the claim topics registry","params":{"_userAddress":"The address of the user to be verified."},"returns":{"_0":"'True' if the address is verified, 'false' if not."}},"issuersRegistry()":{"details":"Returns the TrustedIssuersRegistry linked to the current IdentityRegistry."},"registerIdentity(address,address,uint16)":{"details":"Register an identity contract corresponding to a user address. Requires that the user doesn't have an identity contract already registered. This function can only be called by a wallet set as agent of the smart contract","params":{"_country":"The country of the investor emits `IdentityRegistered` event","_identity":"The address of the user's identity contract","_userAddress":"The address of the user"}},"setClaimTopicsRegistry(address)":{"details":"Replace the actual claimTopicsRegistry contract with a new one. This function can only be called by the wallet set as owner of the smart contract","params":{"_claimTopicsRegistry":"The address of the new claim Topics Registry emits `ClaimTopicsRegistrySet` event"}},"setIdentityRegistryStorage(address)":{"details":"Replace the actual identityRegistryStorage contract with a new one. This function can only be called by the wallet set as owner of the smart contract","params":{"_identityRegistryStorage":"The address of the new Identity Registry Storage emits `IdentityStorageSet` event"}},"setTrustedIssuersRegistry(address)":{"details":"Replace the actual trustedIssuersRegistry contract with a new one. This function can only be called by the wallet set as owner of the smart contract","params":{"_trustedIssuersRegistry":"The address of the new Trusted Issuers Registry emits `TrustedIssuersRegistrySet` event"}},"topicsRegistry()":{"details":"Returns the ClaimTopicsRegistry linked to the current IdentityRegistry."},"updateCountry(address,uint16)":{"details":"Updates the country corresponding to a user address. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by a wallet set as agent of the smart contract","params":{"_country":"The new country of the user emits `CountryUpdated` event","_userAddress":"The address of the user"}},"updateIdentity(address,address)":{"details":"Updates an identity contract corresponding to a user address. Requires that the user address should be the owner of the identity contract. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by a wallet set as agent of the smart contract","params":{"_identity":"The address of the user's new identity contract emits `IdentityUpdated` event","_userAddress":"The address of the user"}}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@forge-std/=dependencies/forge-std-1.16.2/src/","@onchain-id/solidity/=dependencies/onchain-id-develop/","@openzeppelin-contracts-5.7.0/=dependencies/@openzeppelin-contracts-5.7.0/","@openzeppelin-contracts-upgradeable-5.7.0/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/","@openzeppelin/accounts/=dependencies/onchain-id-develop/dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/","@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.7.0/","forge-std-1.16.2/=dependencies/forge-std-1.16.2/src/","forge-std/=dependencies/onchain-id-develop/dependencies/forge-std-v1.14.0/src/","onchain-id-develop/=dependencies/onchain-id-develop/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/ERC-3643/IERC3643IdentityRegistry.sol":"IERC3643IdentityRegistry"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/ERC-3643/IERC3643ClaimTopicsRegistry.sol":{"keccak256":"0x817bd116fa823a1e9a29190073605ac78d59e264dd9c2dde5b44d6160560dd65","urls":["bzz-raw://26c01a407f6540f61ea84c9fcc2f179afbe3cca1eadd4f43f1956abafa4cf94d","dweb:/ipfs/QmdoUbos3XwvGaa9NyujZ8XTuotSoRaCkGqTwmeSiTcfHD"],"license":"CC0-1.0"},"contracts/ERC-3643/IERC3643IdentityRegistry.sol":{"keccak256":"0x1978f75528e2b60090e7fd8b95500ba93362f34de3dd828b234fa783be45ca72","urls":["bzz-raw://c86ce6964ec4d5a59b88f02b88f64c89d22d5a64e4ff7f5d65b67586a6f199b8","dweb:/ipfs/QmcJpBtDU4BxG2wuJSNScCxueGw3uGspsaAfYZVzNGSpoh"],"license":"CC0-1.0"},"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol":{"keccak256":"0xf4e3d94a124d016a94e6f33b3a56b39ce6a9053416739f687676577073d2590f","urls":["bzz-raw://ec0ac1447a15f5dfc63e019cf07be4a607c551eb7ac8536e986af5b339ca4293","dweb:/ipfs/QmTRqZgXgXPPzrgcS371UQmT8kcR9obf6GQSDResd6NZRA"],"license":"CC0-1.0"},"contracts/ERC-3643/IERC3643TrustedIssuersRegistry.sol":{"keccak256":"0x402227e7414460948ed67b816e5b30e1fdf2e9c2639b3e2cfa403dadbe7d1db1","urls":["bzz-raw://860034b771e0df5a995ed2fe5a61773ae7a1855e340ca85f17f7147ae6f75ce9","dweb:/ipfs/QmUtjtYV59RhEh4HYdmgdoacvHFw4kme3e6Xd3jMPC57N1"],"license":"CC0-1.0"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Arrays.sol":{"keccak256":"0x772f0c778626a7bdcbcbabca74b825ae9b9dc89d2a47a98b402b1187fbaa63a4","urls":["bzz-raw://eba1d46e58e8880b45c6d51245dc94585b81d6d7290ca77ef50037a6193ed301","dweb:/ipfs/Qme3CWun5qQACjGEerT2MCvhs6brKGFfJirGnzV1ypKTXA"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Comparators.sol":{"keccak256":"0x302eecd8cf323b4690e3494a7d960b3cbce077032ab8ef655b323cdd136cec58","urls":["bzz-raw://49ba706f1bc476d68fe6c1fad75517acea4e9e275be0989b548e292eb3a3eacd","dweb:/ipfs/QmeBpvcdGWzWMKTQESUCEhHgnEQYYATVwPxLMxa6vMT7jC"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Panic.sol":{"keccak256":"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a","urls":["bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a","dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/SlotDerivation.sol":{"keccak256":"0x94045fd4f268edf2b2d01ef119268548c320366d6f5294ad30c1b8f9d4f5225f","urls":["bzz-raw://edfda81f426f8948b3834115c21e83c48180e6db0d2a8cd2debb2185ed349337","dweb:/ipfs/QmdYZneFyDAux1BuWQxLAdqtABrGS2k9WYCa7C9dvpKkWv"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/math/Math.sol":{"keccak256":"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857","urls":["bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5","dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/math/SafeCast.sol":{"keccak256":"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083","urls":["bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9","dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/structs/EnumerableSet.sol":{"keccak256":"0xd553ff8b7d55679f0711f1598600ac292dbd8cfdf4b2419b9cabe4c931172895","urls":["bzz-raw://7905ccb27e2308fd0d90dc1212161003ab6964e1c176593db1ccedef705bcc09","dweb:/ipfs/QmW37vm2PcrWLKnN74sKkvAzqSwntCEfCp4EoSEvbBHWkj"],"license":"MIT"},"dependencies/onchain-id-develop/contracts/interface/IERC734.sol":{"keccak256":"0x5b63b065db77b9c63ef7cc4c1d2b623892aa2b32feb6a78d9d22ed362bb648e4","urls":["bzz-raw://f6cf5fed483831e41840fa24bede977d3bc0868b67883b5b45b14f66db1e035b","dweb:/ipfs/QmZazhde9xnU42t31xugynSPDWQbrjoGLWq2NNNNeBDukm"],"license":"GPL-3.0"},"dependencies/onchain-id-develop/contracts/interface/IERC735.sol":{"keccak256":"0x82391e9ecc8fc076e3671c3e2f41f6ca9f11e71b5c3faee023cb5a062c84b8a0","urls":["bzz-raw://19cc8e243b11cbab035972cbcda6080388a7b05d4d4b50597e88a12fadf498b8","dweb:/ipfs/QmdeBuh3JFWDnfMGekxAtQXE6zW4Awkerp85qhpvBQmR2F"],"license":"GPL-3.0"},"dependencies/onchain-id-develop/contracts/interface/IIdentity.sol":{"keccak256":"0xcae5ac4efee4856d102c113e025fad00a453e14e2ede5c87ae00f4ddfd150566","urls":["bzz-raw://221d5f426a856f783ac23058f2b86bd27d4719575c733ade5f2056871c3d5465","dweb:/ipfs/QmYqxYvtiUpsKj9KgpJhSm5jPohq3KEGxMCSGsr1MnWUUY"],"license":"GPL-3.0"},"dependencies/onchain-id-develop/contracts/storage/Structs.sol":{"keccak256":"0xeb175771b30b07bfaa713dc9f7b50d9ef6e222a9aa887f530bd9323cc51a21df","urls":["bzz-raw://225fb773f556d5768b4998fed00a344b3f3549705bdf9c0ac283ef1d5d35be89","dweb:/ipfs/QmbU1LKiKeVKi2cdYUR7txbh4RTn9YChX3e1QivPdfEEkK"],"license":"GPL-3.0"}},"version":1},"id":4}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":[{"type":"function","name":"addIdentityToStorage","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_identity","type":"address","internalType":"contract IIdentity"},{"name":"_country","type":"uint16","internalType":"uint16"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"bindIdentityRegistry","inputs":[{"name":"_identityRegistry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"linkedIdentityRegistries","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"modifyStoredIdentity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_identity","type":"address","internalType":"contract IIdentity"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"modifyStoredInvestorCountry","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_country","type":"uint16","internalType":"uint16"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"removeIdentityFromStorage","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"storedIdentity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"contract IIdentity"}],"stateMutability":"view"},{"type":"function","name":"storedInvestorCountry","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint16","internalType":"uint16"}],"stateMutability":"view"},{"type":"function","name":"unbindIdentityRegistry","inputs":[{"name":"_identityRegistry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"addIdentityToStorage(address,address,uint16)":"a53410dd","bindIdentityRegistry(address)":"690a49f9","linkedIdentityRegistries()":"bf9eb959","modifyStoredIdentity(address,address)":"e805cf86","modifyStoredInvestorCountry(address,uint16)":"9f3418d5","removeIdentityFromStorage(address)":"cf191bcd","storedIdentity(address)":"7988d3a5","storedInvestorCountry(address)":"727e13bc","unbindIdentityRegistry(address)":"97a012f7"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_country\",\"type\":\"uint16\"}],\"name\":\"addIdentityToStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_identityRegistry\",\"type\":\"address\"}],\"name\":\"bindIdentityRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"linkedIdentityRegistries\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"}],\"name\":\"modifyStoredIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_country\",\"type\":\"uint16\"}],\"name\":\"modifyStoredInvestorCountry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"removeIdentityFromStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"storedIdentity\",\"outputs\":[{\"internalType\":\"contract IIdentity\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"storedInvestorCountry\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_identityRegistry\",\"type\":\"address\"}],\"name\":\"unbindIdentityRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addIdentityToStorage(address,address,uint16)\":{\"details\":\"adds an identity contract corresponding to a user address in the storage. Requires that the user doesn't have an identity contract already registered. This function can only be called by an address set as agent of the smart contract\",\"params\":{\"_country\":\"The country of the investor emits `IdentityStored` event\",\"_identity\":\"The address of the user's identity contract\",\"_userAddress\":\"The address of the user\"}},\"bindIdentityRegistry(address)\":{\"params\":{\"_identityRegistry\":\"The identity registry address to add.\"}},\"linkedIdentityRegistries()\":{\"details\":\"Returns the identity registries linked to the storage contract\"},\"modifyStoredIdentity(address,address)\":{\"details\":\"Updates an identity contract corresponding to a user address. Requires that the user address should be the owner of the identity contract. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by an address set as agent of the smart contract\",\"params\":{\"_identity\":\"The address of the user's new identity contract emits `IdentityModified` event\",\"_userAddress\":\"The address of the user\"}},\"modifyStoredInvestorCountry(address,uint16)\":{\"details\":\"Updates the country corresponding to a user address. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by an address set as agent of the smart contract\",\"params\":{\"_country\":\"The new country of the user emits `CountryModified` event\",\"_userAddress\":\"The address of the user\"}},\"removeIdentityFromStorage(address)\":{\"details\":\"Removes an user from the storage. Requires that the user have an identity contract already deployed that will be deleted. This function can only be called by an address set as agent of the smart contract\",\"params\":{\"_userAddress\":\"The address of the user to be removed emits `IdentityUnstored` event\"}},\"storedIdentity(address)\":{\"details\":\"Returns the onchainID of an investor.\",\"params\":{\"_userAddress\":\"The wallet of the investor\"}},\"storedInvestorCountry(address)\":{\"details\":\"Returns the country code of an investor.\",\"params\":{\"_userAddress\":\"The wallet of the investor\"}},\"unbindIdentityRegistry(address)\":{\"params\":{\"_identityRegistry\":\"The identity registry address to remove.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"bindIdentityRegistry(address)\":{\"notice\":\"Adds an identity registry as agent of the Identity Registry Storage Contract. This function can only be called by the wallet set as owner of the smart contract This function adds the identity registry to the list of identityRegistries linked to the storage contract cannot bind more than 300 IR to 1 IRS\"},\"unbindIdentityRegistry(address)\":{\"notice\":\"Removes an identity registry from being agent of the Identity Registry Storage Contract. This function can only be called by the wallet set as owner of the smart contract This function removes the identity registry from the list of identityRegistries linked to the storage contract\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol\":\"IERC3643IdentityRegistryStorage\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@forge-std/=dependencies/forge-std-1.12.0/src/\",\":@onchain-id/solidity/=dependencies/onchain-id-2.2.2-beta3/\",\":@openzeppelin-contracts-5.6.1/=dependencies/@openzeppelin-contracts-5.6.1/\",\":@openzeppelin-contracts-upgradeable-5.6.1/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/\",\":@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/\",\":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.6.1/\",\":forge-std-1.12.0/=dependencies/forge-std-1.12.0/src/\",\":onchain-id-2.2.2-beta3/=dependencies/onchain-id-2.2.2-beta3/contracts/\"]},\"sources\":{\"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol\":{\"keccak256\":\"0xd564e0e053f5ff3f2eccc7816882c1f6f638aa48045e39f4e1acd8b9c5675eda\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://35f6f5a2dd5c9e27a3663e5a0493e9d2a10c07b1fcbb87e8989e6b5cb98c2823\",\"dweb:/ipfs/QmVWg7znBs4hkTz6Qd1oXteAY55yvcAK1KL4u2g4bAsQRp\"]},\"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IERC734.sol\":{\"keccak256\":\"0x039a0ff5b1531a5a0f86144416358eb20c5b5d2953b40e86e9ac2f68abff9138\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://2697b84976059ea30fe4478b2ec0e2e56a6d9994ca7ef032c3a88fe669687293\",\"dweb:/ipfs/QmceXGqfM81EZaVU9SoT6oVMKZ4q21QQj3pcs4LbgaRrV9\"]},\"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IERC735.sol\":{\"keccak256\":\"0x8331ad94717c3840dfec7d8d607bbdc520fc9d7a6bde1aca25f563d8b4a4b010\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://52bcb40e7461232cf9e17d7180704b8ffd49dac29c37a195e416ad3fe53a9793\",\"dweb:/ipfs/QmURLhrNs72BJB4wxU4s7vqgUEaM8DoHNeWVjnQwJZDwEL\"]},\"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IIdentity.sol\":{\"keccak256\":\"0xa3d88d2e1e62d62a8b115deaad1d9c22e106220708b448d7a5d3a7755eb31748\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://db98a894f96cf2d815fb8c9760269c761f6ad113a76b6ae6c856a16948590895\",\"dweb:/ipfs/QmRsSJrvmrjsDtXNGrrKTzES2Exa7h7yzyBHmKSwCArLrj\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"contract IIdentity","name":"_identity","type":"address"},{"internalType":"uint16","name":"_country","type":"uint16"}],"stateMutability":"nonpayable","type":"function","name":"addIdentityToStorage"},{"inputs":[{"internalType":"address","name":"_identityRegistry","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"bindIdentityRegistry"},{"inputs":[],"stateMutability":"view","type":"function","name":"linkedIdentityRegistries","outputs":[{"internalType":"address[]","name":"","type":"address[]"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"contract IIdentity","name":"_identity","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"modifyStoredIdentity"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"uint16","name":"_country","type":"uint16"}],"stateMutability":"nonpayable","type":"function","name":"modifyStoredInvestorCountry"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"removeIdentityFromStorage"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"storedIdentity","outputs":[{"internalType":"contract IIdentity","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"storedInvestorCountry","outputs":[{"internalType":"uint16","name":"","type":"uint16"}]},{"inputs":[{"internalType":"address","name":"_identityRegistry","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"unbindIdentityRegistry"}],"devdoc":{"kind":"dev","methods":{"addIdentityToStorage(address,address,uint16)":{"details":"adds an identity contract corresponding to a user address in the storage. Requires that the user doesn't have an identity contract already registered. This function can only be called by an address set as agent of the smart contract","params":{"_country":"The country of the investor emits `IdentityStored` event","_identity":"The address of the user's identity contract","_userAddress":"The address of the user"}},"bindIdentityRegistry(address)":{"params":{"_identityRegistry":"The identity registry address to add."}},"linkedIdentityRegistries()":{"details":"Returns the identity registries linked to the storage contract"},"modifyStoredIdentity(address,address)":{"details":"Updates an identity contract corresponding to a user address. Requires that the user address should be the owner of the identity contract. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by an address set as agent of the smart contract","params":{"_identity":"The address of the user's new identity contract emits `IdentityModified` event","_userAddress":"The address of the user"}},"modifyStoredInvestorCountry(address,uint16)":{"details":"Updates the country corresponding to a user address. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by an address set as agent of the smart contract","params":{"_country":"The new country of the user emits `CountryModified` event","_userAddress":"The address of the user"}},"removeIdentityFromStorage(address)":{"details":"Removes an user from the storage. Requires that the user have an identity contract already deployed that will be deleted. This function can only be called by an address set as agent of the smart contract","params":{"_userAddress":"The address of the user to be removed emits `IdentityUnstored` event"}},"storedIdentity(address)":{"details":"Returns the onchainID of an investor.","params":{"_userAddress":"The wallet of the investor"}},"storedInvestorCountry(address)":{"details":"Returns the country code of an investor.","params":{"_userAddress":"The wallet of the investor"}},"unbindIdentityRegistry(address)":{"params":{"_identityRegistry":"The identity registry address to remove."}}},"version":1},"userdoc":{"kind":"user","methods":{"bindIdentityRegistry(address)":{"notice":"Adds an identity registry as agent of the Identity Registry Storage Contract. This function can only be called by the wallet set as owner of the smart contract This function adds the identity registry to the list of identityRegistries linked to the storage contract cannot bind more than 300 IR to 1 IRS"},"unbindIdentityRegistry(address)":{"notice":"Removes an identity registry from being agent of the Identity Registry Storage Contract. This function can only be called by the wallet set as owner of the smart contract This function removes the identity registry from the list of identityRegistries linked to the storage contract"}},"version":1}},"settings":{"remappings":["@forge-std/=dependencies/forge-std-1.12.0/src/","@onchain-id/solidity/=dependencies/onchain-id-2.2.2-beta3/","@openzeppelin-contracts-5.6.1/=dependencies/@openzeppelin-contracts-5.6.1/","@openzeppelin-contracts-upgradeable-5.6.1/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/","@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.6.1/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.6.1/","forge-std-1.12.0/=dependencies/forge-std-1.12.0/src/","onchain-id-2.2.2-beta3/=dependencies/onchain-id-2.2.2-beta3/contracts/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol":"IERC3643IdentityRegistryStorage"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol":{"keccak256":"0xd564e0e053f5ff3f2eccc7816882c1f6f638aa48045e39f4e1acd8b9c5675eda","urls":["bzz-raw://35f6f5a2dd5c9e27a3663e5a0493e9d2a10c07b1fcbb87e8989e6b5cb98c2823","dweb:/ipfs/QmVWg7znBs4hkTz6Qd1oXteAY55yvcAK1KL4u2g4bAsQRp"],"license":"CC0-1.0"},"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IERC734.sol":{"keccak256":"0x039a0ff5b1531a5a0f86144416358eb20c5b5d2953b40e86e9ac2f68abff9138","urls":["bzz-raw://2697b84976059ea30fe4478b2ec0e2e56a6d9994ca7ef032c3a88fe669687293","dweb:/ipfs/QmceXGqfM81EZaVU9SoT6oVMKZ4q21QQj3pcs4LbgaRrV9"],"license":"GPL-3.0"},"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IERC735.sol":{"keccak256":"0x8331ad94717c3840dfec7d8d607bbdc520fc9d7a6bde1aca25f563d8b4a4b010","urls":["bzz-raw://52bcb40e7461232cf9e17d7180704b8ffd49dac29c37a195e416ad3fe53a9793","dweb:/ipfs/QmURLhrNs72BJB4wxU4s7vqgUEaM8DoHNeWVjnQwJZDwEL"],"license":"GPL-3.0"},"dependencies/onchain-id-2.2.2-beta3/contracts/interface/IIdentity.sol":{"keccak256":"0xa3d88d2e1e62d62a8b115deaad1d9c22e106220708b448d7a5d3a7755eb31748","urls":["bzz-raw://db98a894f96cf2d815fb8c9760269c761f6ad113a76b6ae6c856a16948590895","dweb:/ipfs/QmRsSJrvmrjsDtXNGrrKTzES2Exa7h7yzyBHmKSwCArLrj"],"license":"GPL-3.0"}},"version":1},"id":5}
|
|
1
|
+
{"abi":[{"type":"function","name":"addIdentityToStorage","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_identity","type":"address","internalType":"contract IIdentity"},{"name":"_country","type":"uint16","internalType":"uint16"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"bindIdentityRegistry","inputs":[{"name":"_identityRegistry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"linkedIdentityRegistries","inputs":[{"name":"_start","type":"uint256","internalType":"uint256"},{"name":"_end","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"linkedIdentityRegistries","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"linkedIdentityRegistryCount","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"modifyStoredIdentity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_identity","type":"address","internalType":"contract IIdentity"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"modifyStoredInvestorCountry","inputs":[{"name":"_userAddress","type":"address","internalType":"address"},{"name":"_country","type":"uint16","internalType":"uint16"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"removeIdentityFromStorage","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"storedIdentity","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"contract IIdentity"}],"stateMutability":"view"},{"type":"function","name":"storedInvestorCountry","inputs":[{"name":"_userAddress","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint16","internalType":"uint16"}],"stateMutability":"view"},{"type":"function","name":"unbindIdentityRegistry","inputs":[{"name":"_identityRegistry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"CountryModified","inputs":[{"name":"_investorAddress","type":"address","indexed":true,"internalType":"address"},{"name":"_country","type":"uint16","indexed":true,"internalType":"uint16"}],"anonymous":false},{"type":"event","name":"IdentityModified","inputs":[{"name":"_oldIdentity","type":"address","indexed":true,"internalType":"contract IIdentity"},{"name":"_newIdentity","type":"address","indexed":true,"internalType":"contract IIdentity"}],"anonymous":false},{"type":"event","name":"IdentityRegistryBound","inputs":[{"name":"_identityRegistry","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"IdentityRegistryUnbound","inputs":[{"name":"_identityRegistry","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"IdentityStored","inputs":[{"name":"_investorAddress","type":"address","indexed":true,"internalType":"address"},{"name":"_identity","type":"address","indexed":true,"internalType":"contract IIdentity"}],"anonymous":false},{"type":"event","name":"IdentityUnstored","inputs":[{"name":"_investorAddress","type":"address","indexed":true,"internalType":"address"},{"name":"_identity","type":"address","indexed":true,"internalType":"contract IIdentity"}],"anonymous":false}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"addIdentityToStorage(address,address,uint16)":"a53410dd","bindIdentityRegistry(address)":"690a49f9","linkedIdentityRegistries()":"bf9eb959","linkedIdentityRegistries(uint256,uint256)":"bc85bc10","linkedIdentityRegistryCount()":"74e1df75","modifyStoredIdentity(address,address)":"e805cf86","modifyStoredInvestorCountry(address,uint16)":"9f3418d5","removeIdentityFromStorage(address)":"cf191bcd","storedIdentity(address)":"7988d3a5","storedInvestorCountry(address)":"727e13bc","unbindIdentityRegistry(address)":"97a012f7"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_investorAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"_country\",\"type\":\"uint16\"}],\"name\":\"CountryModified\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contract IIdentity\",\"name\":\"_oldIdentity\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IIdentity\",\"name\":\"_newIdentity\",\"type\":\"address\"}],\"name\":\"IdentityModified\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_identityRegistry\",\"type\":\"address\"}],\"name\":\"IdentityRegistryBound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_identityRegistry\",\"type\":\"address\"}],\"name\":\"IdentityRegistryUnbound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_investorAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"}],\"name\":\"IdentityStored\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_investorAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"}],\"name\":\"IdentityUnstored\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_country\",\"type\":\"uint16\"}],\"name\":\"addIdentityToStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_identityRegistry\",\"type\":\"address\"}],\"name\":\"bindIdentityRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_end\",\"type\":\"uint256\"}],\"name\":\"linkedIdentityRegistries\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"linkedIdentityRegistries\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"linkedIdentityRegistryCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"contract IIdentity\",\"name\":\"_identity\",\"type\":\"address\"}],\"name\":\"modifyStoredIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_country\",\"type\":\"uint16\"}],\"name\":\"modifyStoredInvestorCountry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"removeIdentityFromStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"storedIdentity\",\"outputs\":[{\"internalType\":\"contract IIdentity\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_userAddress\",\"type\":\"address\"}],\"name\":\"storedInvestorCountry\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_identityRegistry\",\"type\":\"address\"}],\"name\":\"unbindIdentityRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"CountryModified(address,uint16)\":{\"details\":\"Emitted when an investor's country is updated in the storage contract.\",\"params\":{\"_country\":\"The investor's new country code (ISO-3166).\",\"_investorAddress\":\"The address of the investor's wallet.\"}},\"IdentityModified(address,address)\":{\"details\":\"Emitted when an identity contract is replaced in the storage contract.\",\"params\":{\"_newIdentity\":\"The new ONCHAINID address.\",\"_oldIdentity\":\"The old ONCHAINID address.\"}},\"IdentityRegistryBound(address)\":{\"details\":\"Emitted when an Identity Registry is bound to the storage contract.\",\"params\":{\"_identityRegistry\":\"The address of the bound Identity Registry.\"}},\"IdentityRegistryUnbound(address)\":{\"details\":\"Emitted when an Identity Registry is unbound from the storage contract.\",\"params\":{\"_identityRegistry\":\"The address of the unbound Identity Registry.\"}},\"IdentityStored(address,address)\":{\"details\":\"Emitted when an identity is registered into the storage contract.\",\"params\":{\"_identity\":\"The address of the investor's ONCHAINID.\",\"_investorAddress\":\"The address of the investor's wallet.\"}},\"IdentityUnstored(address,address)\":{\"details\":\"Emitted when an identity is removed from the storage contract.\",\"params\":{\"_identity\":\"The address of the investor's ONCHAINID.\",\"_investorAddress\":\"The address of the investor's wallet.\"}}},\"kind\":\"dev\",\"methods\":{\"addIdentityToStorage(address,address,uint16)\":{\"details\":\"adds an identity contract corresponding to a user address in the storage. Requires that the user doesn't have an identity contract already registered. This function can only be called by an address set as agent of the smart contract\",\"params\":{\"_country\":\"The country of the investor emits `IdentityStored` event\",\"_identity\":\"The address of the user's identity contract\",\"_userAddress\":\"The address of the user\"}},\"bindIdentityRegistry(address)\":{\"details\":\"The bound set (`linkedIdentityRegistries`) is not authorization. Write access to the IRS (addIdentityToStorage / modify* / remove*) is gated by the IRS_WRITER role on the AccessManager, so an IR holding IRS_WRITER may write without being bound, and an unbound IR keeps IRS_WRITER until the AccessManager revokes it. Bind/unbind carry no grantRole/revokeRole of IRS_WRITER. Every write is still checked against the storage's IdentityFactory, set at init, whoever the writer is.\",\"params\":{\"_identityRegistry\":\"The identity registry address to add.\"}},\"linkedIdentityRegistries()\":{\"details\":\"Returns the identity registries linked to the storage contract\"},\"linkedIdentityRegistries(uint256,uint256)\":{\"details\":\"Both bounds are clamped to the set size and `_start` is clamped to `_end`, so an out-of-range page returns an empty array rather than reverting. Paginate against `linkedIdentityRegistryCount`. Set order is NOT stable: removing a registry moves the last element into the freed slot. A caller paging across several calls may therefore miss or repeat an entry if a bind or unbind lands between them. Read the whole set in one call where a consistent snapshot matters.\",\"params\":{\"_end\":\"Index to stop at, exclusive.\",\"_start\":\"Index of the first entry to return, inclusive.\"}},\"linkedIdentityRegistryCount()\":{\"details\":\"Returns the number of identity registries linked to the storage contract, without copying the set. Equivalent to `linkedIdentityRegistries().length`.\"},\"modifyStoredIdentity(address,address)\":{\"details\":\"Updates an identity contract corresponding to a user address. Requires that the user address should be the owner of the identity contract. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by an address set as agent of the smart contract\",\"params\":{\"_identity\":\"The address of the user's new identity contract emits `IdentityModified` event\",\"_userAddress\":\"The address of the user\"}},\"modifyStoredInvestorCountry(address,uint16)\":{\"details\":\"Updates the country corresponding to a user address. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by an address set as agent of the smart contract\",\"params\":{\"_country\":\"The new country of the user emits `CountryModified` event\",\"_userAddress\":\"The address of the user\"}},\"removeIdentityFromStorage(address)\":{\"details\":\"Removes an user from the storage. Requires that the user have an identity contract already deployed that will be deleted. This function can only be called by an address set as agent of the smart contract\",\"params\":{\"_userAddress\":\"The address of the user to be removed emits `IdentityUnstored` event\"}},\"storedIdentity(address)\":{\"details\":\"Returns the onchainID of an investor.\",\"params\":{\"_userAddress\":\"The wallet of the investor\"}},\"storedInvestorCountry(address)\":{\"details\":\"Returns the country code of an investor.\",\"params\":{\"_userAddress\":\"The wallet of the investor\"}},\"unbindIdentityRegistry(address)\":{\"details\":\"See {bindIdentityRegistry}: unbinding does not revoke the IRS_WRITER role the IR may hold on the AccessManager.\",\"params\":{\"_identityRegistry\":\"The identity registry address to remove.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"bindIdentityRegistry(address)\":{\"notice\":\"Adds an identity registry to the list of identityRegistries linked to the storage contract. Gated by the IRS_BINDER role (see AccessManagerSetupLib), held by the issuer's accounts that attach a registry onto a reused storage; the TREXFactory never holds it. The number of bound registries is capped (see `MAX_BOUND_REGISTRIES` on the implementation).\"},\"linkedIdentityRegistries(uint256,uint256)\":{\"notice\":\"Returns a slice of the bound set, for reading it in pages instead of in one copy.\"},\"unbindIdentityRegistry(address)\":{\"notice\":\"Removes an identity registry from the list of identityRegistries linked to the storage contract. Gated by the OWNER role: unbinding is a governance operation, not a deploy-time action.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol\":\"IERC3643IdentityRegistryStorage\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@forge-std/=dependencies/forge-std-1.16.2/src/\",\":@onchain-id/solidity/=dependencies/onchain-id-develop/\",\":@openzeppelin-contracts-5.7.0/=dependencies/@openzeppelin-contracts-5.7.0/\",\":@openzeppelin-contracts-upgradeable-5.7.0/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/\",\":@openzeppelin/accounts/=dependencies/onchain-id-develop/dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/\",\":@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/\",\":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.7.0/\",\":forge-std-1.16.2/=dependencies/forge-std-1.16.2/src/\",\":forge-std/=dependencies/onchain-id-develop/dependencies/forge-std-v1.14.0/src/\",\":onchain-id-develop/=dependencies/onchain-id-develop/\"]},\"sources\":{\"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol\":{\"keccak256\":\"0xf4e3d94a124d016a94e6f33b3a56b39ce6a9053416739f687676577073d2590f\",\"license\":\"CC0-1.0\",\"urls\":[\"bzz-raw://ec0ac1447a15f5dfc63e019cf07be4a607c551eb7ac8536e986af5b339ca4293\",\"dweb:/ipfs/QmTRqZgXgXPPzrgcS371UQmT8kcR9obf6GQSDResd6NZRA\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Arrays.sol\":{\"keccak256\":\"0x772f0c778626a7bdcbcbabca74b825ae9b9dc89d2a47a98b402b1187fbaa63a4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://eba1d46e58e8880b45c6d51245dc94585b81d6d7290ca77ef50037a6193ed301\",\"dweb:/ipfs/Qme3CWun5qQACjGEerT2MCvhs6brKGFfJirGnzV1ypKTXA\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Comparators.sol\":{\"keccak256\":\"0x302eecd8cf323b4690e3494a7d960b3cbce077032ab8ef655b323cdd136cec58\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://49ba706f1bc476d68fe6c1fad75517acea4e9e275be0989b548e292eb3a3eacd\",\"dweb:/ipfs/QmeBpvcdGWzWMKTQESUCEhHgnEQYYATVwPxLMxa6vMT7jC\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Panic.sol\":{\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a\",\"dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/SlotDerivation.sol\":{\"keccak256\":\"0x94045fd4f268edf2b2d01ef119268548c320366d6f5294ad30c1b8f9d4f5225f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://edfda81f426f8948b3834115c21e83c48180e6db0d2a8cd2debb2185ed349337\",\"dweb:/ipfs/QmdYZneFyDAux1BuWQxLAdqtABrGS2k9WYCa7C9dvpKkWv\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/math/Math.sol\":{\"keccak256\":\"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5\",\"dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/math/SafeCast.sol\":{\"keccak256\":\"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9\",\"dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/structs/EnumerableSet.sol\":{\"keccak256\":\"0xd553ff8b7d55679f0711f1598600ac292dbd8cfdf4b2419b9cabe4c931172895\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7905ccb27e2308fd0d90dc1212161003ab6964e1c176593db1ccedef705bcc09\",\"dweb:/ipfs/QmW37vm2PcrWLKnN74sKkvAzqSwntCEfCp4EoSEvbBHWkj\"]},\"dependencies/onchain-id-develop/contracts/interface/IERC734.sol\":{\"keccak256\":\"0x5b63b065db77b9c63ef7cc4c1d2b623892aa2b32feb6a78d9d22ed362bb648e4\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://f6cf5fed483831e41840fa24bede977d3bc0868b67883b5b45b14f66db1e035b\",\"dweb:/ipfs/QmZazhde9xnU42t31xugynSPDWQbrjoGLWq2NNNNeBDukm\"]},\"dependencies/onchain-id-develop/contracts/interface/IERC735.sol\":{\"keccak256\":\"0x82391e9ecc8fc076e3671c3e2f41f6ca9f11e71b5c3faee023cb5a062c84b8a0\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://19cc8e243b11cbab035972cbcda6080388a7b05d4d4b50597e88a12fadf498b8\",\"dweb:/ipfs/QmdeBuh3JFWDnfMGekxAtQXE6zW4Awkerp85qhpvBQmR2F\"]},\"dependencies/onchain-id-develop/contracts/interface/IIdentity.sol\":{\"keccak256\":\"0xcae5ac4efee4856d102c113e025fad00a453e14e2ede5c87ae00f4ddfd150566\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://221d5f426a856f783ac23058f2b86bd27d4719575c733ade5f2056871c3d5465\",\"dweb:/ipfs/QmYqxYvtiUpsKj9KgpJhSm5jPohq3KEGxMCSGsr1MnWUUY\"]},\"dependencies/onchain-id-develop/contracts/storage/Structs.sol\":{\"keccak256\":\"0xeb175771b30b07bfaa713dc9f7b50d9ef6e222a9aa887f530bd9323cc51a21df\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://225fb773f556d5768b4998fed00a344b3f3549705bdf9c0ac283ef1d5d35be89\",\"dweb:/ipfs/QmbU1LKiKeVKi2cdYUR7txbh4RTn9YChX3e1QivPdfEEkK\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_investorAddress","type":"address","indexed":true},{"internalType":"uint16","name":"_country","type":"uint16","indexed":true}],"type":"event","name":"CountryModified","anonymous":false},{"inputs":[{"internalType":"contract IIdentity","name":"_oldIdentity","type":"address","indexed":true},{"internalType":"contract IIdentity","name":"_newIdentity","type":"address","indexed":true}],"type":"event","name":"IdentityModified","anonymous":false},{"inputs":[{"internalType":"address","name":"_identityRegistry","type":"address","indexed":true}],"type":"event","name":"IdentityRegistryBound","anonymous":false},{"inputs":[{"internalType":"address","name":"_identityRegistry","type":"address","indexed":true}],"type":"event","name":"IdentityRegistryUnbound","anonymous":false},{"inputs":[{"internalType":"address","name":"_investorAddress","type":"address","indexed":true},{"internalType":"contract IIdentity","name":"_identity","type":"address","indexed":true}],"type":"event","name":"IdentityStored","anonymous":false},{"inputs":[{"internalType":"address","name":"_investorAddress","type":"address","indexed":true},{"internalType":"contract IIdentity","name":"_identity","type":"address","indexed":true}],"type":"event","name":"IdentityUnstored","anonymous":false},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"contract IIdentity","name":"_identity","type":"address"},{"internalType":"uint16","name":"_country","type":"uint16"}],"stateMutability":"nonpayable","type":"function","name":"addIdentityToStorage"},{"inputs":[{"internalType":"address","name":"_identityRegistry","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"bindIdentityRegistry"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"stateMutability":"view","type":"function","name":"linkedIdentityRegistries","outputs":[{"internalType":"address[]","name":"","type":"address[]"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"linkedIdentityRegistries","outputs":[{"internalType":"address[]","name":"","type":"address[]"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"linkedIdentityRegistryCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"contract IIdentity","name":"_identity","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"modifyStoredIdentity"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"uint16","name":"_country","type":"uint16"}],"stateMutability":"nonpayable","type":"function","name":"modifyStoredInvestorCountry"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"removeIdentityFromStorage"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"storedIdentity","outputs":[{"internalType":"contract IIdentity","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"stateMutability":"view","type":"function","name":"storedInvestorCountry","outputs":[{"internalType":"uint16","name":"","type":"uint16"}]},{"inputs":[{"internalType":"address","name":"_identityRegistry","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"unbindIdentityRegistry"}],"devdoc":{"kind":"dev","methods":{"addIdentityToStorage(address,address,uint16)":{"details":"adds an identity contract corresponding to a user address in the storage. Requires that the user doesn't have an identity contract already registered. This function can only be called by an address set as agent of the smart contract","params":{"_country":"The country of the investor emits `IdentityStored` event","_identity":"The address of the user's identity contract","_userAddress":"The address of the user"}},"bindIdentityRegistry(address)":{"details":"The bound set (`linkedIdentityRegistries`) is not authorization. Write access to the IRS (addIdentityToStorage / modify* / remove*) is gated by the IRS_WRITER role on the AccessManager, so an IR holding IRS_WRITER may write without being bound, and an unbound IR keeps IRS_WRITER until the AccessManager revokes it. Bind/unbind carry no grantRole/revokeRole of IRS_WRITER. Every write is still checked against the storage's IdentityFactory, set at init, whoever the writer is.","params":{"_identityRegistry":"The identity registry address to add."}},"linkedIdentityRegistries()":{"details":"Returns the identity registries linked to the storage contract"},"linkedIdentityRegistries(uint256,uint256)":{"details":"Both bounds are clamped to the set size and `_start` is clamped to `_end`, so an out-of-range page returns an empty array rather than reverting. Paginate against `linkedIdentityRegistryCount`. Set order is NOT stable: removing a registry moves the last element into the freed slot. A caller paging across several calls may therefore miss or repeat an entry if a bind or unbind lands between them. Read the whole set in one call where a consistent snapshot matters.","params":{"_end":"Index to stop at, exclusive.","_start":"Index of the first entry to return, inclusive."}},"linkedIdentityRegistryCount()":{"details":"Returns the number of identity registries linked to the storage contract, without copying the set. Equivalent to `linkedIdentityRegistries().length`."},"modifyStoredIdentity(address,address)":{"details":"Updates an identity contract corresponding to a user address. Requires that the user address should be the owner of the identity contract. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by an address set as agent of the smart contract","params":{"_identity":"The address of the user's new identity contract emits `IdentityModified` event","_userAddress":"The address of the user"}},"modifyStoredInvestorCountry(address,uint16)":{"details":"Updates the country corresponding to a user address. Requires that the user should have an identity contract already deployed that will be replaced. This function can only be called by an address set as agent of the smart contract","params":{"_country":"The new country of the user emits `CountryModified` event","_userAddress":"The address of the user"}},"removeIdentityFromStorage(address)":{"details":"Removes an user from the storage. Requires that the user have an identity contract already deployed that will be deleted. This function can only be called by an address set as agent of the smart contract","params":{"_userAddress":"The address of the user to be removed emits `IdentityUnstored` event"}},"storedIdentity(address)":{"details":"Returns the onchainID of an investor.","params":{"_userAddress":"The wallet of the investor"}},"storedInvestorCountry(address)":{"details":"Returns the country code of an investor.","params":{"_userAddress":"The wallet of the investor"}},"unbindIdentityRegistry(address)":{"details":"See {bindIdentityRegistry}: unbinding does not revoke the IRS_WRITER role the IR may hold on the AccessManager.","params":{"_identityRegistry":"The identity registry address to remove."}}},"version":1},"userdoc":{"kind":"user","methods":{"bindIdentityRegistry(address)":{"notice":"Adds an identity registry to the list of identityRegistries linked to the storage contract. Gated by the IRS_BINDER role (see AccessManagerSetupLib), held by the issuer's accounts that attach a registry onto a reused storage; the TREXFactory never holds it. The number of bound registries is capped (see `MAX_BOUND_REGISTRIES` on the implementation)."},"linkedIdentityRegistries(uint256,uint256)":{"notice":"Returns a slice of the bound set, for reading it in pages instead of in one copy."},"unbindIdentityRegistry(address)":{"notice":"Removes an identity registry from the list of identityRegistries linked to the storage contract. Gated by the OWNER role: unbinding is a governance operation, not a deploy-time action."}},"version":1}},"settings":{"remappings":["@forge-std/=dependencies/forge-std-1.16.2/src/","@onchain-id/solidity/=dependencies/onchain-id-develop/","@openzeppelin-contracts-5.7.0/=dependencies/@openzeppelin-contracts-5.7.0/","@openzeppelin-contracts-upgradeable-5.7.0/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/","@openzeppelin/accounts/=dependencies/onchain-id-develop/dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/","@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.7.0/","forge-std-1.16.2/=dependencies/forge-std-1.16.2/src/","forge-std/=dependencies/onchain-id-develop/dependencies/forge-std-v1.14.0/src/","onchain-id-develop/=dependencies/onchain-id-develop/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol":"IERC3643IdentityRegistryStorage"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/ERC-3643/IERC3643IdentityRegistryStorage.sol":{"keccak256":"0xf4e3d94a124d016a94e6f33b3a56b39ce6a9053416739f687676577073d2590f","urls":["bzz-raw://ec0ac1447a15f5dfc63e019cf07be4a607c551eb7ac8536e986af5b339ca4293","dweb:/ipfs/QmTRqZgXgXPPzrgcS371UQmT8kcR9obf6GQSDResd6NZRA"],"license":"CC0-1.0"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Arrays.sol":{"keccak256":"0x772f0c778626a7bdcbcbabca74b825ae9b9dc89d2a47a98b402b1187fbaa63a4","urls":["bzz-raw://eba1d46e58e8880b45c6d51245dc94585b81d6d7290ca77ef50037a6193ed301","dweb:/ipfs/Qme3CWun5qQACjGEerT2MCvhs6brKGFfJirGnzV1ypKTXA"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Comparators.sol":{"keccak256":"0x302eecd8cf323b4690e3494a7d960b3cbce077032ab8ef655b323cdd136cec58","urls":["bzz-raw://49ba706f1bc476d68fe6c1fad75517acea4e9e275be0989b548e292eb3a3eacd","dweb:/ipfs/QmeBpvcdGWzWMKTQESUCEhHgnEQYYATVwPxLMxa6vMT7jC"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Panic.sol":{"keccak256":"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a","urls":["bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a","dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/SlotDerivation.sol":{"keccak256":"0x94045fd4f268edf2b2d01ef119268548c320366d6f5294ad30c1b8f9d4f5225f","urls":["bzz-raw://edfda81f426f8948b3834115c21e83c48180e6db0d2a8cd2debb2185ed349337","dweb:/ipfs/QmdYZneFyDAux1BuWQxLAdqtABrGS2k9WYCa7C9dvpKkWv"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/math/Math.sol":{"keccak256":"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857","urls":["bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5","dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/math/SafeCast.sol":{"keccak256":"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083","urls":["bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9","dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/structs/EnumerableSet.sol":{"keccak256":"0xd553ff8b7d55679f0711f1598600ac292dbd8cfdf4b2419b9cabe4c931172895","urls":["bzz-raw://7905ccb27e2308fd0d90dc1212161003ab6964e1c176593db1ccedef705bcc09","dweb:/ipfs/QmW37vm2PcrWLKnN74sKkvAzqSwntCEfCp4EoSEvbBHWkj"],"license":"MIT"},"dependencies/onchain-id-develop/contracts/interface/IERC734.sol":{"keccak256":"0x5b63b065db77b9c63ef7cc4c1d2b623892aa2b32feb6a78d9d22ed362bb648e4","urls":["bzz-raw://f6cf5fed483831e41840fa24bede977d3bc0868b67883b5b45b14f66db1e035b","dweb:/ipfs/QmZazhde9xnU42t31xugynSPDWQbrjoGLWq2NNNNeBDukm"],"license":"GPL-3.0"},"dependencies/onchain-id-develop/contracts/interface/IERC735.sol":{"keccak256":"0x82391e9ecc8fc076e3671c3e2f41f6ca9f11e71b5c3faee023cb5a062c84b8a0","urls":["bzz-raw://19cc8e243b11cbab035972cbcda6080388a7b05d4d4b50597e88a12fadf498b8","dweb:/ipfs/QmdeBuh3JFWDnfMGekxAtQXE6zW4Awkerp85qhpvBQmR2F"],"license":"GPL-3.0"},"dependencies/onchain-id-develop/contracts/interface/IIdentity.sol":{"keccak256":"0xcae5ac4efee4856d102c113e025fad00a453e14e2ede5c87ae00f4ddfd150566","urls":["bzz-raw://221d5f426a856f783ac23058f2b86bd27d4719575c733ade5f2056871c3d5465","dweb:/ipfs/QmYqxYvtiUpsKj9KgpJhSm5jPohq3KEGxMCSGsr1MnWUUY"],"license":"GPL-3.0"},"dependencies/onchain-id-develop/contracts/storage/Structs.sol":{"keccak256":"0xeb175771b30b07bfaa713dc9f7b50d9ef6e222a9aa887f530bd9323cc51a21df","urls":["bzz-raw://225fb773f556d5768b4998fed00a344b3f3549705bdf9c0ac283ef1d5d35be89","dweb:/ipfs/QmbU1LKiKeVKi2cdYUR7txbh4RTn9YChX3e1QivPdfEEkK"],"license":"GPL-3.0"}},"version":1},"id":5}
|