@etherisc/gif-next 0.0.2-efdb520-159 → 0.0.2-efef0ea-320
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +58 -11
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +405 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +340 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +131 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +109 -18
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +194 -3
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +160 -21
- 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/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +697 -671
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +928 -744
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/{InstanceBase.sol/InstanceBase.json → base/ComponentServiceBase.sol/ComponentServiceBase.json} +107 -33
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +560 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/{module/lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/instance/{service → base}/IService.sol/IService.json +63 -22
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +463 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +710 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
- package/artifacts/contracts/instance/{module/product/ProductModule.sol/ProductModule.json → base/ModuleBase.sol/ModuleBase.json} +2 -2
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/{service → base}/ServiceBase.sol/ServiceBase.json +93 -6
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +71 -50
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +71 -50
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +22 -93
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +22 -93
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.json +10 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +10 -0
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +61 -38
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +61 -38
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -5
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -5
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{product/IProductModule.sol/IProductModule.json → risk/IRisk.sol/IRisk.json} +2 -2
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +113 -0
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +131 -0
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +209 -236
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +209 -236
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +141 -42
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +507 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +62 -21
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{ComponentServiceBase.sol/ComponentServiceBase.json → IDistributionService.sol/IDistributionService.json} +96 -30
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +127 -22
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +215 -21
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +177 -46
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +322 -62
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
- package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.json +724 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +58 -17
- package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.dbg.json +4 -0
- package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.json +248 -0
- package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.dbg.json +4 -0
- package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.json +129 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +92 -5
- package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.dbg.json +4 -0
- package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.json +228 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +405 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +28 -4
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +194 -3
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +209 -27
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +38 -4
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +102 -43
- 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 +14 -18
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +102 -39
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +338 -0
- 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/Fee.sol/FeeLib.dbg.json +4 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -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/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -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/UFixed.sol/UFixedMathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +34 -8
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +101 -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/BaseComponent.sol +7 -2
- package/contracts/components/Distribution.sol +132 -0
- package/contracts/components/IDistributionComponent.sol +47 -0
- package/contracts/components/IPoolComponent.sol +14 -0
- package/contracts/components/IProductComponent.sol +24 -5
- package/contracts/components/Pool.sol +64 -3
- package/contracts/components/Product.sol +123 -13
- package/contracts/instance/IInstance.sol +16 -13
- package/contracts/instance/Instance.sol +22 -10
- package/contracts/instance/{service → base}/ComponentServiceBase.sol +1 -0
- package/contracts/instance/base/IInstanceBase.sol +22 -0
- package/contracts/instance/base/IKeyValueStore.sol +50 -0
- package/contracts/instance/base/ILifecycle.sol +30 -0
- package/contracts/instance/{InstanceBase.sol → base/InstanceBase.sol} +34 -17
- package/contracts/instance/base/KeyValueStore.sol +161 -0
- package/contracts/instance/{module/lifecycle/LifecycleModule.sol → base/Lifecycle.sol} +50 -39
- package/contracts/instance/base/ModuleBase.sol +57 -0
- package/contracts/instance/{service → base}/ServiceBase.sol +1 -3
- package/contracts/instance/module/access/Access.sol +6 -6
- package/contracts/instance/module/bundle/BundleModule.sol +24 -118
- package/contracts/instance/module/bundle/IBundle.sol +9 -9
- package/contracts/instance/module/component/ComponentModule.sol +27 -61
- package/contracts/instance/module/component/IComponent.sol +5 -30
- package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
- package/contracts/instance/module/distribution/IDistribution.sol +10 -0
- package/contracts/instance/module/policy/IPolicy.sol +12 -9
- package/contracts/instance/module/policy/PolicyModule.sol +33 -26
- package/contracts/instance/module/pool/IPoolModule.sol +0 -1
- package/contracts/instance/module/pool/PoolModule.sol +12 -9
- package/contracts/instance/module/risk/IRisk.sol +26 -0
- package/contracts/instance/module/risk/RiskModule.sol +62 -0
- package/contracts/instance/module/treasury/ITreasury.sol +30 -52
- package/contracts/instance/module/treasury/TreasuryModule.sol +74 -84
- package/contracts/instance/service/ComponentOwnerService.sol +33 -50
- package/contracts/instance/service/DistributionService.sol +59 -0
- package/contracts/instance/service/IComponentOwnerService.sol +1 -1
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPoolService.sol +8 -1
- package/contracts/instance/service/IProductService.sol +56 -7
- package/contracts/instance/service/PoolService.sol +64 -13
- package/contracts/instance/service/ProductService.sol +234 -83
- package/contracts/registry/Registry.sol +4 -4
- package/contracts/registry/RegistryUpgradeable.sol +488 -0
- package/contracts/shared/IVersionable.sol +19 -6
- package/contracts/shared/Proxy.sol +94 -0
- package/contracts/shared/Versionable.sol +16 -9
- package/contracts/shared/VersionableUpgradeable.sol +136 -0
- package/contracts/test/TestDistribution.sol +21 -0
- package/contracts/test/TestFee.sol +3 -3
- package/contracts/test/TestPool.sol +6 -3
- package/contracts/test/TestProduct.sol +36 -8
- package/contracts/test/TestRoleId.sol +2 -2
- package/contracts/test/TestService.sol +3 -6
- package/contracts/test/TestVersion.sol +4 -7
- package/contracts/test/TestVersionable.sol +2 -5
- package/contracts/test/Usdc.sol +26 -0
- package/contracts/types/Fee.sol +44 -20
- package/contracts/types/Key32.sol +45 -0
- package/contracts/types/NftId.sol +16 -1
- package/contracts/types/ObjectType.sol +24 -8
- package/contracts/types/ReferralId.sol +48 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +12 -10
- package/contracts/types/StateId.sol +7 -1
- package/contracts/types/UFixed.sol +19 -16
- package/contracts/types/Version.sol +37 -25
- package/package.json +1 -1
- package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.json +0 -50
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
- package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
- package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
- package/artifacts/contracts/instance/module/product/IProductModule.sol/IProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/product/ProductModule.sol/ProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IService.sol/IService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.dbg.json +0 -4
- package/contracts/instance/IServiceLinked.sol +0 -12
- package/contracts/instance/module/lifecycle/ILifecycle.sol +0 -47
- package/contracts/instance/module/product/IProductModule.sol +0 -6
- package/contracts/instance/module/product/ProductModule.sol +0 -8
- /package/contracts/instance/{service → base}/IService.sol +0 -0
@@ -32,7 +32,7 @@
|
|
32
32
|
"inputs": [
|
33
33
|
{
|
34
34
|
"internalType": "NftId",
|
35
|
-
"name": "
|
35
|
+
"name": "policyNftId",
|
36
36
|
"type": "uint96"
|
37
37
|
},
|
38
38
|
{
|
@@ -49,19 +49,65 @@
|
|
49
49
|
{
|
50
50
|
"inputs": [
|
51
51
|
{
|
52
|
-
"internalType": "
|
53
|
-
"name": "
|
54
|
-
"type": "
|
52
|
+
"internalType": "RiskId",
|
53
|
+
"name": "riskId",
|
54
|
+
"type": "bytes8"
|
55
55
|
},
|
56
56
|
{
|
57
|
-
"internalType": "
|
58
|
-
"name": "
|
59
|
-
"type": "
|
57
|
+
"internalType": "uint256",
|
58
|
+
"name": "sumInsuredAmount",
|
59
|
+
"type": "uint256"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"internalType": "uint256",
|
63
|
+
"name": "lifetime",
|
64
|
+
"type": "uint256"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"internalType": "bytes",
|
68
|
+
"name": "applicationData",
|
69
|
+
"type": "bytes"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"internalType": "NftId",
|
73
|
+
"name": "bundleNftId",
|
74
|
+
"type": "uint96"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"internalType": "ReferralId",
|
78
|
+
"name": "referralId",
|
79
|
+
"type": "bytes8"
|
60
80
|
}
|
61
81
|
],
|
62
|
-
"name": "
|
63
|
-
"outputs": [
|
64
|
-
|
82
|
+
"name": "calculatePremium",
|
83
|
+
"outputs": [
|
84
|
+
{
|
85
|
+
"internalType": "uint256",
|
86
|
+
"name": "premiumAmount",
|
87
|
+
"type": "uint256"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"internalType": "uint256",
|
91
|
+
"name": "productFeeAmount",
|
92
|
+
"type": "uint256"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"internalType": "uint256",
|
96
|
+
"name": "poolFeeAmount",
|
97
|
+
"type": "uint256"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"internalType": "uint256",
|
101
|
+
"name": "bundleFeeAmount",
|
102
|
+
"type": "uint256"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"internalType": "uint256",
|
106
|
+
"name": "distributionFeeAmount",
|
107
|
+
"type": "uint256"
|
108
|
+
}
|
109
|
+
],
|
110
|
+
"stateMutability": "view",
|
65
111
|
"type": "function"
|
66
112
|
},
|
67
113
|
{
|
@@ -105,7 +151,7 @@
|
|
105
151
|
"inputs": [
|
106
152
|
{
|
107
153
|
"internalType": "NftId",
|
108
|
-
"name": "
|
154
|
+
"name": "policyNftId",
|
109
155
|
"type": "uint96"
|
110
156
|
},
|
111
157
|
{
|
@@ -127,13 +173,13 @@
|
|
127
173
|
"type": "address"
|
128
174
|
},
|
129
175
|
{
|
130
|
-
"internalType": "
|
131
|
-
"name": "
|
132
|
-
"type": "
|
176
|
+
"internalType": "RiskId",
|
177
|
+
"name": "riskId",
|
178
|
+
"type": "bytes8"
|
133
179
|
},
|
134
180
|
{
|
135
181
|
"internalType": "uint256",
|
136
|
-
"name": "
|
182
|
+
"name": "sumInsuredAmount",
|
137
183
|
"type": "uint256"
|
138
184
|
},
|
139
185
|
{
|
@@ -141,10 +187,20 @@
|
|
141
187
|
"name": "lifetime",
|
142
188
|
"type": "uint256"
|
143
189
|
},
|
190
|
+
{
|
191
|
+
"internalType": "bytes",
|
192
|
+
"name": "applicationData",
|
193
|
+
"type": "bytes"
|
194
|
+
},
|
144
195
|
{
|
145
196
|
"internalType": "NftId",
|
146
197
|
"name": "bundleNftId",
|
147
198
|
"type": "uint96"
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"internalType": "ReferralId",
|
202
|
+
"name": "referralId",
|
203
|
+
"type": "bytes8"
|
148
204
|
}
|
149
205
|
],
|
150
206
|
"name": "createApplication",
|
@@ -158,6 +214,24 @@
|
|
158
214
|
"stateMutability": "nonpayable",
|
159
215
|
"type": "function"
|
160
216
|
},
|
217
|
+
{
|
218
|
+
"inputs": [
|
219
|
+
{
|
220
|
+
"internalType": "RiskId",
|
221
|
+
"name": "riskId",
|
222
|
+
"type": "bytes8"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"internalType": "bytes",
|
226
|
+
"name": "data",
|
227
|
+
"type": "bytes"
|
228
|
+
}
|
229
|
+
],
|
230
|
+
"name": "createRisk",
|
231
|
+
"outputs": [],
|
232
|
+
"stateMutability": "nonpayable",
|
233
|
+
"type": "function"
|
234
|
+
},
|
161
235
|
{
|
162
236
|
"inputs": [],
|
163
237
|
"name": "getData",
|
@@ -171,6 +245,19 @@
|
|
171
245
|
"stateMutability": "view",
|
172
246
|
"type": "function"
|
173
247
|
},
|
248
|
+
{
|
249
|
+
"inputs": [],
|
250
|
+
"name": "getInitializedVersion",
|
251
|
+
"outputs": [
|
252
|
+
{
|
253
|
+
"internalType": "uint64",
|
254
|
+
"name": "",
|
255
|
+
"type": "uint64"
|
256
|
+
}
|
257
|
+
],
|
258
|
+
"stateMutability": "view",
|
259
|
+
"type": "function"
|
260
|
+
},
|
174
261
|
{
|
175
262
|
"inputs": [],
|
176
263
|
"name": "getMajorVersion",
|
@@ -334,15 +421,15 @@
|
|
334
421
|
"name": "activatedBy",
|
335
422
|
"type": "address"
|
336
423
|
},
|
337
|
-
{
|
338
|
-
"internalType": "Blocknumber",
|
339
|
-
"name": "activatedIn",
|
340
|
-
"type": "uint32"
|
341
|
-
},
|
342
424
|
{
|
343
425
|
"internalType": "Timestamp",
|
344
426
|
"name": "activatedAt",
|
345
427
|
"type": "uint40"
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"internalType": "Blocknumber",
|
431
|
+
"name": "activatedIn",
|
432
|
+
"type": "uint32"
|
346
433
|
}
|
347
434
|
],
|
348
435
|
"internalType": "struct IVersionable.VersionInfo",
|
@@ -353,6 +440,29 @@
|
|
353
440
|
"stateMutability": "view",
|
354
441
|
"type": "function"
|
355
442
|
},
|
443
|
+
{
|
444
|
+
"inputs": [
|
445
|
+
{
|
446
|
+
"internalType": "address",
|
447
|
+
"name": "implementation",
|
448
|
+
"type": "address"
|
449
|
+
},
|
450
|
+
{
|
451
|
+
"internalType": "address",
|
452
|
+
"name": "activatedBy",
|
453
|
+
"type": "address"
|
454
|
+
},
|
455
|
+
{
|
456
|
+
"internalType": "bytes",
|
457
|
+
"name": "activationData",
|
458
|
+
"type": "bytes"
|
459
|
+
}
|
460
|
+
],
|
461
|
+
"name": "initialize",
|
462
|
+
"outputs": [],
|
463
|
+
"stateMutability": "nonpayable",
|
464
|
+
"type": "function"
|
465
|
+
},
|
356
466
|
{
|
357
467
|
"inputs": [
|
358
468
|
{
|
@@ -385,6 +495,19 @@
|
|
385
495
|
"stateMutability": "nonpayable",
|
386
496
|
"type": "function"
|
387
497
|
},
|
498
|
+
{
|
499
|
+
"inputs": [
|
500
|
+
{
|
501
|
+
"internalType": "NftId",
|
502
|
+
"name": "policyNftId",
|
503
|
+
"type": "uint96"
|
504
|
+
}
|
505
|
+
],
|
506
|
+
"name": "revoke",
|
507
|
+
"outputs": [],
|
508
|
+
"stateMutability": "nonpayable",
|
509
|
+
"type": "function"
|
510
|
+
},
|
388
511
|
{
|
389
512
|
"inputs": [
|
390
513
|
{
|
@@ -401,7 +524,7 @@
|
|
401
524
|
}
|
402
525
|
],
|
403
526
|
"internalType": "struct Fee",
|
404
|
-
"name": "
|
527
|
+
"name": "productFee",
|
405
528
|
"type": "tuple"
|
406
529
|
},
|
407
530
|
{
|
@@ -427,6 +550,36 @@
|
|
427
550
|
"stateMutability": "nonpayable",
|
428
551
|
"type": "function"
|
429
552
|
},
|
553
|
+
{
|
554
|
+
"inputs": [
|
555
|
+
{
|
556
|
+
"internalType": "RiskId",
|
557
|
+
"name": "riskId",
|
558
|
+
"type": "bytes8"
|
559
|
+
},
|
560
|
+
{
|
561
|
+
"components": [
|
562
|
+
{
|
563
|
+
"internalType": "NftId",
|
564
|
+
"name": "productNftId",
|
565
|
+
"type": "uint96"
|
566
|
+
},
|
567
|
+
{
|
568
|
+
"internalType": "bytes",
|
569
|
+
"name": "data",
|
570
|
+
"type": "bytes"
|
571
|
+
}
|
572
|
+
],
|
573
|
+
"internalType": "struct IRisk.RiskInfo",
|
574
|
+
"name": "data",
|
575
|
+
"type": "tuple"
|
576
|
+
}
|
577
|
+
],
|
578
|
+
"name": "setRiskInfo",
|
579
|
+
"outputs": [],
|
580
|
+
"stateMutability": "nonpayable",
|
581
|
+
"type": "function"
|
582
|
+
},
|
430
583
|
{
|
431
584
|
"inputs": [
|
432
585
|
{
|
@@ -468,6 +621,47 @@
|
|
468
621
|
"outputs": [],
|
469
622
|
"stateMutability": "nonpayable",
|
470
623
|
"type": "function"
|
624
|
+
},
|
625
|
+
{
|
626
|
+
"inputs": [
|
627
|
+
{
|
628
|
+
"internalType": "RiskId",
|
629
|
+
"name": "riskId",
|
630
|
+
"type": "bytes8"
|
631
|
+
},
|
632
|
+
{
|
633
|
+
"internalType": "StateId",
|
634
|
+
"name": "state",
|
635
|
+
"type": "uint8"
|
636
|
+
}
|
637
|
+
],
|
638
|
+
"name": "updateRiskState",
|
639
|
+
"outputs": [],
|
640
|
+
"stateMutability": "nonpayable",
|
641
|
+
"type": "function"
|
642
|
+
},
|
643
|
+
{
|
644
|
+
"inputs": [
|
645
|
+
{
|
646
|
+
"internalType": "address",
|
647
|
+
"name": "implementation",
|
648
|
+
"type": "address"
|
649
|
+
},
|
650
|
+
{
|
651
|
+
"internalType": "address",
|
652
|
+
"name": "activatedBy",
|
653
|
+
"type": "address"
|
654
|
+
},
|
655
|
+
{
|
656
|
+
"internalType": "bytes",
|
657
|
+
"name": "upgradeData",
|
658
|
+
"type": "bytes"
|
659
|
+
}
|
660
|
+
],
|
661
|
+
"name": "upgrade",
|
662
|
+
"outputs": [],
|
663
|
+
"stateMutability": "nonpayable",
|
664
|
+
"type": "function"
|
471
665
|
}
|
472
666
|
],
|
473
667
|
"bytecode": "0x",
|