@t-rex-network/t-rex 4.2.0-beta1 → 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 +24 -27
- 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 +14 -11
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"abi":[{"type":"function","name":"claimAddThreshold","inputs":[],"outputs":[{"name":"","type":"uint128","internalType":"uint128"}],"stateMutability":"view"},{"type":"function","name":"defaultFor","inputs":[{"name":"identityType","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint128","internalType":"uint128"}],"stateMutability":"view"},{"type":"function","name":"entryOf","inputs":[{"name":"identity","type":"address","internalType":"address"}],"outputs":[{"name":"score","type":"uint128","internalType":"uint128"},{"name":"setAt","type":"uint128","internalType":"uint128"}],"stateMutability":"view"},{"type":"function","name":"reputationOf","inputs":[{"name":"identity","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint128","internalType":"uint128"}],"stateMutability":"view"},{"type":"function","name":"setClaimAddThreshold","inputs":[{"name":"newThreshold","type":"uint128","internalType":"uint128"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setDefault","inputs":[{"name":"identityType","type":"uint256","internalType":"uint256"},{"name":"newDefault","type":"uint128","internalType":"uint128"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setReputation","inputs":[{"name":"identity","type":"address","internalType":"address"},{"name":"newScore","type":"uint128","internalType":"uint128"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ClaimAddThresholdSet","inputs":[{"name":"oldThreshold","type":"uint128","indexed":false,"internalType":"uint128"},{"name":"newThreshold","type":"uint128","indexed":false,"internalType":"uint128"},{"name":"setter","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"DefaultSet","inputs":[{"name":"identityType","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"oldDefault","type":"uint128","indexed":false,"internalType":"uint128"},{"name":"newDefault","type":"uint128","indexed":false,"internalType":"uint128"},{"name":"setter","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"ReputationSet","inputs":[{"name":"identity","type":"address","indexed":true,"internalType":"address"},{"name":"oldScore","type":"uint128","indexed":false,"internalType":"uint128"},{"name":"newScore","type":"uint128","indexed":false,"internalType":"uint128"},{"name":"setter","type":"address","indexed":true,"internalType":"address"}],"anonymous":false}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"claimAddThreshold()":"60a67aee","defaultFor(uint256)":"3cbb2fc5","entryOf(address)":"58bb388a","reputationOf(address)":"db89c044","setClaimAddThreshold(uint128)":"0142ae48","setDefault(uint256,uint128)":"289abc81","setReputation(address,uint128)":"248369af"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldThreshold\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newThreshold\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"setter\",\"type\":\"address\"}],\"name\":\"ClaimAddThresholdSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"identityType\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldDefault\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newDefault\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"setter\",\"type\":\"address\"}],\"name\":\"DefaultSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"identity\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldScore\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newScore\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"setter\",\"type\":\"address\"}],\"name\":\"ReputationSet\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"claimAddThreshold\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"identityType\",\"type\":\"uint256\"}],\"name\":\"defaultFor\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"identity\",\"type\":\"address\"}],\"name\":\"entryOf\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"score\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"setAt\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"identity\",\"type\":\"address\"}],\"name\":\"reputationOf\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"newThreshold\",\"type\":\"uint128\"}],\"name\":\"setClaimAddThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"identityType\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"newDefault\",\"type\":\"uint128\"}],\"name\":\"setDefault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"identity\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"newScore\",\"type\":\"uint128\"}],\"name\":\"setReputation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"ClaimAddThresholdSet(uint128,uint128,address)\":{\"params\":{\"newThreshold\":\"New threshold.\",\"oldThreshold\":\"Previous threshold.\",\"setter\":\"`msg.sender` on the call that produced the change.\"}},\"DefaultSet(uint256,uint128,uint128,address)\":{\"params\":{\"identityType\":\"The identity type whose default changed.\",\"newDefault\":\"New default score for that type.\",\"oldDefault\":\"Previous default score for that type.\",\"setter\":\"`msg.sender` on the call that produced the change.\"}},\"ReputationSet(address,uint128,uint128,address)\":{\"params\":{\"identity\":\"The identity whose entry changed.\",\"newScore\":\"New explicit score.\",\"oldScore\":\"Previous explicit score (`0` if the entry was uninitialized).\",\"setter\":\"`msg.sender` on the call that produced the change.\"}}},\"kind\":\"dev\",\"methods\":{},\"title\":\"IReputationRegistry\",\"version\":1},\"userdoc\":{\"events\":{\"ClaimAddThresholdSet(uint128,uint128,address)\":{\"notice\":\"Emitted whenever the global claim-add auto-approval threshold changes. Consumers compare this against {reputationOf} to decide whether a claim-add should auto-approve.\"},\"DefaultSet(uint256,uint128,uint128,address)\":{\"notice\":\"Emitted whenever the default score for a given identity type changes.\"},\"ReputationSet(address,uint128,uint128,address)\":{\"notice\":\"Emitted whenever an identity's explicit reputation entry is written. Both the previous score and the writer are recorded so off-chain indexers can reconstruct full history from this event alone.\"}},\"kind\":\"user\",\"methods\":{\"claimAddThreshold()\":{\"notice\":\"Global threshold consumers compare against {reputationOf} when deciding whether a claim-add should auto-approve. Tunable by the REPUTATION_MANAGER via {setClaimAddThreshold}.\"},\"defaultFor(uint256)\":{\"notice\":\"Default score for `identityType`. Written via {setDefault}.\"},\"entryOf(address)\":{\"notice\":\"Raw explicit entry for `identity`. Does **not** fall back to the per-type default. `setAt == 0` means \\\"no explicit entry.\\\" Useful for callers that want to distinguish \\\"manager revoked to 0\\\" from \\\"never written.\\\"\"},\"reputationOf(address)\":{\"notice\":\"Effective reputation score for `identity`. Returns the explicit entry when {setReputation} has been called for `identity` (including an explicit `0`), otherwise the per-type default, but only when `identity` is a factory-deployed identity. Non-factory identities without an explicit entry read `0`.\"},\"setClaimAddThreshold(uint128)\":{\"notice\":\"Set the global claim-add auto-approval threshold consumers use. `restricted` via the AM.\"},\"setDefault(uint256,uint128)\":{\"notice\":\"Set the default reputation score for `identityType`. `restricted` via the AM.\"},\"setReputation(address,uint128)\":{\"notice\":\"Set the explicit reputation score for `identity`. Use `0` to revoke trust without removing the entry. `restricted` via the AM.\"}},\"notice\":\"A single per-identity reputation primitive that any feature can read. The registry is a thin key-value store. Two write seams, both gated by the AccessManager's REPUTATION_MANAGER role: * {setReputation} writes a per-identity explicit score. * {setDefault} writes a per-type default score. One canonical read seam, {reputationOf}: * If an explicit entry exists (`setAt != 0`), its score is returned, including an explicit `0` (which is how a manager revokes trust without deleting the entry). * Otherwise the lookup falls back to `defaultFor[type]` where `type` is the factory's record via {IIdentityFactory.identityTypeOf}, never the identity's own answer. Factory-membership gating. A zero record means the factory did not deploy the identity, so an arbitrary contract that self-declares type 5 cannot inherit the CLAIM_ISSUER default. The explicit-entry path bypasses the factory check because the manager may want to score externally-deployed identities by hand.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"dependencies/onchain-id-develop/contracts/reputation/IReputationRegistry.sol\":\"IReputationRegistry\"},\"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/onchain-id-develop/contracts/reputation/IReputationRegistry.sol\":{\"keccak256\":\"0x3a5f5455749fc8fb1c1d83a94b604262c697408d14af50475646712066243b38\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://997792fb2942bbdd0df4c1eef472262405c27a6e210b8fe1696fe9db5e62638a\",\"dweb:/ipfs/QmcBewex2x4hw2bLL8u9NobQDyF6RchfaSLw3xEmRyb8bX\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"uint128","name":"oldThreshold","type":"uint128","indexed":false},{"internalType":"uint128","name":"newThreshold","type":"uint128","indexed":false},{"internalType":"address","name":"setter","type":"address","indexed":true}],"type":"event","name":"ClaimAddThresholdSet","anonymous":false},{"inputs":[{"internalType":"uint256","name":"identityType","type":"uint256","indexed":true},{"internalType":"uint128","name":"oldDefault","type":"uint128","indexed":false},{"internalType":"uint128","name":"newDefault","type":"uint128","indexed":false},{"internalType":"address","name":"setter","type":"address","indexed":true}],"type":"event","name":"DefaultSet","anonymous":false},{"inputs":[{"internalType":"address","name":"identity","type":"address","indexed":true},{"internalType":"uint128","name":"oldScore","type":"uint128","indexed":false},{"internalType":"uint128","name":"newScore","type":"uint128","indexed":false},{"internalType":"address","name":"setter","type":"address","indexed":true}],"type":"event","name":"ReputationSet","anonymous":false},{"inputs":[],"stateMutability":"view","type":"function","name":"claimAddThreshold","outputs":[{"internalType":"uint128","name":"","type":"uint128"}]},{"inputs":[{"internalType":"uint256","name":"identityType","type":"uint256"}],"stateMutability":"view","type":"function","name":"defaultFor","outputs":[{"internalType":"uint128","name":"","type":"uint128"}]},{"inputs":[{"internalType":"address","name":"identity","type":"address"}],"stateMutability":"view","type":"function","name":"entryOf","outputs":[{"internalType":"uint128","name":"score","type":"uint128"},{"internalType":"uint128","name":"setAt","type":"uint128"}]},{"inputs":[{"internalType":"address","name":"identity","type":"address"}],"stateMutability":"view","type":"function","name":"reputationOf","outputs":[{"internalType":"uint128","name":"","type":"uint128"}]},{"inputs":[{"internalType":"uint128","name":"newThreshold","type":"uint128"}],"stateMutability":"nonpayable","type":"function","name":"setClaimAddThreshold"},{"inputs":[{"internalType":"uint256","name":"identityType","type":"uint256"},{"internalType":"uint128","name":"newDefault","type":"uint128"}],"stateMutability":"nonpayable","type":"function","name":"setDefault"},{"inputs":[{"internalType":"address","name":"identity","type":"address"},{"internalType":"uint128","name":"newScore","type":"uint128"}],"stateMutability":"nonpayable","type":"function","name":"setReputation"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{"claimAddThreshold()":{"notice":"Global threshold consumers compare against {reputationOf} when deciding whether a claim-add should auto-approve. Tunable by the REPUTATION_MANAGER via {setClaimAddThreshold}."},"defaultFor(uint256)":{"notice":"Default score for `identityType`. Written via {setDefault}."},"entryOf(address)":{"notice":"Raw explicit entry for `identity`. Does **not** fall back to the per-type default. `setAt == 0` means \"no explicit entry.\" Useful for callers that want to distinguish \"manager revoked to 0\" from \"never written.\""},"reputationOf(address)":{"notice":"Effective reputation score for `identity`. Returns the explicit entry when {setReputation} has been called for `identity` (including an explicit `0`), otherwise the per-type default, but only when `identity` is a factory-deployed identity. Non-factory identities without an explicit entry read `0`."},"setClaimAddThreshold(uint128)":{"notice":"Set the global claim-add auto-approval threshold consumers use. `restricted` via the AM."},"setDefault(uint256,uint128)":{"notice":"Set the default reputation score for `identityType`. `restricted` via the AM."},"setReputation(address,uint128)":{"notice":"Set the explicit reputation score for `identity`. Use `0` to revoke trust without removing the entry. `restricted` via the AM."}},"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/onchain-id-develop/contracts/reputation/IReputationRegistry.sol":"IReputationRegistry"},"evmVersion":"cancun","libraries":{}},"sources":{"dependencies/onchain-id-develop/contracts/reputation/IReputationRegistry.sol":{"keccak256":"0x3a5f5455749fc8fb1c1d83a94b604262c697408d14af50475646712066243b38","urls":["bzz-raw://997792fb2942bbdd0df4c1eef472262405c27a6e210b8fe1696fe9db5e62638a","dweb:/ipfs/QmcBewex2x4hw2bLL8u9NobQDyF6RchfaSLw3xEmRyb8bX"],"license":"GPL-3.0"}},"version":1},"id":190}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"abi":[{"type":"function","name":"handleSettlement","inputs":[{"name":"originChainKey","type":"bytes32","internalType":"bytes32"},{"name":"notification","type":"tuple","internalType":"struct MessageTypesLib.SettlementNotification","components":[{"name":"validationId","type":"uint256","internalType":"uint256"},{"name":"from","type":"bytes","internalType":"bytes"},{"name":"to","type":"bytes","internalType":"bytes"},{"name":"amount","type":"uint256","internalType":"uint256"}]}],"outputs":[{"name":"haltToken","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"handleSettlement(bytes32,(uint256,bytes,bytes,uint256))":"a6f40a52"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"originChainKey\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"validationId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"from\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"to\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct MessageTypesLib.SettlementNotification\",\"name\":\"notification\",\"type\":\"tuple\"}],\"name\":\"handleSettlement\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"haltToken\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The compliance contract's inbound entry point for satellite settlements. A settlement notification arrives at the token, which proves who sent it and forwards the body here untouched. The processing itself belongs to the compliance-slot lifecycle; only the entry point lives here.\",\"kind\":\"dev\",\"methods\":{\"handleSettlement(bytes32,(uint256,bytes,bytes,uint256))\":{\"details\":\"Acts on a settlement the token has already attributed to its peer on `originChainKey`. The token guarantees three things: - the delivering gateway is trusted by the network, - it is the gateway the validation was dispatched through toward `originChainKey` (or the current route when the token never dispatched that id there), - the message's author is the token's peer on that chain. The notification is decoded and passed on as is; classifying it is this handler's job, against the validation it issued: the token and the wallets must be the issued ones, the leg must come from the chain recorded for its side, and the amount must sit inside the issued bounds. A leg that fails any of these reverts, which leaves the message deliverable again. A leg for a `Pending` validation settles it, whatever the clock says; one for a `Discarded` validation reconciles it late: applied anyway, since the satellite execution is final, the modules caught up with no live reservation, `LateReconciliation` emitted and the leg's chain paused for issuance until the manager unpauses it. A silent failure would instead leave the message marked as received and unretryable. Two emergencies never revert and return `haltToken` instead: a leg already consumed, and an id that was never issued. Both mean a trusted gateway delivered something the protocol cannot account for, so the token pauses itself until an agent has investigated.\",\"params\":{\"notification\":\"The decoded settlement leg, exactly as the satellite sent it.\",\"originChainKey\":\"The key of the chain the notification came from.\"},\"returns\":{\"haltToken\":\"Whether the token must pause itself: a replayed or never-issued settlement.\"}}},\"title\":\"ISettlementHandler\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interop/ISettlementHandler.sol\":\"ISettlementHandler\"},\"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/interop/ISettlementHandler.sol\":{\"keccak256\":\"0x9b215a8b032cbdfa37a9700067474a8078bad0b2a6bd03cbf2a792262cf052e1\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://38bf9d5c49e366c5a634553f72ec2520b20c0457fa11ed35393d9acea3bd6c32\",\"dweb:/ipfs/QmXrpLK8eQV3m3VeoSRtuUAR5sYs5VQYjtdNQbA3a26w76\"]},\"contracts/libraries/ErrorsLib.sol\":{\"keccak256\":\"0x32a4a37e3b4f98a101d5a0c04124c6c190a99449fbd1da8305634e54864827bd\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://7a57a6afe664dd75f6d37ed5e4b659f7d76b264815cbc6aaab9dde1c2f9543c7\",\"dweb:/ipfs/QmaWVttfzee9sD55k1YqcB6f7X6UF2Ug3xbUAmLpmrDdDf\"]},\"contracts/libraries/MessageTypesLib.sol\":{\"keccak256\":\"0x4ab2e0f4421a37ba9dd04247889416d5ed7e30e8fd255b1cc88bb968e23986ca\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://e4bc71fe465a8f6bbb13d58f2cb9ea694053fb2953f863f12427559de75728b8\",\"dweb:/ipfs/QmcQnBkYPYcKCjTspb95FoHtZKFK6gAYTa59EYkCjP34MW\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Bytes.sol\":{\"keccak256\":\"0xa34f1a24f9138bd6bafa5b6cf5d513a45097266204caa1b3e5038e728bfe45b4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4dc3d6b3593089cd12d1919d7515e2ff1f8a08a88705bd52421c5be8573a0c0c\",\"dweb:/ipfs/QmTCFpJfm75KqM23LA2iiJS53cSfRqpnUqdx7XSfUNE851\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Calldata.sol\":{\"keccak256\":\"0xa557256a5cc28f1ff8abfdb082739dc847390c6d892f563fc071994a058f9a31\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ffd71e93eb6fae111e6bfa39303c9e09b7db7bc698170f5be627d1beb40f5462\",\"dweb:/ipfs/QmXZmiy9FB1GRH2eWZLefaosFvSVGCBg3iVoZvWbptC3f6\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Panic.sol\":{\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a\",\"dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/draft-InteroperableAddress.sol\":{\"keccak256\":\"0x29a2dc6571f38f8ebfd39f50950f6e48688facbe262e0c5f1b39078faca0ea9a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://59cefba94eb5e9eecf4dd967788bfc853659dd2c583d469e7b409e284be0b788\",\"dweb:/ipfs/QmUeyeBgpfyJ7uZ98w9XE6qx1snFhSHvKFNQ8vnouTiY6v\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/math/Math.sol\":{\"keccak256\":\"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5\",\"dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/math/SafeCast.sol\":{\"keccak256\":\"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9\",\"dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"bytes32","name":"originChainKey","type":"bytes32"},{"internalType":"struct MessageTypesLib.SettlementNotification","name":"notification","type":"tuple","components":[{"internalType":"uint256","name":"validationId","type":"uint256"},{"internalType":"bytes","name":"from","type":"bytes"},{"internalType":"bytes","name":"to","type":"bytes"},{"internalType":"uint256","name":"amount","type":"uint256"}]}],"stateMutability":"nonpayable","type":"function","name":"handleSettlement","outputs":[{"internalType":"bool","name":"haltToken","type":"bool"}]}],"devdoc":{"kind":"dev","methods":{"handleSettlement(bytes32,(uint256,bytes,bytes,uint256))":{"details":"Acts on a settlement the token has already attributed to its peer on `originChainKey`. The token guarantees three things: - the delivering gateway is trusted by the network, - it is the gateway the validation was dispatched through toward `originChainKey` (or the current route when the token never dispatched that id there), - the message's author is the token's peer on that chain. The notification is decoded and passed on as is; classifying it is this handler's job, against the validation it issued: the token and the wallets must be the issued ones, the leg must come from the chain recorded for its side, and the amount must sit inside the issued bounds. A leg that fails any of these reverts, which leaves the message deliverable again. A leg for a `Pending` validation settles it, whatever the clock says; one for a `Discarded` validation reconciles it late: applied anyway, since the satellite execution is final, the modules caught up with no live reservation, `LateReconciliation` emitted and the leg's chain paused for issuance until the manager unpauses it. A silent failure would instead leave the message marked as received and unretryable. Two emergencies never revert and return `haltToken` instead: a leg already consumed, and an id that was never issued. Both mean a trusted gateway delivered something the protocol cannot account for, so the token pauses itself until an agent has investigated.","params":{"notification":"The decoded settlement leg, exactly as the satellite sent it.","originChainKey":"The key of the chain the notification came from."},"returns":{"haltToken":"Whether the token must pause itself: a replayed or never-issued settlement."}}},"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/interop/ISettlementHandler.sol":"ISettlementHandler"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/interop/ISettlementHandler.sol":{"keccak256":"0x9b215a8b032cbdfa37a9700067474a8078bad0b2a6bd03cbf2a792262cf052e1","urls":["bzz-raw://38bf9d5c49e366c5a634553f72ec2520b20c0457fa11ed35393d9acea3bd6c32","dweb:/ipfs/QmXrpLK8eQV3m3VeoSRtuUAR5sYs5VQYjtdNQbA3a26w76"],"license":"GPL-3.0"},"contracts/libraries/ErrorsLib.sol":{"keccak256":"0x32a4a37e3b4f98a101d5a0c04124c6c190a99449fbd1da8305634e54864827bd","urls":["bzz-raw://7a57a6afe664dd75f6d37ed5e4b659f7d76b264815cbc6aaab9dde1c2f9543c7","dweb:/ipfs/QmaWVttfzee9sD55k1YqcB6f7X6UF2Ug3xbUAmLpmrDdDf"],"license":"GPL-3.0"},"contracts/libraries/MessageTypesLib.sol":{"keccak256":"0x4ab2e0f4421a37ba9dd04247889416d5ed7e30e8fd255b1cc88bb968e23986ca","urls":["bzz-raw://e4bc71fe465a8f6bbb13d58f2cb9ea694053fb2953f863f12427559de75728b8","dweb:/ipfs/QmcQnBkYPYcKCjTspb95FoHtZKFK6gAYTa59EYkCjP34MW"],"license":"GPL-3.0"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Bytes.sol":{"keccak256":"0xa34f1a24f9138bd6bafa5b6cf5d513a45097266204caa1b3e5038e728bfe45b4","urls":["bzz-raw://4dc3d6b3593089cd12d1919d7515e2ff1f8a08a88705bd52421c5be8573a0c0c","dweb:/ipfs/QmTCFpJfm75KqM23LA2iiJS53cSfRqpnUqdx7XSfUNE851"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Calldata.sol":{"keccak256":"0xa557256a5cc28f1ff8abfdb082739dc847390c6d892f563fc071994a058f9a31","urls":["bzz-raw://ffd71e93eb6fae111e6bfa39303c9e09b7db7bc698170f5be627d1beb40f5462","dweb:/ipfs/QmXZmiy9FB1GRH2eWZLefaosFvSVGCBg3iVoZvWbptC3f6"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Panic.sol":{"keccak256":"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a","urls":["bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a","dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/draft-InteroperableAddress.sol":{"keccak256":"0x29a2dc6571f38f8ebfd39f50950f6e48688facbe262e0c5f1b39078faca0ea9a","urls":["bzz-raw://59cefba94eb5e9eecf4dd967788bfc853659dd2c583d469e7b409e284be0b788","dweb:/ipfs/QmUeyeBgpfyJ7uZ98w9XE6qx1snFhSHvKFNQ8vnouTiY6v"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/math/Math.sol":{"keccak256":"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857","urls":["bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5","dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/math/SafeCast.sol":{"keccak256":"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083","urls":["bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9","dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif"],"license":"MIT"}},"version":1},"id":32}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":[{"type":"function","name":"deployTREXSuite","inputs":[{"name":"_salt","type":"string","internalType":"string"},{"name":"_tokenDetails","type":"tuple","internalType":"struct ITREXFactory.TokenDetails","components":[{"name":"owner","type":"address","internalType":"address"},{"name":"name","type":"string","internalType":"string"},{"name":"symbol","type":"string","internalType":"string"},{"name":"decimals","type":"uint8","internalType":"uint8"},{"name":"irs","type":"address","internalType":"address"},{"name":"ONCHAINID","type":"address","internalType":"address"},{"name":"irAgents","type":"address[]","internalType":"address[]"},{"name":"tokenAgents","type":"address[]","internalType":"address[]"},{"name":"complianceModules","type":"address[]","internalType":"address[]"},{"name":"complianceSettings","type":"bytes[]","internalType":"bytes[]"}]},{"name":"_claimDetails","type":"tuple","internalType":"struct ITREXFactory.ClaimDetails","components":[{"name":"claimTopics","type":"uint256[]","internalType":"uint256[]"},{"name":"issuers","type":"address[]","internalType":"address[]"},{"name":"issuerClaims","type":"uint256[][]","internalType":"uint256[][]"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getIdFactory","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getImplementationAuthority","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getToken","inputs":[{"name":"_salt","type":"string","internalType":"string"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"recoverContractOwnership","inputs":[{"name":"_contract","type":"address","internalType":"address"},{"name":"_newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setIdFactory","inputs":[{"name":"_idFactory","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setImplementationAuthority","inputs":[{"name":"_implementationAuthority","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"deployTREXSuite(string,(address,string,string,uint8,address,address,address[],address[],address[],bytes[]),(uint256[],address[],uint256[][]))":"cf753d37","getIdFactory()":"5f2773a5","getImplementationAuthority()":"2d5f1187","getToken(string)":"c1733f68","recoverContractOwnership(address,address)":"50b01838","setIdFactory(address)":"ccd41cce","setImplementationAuthority(address)":"92dd9d65"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_salt\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"irs\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ONCHAINID\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"irAgents\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"tokenAgents\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"complianceModules\",\"type\":\"address[]\"},{\"internalType\":\"bytes[]\",\"name\":\"complianceSettings\",\"type\":\"bytes[]\"}],\"internalType\":\"struct ITREXFactory.TokenDetails\",\"name\":\"_tokenDetails\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256[]\",\"name\":\"claimTopics\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"issuers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[][]\",\"name\":\"issuerClaims\",\"type\":\"uint256[][]\"}],\"internalType\":\"struct ITREXFactory.ClaimDetails\",\"name\":\"_claimDetails\",\"type\":\"tuple\"}],\"name\":\"deployTREXSuite\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getIdFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementationAuthority\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_salt\",\"type\":\"string\"}],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_contract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"recoverContractOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_idFactory\",\"type\":\"address\"}],\"name\":\"setIdFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_implementationAuthority\",\"type\":\"address\"}],\"name\":\"setImplementationAuthority\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"deployTREXSuite(string,(address,string,string,uint8,address,address,address[],address[],address[],bytes[]),(uint256[],address[],uint256[][]))\":{\"details\":\"function used to deploy a new TREX token and set all the parameters as required by the issuer paperwork this function will deploy and set the contracts as follow : Token : deploy the token contract (proxy) and set the name, symbol, ONCHAINID, decimals, owner, agents, IR address , Compliance address Identity Registry : deploy the IR contract (proxy) and set the owner, agents, IRS address, TIR address, CTR address IRS : deploy IRS contract (proxy) if required (address set as 0 in the TokenDetails, bind IRS to IR, set owner CTR : deploy CTR contract (proxy), set required claims, set owner TIR : deploy TIR contract (proxy), set trusted issuers, set owner Compliance: deploy modular compliance, bind with token, add modules, set modules parameters, set owner All contracts are deployed using CREATE3, and therefore are deployed at a predetermined address The address can be the same on all EVM blockchains as long as this factory is deployed at the same address on each chain Only owner can call. emits `TREXSuiteDeployed` event\",\"params\":{\"_claimDetails\":\"The details of the claims and claim issuers (see struct ClaimDetails for more details) cannot add more than 5 agents on IR and 5 agents on Token cannot add more than 5 claim topics required and more than 5 trusted issuers cannot add more than 30 compliance settings transactions\",\"_salt\":\"the salt used to make the contracts deployments with CREATE2\",\"_tokenDetails\":\"The details of the token to deploy (see struct TokenDetails for more details)\"}},\"getIdFactory()\":{\"details\":\"getter for identity factory address\"},\"getImplementationAuthority()\":{\"details\":\"getter for implementation authority address\"},\"getToken(string)\":{\"details\":\"getter for token address corresponding to salt string\",\"params\":{\"_salt\":\"The salt string that was used to deploy the token\"}},\"recoverContractOwnership(address,address)\":{\"details\":\"function that can be used to recover the ownership of contracts owned by the factory typically used for IRS contracts owned by the factory (ownership of IRS is mandatory to call bind function)\",\"params\":{\"_contract\":\"The smart contract address\",\"_newOwner\":\"The address to transfer ownership to Only owner can call.\"}},\"setIdFactory(address)\":{\"details\":\"setter for identity factory contract address the identity factory contract is used by the TREX Factory to deploy the ONCHAINID of the token in case the ONCHAINID is not specified Only owner can call. emits `IdFactorySet` event\",\"params\":{\"_idFactory\":\"The address of the identity factory contract\"}},\"setImplementationAuthority(address)\":{\"details\":\"setter for implementation authority contract address the implementation authority contract contains the addresses of all implementation contracts the proxies created by the factory will use the different implementations available in the implementation authority contract Only owner can call. emits `ImplementationAuthoritySet` event\",\"params\":{\"_implementationAuthority\":\"The address of the implementation authority smart contract\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/factory/ITREXFactory.sol\":\"ITREXFactory\"},\"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/factory/ITREXFactory.sol\":{\"keccak256\":\"0x7225bdfc2b6538da9a418d0c8384a818390d74095032a485f990caa28ca2ff5e\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://a6b3b4115523c6407c2f51a3f8e349dc82291bb4f6d19d10defbc3fe814e6406\",\"dweb:/ipfs/QmPd14S1hehj3Z9CvWUrRQVfVDXUN8a7icwpqsexhf7u9d\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"string","name":"_salt","type":"string"},{"internalType":"struct ITREXFactory.TokenDetails","name":"_tokenDetails","type":"tuple","components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"irs","type":"address"},{"internalType":"address","name":"ONCHAINID","type":"address"},{"internalType":"address[]","name":"irAgents","type":"address[]"},{"internalType":"address[]","name":"tokenAgents","type":"address[]"},{"internalType":"address[]","name":"complianceModules","type":"address[]"},{"internalType":"bytes[]","name":"complianceSettings","type":"bytes[]"}]},{"internalType":"struct ITREXFactory.ClaimDetails","name":"_claimDetails","type":"tuple","components":[{"internalType":"uint256[]","name":"claimTopics","type":"uint256[]"},{"internalType":"address[]","name":"issuers","type":"address[]"},{"internalType":"uint256[][]","name":"issuerClaims","type":"uint256[][]"}]}],"stateMutability":"nonpayable","type":"function","name":"deployTREXSuite"},{"inputs":[],"stateMutability":"view","type":"function","name":"getIdFactory","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getImplementationAuthority","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"string","name":"_salt","type":"string"}],"stateMutability":"view","type":"function","name":"getToken","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"_newOwner","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"recoverContractOwnership"},{"inputs":[{"internalType":"address","name":"_idFactory","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setIdFactory"},{"inputs":[{"internalType":"address","name":"_implementationAuthority","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setImplementationAuthority"}],"devdoc":{"kind":"dev","methods":{"deployTREXSuite(string,(address,string,string,uint8,address,address,address[],address[],address[],bytes[]),(uint256[],address[],uint256[][]))":{"details":"function used to deploy a new TREX token and set all the parameters as required by the issuer paperwork this function will deploy and set the contracts as follow : Token : deploy the token contract (proxy) and set the name, symbol, ONCHAINID, decimals, owner, agents, IR address , Compliance address Identity Registry : deploy the IR contract (proxy) and set the owner, agents, IRS address, TIR address, CTR address IRS : deploy IRS contract (proxy) if required (address set as 0 in the TokenDetails, bind IRS to IR, set owner CTR : deploy CTR contract (proxy), set required claims, set owner TIR : deploy TIR contract (proxy), set trusted issuers, set owner Compliance: deploy modular compliance, bind with token, add modules, set modules parameters, set owner All contracts are deployed using CREATE3, and therefore are deployed at a predetermined address The address can be the same on all EVM blockchains as long as this factory is deployed at the same address on each chain Only owner can call. emits `TREXSuiteDeployed` event","params":{"_claimDetails":"The details of the claims and claim issuers (see struct ClaimDetails for more details) cannot add more than 5 agents on IR and 5 agents on Token cannot add more than 5 claim topics required and more than 5 trusted issuers cannot add more than 30 compliance settings transactions","_salt":"the salt used to make the contracts deployments with CREATE2","_tokenDetails":"The details of the token to deploy (see struct TokenDetails for more details)"}},"getIdFactory()":{"details":"getter for identity factory address"},"getImplementationAuthority()":{"details":"getter for implementation authority address"},"getToken(string)":{"details":"getter for token address corresponding to salt string","params":{"_salt":"The salt string that was used to deploy the token"}},"recoverContractOwnership(address,address)":{"details":"function that can be used to recover the ownership of contracts owned by the factory typically used for IRS contracts owned by the factory (ownership of IRS is mandatory to call bind function)","params":{"_contract":"The smart contract address","_newOwner":"The address to transfer ownership to Only owner can call."}},"setIdFactory(address)":{"details":"setter for identity factory contract address the identity factory contract is used by the TREX Factory to deploy the ONCHAINID of the token in case the ONCHAINID is not specified Only owner can call. emits `IdFactorySet` event","params":{"_idFactory":"The address of the identity factory contract"}},"setImplementationAuthority(address)":{"details":"setter for implementation authority contract address the implementation authority contract contains the addresses of all implementation contracts the proxies created by the factory will use the different implementations available in the implementation authority contract Only owner can call. emits `ImplementationAuthoritySet` event","params":{"_implementationAuthority":"The address of the implementation authority smart contract"}}},"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/factory/ITREXFactory.sol":"ITREXFactory"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/factory/ITREXFactory.sol":{"keccak256":"0x7225bdfc2b6538da9a418d0c8384a818390d74095032a485f990caa28ca2ff5e","urls":["bzz-raw://a6b3b4115523c6407c2f51a3f8e349dc82291bb4f6d19d10defbc3fe814e6406","dweb:/ipfs/QmPd14S1hehj3Z9CvWUrRQVfVDXUN8a7icwpqsexhf7u9d"],"license":"GPL-3.0"}},"version":1},"id":12}
|
|
1
|
+
{"abi":[{"type":"function","name":"deployTREXSuite","inputs":[{"name":"_salt","type":"string","internalType":"string"},{"name":"_tokenDetails","type":"tuple","internalType":"struct ITREXFactory.TokenDetails","components":[{"name":"name","type":"string","internalType":"string"},{"name":"symbol","type":"string","internalType":"string"},{"name":"decimals","type":"uint8","internalType":"uint8"},{"name":"irs","type":"address","internalType":"address"},{"name":"ONCHAINID","type":"address","internalType":"address"},{"name":"complianceModules","type":"address[]","internalType":"address[]"},{"name":"complianceSettings","type":"bytes[]","internalType":"bytes[]"},{"name":"accessManager","type":"address","internalType":"address"},{"name":"accessManagerAdmin","type":"address","internalType":"address"}]},{"name":"_claimDetails","type":"tuple","internalType":"struct ITREXFactory.ClaimDetails","components":[{"name":"claimTopics","type":"uint256[]","internalType":"uint256[]"},{"name":"issuers","type":"address[]","internalType":"address[]"},{"name":"issuerClaims","type":"uint256[][]","internalType":"uint256[][]"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"deployTREXSuiteIsolated","inputs":[{"name":"_salt","type":"string","internalType":"string"},{"name":"_tokenDetails","type":"tuple","internalType":"struct ITREXFactory.TokenDetails","components":[{"name":"name","type":"string","internalType":"string"},{"name":"symbol","type":"string","internalType":"string"},{"name":"decimals","type":"uint8","internalType":"uint8"},{"name":"irs","type":"address","internalType":"address"},{"name":"ONCHAINID","type":"address","internalType":"address"},{"name":"complianceModules","type":"address[]","internalType":"address[]"},{"name":"complianceSettings","type":"bytes[]","internalType":"bytes[]"},{"name":"accessManager","type":"address","internalType":"address"},{"name":"accessManagerAdmin","type":"address","internalType":"address"}]},{"name":"_claimDetails","type":"tuple","internalType":"struct ITREXFactory.ClaimDetails","components":[{"name":"claimTopics","type":"uint256[]","internalType":"uint256[]"},{"name":"issuers","type":"address[]","internalType":"address[]"},{"name":"issuerClaims","type":"uint256[][]","internalType":"uint256[][]"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getIdFactory","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getImplementationAuthority","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getToken","inputs":[{"name":"_salt","type":"string","internalType":"string"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getTrustedGatewayRegistry","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"setIdFactory","inputs":[{"name":"_idFactory","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setImplementationAuthority","inputs":[{"name":"_implementationAuthority","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setTrustedGatewayRegistry","inputs":[{"name":"_trustedGatewayRegistry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"deployTREXSuite(string,(string,string,uint8,address,address,address[],bytes[],address,address),(uint256[],address[],uint256[][]))":"c8cf1d71","deployTREXSuiteIsolated(string,(string,string,uint8,address,address,address[],bytes[],address,address),(uint256[],address[],uint256[][]))":"25f718d3","getIdFactory()":"5f2773a5","getImplementationAuthority()":"2d5f1187","getToken(string)":"c1733f68","getTrustedGatewayRegistry()":"685565e2","setIdFactory(address)":"ccd41cce","setImplementationAuthority(address)":"92dd9d65","setTrustedGatewayRegistry(address)":"5c0adbf5"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_salt\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"irs\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ONCHAINID\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"complianceModules\",\"type\":\"address[]\"},{\"internalType\":\"bytes[]\",\"name\":\"complianceSettings\",\"type\":\"bytes[]\"},{\"internalType\":\"address\",\"name\":\"accessManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"accessManagerAdmin\",\"type\":\"address\"}],\"internalType\":\"struct ITREXFactory.TokenDetails\",\"name\":\"_tokenDetails\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256[]\",\"name\":\"claimTopics\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"issuers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[][]\",\"name\":\"issuerClaims\",\"type\":\"uint256[][]\"}],\"internalType\":\"struct ITREXFactory.ClaimDetails\",\"name\":\"_claimDetails\",\"type\":\"tuple\"}],\"name\":\"deployTREXSuite\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_salt\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"irs\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ONCHAINID\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"complianceModules\",\"type\":\"address[]\"},{\"internalType\":\"bytes[]\",\"name\":\"complianceSettings\",\"type\":\"bytes[]\"},{\"internalType\":\"address\",\"name\":\"accessManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"accessManagerAdmin\",\"type\":\"address\"}],\"internalType\":\"struct ITREXFactory.TokenDetails\",\"name\":\"_tokenDetails\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256[]\",\"name\":\"claimTopics\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"issuers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[][]\",\"name\":\"issuerClaims\",\"type\":\"uint256[][]\"}],\"internalType\":\"struct ITREXFactory.ClaimDetails\",\"name\":\"_claimDetails\",\"type\":\"tuple\"}],\"name\":\"deployTREXSuiteIsolated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getIdFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementationAuthority\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_salt\",\"type\":\"string\"}],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTrustedGatewayRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_idFactory\",\"type\":\"address\"}],\"name\":\"setIdFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_implementationAuthority\",\"type\":\"address\"}],\"name\":\"setImplementationAuthority\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustedGatewayRegistry\",\"type\":\"address\"}],\"name\":\"setTrustedGatewayRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"deployTREXSuite(string,(string,string,uint8,address,address,address[],bytes[],address,address),(uint256[],address[],uint256[][]))\":{\"details\":\"function used to deploy a new TREX token and set all the parameters as required by the issuer paperwork this function will deploy and set the contracts as follow : Token : deploy the token contract (proxy) and set the name, symbol, ONCHAINID, decimals, owner, IR address , Compliance address Identity Registry : deploy the IR contract (proxy) and set the owner, IRS address, TIR address, CTR address IRS : deploy IRS contract (proxy) if required (address set as 0 in the TokenDetails, bind IRS to IR, set owner CTR : deploy CTR contract (proxy), set required claims, set owner TIR : deploy TIR contract (proxy), set trusted issuers, set owner Compliance: deploy modular compliance, bind with token, add modules, set modules parameters, set owner AccessManager : when `_tokenDetails.accessManager` is zero, deploy a `TREXAccessManager` (proxy), create a domain named after the token, assign the token and its storage to it, commission the suite and hand `ADMIN_ROLE` to `_tokenDetails.accessManagerAdmin`. When a manager is supplied the factory never calls it: the suite deploys with no role wiring and is not operable until the issuer commissions it (`AccessManagerSetupLib.commissionSuite`). All contracts are deployed using CREATE3, and therefore are deployed at a predetermined address The address can be the same on all EVM blockchains as long as this factory is deployed at the same address on each chain Restricted to the suite deployer role chosen at setup (`AccessManagerSetupLib.setupTREXFactoryRoles`), which is never one of the three setter roles. emits `TREXSuiteDeployed` event\",\"params\":{\"_claimDetails\":\"The details of the claims and claim issuers (see struct ClaimDetails for more details) cannot add more than 5 claim topics required and more than 5 trusted issuers cannot bind more than 25 compliance modules\",\"_salt\":\"the salt used to make the contracts deployments with CREATE2\",\"_tokenDetails\":\"The details of the token to deploy (see struct TokenDetails for more details)\"}},\"deployTREXSuiteIsolated(string,(string,string,uint8,address,address,address[],bytes[],address,address),(uint256[],address[],uint256[][]))\":{\"details\":\"deploys a suite that does not follow the shared implementation authority. Clones fresh `UpgradeableBeacon`s from the authority's active implementations, one per suite contract plus one for the access manager when the factory deploys it, and points the suite at those clones instead of the shared beacons, so later `publish` / `upgrade` calls on the authority never reach this suite. The suite-contract clones are owned by the suite's access manager, supplied or factory-deployed; the access-manager clone, when the factory deploys the manager, is owned by `_tokenDetails.accessManagerAdmin`. Rotating that administrator is two steps: the `ADMIN_ROLE` rotation inside the manager and `transferOwnership` on the access-manager clone, which the manager's roles do not govern. `_tokenDetails.irs` must be zero: a reused IRS keeps the beacon that deployed it, so the suite always deploys its own identity storage through the cloned IRS beacon. When `_tokenDetails.accessManager` is zero the factory deploys a `TREXAccessManager` behind the cloned beacon, creates a domain named after the token, assigns the token and its storage, commissions the suite and hands `ADMIN_ROLE` to `_tokenDetails.accessManagerAdmin`. When a manager is supplied the factory never calls it: the suite deploys with no role wiring and is not operable until the issuer commissions it (`AccessManagerSetupLib.commissionSuite`). Restricted to the suite deployer role chosen at setup (`AccessManagerSetupLib.setupTREXFactoryRoles`), which is never one of the three setter roles. emits `TREXSuiteDeployed` and `IsolatedSuiteDeployed` events\",\"params\":{\"_claimDetails\":\"The details of the claims and claim issuers (see struct ClaimDetails for more details)\",\"_salt\":\"the salt used to make the contracts deployments with CREATE3\",\"_tokenDetails\":\"The details of the token to deploy (see struct TokenDetails for more details)\"}},\"getIdFactory()\":{\"details\":\"getter for identity factory address\"},\"getImplementationAuthority()\":{\"details\":\"getter for implementation authority address\"},\"getToken(string)\":{\"details\":\"getter for token address corresponding to salt string\",\"params\":{\"_salt\":\"The salt string that was used to deploy the token\"}},\"getTrustedGatewayRegistry()\":{\"details\":\"getter for the trusted gateway registry address wired into newly deployed tokens\"},\"setIdFactory(address)\":{\"details\":\"setter for identity factory contract address the identity factory contract is used by the TREX Factory to deploy the ONCHAINID of the token in case the ONCHAINID is not specified Restricted to the platform owner role, as chosen at setup (`AccessManagerSetupLib.setupTREXFactoryRoles`), which is never the suite deployer role. emits `IdFactorySet` event\",\"params\":{\"_idFactory\":\"The address of the identity factory contract\"}},\"setImplementationAuthority(address)\":{\"details\":\"setter for implementation authority contract address the implementation authority contract contains the addresses of all implementation contracts the proxies created by the factory will use the different implementations available in the implementation authority contract Restricted to the version manager role, the role that already publishes the code versions suites run, as chosen at setup (`AccessManagerSetupLib.setupTREXFactoryRoles`), which is never the suite deployer role. emits `ImplementationAuthoritySet` event\",\"params\":{\"_implementationAuthority\":\"The address of the implementation authority smart contract\"}},\"setTrustedGatewayRegistry(address)\":{\"details\":\"setter for the trusted gateway registry address the registry is the network's vetted gateway set; every token deployed by the factory is pointed at it at deployment and carries no setter of its own, so gateway trust stays a network-level decision. Tokens already deployed keep the registry they were deployed with. Restricted to the interop manager role, the role that already decides which bridges are trusted, as chosen at setup (`AccessManagerSetupLib.setupTREXFactoryRoles`), which is never the suite deployer role. emits `TrustedGatewayRegistrySet` event\",\"params\":{\"_trustedGatewayRegistry\":\"The address of the trusted gateway registry contract\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/factory/ITREXFactory.sol\":\"ITREXFactory\"},\"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/factory/ITREXFactory.sol\":{\"keccak256\":\"0x8307c66e302d6c0d8879b08034630c886ac447aebcebced1f53b2e3f3f25fd54\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://ef16012db28a71f707d25ff32d95f0c7a5120986dfca16ce956d482ba45eed0e\",\"dweb:/ipfs/QmanSGXrEkoAyScaeuzHx5ur3nqxn3LA9JB8EDCBowFXLE\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"string","name":"_salt","type":"string"},{"internalType":"struct ITREXFactory.TokenDetails","name":"_tokenDetails","type":"tuple","components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"irs","type":"address"},{"internalType":"address","name":"ONCHAINID","type":"address"},{"internalType":"address[]","name":"complianceModules","type":"address[]"},{"internalType":"bytes[]","name":"complianceSettings","type":"bytes[]"},{"internalType":"address","name":"accessManager","type":"address"},{"internalType":"address","name":"accessManagerAdmin","type":"address"}]},{"internalType":"struct ITREXFactory.ClaimDetails","name":"_claimDetails","type":"tuple","components":[{"internalType":"uint256[]","name":"claimTopics","type":"uint256[]"},{"internalType":"address[]","name":"issuers","type":"address[]"},{"internalType":"uint256[][]","name":"issuerClaims","type":"uint256[][]"}]}],"stateMutability":"nonpayable","type":"function","name":"deployTREXSuite"},{"inputs":[{"internalType":"string","name":"_salt","type":"string"},{"internalType":"struct ITREXFactory.TokenDetails","name":"_tokenDetails","type":"tuple","components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"irs","type":"address"},{"internalType":"address","name":"ONCHAINID","type":"address"},{"internalType":"address[]","name":"complianceModules","type":"address[]"},{"internalType":"bytes[]","name":"complianceSettings","type":"bytes[]"},{"internalType":"address","name":"accessManager","type":"address"},{"internalType":"address","name":"accessManagerAdmin","type":"address"}]},{"internalType":"struct ITREXFactory.ClaimDetails","name":"_claimDetails","type":"tuple","components":[{"internalType":"uint256[]","name":"claimTopics","type":"uint256[]"},{"internalType":"address[]","name":"issuers","type":"address[]"},{"internalType":"uint256[][]","name":"issuerClaims","type":"uint256[][]"}]}],"stateMutability":"nonpayable","type":"function","name":"deployTREXSuiteIsolated"},{"inputs":[],"stateMutability":"view","type":"function","name":"getIdFactory","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getImplementationAuthority","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"string","name":"_salt","type":"string"}],"stateMutability":"view","type":"function","name":"getToken","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getTrustedGatewayRegistry","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_idFactory","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setIdFactory"},{"inputs":[{"internalType":"address","name":"_implementationAuthority","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setImplementationAuthority"},{"inputs":[{"internalType":"address","name":"_trustedGatewayRegistry","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setTrustedGatewayRegistry"}],"devdoc":{"kind":"dev","methods":{"deployTREXSuite(string,(string,string,uint8,address,address,address[],bytes[],address,address),(uint256[],address[],uint256[][]))":{"details":"function used to deploy a new TREX token and set all the parameters as required by the issuer paperwork this function will deploy and set the contracts as follow : Token : deploy the token contract (proxy) and set the name, symbol, ONCHAINID, decimals, owner, IR address , Compliance address Identity Registry : deploy the IR contract (proxy) and set the owner, IRS address, TIR address, CTR address IRS : deploy IRS contract (proxy) if required (address set as 0 in the TokenDetails, bind IRS to IR, set owner CTR : deploy CTR contract (proxy), set required claims, set owner TIR : deploy TIR contract (proxy), set trusted issuers, set owner Compliance: deploy modular compliance, bind with token, add modules, set modules parameters, set owner AccessManager : when `_tokenDetails.accessManager` is zero, deploy a `TREXAccessManager` (proxy), create a domain named after the token, assign the token and its storage to it, commission the suite and hand `ADMIN_ROLE` to `_tokenDetails.accessManagerAdmin`. When a manager is supplied the factory never calls it: the suite deploys with no role wiring and is not operable until the issuer commissions it (`AccessManagerSetupLib.commissionSuite`). All contracts are deployed using CREATE3, and therefore are deployed at a predetermined address The address can be the same on all EVM blockchains as long as this factory is deployed at the same address on each chain Restricted to the suite deployer role chosen at setup (`AccessManagerSetupLib.setupTREXFactoryRoles`), which is never one of the three setter roles. emits `TREXSuiteDeployed` event","params":{"_claimDetails":"The details of the claims and claim issuers (see struct ClaimDetails for more details) cannot add more than 5 claim topics required and more than 5 trusted issuers cannot bind more than 25 compliance modules","_salt":"the salt used to make the contracts deployments with CREATE2","_tokenDetails":"The details of the token to deploy (see struct TokenDetails for more details)"}},"deployTREXSuiteIsolated(string,(string,string,uint8,address,address,address[],bytes[],address,address),(uint256[],address[],uint256[][]))":{"details":"deploys a suite that does not follow the shared implementation authority. Clones fresh `UpgradeableBeacon`s from the authority's active implementations, one per suite contract plus one for the access manager when the factory deploys it, and points the suite at those clones instead of the shared beacons, so later `publish` / `upgrade` calls on the authority never reach this suite. The suite-contract clones are owned by the suite's access manager, supplied or factory-deployed; the access-manager clone, when the factory deploys the manager, is owned by `_tokenDetails.accessManagerAdmin`. Rotating that administrator is two steps: the `ADMIN_ROLE` rotation inside the manager and `transferOwnership` on the access-manager clone, which the manager's roles do not govern. `_tokenDetails.irs` must be zero: a reused IRS keeps the beacon that deployed it, so the suite always deploys its own identity storage through the cloned IRS beacon. When `_tokenDetails.accessManager` is zero the factory deploys a `TREXAccessManager` behind the cloned beacon, creates a domain named after the token, assigns the token and its storage, commissions the suite and hands `ADMIN_ROLE` to `_tokenDetails.accessManagerAdmin`. When a manager is supplied the factory never calls it: the suite deploys with no role wiring and is not operable until the issuer commissions it (`AccessManagerSetupLib.commissionSuite`). Restricted to the suite deployer role chosen at setup (`AccessManagerSetupLib.setupTREXFactoryRoles`), which is never one of the three setter roles. emits `TREXSuiteDeployed` and `IsolatedSuiteDeployed` events","params":{"_claimDetails":"The details of the claims and claim issuers (see struct ClaimDetails for more details)","_salt":"the salt used to make the contracts deployments with CREATE3","_tokenDetails":"The details of the token to deploy (see struct TokenDetails for more details)"}},"getIdFactory()":{"details":"getter for identity factory address"},"getImplementationAuthority()":{"details":"getter for implementation authority address"},"getToken(string)":{"details":"getter for token address corresponding to salt string","params":{"_salt":"The salt string that was used to deploy the token"}},"getTrustedGatewayRegistry()":{"details":"getter for the trusted gateway registry address wired into newly deployed tokens"},"setIdFactory(address)":{"details":"setter for identity factory contract address the identity factory contract is used by the TREX Factory to deploy the ONCHAINID of the token in case the ONCHAINID is not specified Restricted to the platform owner role, as chosen at setup (`AccessManagerSetupLib.setupTREXFactoryRoles`), which is never the suite deployer role. emits `IdFactorySet` event","params":{"_idFactory":"The address of the identity factory contract"}},"setImplementationAuthority(address)":{"details":"setter for implementation authority contract address the implementation authority contract contains the addresses of all implementation contracts the proxies created by the factory will use the different implementations available in the implementation authority contract Restricted to the version manager role, the role that already publishes the code versions suites run, as chosen at setup (`AccessManagerSetupLib.setupTREXFactoryRoles`), which is never the suite deployer role. emits `ImplementationAuthoritySet` event","params":{"_implementationAuthority":"The address of the implementation authority smart contract"}},"setTrustedGatewayRegistry(address)":{"details":"setter for the trusted gateway registry address the registry is the network's vetted gateway set; every token deployed by the factory is pointed at it at deployment and carries no setter of its own, so gateway trust stays a network-level decision. Tokens already deployed keep the registry they were deployed with. Restricted to the interop manager role, the role that already decides which bridges are trusted, as chosen at setup (`AccessManagerSetupLib.setupTREXFactoryRoles`), which is never the suite deployer role. emits `TrustedGatewayRegistrySet` event","params":{"_trustedGatewayRegistry":"The address of the trusted gateway registry contract"}}},"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/factory/ITREXFactory.sol":"ITREXFactory"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/factory/ITREXFactory.sol":{"keccak256":"0x8307c66e302d6c0d8879b08034630c886ac447aebcebced1f53b2e3f3f25fd54","urls":["bzz-raw://ef16012db28a71f707d25ff32d95f0c7a5120986dfca16ce956d482ba45eed0e","dweb:/ipfs/QmanSGXrEkoAyScaeuzHx5ur3nqxn3LA9JB8EDCBowFXLE"],"license":"GPL-3.0"}},"version":1},"id":30}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":[{"type":"function","name":"addAndUseTREXVersion","inputs":[{"name":"_version","type":"tuple","internalType":"struct ITREXImplementationAuthority.Version","components":[{"name":"major","type":"uint8","internalType":"uint8"},{"name":"minor","type":"uint8","internalType":"uint8"},{"name":"patch","type":"uint8","internalType":"uint8"}]},{"name":"_trex","type":"tuple","internalType":"struct ITREXImplementationAuthority.TREXContracts","components":[{"name":"tokenImplementation","type":"address","internalType":"address"},{"name":"ctrImplementation","type":"address","internalType":"address"},{"name":"irImplementation","type":"address","internalType":"address"},{"name":"irsImplementation","type":"address","internalType":"address"},{"name":"tirImplementation","type":"address","internalType":"address"},{"name":"mcImplementation","type":"address","internalType":"address"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"addTREXVersion","inputs":[{"name":"_version","type":"tuple","internalType":"struct ITREXImplementationAuthority.Version","components":[{"name":"major","type":"uint8","internalType":"uint8"},{"name":"minor","type":"uint8","internalType":"uint8"},{"name":"patch","type":"uint8","internalType":"uint8"}]},{"name":"_trex","type":"tuple","internalType":"struct ITREXImplementationAuthority.TREXContracts","components":[{"name":"tokenImplementation","type":"address","internalType":"address"},{"name":"ctrImplementation","type":"address","internalType":"address"},{"name":"irImplementation","type":"address","internalType":"address"},{"name":"irsImplementation","type":"address","internalType":"address"},{"name":"tirImplementation","type":"address","internalType":"address"},{"name":"mcImplementation","type":"address","internalType":"address"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"changeImplementationAuthority","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_newImplementationAuthority","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"fetchVersion","inputs":[{"name":"_version","type":"tuple","internalType":"struct ITREXImplementationAuthority.Version","components":[{"name":"major","type":"uint8","internalType":"uint8"},{"name":"minor","type":"uint8","internalType":"uint8"},{"name":"patch","type":"uint8","internalType":"uint8"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getCTRImplementation","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getContracts","inputs":[{"name":"_version","type":"tuple","internalType":"struct ITREXImplementationAuthority.Version","components":[{"name":"major","type":"uint8","internalType":"uint8"},{"name":"minor","type":"uint8","internalType":"uint8"},{"name":"patch","type":"uint8","internalType":"uint8"}]}],"outputs":[{"name":"","type":"tuple","internalType":"struct ITREXImplementationAuthority.TREXContracts","components":[{"name":"tokenImplementation","type":"address","internalType":"address"},{"name":"ctrImplementation","type":"address","internalType":"address"},{"name":"irImplementation","type":"address","internalType":"address"},{"name":"irsImplementation","type":"address","internalType":"address"},{"name":"tirImplementation","type":"address","internalType":"address"},{"name":"mcImplementation","type":"address","internalType":"address"}]}],"stateMutability":"view"},{"type":"function","name":"getCurrentVersion","inputs":[],"outputs":[{"name":"","type":"tuple","internalType":"struct ITREXImplementationAuthority.Version","components":[{"name":"major","type":"uint8","internalType":"uint8"},{"name":"minor","type":"uint8","internalType":"uint8"},{"name":"patch","type":"uint8","internalType":"uint8"}]}],"stateMutability":"view"},{"type":"function","name":"getIRImplementation","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getIRSImplementation","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getMCImplementation","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getReferenceContract","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getTIRImplementation","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getTREXFactory","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getTokenImplementation","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"isReferenceContract","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"setIAFactory","inputs":[{"name":"iaFactory","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setTREXFactory","inputs":[{"name":"trexFactory","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"useTREXVersion","inputs":[{"name":"_version","type":"tuple","internalType":"struct ITREXImplementationAuthority.Version","components":[{"name":"major","type":"uint8","internalType":"uint8"},{"name":"minor","type":"uint8","internalType":"uint8"},{"name":"patch","type":"uint8","internalType":"uint8"}]}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"addAndUseTREXVersion((uint8,uint8,uint8),(address,address,address,address,address,address))":"71673bd0","addTREXVersion((uint8,uint8,uint8),(address,address,address,address,address,address))":"9585548a","changeImplementationAuthority(address,address)":"7f82a5e7","fetchVersion((uint8,uint8,uint8))":"0f3ca8ca","getCTRImplementation()":"6ff6e83f","getContracts((uint8,uint8,uint8))":"afce4bea","getCurrentVersion()":"fabec44a","getIRImplementation()":"1ee9ce8b","getIRSImplementation()":"9e3e7bb9","getMCImplementation()":"61f89825","getReferenceContract()":"cd24be22","getTIRImplementation()":"fedcc052","getTREXFactory()":"2c5d4f8e","getTokenImplementation()":"709bc7f3","isReferenceContract()":"1320a65a","setIAFactory(address)":"cf49020e","setTREXFactory(address)":"6df23789","useTREXVersion((uint8,uint8,uint8))":"f38d2491"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"major\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"minor\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"patch\",\"type\":\"uint8\"}],\"internalType\":\"struct ITREXImplementationAuthority.Version\",\"name\":\"_version\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ctrImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irsImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tirImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"mcImplementation\",\"type\":\"address\"}],\"internalType\":\"struct ITREXImplementationAuthority.TREXContracts\",\"name\":\"_trex\",\"type\":\"tuple\"}],\"name\":\"addAndUseTREXVersion\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"major\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"minor\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"patch\",\"type\":\"uint8\"}],\"internalType\":\"struct ITREXImplementationAuthority.Version\",\"name\":\"_version\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ctrImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irsImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tirImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"mcImplementation\",\"type\":\"address\"}],\"internalType\":\"struct ITREXImplementationAuthority.TREXContracts\",\"name\":\"_trex\",\"type\":\"tuple\"}],\"name\":\"addTREXVersion\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_newImplementationAuthority\",\"type\":\"address\"}],\"name\":\"changeImplementationAuthority\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"major\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"minor\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"patch\",\"type\":\"uint8\"}],\"internalType\":\"struct ITREXImplementationAuthority.Version\",\"name\":\"_version\",\"type\":\"tuple\"}],\"name\":\"fetchVersion\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCTRImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"major\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"minor\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"patch\",\"type\":\"uint8\"}],\"internalType\":\"struct ITREXImplementationAuthority.Version\",\"name\":\"_version\",\"type\":\"tuple\"}],\"name\":\"getContracts\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ctrImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irsImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tirImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"mcImplementation\",\"type\":\"address\"}],\"internalType\":\"struct ITREXImplementationAuthority.TREXContracts\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentVersion\",\"outputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"major\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"minor\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"patch\",\"type\":\"uint8\"}],\"internalType\":\"struct ITREXImplementationAuthority.Version\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getIRImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getIRSImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMCImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReferenceContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTIRImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTREXFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isReferenceContract\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"iaFactory\",\"type\":\"address\"}],\"name\":\"setIAFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"trexFactory\",\"type\":\"address\"}],\"name\":\"setTREXFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"major\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"minor\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"patch\",\"type\":\"uint8\"}],\"internalType\":\"struct ITREXImplementationAuthority.Version\",\"name\":\"_version\",\"type\":\"tuple\"}],\"name\":\"useTREXVersion\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addAndUseTREXVersion((uint8,uint8,uint8),(address,address,address,address,address,address))\":{\"details\":\"updates the current version in use by the proxies variation of the `useTREXVersion` allowing to use a new version this function calls in a single transaction the `addTREXVersion` and the `useTREXVersion` using an existing version\",\"params\":{\"_trex\":\"the set of contracts corresponding to the version only Owner can call (check performed in addTREXVersion) only reference contract can call (check performed in addTREXVersion) emits a `TREXVersionAdded`event emits a `VersionUpdated` event\",\"_version\":\"the version to use\"}},\"addTREXVersion((uint8,uint8,uint8),(address,address,address,address,address,address))\":{\"details\":\"adds a new Version of TREXContracts to the mapping only callable on the reference contract only Owner can call this function\",\"params\":{\"_trex\":\"the list of contracts corresponding to the new version _trex cannot contain zero addresses emits a `TREXVersionAdded` event\",\"_version\":\"the new version to add to the mapping\"}},\"changeImplementationAuthority(address,address)\":{\"details\":\"change the implementationAuthority address of all proxy contracts linked to a given token only the owner of all proxy contracts can call this function\",\"params\":{\"_newImplementationAuthority\":\"the address of the new IA contract caller has to be owner of all contracts linked to the token and impacted by the change Set _newImplementationAuthority on zero address to deploy a new IA contract New IA contracts can only be deployed ONCE per token and only if current IA is the main IA if _newImplementationAuthority is not a new contract it must be using the same version as the current IA contract. calls `setImplementationAuthority` on all proxies linked to the token emits a `ImplementationAuthorityChanged` event\",\"_token\":\"the address of the token proxy\"}},\"fetchVersion((uint8,uint8,uint8))\":{\"details\":\"allows to fetch a TREX version available on the reference contract can be called only from auxiliary contracts, not on reference (main) contract throws if the version was already fetched adds the new version on the local storage allowing the update of contracts through the `useTREXVersion` afterwards\"},\"getCTRImplementation()\":{\"details\":\"getter function returning address of ClaimTopicsRegistry contract implementation currently used by the proxies using this TREXImplementationAuthority\"},\"getContracts((uint8,uint8,uint8))\":{\"details\":\"getter function returning the contracts corresponding to a version\",\"params\":{\"_version\":\"the version that contracts are requested for\"}},\"getCurrentVersion()\":{\"details\":\"getter function returning the current version of contracts used by proxies\"},\"getIRImplementation()\":{\"details\":\"getter function returning address of IdentityRegistry contract implementation currently used by the proxies using this TREXImplementationAuthority\"},\"getIRSImplementation()\":{\"details\":\"getter function returning address of IdentityRegistryStorage contract implementation currently used by the proxies using this TREXImplementationAuthority\"},\"getMCImplementation()\":{\"details\":\"getter function returning address of ModularCompliance contract implementation currently used by the proxies using this TREXImplementationAuthority\"},\"getReferenceContract()\":{\"details\":\"getter for reference contract address\"},\"getTIRImplementation()\":{\"details\":\"getter function returning address of TrustedIssuersRegistry contract implementation currently used by the proxies using this TREXImplementationAuthority\"},\"getTREXFactory()\":{\"details\":\"getter function returning address of reference TREX factory\"},\"getTokenImplementation()\":{\"details\":\"getter function returning address of token contract implementation currently used by the proxies using this TREXImplementationAuthority\"},\"isReferenceContract()\":{\"details\":\"returns true if the contract is the main contract returns false if the contract is an auxiliary contract\"},\"setIAFactory(address)\":{\"details\":\"setter for _iaFactory variable _iaFactory is set at zero address for auxiliary contracts for main contract it can be set post-deployment or at deployment in the constructor\",\"params\":{\"iaFactory\":\"the address of IAFactory contract emits a IAFactorySet event only Owner can call can be called only on main contract, auxiliary contracts cannot call\"}},\"setTREXFactory(address)\":{\"details\":\"setter for _trexFactory variable _trexFactory is set at deployment for auxiliary contracts for main contract it must be set post-deployment as main IA is deployed before the TREXFactory.\",\"params\":{\"trexFactory\":\"the address of TREXFactory contract emits a TREXFactorySet event only Owner can call can be called only on main contract, auxiliary contracts cannot call\"}},\"useTREXVersion((uint8,uint8,uint8))\":{\"details\":\"updates the current version in use by the proxies\",\"params\":{\"_version\":\"the version to use reverts if _version is already used or if version does not exist only Owner can call emits a `VersionUpdated` event\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/proxy/authority/ITREXImplementationAuthority.sol\":\"ITREXImplementationAuthority\"},\"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/proxy/authority/ITREXImplementationAuthority.sol\":{\"keccak256\":\"0xccc7b1eeed262b3942710b8d6df04ab70bce2479a088ac56fc9552f6373e6024\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://241e4e1fe6fc5a4daf107e3e15e4b001f2c8913374e308d97644821d75d0c54c\",\"dweb:/ipfs/QmNZeLRxaSvtt7dnZbRc1ygvgxP1tBXsTWUkkPrhsmZm8B\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"struct ITREXImplementationAuthority.Version","name":"_version","type":"tuple","components":[{"internalType":"uint8","name":"major","type":"uint8"},{"internalType":"uint8","name":"minor","type":"uint8"},{"internalType":"uint8","name":"patch","type":"uint8"}]},{"internalType":"struct ITREXImplementationAuthority.TREXContracts","name":"_trex","type":"tuple","components":[{"internalType":"address","name":"tokenImplementation","type":"address"},{"internalType":"address","name":"ctrImplementation","type":"address"},{"internalType":"address","name":"irImplementation","type":"address"},{"internalType":"address","name":"irsImplementation","type":"address"},{"internalType":"address","name":"tirImplementation","type":"address"},{"internalType":"address","name":"mcImplementation","type":"address"}]}],"stateMutability":"nonpayable","type":"function","name":"addAndUseTREXVersion"},{"inputs":[{"internalType":"struct ITREXImplementationAuthority.Version","name":"_version","type":"tuple","components":[{"internalType":"uint8","name":"major","type":"uint8"},{"internalType":"uint8","name":"minor","type":"uint8"},{"internalType":"uint8","name":"patch","type":"uint8"}]},{"internalType":"struct ITREXImplementationAuthority.TREXContracts","name":"_trex","type":"tuple","components":[{"internalType":"address","name":"tokenImplementation","type":"address"},{"internalType":"address","name":"ctrImplementation","type":"address"},{"internalType":"address","name":"irImplementation","type":"address"},{"internalType":"address","name":"irsImplementation","type":"address"},{"internalType":"address","name":"tirImplementation","type":"address"},{"internalType":"address","name":"mcImplementation","type":"address"}]}],"stateMutability":"nonpayable","type":"function","name":"addTREXVersion"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_newImplementationAuthority","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"changeImplementationAuthority"},{"inputs":[{"internalType":"struct ITREXImplementationAuthority.Version","name":"_version","type":"tuple","components":[{"internalType":"uint8","name":"major","type":"uint8"},{"internalType":"uint8","name":"minor","type":"uint8"},{"internalType":"uint8","name":"patch","type":"uint8"}]}],"stateMutability":"nonpayable","type":"function","name":"fetchVersion"},{"inputs":[],"stateMutability":"view","type":"function","name":"getCTRImplementation","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"struct ITREXImplementationAuthority.Version","name":"_version","type":"tuple","components":[{"internalType":"uint8","name":"major","type":"uint8"},{"internalType":"uint8","name":"minor","type":"uint8"},{"internalType":"uint8","name":"patch","type":"uint8"}]}],"stateMutability":"view","type":"function","name":"getContracts","outputs":[{"internalType":"struct ITREXImplementationAuthority.TREXContracts","name":"","type":"tuple","components":[{"internalType":"address","name":"tokenImplementation","type":"address"},{"internalType":"address","name":"ctrImplementation","type":"address"},{"internalType":"address","name":"irImplementation","type":"address"},{"internalType":"address","name":"irsImplementation","type":"address"},{"internalType":"address","name":"tirImplementation","type":"address"},{"internalType":"address","name":"mcImplementation","type":"address"}]}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentVersion","outputs":[{"internalType":"struct ITREXImplementationAuthority.Version","name":"","type":"tuple","components":[{"internalType":"uint8","name":"major","type":"uint8"},{"internalType":"uint8","name":"minor","type":"uint8"},{"internalType":"uint8","name":"patch","type":"uint8"}]}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getIRImplementation","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getIRSImplementation","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getMCImplementation","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getReferenceContract","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getTIRImplementation","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getTREXFactory","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getTokenImplementation","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"isReferenceContract","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"iaFactory","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setIAFactory"},{"inputs":[{"internalType":"address","name":"trexFactory","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setTREXFactory"},{"inputs":[{"internalType":"struct ITREXImplementationAuthority.Version","name":"_version","type":"tuple","components":[{"internalType":"uint8","name":"major","type":"uint8"},{"internalType":"uint8","name":"minor","type":"uint8"},{"internalType":"uint8","name":"patch","type":"uint8"}]}],"stateMutability":"nonpayable","type":"function","name":"useTREXVersion"}],"devdoc":{"kind":"dev","methods":{"addAndUseTREXVersion((uint8,uint8,uint8),(address,address,address,address,address,address))":{"details":"updates the current version in use by the proxies variation of the `useTREXVersion` allowing to use a new version this function calls in a single transaction the `addTREXVersion` and the `useTREXVersion` using an existing version","params":{"_trex":"the set of contracts corresponding to the version only Owner can call (check performed in addTREXVersion) only reference contract can call (check performed in addTREXVersion) emits a `TREXVersionAdded`event emits a `VersionUpdated` event","_version":"the version to use"}},"addTREXVersion((uint8,uint8,uint8),(address,address,address,address,address,address))":{"details":"adds a new Version of TREXContracts to the mapping only callable on the reference contract only Owner can call this function","params":{"_trex":"the list of contracts corresponding to the new version _trex cannot contain zero addresses emits a `TREXVersionAdded` event","_version":"the new version to add to the mapping"}},"changeImplementationAuthority(address,address)":{"details":"change the implementationAuthority address of all proxy contracts linked to a given token only the owner of all proxy contracts can call this function","params":{"_newImplementationAuthority":"the address of the new IA contract caller has to be owner of all contracts linked to the token and impacted by the change Set _newImplementationAuthority on zero address to deploy a new IA contract New IA contracts can only be deployed ONCE per token and only if current IA is the main IA if _newImplementationAuthority is not a new contract it must be using the same version as the current IA contract. calls `setImplementationAuthority` on all proxies linked to the token emits a `ImplementationAuthorityChanged` event","_token":"the address of the token proxy"}},"fetchVersion((uint8,uint8,uint8))":{"details":"allows to fetch a TREX version available on the reference contract can be called only from auxiliary contracts, not on reference (main) contract throws if the version was already fetched adds the new version on the local storage allowing the update of contracts through the `useTREXVersion` afterwards"},"getCTRImplementation()":{"details":"getter function returning address of ClaimTopicsRegistry contract implementation currently used by the proxies using this TREXImplementationAuthority"},"getContracts((uint8,uint8,uint8))":{"details":"getter function returning the contracts corresponding to a version","params":{"_version":"the version that contracts are requested for"}},"getCurrentVersion()":{"details":"getter function returning the current version of contracts used by proxies"},"getIRImplementation()":{"details":"getter function returning address of IdentityRegistry contract implementation currently used by the proxies using this TREXImplementationAuthority"},"getIRSImplementation()":{"details":"getter function returning address of IdentityRegistryStorage contract implementation currently used by the proxies using this TREXImplementationAuthority"},"getMCImplementation()":{"details":"getter function returning address of ModularCompliance contract implementation currently used by the proxies using this TREXImplementationAuthority"},"getReferenceContract()":{"details":"getter for reference contract address"},"getTIRImplementation()":{"details":"getter function returning address of TrustedIssuersRegistry contract implementation currently used by the proxies using this TREXImplementationAuthority"},"getTREXFactory()":{"details":"getter function returning address of reference TREX factory"},"getTokenImplementation()":{"details":"getter function returning address of token contract implementation currently used by the proxies using this TREXImplementationAuthority"},"isReferenceContract()":{"details":"returns true if the contract is the main contract returns false if the contract is an auxiliary contract"},"setIAFactory(address)":{"details":"setter for _iaFactory variable _iaFactory is set at zero address for auxiliary contracts for main contract it can be set post-deployment or at deployment in the constructor","params":{"iaFactory":"the address of IAFactory contract emits a IAFactorySet event only Owner can call can be called only on main contract, auxiliary contracts cannot call"}},"setTREXFactory(address)":{"details":"setter for _trexFactory variable _trexFactory is set at deployment for auxiliary contracts for main contract it must be set post-deployment as main IA is deployed before the TREXFactory.","params":{"trexFactory":"the address of TREXFactory contract emits a TREXFactorySet event only Owner can call can be called only on main contract, auxiliary contracts cannot call"}},"useTREXVersion((uint8,uint8,uint8))":{"details":"updates the current version in use by the proxies","params":{"_version":"the version to use reverts if _version is already used or if version does not exist only Owner can call emits a `VersionUpdated` 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/proxy/authority/ITREXImplementationAuthority.sol":"ITREXImplementationAuthority"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/proxy/authority/ITREXImplementationAuthority.sol":{"keccak256":"0xccc7b1eeed262b3942710b8d6df04ab70bce2479a088ac56fc9552f6373e6024","urls":["bzz-raw://241e4e1fe6fc5a4daf107e3e15e4b001f2c8913374e308d97644821d75d0c54c","dweb:/ipfs/QmNZeLRxaSvtt7dnZbRc1ygvgxP1tBXsTWUkkPrhsmZm8B"],"license":"GPL-3.0"}},"version":1},"id":27}
|
|
1
|
+
{"abi":[{"type":"function","name":"beacons","inputs":[],"outputs":[{"name":"","type":"tuple","internalType":"struct ITREXImplementationAuthority.SuiteBeacons","components":[{"name":"tokenBeacon","type":"address","internalType":"address"},{"name":"trexRegistryBeacon","type":"address","internalType":"address"},{"name":"irsBeacon","type":"address","internalType":"address"},{"name":"mcBeacon","type":"address","internalType":"address"},{"name":"accessManagerBeacon","type":"address","internalType":"address"}]}],"stateMutability":"view"},{"type":"function","name":"currentVersion","inputs":[],"outputs":[{"name":"","type":"uint24","internalType":"Version"}],"stateMutability":"view"},{"type":"function","name":"implementations","inputs":[],"outputs":[{"name":"","type":"tuple","internalType":"struct ITREXImplementationAuthority.SuiteImplementations","components":[{"name":"tokenImplementation","type":"address","internalType":"address"},{"name":"trexRegistryImplementation","type":"address","internalType":"address"},{"name":"irsImplementation","type":"address","internalType":"address"},{"name":"mcImplementation","type":"address","internalType":"address"},{"name":"accessManagerImplementation","type":"address","internalType":"address"}]}],"stateMutability":"view"},{"type":"function","name":"implementationsFor","inputs":[{"name":"version","type":"uint24","internalType":"Version"}],"outputs":[{"name":"","type":"tuple","internalType":"struct ITREXImplementationAuthority.SuiteImplementations","components":[{"name":"tokenImplementation","type":"address","internalType":"address"},{"name":"trexRegistryImplementation","type":"address","internalType":"address"},{"name":"irsImplementation","type":"address","internalType":"address"},{"name":"mcImplementation","type":"address","internalType":"address"},{"name":"accessManagerImplementation","type":"address","internalType":"address"}]}],"stateMutability":"view"},{"type":"function","name":"publish","inputs":[{"name":"version","type":"uint24","internalType":"Version"},{"name":"impls","type":"tuple","internalType":"struct ITREXImplementationAuthority.SuiteImplementations","components":[{"name":"tokenImplementation","type":"address","internalType":"address"},{"name":"trexRegistryImplementation","type":"address","internalType":"address"},{"name":"irsImplementation","type":"address","internalType":"address"},{"name":"mcImplementation","type":"address","internalType":"address"},{"name":"accessManagerImplementation","type":"address","internalType":"address"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"publishAndUpgrade","inputs":[{"name":"version","type":"uint24","internalType":"Version"},{"name":"impls","type":"tuple","internalType":"struct ITREXImplementationAuthority.SuiteImplementations","components":[{"name":"tokenImplementation","type":"address","internalType":"address"},{"name":"trexRegistryImplementation","type":"address","internalType":"address"},{"name":"irsImplementation","type":"address","internalType":"address"},{"name":"mcImplementation","type":"address","internalType":"address"},{"name":"accessManagerImplementation","type":"address","internalType":"address"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"upgrade","inputs":[{"name":"version","type":"uint24","internalType":"Version"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"beacons()":"9a7c469a","currentVersion()":"9d888e86","implementations()":"30e9012c","implementationsFor(uint24)":"e29041f0","publish(uint24,(address,address,address,address,address))":"639e5fa4","publishAndUpgrade(uint24,(address,address,address,address,address))":"dcbe7634","upgrade(uint24)":"228c1462"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"beacons\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenBeacon\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"trexRegistryBeacon\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irsBeacon\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"mcBeacon\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"accessManagerBeacon\",\"type\":\"address\"}],\"internalType\":\"struct ITREXImplementationAuthority.SuiteBeacons\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentVersion\",\"outputs\":[{\"internalType\":\"Version\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"implementations\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"trexRegistryImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irsImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"mcImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"accessManagerImplementation\",\"type\":\"address\"}],\"internalType\":\"struct ITREXImplementationAuthority.SuiteImplementations\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Version\",\"name\":\"version\",\"type\":\"uint24\"}],\"name\":\"implementationsFor\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"trexRegistryImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irsImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"mcImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"accessManagerImplementation\",\"type\":\"address\"}],\"internalType\":\"struct ITREXImplementationAuthority.SuiteImplementations\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Version\",\"name\":\"version\",\"type\":\"uint24\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"trexRegistryImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irsImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"mcImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"accessManagerImplementation\",\"type\":\"address\"}],\"internalType\":\"struct ITREXImplementationAuthority.SuiteImplementations\",\"name\":\"impls\",\"type\":\"tuple\"}],\"name\":\"publish\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Version\",\"name\":\"version\",\"type\":\"uint24\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"trexRegistryImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irsImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"mcImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"accessManagerImplementation\",\"type\":\"address\"}],\"internalType\":\"struct ITREXImplementationAuthority.SuiteImplementations\",\"name\":\"impls\",\"type\":\"tuple\"}],\"name\":\"publishAndUpgrade\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Version\",\"name\":\"version\",\"type\":\"uint24\"}],\"name\":\"upgrade\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"beacons()\":{\"details\":\"returns the beacon addresses driving every shared-mode suite. beacon addresses never change after construction.\"},\"currentVersion()\":{\"details\":\"returns the active version, i.e. the one every beacon currently points at.\"},\"implementations()\":{\"details\":\"returns the implementations the beacons currently point at.\"},\"implementationsFor(uint24)\":{\"details\":\"returns the archived implementations for a given version. reverts if the version was never published.\",\"params\":{\"version\":\"the version to query\"}},\"publish(uint24,(address,address,address,address,address))\":{\"details\":\"archives a new version's implementations without touching any beacon. The beacons (and therefore every live shared-mode suite) keep pointing at the active version until a separate `upgrade(version)` call rotates them.\",\"params\":{\"impls\":\"the set of implementations corresponding to the new version reverts if the version was already published reverts if any implementation address is zero only VERSION_MANAGER can call emits a `VersionPublished` event\",\"version\":\"the new version to publish\"}},\"publishAndUpgrade(uint24,(address,address,address,address,address))\":{\"details\":\"convenience wrapper that publishes a new version and immediately activates it. Equivalent to `publish(version, impls)` followed by `upgrade(version)`.\",\"params\":{\"impls\":\"the set of implementations corresponding to the new version reverts if the version is not greater than the active version reverts if the version was already published reverts if any implementation address is zero only VERSION_MANAGER can call emits `VersionPublished` and `SuiteUpgraded` events\",\"version\":\"the new version to publish\"}},\"upgrade(uint24)\":{\"details\":\"rotates every beacon to the implementations archived for a previously published version. Drives every shared-mode suite to that version atomically and marks it as the active version. Only moves forward: the target must rank above the active version, so a beacon can never be rolled back onto an older implementation.\",\"params\":{\"version\":\"the published version to activate reverts if the version is not greater than the active version reverts if the version was never published only VERSION_MANAGER can call emits a `SuiteUpgraded` event\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/proxy/beacon/ITREXImplementationAuthority.sol\":\"ITREXImplementationAuthority\"},\"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/libraries/VersionLib.sol\":{\"keccak256\":\"0xfecfff4b733780cbabb22a5693c26388dd4cd5f83a7e2eeb69f983b677113647\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://195202d9880847119f05fc800add69d342b48ccc8ad363128f858fce3a7c270f\",\"dweb:/ipfs/QmWnLLU7Tuc52tDoaG2wpPAWZTxWABWwhU52YQ76t2poCq\"]},\"contracts/proxy/beacon/ITREXImplementationAuthority.sol\":{\"keccak256\":\"0x7db7a3a2bd0740be97d07b6035d1a840b616e777a1fad132760ea47f40b68d54\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://907624be1a650cc102f6d6bc58dd8a9a230b2e34ae982ee0a22446e00dd78924\",\"dweb:/ipfs/QmZiWAxgnCshpCQKmyZk28VtC6EZWPNkwSr8pfeLPqaLmy\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"view","type":"function","name":"beacons","outputs":[{"internalType":"struct ITREXImplementationAuthority.SuiteBeacons","name":"","type":"tuple","components":[{"internalType":"address","name":"tokenBeacon","type":"address"},{"internalType":"address","name":"trexRegistryBeacon","type":"address"},{"internalType":"address","name":"irsBeacon","type":"address"},{"internalType":"address","name":"mcBeacon","type":"address"},{"internalType":"address","name":"accessManagerBeacon","type":"address"}]}]},{"inputs":[],"stateMutability":"view","type":"function","name":"currentVersion","outputs":[{"internalType":"Version","name":"","type":"uint24"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"implementations","outputs":[{"internalType":"struct ITREXImplementationAuthority.SuiteImplementations","name":"","type":"tuple","components":[{"internalType":"address","name":"tokenImplementation","type":"address"},{"internalType":"address","name":"trexRegistryImplementation","type":"address"},{"internalType":"address","name":"irsImplementation","type":"address"},{"internalType":"address","name":"mcImplementation","type":"address"},{"internalType":"address","name":"accessManagerImplementation","type":"address"}]}]},{"inputs":[{"internalType":"Version","name":"version","type":"uint24"}],"stateMutability":"view","type":"function","name":"implementationsFor","outputs":[{"internalType":"struct ITREXImplementationAuthority.SuiteImplementations","name":"","type":"tuple","components":[{"internalType":"address","name":"tokenImplementation","type":"address"},{"internalType":"address","name":"trexRegistryImplementation","type":"address"},{"internalType":"address","name":"irsImplementation","type":"address"},{"internalType":"address","name":"mcImplementation","type":"address"},{"internalType":"address","name":"accessManagerImplementation","type":"address"}]}]},{"inputs":[{"internalType":"Version","name":"version","type":"uint24"},{"internalType":"struct ITREXImplementationAuthority.SuiteImplementations","name":"impls","type":"tuple","components":[{"internalType":"address","name":"tokenImplementation","type":"address"},{"internalType":"address","name":"trexRegistryImplementation","type":"address"},{"internalType":"address","name":"irsImplementation","type":"address"},{"internalType":"address","name":"mcImplementation","type":"address"},{"internalType":"address","name":"accessManagerImplementation","type":"address"}]}],"stateMutability":"nonpayable","type":"function","name":"publish"},{"inputs":[{"internalType":"Version","name":"version","type":"uint24"},{"internalType":"struct ITREXImplementationAuthority.SuiteImplementations","name":"impls","type":"tuple","components":[{"internalType":"address","name":"tokenImplementation","type":"address"},{"internalType":"address","name":"trexRegistryImplementation","type":"address"},{"internalType":"address","name":"irsImplementation","type":"address"},{"internalType":"address","name":"mcImplementation","type":"address"},{"internalType":"address","name":"accessManagerImplementation","type":"address"}]}],"stateMutability":"nonpayable","type":"function","name":"publishAndUpgrade"},{"inputs":[{"internalType":"Version","name":"version","type":"uint24"}],"stateMutability":"nonpayable","type":"function","name":"upgrade"}],"devdoc":{"kind":"dev","methods":{"beacons()":{"details":"returns the beacon addresses driving every shared-mode suite. beacon addresses never change after construction."},"currentVersion()":{"details":"returns the active version, i.e. the one every beacon currently points at."},"implementations()":{"details":"returns the implementations the beacons currently point at."},"implementationsFor(uint24)":{"details":"returns the archived implementations for a given version. reverts if the version was never published.","params":{"version":"the version to query"}},"publish(uint24,(address,address,address,address,address))":{"details":"archives a new version's implementations without touching any beacon. The beacons (and therefore every live shared-mode suite) keep pointing at the active version until a separate `upgrade(version)` call rotates them.","params":{"impls":"the set of implementations corresponding to the new version reverts if the version was already published reverts if any implementation address is zero only VERSION_MANAGER can call emits a `VersionPublished` event","version":"the new version to publish"}},"publishAndUpgrade(uint24,(address,address,address,address,address))":{"details":"convenience wrapper that publishes a new version and immediately activates it. Equivalent to `publish(version, impls)` followed by `upgrade(version)`.","params":{"impls":"the set of implementations corresponding to the new version reverts if the version is not greater than the active version reverts if the version was already published reverts if any implementation address is zero only VERSION_MANAGER can call emits `VersionPublished` and `SuiteUpgraded` events","version":"the new version to publish"}},"upgrade(uint24)":{"details":"rotates every beacon to the implementations archived for a previously published version. Drives every shared-mode suite to that version atomically and marks it as the active version. Only moves forward: the target must rank above the active version, so a beacon can never be rolled back onto an older implementation.","params":{"version":"the published version to activate reverts if the version is not greater than the active version reverts if the version was never published only VERSION_MANAGER can call emits a `SuiteUpgraded` 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/proxy/beacon/ITREXImplementationAuthority.sol":"ITREXImplementationAuthority"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/libraries/VersionLib.sol":{"keccak256":"0xfecfff4b733780cbabb22a5693c26388dd4cd5f83a7e2eeb69f983b677113647","urls":["bzz-raw://195202d9880847119f05fc800add69d342b48ccc8ad363128f858fce3a7c270f","dweb:/ipfs/QmWnLLU7Tuc52tDoaG2wpPAWZTxWABWwhU52YQ76t2poCq"],"license":"GPL-3.0"},"contracts/proxy/beacon/ITREXImplementationAuthority.sol":{"keccak256":"0x7db7a3a2bd0740be97d07b6035d1a840b616e777a1fad132760ea47f40b68d54","urls":["bzz-raw://907624be1a650cc102f6d6bc58dd8a9a230b2e34ae982ee0a22446e00dd78924","dweb:/ipfs/QmZiWAxgnCshpCQKmyZk28VtC6EZWPNkwSr8pfeLPqaLmy"],"license":"GPL-3.0"}},"version":1},"id":45}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"abi":[{"type":"function","name":"chainOf","inputs":[{"name":"chainKey","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"chainType","type":"bytes2","internalType":"bytes2"},{"name":"chainReference","type":"bytes","internalType":"bytes"}],"stateMutability":"view"},{"type":"function","name":"isChainOpen","inputs":[{"name":"chainKey","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"peerFor","inputs":[{"name":"chainKey","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"bytes","internalType":"bytes"}],"stateMutability":"view"},{"type":"function","name":"pinnedRouteFor","inputs":[{"name":"validationId","type":"uint256","internalType":"uint256"},{"name":"chainKey","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"routeFor","inputs":[{"name":"chainKey","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"setPeer","inputs":[{"name":"chainKey","type":"bytes32","internalType":"bytes32"},{"name":"peer","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setRoute","inputs":[{"name":"chainType","type":"bytes2","internalType":"bytes2"},{"name":"chainReference","type":"bytes","internalType":"bytes"},{"name":"gateway","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"trustedGatewayRegistry","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"event","name":"BurnProofReceived","inputs":[{"name":"originChainKey","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"recallId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"burnedWallet","type":"bytes","indexed":false,"internalType":"bytes"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"ChainRegistered","inputs":[{"name":"chainKey","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"chainType","type":"bytes2","indexed":false,"internalType":"bytes2"},{"name":"chainReference","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"PeerSet","inputs":[{"name":"chainKey","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"peer","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"ProtocolMessageSent","inputs":[{"name":"messageType","type":"uint8","indexed":true,"internalType":"enum MessageTypesLib.Message"},{"name":"chainKey","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"sendId","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"RouteSet","inputs":[{"name":"chainKey","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"gateway","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"TrustedGatewayRegistrySet","inputs":[{"name":"trustedGatewayRegistry","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"ValidationRoutePinned","inputs":[{"name":"validationId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"chainKey","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"gateway","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"error","name":"ChainNotOpen","inputs":[{"name":"chainKey","type":"bytes32","internalType":"bytes32"}]},{"type":"error","name":"ChainNotRegistered","inputs":[{"name":"chainKey","type":"bytes32","internalType":"bytes32"}]},{"type":"error","name":"GatewayNotPinned","inputs":[{"name":"gateway","type":"address","internalType":"address"},{"name":"validationId","type":"uint256","internalType":"uint256"},{"name":"chainKey","type":"bytes32","internalType":"bytes32"}]},{"type":"error","name":"GatewayNotRouted","inputs":[{"name":"gateway","type":"address","internalType":"address"},{"name":"chainKey","type":"bytes32","internalType":"bytes32"}]},{"type":"error","name":"GatewayNotTrusted","inputs":[{"name":"gateway","type":"address","internalType":"address"}]},{"type":"error","name":"InteroperableAddressEmptyReferenceAndAddress","inputs":[]},{"type":"error","name":"InteroperableAddressParsingError","inputs":[{"name":"","type":"bytes","internalType":"bytes"}]},{"type":"error","name":"InvalidChainReference","inputs":[{"name":"chainType","type":"bytes2","internalType":"bytes2"},{"name":"chainReference","type":"bytes","internalType":"bytes"}]},{"type":"error","name":"InvalidPeer","inputs":[{"name":"peer","type":"bytes","internalType":"bytes"}]},{"type":"error","name":"MessageAlreadyReceived","inputs":[{"name":"gateway","type":"address","internalType":"address"},{"name":"receiveId","type":"bytes32","internalType":"bytes32"}]},{"type":"error","name":"MessageTypeNotInbound","inputs":[{"name":"messageType","type":"uint8","internalType":"enum MessageTypesLib.Message"}]},{"type":"error","name":"PeerChainMismatch","inputs":[{"name":"chainKey","type":"bytes32","internalType":"bytes32"},{"name":"peerChainKey","type":"bytes32","internalType":"bytes32"}]},{"type":"error","name":"SafeCastOverflowedUintDowncast","inputs":[{"name":"bits","type":"uint8","internalType":"uint8"},{"name":"value","type":"uint256","internalType":"uint256"}]},{"type":"error","name":"SenderNotPeer","inputs":[{"name":"chainKey","type":"bytes32","internalType":"bytes32"},{"name":"sender","type":"bytes","internalType":"bytes"}]},{"type":"error","name":"UnsupportedMessageVersion","inputs":[{"name":"messageVersion","type":"uint8","internalType":"uint8"}]},{"type":"error","name":"ValidationAlreadyRouted","inputs":[{"name":"validationId","type":"uint256","internalType":"uint256"},{"name":"chainKey","type":"bytes32","internalType":"bytes32"},{"name":"gateway","type":"address","internalType":"address"}]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"chainOf(bytes32)":"9648eca2","isChainOpen(bytes32)":"35ced809","peerFor(bytes32)":"719ee505","pinnedRouteFor(uint256,bytes32)":"6a46a96f","routeFor(bytes32)":"e9d31d41","setPeer(bytes32,bytes)":"e645d044","setRoute(bytes2,bytes,address)":"6a003f4f","trustedGatewayRegistry()":"e570158f"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"}],\"name\":\"ChainNotOpen\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"}],\"name\":\"ChainNotRegistered\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"validationId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"}],\"name\":\"GatewayNotPinned\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"}],\"name\":\"GatewayNotRouted\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"}],\"name\":\"GatewayNotTrusted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InteroperableAddressEmptyReferenceAndAddress\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"InteroperableAddressParsingError\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes2\",\"name\":\"chainType\",\"type\":\"bytes2\"},{\"internalType\":\"bytes\",\"name\":\"chainReference\",\"type\":\"bytes\"}],\"name\":\"InvalidChainReference\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"peer\",\"type\":\"bytes\"}],\"name\":\"InvalidPeer\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"receiveId\",\"type\":\"bytes32\"}],\"name\":\"MessageAlreadyReceived\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"enum MessageTypesLib.Message\",\"name\":\"messageType\",\"type\":\"uint8\"}],\"name\":\"MessageTypeNotInbound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"peerChainKey\",\"type\":\"bytes32\"}],\"name\":\"PeerChainMismatch\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"sender\",\"type\":\"bytes\"}],\"name\":\"SenderNotPeer\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"messageVersion\",\"type\":\"uint8\"}],\"name\":\"UnsupportedMessageVersion\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"validationId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"}],\"name\":\"ValidationAlreadyRouted\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"originChainKey\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"recallId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"burnedWallet\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BurnProofReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes2\",\"name\":\"chainType\",\"type\":\"bytes2\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"chainReference\",\"type\":\"bytes\"}],\"name\":\"ChainRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"peer\",\"type\":\"bytes\"}],\"name\":\"PeerSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"enum MessageTypesLib.Message\",\"name\":\"messageType\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"sendId\",\"type\":\"bytes32\"}],\"name\":\"ProtocolMessageSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"}],\"name\":\"RouteSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"trustedGatewayRegistry\",\"type\":\"address\"}],\"name\":\"TrustedGatewayRegistrySet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"validationId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"}],\"name\":\"ValidationRoutePinned\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"}],\"name\":\"chainOf\",\"outputs\":[{\"internalType\":\"bytes2\",\"name\":\"chainType\",\"type\":\"bytes2\"},{\"internalType\":\"bytes\",\"name\":\"chainReference\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"}],\"name\":\"isChainOpen\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"}],\"name\":\"peerFor\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"validationId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"}],\"name\":\"pinnedRouteFor\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"}],\"name\":\"routeFor\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"chainKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"peer\",\"type\":\"bytes\"}],\"name\":\"setPeer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes2\",\"name\":\"chainType\",\"type\":\"bytes2\"},{\"internalType\":\"bytes\",\"name\":\"chainReference\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"}],\"name\":\"setRoute\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"trustedGatewayRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"chainOf(bytes32)\":{\"details\":\"The ERC-7930 prefix recorded for `chainKey`.\",\"params\":{\"chainKey\":\"The chain to look up.\"},\"returns\":{\"chainReference\":\"The recorded chain reference, empty when the chain was never seen.\",\"chainType\":\"The recorded chain type.\"}},\"isChainOpen(bytes32)\":{\"details\":\"Whether `chainKey` can carry traffic right now: a route, a peer, and a still-trusted gateway. Re-reads the registry, so an emergency gateway removal closes every chain routed through it.\",\"params\":{\"chainKey\":\"The chain to check.\"},\"returns\":{\"_0\":\"True when a message can be sent to, and accepted from, that chain.\"}},\"peerFor(bytes32)\":{\"details\":\"This token's peer on `chainKey`: the registered one, else the token's own address on a known EVM chain, else empty.\",\"params\":{\"chainKey\":\"The chain to look up.\"},\"returns\":{\"_0\":\"The peer as an ERC-7930 address, or empty when the chain cannot be addressed.\"}},\"pinnedRouteFor(uint256,bytes32)\":{\"details\":\"The gateway a validation's leg toward `chainKey` went out through, snapshot at dispatch. Settlements of that validation from that chain are accepted from this gateway only, so a route switch affects new validations and never orphans a leg in flight.\",\"params\":{\"chainKey\":\"The chain the leg was dispatched toward.\",\"validationId\":\"The validation to look up.\"},\"returns\":{\"_0\":\"The pinned gateway, or zero when the leg never went out.\"}},\"routeFor(bytes32)\":{\"details\":\"The stored route for `chainKey`, not re-validated: the gateway may have been untrusted since. Use `isChainOpen` to know whether it can carry traffic.\",\"params\":{\"chainKey\":\"The chain to look up.\"},\"returns\":{\"_0\":\"The routed gateway, or zero when the chain is closed.\"}},\"setPeer(bytes32,bytes)\":{\"details\":\"Registers this token's Lite on `chainKey`: the outbound recipient and the only accepted inbound author for that chain. Only needed off EVM, or when the Lite is not at the token's own address. Empty restores the default. Requirements: - The caller must hold the role bound to this selector by the AccessManager. - A non-empty `peer` must be a canonical ERC-7930 v1 address with an account part, 20 bytes on EVM, and no trailing bytes; otherwise reverts with `InvalidPeer`. - Its chain prefix must hash to `chainKey`; otherwise reverts with `PeerChainMismatch`. A validation already sent keeps settling from the peer it was sent to; only what is sent after the change goes to, and is accepted from, the new peer. Emits `ChainRegistered` on first sight of the prefix, then `PeerSet`.\",\"params\":{\"chainKey\":\"The chain the peer is on.\",\"peer\":\"The Lite as an ERC-7930 address, or empty to restore the default.\"}},\"setRoute(bytes2,bytes,address)\":{\"details\":\"Routes this token's traffic to and from a chain through `gateway`. Requirements: - The caller must hold the role bound to this selector by the AccessManager. - `gateway` must be registry-trusted or zero; otherwise reverts with `GatewayNotTrusted`. - `chainReference` must be non-empty, with no leading zero byte on EVM; otherwise reverts with `InvalidChainReference`. Emits `ChainRegistered` on first sight of the prefix, then `RouteSet`.\",\"params\":{\"chainReference\":\"The ERC-7930 chain reference, the minimal big-endian chain id on EVM.\",\"chainType\":\"The ERC-7930 chain type, `0x0000` for EVM.\",\"gateway\":\"The trusted gateway to route through, or zero to close the chain: nothing is sent to or accepted from it, settlements of validations already sent included, until a route is set again.\"}},\"trustedGatewayRegistry()\":{\"details\":\"The gateway registry this token resolves trust against. It is the network's, wired at deployment, and no role on the token can move it: removing a gateway from the registry severs every route through it, for every token.\",\"returns\":{\"_0\":\"The registry address.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interop/ITREXMessaging.sol\":\"ITREXMessaging\"},\"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/interop/ITREXMessaging.sol\":{\"keccak256\":\"0xb646af59a859b6b7197f4186c5c20de2531697c9c7131c598194f3b2d0ac70df\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://6e95ac235d843912f40ee36d3eb18a6d7e0b055483a85504787c93a373775999\",\"dweb:/ipfs/QmWW6DNJtgQ5vb4RLSmdFayLirSa8KXnmHCdtxTVwYvc9y\"]},\"contracts/libraries/ErrorsLib.sol\":{\"keccak256\":\"0x32a4a37e3b4f98a101d5a0c04124c6c190a99449fbd1da8305634e54864827bd\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://7a57a6afe664dd75f6d37ed5e4b659f7d76b264815cbc6aaab9dde1c2f9543c7\",\"dweb:/ipfs/QmaWVttfzee9sD55k1YqcB6f7X6UF2Ug3xbUAmLpmrDdDf\"]},\"contracts/libraries/MessageTypesLib.sol\":{\"keccak256\":\"0x4ab2e0f4421a37ba9dd04247889416d5ed7e30e8fd255b1cc88bb968e23986ca\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://e4bc71fe465a8f6bbb13d58f2cb9ea694053fb2953f863f12427559de75728b8\",\"dweb:/ipfs/QmcQnBkYPYcKCjTspb95FoHtZKFK6gAYTa59EYkCjP34MW\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Bytes.sol\":{\"keccak256\":\"0xa34f1a24f9138bd6bafa5b6cf5d513a45097266204caa1b3e5038e728bfe45b4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4dc3d6b3593089cd12d1919d7515e2ff1f8a08a88705bd52421c5be8573a0c0c\",\"dweb:/ipfs/QmTCFpJfm75KqM23LA2iiJS53cSfRqpnUqdx7XSfUNE851\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Calldata.sol\":{\"keccak256\":\"0xa557256a5cc28f1ff8abfdb082739dc847390c6d892f563fc071994a058f9a31\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ffd71e93eb6fae111e6bfa39303c9e09b7db7bc698170f5be627d1beb40f5462\",\"dweb:/ipfs/QmXZmiy9FB1GRH2eWZLefaosFvSVGCBg3iVoZvWbptC3f6\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/Panic.sol\":{\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a\",\"dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/draft-InteroperableAddress.sol\":{\"keccak256\":\"0x29a2dc6571f38f8ebfd39f50950f6e48688facbe262e0c5f1b39078faca0ea9a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://59cefba94eb5e9eecf4dd967788bfc853659dd2c583d469e7b409e284be0b788\",\"dweb:/ipfs/QmUeyeBgpfyJ7uZ98w9XE6qx1snFhSHvKFNQ8vnouTiY6v\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/math/Math.sol\":{\"keccak256\":\"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5\",\"dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y\"]},\"dependencies/@openzeppelin-contracts-5.7.0/utils/math/SafeCast.sol\":{\"keccak256\":\"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9\",\"dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32"}],"type":"error","name":"ChainNotOpen"},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32"}],"type":"error","name":"ChainNotRegistered"},{"inputs":[{"internalType":"address","name":"gateway","type":"address"},{"internalType":"uint256","name":"validationId","type":"uint256"},{"internalType":"bytes32","name":"chainKey","type":"bytes32"}],"type":"error","name":"GatewayNotPinned"},{"inputs":[{"internalType":"address","name":"gateway","type":"address"},{"internalType":"bytes32","name":"chainKey","type":"bytes32"}],"type":"error","name":"GatewayNotRouted"},{"inputs":[{"internalType":"address","name":"gateway","type":"address"}],"type":"error","name":"GatewayNotTrusted"},{"inputs":[],"type":"error","name":"InteroperableAddressEmptyReferenceAndAddress"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"type":"error","name":"InteroperableAddressParsingError"},{"inputs":[{"internalType":"bytes2","name":"chainType","type":"bytes2"},{"internalType":"bytes","name":"chainReference","type":"bytes"}],"type":"error","name":"InvalidChainReference"},{"inputs":[{"internalType":"bytes","name":"peer","type":"bytes"}],"type":"error","name":"InvalidPeer"},{"inputs":[{"internalType":"address","name":"gateway","type":"address"},{"internalType":"bytes32","name":"receiveId","type":"bytes32"}],"type":"error","name":"MessageAlreadyReceived"},{"inputs":[{"internalType":"enum MessageTypesLib.Message","name":"messageType","type":"uint8"}],"type":"error","name":"MessageTypeNotInbound"},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32"},{"internalType":"bytes32","name":"peerChainKey","type":"bytes32"}],"type":"error","name":"PeerChainMismatch"},{"inputs":[{"internalType":"uint8","name":"bits","type":"uint8"},{"internalType":"uint256","name":"value","type":"uint256"}],"type":"error","name":"SafeCastOverflowedUintDowncast"},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32"},{"internalType":"bytes","name":"sender","type":"bytes"}],"type":"error","name":"SenderNotPeer"},{"inputs":[{"internalType":"uint8","name":"messageVersion","type":"uint8"}],"type":"error","name":"UnsupportedMessageVersion"},{"inputs":[{"internalType":"uint256","name":"validationId","type":"uint256"},{"internalType":"bytes32","name":"chainKey","type":"bytes32"},{"internalType":"address","name":"gateway","type":"address"}],"type":"error","name":"ValidationAlreadyRouted"},{"inputs":[{"internalType":"bytes32","name":"originChainKey","type":"bytes32","indexed":true},{"internalType":"uint256","name":"recallId","type":"uint256","indexed":true},{"internalType":"bytes","name":"burnedWallet","type":"bytes","indexed":false},{"internalType":"uint256","name":"amount","type":"uint256","indexed":false}],"type":"event","name":"BurnProofReceived","anonymous":false},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32","indexed":true},{"internalType":"bytes2","name":"chainType","type":"bytes2","indexed":false},{"internalType":"bytes","name":"chainReference","type":"bytes","indexed":false}],"type":"event","name":"ChainRegistered","anonymous":false},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32","indexed":true},{"internalType":"bytes","name":"peer","type":"bytes","indexed":false}],"type":"event","name":"PeerSet","anonymous":false},{"inputs":[{"internalType":"enum MessageTypesLib.Message","name":"messageType","type":"uint8","indexed":true},{"internalType":"bytes32","name":"chainKey","type":"bytes32","indexed":true},{"internalType":"bytes32","name":"sendId","type":"bytes32","indexed":false}],"type":"event","name":"ProtocolMessageSent","anonymous":false},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32","indexed":true},{"internalType":"address","name":"gateway","type":"address","indexed":true}],"type":"event","name":"RouteSet","anonymous":false},{"inputs":[{"internalType":"address","name":"trustedGatewayRegistry","type":"address","indexed":false}],"type":"event","name":"TrustedGatewayRegistrySet","anonymous":false},{"inputs":[{"internalType":"uint256","name":"validationId","type":"uint256","indexed":true},{"internalType":"bytes32","name":"chainKey","type":"bytes32","indexed":true},{"internalType":"address","name":"gateway","type":"address","indexed":false}],"type":"event","name":"ValidationRoutePinned","anonymous":false},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32"}],"stateMutability":"view","type":"function","name":"chainOf","outputs":[{"internalType":"bytes2","name":"chainType","type":"bytes2"},{"internalType":"bytes","name":"chainReference","type":"bytes"}]},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32"}],"stateMutability":"view","type":"function","name":"isChainOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32"}],"stateMutability":"view","type":"function","name":"peerFor","outputs":[{"internalType":"bytes","name":"","type":"bytes"}]},{"inputs":[{"internalType":"uint256","name":"validationId","type":"uint256"},{"internalType":"bytes32","name":"chainKey","type":"bytes32"}],"stateMutability":"view","type":"function","name":"pinnedRouteFor","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32"}],"stateMutability":"view","type":"function","name":"routeFor","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"bytes32","name":"chainKey","type":"bytes32"},{"internalType":"bytes","name":"peer","type":"bytes"}],"stateMutability":"nonpayable","type":"function","name":"setPeer"},{"inputs":[{"internalType":"bytes2","name":"chainType","type":"bytes2"},{"internalType":"bytes","name":"chainReference","type":"bytes"},{"internalType":"address","name":"gateway","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setRoute"},{"inputs":[],"stateMutability":"view","type":"function","name":"trustedGatewayRegistry","outputs":[{"internalType":"address","name":"","type":"address"}]}],"devdoc":{"kind":"dev","methods":{"chainOf(bytes32)":{"details":"The ERC-7930 prefix recorded for `chainKey`.","params":{"chainKey":"The chain to look up."},"returns":{"chainReference":"The recorded chain reference, empty when the chain was never seen.","chainType":"The recorded chain type."}},"isChainOpen(bytes32)":{"details":"Whether `chainKey` can carry traffic right now: a route, a peer, and a still-trusted gateway. Re-reads the registry, so an emergency gateway removal closes every chain routed through it.","params":{"chainKey":"The chain to check."},"returns":{"_0":"True when a message can be sent to, and accepted from, that chain."}},"peerFor(bytes32)":{"details":"This token's peer on `chainKey`: the registered one, else the token's own address on a known EVM chain, else empty.","params":{"chainKey":"The chain to look up."},"returns":{"_0":"The peer as an ERC-7930 address, or empty when the chain cannot be addressed."}},"pinnedRouteFor(uint256,bytes32)":{"details":"The gateway a validation's leg toward `chainKey` went out through, snapshot at dispatch. Settlements of that validation from that chain are accepted from this gateway only, so a route switch affects new validations and never orphans a leg in flight.","params":{"chainKey":"The chain the leg was dispatched toward.","validationId":"The validation to look up."},"returns":{"_0":"The pinned gateway, or zero when the leg never went out."}},"routeFor(bytes32)":{"details":"The stored route for `chainKey`, not re-validated: the gateway may have been untrusted since. Use `isChainOpen` to know whether it can carry traffic.","params":{"chainKey":"The chain to look up."},"returns":{"_0":"The routed gateway, or zero when the chain is closed."}},"setPeer(bytes32,bytes)":{"details":"Registers this token's Lite on `chainKey`: the outbound recipient and the only accepted inbound author for that chain. Only needed off EVM, or when the Lite is not at the token's own address. Empty restores the default. Requirements: - The caller must hold the role bound to this selector by the AccessManager. - A non-empty `peer` must be a canonical ERC-7930 v1 address with an account part, 20 bytes on EVM, and no trailing bytes; otherwise reverts with `InvalidPeer`. - Its chain prefix must hash to `chainKey`; otherwise reverts with `PeerChainMismatch`. A validation already sent keeps settling from the peer it was sent to; only what is sent after the change goes to, and is accepted from, the new peer. Emits `ChainRegistered` on first sight of the prefix, then `PeerSet`.","params":{"chainKey":"The chain the peer is on.","peer":"The Lite as an ERC-7930 address, or empty to restore the default."}},"setRoute(bytes2,bytes,address)":{"details":"Routes this token's traffic to and from a chain through `gateway`. Requirements: - The caller must hold the role bound to this selector by the AccessManager. - `gateway` must be registry-trusted or zero; otherwise reverts with `GatewayNotTrusted`. - `chainReference` must be non-empty, with no leading zero byte on EVM; otherwise reverts with `InvalidChainReference`. Emits `ChainRegistered` on first sight of the prefix, then `RouteSet`.","params":{"chainReference":"The ERC-7930 chain reference, the minimal big-endian chain id on EVM.","chainType":"The ERC-7930 chain type, `0x0000` for EVM.","gateway":"The trusted gateway to route through, or zero to close the chain: nothing is sent to or accepted from it, settlements of validations already sent included, until a route is set again."}},"trustedGatewayRegistry()":{"details":"The gateway registry this token resolves trust against. It is the network's, wired at deployment, and no role on the token can move it: removing a gateway from the registry severs every route through it, for every token.","returns":{"_0":"The registry address."}}},"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/interop/ITREXMessaging.sol":"ITREXMessaging"},"evmVersion":"cancun","libraries":{}},"sources":{"contracts/interop/ITREXMessaging.sol":{"keccak256":"0xb646af59a859b6b7197f4186c5c20de2531697c9c7131c598194f3b2d0ac70df","urls":["bzz-raw://6e95ac235d843912f40ee36d3eb18a6d7e0b055483a85504787c93a373775999","dweb:/ipfs/QmWW6DNJtgQ5vb4RLSmdFayLirSa8KXnmHCdtxTVwYvc9y"],"license":"GPL-3.0"},"contracts/libraries/ErrorsLib.sol":{"keccak256":"0x32a4a37e3b4f98a101d5a0c04124c6c190a99449fbd1da8305634e54864827bd","urls":["bzz-raw://7a57a6afe664dd75f6d37ed5e4b659f7d76b264815cbc6aaab9dde1c2f9543c7","dweb:/ipfs/QmaWVttfzee9sD55k1YqcB6f7X6UF2Ug3xbUAmLpmrDdDf"],"license":"GPL-3.0"},"contracts/libraries/MessageTypesLib.sol":{"keccak256":"0x4ab2e0f4421a37ba9dd04247889416d5ed7e30e8fd255b1cc88bb968e23986ca","urls":["bzz-raw://e4bc71fe465a8f6bbb13d58f2cb9ea694053fb2953f863f12427559de75728b8","dweb:/ipfs/QmcQnBkYPYcKCjTspb95FoHtZKFK6gAYTa59EYkCjP34MW"],"license":"GPL-3.0"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Bytes.sol":{"keccak256":"0xa34f1a24f9138bd6bafa5b6cf5d513a45097266204caa1b3e5038e728bfe45b4","urls":["bzz-raw://4dc3d6b3593089cd12d1919d7515e2ff1f8a08a88705bd52421c5be8573a0c0c","dweb:/ipfs/QmTCFpJfm75KqM23LA2iiJS53cSfRqpnUqdx7XSfUNE851"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Calldata.sol":{"keccak256":"0xa557256a5cc28f1ff8abfdb082739dc847390c6d892f563fc071994a058f9a31","urls":["bzz-raw://ffd71e93eb6fae111e6bfa39303c9e09b7db7bc698170f5be627d1beb40f5462","dweb:/ipfs/QmXZmiy9FB1GRH2eWZLefaosFvSVGCBg3iVoZvWbptC3f6"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/Panic.sol":{"keccak256":"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a","urls":["bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a","dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/draft-InteroperableAddress.sol":{"keccak256":"0x29a2dc6571f38f8ebfd39f50950f6e48688facbe262e0c5f1b39078faca0ea9a","urls":["bzz-raw://59cefba94eb5e9eecf4dd967788bfc853659dd2c583d469e7b409e284be0b788","dweb:/ipfs/QmUeyeBgpfyJ7uZ98w9XE6qx1snFhSHvKFNQ8vnouTiY6v"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/math/Math.sol":{"keccak256":"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857","urls":["bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5","dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0/utils/math/SafeCast.sol":{"keccak256":"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083","urls":["bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9","dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif"],"license":"MIT"}},"version":1},"id":33}
|