@etherisc/gif-next 0.0.2-d5522f6-712 → 0.0.2-d5b7b78-706
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +73 -1
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +832 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +747 -103
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +137 -114
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +743 -26
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +737 -58
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +582 -9
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +692 -178
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +517 -135
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +1 -1
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +15 -15
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +69 -79
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1003 -393
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +194 -197
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1015 -781
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +440 -176
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +120 -263
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +369 -299
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +330 -89
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +11 -40
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +178 -158
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +61 -78
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +363 -301
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +305 -80
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1211 -172
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +456 -71
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IApplicationService.sol/IApplicationService.json} +275 -185
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +155 -245
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → instance/service/IClaimService.sol/IClaimService.json} +159 -147
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +728 -161
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +60 -291
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +81 -152
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +22 -174
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +244 -379
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +311 -114
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +289 -192
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +313 -76
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +206 -206
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +305 -76
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +117 -5
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +112 -198
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +131 -27
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +18 -18
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +216 -234
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +300 -81
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +70 -69
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +151 -50
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +22 -174
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +114 -157
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +135 -214
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +2 -2
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
- package/contracts/components/Component.sol +251 -0
- package/contracts/components/Distribution.sol +199 -83
- package/contracts/components/IComponent.sol +74 -0
- package/contracts/components/IDistributionComponent.sol +44 -17
- package/contracts/components/IPoolComponent.sol +88 -41
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +209 -182
- package/contracts/components/Product.sol +118 -126
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +2 -12
- package/contracts/instance/BundleManager.sol +14 -16
- package/contracts/instance/Cloneable.sol +7 -2
- package/contracts/instance/IInstance.sol +52 -16
- package/contracts/instance/IInstanceService.sol +37 -5
- package/contracts/instance/Instance.sol +126 -75
- package/contracts/instance/InstanceAccessManager.sol +383 -164
- package/contracts/instance/InstanceReader.sol +9 -34
- package/contracts/instance/InstanceService.sol +277 -127
- package/contracts/instance/InstanceServiceManager.sol +1 -1
- package/contracts/instance/ObjectManager.sol +10 -29
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/base/KeyValueStore.sol +5 -2
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IAccess.sol +22 -16
- package/contracts/instance/module/IBundle.sol +2 -1
- package/contracts/instance/module/IComponents.sol +35 -0
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +30 -3
- package/contracts/instance/module/ISetup.sol +7 -20
- package/contracts/instance/service/ApplicationService.sol +350 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +84 -42
- package/contracts/instance/service/BundleServiceManager.sol +1 -1
- package/contracts/instance/service/ClaimService.sol +151 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +393 -46
- package/contracts/instance/service/DistributionServiceManager.sol +1 -1
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +30 -12
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +86 -0
- package/contracts/instance/service/IPolicyService.sol +27 -49
- package/contracts/instance/service/IPoolService.sol +17 -2
- package/contracts/instance/service/PolicyService.sol +149 -285
- package/contracts/instance/service/PolicyServiceManager.sol +2 -2
- package/contracts/instance/service/PoolService.sol +136 -61
- package/contracts/instance/service/PoolServiceManager.sol +1 -1
- package/contracts/instance/service/ProductService.sol +62 -34
- package/contracts/instance/service/ProductServiceManager.sol +2 -2
- package/contracts/registry/ChainNft.sol +8 -0
- package/contracts/registry/IRegistry.sol +18 -8
- package/contracts/registry/IRegistryService.sol +19 -10
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +142 -71
- package/contracts/registry/RegistryAccessManager.sol +31 -25
- package/contracts/registry/RegistryService.sol +94 -130
- package/contracts/registry/RegistryServiceManager.sol +13 -13
- package/contracts/registry/ReleaseManager.sol +94 -120
- package/contracts/registry/TokenRegistry.sol +19 -13
- package/contracts/shared/ERC165.sol +14 -12
- package/contracts/shared/INftOwnable.sol +11 -10
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +4 -6
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +2 -0
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +66 -80
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +16 -32
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +19 -19
- package/contracts/shared/TokenHandler.sol +11 -5
- package/contracts/shared/Versionable.sol +4 -92
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +1 -1
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/ClaimId.sol +52 -0
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/Fee.sol +1 -0
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/ObjectType.sol +10 -5
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +18 -11
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +1 -0
- package/contracts/types/Timestamp.sol +13 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +1 -0
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -814
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +0 -442
- package/contracts/components/BaseComponent.sol +0 -159
- package/contracts/components/IBaseComponent.sol +0 -34
- package/contracts/experiment/cloning/Cloner.sol +0 -47
- package/contracts/experiment/errors/Require.sol +0 -38
- package/contracts/experiment/errors/Revert.sol +0 -44
- package/contracts/experiment/inheritance/A.sol +0 -53
- package/contracts/experiment/inheritance/B.sol +0 -28
- package/contracts/experiment/inheritance/C.sol +0 -34
- package/contracts/experiment/inheritance/IA.sol +0 -13
- package/contracts/experiment/inheritance/IB.sol +0 -10
- package/contracts/experiment/inheritance/IC.sol +0 -12
- package/contracts/experiment/statemachine/Dummy.sol +0 -27
- package/contracts/experiment/statemachine/ISM.sol +0 -25
- package/contracts/experiment/statemachine/SM.sol +0 -57
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
- package/contracts/experiment/types/TypeA.sol +0 -47
- package/contracts/experiment/types/TypeB.sol +0 -29
- package/contracts/instance/IInstanceBase.sol +0 -26
- package/contracts/instance/InstanceBase.sol +0 -41
- package/contracts/instance/base/ComponentServiceBase.sol +0 -76
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -315
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -3,11 +3,6 @@
|
|
3
3
|
"contractName": "ObjectManager",
|
4
4
|
"sourceName": "contracts/instance/ObjectManager.sol",
|
5
5
|
"abi": [
|
6
|
-
{
|
7
|
-
"inputs": [],
|
8
|
-
"stateMutability": "nonpayable",
|
9
|
-
"type": "constructor"
|
10
|
-
},
|
11
6
|
{
|
12
7
|
"inputs": [
|
13
8
|
{
|
@@ -46,6 +41,11 @@
|
|
46
41
|
"name": "AccessManagedUnauthorized",
|
47
42
|
"type": "error"
|
48
43
|
},
|
44
|
+
{
|
45
|
+
"inputs": [],
|
46
|
+
"name": "CloneableAuthorityZero",
|
47
|
+
"type": "error"
|
48
|
+
},
|
49
49
|
{
|
50
50
|
"inputs": [
|
51
51
|
{
|
@@ -142,16 +142,10 @@
|
|
142
142
|
{
|
143
143
|
"anonymous": false,
|
144
144
|
"inputs": [
|
145
|
-
{
|
146
|
-
"indexed": false,
|
147
|
-
"internalType": "NftId",
|
148
|
-
"name": "instanceNftId",
|
149
|
-
"type": "uint96"
|
150
|
-
},
|
151
145
|
{
|
152
146
|
"indexed": false,
|
153
147
|
"internalType": "address",
|
154
|
-
"name": "
|
148
|
+
"name": "instance",
|
155
149
|
"type": "address"
|
156
150
|
}
|
157
151
|
],
|
@@ -173,23 +167,10 @@
|
|
173
167
|
},
|
174
168
|
{
|
175
169
|
"inputs": [],
|
176
|
-
"name": "
|
170
|
+
"name": "getInstance",
|
177
171
|
"outputs": [
|
178
172
|
{
|
179
|
-
"internalType": "
|
180
|
-
"name": "",
|
181
|
-
"type": "uint96"
|
182
|
-
}
|
183
|
-
],
|
184
|
-
"stateMutability": "view",
|
185
|
-
"type": "function"
|
186
|
-
},
|
187
|
-
{
|
188
|
-
"inputs": [],
|
189
|
-
"name": "getInstanceReader",
|
190
|
-
"outputs": [
|
191
|
-
{
|
192
|
-
"internalType": "contract InstanceReader",
|
173
|
+
"internalType": "contract IInstance",
|
193
174
|
"name": "",
|
194
175
|
"type": "address"
|
195
176
|
}
|
@@ -232,18 +213,8 @@
|
|
232
213
|
"inputs": [
|
233
214
|
{
|
234
215
|
"internalType": "address",
|
235
|
-
"name": "
|
236
|
-
"type": "address"
|
237
|
-
},
|
238
|
-
{
|
239
|
-
"internalType": "address",
|
240
|
-
"name": "registry",
|
216
|
+
"name": "instanceAddress",
|
241
217
|
"type": "address"
|
242
|
-
},
|
243
|
-
{
|
244
|
-
"internalType": "NftId",
|
245
|
-
"name": "instanceNftId",
|
246
|
-
"type": "uint96"
|
247
218
|
}
|
248
219
|
],
|
249
220
|
"name": "initialize",
|
@@ -278,8 +249,8 @@
|
|
278
249
|
"type": "function"
|
279
250
|
}
|
280
251
|
],
|
281
|
-
"bytecode": "
|
282
|
-
"deployedBytecode": "
|
252
|
+
"bytecode": "0x608060405234801561001057600080fd5b50600080546001600160a01b03191690556106b9806100306000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638fb360371161005b5780638fb36037146100d4578063bf7e214f146100f5578063c4d66de814610113578063de7b5d141461012657600080fd5b8063485cc955146100825780635ab1bd53146100975780637a9e5e4b146100c1575b600080fd5b6100956100903660046105e9565b610137565b005b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6100956100cf366004610622565b61020a565b6100dc6102a8565b6040516001600160e01b031990911681526020016100b8565b600080516020610664833981519152546001600160a01b03166100a4565b610095610121366004610622565b6102e1565b6003546001600160a01b03166100a4565b61013f61050a565b6001600160a01b0382166101665760405163e639886560e01b815260040160405180910390fd5b61016f82610555565b806001600160a01b03163b6000036101aa5760405163071669cf60e21b81526001600160a01b03821660048201526024015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0383811691821790925560408051928516835260208301919091527fa6804c76412ae2d729353ed187a48b0b95177ee5c111049b80878fd12722441291015b60405180910390a15050565b3361022a600080516020610664833981519152546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146102655760405162d1953b60e31b81526001600160a01b03821660048201526024016101a1565b816001600160a01b03163b60000361029b576040516361798f2f60e11b81526001600160a01b03831660048201526024016101a1565b6102a482610569565b5050565b600080516020610664833981519152805460009190600160a01b900460ff166102d25760006102db565b638fb3603760e01b5b91505090565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156103275750825b905060008267ffffffffffffffff1660011480156103445750303b155b905081158015610352575080155b156103705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561039a57845460ff60401b1916600160401b1785555b6000869050610466816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104049190610646565b826001600160a01b031663f21de1e86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610442573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100909190610646565b600380546001600160a01b0319166001600160a01b038381169190911790915560405190881681527fe89455dcb69bf4efd41cbb10c8064808f360b87b03ae8c96349c71f4934ffa0f9060200160405180910390a150831561050257845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661055357604051631afcd79f60e31b815260040160405180910390fd5b565b61055d61050a565b610566816105c3565b50565b60008051602061066483398151915280546001600160a01b0319166001600160a01b03831690811782556040519081527f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad906020016101fe565b6105cb61050a565b61056681610569565b6001600160a01b038116811461056657600080fd5b600080604083850312156105fc57600080fd5b8235610607816105d4565b91506020830135610617816105d4565b809150509250929050565b60006020828403121561063457600080fd5b813561063f816105d4565b9392505050565b60006020828403121561065857600080fd5b815161063f816105d456fef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220379eef4a0c4272b36536933847484a46501a49275078fe85b2bfb2dbb86aa23764736f6c63430008140033",
|
253
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80638fb360371161005b5780638fb36037146100d4578063bf7e214f146100f5578063c4d66de814610113578063de7b5d141461012657600080fd5b8063485cc955146100825780635ab1bd53146100975780637a9e5e4b146100c1575b600080fd5b6100956100903660046105e9565b610137565b005b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6100956100cf366004610622565b61020a565b6100dc6102a8565b6040516001600160e01b031990911681526020016100b8565b600080516020610664833981519152546001600160a01b03166100a4565b610095610121366004610622565b6102e1565b6003546001600160a01b03166100a4565b61013f61050a565b6001600160a01b0382166101665760405163e639886560e01b815260040160405180910390fd5b61016f82610555565b806001600160a01b03163b6000036101aa5760405163071669cf60e21b81526001600160a01b03821660048201526024015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0383811691821790925560408051928516835260208301919091527fa6804c76412ae2d729353ed187a48b0b95177ee5c111049b80878fd12722441291015b60405180910390a15050565b3361022a600080516020610664833981519152546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146102655760405162d1953b60e31b81526001600160a01b03821660048201526024016101a1565b816001600160a01b03163b60000361029b576040516361798f2f60e11b81526001600160a01b03831660048201526024016101a1565b6102a482610569565b5050565b600080516020610664833981519152805460009190600160a01b900460ff166102d25760006102db565b638fb3603760e01b5b91505090565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156103275750825b905060008267ffffffffffffffff1660011480156103445750303b155b905081158015610352575080155b156103705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561039a57845460ff60401b1916600160401b1785555b6000869050610466816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104049190610646565b826001600160a01b031663f21de1e86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610442573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100909190610646565b600380546001600160a01b0319166001600160a01b038381169190911790915560405190881681527fe89455dcb69bf4efd41cbb10c8064808f360b87b03ae8c96349c71f4934ffa0f9060200160405180910390a150831561050257845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661055357604051631afcd79f60e31b815260040160405180910390fd5b565b61055d61050a565b610566816105c3565b50565b60008051602061066483398151915280546001600160a01b0319166001600160a01b03831690811782556040519081527f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad906020016101fe565b6105cb61050a565b61056681610569565b6001600160a01b038116811461056657600080fd5b600080604083850312156105fc57600080fd5b8235610607816105d4565b91506020830135610617816105d4565b809150509250929050565b60006020828403121561063457600080fd5b813561063f816105d4565b9392505050565b60006020828403121561065857600080fd5b815161063f816105d456fef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220379eef4a0c4272b36536933847484a46501a49275078fe85b2bfb2dbb86aa23764736f6c63430008140033",
|
283
254
|
"linkReferences": {},
|
284
255
|
"deployedLinkReferences": {}
|
285
256
|
}
|
@@ -1,125 +1,167 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "
|
4
|
-
"sourceName": "contracts/instance/base/
|
3
|
+
"contractName": "ComponentService",
|
4
|
+
"sourceName": "contracts/instance/base/ComponentService.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
|
-
"internalType": "
|
10
|
-
"name": "
|
11
|
-
"type": "
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "component",
|
11
|
+
"type": "address"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "NftId",
|
15
|
+
"name": "nftId",
|
16
|
+
"type": "uint96"
|
12
17
|
}
|
13
18
|
],
|
14
|
-
"name": "
|
19
|
+
"name": "ErrorComponentServiceAlreadyRegistered",
|
15
20
|
"type": "error"
|
16
21
|
},
|
17
22
|
{
|
18
23
|
"inputs": [
|
19
24
|
{
|
20
25
|
"internalType": "address",
|
21
|
-
"name": "
|
26
|
+
"name": "component",
|
22
27
|
"type": "address"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"internalType": "NftId",
|
26
|
-
"name": "nftId",
|
27
|
-
"type": "uint96"
|
28
28
|
}
|
29
29
|
],
|
30
|
-
"name": "
|
30
|
+
"name": "ErrorComponentServiceComponentLocked",
|
31
31
|
"type": "error"
|
32
32
|
},
|
33
33
|
{
|
34
34
|
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "NftId",
|
37
|
+
"name": "instanceNftId",
|
38
|
+
"type": "uint96"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"internalType": "RoleId",
|
42
|
+
"name": "requiredRole",
|
43
|
+
"type": "uint64"
|
44
|
+
},
|
35
45
|
{
|
36
46
|
"internalType": "address",
|
37
|
-
"name": "
|
47
|
+
"name": "sender",
|
38
48
|
"type": "address"
|
39
49
|
}
|
40
50
|
],
|
41
|
-
"name": "
|
51
|
+
"name": "ErrorComponentServiceExpectedRoleMissing",
|
42
52
|
"type": "error"
|
43
53
|
},
|
44
54
|
{
|
45
55
|
"inputs": [
|
46
56
|
{
|
47
57
|
"internalType": "address",
|
48
|
-
"name": "
|
58
|
+
"name": "component",
|
49
59
|
"type": "address"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"internalType": "ObjectType",
|
63
|
+
"name": "requiredType",
|
64
|
+
"type": "uint8"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"internalType": "ObjectType",
|
68
|
+
"name": "componentType",
|
69
|
+
"type": "uint8"
|
50
70
|
}
|
51
71
|
],
|
52
|
-
"name": "
|
72
|
+
"name": "ErrorComponentServiceInvalidType",
|
53
73
|
"type": "error"
|
54
74
|
},
|
55
75
|
{
|
56
76
|
"inputs": [
|
57
77
|
{
|
58
78
|
"internalType": "address",
|
59
|
-
"name": "
|
79
|
+
"name": "component",
|
60
80
|
"type": "address"
|
61
81
|
}
|
62
82
|
],
|
63
|
-
"name": "
|
83
|
+
"name": "ErrorComponentServiceNotComponent",
|
64
84
|
"type": "error"
|
65
85
|
},
|
66
86
|
{
|
67
87
|
"inputs": [
|
68
88
|
{
|
69
89
|
"internalType": "address",
|
70
|
-
"name": "
|
90
|
+
"name": "component",
|
91
|
+
"type": "address"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"internalType": "address",
|
95
|
+
"name": "initialOwner",
|
96
|
+
"type": "address"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"internalType": "address",
|
100
|
+
"name": "sender",
|
71
101
|
"type": "address"
|
72
102
|
}
|
73
103
|
],
|
74
|
-
"name": "
|
104
|
+
"name": "ErrorComponentServiceSenderNotOwner",
|
75
105
|
"type": "error"
|
76
106
|
},
|
77
107
|
{
|
78
108
|
"inputs": [
|
79
109
|
{
|
80
110
|
"internalType": "address",
|
81
|
-
"name": "
|
111
|
+
"name": "caller",
|
82
112
|
"type": "address"
|
83
113
|
}
|
84
114
|
],
|
85
|
-
"name": "
|
115
|
+
"name": "ErrorIServiceCallerUnknown",
|
86
116
|
"type": "error"
|
87
117
|
},
|
88
118
|
{
|
89
|
-
"inputs": [
|
90
|
-
|
119
|
+
"inputs": [
|
120
|
+
{
|
121
|
+
"internalType": "NftId",
|
122
|
+
"name": "nftId",
|
123
|
+
"type": "uint96"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
91
127
|
"type": "error"
|
92
128
|
},
|
93
129
|
{
|
94
130
|
"inputs": [
|
95
131
|
{
|
96
132
|
"internalType": "address",
|
97
|
-
"name": "
|
133
|
+
"name": "contractAddress",
|
98
134
|
"type": "address"
|
99
135
|
}
|
100
136
|
],
|
101
|
-
"name": "
|
137
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
102
138
|
"type": "error"
|
103
139
|
},
|
104
140
|
{
|
105
141
|
"inputs": [],
|
106
|
-
"name": "
|
142
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
107
143
|
"type": "error"
|
108
144
|
},
|
109
145
|
{
|
110
146
|
"inputs": [
|
111
147
|
{
|
112
|
-
"internalType": "
|
113
|
-
"name": "
|
114
|
-
"type": "
|
115
|
-
}
|
148
|
+
"internalType": "address",
|
149
|
+
"name": "account",
|
150
|
+
"type": "address"
|
151
|
+
}
|
152
|
+
],
|
153
|
+
"name": "ErrorNftOwnableNotOwner",
|
154
|
+
"type": "error"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"inputs": [
|
116
158
|
{
|
117
159
|
"internalType": "address",
|
118
|
-
"name": "
|
160
|
+
"name": "registryAddress",
|
119
161
|
"type": "address"
|
120
162
|
}
|
121
163
|
],
|
122
|
-
"name": "
|
164
|
+
"name": "ErrorNotRegistry",
|
123
165
|
"type": "error"
|
124
166
|
},
|
125
167
|
{
|
@@ -146,29 +188,17 @@
|
|
146
188
|
"type": "event"
|
147
189
|
},
|
148
190
|
{
|
149
|
-
"
|
150
|
-
"
|
151
|
-
|
152
|
-
"indexed": false,
|
153
|
-
"internalType": "Version",
|
154
|
-
"name": "version",
|
155
|
-
"type": "uint24"
|
156
|
-
},
|
157
|
-
{
|
158
|
-
"indexed": false,
|
159
|
-
"internalType": "address",
|
160
|
-
"name": "implementation",
|
161
|
-
"type": "address"
|
162
|
-
},
|
191
|
+
"inputs": [],
|
192
|
+
"name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
|
193
|
+
"outputs": [
|
163
194
|
{
|
164
|
-
"
|
165
|
-
"
|
166
|
-
"
|
167
|
-
"type": "address"
|
195
|
+
"internalType": "bytes32",
|
196
|
+
"name": "",
|
197
|
+
"type": "bytes32"
|
168
198
|
}
|
169
199
|
],
|
170
|
-
"
|
171
|
-
"type": "
|
200
|
+
"stateMutability": "view",
|
201
|
+
"type": "function"
|
172
202
|
},
|
173
203
|
{
|
174
204
|
"inputs": [],
|
@@ -239,26 +269,8 @@
|
|
239
269
|
}
|
240
270
|
],
|
241
271
|
"internalType": "struct IRegistry.ObjectInfo",
|
242
|
-
"name": "",
|
272
|
+
"name": "info",
|
243
273
|
"type": "tuple"
|
244
|
-
},
|
245
|
-
{
|
246
|
-
"internalType": "bytes",
|
247
|
-
"name": "data",
|
248
|
-
"type": "bytes"
|
249
|
-
}
|
250
|
-
],
|
251
|
-
"stateMutability": "view",
|
252
|
-
"type": "function"
|
253
|
-
},
|
254
|
-
{
|
255
|
-
"inputs": [],
|
256
|
-
"name": "getInitializedVersion",
|
257
|
-
"outputs": [
|
258
|
-
{
|
259
|
-
"internalType": "uint64",
|
260
|
-
"name": "",
|
261
|
-
"type": "uint64"
|
262
274
|
}
|
263
275
|
],
|
264
276
|
"stateMutability": "view",
|
@@ -331,10 +343,10 @@
|
|
331
343
|
},
|
332
344
|
{
|
333
345
|
"inputs": [],
|
334
|
-
"name": "
|
346
|
+
"name": "getRegistryAddress",
|
335
347
|
"outputs": [
|
336
348
|
{
|
337
|
-
"internalType": "
|
349
|
+
"internalType": "address",
|
338
350
|
"name": "",
|
339
351
|
"type": "address"
|
340
352
|
}
|
@@ -344,25 +356,19 @@
|
|
344
356
|
},
|
345
357
|
{
|
346
358
|
"inputs": [],
|
347
|
-
"name": "
|
359
|
+
"name": "getRegistryService",
|
348
360
|
"outputs": [
|
349
361
|
{
|
350
|
-
"internalType": "
|
362
|
+
"internalType": "contract IRegistryService",
|
351
363
|
"name": "",
|
352
|
-
"type": "
|
364
|
+
"type": "address"
|
353
365
|
}
|
354
366
|
],
|
355
|
-
"stateMutability": "
|
367
|
+
"stateMutability": "view",
|
356
368
|
"type": "function"
|
357
369
|
},
|
358
370
|
{
|
359
|
-
"inputs": [
|
360
|
-
{
|
361
|
-
"internalType": "uint256",
|
362
|
-
"name": "idx",
|
363
|
-
"type": "uint256"
|
364
|
-
}
|
365
|
-
],
|
371
|
+
"inputs": [],
|
366
372
|
"name": "getVersion",
|
367
373
|
"outputs": [
|
368
374
|
{
|
@@ -371,87 +377,68 @@
|
|
371
377
|
"type": "uint24"
|
372
378
|
}
|
373
379
|
],
|
374
|
-
"stateMutability": "
|
380
|
+
"stateMutability": "pure",
|
375
381
|
"type": "function"
|
376
382
|
},
|
377
383
|
{
|
378
384
|
"inputs": [],
|
379
|
-
"name": "
|
380
|
-
"outputs": [
|
381
|
-
|
382
|
-
"internalType": "uint256",
|
383
|
-
"name": "",
|
384
|
-
"type": "uint256"
|
385
|
-
}
|
386
|
-
],
|
387
|
-
"stateMutability": "view",
|
385
|
+
"name": "initializeERC165",
|
386
|
+
"outputs": [],
|
387
|
+
"stateMutability": "nonpayable",
|
388
388
|
"type": "function"
|
389
389
|
},
|
390
390
|
{
|
391
391
|
"inputs": [
|
392
392
|
{
|
393
|
-
"internalType": "
|
394
|
-
"name": "
|
395
|
-
"type": "
|
396
|
-
}
|
397
|
-
],
|
398
|
-
"name": "getVersionInfo",
|
399
|
-
"outputs": [
|
393
|
+
"internalType": "address",
|
394
|
+
"name": "initialOwner",
|
395
|
+
"type": "address"
|
396
|
+
},
|
400
397
|
{
|
401
|
-
"
|
402
|
-
|
403
|
-
|
404
|
-
"name": "version",
|
405
|
-
"type": "uint24"
|
406
|
-
},
|
407
|
-
{
|
408
|
-
"internalType": "address",
|
409
|
-
"name": "implementation",
|
410
|
-
"type": "address"
|
411
|
-
},
|
412
|
-
{
|
413
|
-
"internalType": "address",
|
414
|
-
"name": "activatedBy",
|
415
|
-
"type": "address"
|
416
|
-
},
|
417
|
-
{
|
418
|
-
"internalType": "Timestamp",
|
419
|
-
"name": "activatedAt",
|
420
|
-
"type": "uint40"
|
421
|
-
},
|
422
|
-
{
|
423
|
-
"internalType": "Blocknumber",
|
424
|
-
"name": "activatedIn",
|
425
|
-
"type": "uint32"
|
426
|
-
}
|
427
|
-
],
|
428
|
-
"internalType": "struct IVersionable.VersionInfo",
|
429
|
-
"name": "",
|
430
|
-
"type": "tuple"
|
398
|
+
"internalType": "address",
|
399
|
+
"name": "registryAddress",
|
400
|
+
"type": "address"
|
431
401
|
}
|
432
402
|
],
|
433
|
-
"
|
403
|
+
"name": "initializeNftOwnable",
|
404
|
+
"outputs": [],
|
405
|
+
"stateMutability": "nonpayable",
|
434
406
|
"type": "function"
|
435
407
|
},
|
436
408
|
{
|
437
409
|
"inputs": [
|
438
410
|
{
|
439
411
|
"internalType": "address",
|
440
|
-
"name": "
|
412
|
+
"name": "registryAddress",
|
441
413
|
"type": "address"
|
442
414
|
},
|
415
|
+
{
|
416
|
+
"internalType": "NftId",
|
417
|
+
"name": "parentNftId",
|
418
|
+
"type": "uint96"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"internalType": "ObjectType",
|
422
|
+
"name": "objectType",
|
423
|
+
"type": "uint8"
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"internalType": "bool",
|
427
|
+
"name": "isInterceptor",
|
428
|
+
"type": "bool"
|
429
|
+
},
|
443
430
|
{
|
444
431
|
"internalType": "address",
|
445
|
-
"name": "
|
432
|
+
"name": "initialOwner",
|
446
433
|
"type": "address"
|
447
434
|
},
|
448
435
|
{
|
449
436
|
"internalType": "bytes",
|
450
|
-
"name": "
|
437
|
+
"name": "registryData",
|
451
438
|
"type": "bytes"
|
452
439
|
}
|
453
440
|
],
|
454
|
-
"name": "
|
441
|
+
"name": "initializeRegisterable",
|
455
442
|
"outputs": [],
|
456
443
|
"stateMutability": "nonpayable",
|
457
444
|
"type": "function"
|
@@ -459,20 +446,50 @@
|
|
459
446
|
{
|
460
447
|
"inputs": [
|
461
448
|
{
|
462
|
-
"internalType": "
|
463
|
-
"name": "
|
464
|
-
"type": "
|
449
|
+
"internalType": "address",
|
450
|
+
"name": "registryAddress",
|
451
|
+
"type": "address"
|
465
452
|
}
|
466
453
|
],
|
467
|
-
"name": "
|
468
|
-
"outputs": [
|
454
|
+
"name": "initializeRegistryLinked",
|
455
|
+
"outputs": [],
|
456
|
+
"stateMutability": "nonpayable",
|
457
|
+
"type": "function"
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"inputs": [
|
469
461
|
{
|
470
|
-
"internalType": "
|
471
|
-
"name": "",
|
472
|
-
"type": "
|
462
|
+
"internalType": "address",
|
463
|
+
"name": "registry",
|
464
|
+
"type": "address"
|
465
|
+
},
|
466
|
+
{
|
467
|
+
"internalType": "address",
|
468
|
+
"name": "initialOwner",
|
469
|
+
"type": "address"
|
473
470
|
}
|
474
471
|
],
|
475
|
-
"
|
472
|
+
"name": "initializeService",
|
473
|
+
"outputs": [],
|
474
|
+
"stateMutability": "nonpayable",
|
475
|
+
"type": "function"
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"inputs": [
|
479
|
+
{
|
480
|
+
"internalType": "address",
|
481
|
+
"name": "activatedBy",
|
482
|
+
"type": "address"
|
483
|
+
},
|
484
|
+
{
|
485
|
+
"internalType": "bytes",
|
486
|
+
"name": "data",
|
487
|
+
"type": "bytes"
|
488
|
+
}
|
489
|
+
],
|
490
|
+
"name": "initializeVersionable",
|
491
|
+
"outputs": [],
|
492
|
+
"stateMutability": "nonpayable",
|
476
493
|
"type": "function"
|
477
494
|
},
|
478
495
|
{
|
@@ -482,6 +499,19 @@
|
|
482
499
|
"stateMutability": "nonpayable",
|
483
500
|
"type": "function"
|
484
501
|
},
|
502
|
+
{
|
503
|
+
"inputs": [
|
504
|
+
{
|
505
|
+
"internalType": "bytes4",
|
506
|
+
"name": "interfaceId",
|
507
|
+
"type": "bytes4"
|
508
|
+
}
|
509
|
+
],
|
510
|
+
"name": "registerInterface",
|
511
|
+
"outputs": [],
|
512
|
+
"stateMutability": "nonpayable",
|
513
|
+
"type": "function"
|
514
|
+
},
|
485
515
|
{
|
486
516
|
"inputs": [
|
487
517
|
{
|
@@ -503,23 +533,13 @@
|
|
503
533
|
},
|
504
534
|
{
|
505
535
|
"inputs": [
|
506
|
-
{
|
507
|
-
"internalType": "address",
|
508
|
-
"name": "implementation",
|
509
|
-
"type": "address"
|
510
|
-
},
|
511
|
-
{
|
512
|
-
"internalType": "address",
|
513
|
-
"name": "activatedBy",
|
514
|
-
"type": "address"
|
515
|
-
},
|
516
536
|
{
|
517
537
|
"internalType": "bytes",
|
518
538
|
"name": "data",
|
519
539
|
"type": "bytes"
|
520
540
|
}
|
521
541
|
],
|
522
|
-
"name": "
|
542
|
+
"name": "upgradeVersionable",
|
523
543
|
"outputs": [],
|
524
544
|
"stateMutability": "nonpayable",
|
525
545
|
"type": "function"
|