@etherisc/gif-next 0.0.2-bc11089-132 → 0.0.2-bca28f1-935
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 +897 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +896 -235
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +137 -86
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +798 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +662 -43
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +661 -5
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +603 -204
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +529 -122
- 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/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- 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 +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +38 -62
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +706 -56
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +152 -19
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +560 -272
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +103 -176
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +61 -97
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +460 -191
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +187 -85
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -32
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/base/ComponentService.sol/ComponentService.json} +321 -9
- 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 +24 -13
- 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 +1117 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +495 -100
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +172 -26
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +554 -62
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +197 -23
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/ComponentServiceBase.sol/ComponentServiceBase.json → service/IApplicationService.sol/IApplicationService.json} +221 -104
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +181 -52
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +229 -19
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +152 -32
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +32 -19
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +32 -19
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +481 -87
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +203 -25
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +301 -62
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +169 -23
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +301 -62
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +169 -15
- 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 +225 -133
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +185 -77
- 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 +238 -235
- 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 +243 -129
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +181 -97
- 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 +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +150 -29
- 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 +37 -0
- 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 +18 -5
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +69 -0
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +32 -19
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -2
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +156 -11
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +269 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +156 -6
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +152 -11
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +105 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +178 -19
- 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 -2
- 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 +152 -11
- 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 +196 -37
- 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/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -8
- 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/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 +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/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/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/VersionPartLib.dbg.json +1 -1
- package/contracts/components/Component.sol +236 -0
- package/contracts/components/Distribution.sol +209 -64
- package/contracts/components/IComponent.sol +50 -0
- package/contracts/components/IDistributionComponent.sol +59 -3
- package/contracts/components/IPoolComponent.sol +50 -29
- package/contracts/components/IProductComponent.sol +7 -3
- package/contracts/components/Pool.sol +135 -152
- package/contracts/components/Product.sol +103 -117
- package/contracts/instance/BundleManager.sol +7 -11
- package/contracts/instance/IInstance.sol +35 -11
- package/contracts/instance/IInstanceService.sol +23 -2
- package/contracts/instance/Instance.sol +67 -62
- package/contracts/instance/InstanceAccessManager.sol +31 -38
- package/contracts/instance/InstanceReader.sol +3 -25
- package/contracts/instance/InstanceService.sol +198 -56
- package/contracts/instance/InstanceServiceManager.sol +5 -8
- package/contracts/instance/ObjectManager.sol +7 -24
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/module/IAccess.sol +4 -5
- package/contracts/instance/module/ISetup.sol +5 -4
- package/contracts/instance/service/ApplicationService.sol +268 -0
- package/contracts/instance/service/BundleService.sol +52 -14
- package/contracts/instance/service/BundleServiceManager.sol +5 -8
- package/contracts/instance/service/DistributionService.sol +208 -49
- package/contracts/instance/service/DistributionServiceManager.sol +6 -9
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +12 -3
- package/contracts/instance/service/IDistributionService.sol +53 -0
- package/contracts/instance/service/IPolicyService.sol +17 -16
- package/contracts/instance/service/PolicyService.sol +148 -132
- package/contracts/instance/service/PoolService.sol +27 -42
- package/contracts/instance/service/PoolServiceManager.sol +5 -8
- package/contracts/instance/service/ProductService.sol +100 -40
- package/contracts/registry/ChainNft.sol +1 -1
- package/contracts/registry/IRegistry.sol +37 -19
- package/contracts/registry/IRegistryService.sol +30 -13
- package/contracts/registry/Registry.sol +233 -217
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +81 -162
- package/contracts/registry/RegistryServiceManager.sol +18 -36
- package/contracts/registry/ReleaseManager.sol +331 -0
- package/contracts/registry/TokenRegistry.sol +11 -9
- package/contracts/shared/ERC165.sol +12 -11
- package/contracts/shared/INftOwnable.sol +12 -6
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +4 -6
- package/contracts/shared/IRegistryLinked.sol +15 -0
- package/contracts/shared/IService.sol +2 -1
- package/contracts/shared/IVersionable.sol +2 -2
- package/contracts/shared/NftOwnable.sol +113 -57
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +6 -5
- package/contracts/shared/Registerable.sol +15 -24
- package/contracts/shared/RegistryLinked.sol +64 -0
- package/contracts/shared/Service.sol +18 -13
- package/contracts/shared/Versionable.sol +3 -2
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +4 -3
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/ObjectType.sol +6 -2
- package/contracts/types/RoleId.sol +4 -5
- 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/components/IBaseComponent.sol/IBaseComponent.json +0 -384
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
- 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 -827
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +0 -466
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -148
- package/contracts/components/IBaseComponent.sol +0 -32
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -23
- package/contracts/instance/IInstanceBase.sol +0 -26
- package/contracts/instance/InstanceBase.sol +0 -41
- package/contracts/instance/base/ComponentServiceBase.sol +0 -72
- 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
@@ -51,6 +51,118 @@
|
|
51
51
|
"name": "ErrorIPolicyServiceInsufficientAllowance",
|
52
52
|
"type": "error"
|
53
53
|
},
|
54
|
+
{
|
55
|
+
"inputs": [
|
56
|
+
{
|
57
|
+
"internalType": "NftId",
|
58
|
+
"name": "policyNftId",
|
59
|
+
"type": "uint96"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"internalType": "uint16",
|
63
|
+
"name": "openClaimsCount",
|
64
|
+
"type": "uint16"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"name": "ErrorIPolicyServiceOpenClaims",
|
68
|
+
"type": "error"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"inputs": [
|
72
|
+
{
|
73
|
+
"internalType": "NftId",
|
74
|
+
"name": "policyNftId",
|
75
|
+
"type": "uint96"
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"name": "ErrorIPolicyServicePolicyAlreadyClosed",
|
79
|
+
"type": "error"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"inputs": [
|
83
|
+
{
|
84
|
+
"internalType": "NftId",
|
85
|
+
"name": "policyNftId",
|
86
|
+
"type": "uint96"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"internalType": "Timestamp",
|
90
|
+
"name": "expiredAt",
|
91
|
+
"type": "uint40"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"name": "ErrorIPolicyServicePolicyHasNotExpired",
|
95
|
+
"type": "error"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"inputs": [
|
99
|
+
{
|
100
|
+
"internalType": "NftId",
|
101
|
+
"name": "policyNftId",
|
102
|
+
"type": "uint96"
|
103
|
+
}
|
104
|
+
],
|
105
|
+
"name": "ErrorIPolicyServicePolicyNotActivated",
|
106
|
+
"type": "error"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"inputs": [
|
110
|
+
{
|
111
|
+
"internalType": "NftId",
|
112
|
+
"name": "policyNftId",
|
113
|
+
"type": "uint96"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"internalType": "StateId",
|
117
|
+
"name": "state",
|
118
|
+
"type": "uint8"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
"name": "ErrorIPolicyServicePolicyNotActive",
|
122
|
+
"type": "error"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"inputs": [
|
126
|
+
{
|
127
|
+
"internalType": "NftId",
|
128
|
+
"name": "policyNftId",
|
129
|
+
"type": "uint96"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"internalType": "uint256",
|
133
|
+
"name": "premiumPaidAmount",
|
134
|
+
"type": "uint256"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"name": "ErrorIPolicyServicePremiumAlreadyPaid",
|
138
|
+
"type": "error"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"inputs": [
|
142
|
+
{
|
143
|
+
"internalType": "NftId",
|
144
|
+
"name": "policyNftId",
|
145
|
+
"type": "uint96"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"internalType": "uint256",
|
149
|
+
"name": "premiumAmount",
|
150
|
+
"type": "uint256"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"internalType": "uint256",
|
154
|
+
"name": "premiumPaidAmount",
|
155
|
+
"type": "uint256"
|
156
|
+
}
|
157
|
+
],
|
158
|
+
"name": "ErrorIPolicyServicePremiumNotFullyPaid",
|
159
|
+
"type": "error"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"inputs": [],
|
163
|
+
"name": "ErrorInitialOwnerZero",
|
164
|
+
"type": "error"
|
165
|
+
},
|
54
166
|
{
|
55
167
|
"inputs": [
|
56
168
|
{
|
@@ -305,6 +417,32 @@
|
|
305
417
|
"stateMutability": "nonpayable",
|
306
418
|
"type": "function"
|
307
419
|
},
|
420
|
+
{
|
421
|
+
"inputs": [
|
422
|
+
{
|
423
|
+
"internalType": "NftId",
|
424
|
+
"name": "policyNftId",
|
425
|
+
"type": "uint96"
|
426
|
+
}
|
427
|
+
],
|
428
|
+
"name": "decline",
|
429
|
+
"outputs": [],
|
430
|
+
"stateMutability": "nonpayable",
|
431
|
+
"type": "function"
|
432
|
+
},
|
433
|
+
{
|
434
|
+
"inputs": [],
|
435
|
+
"name": "getDomain",
|
436
|
+
"outputs": [
|
437
|
+
{
|
438
|
+
"internalType": "ObjectType",
|
439
|
+
"name": "serviceDomain",
|
440
|
+
"type": "uint8"
|
441
|
+
}
|
442
|
+
],
|
443
|
+
"stateMutability": "pure",
|
444
|
+
"type": "function"
|
445
|
+
},
|
308
446
|
{
|
309
447
|
"inputs": [],
|
310
448
|
"name": "getInitialInfo",
|
@@ -350,11 +488,6 @@
|
|
350
488
|
"internalType": "struct IRegistry.ObjectInfo",
|
351
489
|
"name": "",
|
352
490
|
"type": "tuple"
|
353
|
-
},
|
354
|
-
{
|
355
|
-
"internalType": "bytes",
|
356
|
-
"name": "data",
|
357
|
-
"type": "bytes"
|
358
491
|
}
|
359
492
|
],
|
360
493
|
"stateMutability": "view",
|
@@ -388,25 +521,25 @@
|
|
388
521
|
},
|
389
522
|
{
|
390
523
|
"inputs": [],
|
391
|
-
"name": "
|
524
|
+
"name": "getNftId",
|
392
525
|
"outputs": [
|
393
526
|
{
|
394
|
-
"internalType": "
|
395
|
-
"name": "
|
396
|
-
"type": "
|
527
|
+
"internalType": "NftId",
|
528
|
+
"name": "",
|
529
|
+
"type": "uint96"
|
397
530
|
}
|
398
531
|
],
|
399
|
-
"stateMutability": "
|
532
|
+
"stateMutability": "view",
|
400
533
|
"type": "function"
|
401
534
|
},
|
402
535
|
{
|
403
536
|
"inputs": [],
|
404
|
-
"name": "
|
537
|
+
"name": "getOwner",
|
405
538
|
"outputs": [
|
406
539
|
{
|
407
|
-
"internalType": "
|
540
|
+
"internalType": "address",
|
408
541
|
"name": "",
|
409
|
-
"type": "
|
542
|
+
"type": "address"
|
410
543
|
}
|
411
544
|
],
|
412
545
|
"stateMutability": "view",
|
@@ -414,10 +547,10 @@
|
|
414
547
|
},
|
415
548
|
{
|
416
549
|
"inputs": [],
|
417
|
-
"name": "
|
550
|
+
"name": "getRegistry",
|
418
551
|
"outputs": [
|
419
552
|
{
|
420
|
-
"internalType": "
|
553
|
+
"internalType": "contract IRegistry",
|
421
554
|
"name": "",
|
422
555
|
"type": "address"
|
423
556
|
}
|
@@ -427,10 +560,10 @@
|
|
427
560
|
},
|
428
561
|
{
|
429
562
|
"inputs": [],
|
430
|
-
"name": "
|
563
|
+
"name": "getRegistryAddress",
|
431
564
|
"outputs": [
|
432
565
|
{
|
433
|
-
"internalType": "
|
566
|
+
"internalType": "address",
|
434
567
|
"name": "",
|
435
568
|
"type": "address"
|
436
569
|
}
|
@@ -547,7 +680,7 @@
|
|
547
680
|
"type": "bytes"
|
548
681
|
}
|
549
682
|
],
|
550
|
-
"name": "
|
683
|
+
"name": "initializeVersionable",
|
551
684
|
"outputs": [],
|
552
685
|
"stateMutability": "nonpayable",
|
553
686
|
"type": "function"
|
@@ -578,19 +711,6 @@
|
|
578
711
|
"stateMutability": "nonpayable",
|
579
712
|
"type": "function"
|
580
713
|
},
|
581
|
-
{
|
582
|
-
"inputs": [
|
583
|
-
{
|
584
|
-
"internalType": "NftId",
|
585
|
-
"name": "policyNftId",
|
586
|
-
"type": "uint96"
|
587
|
-
}
|
588
|
-
],
|
589
|
-
"name": "revoke",
|
590
|
-
"outputs": [],
|
591
|
-
"stateMutability": "nonpayable",
|
592
|
-
"type": "function"
|
593
|
-
},
|
594
714
|
{
|
595
715
|
"inputs": [
|
596
716
|
{
|
@@ -651,7 +771,7 @@
|
|
651
771
|
"type": "bytes"
|
652
772
|
}
|
653
773
|
],
|
654
|
-
"name": "
|
774
|
+
"name": "upgradeVersionable",
|
655
775
|
"outputs": [],
|
656
776
|
"stateMutability": "nonpayable",
|
657
777
|
"type": "function"
|
@@ -30,6 +30,11 @@
|
|
30
30
|
"name": "ErrorContractNotRegistered",
|
31
31
|
"type": "error"
|
32
32
|
},
|
33
|
+
{
|
34
|
+
"inputs": [],
|
35
|
+
"name": "ErrorInitialOwnerZero",
|
36
|
+
"type": "error"
|
37
|
+
},
|
33
38
|
{
|
34
39
|
"inputs": [
|
35
40
|
{
|
@@ -98,6 +103,19 @@
|
|
98
103
|
"name": "LogVersionableInitialized",
|
99
104
|
"type": "event"
|
100
105
|
},
|
106
|
+
{
|
107
|
+
"inputs": [],
|
108
|
+
"name": "getDomain",
|
109
|
+
"outputs": [
|
110
|
+
{
|
111
|
+
"internalType": "ObjectType",
|
112
|
+
"name": "serviceDomain",
|
113
|
+
"type": "uint8"
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"stateMutability": "pure",
|
117
|
+
"type": "function"
|
118
|
+
},
|
101
119
|
{
|
102
120
|
"inputs": [],
|
103
121
|
"name": "getInitialInfo",
|
@@ -143,11 +161,6 @@
|
|
143
161
|
"internalType": "struct IRegistry.ObjectInfo",
|
144
162
|
"name": "",
|
145
163
|
"type": "tuple"
|
146
|
-
},
|
147
|
-
{
|
148
|
-
"internalType": "bytes",
|
149
|
-
"name": "data",
|
150
|
-
"type": "bytes"
|
151
164
|
}
|
152
165
|
],
|
153
166
|
"stateMutability": "view",
|
@@ -181,25 +194,25 @@
|
|
181
194
|
},
|
182
195
|
{
|
183
196
|
"inputs": [],
|
184
|
-
"name": "
|
197
|
+
"name": "getNftId",
|
185
198
|
"outputs": [
|
186
199
|
{
|
187
|
-
"internalType": "
|
188
|
-
"name": "
|
189
|
-
"type": "
|
200
|
+
"internalType": "NftId",
|
201
|
+
"name": "",
|
202
|
+
"type": "uint96"
|
190
203
|
}
|
191
204
|
],
|
192
|
-
"stateMutability": "
|
205
|
+
"stateMutability": "view",
|
193
206
|
"type": "function"
|
194
207
|
},
|
195
208
|
{
|
196
209
|
"inputs": [],
|
197
|
-
"name": "
|
210
|
+
"name": "getOwner",
|
198
211
|
"outputs": [
|
199
212
|
{
|
200
|
-
"internalType": "
|
213
|
+
"internalType": "address",
|
201
214
|
"name": "",
|
202
|
-
"type": "
|
215
|
+
"type": "address"
|
203
216
|
}
|
204
217
|
],
|
205
218
|
"stateMutability": "view",
|
@@ -207,10 +220,10 @@
|
|
207
220
|
},
|
208
221
|
{
|
209
222
|
"inputs": [],
|
210
|
-
"name": "
|
223
|
+
"name": "getRegistry",
|
211
224
|
"outputs": [
|
212
225
|
{
|
213
|
-
"internalType": "
|
226
|
+
"internalType": "contract IRegistry",
|
214
227
|
"name": "",
|
215
228
|
"type": "address"
|
216
229
|
}
|
@@ -220,10 +233,10 @@
|
|
220
233
|
},
|
221
234
|
{
|
222
235
|
"inputs": [],
|
223
|
-
"name": "
|
236
|
+
"name": "getRegistryAddress",
|
224
237
|
"outputs": [
|
225
238
|
{
|
226
|
-
"internalType": "
|
239
|
+
"internalType": "address",
|
227
240
|
"name": "",
|
228
241
|
"type": "address"
|
229
242
|
}
|
@@ -340,7 +353,7 @@
|
|
340
353
|
"type": "bytes"
|
341
354
|
}
|
342
355
|
],
|
343
|
-
"name": "
|
356
|
+
"name": "initializeVersionable",
|
344
357
|
"outputs": [],
|
345
358
|
"stateMutability": "nonpayable",
|
346
359
|
"type": "function"
|
@@ -486,7 +499,7 @@
|
|
486
499
|
"type": "bytes"
|
487
500
|
}
|
488
501
|
],
|
489
|
-
"name": "
|
502
|
+
"name": "upgradeVersionable",
|
490
503
|
"outputs": [],
|
491
504
|
"stateMutability": "nonpayable",
|
492
505
|
"type": "function"
|
@@ -30,6 +30,11 @@
|
|
30
30
|
"name": "ErrorContractNotRegistered",
|
31
31
|
"type": "error"
|
32
32
|
},
|
33
|
+
{
|
34
|
+
"inputs": [],
|
35
|
+
"name": "ErrorInitialOwnerZero",
|
36
|
+
"type": "error"
|
37
|
+
},
|
33
38
|
{
|
34
39
|
"inputs": [
|
35
40
|
{
|
@@ -116,6 +121,19 @@
|
|
116
121
|
"stateMutability": "nonpayable",
|
117
122
|
"type": "function"
|
118
123
|
},
|
124
|
+
{
|
125
|
+
"inputs": [],
|
126
|
+
"name": "getDomain",
|
127
|
+
"outputs": [
|
128
|
+
{
|
129
|
+
"internalType": "ObjectType",
|
130
|
+
"name": "serviceDomain",
|
131
|
+
"type": "uint8"
|
132
|
+
}
|
133
|
+
],
|
134
|
+
"stateMutability": "pure",
|
135
|
+
"type": "function"
|
136
|
+
},
|
119
137
|
{
|
120
138
|
"inputs": [],
|
121
139
|
"name": "getInitialInfo",
|
@@ -161,11 +179,6 @@
|
|
161
179
|
"internalType": "struct IRegistry.ObjectInfo",
|
162
180
|
"name": "",
|
163
181
|
"type": "tuple"
|
164
|
-
},
|
165
|
-
{
|
166
|
-
"internalType": "bytes",
|
167
|
-
"name": "data",
|
168
|
-
"type": "bytes"
|
169
182
|
}
|
170
183
|
],
|
171
184
|
"stateMutability": "view",
|
@@ -199,25 +212,25 @@
|
|
199
212
|
},
|
200
213
|
{
|
201
214
|
"inputs": [],
|
202
|
-
"name": "
|
215
|
+
"name": "getNftId",
|
203
216
|
"outputs": [
|
204
217
|
{
|
205
|
-
"internalType": "
|
206
|
-
"name": "
|
207
|
-
"type": "
|
218
|
+
"internalType": "NftId",
|
219
|
+
"name": "",
|
220
|
+
"type": "uint96"
|
208
221
|
}
|
209
222
|
],
|
210
|
-
"stateMutability": "
|
223
|
+
"stateMutability": "view",
|
211
224
|
"type": "function"
|
212
225
|
},
|
213
226
|
{
|
214
227
|
"inputs": [],
|
215
|
-
"name": "
|
228
|
+
"name": "getOwner",
|
216
229
|
"outputs": [
|
217
230
|
{
|
218
|
-
"internalType": "
|
231
|
+
"internalType": "address",
|
219
232
|
"name": "",
|
220
|
-
"type": "
|
233
|
+
"type": "address"
|
221
234
|
}
|
222
235
|
],
|
223
236
|
"stateMutability": "view",
|
@@ -225,10 +238,10 @@
|
|
225
238
|
},
|
226
239
|
{
|
227
240
|
"inputs": [],
|
228
|
-
"name": "
|
241
|
+
"name": "getRegistry",
|
229
242
|
"outputs": [
|
230
243
|
{
|
231
|
-
"internalType": "
|
244
|
+
"internalType": "contract IRegistry",
|
232
245
|
"name": "",
|
233
246
|
"type": "address"
|
234
247
|
}
|
@@ -238,10 +251,10 @@
|
|
238
251
|
},
|
239
252
|
{
|
240
253
|
"inputs": [],
|
241
|
-
"name": "
|
254
|
+
"name": "getRegistryAddress",
|
242
255
|
"outputs": [
|
243
256
|
{
|
244
|
-
"internalType": "
|
257
|
+
"internalType": "address",
|
245
258
|
"name": "",
|
246
259
|
"type": "address"
|
247
260
|
}
|
@@ -358,7 +371,7 @@
|
|
358
371
|
"type": "bytes"
|
359
372
|
}
|
360
373
|
],
|
361
|
-
"name": "
|
374
|
+
"name": "initializeVersionable",
|
362
375
|
"outputs": [],
|
363
376
|
"stateMutability": "nonpayable",
|
364
377
|
"type": "function"
|
@@ -523,7 +536,7 @@
|
|
523
536
|
"type": "bytes"
|
524
537
|
}
|
525
538
|
],
|
526
|
-
"name": "
|
539
|
+
"name": "upgradeVersionable",
|
527
540
|
"outputs": [],
|
528
541
|
"stateMutability": "nonpayable",
|
529
542
|
"type": "function"
|