@etherisc/gif-next 0.0.2-dc7e4cb-141 → 0.0.2-de0a1d3-009
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 +709 -678
- 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 +916 -717
- 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} +102 -28
- 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 +58 -17
- 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/compensation/ICompensation.sol/ICompensation.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 +88 -1
- 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/{compensation/ICompensation.sol/ICompensationModule.json → distribution/IDistribution.sol/IDistribution.json} +2 -2
- 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 +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +104 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +126 -5
- 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 -231
- 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 -231
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +145 -18
- 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 +57 -16
- 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} +91 -25
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +122 -17
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +210 -16
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +171 -12
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +303 -31
- 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 +53 -12
- 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 +87 -0
- 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 +2 -2
- 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 +95 -8
- 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 +95 -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/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +50 -11
- 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/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -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 +14 -14
- package/contracts/instance/Instance.sol +20 -12
- 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} +33 -13
- 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 +0 -2
- 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 -60
- 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 +18 -2
- package/contracts/instance/module/risk/RiskModule.sol +56 -2
- package/contracts/instance/module/treasury/ITreasury.sol +29 -50
- package/contracts/instance/module/treasury/TreasuryModule.sol +71 -85
- package/contracts/instance/service/ComponentOwnerService.sol +30 -44
- 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 +31 -5
- package/contracts/instance/service/ProductService.sol +231 -77
- package/contracts/registry/Registry.sol +4 -4
- package/contracts/registry/RegistryUpgradeable.sol +473 -0
- package/contracts/shared/IVersionable.sol +17 -4
- package/contracts/shared/Proxy.sol +94 -0
- package/contracts/shared/Versionable.sol +13 -3
- package/contracts/shared/VersionableUpgradeable.sol +133 -0
- package/contracts/test/TestDistribution.sol +21 -0
- package/contracts/test/TestPool.sol +5 -2
- package/contracts/test/TestProduct.sol +35 -7
- package/contracts/test/TestRoleId.sol +2 -2
- package/contracts/test/TestService.sol +1 -1
- package/contracts/types/Fee.sol +8 -3
- 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/Version.sol +8 -0
- 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/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.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/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/compensation/CompensationModule.sol +0 -8
- package/contracts/instance/module/compensation/ICompensation.sol +0 -10
- package/contracts/instance/module/lifecycle/ILifecycle.sol +0 -47
- /package/contracts/instance/{service → base}/IService.sol +0 -0
@@ -0,0 +1,340 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "IDistributionComponent",
|
4
|
+
"sourceName": "contracts/components/IDistributionComponent.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "ReferralId",
|
10
|
+
"name": "referralId",
|
11
|
+
"type": "bytes8"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "uint256",
|
15
|
+
"name": "netPremiumAmount",
|
16
|
+
"type": "uint256"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"name": "calculateFeeAmount",
|
20
|
+
"outputs": [
|
21
|
+
{
|
22
|
+
"internalType": "uint256",
|
23
|
+
"name": "feeAmount",
|
24
|
+
"type": "uint256"
|
25
|
+
}
|
26
|
+
],
|
27
|
+
"stateMutability": "view",
|
28
|
+
"type": "function"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"inputs": [
|
32
|
+
{
|
33
|
+
"internalType": "ReferralId",
|
34
|
+
"name": "referralId",
|
35
|
+
"type": "bytes8"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"internalType": "uint256",
|
39
|
+
"name": "netPremiumAmount",
|
40
|
+
"type": "uint256"
|
41
|
+
}
|
42
|
+
],
|
43
|
+
"name": "calculateRenewalFeeAmount",
|
44
|
+
"outputs": [
|
45
|
+
{
|
46
|
+
"internalType": "uint256",
|
47
|
+
"name": "feeAmount",
|
48
|
+
"type": "uint256"
|
49
|
+
}
|
50
|
+
],
|
51
|
+
"stateMutability": "view",
|
52
|
+
"type": "function"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"inputs": [],
|
56
|
+
"name": "getData",
|
57
|
+
"outputs": [
|
58
|
+
{
|
59
|
+
"internalType": "bytes",
|
60
|
+
"name": "data",
|
61
|
+
"type": "bytes"
|
62
|
+
}
|
63
|
+
],
|
64
|
+
"stateMutability": "view",
|
65
|
+
"type": "function"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"inputs": [],
|
69
|
+
"name": "getDistributionFee",
|
70
|
+
"outputs": [
|
71
|
+
{
|
72
|
+
"components": [
|
73
|
+
{
|
74
|
+
"internalType": "UFixed",
|
75
|
+
"name": "fractionalFee",
|
76
|
+
"type": "uint256"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"internalType": "uint256",
|
80
|
+
"name": "fixedFee",
|
81
|
+
"type": "uint256"
|
82
|
+
}
|
83
|
+
],
|
84
|
+
"internalType": "struct Fee",
|
85
|
+
"name": "distributionFee",
|
86
|
+
"type": "tuple"
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"stateMutability": "view",
|
90
|
+
"type": "function"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"inputs": [],
|
94
|
+
"name": "getInstance",
|
95
|
+
"outputs": [
|
96
|
+
{
|
97
|
+
"internalType": "contract IInstance",
|
98
|
+
"name": "instance",
|
99
|
+
"type": "address"
|
100
|
+
}
|
101
|
+
],
|
102
|
+
"stateMutability": "view",
|
103
|
+
"type": "function"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"inputs": [],
|
107
|
+
"name": "getNftId",
|
108
|
+
"outputs": [
|
109
|
+
{
|
110
|
+
"internalType": "NftId",
|
111
|
+
"name": "nftId",
|
112
|
+
"type": "uint96"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"stateMutability": "view",
|
116
|
+
"type": "function"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"inputs": [],
|
120
|
+
"name": "getOwner",
|
121
|
+
"outputs": [
|
122
|
+
{
|
123
|
+
"internalType": "address",
|
124
|
+
"name": "owner",
|
125
|
+
"type": "address"
|
126
|
+
}
|
127
|
+
],
|
128
|
+
"stateMutability": "view",
|
129
|
+
"type": "function"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"inputs": [],
|
133
|
+
"name": "getParentNftId",
|
134
|
+
"outputs": [
|
135
|
+
{
|
136
|
+
"internalType": "NftId",
|
137
|
+
"name": "nftId",
|
138
|
+
"type": "uint96"
|
139
|
+
}
|
140
|
+
],
|
141
|
+
"stateMutability": "view",
|
142
|
+
"type": "function"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"inputs": [],
|
146
|
+
"name": "getRegistry",
|
147
|
+
"outputs": [
|
148
|
+
{
|
149
|
+
"internalType": "contract IRegistry",
|
150
|
+
"name": "registry",
|
151
|
+
"type": "address"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"stateMutability": "view",
|
155
|
+
"type": "function"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"inputs": [],
|
159
|
+
"name": "getToken",
|
160
|
+
"outputs": [
|
161
|
+
{
|
162
|
+
"internalType": "contract IERC20Metadata",
|
163
|
+
"name": "token",
|
164
|
+
"type": "address"
|
165
|
+
}
|
166
|
+
],
|
167
|
+
"stateMutability": "view",
|
168
|
+
"type": "function"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"inputs": [],
|
172
|
+
"name": "getType",
|
173
|
+
"outputs": [
|
174
|
+
{
|
175
|
+
"internalType": "ObjectType",
|
176
|
+
"name": "objectType",
|
177
|
+
"type": "uint8"
|
178
|
+
}
|
179
|
+
],
|
180
|
+
"stateMutability": "pure",
|
181
|
+
"type": "function"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"inputs": [],
|
185
|
+
"name": "getWallet",
|
186
|
+
"outputs": [
|
187
|
+
{
|
188
|
+
"internalType": "address",
|
189
|
+
"name": "walletAddress",
|
190
|
+
"type": "address"
|
191
|
+
}
|
192
|
+
],
|
193
|
+
"stateMutability": "view",
|
194
|
+
"type": "function"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"inputs": [],
|
198
|
+
"name": "isVerifying",
|
199
|
+
"outputs": [
|
200
|
+
{
|
201
|
+
"internalType": "bool",
|
202
|
+
"name": "verifying",
|
203
|
+
"type": "bool"
|
204
|
+
}
|
205
|
+
],
|
206
|
+
"stateMutability": "view",
|
207
|
+
"type": "function"
|
208
|
+
},
|
209
|
+
{
|
210
|
+
"inputs": [],
|
211
|
+
"name": "lock",
|
212
|
+
"outputs": [],
|
213
|
+
"stateMutability": "nonpayable",
|
214
|
+
"type": "function"
|
215
|
+
},
|
216
|
+
{
|
217
|
+
"inputs": [
|
218
|
+
{
|
219
|
+
"internalType": "ReferralId",
|
220
|
+
"name": "referralId",
|
221
|
+
"type": "bytes8"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"internalType": "uint256",
|
225
|
+
"name": "feeAmount",
|
226
|
+
"type": "uint256"
|
227
|
+
}
|
228
|
+
],
|
229
|
+
"name": "processRenewal",
|
230
|
+
"outputs": [],
|
231
|
+
"stateMutability": "nonpayable",
|
232
|
+
"type": "function"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"inputs": [
|
236
|
+
{
|
237
|
+
"internalType": "ReferralId",
|
238
|
+
"name": "referralId",
|
239
|
+
"type": "bytes8"
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"internalType": "uint256",
|
243
|
+
"name": "feeAmount",
|
244
|
+
"type": "uint256"
|
245
|
+
}
|
246
|
+
],
|
247
|
+
"name": "processSale",
|
248
|
+
"outputs": [],
|
249
|
+
"stateMutability": "nonpayable",
|
250
|
+
"type": "function"
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"inputs": [
|
254
|
+
{
|
255
|
+
"internalType": "ReferralId",
|
256
|
+
"name": "referralId",
|
257
|
+
"type": "bytes8"
|
258
|
+
}
|
259
|
+
],
|
260
|
+
"name": "referralIsValid",
|
261
|
+
"outputs": [
|
262
|
+
{
|
263
|
+
"internalType": "bool",
|
264
|
+
"name": "isValid",
|
265
|
+
"type": "bool"
|
266
|
+
}
|
267
|
+
],
|
268
|
+
"stateMutability": "view",
|
269
|
+
"type": "function"
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"inputs": [],
|
273
|
+
"name": "register",
|
274
|
+
"outputs": [
|
275
|
+
{
|
276
|
+
"internalType": "NftId",
|
277
|
+
"name": "nftId",
|
278
|
+
"type": "uint96"
|
279
|
+
}
|
280
|
+
],
|
281
|
+
"stateMutability": "nonpayable",
|
282
|
+
"type": "function"
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"inputs": [
|
286
|
+
{
|
287
|
+
"components": [
|
288
|
+
{
|
289
|
+
"internalType": "UFixed",
|
290
|
+
"name": "fractionalFee",
|
291
|
+
"type": "uint256"
|
292
|
+
},
|
293
|
+
{
|
294
|
+
"internalType": "uint256",
|
295
|
+
"name": "fixedFee",
|
296
|
+
"type": "uint256"
|
297
|
+
}
|
298
|
+
],
|
299
|
+
"internalType": "struct Fee",
|
300
|
+
"name": "distributionFee",
|
301
|
+
"type": "tuple"
|
302
|
+
}
|
303
|
+
],
|
304
|
+
"name": "setFees",
|
305
|
+
"outputs": [],
|
306
|
+
"stateMutability": "nonpayable",
|
307
|
+
"type": "function"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"inputs": [
|
311
|
+
{
|
312
|
+
"internalType": "bytes4",
|
313
|
+
"name": "interfaceId",
|
314
|
+
"type": "bytes4"
|
315
|
+
}
|
316
|
+
],
|
317
|
+
"name": "supportsInterface",
|
318
|
+
"outputs": [
|
319
|
+
{
|
320
|
+
"internalType": "bool",
|
321
|
+
"name": "",
|
322
|
+
"type": "bool"
|
323
|
+
}
|
324
|
+
],
|
325
|
+
"stateMutability": "view",
|
326
|
+
"type": "function"
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"inputs": [],
|
330
|
+
"name": "unlock",
|
331
|
+
"outputs": [],
|
332
|
+
"stateMutability": "nonpayable",
|
333
|
+
"type": "function"
|
334
|
+
}
|
335
|
+
],
|
336
|
+
"bytecode": "0x",
|
337
|
+
"deployedBytecode": "0x",
|
338
|
+
"linkReferences": {},
|
339
|
+
"deployedLinkReferences": {}
|
340
|
+
}
|
@@ -30,6 +30,23 @@
|
|
30
30
|
},
|
31
31
|
{
|
32
32
|
"inputs": [
|
33
|
+
{
|
34
|
+
"components": [
|
35
|
+
{
|
36
|
+
"internalType": "UFixed",
|
37
|
+
"name": "fractionalFee",
|
38
|
+
"type": "uint256"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"internalType": "uint256",
|
42
|
+
"name": "fixedFee",
|
43
|
+
"type": "uint256"
|
44
|
+
}
|
45
|
+
],
|
46
|
+
"internalType": "struct Fee",
|
47
|
+
"name": "fee",
|
48
|
+
"type": "tuple"
|
49
|
+
},
|
33
50
|
{
|
34
51
|
"internalType": "uint256",
|
35
52
|
"name": "initialAmount",
|
@@ -160,6 +177,31 @@
|
|
160
177
|
"stateMutability": "view",
|
161
178
|
"type": "function"
|
162
179
|
},
|
180
|
+
{
|
181
|
+
"inputs": [],
|
182
|
+
"name": "getPoolFee",
|
183
|
+
"outputs": [
|
184
|
+
{
|
185
|
+
"components": [
|
186
|
+
{
|
187
|
+
"internalType": "UFixed",
|
188
|
+
"name": "fractionalFee",
|
189
|
+
"type": "uint256"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"internalType": "uint256",
|
193
|
+
"name": "fixedFee",
|
194
|
+
"type": "uint256"
|
195
|
+
}
|
196
|
+
],
|
197
|
+
"internalType": "struct Fee",
|
198
|
+
"name": "poolFee",
|
199
|
+
"type": "tuple"
|
200
|
+
}
|
201
|
+
],
|
202
|
+
"stateMutability": "view",
|
203
|
+
"type": "function"
|
204
|
+
},
|
163
205
|
{
|
164
206
|
"inputs": [],
|
165
207
|
"name": "getRegistry",
|
@@ -294,6 +336,95 @@
|
|
294
336
|
"stateMutability": "nonpayable",
|
295
337
|
"type": "function"
|
296
338
|
},
|
339
|
+
{
|
340
|
+
"inputs": [
|
341
|
+
{
|
342
|
+
"internalType": "NftId",
|
343
|
+
"name": "policyNftId",
|
344
|
+
"type": "uint96"
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"components": [
|
348
|
+
{
|
349
|
+
"internalType": "UFixed",
|
350
|
+
"name": "fractionalFee",
|
351
|
+
"type": "uint256"
|
352
|
+
},
|
353
|
+
{
|
354
|
+
"internalType": "uint256",
|
355
|
+
"name": "fixedFee",
|
356
|
+
"type": "uint256"
|
357
|
+
}
|
358
|
+
],
|
359
|
+
"internalType": "struct Fee",
|
360
|
+
"name": "fee",
|
361
|
+
"type": "tuple"
|
362
|
+
}
|
363
|
+
],
|
364
|
+
"name": "setBundleFee",
|
365
|
+
"outputs": [],
|
366
|
+
"stateMutability": "nonpayable",
|
367
|
+
"type": "function"
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"inputs": [
|
371
|
+
{
|
372
|
+
"components": [
|
373
|
+
{
|
374
|
+
"internalType": "UFixed",
|
375
|
+
"name": "fractionalFee",
|
376
|
+
"type": "uint256"
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"internalType": "uint256",
|
380
|
+
"name": "fixedFee",
|
381
|
+
"type": "uint256"
|
382
|
+
}
|
383
|
+
],
|
384
|
+
"internalType": "struct Fee",
|
385
|
+
"name": "poolFee",
|
386
|
+
"type": "tuple"
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"components": [
|
390
|
+
{
|
391
|
+
"internalType": "UFixed",
|
392
|
+
"name": "fractionalFee",
|
393
|
+
"type": "uint256"
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"internalType": "uint256",
|
397
|
+
"name": "fixedFee",
|
398
|
+
"type": "uint256"
|
399
|
+
}
|
400
|
+
],
|
401
|
+
"internalType": "struct Fee",
|
402
|
+
"name": "stakingFee",
|
403
|
+
"type": "tuple"
|
404
|
+
},
|
405
|
+
{
|
406
|
+
"components": [
|
407
|
+
{
|
408
|
+
"internalType": "UFixed",
|
409
|
+
"name": "fractionalFee",
|
410
|
+
"type": "uint256"
|
411
|
+
},
|
412
|
+
{
|
413
|
+
"internalType": "uint256",
|
414
|
+
"name": "fixedFee",
|
415
|
+
"type": "uint256"
|
416
|
+
}
|
417
|
+
],
|
418
|
+
"internalType": "struct Fee",
|
419
|
+
"name": "performanceFee",
|
420
|
+
"type": "tuple"
|
421
|
+
}
|
422
|
+
],
|
423
|
+
"name": "setFees",
|
424
|
+
"outputs": [],
|
425
|
+
"stateMutability": "nonpayable",
|
426
|
+
"type": "function"
|
427
|
+
},
|
297
428
|
{
|
298
429
|
"inputs": [
|
299
430
|
{
|
@@ -3,6 +3,84 @@
|
|
3
3
|
"contractName": "IProductComponent",
|
4
4
|
"sourceName": "contracts/components/IProductComponent.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "uint256",
|
10
|
+
"name": "sumInsuredAmount",
|
11
|
+
"type": "uint256"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "RiskId",
|
15
|
+
"name": "riskId",
|
16
|
+
"type": "bytes8"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"internalType": "uint256",
|
20
|
+
"name": "lifetime",
|
21
|
+
"type": "uint256"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"internalType": "bytes",
|
25
|
+
"name": "applicationData",
|
26
|
+
"type": "bytes"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"name": "calculateNetPremium",
|
30
|
+
"outputs": [
|
31
|
+
{
|
32
|
+
"internalType": "uint256",
|
33
|
+
"name": "netPremiumAmount",
|
34
|
+
"type": "uint256"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"stateMutability": "view",
|
38
|
+
"type": "function"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"inputs": [
|
42
|
+
{
|
43
|
+
"internalType": "uint256",
|
44
|
+
"name": "sumInsuredAmount",
|
45
|
+
"type": "uint256"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"internalType": "RiskId",
|
49
|
+
"name": "riskId",
|
50
|
+
"type": "bytes8"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"internalType": "uint256",
|
54
|
+
"name": "lifetime",
|
55
|
+
"type": "uint256"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"internalType": "bytes",
|
59
|
+
"name": "applicationData",
|
60
|
+
"type": "bytes"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"internalType": "ReferralId",
|
64
|
+
"name": "referralId",
|
65
|
+
"type": "bytes8"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"internalType": "NftId",
|
69
|
+
"name": "bundleNftId",
|
70
|
+
"type": "uint96"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"name": "calculatePremium",
|
74
|
+
"outputs": [
|
75
|
+
{
|
76
|
+
"internalType": "uint256",
|
77
|
+
"name": "premiumAmount",
|
78
|
+
"type": "uint256"
|
79
|
+
}
|
80
|
+
],
|
81
|
+
"stateMutability": "view",
|
82
|
+
"type": "function"
|
83
|
+
},
|
6
84
|
{
|
7
85
|
"inputs": [],
|
8
86
|
"name": "getData",
|
@@ -16,6 +94,19 @@
|
|
16
94
|
"stateMutability": "view",
|
17
95
|
"type": "function"
|
18
96
|
},
|
97
|
+
{
|
98
|
+
"inputs": [],
|
99
|
+
"name": "getDistributionNftId",
|
100
|
+
"outputs": [
|
101
|
+
{
|
102
|
+
"internalType": "NftId",
|
103
|
+
"name": "distributionNftId",
|
104
|
+
"type": "uint96"
|
105
|
+
}
|
106
|
+
],
|
107
|
+
"stateMutability": "view",
|
108
|
+
"type": "function"
|
109
|
+
},
|
19
110
|
{
|
20
111
|
"inputs": [],
|
21
112
|
"name": "getInstance",
|
@@ -70,7 +161,20 @@
|
|
70
161
|
},
|
71
162
|
{
|
72
163
|
"inputs": [],
|
73
|
-
"name": "
|
164
|
+
"name": "getPoolNftId",
|
165
|
+
"outputs": [
|
166
|
+
{
|
167
|
+
"internalType": "NftId",
|
168
|
+
"name": "poolNftId",
|
169
|
+
"type": "uint96"
|
170
|
+
}
|
171
|
+
],
|
172
|
+
"stateMutability": "view",
|
173
|
+
"type": "function"
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"inputs": [],
|
177
|
+
"name": "getProcessingFee",
|
74
178
|
"outputs": [
|
75
179
|
{
|
76
180
|
"components": [
|
@@ -86,7 +190,7 @@
|
|
86
190
|
}
|
87
191
|
],
|
88
192
|
"internalType": "struct Fee",
|
89
|
-
"name": "
|
193
|
+
"name": "processingFee",
|
90
194
|
"type": "tuple"
|
91
195
|
}
|
92
196
|
],
|
@@ -95,20 +199,7 @@
|
|
95
199
|
},
|
96
200
|
{
|
97
201
|
"inputs": [],
|
98
|
-
"name": "
|
99
|
-
"outputs": [
|
100
|
-
{
|
101
|
-
"internalType": "NftId",
|
102
|
-
"name": "poolNftId",
|
103
|
-
"type": "uint96"
|
104
|
-
}
|
105
|
-
],
|
106
|
-
"stateMutability": "view",
|
107
|
-
"type": "function"
|
108
|
-
},
|
109
|
-
{
|
110
|
-
"inputs": [],
|
111
|
-
"name": "getProcessingFee",
|
202
|
+
"name": "getProductFee",
|
112
203
|
"outputs": [
|
113
204
|
{
|
114
205
|
"components": [
|
@@ -124,7 +215,7 @@
|
|
124
215
|
}
|
125
216
|
],
|
126
217
|
"internalType": "struct Fee",
|
127
|
-
"name": "
|
218
|
+
"name": "productFee",
|
128
219
|
"type": "tuple"
|
129
220
|
}
|
130
221
|
],
|
@@ -219,7 +310,7 @@
|
|
219
310
|
}
|
220
311
|
],
|
221
312
|
"internalType": "struct Fee",
|
222
|
-
"name": "
|
313
|
+
"name": "productFee",
|
223
314
|
"type": "tuple"
|
224
315
|
},
|
225
316
|
{
|