@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":"addAndSetModule","inputs":[{"name":"_module","type":"address","internalType":"address"},{"name":"_interactions","type":"bytes[]","internalType":"bytes[]"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"addModule","inputs":[{"name":"_module","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"bindToken","inputs":[{"name":"_token","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"callModuleFunction","inputs":[{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"_module","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":"getModules","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"getTokenBound","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"isModuleBound","inputs":[{"name":"_module","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isTokenBound","inputs":[{"name":"_token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"removeModule","inputs":[{"name":"_module","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"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":{"addAndSetModule(address,bytes[])":"0a6d7cf1","addModule(address)":"1ed86f19","bindToken(address)":"3ff5aa02","callModuleFunction(bytes,address)":"efb22d33","canTransfer(address,address,uint256)":"e46638e6","created(address,uint256)":"5f8dead3","destroyed(address,uint256)":"8d2ea772","getModules()":"b2494df3","getTokenBound()":"6a3edf28","isModuleBound(address)":"a446d49f","isTokenBound(address)":"993e8b95","removeModule(address)":"a0632461","transferred(address,address,uint256)":"8baf29b4","unbindToken(address)":"40db3b50"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"},{\"internalType\":\"bytes[]\",\"name\":\"_interactions\",\"type\":\"bytes[]\"}],\"name\":\"addAndSetModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"}],\"name\":\"addModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"bindToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"}],\"name\":\"callModuleFunction\",\"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\":\"getModules\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenBound\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"}],\"name\":\"isModuleBound\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"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\":\"_module\",\"type\":\"address\"}],\"name\":\"removeModule\",\"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\":\"transferred\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"unbindToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addAndSetModule(address,bytes[])\":{\"details\":\"Adds a module to the modular compliance contract and performs multiple interactions with it in a single transaction. This function allows the contract owner to add a new compliance module and immediately configure it by calling specified functions on the module. This can be useful for setting up the module with initial parameters or configurations right after it is added.\",\"params\":{\"_interactions\":\"An array of bytecode representing function calls to be made on the module. These interactions are performed after the module is added. Requirements: - The caller must be the owner of the `ModularCompliance` contract. - The `_module` address must not be a zero address. - The `_module` must not already be bound to the contract. - The total number of modules must not exceed 25 after adding the new module. - The `_interactions` array must contain no more than 5 elements to prevent out-of-gas errors. Operations: - The function first adds the module using the `addModule` function. - Then, it iterates over the `_interactions` array, performing each interaction on the module using the `callModuleFunction`. Emits: - A `ModuleAdded` event upon successful addition of the module. - A `ModuleInteraction` event for each function call made to the module during the interaction phase. Reverts if: - Any of the above requirements are not met. - Any of the module interactions fail during execution.\",\"_module\":\"The address of the module to add. The module must either be \\\"plug and play\\\" or be able to bind with the compliance contract.\"}},\"addModule(address)\":{\"details\":\"adds a module to the list of compliance modules\",\"params\":{\"_module\":\"address of the module to add there cannot be more than 25 modules bound to the modular compliance for gas cost reasons This function can be called ONLY by the owner of the compliance contract Emits a ModuleAdded event\"}},\"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\"}},\"callModuleFunction(bytes,address)\":{\"details\":\"calls any function on bound modules can be called only on bound modules\",\"params\":{\"_module\":\"The address of the module This function can be called only by the modular compliance owner emits a `ModuleInteraction` event\",\"callData\":\"the bytecode for interaction with the module, abi encoded\"}},\"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\"}},\"getModules()\":{\"details\":\"getter for the modules bound to the compliance contract returns address array of module contracts bound to the compliance\"},\"getTokenBound()\":{\"details\":\"getter for the address of the token bound returns the address of the token\"},\"isModuleBound(address)\":{\"details\":\"checks if a module is bound to the compliance contract returns true if module is bound, false otherwise\"},\"removeModule(address)\":{\"details\":\"removes a module from the list of compliance modules\",\"params\":{\"_module\":\"address of the module to remove This function can be called ONLY by the owner of the compliance contract Emits a ModuleRemoved event\"}},\"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/compliance/modular/IModularCompliance.sol\":\"IModularCompliance\"},\"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\"]},\"contracts/compliance/modular/IModularCompliance.sol\":{\"keccak256\":\"0xd96aa53777172be93ea653ebc27ab0005e70b5dd453bb896aeeaae20479e0353\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://53e5c0e70bb946b973d13271933087040ab88383130b58c5e452a1bc23cb3c3b\",\"dweb:/ipfs/QmYFZNmBG5jfbKVozeHjPKxoEQa6u5km79m81rpqrjeDqs\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_module","type":"address"},{"internalType":"bytes[]","name":"_interactions","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function","name":"addAndSetModule"},{"inputs":[{"internalType":"address","name":"_module","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"addModule"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"bindToken"},{"inputs":[{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"address","name":"_module","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"callModuleFunction"},{"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":"getModules","outputs":[{"internalType":"address[]","name":"","type":"address[]"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getTokenBound","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_module","type":"address"}],"stateMutability":"view","type":"function","name":"isModuleBound","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"view","type":"function","name":"isTokenBound","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_module","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"removeModule"},{"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":{"addAndSetModule(address,bytes[])":{"details":"Adds a module to the modular compliance contract and performs multiple interactions with it in a single transaction. This function allows the contract owner to add a new compliance module and immediately configure it by calling specified functions on the module. This can be useful for setting up the module with initial parameters or configurations right after it is added.","params":{"_interactions":"An array of bytecode representing function calls to be made on the module. These interactions are performed after the module is added. Requirements: - The caller must be the owner of the `ModularCompliance` contract. - The `_module` address must not be a zero address. - The `_module` must not already be bound to the contract. - The total number of modules must not exceed 25 after adding the new module. - The `_interactions` array must contain no more than 5 elements to prevent out-of-gas errors. Operations: - The function first adds the module using the `addModule` function. - Then, it iterates over the `_interactions` array, performing each interaction on the module using the `callModuleFunction`. Emits: - A `ModuleAdded` event upon successful addition of the module. - A `ModuleInteraction` event for each function call made to the module during the interaction phase. Reverts if: - Any of the above requirements are not met. - Any of the module interactions fail during execution.","_module":"The address of the module to add. The module must either be \"plug and play\" or be able to bind with the compliance contract."}},"addModule(address)":{"details":"adds a module to the list of compliance modules","params":{"_module":"address of the module to add there cannot be more than 25 modules bound to the modular compliance for gas cost reasons This function can be called ONLY by the owner of the compliance contract Emits a ModuleAdded event"}},"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"}},"callModuleFunction(bytes,address)":{"details":"calls any function on bound modules can be called only on bound modules","params":{"_module":"The address of the module This function can be called only by the modular compliance owner emits a `ModuleInteraction` event","callData":"the bytecode for interaction with the module, abi encoded"}},"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"}},"getModules()":{"details":"getter for the modules bound to the compliance contract returns address array of module contracts bound to the compliance"},"getTokenBound()":{"details":"getter for the address of the token bound returns the address of the token"},"isModuleBound(address)":{"details":"checks if a module is bound to the compliance contract returns true if module is bound, false otherwise"},"removeModule(address)":{"details":"removes a module from the list of compliance modules","params":{"_module":"address of the module to remove This function can be called ONLY by the owner of the compliance contract Emits a ModuleRemoved event"}},"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/compliance/modular/IModularCompliance.sol":"IModularCompliance"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/ERC-3643/IERC3643Compliance.sol":{"keccak256":"0x0c0fe341ba4c9f036d2f006fe72befd9ab4a3cdf02111b96360e4fedd5413200","urls":["bzz-raw://afb977b4a0947d599418b6997e5ca4cd4fb8604065148ec9d38f30334d580226","dweb:/ipfs/QmWmWAo6jgifG1fTCVdsuVUntMr3N8PY5BWf6z9yvVRque"],"license":"CC0-1.0"},"contracts/compliance/modular/IModularCompliance.sol":{"keccak256":"0xd96aa53777172be93ea653ebc27ab0005e70b5dd453bb896aeeaae20479e0353","urls":["bzz-raw://53e5c0e70bb946b973d13271933087040ab88383130b58c5e452a1bc23cb3c3b","dweb:/ipfs/QmYFZNmBG5jfbKVozeHjPKxoEQa6u5km79m81rpqrjeDqs"],"license":"GPL-3.0"}},"version":1},"id":7}
|
|
1
|
+
{"abi":[{"type":"function","name":"addAndSetModule","inputs":[{"name":"_module","type":"address","internalType":"address"},{"name":"_interactions","type":"bytes[]","internalType":"bytes[]"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"addModule","inputs":[{"name":"_module","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"agentTransferred","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"},{"name":"_kind","type":"uint8","internalType":"uint8"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"bindToken","inputs":[{"name":"_token","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"callModuleFunction","inputs":[{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"_module","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"canSpenderCall","inputs":[{"name":"_spender","type":"address","internalType":"address"},{"name":"_from","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_value","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"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":"forceRemoveModule","inputs":[{"name":"_module","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getModules","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"getModulesByType","inputs":[{"name":"moduleType","type":"uint8","internalType":"enum IModule.ModuleType"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"getTokenBound","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"isModuleBound","inputs":[{"name":"_module","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isTokenBound","inputs":[{"name":"_token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"removeModule","inputs":[{"name":"_module","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"resyncModuleTypes","inputs":[{"name":"_module","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"syncOwner","inputs":[{"name":"_wallet","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"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":"ModuleAdded","inputs":[{"name":"module","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"ModuleInteraction","inputs":[{"name":"target","type":"address","indexed":true,"internalType":"address"},{"name":"data","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"ModuleTypesRecorded","inputs":[{"name":"module","type":"address","indexed":true,"internalType":"address"},{"name":"moduleTypes","type":"uint8[]","indexed":false,"internalType":"enum IModule.ModuleType[]"}],"anonymous":false},{"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},{"type":"error","name":"ComplianceNotSuitableForBindingToModule","inputs":[{"name":"module","type":"address","internalType":"address"}]},{"type":"error","name":"DuplicateModuleType","inputs":[{"name":"moduleType","type":"uint8","internalType":"uint8"}]},{"type":"error","name":"MaxModulesReached","inputs":[{"name":"maxValue","type":"uint256","internalType":"uint256"}]},{"type":"error","name":"ModuleAlreadyBound","inputs":[]},{"type":"error","name":"ModuleHasNoType","inputs":[]},{"type":"error","name":"ModuleNotBound","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"addAndSetModule(address,bytes[])":"0a6d7cf1","addModule(address)":"1ed86f19","agentTransferred(address,address,uint256,uint8)":"5a80ff8a","bindToken(address)":"3ff5aa02","callModuleFunction(bytes,address)":"efb22d33","canSpenderCall(address,address,address,uint256)":"97c905b2","canTransfer(address,address,uint256)":"e46638e6","created(address,uint256)":"5f8dead3","destroyed(address,uint256)":"8d2ea772","forceRemoveModule(address)":"907182d1","getModules()":"b2494df3","getModulesByType(uint8)":"ac90b422","getTokenBound()":"6a3edf28","isModuleBound(address)":"a446d49f","isTokenBound(address)":"993e8b95","removeModule(address)":"a0632461","resyncModuleTypes(address)":"694e4059","syncOwner(address)":"607ec7ad","transferred(address,address,uint256)":"8baf29b4","unbindToken(address)":"40db3b50"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ComplianceNotSuitableForBindingToModule\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"moduleType\",\"type\":\"uint8\"}],\"name\":\"DuplicateModuleType\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxValue\",\"type\":\"uint256\"}],\"name\":\"MaxModulesReached\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ModuleAlreadyBound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ModuleHasNoType\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ModuleNotBound\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ModuleAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"ModuleInteraction\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"enum IModule.ModuleType[]\",\"name\":\"moduleTypes\",\"type\":\"uint8[]\"}],\"name\":\"ModuleTypesRecorded\",\"type\":\"event\"},{\"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\":\"_module\",\"type\":\"address\"},{\"internalType\":\"bytes[]\",\"name\":\"_interactions\",\"type\":\"bytes[]\"}],\"name\":\"addAndSetModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"}],\"name\":\"addModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"_kind\",\"type\":\"uint8\"}],\"name\":\"agentTransferred\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"bindToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"}],\"name\":\"callModuleFunction\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"canSpenderCall\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"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\":[{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"}],\"name\":\"forceRemoveModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getModules\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum IModule.ModuleType\",\"name\":\"moduleType\",\"type\":\"uint8\"}],\"name\":\"getModulesByType\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenBound\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"}],\"name\":\"isModuleBound\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"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\":\"_module\",\"type\":\"address\"}],\"name\":\"removeModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"}],\"name\":\"resyncModuleTypes\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_wallet\",\"type\":\"address\"}],\"name\":\"syncOwner\",\"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\":\"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\":{\"addAndSetModule(address,bytes[])\":{\"details\":\"Adds a module to the modular compliance contract and performs multiple interactions with it in a single transaction. This function allows the contract owner to add a new compliance module and immediately configure it by calling specified functions on the module. This can be useful for setting up the module with initial parameters or configurations right after it is added.\",\"params\":{\"_interactions\":\"An array of bytecode representing function calls to be made on the module. These interactions are performed after the module is added. Requirements: - The caller must hold the required AccessManager role (OWNER). - The `_module` address must not be a zero address. - The `_module` must not already be bound to the contract. - The total number of modules must not exceed 25 after adding the new module. - The `_interactions` array must contain no more than 5 elements to prevent out-of-gas errors. Operations: - The function first adds the module using the `addModule` function. - Then, it iterates over the `_interactions` array, performing each interaction on the module using the `callModuleFunction`. Emits: - A `ModuleAdded` event upon successful addition of the module. - A `ModuleInteraction` event for each function call made to the module during the interaction phase. Reverts if: - Any of the above requirements are not met. - Any of the module interactions fail during execution.\",\"_module\":\"The address of the module to add. The module must either be \\\"plug and play\\\" or be able to bind with the compliance contract.\"}},\"addModule(address)\":{\"details\":\"adds a module to the list of compliance modules\",\"params\":{\"_module\":\"address of the module to add there cannot be more than 25 modules bound to the modular compliance for gas cost reasons the module must name at least one type in `moduleTypes`, and it is sorted into the list of each type it names, so the compliance only calls it where it said it answers Restricted to the configured AccessManager role (OWNER). Emits a ModuleAdded event and a ModuleTypesRecorded event\"}},\"agentTransferred(address,address,uint256,uint8)\":{\"details\":\"function called whenever the token moves tokens outside a plain transfer: a forced transfer or a recovery by an agent, or a delegation out to a satellite wallet, which the holder, the holder's identity or an agent may start the standard `transferred` cannot say what moved the tokens, and a module counting an investor's own activity must tell these movements apart, so the token reports them here with the kind they were, `FORCED_TRANSFER`, `RECOVERY` or `DELEGATION` from `MovementKindLib`, and the trackers see them under that kind no rule is asked: the token checked the movement itself, see the token the token is trusted with `_kind`: it is the only caller and the kind is its own operation This function can be called ONLY by the token bound to the compliance\",\"params\":{\"_amount\":\"amount of tokens moved\",\"_from\":\"address of the wallet the tokens left\",\"_kind\":\"which operation moved them, a `MovementKindLib` constant\",\"_to\":\"address of the wallet the tokens landed on\"}},\"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\"}},\"callModuleFunction(bytes,address)\":{\"details\":\"calls any function on bound modules can be called only on bound modules\",\"params\":{\"_module\":\"The address of the module Restricted to the configured AccessManager role (OWNER). emits a `ModuleInteraction` event\",\"callData\":\"the bytecode for interaction with the module, abi encoded\"}},\"canSpenderCall(address,address,address,uint256)\":{\"details\":\"checks whether every bound module allows `_spender` to move `_value` from `_from` to `_to`\",\"params\":{\"_from\":\"address of the transfer sender\",\"_spender\":\"address initiating the transfer on behalf of `_from`\",\"_to\":\"address of the transfer receiver\",\"_value\":\"amount of tokens sent only the `SPENDER` modules are consulted, and all of them must agree; they receive the same resolved context as a rule, with the spender as a native ERC-7930 envelope a direct transfer needs no spender check: the spender is the sender, already covered by {canTransfer} returns true when no bound module objects, including when none enforces a spender rule only the bound token may call it, right before its `transferFrom` moves anything: `_spender` is kept for the rest of that transfer, so the `RULE` and `TRACKER` modules see it in their context too\"}},\"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\"}},\"forceRemoveModule(address)\":{\"details\":\"removes a module from the list of compliance modules without calling it, for a module that reverts on `unbindCompliance` or everywhere. The module keeps its own binding record, so the same address cannot be added again; a fresh deployment can.\",\"params\":{\"_module\":\"address of the module to remove Restricted to the configured AccessManager role (OWNER). Emits a ModuleForceRemoved event and no ModuleRemoved, so indexers can tell a forced removal from a regular one\"}},\"getModules()\":{\"details\":\"getter for the modules bound to the compliance contract returns address array of module contracts bound to the compliance\"},\"getModulesByType(uint8)\":{\"details\":\"getter for the bound modules of one type, in the order they were bound\",\"params\":{\"moduleType\":\"which modules to list, see {IModule-ModuleType} a module that named several types appears in each of their lists\"}},\"getTokenBound()\":{\"details\":\"getter for the address of the token bound returns the address of the token\"},\"isModuleBound(address)\":{\"details\":\"checks if a module is bound to the compliance contract returns true if module is bound, false otherwise\"},\"removeModule(address)\":{\"details\":\"removes a module from the list of compliance modules\",\"params\":{\"_module\":\"address of the module to remove Restricted to the configured AccessManager role (OWNER). Emits a ModuleRemoved event\"}},\"resyncModuleTypes(address)\":{\"details\":\"re-reads what a bound module says it is and files it again\",\"params\":{\"_module\":\"address of the bound module to resynchronise a module sits behind a proxy, so an implementation upgrade can change what `moduleTypes` answers while this compliance still routes by what it recorded at binding. Until this is called, the compliance keeps calling the module for a type it dropped, which reverts on every movement, and never calls it for a type it gained removing and re-adding the module is not the same thing: an unbind increments the module's bind nonce, which is how a module scopes its per-compliance settings, so the rebound module comes back unconfigured Restricted to the configured AccessManager role (OWNER). Emits a ModuleTypesRecorded event, including when nothing changed\"}},\"syncOwner(address)\":{\"details\":\"settles who owns a native wallet before tokens land on it outside a movement the compliance hears of, a recall's credit: an empty wallet the registry relinked takes its new owner, a funded one reverts with `WalletBoundToAnotherIdentity` until the registry names the owner the ledger credited. No movement is counted and no module is called. A no-op when the owner has not changed. This function can be called ONLY by the token bound to the compliance\",\"params\":{\"_wallet\":\"the native wallet about to be credited\"}},\"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/compliance/modular/IModularCompliance.sol\":\"IModularCompliance\"},\"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\"]},\"contracts/compliance/modular/IModularCompliance.sol\":{\"keccak256\":\"0x46ee47e1d9e5fb1814298ed1096d6c6d22ebcc020db83a11da1a9eb80990f7bc\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://e1733e3f18c94c1d30c39b9a4ba80154b00d4ab984997e69389cdf8aaf5b20ef\",\"dweb:/ipfs/QmNwboJnoKJ17HkKGSbRd1TnwLQVseS7dgdGb42JE9PvZt\"]},\"contracts/compliance/modular/modules/IModule.sol\":{\"keccak256\":\"0x91eb70604ecba5e99debb76a863eeb4c74d462bf1bd508909897b34e0965123e\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://6c567fcc0a54dbfdc615cd743d2a6514ae2e027154d0670b3b8a928cd9713294\",\"dweb:/ipfs/QmW9FtjwPHyudweKTyNitHkUXiPJh5Xo9j39dyqCUbctwk\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"module","type":"address"}],"type":"error","name":"ComplianceNotSuitableForBindingToModule"},{"inputs":[{"internalType":"uint8","name":"moduleType","type":"uint8"}],"type":"error","name":"DuplicateModuleType"},{"inputs":[{"internalType":"uint256","name":"maxValue","type":"uint256"}],"type":"error","name":"MaxModulesReached"},{"inputs":[],"type":"error","name":"ModuleAlreadyBound"},{"inputs":[],"type":"error","name":"ModuleHasNoType"},{"inputs":[],"type":"error","name":"ModuleNotBound"},{"inputs":[{"internalType":"address","name":"module","type":"address","indexed":true}],"type":"event","name":"ModuleAdded","anonymous":false},{"inputs":[{"internalType":"address","name":"target","type":"address","indexed":true},{"internalType":"bytes","name":"data","type":"bytes","indexed":false}],"type":"event","name":"ModuleInteraction","anonymous":false},{"inputs":[{"internalType":"address","name":"module","type":"address","indexed":true},{"internalType":"enum IModule.ModuleType[]","name":"moduleTypes","type":"uint8[]","indexed":false}],"type":"event","name":"ModuleTypesRecorded","anonymous":false},{"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":"_module","type":"address"},{"internalType":"bytes[]","name":"_interactions","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function","name":"addAndSetModule"},{"inputs":[{"internalType":"address","name":"_module","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"addModule"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint8","name":"_kind","type":"uint8"}],"stateMutability":"nonpayable","type":"function","name":"agentTransferred"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"bindToken"},{"inputs":[{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"address","name":"_module","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"callModuleFunction"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"canSpenderCall","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":"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":[{"internalType":"address","name":"_module","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"forceRemoveModule"},{"inputs":[],"stateMutability":"view","type":"function","name":"getModules","outputs":[{"internalType":"address[]","name":"","type":"address[]"}]},{"inputs":[{"internalType":"enum IModule.ModuleType","name":"moduleType","type":"uint8"}],"stateMutability":"view","type":"function","name":"getModulesByType","outputs":[{"internalType":"address[]","name":"","type":"address[]"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getTokenBound","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_module","type":"address"}],"stateMutability":"view","type":"function","name":"isModuleBound","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"view","type":"function","name":"isTokenBound","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_module","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"removeModule"},{"inputs":[{"internalType":"address","name":"_module","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"resyncModuleTypes"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"syncOwner"},{"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":{"addAndSetModule(address,bytes[])":{"details":"Adds a module to the modular compliance contract and performs multiple interactions with it in a single transaction. This function allows the contract owner to add a new compliance module and immediately configure it by calling specified functions on the module. This can be useful for setting up the module with initial parameters or configurations right after it is added.","params":{"_interactions":"An array of bytecode representing function calls to be made on the module. These interactions are performed after the module is added. Requirements: - The caller must hold the required AccessManager role (OWNER). - The `_module` address must not be a zero address. - The `_module` must not already be bound to the contract. - The total number of modules must not exceed 25 after adding the new module. - The `_interactions` array must contain no more than 5 elements to prevent out-of-gas errors. Operations: - The function first adds the module using the `addModule` function. - Then, it iterates over the `_interactions` array, performing each interaction on the module using the `callModuleFunction`. Emits: - A `ModuleAdded` event upon successful addition of the module. - A `ModuleInteraction` event for each function call made to the module during the interaction phase. Reverts if: - Any of the above requirements are not met. - Any of the module interactions fail during execution.","_module":"The address of the module to add. The module must either be \"plug and play\" or be able to bind with the compliance contract."}},"addModule(address)":{"details":"adds a module to the list of compliance modules","params":{"_module":"address of the module to add there cannot be more than 25 modules bound to the modular compliance for gas cost reasons the module must name at least one type in `moduleTypes`, and it is sorted into the list of each type it names, so the compliance only calls it where it said it answers Restricted to the configured AccessManager role (OWNER). Emits a ModuleAdded event and a ModuleTypesRecorded event"}},"agentTransferred(address,address,uint256,uint8)":{"details":"function called whenever the token moves tokens outside a plain transfer: a forced transfer or a recovery by an agent, or a delegation out to a satellite wallet, which the holder, the holder's identity or an agent may start the standard `transferred` cannot say what moved the tokens, and a module counting an investor's own activity must tell these movements apart, so the token reports them here with the kind they were, `FORCED_TRANSFER`, `RECOVERY` or `DELEGATION` from `MovementKindLib`, and the trackers see them under that kind no rule is asked: the token checked the movement itself, see the token the token is trusted with `_kind`: it is the only caller and the kind is its own operation This function can be called ONLY by the token bound to the compliance","params":{"_amount":"amount of tokens moved","_from":"address of the wallet the tokens left","_kind":"which operation moved them, a `MovementKindLib` constant","_to":"address of the wallet the tokens landed on"}},"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"}},"callModuleFunction(bytes,address)":{"details":"calls any function on bound modules can be called only on bound modules","params":{"_module":"The address of the module Restricted to the configured AccessManager role (OWNER). emits a `ModuleInteraction` event","callData":"the bytecode for interaction with the module, abi encoded"}},"canSpenderCall(address,address,address,uint256)":{"details":"checks whether every bound module allows `_spender` to move `_value` from `_from` to `_to`","params":{"_from":"address of the transfer sender","_spender":"address initiating the transfer on behalf of `_from`","_to":"address of the transfer receiver","_value":"amount of tokens sent only the `SPENDER` modules are consulted, and all of them must agree; they receive the same resolved context as a rule, with the spender as a native ERC-7930 envelope a direct transfer needs no spender check: the spender is the sender, already covered by {canTransfer} returns true when no bound module objects, including when none enforces a spender rule only the bound token may call it, right before its `transferFrom` moves anything: `_spender` is kept for the rest of that transfer, so the `RULE` and `TRACKER` modules see it in their context too"}},"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"}},"forceRemoveModule(address)":{"details":"removes a module from the list of compliance modules without calling it, for a module that reverts on `unbindCompliance` or everywhere. The module keeps its own binding record, so the same address cannot be added again; a fresh deployment can.","params":{"_module":"address of the module to remove Restricted to the configured AccessManager role (OWNER). Emits a ModuleForceRemoved event and no ModuleRemoved, so indexers can tell a forced removal from a regular one"}},"getModules()":{"details":"getter for the modules bound to the compliance contract returns address array of module contracts bound to the compliance"},"getModulesByType(uint8)":{"details":"getter for the bound modules of one type, in the order they were bound","params":{"moduleType":"which modules to list, see {IModule-ModuleType} a module that named several types appears in each of their lists"}},"getTokenBound()":{"details":"getter for the address of the token bound returns the address of the token"},"isModuleBound(address)":{"details":"checks if a module is bound to the compliance contract returns true if module is bound, false otherwise"},"removeModule(address)":{"details":"removes a module from the list of compliance modules","params":{"_module":"address of the module to remove Restricted to the configured AccessManager role (OWNER). Emits a ModuleRemoved event"}},"resyncModuleTypes(address)":{"details":"re-reads what a bound module says it is and files it again","params":{"_module":"address of the bound module to resynchronise a module sits behind a proxy, so an implementation upgrade can change what `moduleTypes` answers while this compliance still routes by what it recorded at binding. Until this is called, the compliance keeps calling the module for a type it dropped, which reverts on every movement, and never calls it for a type it gained removing and re-adding the module is not the same thing: an unbind increments the module's bind nonce, which is how a module scopes its per-compliance settings, so the rebound module comes back unconfigured Restricted to the configured AccessManager role (OWNER). Emits a ModuleTypesRecorded event, including when nothing changed"}},"syncOwner(address)":{"details":"settles who owns a native wallet before tokens land on it outside a movement the compliance hears of, a recall's credit: an empty wallet the registry relinked takes its new owner, a funded one reverts with `WalletBoundToAnotherIdentity` until the registry names the owner the ledger credited. No movement is counted and no module is called. A no-op when the owner has not changed. This function can be called ONLY by the token bound to the compliance","params":{"_wallet":"the native wallet about to be credited"}},"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/compliance/modular/IModularCompliance.sol":"IModularCompliance"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/ERC-3643/IERC3643Compliance.sol":{"keccak256":"0xe8adf70d358e33526f7d823ea5a115c6a82d4682fda3173b0ae75e4ae4a5cf77","urls":["bzz-raw://e926a86ac20200a83f806e7bd031c3b7ef578d5d31a4412cb432238feddf3713","dweb:/ipfs/QmcncZcQZfrV78Tqahe974tcjV8GXVyD7vCZuXXsdDAg33"],"license":"CC0-1.0"},"contracts/compliance/modular/IModularCompliance.sol":{"keccak256":"0x46ee47e1d9e5fb1814298ed1096d6c6d22ebcc020db83a11da1a9eb80990f7bc","urls":["bzz-raw://e1733e3f18c94c1d30c39b9a4ba80154b00d4ab984997e69389cdf8aaf5b20ef","dweb:/ipfs/QmNwboJnoKJ17HkKGSbRd1TnwLQVseS7dgdGb42JE9PvZt"],"license":"GPL-3.0"},"contracts/compliance/modular/modules/IModule.sol":{"keccak256":"0x91eb70604ecba5e99debb76a863eeb4c74d462bf1bd508909897b34e0965123e","urls":["bzz-raw://6c567fcc0a54dbfdc615cd743d2a6514ae2e027154d0670b3b8a928cd9713294","dweb:/ipfs/QmW9FtjwPHyudweKTyNitHkUXiPJh5Xo9j39dyqCUbctwk"],"license":"GPL-3.0"}},"version":1},"id":16}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":[{"type":"function","name":"bindCompliance","inputs":[{"name":"_compliance","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"canComplianceBind","inputs":[{"name":"_compliance","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isComplianceBound","inputs":[{"name":"_compliance","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isPlugAndPlay","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"pure"},{"type":"function","name":"moduleBurnAction","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_value","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"moduleCheck","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_value","type":"uint256","internalType":"uint256"},{"name":"_compliance","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"moduleMintAction","inputs":[{"name":"_to","type":"address","internalType":"address"},{"name":"_value","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"moduleTransferAction","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_value","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"name","inputs":[],"outputs":[{"name":"_name","type":"string","internalType":"string"}],"stateMutability":"pure"},{"type":"function","name":"unbindCompliance","inputs":[{"name":"_compliance","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"bindCompliance(address)":"4a932544","canComplianceBind(address)":"bcc21053","isComplianceBound(address)":"4cf4d295","isPlugAndPlay()":"e6f5e807","moduleBurnAction(address,uint256)":"372491a2","moduleCheck(address,address,uint256,address)":"013b7ce4","moduleMintAction(address,uint256)":"f104a8c9","moduleTransferAction(address,address,uint256)":"2cb7e1ec","name()":"06fdde03","unbindCompliance(address)":"0694a5fb"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_compliance\",\"type\":\"address\"}],\"name\":\"bindCompliance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_compliance\",\"type\":\"address\"}],\"name\":\"canComplianceBind\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_compliance\",\"type\":\"address\"}],\"name\":\"isComplianceBound\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPlugAndPlay\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"moduleBurnAction\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_compliance\",\"type\":\"address\"}],\"name\":\"moduleCheck\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"moduleMintAction\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"moduleTransferAction\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_compliance\",\"type\":\"address\"}],\"name\":\"unbindCompliance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"bindCompliance(address)\":{\"details\":\"binds the module to a compliance contract once the module is bound, the compliance contract can interact with the module this function can be called ONLY by the compliance contract itself (_compliance), through the addModule function, which calls bindCompliance the module cannot be already bound to the compliance\",\"params\":{\"_compliance\":\"address of the compliance contract Emits a ComplianceBound event\"}},\"canComplianceBind(address)\":{\"details\":\"checks whether compliance is suitable to bind to the module.\",\"params\":{\"_compliance\":\"address of the compliance contract\"}},\"isComplianceBound(address)\":{\"details\":\"getter for compliance binding status on module\",\"params\":{\"_compliance\":\"address of the compliance contract\"}},\"isPlugAndPlay()\":{\"details\":\"getter for module plug & play status\"},\"moduleBurnAction(address,uint256)\":{\"details\":\"action performed on the module during a burn action this function is used to update variables of the module upon burning if it is required if the module does not require state updates in case of burn, this function remains empty This function can be called ONLY by the compliance contract itself (_compliance) This function can be called only on a compliance contract that is bound to the module\",\"params\":{\"_from\":\"address on which tokens are burnt\",\"_value\":\"amount of tokens burnt\"}},\"moduleCheck(address,address,uint256,address)\":{\"details\":\"compliance check on the module for a specific transaction on a specific compliance contract this function is used to check if the transfer is allowed by the module This function can be called only on a compliance contract that is bound to the module\",\"params\":{\"_compliance\":\"address of the compliance contract concerned by the transfer action the function returns TRUE if the module allows the transfer, FALSE otherwise\",\"_from\":\"address of the transfer sender\",\"_to\":\"address of the transfer receiver\",\"_value\":\"amount of tokens sent\"}},\"moduleMintAction(address,uint256)\":{\"details\":\"action performed on the module during a mint action this function is used to update variables of the module upon minting if it is required if the module does not require state updates in case of mint, this function remains empty This function can be called ONLY by the compliance contract itself (_compliance) This function can be called only on a compliance contract that is bound to the module\",\"params\":{\"_to\":\"address used for minting\",\"_value\":\"amount of tokens minted\"}},\"moduleTransferAction(address,address,uint256)\":{\"details\":\"action performed on the module during a transfer action this function is used to update variables of the module upon transfer if it is required if the module does not require state updates in case of transfer, this function remains empty This function can be called ONLY by the compliance contract itself (_compliance) This function can be called only on a compliance contract that is bound to the module\",\"params\":{\"_from\":\"address of the transfer sender\",\"_to\":\"address of the transfer receiver\",\"_value\":\"amount of tokens sent\"}},\"name()\":{\"details\":\"getter for the name of the module\",\"returns\":{\"_name\":\"the name of the module\"}},\"unbindCompliance(address)\":{\"details\":\"unbinds the module from a compliance contract once the module is unbound, the compliance contract cannot interact with the module anymore this function can be called ONLY by the compliance contract itself (_compliance), through the removeModule function, which calls unbindCompliance\",\"params\":{\"_compliance\":\"address of the compliance contract Emits a ComplianceUnbound event\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/compliance/modular/modules/IModule.sol\":\"IModule\"},\"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/compliance/modular/modules/IModule.sol\":{\"keccak256\":\"0x876bcb83fdfab1cc98bacb63e536501c557d2f1162b5045cb47cc3183f73ca26\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://800eacedbc6efc92de4a817619eb9e627de84cc3de2adf09f56b372a2e8c4fa8\",\"dweb:/ipfs/QmdPiXAkF5BAPTiJ5F38GZ8HgtupqxUvyjqwUi1E6bcZip\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_compliance","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"bindCompliance"},{"inputs":[{"internalType":"address","name":"_compliance","type":"address"}],"stateMutability":"view","type":"function","name":"canComplianceBind","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_compliance","type":"address"}],"stateMutability":"view","type":"function","name":"isComplianceBound","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[],"stateMutability":"pure","type":"function","name":"isPlugAndPlay","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"moduleBurnAction"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"address","name":"_compliance","type":"address"}],"stateMutability":"view","type":"function","name":"moduleCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"moduleMintAction"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"moduleTransferAction"},{"inputs":[],"stateMutability":"pure","type":"function","name":"name","outputs":[{"internalType":"string","name":"_name","type":"string"}]},{"inputs":[{"internalType":"address","name":"_compliance","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"unbindCompliance"}],"devdoc":{"kind":"dev","methods":{"bindCompliance(address)":{"details":"binds the module to a compliance contract once the module is bound, the compliance contract can interact with the module this function can be called ONLY by the compliance contract itself (_compliance), through the addModule function, which calls bindCompliance the module cannot be already bound to the compliance","params":{"_compliance":"address of the compliance contract Emits a ComplianceBound event"}},"canComplianceBind(address)":{"details":"checks whether compliance is suitable to bind to the module.","params":{"_compliance":"address of the compliance contract"}},"isComplianceBound(address)":{"details":"getter for compliance binding status on module","params":{"_compliance":"address of the compliance contract"}},"isPlugAndPlay()":{"details":"getter for module plug & play status"},"moduleBurnAction(address,uint256)":{"details":"action performed on the module during a burn action this function is used to update variables of the module upon burning if it is required if the module does not require state updates in case of burn, this function remains empty This function can be called ONLY by the compliance contract itself (_compliance) This function can be called only on a compliance contract that is bound to the module","params":{"_from":"address on which tokens are burnt","_value":"amount of tokens burnt"}},"moduleCheck(address,address,uint256,address)":{"details":"compliance check on the module for a specific transaction on a specific compliance contract this function is used to check if the transfer is allowed by the module This function can be called only on a compliance contract that is bound to the module","params":{"_compliance":"address of the compliance contract concerned by the transfer action the function returns TRUE if the module allows the transfer, FALSE otherwise","_from":"address of the transfer sender","_to":"address of the transfer receiver","_value":"amount of tokens sent"}},"moduleMintAction(address,uint256)":{"details":"action performed on the module during a mint action this function is used to update variables of the module upon minting if it is required if the module does not require state updates in case of mint, this function remains empty This function can be called ONLY by the compliance contract itself (_compliance) This function can be called only on a compliance contract that is bound to the module","params":{"_to":"address used for minting","_value":"amount of tokens minted"}},"moduleTransferAction(address,address,uint256)":{"details":"action performed on the module during a transfer action this function is used to update variables of the module upon transfer if it is required if the module does not require state updates in case of transfer, this function remains empty This function can be called ONLY by the compliance contract itself (_compliance) This function can be called only on a compliance contract that is bound to the module","params":{"_from":"address of the transfer sender","_to":"address of the transfer receiver","_value":"amount of tokens sent"}},"name()":{"details":"getter for the name of the module","returns":{"_name":"the name of the module"}},"unbindCompliance(address)":{"details":"unbinds the module from a compliance contract once the module is unbound, the compliance contract cannot interact with the module anymore this function can be called ONLY by the compliance contract itself (_compliance), through the removeModule function, which calls unbindCompliance","params":{"_compliance":"address of the compliance contract Emits a ComplianceUnbound event"}}},"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/compliance/modular/modules/IModule.sol":"IModule"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/compliance/modular/modules/IModule.sol":{"keccak256":"0x876bcb83fdfab1cc98bacb63e536501c557d2f1162b5045cb47cc3183f73ca26","urls":["bzz-raw://800eacedbc6efc92de4a817619eb9e627de84cc3de2adf09f56b372a2e8c4fa8","dweb:/ipfs/QmdPiXAkF5BAPTiJ5F38GZ8HgtupqxUvyjqwUi1E6bcZip"],"license":"GPL-3.0"}},"version":1},"id":10}
|
|
1
|
+
{"abi":[{"type":"function","name":"afterTransfer","inputs":[{"name":"ctx","type":"tuple","internalType":"struct IModule.TransferContext","components":[{"name":"compliance","type":"address","internalType":"address"},{"name":"fromIdentity","type":"address","internalType":"address"},{"name":"toIdentity","type":"address","internalType":"address"},{"name":"fromWallet","type":"bytes32","internalType":"bytes32"},{"name":"toWallet","type":"bytes32","internalType":"bytes32"},{"name":"amountMin","type":"uint256","internalType":"uint256"},{"name":"amountMax","type":"uint256","internalType":"uint256"},{"name":"kind","type":"uint8","internalType":"uint8"},{"name":"isIssuance","type":"bool","internalType":"bool"},{"name":"spender","type":"bytes","internalType":"bytes"},{"name":"data","type":"bytes","internalType":"bytes"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"allowedAmount","inputs":[{"name":"ctx","type":"tuple","internalType":"struct IModule.TransferContext","components":[{"name":"compliance","type":"address","internalType":"address"},{"name":"fromIdentity","type":"address","internalType":"address"},{"name":"toIdentity","type":"address","internalType":"address"},{"name":"fromWallet","type":"bytes32","internalType":"bytes32"},{"name":"toWallet","type":"bytes32","internalType":"bytes32"},{"name":"amountMin","type":"uint256","internalType":"uint256"},{"name":"amountMax","type":"uint256","internalType":"uint256"},{"name":"kind","type":"uint8","internalType":"uint8"},{"name":"isIssuance","type":"bool","internalType":"bool"},{"name":"spender","type":"bytes","internalType":"bytes"},{"name":"data","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"bindCompliance","inputs":[{"name":"_compliance","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"canComplianceBind","inputs":[{"name":"_compliance","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isComplianceBound","inputs":[{"name":"_compliance","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isPlugAndPlay","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"pure"},{"type":"function","name":"moduleCheckSpender","inputs":[{"name":"ctx","type":"tuple","internalType":"struct IModule.TransferContext","components":[{"name":"compliance","type":"address","internalType":"address"},{"name":"fromIdentity","type":"address","internalType":"address"},{"name":"toIdentity","type":"address","internalType":"address"},{"name":"fromWallet","type":"bytes32","internalType":"bytes32"},{"name":"toWallet","type":"bytes32","internalType":"bytes32"},{"name":"amountMin","type":"uint256","internalType":"uint256"},{"name":"amountMax","type":"uint256","internalType":"uint256"},{"name":"kind","type":"uint8","internalType":"uint8"},{"name":"isIssuance","type":"bool","internalType":"bool"},{"name":"spender","type":"bytes","internalType":"bytes"},{"name":"data","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"moduleTypes","inputs":[],"outputs":[{"name":"","type":"uint8[]","internalType":"enum IModule.ModuleType[]"}],"stateMutability":"pure"},{"type":"function","name":"name","inputs":[],"outputs":[{"name":"_name","type":"string","internalType":"string"}],"stateMutability":"pure"},{"type":"function","name":"unbindCompliance","inputs":[{"name":"_compliance","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"afterTransfer((address,address,address,bytes32,bytes32,uint256,uint256,uint8,bool,bytes,bytes))":"e57baddf","allowedAmount((address,address,address,bytes32,bytes32,uint256,uint256,uint8,bool,bytes,bytes))":"4dbfdb34","bindCompliance(address)":"4a932544","canComplianceBind(address)":"bcc21053","isComplianceBound(address)":"4cf4d295","isPlugAndPlay()":"e6f5e807","moduleCheckSpender((address,address,address,bytes32,bytes32,uint256,uint256,uint8,bool,bytes,bytes))":"69498ea5","moduleTypes()":"c7c37b2f","name()":"06fdde03","unbindCompliance(address)":"0694a5fb"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"compliance\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"fromIdentity\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"toIdentity\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"fromWallet\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"toWallet\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amountMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountMax\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"isIssuance\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"spender\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct IModule.TransferContext\",\"name\":\"ctx\",\"type\":\"tuple\"}],\"name\":\"afterTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"compliance\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"fromIdentity\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"toIdentity\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"fromWallet\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"toWallet\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amountMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountMax\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"isIssuance\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"spender\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct IModule.TransferContext\",\"name\":\"ctx\",\"type\":\"tuple\"}],\"name\":\"allowedAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_compliance\",\"type\":\"address\"}],\"name\":\"bindCompliance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_compliance\",\"type\":\"address\"}],\"name\":\"canComplianceBind\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_compliance\",\"type\":\"address\"}],\"name\":\"isComplianceBound\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isPlugAndPlay\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"compliance\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"fromIdentity\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"toIdentity\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"fromWallet\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"toWallet\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amountMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountMax\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"isIssuance\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"spender\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct IModule.TransferContext\",\"name\":\"ctx\",\"type\":\"tuple\"}],\"name\":\"moduleCheckSpender\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"moduleTypes\",\"outputs\":[{\"internalType\":\"enum IModule.ModuleType[]\",\"name\":\"\",\"type\":\"uint8[]\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_compliance\",\"type\":\"address\"}],\"name\":\"unbindCompliance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Everything a compliance module implements. One interface, no sub-interfaces, no bitmask. A module says what it is through {moduleTypes}, read once at binding, and the compliance calls it only where it said so: - `RULE`: asked {allowedAmount}, the largest amount it allows; the compliance takes the minimum; - `SPENDER`: asked {moduleCheckSpender}, whether the operator named in the context may execute the movement; - `TRACKER`: told {afterTransfer} after the ledger moved. A module never calls another module. It reads the compliance's ledger ({IComplianceLedger}: position and pending amounts per identity) and the token's identity registry, and keeps nothing but its own settings and its own counters. Reserve before calling out. A module that accumulates state in its own storage (a per-period counter, a window) must record the amount BEFORE it makes any external call, and rely on transaction rollback to undo that record if the operation later fails. The token wraps each operation in a reentrancy guard, so a callback cannot reenter the token itself. That guard does not extend to calls a module makes to other contracts, which is why the discipline is required here rather than assumed from the guard.\",\"kind\":\"dev\",\"methods\":{\"afterTransfer((address,address,address,bytes32,bytes32,uint256,uint256,uint8,bool,bytes,bytes))\":{\"details\":\"the ledger moved. Called on every `TRACKER` module after the compliance updated the positions, on a native transfer, a mint, a burn, a forced transfer, a recovery and a settled validation the movement is entirely in `ctx`: `ctx.amountMax` is the exact amount that moved, `ctx.kind` says what produced it, a zero `fromIdentity` and `fromWallet` mean a mint, a zero `toIdentity` and `toWallet` mean a burn. That is the convention {allowedAmount} already uses, so one function covers what three hooks used to reverting stops the movement: a module that cannot record a move has to stop it. `forceRemoveModule` is the escape hatch for a module that reverts everywhere MUST NOT revert on a `ctx.kind` it does not know: a kind added later has to keep moving through modules deployed before it. The module decides what an unknown kind means for its own count, on purpose: left out, like an agent's movement, or recorded, like any change of ownership This function can be called ONLY by the compliance contract itself\",\"params\":{\"ctx\":\"the movement, see {TransferContext}; `amountMin == amountMax`\"}},\"allowedAmount((address,address,address,bytes32,bytes32,uint256,uint256,uint8,bool,bytes,bytes))\":{\"details\":\"the largest amount this rule allows to move. Called on every `RULE` module, on a native transfer and a mint (`canTransfer`) and on the issuance of a validation (`ctx.isIssuance` set) the compliance takes the minimum over the declaring modules: a native movement passes when `amountMax` is at most that minimum; an issuance narrows its range to `[amountMin, minimum]` `type(uint256).max` means no limit, 0 means refused the rule has to be monotonic: a smaller amount is never less acceptable than a larger one. A rule that is not (a multiple of some unit, for instance) evaluates `ctx.amountMax` and returns `max` or 0, and refuses an issuance whose range is not a point (`ctx.amountMin != ctx.amountMax`), since the satellite may execute any amount inside the range identities arrive resolved and the ledger describes the state before the move a native movement between two wallets of one identity (`ctx.fromIdentity == ctx.toIdentity`, non-zero) reaches this function and a rule about distribution answers `max` on it; the issuance of such a movement does not, because it changes no position MUST be a view: the compliance calls it under `staticcall` and a module that writes there reverts MUST NOT revert on a `ctx.kind` it does not know; it answers for it like for any kind it was not written about\",\"params\":{\"ctx\":\"the movement, see {TransferContext}\"},\"returns\":{\"_0\":\"the largest amount allowed\"}},\"bindCompliance(address)\":{\"details\":\"binds the module to a compliance contract once the module is bound, the compliance contract can interact with the module this function can be called ONLY by the compliance contract itself (_compliance), through the addModule function, which calls bindCompliance the module cannot be already bound to the compliance\",\"params\":{\"_compliance\":\"address of the compliance contract Emits a ComplianceBound event\"}},\"canComplianceBind(address)\":{\"details\":\"checks whether compliance is suitable to bind to the module.\",\"params\":{\"_compliance\":\"address of the compliance contract\"}},\"isComplianceBound(address)\":{\"details\":\"getter for compliance binding status on module\",\"params\":{\"_compliance\":\"address of the compliance contract\"}},\"isPlugAndPlay()\":{\"details\":\"getter for module plug & play status\"},\"moduleCheckSpender((address,address,address,bytes32,bytes32,uint256,uint256,uint8,bool,bytes,bytes))\":{\"details\":\"whether `ctx.spender` may execute the movement on the sender's behalf. Called on every `SPENDER` module from `canSpenderCall`, which the token runs before spending an allowance in `transferFrom`, and at the issuance of a validation that names a spender (`ctx.isIssuance` set), since no module runs on the satellite and issuance is the only place that spender can be refused all declaring modules must agree. A direct transfer never reaches this path: the spender is the sender `ctx.spender` is never empty here MUST be a view: the compliance calls it under `staticcall` MUST NOT revert on a `ctx.kind` it does not know\",\"params\":{\"ctx\":\"the movement, see {TransferContext}\"},\"returns\":{\"_0\":\"true if the module allows the spender to execute it, false otherwise\"}},\"moduleTypes()\":{\"details\":\"what this module is, see {ModuleType} the compliance reads it once, at binding, and routes the module accordingly. A module that names none is refused, and so is one naming the same type twice MUST be pure: a value read from storage would let the recorded routing drift from the real behaviour\",\"returns\":{\"_0\":\"the types this module implements\"}},\"name()\":{\"details\":\"getter for the name of the module\",\"returns\":{\"_name\":\"the name of the module\"}},\"unbindCompliance(address)\":{\"details\":\"unbinds the module from a compliance contract once the module is unbound, the compliance contract cannot interact with the module anymore this function can be called ONLY by the compliance contract itself (_compliance), through the removeModule function, which calls unbindCompliance\",\"params\":{\"_compliance\":\"address of the compliance contract Emits a ComplianceUnbound event\"}}},\"title\":\"IModule\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/compliance/modular/modules/IModule.sol\":\"IModule\"},\"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/compliance/modular/modules/IModule.sol\":{\"keccak256\":\"0x91eb70604ecba5e99debb76a863eeb4c74d462bf1bd508909897b34e0965123e\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://6c567fcc0a54dbfdc615cd743d2a6514ae2e027154d0670b3b8a928cd9713294\",\"dweb:/ipfs/QmW9FtjwPHyudweKTyNitHkUXiPJh5Xo9j39dyqCUbctwk\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"struct IModule.TransferContext","name":"ctx","type":"tuple","components":[{"internalType":"address","name":"compliance","type":"address"},{"internalType":"address","name":"fromIdentity","type":"address"},{"internalType":"address","name":"toIdentity","type":"address"},{"internalType":"bytes32","name":"fromWallet","type":"bytes32"},{"internalType":"bytes32","name":"toWallet","type":"bytes32"},{"internalType":"uint256","name":"amountMin","type":"uint256"},{"internalType":"uint256","name":"amountMax","type":"uint256"},{"internalType":"uint8","name":"kind","type":"uint8"},{"internalType":"bool","name":"isIssuance","type":"bool"},{"internalType":"bytes","name":"spender","type":"bytes"},{"internalType":"bytes","name":"data","type":"bytes"}]}],"stateMutability":"nonpayable","type":"function","name":"afterTransfer"},{"inputs":[{"internalType":"struct IModule.TransferContext","name":"ctx","type":"tuple","components":[{"internalType":"address","name":"compliance","type":"address"},{"internalType":"address","name":"fromIdentity","type":"address"},{"internalType":"address","name":"toIdentity","type":"address"},{"internalType":"bytes32","name":"fromWallet","type":"bytes32"},{"internalType":"bytes32","name":"toWallet","type":"bytes32"},{"internalType":"uint256","name":"amountMin","type":"uint256"},{"internalType":"uint256","name":"amountMax","type":"uint256"},{"internalType":"uint8","name":"kind","type":"uint8"},{"internalType":"bool","name":"isIssuance","type":"bool"},{"internalType":"bytes","name":"spender","type":"bytes"},{"internalType":"bytes","name":"data","type":"bytes"}]}],"stateMutability":"view","type":"function","name":"allowedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"_compliance","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"bindCompliance"},{"inputs":[{"internalType":"address","name":"_compliance","type":"address"}],"stateMutability":"view","type":"function","name":"canComplianceBind","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"_compliance","type":"address"}],"stateMutability":"view","type":"function","name":"isComplianceBound","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[],"stateMutability":"pure","type":"function","name":"isPlugAndPlay","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"struct IModule.TransferContext","name":"ctx","type":"tuple","components":[{"internalType":"address","name":"compliance","type":"address"},{"internalType":"address","name":"fromIdentity","type":"address"},{"internalType":"address","name":"toIdentity","type":"address"},{"internalType":"bytes32","name":"fromWallet","type":"bytes32"},{"internalType":"bytes32","name":"toWallet","type":"bytes32"},{"internalType":"uint256","name":"amountMin","type":"uint256"},{"internalType":"uint256","name":"amountMax","type":"uint256"},{"internalType":"uint8","name":"kind","type":"uint8"},{"internalType":"bool","name":"isIssuance","type":"bool"},{"internalType":"bytes","name":"spender","type":"bytes"},{"internalType":"bytes","name":"data","type":"bytes"}]}],"stateMutability":"view","type":"function","name":"moduleCheckSpender","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[],"stateMutability":"pure","type":"function","name":"moduleTypes","outputs":[{"internalType":"enum IModule.ModuleType[]","name":"","type":"uint8[]"}]},{"inputs":[],"stateMutability":"pure","type":"function","name":"name","outputs":[{"internalType":"string","name":"_name","type":"string"}]},{"inputs":[{"internalType":"address","name":"_compliance","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"unbindCompliance"}],"devdoc":{"kind":"dev","methods":{"afterTransfer((address,address,address,bytes32,bytes32,uint256,uint256,uint8,bool,bytes,bytes))":{"details":"the ledger moved. Called on every `TRACKER` module after the compliance updated the positions, on a native transfer, a mint, a burn, a forced transfer, a recovery and a settled validation the movement is entirely in `ctx`: `ctx.amountMax` is the exact amount that moved, `ctx.kind` says what produced it, a zero `fromIdentity` and `fromWallet` mean a mint, a zero `toIdentity` and `toWallet` mean a burn. That is the convention {allowedAmount} already uses, so one function covers what three hooks used to reverting stops the movement: a module that cannot record a move has to stop it. `forceRemoveModule` is the escape hatch for a module that reverts everywhere MUST NOT revert on a `ctx.kind` it does not know: a kind added later has to keep moving through modules deployed before it. The module decides what an unknown kind means for its own count, on purpose: left out, like an agent's movement, or recorded, like any change of ownership This function can be called ONLY by the compliance contract itself","params":{"ctx":"the movement, see {TransferContext}; `amountMin == amountMax`"}},"allowedAmount((address,address,address,bytes32,bytes32,uint256,uint256,uint8,bool,bytes,bytes))":{"details":"the largest amount this rule allows to move. Called on every `RULE` module, on a native transfer and a mint (`canTransfer`) and on the issuance of a validation (`ctx.isIssuance` set) the compliance takes the minimum over the declaring modules: a native movement passes when `amountMax` is at most that minimum; an issuance narrows its range to `[amountMin, minimum]` `type(uint256).max` means no limit, 0 means refused the rule has to be monotonic: a smaller amount is never less acceptable than a larger one. A rule that is not (a multiple of some unit, for instance) evaluates `ctx.amountMax` and returns `max` or 0, and refuses an issuance whose range is not a point (`ctx.amountMin != ctx.amountMax`), since the satellite may execute any amount inside the range identities arrive resolved and the ledger describes the state before the move a native movement between two wallets of one identity (`ctx.fromIdentity == ctx.toIdentity`, non-zero) reaches this function and a rule about distribution answers `max` on it; the issuance of such a movement does not, because it changes no position MUST be a view: the compliance calls it under `staticcall` and a module that writes there reverts MUST NOT revert on a `ctx.kind` it does not know; it answers for it like for any kind it was not written about","params":{"ctx":"the movement, see {TransferContext}"},"returns":{"_0":"the largest amount allowed"}},"bindCompliance(address)":{"details":"binds the module to a compliance contract once the module is bound, the compliance contract can interact with the module this function can be called ONLY by the compliance contract itself (_compliance), through the addModule function, which calls bindCompliance the module cannot be already bound to the compliance","params":{"_compliance":"address of the compliance contract Emits a ComplianceBound event"}},"canComplianceBind(address)":{"details":"checks whether compliance is suitable to bind to the module.","params":{"_compliance":"address of the compliance contract"}},"isComplianceBound(address)":{"details":"getter for compliance binding status on module","params":{"_compliance":"address of the compliance contract"}},"isPlugAndPlay()":{"details":"getter for module plug & play status"},"moduleCheckSpender((address,address,address,bytes32,bytes32,uint256,uint256,uint8,bool,bytes,bytes))":{"details":"whether `ctx.spender` may execute the movement on the sender's behalf. Called on every `SPENDER` module from `canSpenderCall`, which the token runs before spending an allowance in `transferFrom`, and at the issuance of a validation that names a spender (`ctx.isIssuance` set), since no module runs on the satellite and issuance is the only place that spender can be refused all declaring modules must agree. A direct transfer never reaches this path: the spender is the sender `ctx.spender` is never empty here MUST be a view: the compliance calls it under `staticcall` MUST NOT revert on a `ctx.kind` it does not know","params":{"ctx":"the movement, see {TransferContext}"},"returns":{"_0":"true if the module allows the spender to execute it, false otherwise"}},"moduleTypes()":{"details":"what this module is, see {ModuleType} the compliance reads it once, at binding, and routes the module accordingly. A module that names none is refused, and so is one naming the same type twice MUST be pure: a value read from storage would let the recorded routing drift from the real behaviour","returns":{"_0":"the types this module implements"}},"name()":{"details":"getter for the name of the module","returns":{"_name":"the name of the module"}},"unbindCompliance(address)":{"details":"unbinds the module from a compliance contract once the module is unbound, the compliance contract cannot interact with the module anymore this function can be called ONLY by the compliance contract itself (_compliance), through the removeModule function, which calls unbindCompliance","params":{"_compliance":"address of the compliance contract Emits a ComplianceUnbound event"}}},"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/compliance/modular/modules/IModule.sol":"IModule"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/compliance/modular/modules/IModule.sol":{"keccak256":"0x91eb70604ecba5e99debb76a863eeb4c74d462bf1bd508909897b34e0965123e","urls":["bzz-raw://6c567fcc0a54dbfdc615cd743d2a6514ae2e027154d0670b3b8a928cd9713294","dweb:/ipfs/QmW9FtjwPHyudweKTyNitHkUXiPJh5Xo9j39dyqCUbctwk"],"license":"GPL-3.0"}},"version":1},"id":25}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":[{"type":"function","name":"aggregate","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"},{"name":"returnData","type":"bytes[]","internalType":"bytes[]"}],"stateMutability":"payable"},{"type":"function","name":"aggregate3","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call3[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"allowFailure","type":"bool","internalType":"bool"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"aggregate3Value","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call3Value[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"allowFailure","type":"bool","internalType":"bool"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"blockAndAggregate","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"},{"name":"blockHash","type":"bytes32","internalType":"bytes32"},{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"getBasefee","inputs":[],"outputs":[{"name":"basefee","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getBlockHash","inputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"blockHash","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"getBlockNumber","inputs":[],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getChainId","inputs":[],"outputs":[{"name":"chainid","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockCoinbase","inputs":[],"outputs":[{"name":"coinbase","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockDifficulty","inputs":[],"outputs":[{"name":"difficulty","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockGasLimit","inputs":[],"outputs":[{"name":"gaslimit","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockTimestamp","inputs":[],"outputs":[{"name":"timestamp","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getEthBalance","inputs":[{"name":"addr","type":"address","internalType":"address"}],"outputs":[{"name":"balance","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getLastBlockHash","inputs":[],"outputs":[{"name":"blockHash","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"tryAggregate","inputs":[{"name":"requireSuccess","type":"bool","internalType":"bool"},{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"tryBlockAndAggregate","inputs":[{"name":"requireSuccess","type":"bool","internalType":"bool"},{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"},{"name":"blockHash","type":"bytes32","internalType":"bytes32"},{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"aggregate((address,bytes)[])":"252dba42","aggregate3((address,bool,bytes)[])":"82ad56cb","aggregate3Value((address,bool,uint256,bytes)[])":"174dea71","blockAndAggregate((address,bytes)[])":"c3077fa9","getBasefee()":"3e64a696","getBlockHash(uint256)":"ee82ac5e","getBlockNumber()":"42cbb15c","getChainId()":"3408e470","getCurrentBlockCoinbase()":"a8b0574e","getCurrentBlockDifficulty()":"72425d9d","getCurrentBlockGasLimit()":"86d516e8","getCurrentBlockTimestamp()":"0f28c97d","getEthBalance(address)":"4d2301cc","getLastBlockHash()":"27e86d6e","tryAggregate(bool,(address,bytes)[])":"bce38bd7","tryBlockAndAggregate(bool,(address,bytes)[])":"399542e9"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"returnData\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call3[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call3Value[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3Value\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"blockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"basefee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"chainid\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockCoinbase\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"coinbase\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"difficulty\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockGasLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gaslimit\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getEthBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryAggregate\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryBlockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"dependencies/forge-std-1.12.0/src/interfaces/IMulticall3.sol\":\"IMulticall3\"},\"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\":{\"dependencies/forge-std-1.12.0/src/interfaces/IMulticall3.sol\":{\"keccak256\":\"0xeb0daba50f85adb160209f03ebf7b3b548e09651aa799087795daf17b1495c7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8b5b356871e51267728d69c662d8d8ce653dd0a8edc47098b6f8064ea1173e28\",\"dweb:/ipfs/QmRJTAmV68NYGSkDGKrGpsJnEZ8wQF4dDCevXGtNU4RWtQ\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"aggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}]},{"inputs":[{"internalType":"struct IMulticall3.Call3[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"allowFailure","type":"bool"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"aggregate3","outputs":[{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[{"internalType":"struct IMulticall3.Call3Value[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"allowFailure","type":"bool"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"aggregate3Value","outputs":[{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"blockAndAggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getBasefee","outputs":[{"internalType":"uint256","name":"basefee","type":"uint256"}]},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"stateMutability":"view","type":"function","name":"getBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getBlockNumber","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getChainId","outputs":[{"internalType":"uint256","name":"chainid","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockCoinbase","outputs":[{"internalType":"address","name":"coinbase","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockDifficulty","outputs":[{"internalType":"uint256","name":"difficulty","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockGasLimit","outputs":[{"internalType":"uint256","name":"gaslimit","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"stateMutability":"view","type":"function","name":"getEthBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getLastBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}]},{"inputs":[{"internalType":"bool","name":"requireSuccess","type":"bool"},{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"tryAggregate","outputs":[{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[{"internalType":"bool","name":"requireSuccess","type":"bool"},{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"tryBlockAndAggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]}],"devdoc":{"kind":"dev","methods":{},"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":{"dependencies/forge-std-1.12.0/src/interfaces/IMulticall3.sol":"IMulticall3"},"evmVersion":"cancun","libraries":{}},"sources":{"dependencies/forge-std-1.12.0/src/interfaces/IMulticall3.sol":{"keccak256":"0xeb0daba50f85adb160209f03ebf7b3b548e09651aa799087795daf17b1495c7a","urls":["bzz-raw://8b5b356871e51267728d69c662d8d8ce653dd0a8edc47098b6f8064ea1173e28","dweb:/ipfs/QmRJTAmV68NYGSkDGKrGpsJnEZ8wQF4dDCevXGtNU4RWtQ"],"license":"MIT"}},"version":1},"id":126}
|
|
1
|
+
{"abi":[{"type":"function","name":"aggregate","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"},{"name":"returnData","type":"bytes[]","internalType":"bytes[]"}],"stateMutability":"payable"},{"type":"function","name":"aggregate3","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call3[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"allowFailure","type":"bool","internalType":"bool"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"aggregate3Value","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call3Value[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"allowFailure","type":"bool","internalType":"bool"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"blockAndAggregate","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"},{"name":"blockHash","type":"bytes32","internalType":"bytes32"},{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"getBasefee","inputs":[],"outputs":[{"name":"basefee","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getBlockHash","inputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"blockHash","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"getBlockNumber","inputs":[],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getChainId","inputs":[],"outputs":[{"name":"chainid","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockCoinbase","inputs":[],"outputs":[{"name":"coinbase","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockDifficulty","inputs":[],"outputs":[{"name":"difficulty","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockGasLimit","inputs":[],"outputs":[{"name":"gaslimit","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockTimestamp","inputs":[],"outputs":[{"name":"timestamp","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getEthBalance","inputs":[{"name":"addr","type":"address","internalType":"address"}],"outputs":[{"name":"balance","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getLastBlockHash","inputs":[],"outputs":[{"name":"blockHash","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"tryAggregate","inputs":[{"name":"requireSuccess","type":"bool","internalType":"bool"},{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"tryBlockAndAggregate","inputs":[{"name":"requireSuccess","type":"bool","internalType":"bool"},{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"},{"name":"blockHash","type":"bytes32","internalType":"bytes32"},{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"aggregate((address,bytes)[])":"252dba42","aggregate3((address,bool,bytes)[])":"82ad56cb","aggregate3Value((address,bool,uint256,bytes)[])":"174dea71","blockAndAggregate((address,bytes)[])":"c3077fa9","getBasefee()":"3e64a696","getBlockHash(uint256)":"ee82ac5e","getBlockNumber()":"42cbb15c","getChainId()":"3408e470","getCurrentBlockCoinbase()":"a8b0574e","getCurrentBlockDifficulty()":"72425d9d","getCurrentBlockGasLimit()":"86d516e8","getCurrentBlockTimestamp()":"0f28c97d","getEthBalance(address)":"4d2301cc","getLastBlockHash()":"27e86d6e","tryAggregate(bool,(address,bytes)[])":"bce38bd7","tryBlockAndAggregate(bool,(address,bytes)[])":"399542e9"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"returnData\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call3[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call3Value[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3Value\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"blockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"basefee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"chainid\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockCoinbase\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"coinbase\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"difficulty\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockGasLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gaslimit\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getEthBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryAggregate\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryBlockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"dependencies/forge-std-1.16.2/src/interfaces/IMulticall3.sol\":\"IMulticall3\"},\"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\":{\"dependencies/forge-std-1.16.2/src/interfaces/IMulticall3.sol\":{\"keccak256\":\"0x946a8ca9f2e2c69d9d70280de4b599b6396c18770d290bc0506572e66a316e42\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://6ba843a261e1c249858a0ebd81eb52e1519dc21ab630ca815697cf358375aceb\",\"dweb:/ipfs/QmeJoNPhPD4oRwnirwDzzakapZrFQwsA7pQqQYwyDmGq42\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"aggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}]},{"inputs":[{"internalType":"struct IMulticall3.Call3[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"allowFailure","type":"bool"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"aggregate3","outputs":[{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[{"internalType":"struct IMulticall3.Call3Value[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"allowFailure","type":"bool"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"aggregate3Value","outputs":[{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"blockAndAggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getBasefee","outputs":[{"internalType":"uint256","name":"basefee","type":"uint256"}]},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"stateMutability":"view","type":"function","name":"getBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getBlockNumber","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getChainId","outputs":[{"internalType":"uint256","name":"chainid","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockCoinbase","outputs":[{"internalType":"address","name":"coinbase","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockDifficulty","outputs":[{"internalType":"uint256","name":"difficulty","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockGasLimit","outputs":[{"internalType":"uint256","name":"gaslimit","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"stateMutability":"view","type":"function","name":"getEthBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getLastBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}]},{"inputs":[{"internalType":"bool","name":"requireSuccess","type":"bool"},{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"tryAggregate","outputs":[{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[{"internalType":"bool","name":"requireSuccess","type":"bool"},{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"tryBlockAndAggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]}],"devdoc":{"kind":"dev","methods":{},"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":{"dependencies/forge-std-1.16.2/src/interfaces/IMulticall3.sol":"IMulticall3"},"evmVersion":"cancun","libraries":{}},"sources":{"dependencies/forge-std-1.16.2/src/interfaces/IMulticall3.sol":{"keccak256":"0x946a8ca9f2e2c69d9d70280de4b599b6396c18770d290bc0506572e66a316e42","urls":["bzz-raw://6ba843a261e1c249858a0ebd81eb52e1519dc21ab630ca815697cf358375aceb","dweb:/ipfs/QmeJoNPhPD4oRwnirwDzzakapZrFQwsA7pQqQYwyDmGq42"],"license":"MIT OR Apache-2.0"}},"version":1},"id":170}
|