@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
@@ -3,48 +3,6 @@
|
|
3
3
|
"contractName": "IInstance",
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
|
-
{
|
7
|
-
"inputs": [
|
8
|
-
{
|
9
|
-
"internalType": "NftId",
|
10
|
-
"name": "nftId",
|
11
|
-
"type": "uint96"
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"internalType": "ObjectType",
|
15
|
-
"name": "objectType",
|
16
|
-
"type": "uint8"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"internalType": "StateId",
|
20
|
-
"name": "fromStateId",
|
21
|
-
"type": "uint8"
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"internalType": "StateId",
|
25
|
-
"name": "toStateId",
|
26
|
-
"type": "uint8"
|
27
|
-
}
|
28
|
-
],
|
29
|
-
"name": "ErrorInvalidStateTransition",
|
30
|
-
"type": "error"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"inputs": [
|
34
|
-
{
|
35
|
-
"internalType": "NftId",
|
36
|
-
"name": "nftId",
|
37
|
-
"type": "uint96"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"internalType": "ObjectType",
|
41
|
-
"name": "objectType",
|
42
|
-
"type": "uint8"
|
43
|
-
}
|
44
|
-
],
|
45
|
-
"name": "ErrorNoLifecycle",
|
46
|
-
"type": "error"
|
47
|
-
},
|
48
6
|
{
|
49
7
|
"anonymous": false,
|
50
8
|
"inputs": [
|
@@ -108,87 +66,6 @@
|
|
108
66
|
"name": "LogAccessRoleStateSet",
|
109
67
|
"type": "event"
|
110
68
|
},
|
111
|
-
{
|
112
|
-
"anonymous": false,
|
113
|
-
"inputs": [
|
114
|
-
{
|
115
|
-
"indexed": false,
|
116
|
-
"internalType": "NftId",
|
117
|
-
"name": "nftId",
|
118
|
-
"type": "uint96"
|
119
|
-
},
|
120
|
-
{
|
121
|
-
"indexed": false,
|
122
|
-
"internalType": "StateId",
|
123
|
-
"name": "fromStateId",
|
124
|
-
"type": "uint8"
|
125
|
-
},
|
126
|
-
{
|
127
|
-
"indexed": false,
|
128
|
-
"internalType": "StateId",
|
129
|
-
"name": "toStateId",
|
130
|
-
"type": "uint8"
|
131
|
-
}
|
132
|
-
],
|
133
|
-
"name": "LogBundleStateChanged",
|
134
|
-
"type": "event"
|
135
|
-
},
|
136
|
-
{
|
137
|
-
"anonymous": false,
|
138
|
-
"inputs": [
|
139
|
-
{
|
140
|
-
"indexed": false,
|
141
|
-
"internalType": "NftId",
|
142
|
-
"name": "nftId",
|
143
|
-
"type": "uint96"
|
144
|
-
},
|
145
|
-
{
|
146
|
-
"indexed": false,
|
147
|
-
"internalType": "ObjectType",
|
148
|
-
"name": "objectType",
|
149
|
-
"type": "uint8"
|
150
|
-
},
|
151
|
-
{
|
152
|
-
"indexed": false,
|
153
|
-
"internalType": "StateId",
|
154
|
-
"name": "fromStateId",
|
155
|
-
"type": "uint8"
|
156
|
-
},
|
157
|
-
{
|
158
|
-
"indexed": false,
|
159
|
-
"internalType": "StateId",
|
160
|
-
"name": "toStateId",
|
161
|
-
"type": "uint8"
|
162
|
-
}
|
163
|
-
],
|
164
|
-
"name": "LogComponentStateChanged",
|
165
|
-
"type": "event"
|
166
|
-
},
|
167
|
-
{
|
168
|
-
"anonymous": false,
|
169
|
-
"inputs": [
|
170
|
-
{
|
171
|
-
"indexed": false,
|
172
|
-
"internalType": "NftId",
|
173
|
-
"name": "nftId",
|
174
|
-
"type": "uint96"
|
175
|
-
},
|
176
|
-
{
|
177
|
-
"indexed": false,
|
178
|
-
"internalType": "StateId",
|
179
|
-
"name": "fromStateId",
|
180
|
-
"type": "uint8"
|
181
|
-
},
|
182
|
-
{
|
183
|
-
"indexed": false,
|
184
|
-
"internalType": "StateId",
|
185
|
-
"name": "toStateId",
|
186
|
-
"type": "uint8"
|
187
|
-
}
|
188
|
-
],
|
189
|
-
"name": "LogPolicyStateChanged",
|
190
|
-
"type": "event"
|
191
|
-
},
|
192
69
|
{
|
193
70
|
"anonymous": false,
|
194
71
|
"inputs": [
|
@@ -214,24 +91,6 @@
|
|
214
91
|
"name": "LogVersionableActivated",
|
215
92
|
"type": "event"
|
216
93
|
},
|
217
|
-
{
|
218
|
-
"inputs": [
|
219
|
-
{
|
220
|
-
"internalType": "address",
|
221
|
-
"name": "implementation",
|
222
|
-
"type": "address"
|
223
|
-
},
|
224
|
-
{
|
225
|
-
"internalType": "address",
|
226
|
-
"name": "activatedBy",
|
227
|
-
"type": "address"
|
228
|
-
}
|
229
|
-
],
|
230
|
-
"name": "activate",
|
231
|
-
"outputs": [],
|
232
|
-
"stateMutability": "nonpayable",
|
233
|
-
"type": "function"
|
234
|
-
},
|
235
94
|
{
|
236
95
|
"inputs": [
|
237
96
|
{
|
@@ -323,22 +182,34 @@
|
|
323
182
|
"inputs": [
|
324
183
|
{
|
325
184
|
"internalType": "NftId",
|
326
|
-
"name": "
|
185
|
+
"name": "bundleNftId",
|
327
186
|
"type": "uint96"
|
328
187
|
},
|
329
188
|
{
|
330
189
|
"internalType": "NftId",
|
331
|
-
"name": "
|
190
|
+
"name": "poolNftId",
|
332
191
|
"type": "uint96"
|
333
192
|
},
|
334
193
|
{
|
335
|
-
"
|
336
|
-
|
337
|
-
|
194
|
+
"components": [
|
195
|
+
{
|
196
|
+
"internalType": "UFixed",
|
197
|
+
"name": "fractionalFee",
|
198
|
+
"type": "uint256"
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"internalType": "uint256",
|
202
|
+
"name": "fixedFee",
|
203
|
+
"type": "uint256"
|
204
|
+
}
|
205
|
+
],
|
206
|
+
"internalType": "struct Fee",
|
207
|
+
"name": "fee",
|
208
|
+
"type": "tuple"
|
338
209
|
},
|
339
210
|
{
|
340
211
|
"internalType": "uint256",
|
341
|
-
"name": "
|
212
|
+
"name": "amount",
|
342
213
|
"type": "uint256"
|
343
214
|
},
|
344
215
|
{
|
@@ -347,12 +218,12 @@
|
|
347
218
|
"type": "uint256"
|
348
219
|
},
|
349
220
|
{
|
350
|
-
"internalType": "
|
351
|
-
"name": "
|
352
|
-
"type": "
|
221
|
+
"internalType": "bytes",
|
222
|
+
"name": "filter",
|
223
|
+
"type": "bytes"
|
353
224
|
}
|
354
225
|
],
|
355
|
-
"name": "
|
226
|
+
"name": "createBundleInfo",
|
356
227
|
"outputs": [],
|
357
228
|
"stateMutability": "nonpayable",
|
358
229
|
"type": "function"
|
@@ -361,17 +232,32 @@
|
|
361
232
|
"inputs": [
|
362
233
|
{
|
363
234
|
"internalType": "NftId",
|
364
|
-
"name": "
|
235
|
+
"name": "policyNftId",
|
365
236
|
"type": "uint96"
|
366
237
|
},
|
367
238
|
{
|
368
239
|
"internalType": "NftId",
|
369
|
-
"name": "
|
240
|
+
"name": "productNftId",
|
370
241
|
"type": "uint96"
|
371
242
|
},
|
243
|
+
{
|
244
|
+
"internalType": "ReferralId",
|
245
|
+
"name": "referralId",
|
246
|
+
"type": "bytes8"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"internalType": "RiskId",
|
250
|
+
"name": "riskId",
|
251
|
+
"type": "bytes8"
|
252
|
+
},
|
372
253
|
{
|
373
254
|
"internalType": "uint256",
|
374
|
-
"name": "
|
255
|
+
"name": "sumInsuredAmount",
|
256
|
+
"type": "uint256"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"internalType": "uint256",
|
260
|
+
"name": "premiumAmount",
|
375
261
|
"type": "uint256"
|
376
262
|
},
|
377
263
|
{
|
@@ -379,13 +265,36 @@
|
|
379
265
|
"name": "lifetime",
|
380
266
|
"type": "uint256"
|
381
267
|
},
|
268
|
+
{
|
269
|
+
"internalType": "NftId",
|
270
|
+
"name": "bundleNftId",
|
271
|
+
"type": "uint96"
|
272
|
+
}
|
273
|
+
],
|
274
|
+
"name": "createPolicyInfo",
|
275
|
+
"outputs": [],
|
276
|
+
"stateMutability": "nonpayable",
|
277
|
+
"type": "function"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"inputs": [
|
281
|
+
{
|
282
|
+
"internalType": "RiskId",
|
283
|
+
"name": "riskId",
|
284
|
+
"type": "bytes8"
|
285
|
+
},
|
286
|
+
{
|
287
|
+
"internalType": "NftId",
|
288
|
+
"name": "productNftId",
|
289
|
+
"type": "uint96"
|
290
|
+
},
|
382
291
|
{
|
383
292
|
"internalType": "bytes",
|
384
|
-
"name": "
|
293
|
+
"name": "data",
|
385
294
|
"type": "bytes"
|
386
295
|
}
|
387
296
|
],
|
388
|
-
"name": "
|
297
|
+
"name": "createRisk",
|
389
298
|
"outputs": [],
|
390
299
|
"stateMutability": "nonpayable",
|
391
300
|
"type": "function"
|
@@ -432,7 +341,7 @@
|
|
432
341
|
"inputs": [
|
433
342
|
{
|
434
343
|
"internalType": "NftId",
|
435
|
-
"name": "
|
344
|
+
"name": "nftId",
|
436
345
|
"type": "uint96"
|
437
346
|
}
|
438
347
|
],
|
@@ -440,20 +349,27 @@
|
|
440
349
|
"outputs": [
|
441
350
|
{
|
442
351
|
"components": [
|
443
|
-
{
|
444
|
-
"internalType": "NftId",
|
445
|
-
"name": "nftId",
|
446
|
-
"type": "uint96"
|
447
|
-
},
|
448
352
|
{
|
449
353
|
"internalType": "NftId",
|
450
354
|
"name": "poolNftId",
|
451
355
|
"type": "uint96"
|
452
356
|
},
|
453
357
|
{
|
454
|
-
"
|
455
|
-
|
456
|
-
|
358
|
+
"components": [
|
359
|
+
{
|
360
|
+
"internalType": "UFixed",
|
361
|
+
"name": "fractionalFee",
|
362
|
+
"type": "uint256"
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"internalType": "uint256",
|
366
|
+
"name": "fixedFee",
|
367
|
+
"type": "uint256"
|
368
|
+
}
|
369
|
+
],
|
370
|
+
"internalType": "struct Fee",
|
371
|
+
"name": "fee",
|
372
|
+
"type": "tuple"
|
457
373
|
},
|
458
374
|
{
|
459
375
|
"internalType": "bytes",
|
@@ -475,11 +391,6 @@
|
|
475
391
|
"name": "balanceAmount",
|
476
392
|
"type": "uint256"
|
477
393
|
},
|
478
|
-
{
|
479
|
-
"internalType": "Timestamp",
|
480
|
-
"name": "createdAt",
|
481
|
-
"type": "uint40"
|
482
|
-
},
|
483
394
|
{
|
484
395
|
"internalType": "Timestamp",
|
485
396
|
"name": "expiredAt",
|
@@ -489,11 +400,6 @@
|
|
489
400
|
"internalType": "Timestamp",
|
490
401
|
"name": "closedAt",
|
491
402
|
"type": "uint40"
|
492
|
-
},
|
493
|
-
{
|
494
|
-
"internalType": "Blocknumber",
|
495
|
-
"name": "updatedIn",
|
496
|
-
"type": "uint32"
|
497
403
|
}
|
498
404
|
],
|
499
405
|
"internalType": "struct IBundle.BundleInfo",
|
@@ -560,6 +466,19 @@
|
|
560
466
|
"stateMutability": "view",
|
561
467
|
"type": "function"
|
562
468
|
},
|
469
|
+
{
|
470
|
+
"inputs": [],
|
471
|
+
"name": "getComponentOwnerService",
|
472
|
+
"outputs": [
|
473
|
+
{
|
474
|
+
"internalType": "contract IComponentOwnerService",
|
475
|
+
"name": "",
|
476
|
+
"type": "address"
|
477
|
+
}
|
478
|
+
],
|
479
|
+
"stateMutability": "view",
|
480
|
+
"type": "function"
|
481
|
+
},
|
563
482
|
{
|
564
483
|
"inputs": [
|
565
484
|
{
|
@@ -568,41 +487,30 @@
|
|
568
487
|
"type": "uint96"
|
569
488
|
}
|
570
489
|
],
|
571
|
-
"name": "
|
490
|
+
"name": "getComponentToken",
|
572
491
|
"outputs": [
|
573
492
|
{
|
574
|
-
"
|
575
|
-
|
576
|
-
|
577
|
-
"name": "nftId",
|
578
|
-
"type": "uint96"
|
579
|
-
},
|
580
|
-
{
|
581
|
-
"internalType": "StateId",
|
582
|
-
"name": "state",
|
583
|
-
"type": "uint8"
|
584
|
-
},
|
585
|
-
{
|
586
|
-
"internalType": "contract IERC20Metadata",
|
587
|
-
"name": "token",
|
588
|
-
"type": "address"
|
589
|
-
}
|
590
|
-
],
|
591
|
-
"internalType": "struct IComponent.ComponentInfo",
|
592
|
-
"name": "info",
|
593
|
-
"type": "tuple"
|
493
|
+
"internalType": "contract IERC20Metadata",
|
494
|
+
"name": "token",
|
495
|
+
"type": "address"
|
594
496
|
}
|
595
497
|
],
|
596
498
|
"stateMutability": "view",
|
597
499
|
"type": "function"
|
598
500
|
},
|
599
501
|
{
|
600
|
-
"inputs": [
|
601
|
-
|
502
|
+
"inputs": [
|
503
|
+
{
|
504
|
+
"internalType": "NftId",
|
505
|
+
"name": "nftId",
|
506
|
+
"type": "uint96"
|
507
|
+
}
|
508
|
+
],
|
509
|
+
"name": "getComponentWallet",
|
602
510
|
"outputs": [
|
603
511
|
{
|
604
|
-
"internalType": "
|
605
|
-
"name": "",
|
512
|
+
"internalType": "address",
|
513
|
+
"name": "wallet",
|
606
514
|
"type": "address"
|
607
515
|
}
|
608
516
|
],
|
@@ -622,6 +530,19 @@
|
|
622
530
|
"stateMutability": "view",
|
623
531
|
"type": "function"
|
624
532
|
},
|
533
|
+
{
|
534
|
+
"inputs": [],
|
535
|
+
"name": "getDistributionService",
|
536
|
+
"outputs": [
|
537
|
+
{
|
538
|
+
"internalType": "contract IDistributionService",
|
539
|
+
"name": "",
|
540
|
+
"type": "address"
|
541
|
+
}
|
542
|
+
],
|
543
|
+
"stateMutability": "view",
|
544
|
+
"type": "function"
|
545
|
+
},
|
625
546
|
{
|
626
547
|
"inputs": [
|
627
548
|
{
|
@@ -659,19 +580,26 @@
|
|
659
580
|
"type": "function"
|
660
581
|
},
|
661
582
|
{
|
662
|
-
"inputs": [
|
583
|
+
"inputs": [],
|
584
|
+
"name": "getInitializedVersion",
|
585
|
+
"outputs": [
|
663
586
|
{
|
664
|
-
"internalType": "
|
665
|
-
"name": "
|
666
|
-
"type": "
|
587
|
+
"internalType": "uint64",
|
588
|
+
"name": "",
|
589
|
+
"type": "uint64"
|
667
590
|
}
|
668
591
|
],
|
669
|
-
"
|
592
|
+
"stateMutability": "view",
|
593
|
+
"type": "function"
|
594
|
+
},
|
595
|
+
{
|
596
|
+
"inputs": [],
|
597
|
+
"name": "getKeyValueStore",
|
670
598
|
"outputs": [
|
671
599
|
{
|
672
|
-
"internalType": "
|
673
|
-
"name": "",
|
674
|
-
"type": "
|
600
|
+
"internalType": "contract IKeyValueStore",
|
601
|
+
"name": "keyValueStore",
|
602
|
+
"type": "address"
|
675
603
|
}
|
676
604
|
],
|
677
605
|
"stateMutability": "view",
|
@@ -728,11 +656,6 @@
|
|
728
656
|
"outputs": [
|
729
657
|
{
|
730
658
|
"components": [
|
731
|
-
{
|
732
|
-
"internalType": "NftId",
|
733
|
-
"name": "nftId",
|
734
|
-
"type": "uint96"
|
735
|
-
},
|
736
659
|
{
|
737
660
|
"internalType": "NftId",
|
738
661
|
"name": "productNftId",
|
@@ -743,15 +666,20 @@
|
|
743
666
|
"name": "bundleNftId",
|
744
667
|
"type": "uint96"
|
745
668
|
},
|
669
|
+
{
|
670
|
+
"internalType": "ReferralId",
|
671
|
+
"name": "referralId",
|
672
|
+
"type": "bytes8"
|
673
|
+
},
|
746
674
|
{
|
747
675
|
"internalType": "address",
|
748
676
|
"name": "beneficiary",
|
749
677
|
"type": "address"
|
750
678
|
},
|
751
679
|
{
|
752
|
-
"internalType": "
|
753
|
-
"name": "
|
754
|
-
"type": "
|
680
|
+
"internalType": "RiskId",
|
681
|
+
"name": "riskId",
|
682
|
+
"type": "bytes8"
|
755
683
|
},
|
756
684
|
{
|
757
685
|
"internalType": "uint256",
|
@@ -775,13 +703,13 @@
|
|
775
703
|
},
|
776
704
|
{
|
777
705
|
"internalType": "bytes",
|
778
|
-
"name": "
|
706
|
+
"name": "applicationData",
|
779
707
|
"type": "bytes"
|
780
708
|
},
|
781
709
|
{
|
782
|
-
"internalType": "
|
783
|
-
"name": "
|
784
|
-
"type": "
|
710
|
+
"internalType": "bytes",
|
711
|
+
"name": "policyData",
|
712
|
+
"type": "bytes"
|
785
713
|
},
|
786
714
|
{
|
787
715
|
"internalType": "Timestamp",
|
@@ -797,11 +725,6 @@
|
|
797
725
|
"internalType": "Timestamp",
|
798
726
|
"name": "closedAt",
|
799
727
|
"type": "uint40"
|
800
|
-
},
|
801
|
-
{
|
802
|
-
"internalType": "Blocknumber",
|
803
|
-
"name": "updatedIn",
|
804
|
-
"type": "uint32"
|
805
728
|
}
|
806
729
|
],
|
807
730
|
"internalType": "struct IPolicy.PolicyInfo",
|
@@ -824,11 +747,6 @@
|
|
824
747
|
"outputs": [
|
825
748
|
{
|
826
749
|
"components": [
|
827
|
-
{
|
828
|
-
"internalType": "NftId",
|
829
|
-
"name": "nftId",
|
830
|
-
"type": "uint96"
|
831
|
-
},
|
832
750
|
{
|
833
751
|
"internalType": "bool",
|
834
752
|
"name": "isVerifying",
|
@@ -865,62 +783,16 @@
|
|
865
783
|
"inputs": [
|
866
784
|
{
|
867
785
|
"internalType": "NftId",
|
868
|
-
"name": "
|
786
|
+
"name": "componentNftId",
|
869
787
|
"type": "uint96"
|
870
788
|
}
|
871
789
|
],
|
872
|
-
"name": "
|
790
|
+
"name": "getProductNftId",
|
873
791
|
"outputs": [
|
874
792
|
{
|
875
|
-
"
|
876
|
-
|
877
|
-
|
878
|
-
"name": "poolNftId",
|
879
|
-
"type": "uint96"
|
880
|
-
},
|
881
|
-
{
|
882
|
-
"internalType": "address",
|
883
|
-
"name": "wallet",
|
884
|
-
"type": "address"
|
885
|
-
},
|
886
|
-
{
|
887
|
-
"components": [
|
888
|
-
{
|
889
|
-
"internalType": "UFixed",
|
890
|
-
"name": "fractionalFee",
|
891
|
-
"type": "uint256"
|
892
|
-
},
|
893
|
-
{
|
894
|
-
"internalType": "uint256",
|
895
|
-
"name": "fixedFee",
|
896
|
-
"type": "uint256"
|
897
|
-
}
|
898
|
-
],
|
899
|
-
"internalType": "struct Fee",
|
900
|
-
"name": "stakingFee",
|
901
|
-
"type": "tuple"
|
902
|
-
},
|
903
|
-
{
|
904
|
-
"components": [
|
905
|
-
{
|
906
|
-
"internalType": "UFixed",
|
907
|
-
"name": "fractionalFee",
|
908
|
-
"type": "uint256"
|
909
|
-
},
|
910
|
-
{
|
911
|
-
"internalType": "uint256",
|
912
|
-
"name": "fixedFee",
|
913
|
-
"type": "uint256"
|
914
|
-
}
|
915
|
-
],
|
916
|
-
"internalType": "struct Fee",
|
917
|
-
"name": "performanceFee",
|
918
|
-
"type": "tuple"
|
919
|
-
}
|
920
|
-
],
|
921
|
-
"internalType": "struct ITreasury.PoolSetup",
|
922
|
-
"name": "setup",
|
923
|
-
"type": "tuple"
|
793
|
+
"internalType": "NftId",
|
794
|
+
"name": "productNftId",
|
795
|
+
"type": "uint96"
|
924
796
|
}
|
925
797
|
],
|
926
798
|
"stateMutability": "view",
|
@@ -939,15 +811,28 @@
|
|
939
811
|
"stateMutability": "view",
|
940
812
|
"type": "function"
|
941
813
|
},
|
814
|
+
{
|
815
|
+
"inputs": [],
|
816
|
+
"name": "getRegistry",
|
817
|
+
"outputs": [
|
818
|
+
{
|
819
|
+
"internalType": "contract IRegistry",
|
820
|
+
"name": "registry",
|
821
|
+
"type": "address"
|
822
|
+
}
|
823
|
+
],
|
824
|
+
"stateMutability": "view",
|
825
|
+
"type": "function"
|
826
|
+
},
|
942
827
|
{
|
943
828
|
"inputs": [
|
944
829
|
{
|
945
|
-
"internalType": "
|
946
|
-
"name": "
|
947
|
-
"type": "
|
830
|
+
"internalType": "RiskId",
|
831
|
+
"name": "riskId",
|
832
|
+
"type": "bytes8"
|
948
833
|
}
|
949
834
|
],
|
950
|
-
"name": "
|
835
|
+
"name": "getRiskInfo",
|
951
836
|
"outputs": [
|
952
837
|
{
|
953
838
|
"components": [
|
@@ -957,86 +842,19 @@
|
|
957
842
|
"type": "uint96"
|
958
843
|
},
|
959
844
|
{
|
960
|
-
"internalType": "
|
961
|
-
"name": "
|
962
|
-
"type": "
|
963
|
-
},
|
964
|
-
{
|
965
|
-
"internalType": "NftId",
|
966
|
-
"name": "poolNftId",
|
967
|
-
"type": "uint96"
|
968
|
-
},
|
969
|
-
{
|
970
|
-
"internalType": "contract IERC20Metadata",
|
971
|
-
"name": "token",
|
972
|
-
"type": "address"
|
973
|
-
},
|
974
|
-
{
|
975
|
-
"internalType": "contract TokenHandler",
|
976
|
-
"name": "tokenHandler",
|
977
|
-
"type": "address"
|
978
|
-
},
|
979
|
-
{
|
980
|
-
"internalType": "address",
|
981
|
-
"name": "wallet",
|
982
|
-
"type": "address"
|
983
|
-
},
|
984
|
-
{
|
985
|
-
"components": [
|
986
|
-
{
|
987
|
-
"internalType": "UFixed",
|
988
|
-
"name": "fractionalFee",
|
989
|
-
"type": "uint256"
|
990
|
-
},
|
991
|
-
{
|
992
|
-
"internalType": "uint256",
|
993
|
-
"name": "fixedFee",
|
994
|
-
"type": "uint256"
|
995
|
-
}
|
996
|
-
],
|
997
|
-
"internalType": "struct Fee",
|
998
|
-
"name": "policyFee",
|
999
|
-
"type": "tuple"
|
1000
|
-
},
|
1001
|
-
{
|
1002
|
-
"components": [
|
1003
|
-
{
|
1004
|
-
"internalType": "UFixed",
|
1005
|
-
"name": "fractionalFee",
|
1006
|
-
"type": "uint256"
|
1007
|
-
},
|
1008
|
-
{
|
1009
|
-
"internalType": "uint256",
|
1010
|
-
"name": "fixedFee",
|
1011
|
-
"type": "uint256"
|
1012
|
-
}
|
1013
|
-
],
|
1014
|
-
"internalType": "struct Fee",
|
1015
|
-
"name": "processingFee",
|
1016
|
-
"type": "tuple"
|
845
|
+
"internalType": "bytes",
|
846
|
+
"name": "data",
|
847
|
+
"type": "bytes"
|
1017
848
|
}
|
1018
849
|
],
|
1019
|
-
"internalType": "struct
|
1020
|
-
"name": "
|
850
|
+
"internalType": "struct IRisk.RiskInfo",
|
851
|
+
"name": "info",
|
1021
852
|
"type": "tuple"
|
1022
853
|
}
|
1023
854
|
],
|
1024
855
|
"stateMutability": "view",
|
1025
856
|
"type": "function"
|
1026
857
|
},
|
1027
|
-
{
|
1028
|
-
"inputs": [],
|
1029
|
-
"name": "getRegistry",
|
1030
|
-
"outputs": [
|
1031
|
-
{
|
1032
|
-
"internalType": "contract IRegistry",
|
1033
|
-
"name": "registry",
|
1034
|
-
"type": "address"
|
1035
|
-
}
|
1036
|
-
],
|
1037
|
-
"stateMutability": "view",
|
1038
|
-
"type": "function"
|
1039
|
-
},
|
1040
858
|
{
|
1041
859
|
"inputs": [
|
1042
860
|
{
|
@@ -1170,79 +988,236 @@
|
|
1170
988
|
{
|
1171
989
|
"inputs": [
|
1172
990
|
{
|
1173
|
-
"internalType": "
|
1174
|
-
"name": "
|
1175
|
-
"type": "
|
1176
|
-
}
|
1177
|
-
],
|
1178
|
-
"name": "getTokenHandler",
|
1179
|
-
"outputs": [
|
1180
|
-
{
|
1181
|
-
"internalType": "contract TokenHandler",
|
1182
|
-
"name": "tokenHandler",
|
1183
|
-
"type": "address"
|
991
|
+
"internalType": "Key32",
|
992
|
+
"name": "key",
|
993
|
+
"type": "bytes32"
|
1184
994
|
}
|
1185
995
|
],
|
1186
|
-
"
|
1187
|
-
"type": "function"
|
1188
|
-
},
|
1189
|
-
{
|
1190
|
-
"inputs": [],
|
1191
|
-
"name": "getType",
|
996
|
+
"name": "getState",
|
1192
997
|
"outputs": [
|
1193
998
|
{
|
1194
|
-
"internalType": "
|
1195
|
-
"name": "
|
999
|
+
"internalType": "StateId",
|
1000
|
+
"name": "state",
|
1196
1001
|
"type": "uint8"
|
1197
1002
|
}
|
1198
1003
|
],
|
1199
|
-
"stateMutability": "
|
1004
|
+
"stateMutability": "view",
|
1200
1005
|
"type": "function"
|
1201
1006
|
},
|
1202
1007
|
{
|
1203
1008
|
"inputs": [
|
1204
1009
|
{
|
1205
|
-
"internalType": "
|
1206
|
-
"name": "
|
1207
|
-
"type": "
|
1208
|
-
},
|
1209
|
-
{
|
1210
|
-
"internalType": "int8",
|
1211
|
-
"name": "exp",
|
1212
|
-
"type": "int8"
|
1010
|
+
"internalType": "NftId",
|
1011
|
+
"name": "componentNftId",
|
1012
|
+
"type": "uint96"
|
1213
1013
|
}
|
1214
1014
|
],
|
1215
|
-
"name": "
|
1015
|
+
"name": "getTokenHandler",
|
1216
1016
|
"outputs": [
|
1217
1017
|
{
|
1218
|
-
"internalType": "
|
1219
|
-
"name": "",
|
1220
|
-
"type": "
|
1018
|
+
"internalType": "contract TokenHandler",
|
1019
|
+
"name": "tokenHandler",
|
1020
|
+
"type": "address"
|
1221
1021
|
}
|
1222
1022
|
],
|
1223
|
-
"stateMutability": "
|
1023
|
+
"stateMutability": "view",
|
1224
1024
|
"type": "function"
|
1225
1025
|
},
|
1226
1026
|
{
|
1227
1027
|
"inputs": [
|
1228
1028
|
{
|
1229
|
-
"internalType": "
|
1230
|
-
"name": "
|
1231
|
-
"type": "
|
1029
|
+
"internalType": "NftId",
|
1030
|
+
"name": "productNftId",
|
1031
|
+
"type": "uint96"
|
1232
1032
|
}
|
1233
1033
|
],
|
1234
|
-
"name": "
|
1034
|
+
"name": "getTreasuryInfo",
|
1235
1035
|
"outputs": [
|
1236
1036
|
{
|
1237
|
-
"
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1037
|
+
"components": [
|
1038
|
+
{
|
1039
|
+
"internalType": "NftId",
|
1040
|
+
"name": "poolNftId",
|
1041
|
+
"type": "uint96"
|
1042
|
+
},
|
1043
|
+
{
|
1044
|
+
"internalType": "NftId",
|
1045
|
+
"name": "distributionNftId",
|
1046
|
+
"type": "uint96"
|
1047
|
+
},
|
1048
|
+
{
|
1049
|
+
"internalType": "contract IERC20Metadata",
|
1050
|
+
"name": "token",
|
1051
|
+
"type": "address"
|
1052
|
+
},
|
1053
|
+
{
|
1054
|
+
"components": [
|
1055
|
+
{
|
1056
|
+
"internalType": "UFixed",
|
1057
|
+
"name": "fractionalFee",
|
1058
|
+
"type": "uint256"
|
1059
|
+
},
|
1060
|
+
{
|
1061
|
+
"internalType": "uint256",
|
1062
|
+
"name": "fixedFee",
|
1063
|
+
"type": "uint256"
|
1064
|
+
}
|
1065
|
+
],
|
1066
|
+
"internalType": "struct Fee",
|
1067
|
+
"name": "productFee",
|
1068
|
+
"type": "tuple"
|
1069
|
+
},
|
1070
|
+
{
|
1071
|
+
"components": [
|
1072
|
+
{
|
1073
|
+
"internalType": "UFixed",
|
1074
|
+
"name": "fractionalFee",
|
1075
|
+
"type": "uint256"
|
1076
|
+
},
|
1077
|
+
{
|
1078
|
+
"internalType": "uint256",
|
1079
|
+
"name": "fixedFee",
|
1080
|
+
"type": "uint256"
|
1081
|
+
}
|
1082
|
+
],
|
1083
|
+
"internalType": "struct Fee",
|
1084
|
+
"name": "processingFee",
|
1085
|
+
"type": "tuple"
|
1086
|
+
},
|
1087
|
+
{
|
1088
|
+
"components": [
|
1089
|
+
{
|
1090
|
+
"internalType": "UFixed",
|
1091
|
+
"name": "fractionalFee",
|
1092
|
+
"type": "uint256"
|
1093
|
+
},
|
1094
|
+
{
|
1095
|
+
"internalType": "uint256",
|
1096
|
+
"name": "fixedFee",
|
1097
|
+
"type": "uint256"
|
1098
|
+
}
|
1099
|
+
],
|
1100
|
+
"internalType": "struct Fee",
|
1101
|
+
"name": "poolFee",
|
1102
|
+
"type": "tuple"
|
1103
|
+
},
|
1104
|
+
{
|
1105
|
+
"components": [
|
1106
|
+
{
|
1107
|
+
"internalType": "UFixed",
|
1108
|
+
"name": "fractionalFee",
|
1109
|
+
"type": "uint256"
|
1110
|
+
},
|
1111
|
+
{
|
1112
|
+
"internalType": "uint256",
|
1113
|
+
"name": "fixedFee",
|
1114
|
+
"type": "uint256"
|
1115
|
+
}
|
1116
|
+
],
|
1117
|
+
"internalType": "struct Fee",
|
1118
|
+
"name": "stakingFee",
|
1119
|
+
"type": "tuple"
|
1120
|
+
},
|
1121
|
+
{
|
1122
|
+
"components": [
|
1123
|
+
{
|
1124
|
+
"internalType": "UFixed",
|
1125
|
+
"name": "fractionalFee",
|
1126
|
+
"type": "uint256"
|
1127
|
+
},
|
1128
|
+
{
|
1129
|
+
"internalType": "uint256",
|
1130
|
+
"name": "fixedFee",
|
1131
|
+
"type": "uint256"
|
1132
|
+
}
|
1133
|
+
],
|
1134
|
+
"internalType": "struct Fee",
|
1135
|
+
"name": "performanceFee",
|
1136
|
+
"type": "tuple"
|
1137
|
+
},
|
1138
|
+
{
|
1139
|
+
"components": [
|
1140
|
+
{
|
1141
|
+
"internalType": "UFixed",
|
1142
|
+
"name": "fractionalFee",
|
1143
|
+
"type": "uint256"
|
1144
|
+
},
|
1145
|
+
{
|
1146
|
+
"internalType": "uint256",
|
1147
|
+
"name": "fixedFee",
|
1148
|
+
"type": "uint256"
|
1149
|
+
}
|
1150
|
+
],
|
1151
|
+
"internalType": "struct Fee",
|
1152
|
+
"name": "distributionFee",
|
1153
|
+
"type": "tuple"
|
1154
|
+
}
|
1155
|
+
],
|
1156
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1157
|
+
"name": "info",
|
1158
|
+
"type": "tuple"
|
1159
|
+
}
|
1160
|
+
],
|
1161
|
+
"stateMutability": "view",
|
1162
|
+
"type": "function"
|
1163
|
+
},
|
1164
|
+
{
|
1165
|
+
"inputs": [],
|
1166
|
+
"name": "getType",
|
1167
|
+
"outputs": [
|
1168
|
+
{
|
1169
|
+
"internalType": "ObjectType",
|
1170
|
+
"name": "objectType",
|
1171
|
+
"type": "uint8"
|
1172
|
+
}
|
1173
|
+
],
|
1174
|
+
"stateMutability": "pure",
|
1175
|
+
"type": "function"
|
1176
|
+
},
|
1177
|
+
{
|
1178
|
+
"inputs": [
|
1179
|
+
{
|
1180
|
+
"internalType": "uint256",
|
1181
|
+
"name": "a",
|
1182
|
+
"type": "uint256"
|
1183
|
+
},
|
1184
|
+
{
|
1185
|
+
"internalType": "int8",
|
1186
|
+
"name": "exp",
|
1187
|
+
"type": "int8"
|
1188
|
+
}
|
1189
|
+
],
|
1190
|
+
"name": "getUFixed",
|
1191
|
+
"outputs": [
|
1192
|
+
{
|
1193
|
+
"internalType": "UFixed",
|
1194
|
+
"name": "",
|
1195
|
+
"type": "uint256"
|
1196
|
+
}
|
1197
|
+
],
|
1198
|
+
"stateMutability": "pure",
|
1199
|
+
"type": "function"
|
1200
|
+
},
|
1201
|
+
{
|
1202
|
+
"inputs": [
|
1203
|
+
{
|
1204
|
+
"internalType": "uint256",
|
1205
|
+
"name": "a",
|
1206
|
+
"type": "uint256"
|
1207
|
+
}
|
1208
|
+
],
|
1209
|
+
"name": "getUFixed",
|
1210
|
+
"outputs": [
|
1211
|
+
{
|
1212
|
+
"internalType": "UFixed",
|
1213
|
+
"name": "",
|
1214
|
+
"type": "uint256"
|
1215
|
+
}
|
1216
|
+
],
|
1217
|
+
"stateMutability": "pure",
|
1218
|
+
"type": "function"
|
1219
|
+
},
|
1220
|
+
{
|
1246
1221
|
"inputs": [],
|
1247
1222
|
"name": "getVersion",
|
1248
1223
|
"outputs": [
|
@@ -1314,15 +1289,15 @@
|
|
1314
1289
|
"name": "activatedBy",
|
1315
1290
|
"type": "address"
|
1316
1291
|
},
|
1317
|
-
{
|
1318
|
-
"internalType": "Blocknumber",
|
1319
|
-
"name": "activatedIn",
|
1320
|
-
"type": "uint32"
|
1321
|
-
},
|
1322
1292
|
{
|
1323
1293
|
"internalType": "Timestamp",
|
1324
1294
|
"name": "activatedAt",
|
1325
1295
|
"type": "uint40"
|
1296
|
+
},
|
1297
|
+
{
|
1298
|
+
"internalType": "Blocknumber",
|
1299
|
+
"name": "activatedIn",
|
1300
|
+
"type": "uint32"
|
1326
1301
|
}
|
1327
1302
|
],
|
1328
1303
|
"internalType": "struct IVersionable.VersionInfo",
|
@@ -1355,7 +1330,7 @@
|
|
1355
1330
|
"type": "tuple"
|
1356
1331
|
}
|
1357
1332
|
],
|
1358
|
-
"stateMutability": "
|
1333
|
+
"stateMutability": "view",
|
1359
1334
|
"type": "function"
|
1360
1335
|
},
|
1361
1336
|
{
|
@@ -1393,7 +1368,7 @@
|
|
1393
1368
|
"outputs": [
|
1394
1369
|
{
|
1395
1370
|
"internalType": "bool",
|
1396
|
-
"name": "
|
1371
|
+
"name": "",
|
1397
1372
|
"type": "bool"
|
1398
1373
|
}
|
1399
1374
|
],
|
@@ -1403,16 +1378,16 @@
|
|
1403
1378
|
{
|
1404
1379
|
"inputs": [
|
1405
1380
|
{
|
1406
|
-
"internalType": "
|
1407
|
-
"name": "
|
1408
|
-
"type": "
|
1381
|
+
"internalType": "NftId",
|
1382
|
+
"name": "productNftId",
|
1383
|
+
"type": "uint96"
|
1409
1384
|
}
|
1410
1385
|
],
|
1411
|
-
"name": "
|
1386
|
+
"name": "hasTreasuryInfo",
|
1412
1387
|
"outputs": [
|
1413
1388
|
{
|
1414
1389
|
"internalType": "bool",
|
1415
|
-
"name": "",
|
1390
|
+
"name": "hasInfo",
|
1416
1391
|
"type": "bool"
|
1417
1392
|
}
|
1418
1393
|
],
|
@@ -1422,22 +1397,35 @@
|
|
1422
1397
|
{
|
1423
1398
|
"inputs": [
|
1424
1399
|
{
|
1425
|
-
"internalType": "
|
1426
|
-
"name": "
|
1427
|
-
"type": "
|
1400
|
+
"internalType": "address",
|
1401
|
+
"name": "implementation",
|
1402
|
+
"type": "address"
|
1428
1403
|
},
|
1429
1404
|
{
|
1430
|
-
"internalType": "
|
1431
|
-
"name": "
|
1432
|
-
"type": "
|
1405
|
+
"internalType": "address",
|
1406
|
+
"name": "activatedBy",
|
1407
|
+
"type": "address"
|
1433
1408
|
},
|
1434
1409
|
{
|
1435
|
-
"internalType": "
|
1436
|
-
"name": "
|
1437
|
-
"type": "
|
1410
|
+
"internalType": "bytes",
|
1411
|
+
"name": "activationData",
|
1412
|
+
"type": "bytes"
|
1413
|
+
}
|
1414
|
+
],
|
1415
|
+
"name": "initialize",
|
1416
|
+
"outputs": [],
|
1417
|
+
"stateMutability": "nonpayable",
|
1418
|
+
"type": "function"
|
1419
|
+
},
|
1420
|
+
{
|
1421
|
+
"inputs": [
|
1422
|
+
{
|
1423
|
+
"internalType": "Version",
|
1424
|
+
"name": "version",
|
1425
|
+
"type": "uint24"
|
1438
1426
|
}
|
1439
1427
|
],
|
1440
|
-
"name": "
|
1428
|
+
"name": "isActivated",
|
1441
1429
|
"outputs": [
|
1442
1430
|
{
|
1443
1431
|
"internalType": "bool",
|
@@ -1468,15 +1456,15 @@
|
|
1468
1456
|
"name": "nftId",
|
1469
1457
|
"type": "uint96"
|
1470
1458
|
},
|
1471
|
-
{
|
1472
|
-
"internalType": "ObjectType",
|
1473
|
-
"name": "objectType",
|
1474
|
-
"type": "uint8"
|
1475
|
-
},
|
1476
1459
|
{
|
1477
1460
|
"internalType": "contract IERC20Metadata",
|
1478
1461
|
"name": "token",
|
1479
1462
|
"type": "address"
|
1463
|
+
},
|
1464
|
+
{
|
1465
|
+
"internalType": "address",
|
1466
|
+
"name": "wallet",
|
1467
|
+
"type": "address"
|
1480
1468
|
}
|
1481
1469
|
],
|
1482
1470
|
"name": "registerComponent",
|
@@ -1492,61 +1480,9 @@
|
|
1492
1480
|
"type": "uint96"
|
1493
1481
|
},
|
1494
1482
|
{
|
1495
|
-
"internalType": "
|
1496
|
-
"name": "
|
1497
|
-
"type": "
|
1498
|
-
},
|
1499
|
-
{
|
1500
|
-
"components": [
|
1501
|
-
{
|
1502
|
-
"internalType": "UFixed",
|
1503
|
-
"name": "fractionalFee",
|
1504
|
-
"type": "uint256"
|
1505
|
-
},
|
1506
|
-
{
|
1507
|
-
"internalType": "uint256",
|
1508
|
-
"name": "fixedFee",
|
1509
|
-
"type": "uint256"
|
1510
|
-
}
|
1511
|
-
],
|
1512
|
-
"internalType": "struct Fee",
|
1513
|
-
"name": "stakingFee",
|
1514
|
-
"type": "tuple"
|
1515
|
-
},
|
1516
|
-
{
|
1517
|
-
"components": [
|
1518
|
-
{
|
1519
|
-
"internalType": "UFixed",
|
1520
|
-
"name": "fractionalFee",
|
1521
|
-
"type": "uint256"
|
1522
|
-
},
|
1523
|
-
{
|
1524
|
-
"internalType": "uint256",
|
1525
|
-
"name": "fixedFee",
|
1526
|
-
"type": "uint256"
|
1527
|
-
}
|
1528
|
-
],
|
1529
|
-
"internalType": "struct Fee",
|
1530
|
-
"name": "performanceFee",
|
1531
|
-
"type": "tuple"
|
1532
|
-
}
|
1533
|
-
],
|
1534
|
-
"name": "registerPool",
|
1535
|
-
"outputs": [],
|
1536
|
-
"stateMutability": "nonpayable",
|
1537
|
-
"type": "function"
|
1538
|
-
},
|
1539
|
-
{
|
1540
|
-
"inputs": [
|
1541
|
-
{
|
1542
|
-
"internalType": "NftId",
|
1543
|
-
"name": "poolNftId",
|
1544
|
-
"type": "uint96"
|
1545
|
-
},
|
1546
|
-
{
|
1547
|
-
"internalType": "bool",
|
1548
|
-
"name": "isVerifying",
|
1549
|
-
"type": "bool"
|
1483
|
+
"internalType": "bool",
|
1484
|
+
"name": "isVerifying",
|
1485
|
+
"type": "bool"
|
1550
1486
|
},
|
1551
1487
|
{
|
1552
1488
|
"internalType": "UFixed",
|
@@ -1562,66 +1498,22 @@
|
|
1562
1498
|
{
|
1563
1499
|
"inputs": [
|
1564
1500
|
{
|
1565
|
-
"internalType": "
|
1566
|
-
"name": "
|
1567
|
-
"type": "uint96"
|
1568
|
-
},
|
1569
|
-
{
|
1570
|
-
"internalType": "NftId",
|
1571
|
-
"name": "distributorNftId",
|
1572
|
-
"type": "uint96"
|
1573
|
-
},
|
1574
|
-
{
|
1575
|
-
"internalType": "NftId",
|
1576
|
-
"name": "poolNftId",
|
1577
|
-
"type": "uint96"
|
1578
|
-
},
|
1579
|
-
{
|
1580
|
-
"internalType": "contract IERC20Metadata",
|
1581
|
-
"name": "token",
|
1501
|
+
"internalType": "contract IProductComponent",
|
1502
|
+
"name": "product",
|
1582
1503
|
"type": "address"
|
1583
1504
|
},
|
1584
1505
|
{
|
1585
|
-
"internalType": "
|
1586
|
-
"name": "
|
1506
|
+
"internalType": "contract IPoolComponent",
|
1507
|
+
"name": "pool",
|
1587
1508
|
"type": "address"
|
1588
1509
|
},
|
1589
1510
|
{
|
1590
|
-
"
|
1591
|
-
|
1592
|
-
|
1593
|
-
"name": "fractionalFee",
|
1594
|
-
"type": "uint256"
|
1595
|
-
},
|
1596
|
-
{
|
1597
|
-
"internalType": "uint256",
|
1598
|
-
"name": "fixedFee",
|
1599
|
-
"type": "uint256"
|
1600
|
-
}
|
1601
|
-
],
|
1602
|
-
"internalType": "struct Fee",
|
1603
|
-
"name": "policyFee",
|
1604
|
-
"type": "tuple"
|
1605
|
-
},
|
1606
|
-
{
|
1607
|
-
"components": [
|
1608
|
-
{
|
1609
|
-
"internalType": "UFixed",
|
1610
|
-
"name": "fractionalFee",
|
1611
|
-
"type": "uint256"
|
1612
|
-
},
|
1613
|
-
{
|
1614
|
-
"internalType": "uint256",
|
1615
|
-
"name": "fixedFee",
|
1616
|
-
"type": "uint256"
|
1617
|
-
}
|
1618
|
-
],
|
1619
|
-
"internalType": "struct Fee",
|
1620
|
-
"name": "processingFee",
|
1621
|
-
"type": "tuple"
|
1511
|
+
"internalType": "contract IDistributionComponent",
|
1512
|
+
"name": "distribution",
|
1513
|
+
"type": "address"
|
1622
1514
|
}
|
1623
1515
|
],
|
1624
|
-
"name": "
|
1516
|
+
"name": "registerProductSetup",
|
1625
1517
|
"outputs": [],
|
1626
1518
|
"stateMutability": "nonpayable",
|
1627
1519
|
"type": "function"
|
@@ -1689,22 +1581,34 @@
|
|
1689
1581
|
},
|
1690
1582
|
{
|
1691
1583
|
"inputs": [
|
1584
|
+
{
|
1585
|
+
"internalType": "NftId",
|
1586
|
+
"name": "nftId",
|
1587
|
+
"type": "uint96"
|
1588
|
+
},
|
1692
1589
|
{
|
1693
1590
|
"components": [
|
1694
|
-
{
|
1695
|
-
"internalType": "NftId",
|
1696
|
-
"name": "nftId",
|
1697
|
-
"type": "uint96"
|
1698
|
-
},
|
1699
1591
|
{
|
1700
1592
|
"internalType": "NftId",
|
1701
1593
|
"name": "poolNftId",
|
1702
1594
|
"type": "uint96"
|
1703
1595
|
},
|
1704
1596
|
{
|
1705
|
-
"
|
1706
|
-
|
1707
|
-
|
1597
|
+
"components": [
|
1598
|
+
{
|
1599
|
+
"internalType": "UFixed",
|
1600
|
+
"name": "fractionalFee",
|
1601
|
+
"type": "uint256"
|
1602
|
+
},
|
1603
|
+
{
|
1604
|
+
"internalType": "uint256",
|
1605
|
+
"name": "fixedFee",
|
1606
|
+
"type": "uint256"
|
1607
|
+
}
|
1608
|
+
],
|
1609
|
+
"internalType": "struct Fee",
|
1610
|
+
"name": "fee",
|
1611
|
+
"type": "tuple"
|
1708
1612
|
},
|
1709
1613
|
{
|
1710
1614
|
"internalType": "bytes",
|
@@ -1726,11 +1630,6 @@
|
|
1726
1630
|
"name": "balanceAmount",
|
1727
1631
|
"type": "uint256"
|
1728
1632
|
},
|
1729
|
-
{
|
1730
|
-
"internalType": "Timestamp",
|
1731
|
-
"name": "createdAt",
|
1732
|
-
"type": "uint40"
|
1733
|
-
},
|
1734
1633
|
{
|
1735
1634
|
"internalType": "Timestamp",
|
1736
1635
|
"name": "expiredAt",
|
@@ -1740,11 +1639,6 @@
|
|
1740
1639
|
"internalType": "Timestamp",
|
1741
1640
|
"name": "closedAt",
|
1742
1641
|
"type": "uint40"
|
1743
|
-
},
|
1744
|
-
{
|
1745
|
-
"internalType": "Blocknumber",
|
1746
|
-
"name": "updatedIn",
|
1747
|
-
"type": "uint32"
|
1748
1642
|
}
|
1749
1643
|
],
|
1750
1644
|
"internalType": "struct IBundle.BundleInfo",
|
@@ -1759,49 +1653,13 @@
|
|
1759
1653
|
},
|
1760
1654
|
{
|
1761
1655
|
"inputs": [
|
1762
|
-
{
|
1763
|
-
"components": [
|
1764
|
-
{
|
1765
|
-
"internalType": "NftId",
|
1766
|
-
"name": "nftId",
|
1767
|
-
"type": "uint96"
|
1768
|
-
},
|
1769
|
-
{
|
1770
|
-
"internalType": "StateId",
|
1771
|
-
"name": "state",
|
1772
|
-
"type": "uint8"
|
1773
|
-
},
|
1774
|
-
{
|
1775
|
-
"internalType": "contract IERC20Metadata",
|
1776
|
-
"name": "token",
|
1777
|
-
"type": "address"
|
1778
|
-
}
|
1779
|
-
],
|
1780
|
-
"internalType": "struct IComponent.ComponentInfo",
|
1781
|
-
"name": "info",
|
1782
|
-
"type": "tuple"
|
1783
|
-
}
|
1784
|
-
],
|
1785
|
-
"name": "setComponentInfo",
|
1786
|
-
"outputs": [
|
1787
1656
|
{
|
1788
1657
|
"internalType": "NftId",
|
1789
|
-
"name": "
|
1658
|
+
"name": "policyNftId",
|
1790
1659
|
"type": "uint96"
|
1791
|
-
}
|
1792
|
-
],
|
1793
|
-
"stateMutability": "nonpayable",
|
1794
|
-
"type": "function"
|
1795
|
-
},
|
1796
|
-
{
|
1797
|
-
"inputs": [
|
1660
|
+
},
|
1798
1661
|
{
|
1799
1662
|
"components": [
|
1800
|
-
{
|
1801
|
-
"internalType": "NftId",
|
1802
|
-
"name": "nftId",
|
1803
|
-
"type": "uint96"
|
1804
|
-
},
|
1805
1663
|
{
|
1806
1664
|
"internalType": "NftId",
|
1807
1665
|
"name": "productNftId",
|
@@ -1812,15 +1670,20 @@
|
|
1812
1670
|
"name": "bundleNftId",
|
1813
1671
|
"type": "uint96"
|
1814
1672
|
},
|
1673
|
+
{
|
1674
|
+
"internalType": "ReferralId",
|
1675
|
+
"name": "referralId",
|
1676
|
+
"type": "bytes8"
|
1677
|
+
},
|
1815
1678
|
{
|
1816
1679
|
"internalType": "address",
|
1817
1680
|
"name": "beneficiary",
|
1818
1681
|
"type": "address"
|
1819
1682
|
},
|
1820
1683
|
{
|
1821
|
-
"internalType": "
|
1822
|
-
"name": "
|
1823
|
-
"type": "
|
1684
|
+
"internalType": "RiskId",
|
1685
|
+
"name": "riskId",
|
1686
|
+
"type": "bytes8"
|
1824
1687
|
},
|
1825
1688
|
{
|
1826
1689
|
"internalType": "uint256",
|
@@ -1844,13 +1707,13 @@
|
|
1844
1707
|
},
|
1845
1708
|
{
|
1846
1709
|
"internalType": "bytes",
|
1847
|
-
"name": "
|
1710
|
+
"name": "applicationData",
|
1848
1711
|
"type": "bytes"
|
1849
1712
|
},
|
1850
1713
|
{
|
1851
|
-
"internalType": "
|
1852
|
-
"name": "
|
1853
|
-
"type": "
|
1714
|
+
"internalType": "bytes",
|
1715
|
+
"name": "policyData",
|
1716
|
+
"type": "bytes"
|
1854
1717
|
},
|
1855
1718
|
{
|
1856
1719
|
"internalType": "Timestamp",
|
@@ -1866,15 +1729,10 @@
|
|
1866
1729
|
"internalType": "Timestamp",
|
1867
1730
|
"name": "closedAt",
|
1868
1731
|
"type": "uint40"
|
1869
|
-
},
|
1870
|
-
{
|
1871
|
-
"internalType": "Blocknumber",
|
1872
|
-
"name": "updatedIn",
|
1873
|
-
"type": "uint32"
|
1874
1732
|
}
|
1875
1733
|
],
|
1876
1734
|
"internalType": "struct IPolicy.PolicyInfo",
|
1877
|
-
"name": "
|
1735
|
+
"name": "info",
|
1878
1736
|
"type": "tuple"
|
1879
1737
|
}
|
1880
1738
|
],
|
@@ -1886,46 +1744,47 @@
|
|
1886
1744
|
{
|
1887
1745
|
"inputs": [
|
1888
1746
|
{
|
1889
|
-
"internalType": "
|
1890
|
-
"name": "
|
1891
|
-
"type": "
|
1747
|
+
"internalType": "RiskId",
|
1748
|
+
"name": "riskId",
|
1749
|
+
"type": "bytes8"
|
1892
1750
|
},
|
1893
1751
|
{
|
1894
1752
|
"components": [
|
1895
1753
|
{
|
1896
|
-
"internalType": "
|
1897
|
-
"name": "
|
1898
|
-
"type": "
|
1754
|
+
"internalType": "NftId",
|
1755
|
+
"name": "productNftId",
|
1756
|
+
"type": "uint96"
|
1899
1757
|
},
|
1900
1758
|
{
|
1901
|
-
"internalType": "
|
1902
|
-
"name": "
|
1903
|
-
"type": "
|
1759
|
+
"internalType": "bytes",
|
1760
|
+
"name": "data",
|
1761
|
+
"type": "bytes"
|
1904
1762
|
}
|
1905
1763
|
],
|
1906
|
-
"internalType": "struct
|
1907
|
-
"name": "
|
1764
|
+
"internalType": "struct IRisk.RiskInfo",
|
1765
|
+
"name": "info",
|
1908
1766
|
"type": "tuple"
|
1767
|
+
}
|
1768
|
+
],
|
1769
|
+
"name": "setRiskInfo",
|
1770
|
+
"outputs": [],
|
1771
|
+
"stateMutability": "nonpayable",
|
1772
|
+
"type": "function"
|
1773
|
+
},
|
1774
|
+
{
|
1775
|
+
"inputs": [
|
1776
|
+
{
|
1777
|
+
"internalType": "RoleId",
|
1778
|
+
"name": "role",
|
1779
|
+
"type": "bytes8"
|
1909
1780
|
},
|
1910
1781
|
{
|
1911
|
-
"
|
1912
|
-
|
1913
|
-
|
1914
|
-
"name": "fractionalFee",
|
1915
|
-
"type": "uint256"
|
1916
|
-
},
|
1917
|
-
{
|
1918
|
-
"internalType": "uint256",
|
1919
|
-
"name": "fixedFee",
|
1920
|
-
"type": "uint256"
|
1921
|
-
}
|
1922
|
-
],
|
1923
|
-
"internalType": "struct Fee",
|
1924
|
-
"name": "performanceFee",
|
1925
|
-
"type": "tuple"
|
1782
|
+
"internalType": "bool",
|
1783
|
+
"name": "active",
|
1784
|
+
"type": "bool"
|
1926
1785
|
}
|
1927
1786
|
],
|
1928
|
-
"name": "
|
1787
|
+
"name": "setRoleState",
|
1929
1788
|
"outputs": [],
|
1930
1789
|
"stateMutability": "nonpayable",
|
1931
1790
|
"type": "function"
|
@@ -1940,39 +1799,129 @@
|
|
1940
1799
|
{
|
1941
1800
|
"components": [
|
1942
1801
|
{
|
1943
|
-
"internalType": "
|
1944
|
-
"name": "
|
1945
|
-
"type": "
|
1802
|
+
"internalType": "NftId",
|
1803
|
+
"name": "poolNftId",
|
1804
|
+
"type": "uint96"
|
1946
1805
|
},
|
1947
1806
|
{
|
1948
|
-
"internalType": "
|
1949
|
-
"name": "
|
1950
|
-
"type": "
|
1951
|
-
}
|
1952
|
-
],
|
1953
|
-
"internalType": "struct Fee",
|
1954
|
-
"name": "policyFee",
|
1955
|
-
"type": "tuple"
|
1956
|
-
},
|
1957
|
-
{
|
1958
|
-
"components": [
|
1807
|
+
"internalType": "NftId",
|
1808
|
+
"name": "distributionNftId",
|
1809
|
+
"type": "uint96"
|
1810
|
+
},
|
1959
1811
|
{
|
1960
|
-
"internalType": "
|
1961
|
-
"name": "
|
1962
|
-
"type": "
|
1812
|
+
"internalType": "contract IERC20Metadata",
|
1813
|
+
"name": "token",
|
1814
|
+
"type": "address"
|
1963
1815
|
},
|
1964
1816
|
{
|
1965
|
-
"
|
1966
|
-
|
1967
|
-
|
1817
|
+
"components": [
|
1818
|
+
{
|
1819
|
+
"internalType": "UFixed",
|
1820
|
+
"name": "fractionalFee",
|
1821
|
+
"type": "uint256"
|
1822
|
+
},
|
1823
|
+
{
|
1824
|
+
"internalType": "uint256",
|
1825
|
+
"name": "fixedFee",
|
1826
|
+
"type": "uint256"
|
1827
|
+
}
|
1828
|
+
],
|
1829
|
+
"internalType": "struct Fee",
|
1830
|
+
"name": "productFee",
|
1831
|
+
"type": "tuple"
|
1832
|
+
},
|
1833
|
+
{
|
1834
|
+
"components": [
|
1835
|
+
{
|
1836
|
+
"internalType": "UFixed",
|
1837
|
+
"name": "fractionalFee",
|
1838
|
+
"type": "uint256"
|
1839
|
+
},
|
1840
|
+
{
|
1841
|
+
"internalType": "uint256",
|
1842
|
+
"name": "fixedFee",
|
1843
|
+
"type": "uint256"
|
1844
|
+
}
|
1845
|
+
],
|
1846
|
+
"internalType": "struct Fee",
|
1847
|
+
"name": "processingFee",
|
1848
|
+
"type": "tuple"
|
1849
|
+
},
|
1850
|
+
{
|
1851
|
+
"components": [
|
1852
|
+
{
|
1853
|
+
"internalType": "UFixed",
|
1854
|
+
"name": "fractionalFee",
|
1855
|
+
"type": "uint256"
|
1856
|
+
},
|
1857
|
+
{
|
1858
|
+
"internalType": "uint256",
|
1859
|
+
"name": "fixedFee",
|
1860
|
+
"type": "uint256"
|
1861
|
+
}
|
1862
|
+
],
|
1863
|
+
"internalType": "struct Fee",
|
1864
|
+
"name": "poolFee",
|
1865
|
+
"type": "tuple"
|
1866
|
+
},
|
1867
|
+
{
|
1868
|
+
"components": [
|
1869
|
+
{
|
1870
|
+
"internalType": "UFixed",
|
1871
|
+
"name": "fractionalFee",
|
1872
|
+
"type": "uint256"
|
1873
|
+
},
|
1874
|
+
{
|
1875
|
+
"internalType": "uint256",
|
1876
|
+
"name": "fixedFee",
|
1877
|
+
"type": "uint256"
|
1878
|
+
}
|
1879
|
+
],
|
1880
|
+
"internalType": "struct Fee",
|
1881
|
+
"name": "stakingFee",
|
1882
|
+
"type": "tuple"
|
1883
|
+
},
|
1884
|
+
{
|
1885
|
+
"components": [
|
1886
|
+
{
|
1887
|
+
"internalType": "UFixed",
|
1888
|
+
"name": "fractionalFee",
|
1889
|
+
"type": "uint256"
|
1890
|
+
},
|
1891
|
+
{
|
1892
|
+
"internalType": "uint256",
|
1893
|
+
"name": "fixedFee",
|
1894
|
+
"type": "uint256"
|
1895
|
+
}
|
1896
|
+
],
|
1897
|
+
"internalType": "struct Fee",
|
1898
|
+
"name": "performanceFee",
|
1899
|
+
"type": "tuple"
|
1900
|
+
},
|
1901
|
+
{
|
1902
|
+
"components": [
|
1903
|
+
{
|
1904
|
+
"internalType": "UFixed",
|
1905
|
+
"name": "fractionalFee",
|
1906
|
+
"type": "uint256"
|
1907
|
+
},
|
1908
|
+
{
|
1909
|
+
"internalType": "uint256",
|
1910
|
+
"name": "fixedFee",
|
1911
|
+
"type": "uint256"
|
1912
|
+
}
|
1913
|
+
],
|
1914
|
+
"internalType": "struct Fee",
|
1915
|
+
"name": "distributionFee",
|
1916
|
+
"type": "tuple"
|
1968
1917
|
}
|
1969
1918
|
],
|
1970
|
-
"internalType": "struct
|
1971
|
-
"name": "
|
1919
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1920
|
+
"name": "info",
|
1972
1921
|
"type": "tuple"
|
1973
1922
|
}
|
1974
1923
|
],
|
1975
|
-
"name": "
|
1924
|
+
"name": "setTreasuryInfo",
|
1976
1925
|
"outputs": [],
|
1977
1926
|
"stateMutability": "nonpayable",
|
1978
1927
|
"type": "function"
|
@@ -1980,17 +1929,36 @@
|
|
1980
1929
|
{
|
1981
1930
|
"inputs": [
|
1982
1931
|
{
|
1983
|
-
"internalType": "
|
1984
|
-
"name": "
|
1985
|
-
"type": "
|
1986
|
-
}
|
1932
|
+
"internalType": "bytes4",
|
1933
|
+
"name": "interfaceId",
|
1934
|
+
"type": "bytes4"
|
1935
|
+
}
|
1936
|
+
],
|
1937
|
+
"name": "supportsInterface",
|
1938
|
+
"outputs": [
|
1987
1939
|
{
|
1988
1940
|
"internalType": "bool",
|
1989
|
-
"name": "
|
1941
|
+
"name": "",
|
1990
1942
|
"type": "bool"
|
1991
1943
|
}
|
1992
1944
|
],
|
1993
|
-
"
|
1945
|
+
"stateMutability": "view",
|
1946
|
+
"type": "function"
|
1947
|
+
},
|
1948
|
+
{
|
1949
|
+
"inputs": [
|
1950
|
+
{
|
1951
|
+
"internalType": "NftId",
|
1952
|
+
"name": "nftId",
|
1953
|
+
"type": "uint96"
|
1954
|
+
},
|
1955
|
+
{
|
1956
|
+
"internalType": "StateId",
|
1957
|
+
"name": "state",
|
1958
|
+
"type": "uint8"
|
1959
|
+
}
|
1960
|
+
],
|
1961
|
+
"name": "updateBundleState",
|
1994
1962
|
"outputs": [],
|
1995
1963
|
"stateMutability": "nonpayable",
|
1996
1964
|
"type": "function"
|
@@ -1998,20 +1966,78 @@
|
|
1998
1966
|
{
|
1999
1967
|
"inputs": [
|
2000
1968
|
{
|
2001
|
-
"internalType": "
|
2002
|
-
"name": "
|
2003
|
-
"type": "
|
1969
|
+
"internalType": "NftId",
|
1970
|
+
"name": "nftId",
|
1971
|
+
"type": "uint96"
|
1972
|
+
},
|
1973
|
+
{
|
1974
|
+
"internalType": "StateId",
|
1975
|
+
"name": "state",
|
1976
|
+
"type": "uint8"
|
2004
1977
|
}
|
2005
1978
|
],
|
2006
|
-
"name": "
|
2007
|
-
"outputs": [
|
1979
|
+
"name": "updatePolicyState",
|
1980
|
+
"outputs": [],
|
1981
|
+
"stateMutability": "nonpayable",
|
1982
|
+
"type": "function"
|
1983
|
+
},
|
1984
|
+
{
|
1985
|
+
"inputs": [
|
2008
1986
|
{
|
2009
|
-
"internalType": "
|
2010
|
-
"name": "",
|
2011
|
-
"type": "
|
1987
|
+
"internalType": "RiskId",
|
1988
|
+
"name": "riskId",
|
1989
|
+
"type": "bytes8"
|
1990
|
+
},
|
1991
|
+
{
|
1992
|
+
"internalType": "StateId",
|
1993
|
+
"name": "state",
|
1994
|
+
"type": "uint8"
|
2012
1995
|
}
|
2013
1996
|
],
|
2014
|
-
"
|
1997
|
+
"name": "updateRiskState",
|
1998
|
+
"outputs": [],
|
1999
|
+
"stateMutability": "nonpayable",
|
2000
|
+
"type": "function"
|
2001
|
+
},
|
2002
|
+
{
|
2003
|
+
"inputs": [
|
2004
|
+
{
|
2005
|
+
"internalType": "Key32",
|
2006
|
+
"name": "key",
|
2007
|
+
"type": "bytes32"
|
2008
|
+
},
|
2009
|
+
{
|
2010
|
+
"internalType": "StateId",
|
2011
|
+
"name": "state",
|
2012
|
+
"type": "uint8"
|
2013
|
+
}
|
2014
|
+
],
|
2015
|
+
"name": "updateState",
|
2016
|
+
"outputs": [],
|
2017
|
+
"stateMutability": "nonpayable",
|
2018
|
+
"type": "function"
|
2019
|
+
},
|
2020
|
+
{
|
2021
|
+
"inputs": [
|
2022
|
+
{
|
2023
|
+
"internalType": "address",
|
2024
|
+
"name": "implementation",
|
2025
|
+
"type": "address"
|
2026
|
+
},
|
2027
|
+
{
|
2028
|
+
"internalType": "address",
|
2029
|
+
"name": "activatedBy",
|
2030
|
+
"type": "address"
|
2031
|
+
},
|
2032
|
+
{
|
2033
|
+
"internalType": "bytes",
|
2034
|
+
"name": "upgradeData",
|
2035
|
+
"type": "bytes"
|
2036
|
+
}
|
2037
|
+
],
|
2038
|
+
"name": "upgrade",
|
2039
|
+
"outputs": [],
|
2040
|
+
"stateMutability": "nonpayable",
|
2015
2041
|
"type": "function"
|
2016
2042
|
}
|
2017
2043
|
],
|