@etherisc/gif-next 0.0.2-c83506f-943 → 0.0.2-c8625de-563
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +140 -2
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +853 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +1007 -228
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → components/IComponent.sol/IComponent.json} +203 -156
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +791 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +669 -31
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +654 -5
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +834 -286
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +646 -154
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2192 -59
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +222 -145
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +895 -966
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +211 -144
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +197 -68
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +516 -184
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +344 -75
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
- 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} +203 -143
- 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 +2 -2
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +59 -16
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- 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 +858 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +657 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1085 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +743 -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 +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +935 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +677 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +462 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +622 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IClaimService.sol/IClaimService.json} +138 -182
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +197 -163
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +572 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +30 -255
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +41 -419
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1109 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +717 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +716 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +649 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +766 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +354 -61
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +223 -216
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +314 -188
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +222 -317
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +304 -138
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
- 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/shared/IRegistryLinked.sol/IRegistryLinked.json +48 -0
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +23 -186
- 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 +119 -173
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- 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/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 +2 -2
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +140 -230
- 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/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/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 +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
- 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 +2 -2
- 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/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/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- 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 +22 -3
- package/contracts/components/Component.sol +242 -0
- package/contracts/components/Distribution.sol +209 -67
- package/contracts/components/IComponent.sol +55 -0
- package/contracts/components/IDistributionComponent.sol +59 -2
- package/contracts/components/IPoolComponent.sol +54 -29
- package/contracts/components/IProductComponent.sol +7 -3
- package/contracts/components/Pool.sol +153 -158
- package/contracts/components/Product.sol +120 -132
- package/contracts/instance/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +74 -10
- package/contracts/instance/IInstanceService.sol +43 -1
- package/contracts/instance/Instance.sol +124 -269
- package/contracts/instance/InstanceAccessManager.sol +87 -78
- package/contracts/instance/InstanceReader.sol +34 -21
- package/contracts/instance/InstanceService.sol +425 -51
- package/contracts/instance/InstanceServiceManager.sol +11 -13
- package/contracts/instance/ObjectManager.sol +84 -0
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/module/IAccess.sol +27 -18
- package/contracts/instance/module/IBundle.sol +1 -0
- package/contracts/instance/module/IPolicy.sol +4 -2
- package/contracts/instance/module/ISetup.sol +7 -3
- package/contracts/instance/service/ApplicationService.sol +268 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +298 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/ClaimService.sol +151 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +277 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +54 -0
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +53 -0
- package/contracts/instance/service/IPolicyService.sol +89 -0
- package/contracts/instance/service/IPoolService.sol +6 -23
- package/contracts/instance/service/IProductService.sol +6 -73
- package/contracts/instance/service/PolicyService.sol +474 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +109 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +233 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +1 -1
- package/contracts/registry/IRegistry.sol +50 -8
- package/contracts/registry/IRegistryService.sol +46 -14
- package/contracts/registry/Registry.sol +261 -220
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +110 -266
- package/contracts/registry/RegistryServiceManager.sol +24 -26
- package/contracts/registry/ReleaseManager.sol +322 -0
- package/contracts/registry/TokenRegistry.sol +116 -0
- package/contracts/shared/ERC165.sol +14 -8
- 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 -1
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +67 -83
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +14 -29
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +26 -22
- package/contracts/shared/Versionable.sol +4 -92
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +4 -3
- package/contracts/types/ClaimId.sol +52 -0
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/NftIdSet.sol +26 -24
- package/contracts/types/ObjectType.sol +9 -5
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/RoleId.sol +14 -6
- package/contracts/types/StateId.sol +4 -0
- package/contracts/types/Version.sol +4 -1
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -314
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- 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 -827
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -86
- package/contracts/components/IBaseComponent.sol +0 -24
- package/contracts/instance/AccessManagedSimple.sol +0 -114
- package/contracts/instance/AccessManagerSimple.sol +0 -682
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/base/ComponentServiceBase.sol +0 -49
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -3,74 +3,182 @@
|
|
3
3
|
"contractName": "IInstanceService",
|
4
4
|
"sourceName": "contracts/instance/IInstanceService.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [],
|
8
|
+
"name": "ErrorInstanceServiceAccessManagerZero",
|
9
|
+
"type": "error"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"inputs": [],
|
13
|
+
"name": "ErrorInstanceServiceBundleManagerZero",
|
14
|
+
"type": "error"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"inputs": [],
|
18
|
+
"name": "ErrorInstanceServiceBundleMangerInstanceMismatch",
|
19
|
+
"type": "error"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"inputs": [
|
23
|
+
{
|
24
|
+
"internalType": "address",
|
25
|
+
"name": "componentAddress",
|
26
|
+
"type": "address"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"name": "ErrorInstanceServiceComponentNotRegistered",
|
30
|
+
"type": "error"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"inputs": [],
|
34
|
+
"name": "ErrorInstanceServiceInstanceAddressZero",
|
35
|
+
"type": "error"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"inputs": [],
|
39
|
+
"name": "ErrorInstanceServiceInstanceAuthorityMismatch",
|
40
|
+
"type": "error"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"inputs": [],
|
44
|
+
"name": "ErrorInstanceServiceInstanceReaderAddressZero",
|
45
|
+
"type": "error"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"inputs": [],
|
49
|
+
"name": "ErrorInstanceServiceInstanceReaderInstanceMismatch",
|
50
|
+
"type": "error"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"inputs": [],
|
54
|
+
"name": "ErrorInstanceServiceInstanceReaderInstanceMismatch2",
|
55
|
+
"type": "error"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"inputs": [],
|
59
|
+
"name": "ErrorInstanceServiceInstanceReaderSameAsMasterInstanceReader",
|
60
|
+
"type": "error"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"inputs": [],
|
64
|
+
"name": "ErrorInstanceServiceInstanceReaderZero",
|
65
|
+
"type": "error"
|
66
|
+
},
|
6
67
|
{
|
7
68
|
"inputs": [
|
8
69
|
{
|
9
70
|
"internalType": "address",
|
10
|
-
"name": "
|
71
|
+
"name": "componentAddress",
|
11
72
|
"type": "address"
|
12
73
|
},
|
13
74
|
{
|
14
|
-
"internalType": "
|
15
|
-
"name": "
|
16
|
-
"type": "
|
75
|
+
"internalType": "ObjectType",
|
76
|
+
"name": "expectedType",
|
77
|
+
"type": "uint8"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"internalType": "ObjectType",
|
81
|
+
"name": "componentType",
|
82
|
+
"type": "uint8"
|
17
83
|
}
|
18
84
|
],
|
19
|
-
"name": "
|
85
|
+
"name": "ErrorInstanceServiceInvalidComponentType",
|
86
|
+
"type": "error"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"inputs": [],
|
90
|
+
"name": "ErrorInstanceServiceMasterBundleManagerAlreadySet",
|
91
|
+
"type": "error"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"inputs": [],
|
95
|
+
"name": "ErrorInstanceServiceMasterInstanceAccessManagerAlreadySet",
|
96
|
+
"type": "error"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"inputs": [],
|
100
|
+
"name": "ErrorInstanceServiceMasterInstanceAlreadySet",
|
101
|
+
"type": "error"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"inputs": [],
|
105
|
+
"name": "ErrorInstanceServiceMasterInstanceReaderNotSet",
|
20
106
|
"type": "error"
|
21
107
|
},
|
22
108
|
{
|
23
109
|
"inputs": [
|
24
110
|
{
|
25
111
|
"internalType": "address",
|
26
|
-
"name": "
|
112
|
+
"name": "caller",
|
27
113
|
"type": "address"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"internalType": "NftId",
|
117
|
+
"name": "instanceNftId",
|
118
|
+
"type": "uint96"
|
28
119
|
}
|
29
120
|
],
|
30
|
-
"name": "
|
121
|
+
"name": "ErrorInstanceServiceNotInstanceOwner",
|
31
122
|
"type": "error"
|
32
123
|
},
|
33
124
|
{
|
34
125
|
"inputs": [
|
35
126
|
{
|
36
127
|
"internalType": "address",
|
37
|
-
"name": "
|
128
|
+
"name": "caller",
|
38
129
|
"type": "address"
|
39
130
|
}
|
40
131
|
],
|
41
|
-
"name": "
|
132
|
+
"name": "ErrorInstanceServiceRequestUnauhorized",
|
133
|
+
"type": "error"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"inputs": [
|
137
|
+
{
|
138
|
+
"internalType": "NftId",
|
139
|
+
"name": "nftId",
|
140
|
+
"type": "uint96"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
42
144
|
"type": "error"
|
43
145
|
},
|
44
146
|
{
|
45
147
|
"inputs": [
|
46
148
|
{
|
47
149
|
"internalType": "address",
|
48
|
-
"name": "
|
150
|
+
"name": "contractAddress",
|
49
151
|
"type": "address"
|
50
152
|
}
|
51
153
|
],
|
52
|
-
"name": "
|
154
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
53
155
|
"type": "error"
|
54
156
|
},
|
55
157
|
{
|
56
158
|
"inputs": [],
|
57
|
-
"name": "
|
159
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
58
160
|
"type": "error"
|
59
161
|
},
|
60
162
|
{
|
61
163
|
"inputs": [
|
62
164
|
{
|
63
165
|
"internalType": "address",
|
64
|
-
"name": "
|
166
|
+
"name": "account",
|
65
167
|
"type": "address"
|
66
168
|
}
|
67
169
|
],
|
68
|
-
"name": "
|
170
|
+
"name": "ErrorNftOwnableNotOwner",
|
69
171
|
"type": "error"
|
70
172
|
},
|
71
173
|
{
|
72
|
-
"inputs": [
|
73
|
-
|
174
|
+
"inputs": [
|
175
|
+
{
|
176
|
+
"internalType": "address",
|
177
|
+
"name": "registryAddress",
|
178
|
+
"type": "address"
|
179
|
+
}
|
180
|
+
],
|
181
|
+
"name": "ErrorNotRegistry",
|
74
182
|
"type": "error"
|
75
183
|
},
|
76
184
|
{
|
@@ -78,26 +186,78 @@
|
|
78
186
|
"inputs": [
|
79
187
|
{
|
80
188
|
"indexed": false,
|
81
|
-
"internalType": "
|
82
|
-
"name": "
|
83
|
-
"type": "
|
189
|
+
"internalType": "address",
|
190
|
+
"name": "clonedAccessManagerAddress",
|
191
|
+
"type": "address"
|
84
192
|
},
|
85
193
|
{
|
86
194
|
"indexed": false,
|
87
195
|
"internalType": "address",
|
88
|
-
"name": "
|
196
|
+
"name": "clonedInstanceAddress",
|
89
197
|
"type": "address"
|
90
198
|
},
|
91
199
|
{
|
92
200
|
"indexed": false,
|
93
201
|
"internalType": "address",
|
94
|
-
"name": "
|
202
|
+
"name": "clonedInstanceReaderAddress",
|
95
203
|
"type": "address"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"indexed": false,
|
207
|
+
"internalType": "NftId",
|
208
|
+
"name": "clonedInstanceNftId",
|
209
|
+
"type": "uint96"
|
96
210
|
}
|
97
211
|
],
|
98
|
-
"name": "
|
212
|
+
"name": "LogInstanceCloned",
|
99
213
|
"type": "event"
|
100
214
|
},
|
215
|
+
{
|
216
|
+
"inputs": [],
|
217
|
+
"name": "createInstanceClone",
|
218
|
+
"outputs": [
|
219
|
+
{
|
220
|
+
"internalType": "contract InstanceAccessManager",
|
221
|
+
"name": "clonedAccessManager",
|
222
|
+
"type": "address"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"internalType": "contract Instance",
|
226
|
+
"name": "clonedInstance",
|
227
|
+
"type": "address"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"internalType": "NftId",
|
231
|
+
"name": "instanceNftId",
|
232
|
+
"type": "uint96"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"internalType": "contract InstanceReader",
|
236
|
+
"name": "clonedInstanceReader",
|
237
|
+
"type": "address"
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"internalType": "contract BundleManager",
|
241
|
+
"name": "clonedBundleManager",
|
242
|
+
"type": "address"
|
243
|
+
}
|
244
|
+
],
|
245
|
+
"stateMutability": "nonpayable",
|
246
|
+
"type": "function"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"inputs": [],
|
250
|
+
"name": "getDomain",
|
251
|
+
"outputs": [
|
252
|
+
{
|
253
|
+
"internalType": "ObjectType",
|
254
|
+
"name": "serviceDomain",
|
255
|
+
"type": "uint8"
|
256
|
+
}
|
257
|
+
],
|
258
|
+
"stateMutability": "pure",
|
259
|
+
"type": "function"
|
260
|
+
},
|
101
261
|
{
|
102
262
|
"inputs": [],
|
103
263
|
"name": "getInitialInfo",
|
@@ -143,24 +303,6 @@
|
|
143
303
|
"internalType": "struct IRegistry.ObjectInfo",
|
144
304
|
"name": "",
|
145
305
|
"type": "tuple"
|
146
|
-
},
|
147
|
-
{
|
148
|
-
"internalType": "bytes",
|
149
|
-
"name": "data",
|
150
|
-
"type": "bytes"
|
151
|
-
}
|
152
|
-
],
|
153
|
-
"stateMutability": "view",
|
154
|
-
"type": "function"
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"inputs": [],
|
158
|
-
"name": "getInitializedVersion",
|
159
|
-
"outputs": [
|
160
|
-
{
|
161
|
-
"internalType": "uint64",
|
162
|
-
"name": "",
|
163
|
-
"type": "uint64"
|
164
306
|
}
|
165
307
|
],
|
166
308
|
"stateMutability": "view",
|
@@ -179,19 +321,6 @@
|
|
179
321
|
"stateMutability": "view",
|
180
322
|
"type": "function"
|
181
323
|
},
|
182
|
-
{
|
183
|
-
"inputs": [],
|
184
|
-
"name": "getName",
|
185
|
-
"outputs": [
|
186
|
-
{
|
187
|
-
"internalType": "string",
|
188
|
-
"name": "name",
|
189
|
-
"type": "string"
|
190
|
-
}
|
191
|
-
],
|
192
|
-
"stateMutability": "pure",
|
193
|
-
"type": "function"
|
194
|
-
},
|
195
324
|
{
|
196
325
|
"inputs": [],
|
197
326
|
"name": "getNftId",
|
@@ -233,102 +362,61 @@
|
|
233
362
|
},
|
234
363
|
{
|
235
364
|
"inputs": [],
|
236
|
-
"name": "
|
365
|
+
"name": "getRegistryAddress",
|
237
366
|
"outputs": [
|
238
367
|
{
|
239
|
-
"internalType": "
|
368
|
+
"internalType": "address",
|
240
369
|
"name": "",
|
241
|
-
"type": "
|
370
|
+
"type": "address"
|
242
371
|
}
|
243
372
|
],
|
244
|
-
"stateMutability": "
|
373
|
+
"stateMutability": "view",
|
245
374
|
"type": "function"
|
246
375
|
},
|
247
376
|
{
|
248
|
-
"inputs": [
|
249
|
-
{
|
250
|
-
"internalType": "uint256",
|
251
|
-
"name": "index",
|
252
|
-
"type": "uint256"
|
253
|
-
}
|
254
|
-
],
|
377
|
+
"inputs": [],
|
255
378
|
"name": "getVersion",
|
256
379
|
"outputs": [
|
257
380
|
{
|
258
381
|
"internalType": "Version",
|
259
|
-
"name": "
|
382
|
+
"name": "",
|
260
383
|
"type": "uint24"
|
261
384
|
}
|
262
385
|
],
|
263
|
-
"stateMutability": "
|
264
|
-
"type": "function"
|
265
|
-
},
|
266
|
-
{
|
267
|
-
"inputs": [],
|
268
|
-
"name": "getVersionCount",
|
269
|
-
"outputs": [
|
270
|
-
{
|
271
|
-
"internalType": "uint256",
|
272
|
-
"name": "numberOfVersions",
|
273
|
-
"type": "uint256"
|
274
|
-
}
|
275
|
-
],
|
276
|
-
"stateMutability": "view",
|
386
|
+
"stateMutability": "pure",
|
277
387
|
"type": "function"
|
278
388
|
},
|
279
389
|
{
|
280
390
|
"inputs": [
|
281
391
|
{
|
282
|
-
"internalType": "
|
283
|
-
"name": "
|
284
|
-
"type": "
|
392
|
+
"internalType": "address",
|
393
|
+
"name": "account",
|
394
|
+
"type": "address"
|
395
|
+
},
|
396
|
+
{
|
397
|
+
"internalType": "RoleId",
|
398
|
+
"name": "role",
|
399
|
+
"type": "uint64"
|
400
|
+
},
|
401
|
+
{
|
402
|
+
"internalType": "address",
|
403
|
+
"name": "instanceAddress",
|
404
|
+
"type": "address"
|
285
405
|
}
|
286
406
|
],
|
287
|
-
"name": "
|
407
|
+
"name": "hasRole",
|
288
408
|
"outputs": [
|
289
409
|
{
|
290
|
-
"
|
291
|
-
|
292
|
-
|
293
|
-
"name": "version",
|
294
|
-
"type": "uint24"
|
295
|
-
},
|
296
|
-
{
|
297
|
-
"internalType": "address",
|
298
|
-
"name": "implementation",
|
299
|
-
"type": "address"
|
300
|
-
},
|
301
|
-
{
|
302
|
-
"internalType": "address",
|
303
|
-
"name": "activatedBy",
|
304
|
-
"type": "address"
|
305
|
-
},
|
306
|
-
{
|
307
|
-
"internalType": "Timestamp",
|
308
|
-
"name": "activatedAt",
|
309
|
-
"type": "uint40"
|
310
|
-
},
|
311
|
-
{
|
312
|
-
"internalType": "Blocknumber",
|
313
|
-
"name": "activatedIn",
|
314
|
-
"type": "uint32"
|
315
|
-
}
|
316
|
-
],
|
317
|
-
"internalType": "struct IVersionable.VersionInfo",
|
318
|
-
"name": "versionInfo",
|
319
|
-
"type": "tuple"
|
410
|
+
"internalType": "bool",
|
411
|
+
"name": "",
|
412
|
+
"type": "bool"
|
320
413
|
}
|
321
414
|
],
|
322
|
-
"stateMutability": "
|
415
|
+
"stateMutability": "nonpayable",
|
323
416
|
"type": "function"
|
324
417
|
},
|
325
418
|
{
|
326
419
|
"inputs": [
|
327
|
-
{
|
328
|
-
"internalType": "address",
|
329
|
-
"name": "implementation",
|
330
|
-
"type": "address"
|
331
|
-
},
|
332
420
|
{
|
333
421
|
"internalType": "address",
|
334
422
|
"name": "activatedBy",
|
@@ -340,7 +428,14 @@
|
|
340
428
|
"type": "bytes"
|
341
429
|
}
|
342
430
|
],
|
343
|
-
"name": "
|
431
|
+
"name": "initializeVersionable",
|
432
|
+
"outputs": [],
|
433
|
+
"stateMutability": "nonpayable",
|
434
|
+
"type": "function"
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"inputs": [],
|
438
|
+
"name": "linkToRegisteredNftId",
|
344
439
|
"outputs": [],
|
345
440
|
"stateMutability": "nonpayable",
|
346
441
|
"type": "function"
|
@@ -348,25 +443,17 @@
|
|
348
443
|
{
|
349
444
|
"inputs": [
|
350
445
|
{
|
351
|
-
"internalType": "
|
352
|
-
"name": "
|
353
|
-
"type": "
|
354
|
-
}
|
355
|
-
],
|
356
|
-
"name": "isInitialized",
|
357
|
-
"outputs": [
|
446
|
+
"internalType": "string",
|
447
|
+
"name": "targetName",
|
448
|
+
"type": "string"
|
449
|
+
},
|
358
450
|
{
|
359
451
|
"internalType": "bool",
|
360
|
-
"name": "",
|
452
|
+
"name": "locked",
|
361
453
|
"type": "bool"
|
362
454
|
}
|
363
455
|
],
|
364
|
-
"
|
365
|
-
"type": "function"
|
366
|
-
},
|
367
|
-
{
|
368
|
-
"inputs": [],
|
369
|
-
"name": "linkToRegisteredNftId",
|
456
|
+
"name": "setTargetLocked",
|
370
457
|
"outputs": [],
|
371
458
|
"stateMutability": "nonpayable",
|
372
459
|
"type": "function"
|
@@ -392,23 +479,13 @@
|
|
392
479
|
},
|
393
480
|
{
|
394
481
|
"inputs": [
|
395
|
-
{
|
396
|
-
"internalType": "address",
|
397
|
-
"name": "implementation",
|
398
|
-
"type": "address"
|
399
|
-
},
|
400
|
-
{
|
401
|
-
"internalType": "address",
|
402
|
-
"name": "activatedBy",
|
403
|
-
"type": "address"
|
404
|
-
},
|
405
482
|
{
|
406
483
|
"internalType": "bytes",
|
407
484
|
"name": "upgradeData",
|
408
485
|
"type": "bytes"
|
409
486
|
}
|
410
487
|
],
|
411
|
-
"name": "
|
488
|
+
"name": "upgradeVersionable",
|
412
489
|
"outputs": [],
|
413
490
|
"stateMutability": "nonpayable",
|
414
491
|
"type": "function"
|