@etherisc/gif-next 0.0.2-f752d2a-551 → 0.0.2-f7b8c9f-518
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +71 -0
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +166 -39
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +557 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +119 -39
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +177 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +108 -156
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +67 -139
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +417 -88
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +360 -51
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +913 -530
- 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 +1043 -556
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +224 -43
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +51 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IService.sol/IService.json +174 -53
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +263 -45
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +41 -23
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +220 -52
- 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 +55 -54
- 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 +56 -55
- 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/ICompensation.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/{compensation/ICompensation.sol/ICompensationModule.json → distribution/IDistribution.sol/IDistributionModule.json} +2 -2
- 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 -51
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +61 -51
- 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 +29 -14
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +28 -13
- 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 +326 -221
- 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 +326 -221
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +350 -79
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +630 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +176 -74
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +235 -50
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +325 -51
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +335 -53
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +466 -71
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +141 -12
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +5 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +298 -39
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +745 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +489 -120
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +997 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +468 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +557 -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 +417 -88
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +407 -56
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +267 -62
- 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 +89 -25
- 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 +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/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 +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/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 +12 -21
- package/contracts/components/Distribution.sol +155 -0
- package/contracts/components/IBaseComponent.sol +2 -2
- package/contracts/components/IDistributionComponent.sol +46 -0
- package/contracts/components/IPoolComponent.sol +15 -8
- package/contracts/components/IProductComponent.sol +26 -8
- package/contracts/components/Pool.sol +99 -27
- package/contracts/components/Product.sol +204 -22
- package/contracts/instance/IInstance.sol +12 -10
- package/contracts/instance/Instance.sol +28 -9
- package/contracts/instance/base/ComponentServiceBase.sol +13 -6
- package/contracts/instance/base/IInstanceBase.sol +11 -2
- package/contracts/instance/base/IKeyValueStore.sol +4 -3
- package/contracts/instance/base/InstanceBase.sol +19 -10
- package/contracts/instance/base/KeyValueStore.sol +12 -7
- package/contracts/instance/base/Lifecycle.sol +15 -10
- package/contracts/instance/base/ModuleBase.sol +22 -17
- package/contracts/instance/base/ServiceBase.sol +20 -13
- package/contracts/instance/module/access/Access.sol +3 -3
- package/contracts/instance/module/bundle/BundleModule.sol +10 -12
- package/contracts/instance/module/bundle/IBundle.sol +6 -11
- package/contracts/instance/module/component/ComponentModule.sol +34 -58
- package/contracts/instance/module/component/IComponent.sol +7 -32
- 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 +13 -10
- package/contracts/instance/module/policy/PolicyModule.sol +35 -20
- package/contracts/instance/module/pool/IPoolModule.sol +4 -4
- package/contracts/instance/module/pool/PoolModule.sol +23 -15
- 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 +32 -51
- package/contracts/instance/module/treasury/TokenHandler.sol +2 -2
- package/contracts/instance/module/treasury/TreasuryModule.sol +68 -89
- package/contracts/instance/service/ComponentOwnerService.sol +200 -95
- package/contracts/instance/service/DistributionService.sol +54 -0
- package/contracts/instance/service/IComponentOwnerService.sol +0 -2
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPoolService.sol +7 -0
- package/contracts/instance/service/IProductService.sol +56 -7
- package/contracts/instance/service/PoolService.sol +49 -23
- package/contracts/instance/service/ProductService.sol +248 -92
- package/contracts/registry/ChainNft.sol +43 -15
- package/contracts/registry/IChainNft.sol +3 -2
- package/contracts/registry/IRegistry.sol +42 -26
- package/contracts/registry/IRegistryService.sol +29 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +384 -274
- package/contracts/registry/RegistryService.sol +368 -0
- package/contracts/registry/RegistryServiceManager.sol +43 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +1 -1
- package/contracts/shared/INftOwnable.sol +22 -0
- package/contracts/shared/IRegisterable.sol +9 -16
- package/contracts/shared/IVersionable.sol +55 -11
- package/contracts/shared/NftOwnable.sol +136 -0
- package/contracts/shared/ProxyManager.sol +94 -0
- package/contracts/shared/Registerable.sol +62 -59
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +112 -54
- package/contracts/test/TestDistribution.sol +22 -0
- package/contracts/test/TestPool.sol +7 -2
- package/contracts/test/TestProduct.sol +37 -7
- package/contracts/test/TestRegisterable.sol +5 -6
- package/contracts/test/TestService.sol +5 -11
- package/contracts/types/Fee.sol +8 -3
- 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 +2 -2
- package/contracts/types/Version.sol +9 -0
- package/package.json +1 -1
- 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/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
- package/contracts/experiment/statemachine/README.md +0 -112
- package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
- package/contracts/instance/module/compensation/ICompensation.sol +0 -10
- package/contracts/registry/IRegistryLinked.sol +0 -8
- package/contracts/shared/IOwnable.sol +0 -6
@@ -3,6 +3,76 @@
|
|
3
3
|
"contractName": "IInstance",
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "registry",
|
11
|
+
"type": "address"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "NftId",
|
15
|
+
"name": "nftId",
|
16
|
+
"type": "uint96"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"name": "ErrorAlreadyLinked",
|
20
|
+
"type": "error"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"inputs": [
|
24
|
+
{
|
25
|
+
"internalType": "address",
|
26
|
+
"name": "contractAddress",
|
27
|
+
"type": "address"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "ErrorContractNotRegistered",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "account",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "ErrorNotOwner",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "registryAddress",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "ErrorNotRegistry",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [],
|
57
|
+
"name": "ErrorRegistryAddressZero",
|
58
|
+
"type": "error"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"inputs": [
|
62
|
+
{
|
63
|
+
"internalType": "address",
|
64
|
+
"name": "registry",
|
65
|
+
"type": "address"
|
66
|
+
}
|
67
|
+
],
|
68
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
69
|
+
"type": "error"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"inputs": [],
|
73
|
+
"name": "ErrorRegistryNotInitialized",
|
74
|
+
"type": "error"
|
75
|
+
},
|
6
76
|
{
|
7
77
|
"anonymous": false,
|
8
78
|
"inputs": [
|
@@ -88,27 +158,9 @@
|
|
88
158
|
"type": "address"
|
89
159
|
}
|
90
160
|
],
|
91
|
-
"name": "
|
161
|
+
"name": "LogVersionableInitialized",
|
92
162
|
"type": "event"
|
93
163
|
},
|
94
|
-
{
|
95
|
-
"inputs": [
|
96
|
-
{
|
97
|
-
"internalType": "address",
|
98
|
-
"name": "implementation",
|
99
|
-
"type": "address"
|
100
|
-
},
|
101
|
-
{
|
102
|
-
"internalType": "address",
|
103
|
-
"name": "activatedBy",
|
104
|
-
"type": "address"
|
105
|
-
}
|
106
|
-
],
|
107
|
-
"name": "activate",
|
108
|
-
"outputs": [],
|
109
|
-
"stateMutability": "nonpayable",
|
110
|
-
"type": "function"
|
111
|
-
},
|
112
164
|
{
|
113
165
|
"inputs": [
|
114
166
|
{
|
@@ -200,22 +252,34 @@
|
|
200
252
|
"inputs": [
|
201
253
|
{
|
202
254
|
"internalType": "NftId",
|
203
|
-
"name": "
|
255
|
+
"name": "bundleNftId",
|
204
256
|
"type": "uint96"
|
205
257
|
},
|
206
258
|
{
|
207
259
|
"internalType": "NftId",
|
208
|
-
"name": "
|
260
|
+
"name": "poolNftId",
|
209
261
|
"type": "uint96"
|
210
262
|
},
|
211
263
|
{
|
212
|
-
"
|
213
|
-
|
214
|
-
|
264
|
+
"components": [
|
265
|
+
{
|
266
|
+
"internalType": "UFixed",
|
267
|
+
"name": "fractionalFee",
|
268
|
+
"type": "uint256"
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"internalType": "uint256",
|
272
|
+
"name": "fixedFee",
|
273
|
+
"type": "uint256"
|
274
|
+
}
|
275
|
+
],
|
276
|
+
"internalType": "struct Fee",
|
277
|
+
"name": "fee",
|
278
|
+
"type": "tuple"
|
215
279
|
},
|
216
280
|
{
|
217
281
|
"internalType": "uint256",
|
218
|
-
"name": "
|
282
|
+
"name": "amount",
|
219
283
|
"type": "uint256"
|
220
284
|
},
|
221
285
|
{
|
@@ -224,12 +288,12 @@
|
|
224
288
|
"type": "uint256"
|
225
289
|
},
|
226
290
|
{
|
227
|
-
"internalType": "
|
228
|
-
"name": "
|
229
|
-
"type": "
|
291
|
+
"internalType": "bytes",
|
292
|
+
"name": "filter",
|
293
|
+
"type": "bytes"
|
230
294
|
}
|
231
295
|
],
|
232
|
-
"name": "
|
296
|
+
"name": "createBundleInfo",
|
233
297
|
"outputs": [],
|
234
298
|
"stateMutability": "nonpayable",
|
235
299
|
"type": "function"
|
@@ -238,17 +302,32 @@
|
|
238
302
|
"inputs": [
|
239
303
|
{
|
240
304
|
"internalType": "NftId",
|
241
|
-
"name": "
|
305
|
+
"name": "policyNftId",
|
242
306
|
"type": "uint96"
|
243
307
|
},
|
244
308
|
{
|
245
309
|
"internalType": "NftId",
|
246
|
-
"name": "
|
310
|
+
"name": "productNftId",
|
247
311
|
"type": "uint96"
|
248
312
|
},
|
313
|
+
{
|
314
|
+
"internalType": "ReferralId",
|
315
|
+
"name": "referralId",
|
316
|
+
"type": "bytes8"
|
317
|
+
},
|
318
|
+
{
|
319
|
+
"internalType": "RiskId",
|
320
|
+
"name": "riskId",
|
321
|
+
"type": "bytes8"
|
322
|
+
},
|
249
323
|
{
|
250
324
|
"internalType": "uint256",
|
251
|
-
"name": "
|
325
|
+
"name": "sumInsuredAmount",
|
326
|
+
"type": "uint256"
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"internalType": "uint256",
|
330
|
+
"name": "premiumAmount",
|
252
331
|
"type": "uint256"
|
253
332
|
},
|
254
333
|
{
|
@@ -256,13 +335,36 @@
|
|
256
335
|
"name": "lifetime",
|
257
336
|
"type": "uint256"
|
258
337
|
},
|
338
|
+
{
|
339
|
+
"internalType": "NftId",
|
340
|
+
"name": "bundleNftId",
|
341
|
+
"type": "uint96"
|
342
|
+
}
|
343
|
+
],
|
344
|
+
"name": "createPolicyInfo",
|
345
|
+
"outputs": [],
|
346
|
+
"stateMutability": "nonpayable",
|
347
|
+
"type": "function"
|
348
|
+
},
|
349
|
+
{
|
350
|
+
"inputs": [
|
351
|
+
{
|
352
|
+
"internalType": "RiskId",
|
353
|
+
"name": "riskId",
|
354
|
+
"type": "bytes8"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"internalType": "NftId",
|
358
|
+
"name": "productNftId",
|
359
|
+
"type": "uint96"
|
360
|
+
},
|
259
361
|
{
|
260
362
|
"internalType": "bytes",
|
261
|
-
"name": "
|
363
|
+
"name": "data",
|
262
364
|
"type": "bytes"
|
263
365
|
}
|
264
366
|
],
|
265
|
-
"name": "
|
367
|
+
"name": "createRisk",
|
266
368
|
"outputs": [],
|
267
369
|
"stateMutability": "nonpayable",
|
268
370
|
"type": "function"
|
@@ -309,7 +411,7 @@
|
|
309
411
|
"inputs": [
|
310
412
|
{
|
311
413
|
"internalType": "NftId",
|
312
|
-
"name": "
|
414
|
+
"name": "nftId",
|
313
415
|
"type": "uint96"
|
314
416
|
}
|
315
417
|
],
|
@@ -319,13 +421,25 @@
|
|
319
421
|
"components": [
|
320
422
|
{
|
321
423
|
"internalType": "NftId",
|
322
|
-
"name": "
|
424
|
+
"name": "poolNftId",
|
323
425
|
"type": "uint96"
|
324
426
|
},
|
325
427
|
{
|
326
|
-
"
|
327
|
-
|
328
|
-
|
428
|
+
"components": [
|
429
|
+
{
|
430
|
+
"internalType": "UFixed",
|
431
|
+
"name": "fractionalFee",
|
432
|
+
"type": "uint256"
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"internalType": "uint256",
|
436
|
+
"name": "fixedFee",
|
437
|
+
"type": "uint256"
|
438
|
+
}
|
439
|
+
],
|
440
|
+
"internalType": "struct Fee",
|
441
|
+
"name": "fee",
|
442
|
+
"type": "tuple"
|
329
443
|
},
|
330
444
|
{
|
331
445
|
"internalType": "bytes",
|
@@ -422,6 +536,19 @@
|
|
422
536
|
"stateMutability": "view",
|
423
537
|
"type": "function"
|
424
538
|
},
|
539
|
+
{
|
540
|
+
"inputs": [],
|
541
|
+
"name": "getComponentOwnerService",
|
542
|
+
"outputs": [
|
543
|
+
{
|
544
|
+
"internalType": "contract IComponentOwnerService",
|
545
|
+
"name": "",
|
546
|
+
"type": "address"
|
547
|
+
}
|
548
|
+
],
|
549
|
+
"stateMutability": "view",
|
550
|
+
"type": "function"
|
551
|
+
},
|
425
552
|
{
|
426
553
|
"inputs": [
|
427
554
|
{
|
@@ -430,41 +557,30 @@
|
|
430
557
|
"type": "uint96"
|
431
558
|
}
|
432
559
|
],
|
433
|
-
"name": "
|
560
|
+
"name": "getComponentToken",
|
434
561
|
"outputs": [
|
435
562
|
{
|
436
|
-
"
|
437
|
-
|
438
|
-
|
439
|
-
"name": "nftId",
|
440
|
-
"type": "uint96"
|
441
|
-
},
|
442
|
-
{
|
443
|
-
"internalType": "StateId",
|
444
|
-
"name": "state",
|
445
|
-
"type": "uint8"
|
446
|
-
},
|
447
|
-
{
|
448
|
-
"internalType": "contract IERC20Metadata",
|
449
|
-
"name": "token",
|
450
|
-
"type": "address"
|
451
|
-
}
|
452
|
-
],
|
453
|
-
"internalType": "struct IComponent.ComponentInfo",
|
454
|
-
"name": "info",
|
455
|
-
"type": "tuple"
|
563
|
+
"internalType": "contract IERC20Metadata",
|
564
|
+
"name": "token",
|
565
|
+
"type": "address"
|
456
566
|
}
|
457
567
|
],
|
458
568
|
"stateMutability": "view",
|
459
569
|
"type": "function"
|
460
570
|
},
|
461
571
|
{
|
462
|
-
"inputs": [
|
463
|
-
|
572
|
+
"inputs": [
|
573
|
+
{
|
574
|
+
"internalType": "NftId",
|
575
|
+
"name": "nftId",
|
576
|
+
"type": "uint96"
|
577
|
+
}
|
578
|
+
],
|
579
|
+
"name": "getComponentWallet",
|
464
580
|
"outputs": [
|
465
581
|
{
|
466
|
-
"internalType": "
|
467
|
-
"name": "",
|
582
|
+
"internalType": "address",
|
583
|
+
"name": "wallet",
|
468
584
|
"type": "address"
|
469
585
|
}
|
470
586
|
],
|
@@ -473,12 +589,12 @@
|
|
473
589
|
},
|
474
590
|
{
|
475
591
|
"inputs": [],
|
476
|
-
"name": "
|
592
|
+
"name": "getDistributionService",
|
477
593
|
"outputs": [
|
478
594
|
{
|
479
|
-
"internalType": "
|
480
|
-
"name": "
|
481
|
-
"type": "
|
595
|
+
"internalType": "contract IDistributionService",
|
596
|
+
"name": "",
|
597
|
+
"type": "address"
|
482
598
|
}
|
483
599
|
],
|
484
600
|
"stateMutability": "view",
|
@@ -522,12 +638,54 @@
|
|
522
638
|
},
|
523
639
|
{
|
524
640
|
"inputs": [],
|
525
|
-
"name": "
|
641
|
+
"name": "getInitialInfo",
|
526
642
|
"outputs": [
|
527
643
|
{
|
528
|
-
"
|
529
|
-
|
530
|
-
|
644
|
+
"components": [
|
645
|
+
{
|
646
|
+
"internalType": "NftId",
|
647
|
+
"name": "nftId",
|
648
|
+
"type": "uint96"
|
649
|
+
},
|
650
|
+
{
|
651
|
+
"internalType": "NftId",
|
652
|
+
"name": "parentNftId",
|
653
|
+
"type": "uint96"
|
654
|
+
},
|
655
|
+
{
|
656
|
+
"internalType": "ObjectType",
|
657
|
+
"name": "objectType",
|
658
|
+
"type": "uint8"
|
659
|
+
},
|
660
|
+
{
|
661
|
+
"internalType": "bool",
|
662
|
+
"name": "isInterceptor",
|
663
|
+
"type": "bool"
|
664
|
+
},
|
665
|
+
{
|
666
|
+
"internalType": "address",
|
667
|
+
"name": "objectAddress",
|
668
|
+
"type": "address"
|
669
|
+
},
|
670
|
+
{
|
671
|
+
"internalType": "address",
|
672
|
+
"name": "initialOwner",
|
673
|
+
"type": "address"
|
674
|
+
},
|
675
|
+
{
|
676
|
+
"internalType": "bytes",
|
677
|
+
"name": "data",
|
678
|
+
"type": "bytes"
|
679
|
+
}
|
680
|
+
],
|
681
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
682
|
+
"name": "",
|
683
|
+
"type": "tuple"
|
684
|
+
},
|
685
|
+
{
|
686
|
+
"internalType": "bytes",
|
687
|
+
"name": "data",
|
688
|
+
"type": "bytes"
|
531
689
|
}
|
532
690
|
],
|
533
691
|
"stateMutability": "view",
|
@@ -535,12 +693,12 @@
|
|
535
693
|
},
|
536
694
|
{
|
537
695
|
"inputs": [],
|
538
|
-
"name": "
|
696
|
+
"name": "getInitializedVersion",
|
539
697
|
"outputs": [
|
540
698
|
{
|
541
|
-
"internalType": "
|
542
|
-
"name": "
|
543
|
-
"type": "
|
699
|
+
"internalType": "uint64",
|
700
|
+
"name": "",
|
701
|
+
"type": "uint64"
|
544
702
|
}
|
545
703
|
],
|
546
704
|
"stateMutability": "view",
|
@@ -548,11 +706,11 @@
|
|
548
706
|
},
|
549
707
|
{
|
550
708
|
"inputs": [],
|
551
|
-
"name": "
|
709
|
+
"name": "getKeyValueStore",
|
552
710
|
"outputs": [
|
553
711
|
{
|
554
|
-
"internalType": "
|
555
|
-
"name": "
|
712
|
+
"internalType": "contract IKeyValueStore",
|
713
|
+
"name": "keyValueStore",
|
556
714
|
"type": "address"
|
557
715
|
}
|
558
716
|
],
|
@@ -561,17 +719,30 @@
|
|
561
719
|
},
|
562
720
|
{
|
563
721
|
"inputs": [],
|
564
|
-
"name": "
|
722
|
+
"name": "getNftId",
|
565
723
|
"outputs": [
|
566
724
|
{
|
567
725
|
"internalType": "NftId",
|
568
|
-
"name": "
|
726
|
+
"name": "",
|
569
727
|
"type": "uint96"
|
570
728
|
}
|
571
729
|
],
|
572
730
|
"stateMutability": "view",
|
573
731
|
"type": "function"
|
574
732
|
},
|
733
|
+
{
|
734
|
+
"inputs": [],
|
735
|
+
"name": "getOwner",
|
736
|
+
"outputs": [
|
737
|
+
{
|
738
|
+
"internalType": "address",
|
739
|
+
"name": "owner",
|
740
|
+
"type": "address"
|
741
|
+
}
|
742
|
+
],
|
743
|
+
"stateMutability": "view",
|
744
|
+
"type": "function"
|
745
|
+
},
|
575
746
|
{
|
576
747
|
"inputs": [
|
577
748
|
{
|
@@ -584,11 +755,6 @@
|
|
584
755
|
"outputs": [
|
585
756
|
{
|
586
757
|
"components": [
|
587
|
-
{
|
588
|
-
"internalType": "NftId",
|
589
|
-
"name": "nftId",
|
590
|
-
"type": "uint96"
|
591
|
-
},
|
592
758
|
{
|
593
759
|
"internalType": "NftId",
|
594
760
|
"name": "productNftId",
|
@@ -599,15 +765,20 @@
|
|
599
765
|
"name": "bundleNftId",
|
600
766
|
"type": "uint96"
|
601
767
|
},
|
768
|
+
{
|
769
|
+
"internalType": "ReferralId",
|
770
|
+
"name": "referralId",
|
771
|
+
"type": "bytes8"
|
772
|
+
},
|
602
773
|
{
|
603
774
|
"internalType": "address",
|
604
775
|
"name": "beneficiary",
|
605
776
|
"type": "address"
|
606
777
|
},
|
607
778
|
{
|
608
|
-
"internalType": "
|
609
|
-
"name": "
|
610
|
-
"type": "
|
779
|
+
"internalType": "RiskId",
|
780
|
+
"name": "riskId",
|
781
|
+
"type": "bytes8"
|
611
782
|
},
|
612
783
|
{
|
613
784
|
"internalType": "uint256",
|
@@ -631,13 +802,13 @@
|
|
631
802
|
},
|
632
803
|
{
|
633
804
|
"internalType": "bytes",
|
634
|
-
"name": "
|
805
|
+
"name": "applicationData",
|
635
806
|
"type": "bytes"
|
636
807
|
},
|
637
808
|
{
|
638
|
-
"internalType": "
|
639
|
-
"name": "
|
640
|
-
"type": "
|
809
|
+
"internalType": "bytes",
|
810
|
+
"name": "policyData",
|
811
|
+
"type": "bytes"
|
641
812
|
},
|
642
813
|
{
|
643
814
|
"internalType": "Timestamp",
|
@@ -653,11 +824,6 @@
|
|
653
824
|
"internalType": "Timestamp",
|
654
825
|
"name": "closedAt",
|
655
826
|
"type": "uint40"
|
656
|
-
},
|
657
|
-
{
|
658
|
-
"internalType": "Blocknumber",
|
659
|
-
"name": "updatedIn",
|
660
|
-
"type": "uint32"
|
661
827
|
}
|
662
828
|
],
|
663
829
|
"internalType": "struct IPolicy.PolicyInfo",
|
@@ -680,11 +846,6 @@
|
|
680
846
|
"outputs": [
|
681
847
|
{
|
682
848
|
"components": [
|
683
|
-
{
|
684
|
-
"internalType": "NftId",
|
685
|
-
"name": "nftId",
|
686
|
-
"type": "uint96"
|
687
|
-
},
|
688
849
|
{
|
689
850
|
"internalType": "bool",
|
690
851
|
"name": "isVerifying",
|
@@ -721,62 +882,16 @@
|
|
721
882
|
"inputs": [
|
722
883
|
{
|
723
884
|
"internalType": "NftId",
|
724
|
-
"name": "
|
885
|
+
"name": "componentNftId",
|
725
886
|
"type": "uint96"
|
726
887
|
}
|
727
888
|
],
|
728
|
-
"name": "
|
889
|
+
"name": "getProductNftId",
|
729
890
|
"outputs": [
|
730
891
|
{
|
731
|
-
"
|
732
|
-
|
733
|
-
|
734
|
-
"name": "poolNftId",
|
735
|
-
"type": "uint96"
|
736
|
-
},
|
737
|
-
{
|
738
|
-
"internalType": "address",
|
739
|
-
"name": "wallet",
|
740
|
-
"type": "address"
|
741
|
-
},
|
742
|
-
{
|
743
|
-
"components": [
|
744
|
-
{
|
745
|
-
"internalType": "UFixed",
|
746
|
-
"name": "fractionalFee",
|
747
|
-
"type": "uint256"
|
748
|
-
},
|
749
|
-
{
|
750
|
-
"internalType": "uint256",
|
751
|
-
"name": "fixedFee",
|
752
|
-
"type": "uint256"
|
753
|
-
}
|
754
|
-
],
|
755
|
-
"internalType": "struct Fee",
|
756
|
-
"name": "stakingFee",
|
757
|
-
"type": "tuple"
|
758
|
-
},
|
759
|
-
{
|
760
|
-
"components": [
|
761
|
-
{
|
762
|
-
"internalType": "UFixed",
|
763
|
-
"name": "fractionalFee",
|
764
|
-
"type": "uint256"
|
765
|
-
},
|
766
|
-
{
|
767
|
-
"internalType": "uint256",
|
768
|
-
"name": "fixedFee",
|
769
|
-
"type": "uint256"
|
770
|
-
}
|
771
|
-
],
|
772
|
-
"internalType": "struct Fee",
|
773
|
-
"name": "performanceFee",
|
774
|
-
"type": "tuple"
|
775
|
-
}
|
776
|
-
],
|
777
|
-
"internalType": "struct ITreasury.PoolSetup",
|
778
|
-
"name": "setup",
|
779
|
-
"type": "tuple"
|
892
|
+
"internalType": "NftId",
|
893
|
+
"name": "productNftId",
|
894
|
+
"type": "uint96"
|
780
895
|
}
|
781
896
|
],
|
782
897
|
"stateMutability": "view",
|
@@ -795,15 +910,28 @@
|
|
795
910
|
"stateMutability": "view",
|
796
911
|
"type": "function"
|
797
912
|
},
|
913
|
+
{
|
914
|
+
"inputs": [],
|
915
|
+
"name": "getRegistry",
|
916
|
+
"outputs": [
|
917
|
+
{
|
918
|
+
"internalType": "contract IRegistry",
|
919
|
+
"name": "registry",
|
920
|
+
"type": "address"
|
921
|
+
}
|
922
|
+
],
|
923
|
+
"stateMutability": "view",
|
924
|
+
"type": "function"
|
925
|
+
},
|
798
926
|
{
|
799
927
|
"inputs": [
|
800
928
|
{
|
801
|
-
"internalType": "
|
802
|
-
"name": "
|
803
|
-
"type": "
|
929
|
+
"internalType": "RiskId",
|
930
|
+
"name": "riskId",
|
931
|
+
"type": "bytes8"
|
804
932
|
}
|
805
933
|
],
|
806
|
-
"name": "
|
934
|
+
"name": "getRiskInfo",
|
807
935
|
"outputs": [
|
808
936
|
{
|
809
937
|
"components": [
|
@@ -813,81 +941,19 @@
|
|
813
941
|
"type": "uint96"
|
814
942
|
},
|
815
943
|
{
|
816
|
-
"internalType": "
|
817
|
-
"name": "
|
818
|
-
"type": "
|
819
|
-
},
|
820
|
-
{
|
821
|
-
"internalType": "NftId",
|
822
|
-
"name": "poolNftId",
|
823
|
-
"type": "uint96"
|
824
|
-
},
|
825
|
-
{
|
826
|
-
"internalType": "contract IERC20Metadata",
|
827
|
-
"name": "token",
|
828
|
-
"type": "address"
|
829
|
-
},
|
830
|
-
{
|
831
|
-
"internalType": "address",
|
832
|
-
"name": "wallet",
|
833
|
-
"type": "address"
|
834
|
-
},
|
835
|
-
{
|
836
|
-
"components": [
|
837
|
-
{
|
838
|
-
"internalType": "UFixed",
|
839
|
-
"name": "fractionalFee",
|
840
|
-
"type": "uint256"
|
841
|
-
},
|
842
|
-
{
|
843
|
-
"internalType": "uint256",
|
844
|
-
"name": "fixedFee",
|
845
|
-
"type": "uint256"
|
846
|
-
}
|
847
|
-
],
|
848
|
-
"internalType": "struct Fee",
|
849
|
-
"name": "policyFee",
|
850
|
-
"type": "tuple"
|
851
|
-
},
|
852
|
-
{
|
853
|
-
"components": [
|
854
|
-
{
|
855
|
-
"internalType": "UFixed",
|
856
|
-
"name": "fractionalFee",
|
857
|
-
"type": "uint256"
|
858
|
-
},
|
859
|
-
{
|
860
|
-
"internalType": "uint256",
|
861
|
-
"name": "fixedFee",
|
862
|
-
"type": "uint256"
|
863
|
-
}
|
864
|
-
],
|
865
|
-
"internalType": "struct Fee",
|
866
|
-
"name": "processingFee",
|
867
|
-
"type": "tuple"
|
944
|
+
"internalType": "bytes",
|
945
|
+
"name": "data",
|
946
|
+
"type": "bytes"
|
868
947
|
}
|
869
948
|
],
|
870
|
-
"internalType": "struct
|
871
|
-
"name": "
|
949
|
+
"internalType": "struct IRisk.RiskInfo",
|
950
|
+
"name": "info",
|
872
951
|
"type": "tuple"
|
873
952
|
}
|
874
953
|
],
|
875
954
|
"stateMutability": "view",
|
876
955
|
"type": "function"
|
877
956
|
},
|
878
|
-
{
|
879
|
-
"inputs": [],
|
880
|
-
"name": "getRegistry",
|
881
|
-
"outputs": [
|
882
|
-
{
|
883
|
-
"internalType": "contract IRegistry",
|
884
|
-
"name": "registry",
|
885
|
-
"type": "address"
|
886
|
-
}
|
887
|
-
],
|
888
|
-
"stateMutability": "view",
|
889
|
-
"type": "function"
|
890
|
-
},
|
891
957
|
{
|
892
958
|
"inputs": [
|
893
959
|
{
|
@@ -1021,92 +1087,236 @@
|
|
1021
1087
|
{
|
1022
1088
|
"inputs": [
|
1023
1089
|
{
|
1024
|
-
"internalType": "
|
1025
|
-
"name": "
|
1026
|
-
"type": "
|
1027
|
-
}
|
1028
|
-
],
|
1029
|
-
"name": "getTokenHandler",
|
1030
|
-
"outputs": [
|
1031
|
-
{
|
1032
|
-
"internalType": "contract TokenHandler",
|
1033
|
-
"name": "tokenHandler",
|
1034
|
-
"type": "address"
|
1090
|
+
"internalType": "Key32",
|
1091
|
+
"name": "key",
|
1092
|
+
"type": "bytes32"
|
1035
1093
|
}
|
1036
1094
|
],
|
1037
|
-
"
|
1038
|
-
"type": "function"
|
1039
|
-
},
|
1040
|
-
{
|
1041
|
-
"inputs": [],
|
1042
|
-
"name": "getType",
|
1095
|
+
"name": "getState",
|
1043
1096
|
"outputs": [
|
1044
1097
|
{
|
1045
|
-
"internalType": "
|
1046
|
-
"name": "
|
1098
|
+
"internalType": "StateId",
|
1099
|
+
"name": "state",
|
1047
1100
|
"type": "uint8"
|
1048
1101
|
}
|
1049
1102
|
],
|
1050
|
-
"stateMutability": "
|
1103
|
+
"stateMutability": "view",
|
1051
1104
|
"type": "function"
|
1052
1105
|
},
|
1053
1106
|
{
|
1054
1107
|
"inputs": [
|
1055
1108
|
{
|
1056
|
-
"internalType": "
|
1057
|
-
"name": "
|
1058
|
-
"type": "
|
1059
|
-
},
|
1060
|
-
{
|
1061
|
-
"internalType": "int8",
|
1062
|
-
"name": "exp",
|
1063
|
-
"type": "int8"
|
1109
|
+
"internalType": "NftId",
|
1110
|
+
"name": "componentNftId",
|
1111
|
+
"type": "uint96"
|
1064
1112
|
}
|
1065
1113
|
],
|
1066
|
-
"name": "
|
1114
|
+
"name": "getTokenHandler",
|
1067
1115
|
"outputs": [
|
1068
1116
|
{
|
1069
|
-
"internalType": "
|
1070
|
-
"name": "",
|
1071
|
-
"type": "
|
1117
|
+
"internalType": "contract TokenHandler",
|
1118
|
+
"name": "tokenHandler",
|
1119
|
+
"type": "address"
|
1072
1120
|
}
|
1073
1121
|
],
|
1074
|
-
"stateMutability": "
|
1122
|
+
"stateMutability": "view",
|
1075
1123
|
"type": "function"
|
1076
1124
|
},
|
1077
1125
|
{
|
1078
1126
|
"inputs": [
|
1079
1127
|
{
|
1080
|
-
"internalType": "
|
1081
|
-
"name": "
|
1082
|
-
"type": "
|
1083
|
-
}
|
1084
|
-
],
|
1085
|
-
"name": "getUFixed",
|
1086
|
-
"outputs": [
|
1087
|
-
{
|
1088
|
-
"internalType": "UFixed",
|
1089
|
-
"name": "",
|
1090
|
-
"type": "uint256"
|
1128
|
+
"internalType": "NftId",
|
1129
|
+
"name": "productNftId",
|
1130
|
+
"type": "uint96"
|
1091
1131
|
}
|
1092
1132
|
],
|
1093
|
-
"
|
1094
|
-
"type": "function"
|
1095
|
-
},
|
1096
|
-
{
|
1097
|
-
"inputs": [],
|
1098
|
-
"name": "getVersion",
|
1133
|
+
"name": "getTreasuryInfo",
|
1099
1134
|
"outputs": [
|
1100
1135
|
{
|
1101
|
-
"
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1136
|
+
"components": [
|
1137
|
+
{
|
1138
|
+
"internalType": "NftId",
|
1139
|
+
"name": "poolNftId",
|
1140
|
+
"type": "uint96"
|
1141
|
+
},
|
1142
|
+
{
|
1143
|
+
"internalType": "NftId",
|
1144
|
+
"name": "distributionNftId",
|
1145
|
+
"type": "uint96"
|
1146
|
+
},
|
1147
|
+
{
|
1148
|
+
"internalType": "contract IERC20Metadata",
|
1149
|
+
"name": "token",
|
1150
|
+
"type": "address"
|
1151
|
+
},
|
1152
|
+
{
|
1153
|
+
"components": [
|
1154
|
+
{
|
1155
|
+
"internalType": "UFixed",
|
1156
|
+
"name": "fractionalFee",
|
1157
|
+
"type": "uint256"
|
1158
|
+
},
|
1159
|
+
{
|
1160
|
+
"internalType": "uint256",
|
1161
|
+
"name": "fixedFee",
|
1162
|
+
"type": "uint256"
|
1163
|
+
}
|
1164
|
+
],
|
1165
|
+
"internalType": "struct Fee",
|
1166
|
+
"name": "productFee",
|
1167
|
+
"type": "tuple"
|
1168
|
+
},
|
1169
|
+
{
|
1170
|
+
"components": [
|
1171
|
+
{
|
1172
|
+
"internalType": "UFixed",
|
1173
|
+
"name": "fractionalFee",
|
1174
|
+
"type": "uint256"
|
1175
|
+
},
|
1176
|
+
{
|
1177
|
+
"internalType": "uint256",
|
1178
|
+
"name": "fixedFee",
|
1179
|
+
"type": "uint256"
|
1180
|
+
}
|
1181
|
+
],
|
1182
|
+
"internalType": "struct Fee",
|
1183
|
+
"name": "processingFee",
|
1184
|
+
"type": "tuple"
|
1185
|
+
},
|
1186
|
+
{
|
1187
|
+
"components": [
|
1188
|
+
{
|
1189
|
+
"internalType": "UFixed",
|
1190
|
+
"name": "fractionalFee",
|
1191
|
+
"type": "uint256"
|
1192
|
+
},
|
1193
|
+
{
|
1194
|
+
"internalType": "uint256",
|
1195
|
+
"name": "fixedFee",
|
1196
|
+
"type": "uint256"
|
1197
|
+
}
|
1198
|
+
],
|
1199
|
+
"internalType": "struct Fee",
|
1200
|
+
"name": "poolFee",
|
1201
|
+
"type": "tuple"
|
1202
|
+
},
|
1203
|
+
{
|
1204
|
+
"components": [
|
1205
|
+
{
|
1206
|
+
"internalType": "UFixed",
|
1207
|
+
"name": "fractionalFee",
|
1208
|
+
"type": "uint256"
|
1209
|
+
},
|
1210
|
+
{
|
1211
|
+
"internalType": "uint256",
|
1212
|
+
"name": "fixedFee",
|
1213
|
+
"type": "uint256"
|
1214
|
+
}
|
1215
|
+
],
|
1216
|
+
"internalType": "struct Fee",
|
1217
|
+
"name": "stakingFee",
|
1218
|
+
"type": "tuple"
|
1219
|
+
},
|
1220
|
+
{
|
1221
|
+
"components": [
|
1222
|
+
{
|
1223
|
+
"internalType": "UFixed",
|
1224
|
+
"name": "fractionalFee",
|
1225
|
+
"type": "uint256"
|
1226
|
+
},
|
1227
|
+
{
|
1228
|
+
"internalType": "uint256",
|
1229
|
+
"name": "fixedFee",
|
1230
|
+
"type": "uint256"
|
1231
|
+
}
|
1232
|
+
],
|
1233
|
+
"internalType": "struct Fee",
|
1234
|
+
"name": "performanceFee",
|
1235
|
+
"type": "tuple"
|
1236
|
+
},
|
1237
|
+
{
|
1238
|
+
"components": [
|
1239
|
+
{
|
1240
|
+
"internalType": "UFixed",
|
1241
|
+
"name": "fractionalFee",
|
1242
|
+
"type": "uint256"
|
1243
|
+
},
|
1244
|
+
{
|
1245
|
+
"internalType": "uint256",
|
1246
|
+
"name": "fixedFee",
|
1247
|
+
"type": "uint256"
|
1248
|
+
}
|
1249
|
+
],
|
1250
|
+
"internalType": "struct Fee",
|
1251
|
+
"name": "distributionFee",
|
1252
|
+
"type": "tuple"
|
1253
|
+
}
|
1254
|
+
],
|
1255
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1256
|
+
"name": "info",
|
1257
|
+
"type": "tuple"
|
1258
|
+
}
|
1259
|
+
],
|
1260
|
+
"stateMutability": "view",
|
1261
|
+
"type": "function"
|
1262
|
+
},
|
1263
|
+
{
|
1264
|
+
"inputs": [
|
1265
|
+
{
|
1266
|
+
"internalType": "uint256",
|
1267
|
+
"name": "a",
|
1268
|
+
"type": "uint256"
|
1269
|
+
},
|
1270
|
+
{
|
1271
|
+
"internalType": "int8",
|
1272
|
+
"name": "exp",
|
1273
|
+
"type": "int8"
|
1274
|
+
}
|
1275
|
+
],
|
1276
|
+
"name": "getUFixed",
|
1277
|
+
"outputs": [
|
1278
|
+
{
|
1279
|
+
"internalType": "UFixed",
|
1280
|
+
"name": "",
|
1281
|
+
"type": "uint256"
|
1282
|
+
}
|
1283
|
+
],
|
1284
|
+
"stateMutability": "pure",
|
1285
|
+
"type": "function"
|
1286
|
+
},
|
1287
|
+
{
|
1288
|
+
"inputs": [
|
1289
|
+
{
|
1290
|
+
"internalType": "uint256",
|
1291
|
+
"name": "a",
|
1292
|
+
"type": "uint256"
|
1293
|
+
}
|
1294
|
+
],
|
1295
|
+
"name": "getUFixed",
|
1296
|
+
"outputs": [
|
1297
|
+
{
|
1298
|
+
"internalType": "UFixed",
|
1299
|
+
"name": "",
|
1300
|
+
"type": "uint256"
|
1301
|
+
}
|
1302
|
+
],
|
1303
|
+
"stateMutability": "pure",
|
1304
|
+
"type": "function"
|
1305
|
+
},
|
1306
|
+
{
|
1307
|
+
"inputs": [],
|
1308
|
+
"name": "getVersion",
|
1309
|
+
"outputs": [
|
1310
|
+
{
|
1311
|
+
"internalType": "Version",
|
1312
|
+
"name": "",
|
1313
|
+
"type": "uint24"
|
1314
|
+
}
|
1315
|
+
],
|
1316
|
+
"stateMutability": "pure",
|
1317
|
+
"type": "function"
|
1318
|
+
},
|
1319
|
+
{
|
1110
1320
|
"inputs": [
|
1111
1321
|
{
|
1112
1322
|
"internalType": "uint256",
|
@@ -1206,7 +1416,7 @@
|
|
1206
1416
|
"type": "tuple"
|
1207
1417
|
}
|
1208
1418
|
],
|
1209
|
-
"stateMutability": "
|
1419
|
+
"stateMutability": "view",
|
1210
1420
|
"type": "function"
|
1211
1421
|
},
|
1212
1422
|
{
|
@@ -1244,13 +1454,55 @@
|
|
1244
1454
|
"outputs": [
|
1245
1455
|
{
|
1246
1456
|
"internalType": "bool",
|
1247
|
-
"name": "
|
1457
|
+
"name": "",
|
1458
|
+
"type": "bool"
|
1459
|
+
}
|
1460
|
+
],
|
1461
|
+
"stateMutability": "view",
|
1462
|
+
"type": "function"
|
1463
|
+
},
|
1464
|
+
{
|
1465
|
+
"inputs": [
|
1466
|
+
{
|
1467
|
+
"internalType": "NftId",
|
1468
|
+
"name": "productNftId",
|
1469
|
+
"type": "uint96"
|
1470
|
+
}
|
1471
|
+
],
|
1472
|
+
"name": "hasTreasuryInfo",
|
1473
|
+
"outputs": [
|
1474
|
+
{
|
1475
|
+
"internalType": "bool",
|
1476
|
+
"name": "hasInfo",
|
1248
1477
|
"type": "bool"
|
1249
1478
|
}
|
1250
1479
|
],
|
1251
1480
|
"stateMutability": "view",
|
1252
1481
|
"type": "function"
|
1253
1482
|
},
|
1483
|
+
{
|
1484
|
+
"inputs": [
|
1485
|
+
{
|
1486
|
+
"internalType": "address",
|
1487
|
+
"name": "implementation",
|
1488
|
+
"type": "address"
|
1489
|
+
},
|
1490
|
+
{
|
1491
|
+
"internalType": "address",
|
1492
|
+
"name": "activatedBy",
|
1493
|
+
"type": "address"
|
1494
|
+
},
|
1495
|
+
{
|
1496
|
+
"internalType": "bytes",
|
1497
|
+
"name": "activationData",
|
1498
|
+
"type": "bytes"
|
1499
|
+
}
|
1500
|
+
],
|
1501
|
+
"name": "initialize",
|
1502
|
+
"outputs": [],
|
1503
|
+
"stateMutability": "nonpayable",
|
1504
|
+
"type": "function"
|
1505
|
+
},
|
1254
1506
|
{
|
1255
1507
|
"inputs": [
|
1256
1508
|
{
|
@@ -1259,7 +1511,7 @@
|
|
1259
1511
|
"type": "uint24"
|
1260
1512
|
}
|
1261
1513
|
],
|
1262
|
-
"name": "
|
1514
|
+
"name": "isInitialized",
|
1263
1515
|
"outputs": [
|
1264
1516
|
{
|
1265
1517
|
"internalType": "bool",
|
@@ -1272,14 +1524,8 @@
|
|
1272
1524
|
},
|
1273
1525
|
{
|
1274
1526
|
"inputs": [],
|
1275
|
-
"name": "
|
1276
|
-
"outputs": [
|
1277
|
-
{
|
1278
|
-
"internalType": "NftId",
|
1279
|
-
"name": "nftId",
|
1280
|
-
"type": "uint96"
|
1281
|
-
}
|
1282
|
-
],
|
1527
|
+
"name": "linkToRegisteredNftId",
|
1528
|
+
"outputs": [],
|
1283
1529
|
"stateMutability": "nonpayable",
|
1284
1530
|
"type": "function"
|
1285
1531
|
},
|
@@ -1290,15 +1536,15 @@
|
|
1290
1536
|
"name": "nftId",
|
1291
1537
|
"type": "uint96"
|
1292
1538
|
},
|
1293
|
-
{
|
1294
|
-
"internalType": "ObjectType",
|
1295
|
-
"name": "objectType",
|
1296
|
-
"type": "uint8"
|
1297
|
-
},
|
1298
1539
|
{
|
1299
1540
|
"internalType": "contract IERC20Metadata",
|
1300
1541
|
"name": "token",
|
1301
1542
|
"type": "address"
|
1543
|
+
},
|
1544
|
+
{
|
1545
|
+
"internalType": "address",
|
1546
|
+
"name": "wallet",
|
1547
|
+
"type": "address"
|
1302
1548
|
}
|
1303
1549
|
],
|
1304
1550
|
"name": "registerComponent",
|
@@ -1310,70 +1556,25 @@
|
|
1310
1556
|
"inputs": [
|
1311
1557
|
{
|
1312
1558
|
"internalType": "NftId",
|
1313
|
-
"name": "
|
1559
|
+
"name": "nftId",
|
1314
1560
|
"type": "uint96"
|
1315
1561
|
},
|
1316
|
-
{
|
1317
|
-
"internalType": "address",
|
1318
|
-
"name": "wallet",
|
1319
|
-
"type": "address"
|
1320
|
-
},
|
1321
1562
|
{
|
1322
1563
|
"components": [
|
1323
1564
|
{
|
1324
|
-
"internalType": "
|
1325
|
-
"name": "
|
1326
|
-
"type": "
|
1565
|
+
"internalType": "bool",
|
1566
|
+
"name": "isVerifying",
|
1567
|
+
"type": "bool"
|
1327
1568
|
},
|
1328
1569
|
{
|
1329
|
-
"internalType": "
|
1330
|
-
"name": "
|
1570
|
+
"internalType": "UFixed",
|
1571
|
+
"name": "collateralizationLevel",
|
1331
1572
|
"type": "uint256"
|
1332
1573
|
}
|
1333
1574
|
],
|
1334
|
-
"internalType": "struct
|
1335
|
-
"name": "
|
1575
|
+
"internalType": "struct IPool.PoolInfo",
|
1576
|
+
"name": "info",
|
1336
1577
|
"type": "tuple"
|
1337
|
-
},
|
1338
|
-
{
|
1339
|
-
"components": [
|
1340
|
-
{
|
1341
|
-
"internalType": "UFixed",
|
1342
|
-
"name": "fractionalFee",
|
1343
|
-
"type": "uint256"
|
1344
|
-
},
|
1345
|
-
{
|
1346
|
-
"internalType": "uint256",
|
1347
|
-
"name": "fixedFee",
|
1348
|
-
"type": "uint256"
|
1349
|
-
}
|
1350
|
-
],
|
1351
|
-
"internalType": "struct Fee",
|
1352
|
-
"name": "performanceFee",
|
1353
|
-
"type": "tuple"
|
1354
|
-
}
|
1355
|
-
],
|
1356
|
-
"name": "registerPool",
|
1357
|
-
"outputs": [],
|
1358
|
-
"stateMutability": "nonpayable",
|
1359
|
-
"type": "function"
|
1360
|
-
},
|
1361
|
-
{
|
1362
|
-
"inputs": [
|
1363
|
-
{
|
1364
|
-
"internalType": "NftId",
|
1365
|
-
"name": "poolNftId",
|
1366
|
-
"type": "uint96"
|
1367
|
-
},
|
1368
|
-
{
|
1369
|
-
"internalType": "bool",
|
1370
|
-
"name": "isVerifying",
|
1371
|
-
"type": "bool"
|
1372
|
-
},
|
1373
|
-
{
|
1374
|
-
"internalType": "UFixed",
|
1375
|
-
"name": "collateralizationLevel",
|
1376
|
-
"type": "uint256"
|
1377
1578
|
}
|
1378
1579
|
],
|
1379
1580
|
"name": "registerPool",
|
@@ -1388,62 +1589,132 @@
|
|
1388
1589
|
"name": "productNftId",
|
1389
1590
|
"type": "uint96"
|
1390
1591
|
},
|
1391
|
-
{
|
1392
|
-
"internalType": "NftId",
|
1393
|
-
"name": "distributorNftId",
|
1394
|
-
"type": "uint96"
|
1395
|
-
},
|
1396
|
-
{
|
1397
|
-
"internalType": "NftId",
|
1398
|
-
"name": "poolNftId",
|
1399
|
-
"type": "uint96"
|
1400
|
-
},
|
1401
|
-
{
|
1402
|
-
"internalType": "contract IERC20Metadata",
|
1403
|
-
"name": "token",
|
1404
|
-
"type": "address"
|
1405
|
-
},
|
1406
|
-
{
|
1407
|
-
"internalType": "address",
|
1408
|
-
"name": "wallet",
|
1409
|
-
"type": "address"
|
1410
|
-
},
|
1411
1592
|
{
|
1412
1593
|
"components": [
|
1413
1594
|
{
|
1414
|
-
"internalType": "
|
1415
|
-
"name": "
|
1416
|
-
"type": "
|
1595
|
+
"internalType": "NftId",
|
1596
|
+
"name": "poolNftId",
|
1597
|
+
"type": "uint96"
|
1417
1598
|
},
|
1418
1599
|
{
|
1419
|
-
"internalType": "
|
1420
|
-
"name": "
|
1421
|
-
"type": "
|
1422
|
-
}
|
1423
|
-
],
|
1424
|
-
"internalType": "struct Fee",
|
1425
|
-
"name": "policyFee",
|
1426
|
-
"type": "tuple"
|
1427
|
-
},
|
1428
|
-
{
|
1429
|
-
"components": [
|
1600
|
+
"internalType": "NftId",
|
1601
|
+
"name": "distributionNftId",
|
1602
|
+
"type": "uint96"
|
1603
|
+
},
|
1430
1604
|
{
|
1431
|
-
"internalType": "
|
1432
|
-
"name": "
|
1433
|
-
"type": "
|
1605
|
+
"internalType": "contract IERC20Metadata",
|
1606
|
+
"name": "token",
|
1607
|
+
"type": "address"
|
1434
1608
|
},
|
1435
1609
|
{
|
1436
|
-
"
|
1437
|
-
|
1438
|
-
|
1610
|
+
"components": [
|
1611
|
+
{
|
1612
|
+
"internalType": "UFixed",
|
1613
|
+
"name": "fractionalFee",
|
1614
|
+
"type": "uint256"
|
1615
|
+
},
|
1616
|
+
{
|
1617
|
+
"internalType": "uint256",
|
1618
|
+
"name": "fixedFee",
|
1619
|
+
"type": "uint256"
|
1620
|
+
}
|
1621
|
+
],
|
1622
|
+
"internalType": "struct Fee",
|
1623
|
+
"name": "productFee",
|
1624
|
+
"type": "tuple"
|
1625
|
+
},
|
1626
|
+
{
|
1627
|
+
"components": [
|
1628
|
+
{
|
1629
|
+
"internalType": "UFixed",
|
1630
|
+
"name": "fractionalFee",
|
1631
|
+
"type": "uint256"
|
1632
|
+
},
|
1633
|
+
{
|
1634
|
+
"internalType": "uint256",
|
1635
|
+
"name": "fixedFee",
|
1636
|
+
"type": "uint256"
|
1637
|
+
}
|
1638
|
+
],
|
1639
|
+
"internalType": "struct Fee",
|
1640
|
+
"name": "processingFee",
|
1641
|
+
"type": "tuple"
|
1642
|
+
},
|
1643
|
+
{
|
1644
|
+
"components": [
|
1645
|
+
{
|
1646
|
+
"internalType": "UFixed",
|
1647
|
+
"name": "fractionalFee",
|
1648
|
+
"type": "uint256"
|
1649
|
+
},
|
1650
|
+
{
|
1651
|
+
"internalType": "uint256",
|
1652
|
+
"name": "fixedFee",
|
1653
|
+
"type": "uint256"
|
1654
|
+
}
|
1655
|
+
],
|
1656
|
+
"internalType": "struct Fee",
|
1657
|
+
"name": "poolFee",
|
1658
|
+
"type": "tuple"
|
1659
|
+
},
|
1660
|
+
{
|
1661
|
+
"components": [
|
1662
|
+
{
|
1663
|
+
"internalType": "UFixed",
|
1664
|
+
"name": "fractionalFee",
|
1665
|
+
"type": "uint256"
|
1666
|
+
},
|
1667
|
+
{
|
1668
|
+
"internalType": "uint256",
|
1669
|
+
"name": "fixedFee",
|
1670
|
+
"type": "uint256"
|
1671
|
+
}
|
1672
|
+
],
|
1673
|
+
"internalType": "struct Fee",
|
1674
|
+
"name": "stakingFee",
|
1675
|
+
"type": "tuple"
|
1676
|
+
},
|
1677
|
+
{
|
1678
|
+
"components": [
|
1679
|
+
{
|
1680
|
+
"internalType": "UFixed",
|
1681
|
+
"name": "fractionalFee",
|
1682
|
+
"type": "uint256"
|
1683
|
+
},
|
1684
|
+
{
|
1685
|
+
"internalType": "uint256",
|
1686
|
+
"name": "fixedFee",
|
1687
|
+
"type": "uint256"
|
1688
|
+
}
|
1689
|
+
],
|
1690
|
+
"internalType": "struct Fee",
|
1691
|
+
"name": "performanceFee",
|
1692
|
+
"type": "tuple"
|
1693
|
+
},
|
1694
|
+
{
|
1695
|
+
"components": [
|
1696
|
+
{
|
1697
|
+
"internalType": "UFixed",
|
1698
|
+
"name": "fractionalFee",
|
1699
|
+
"type": "uint256"
|
1700
|
+
},
|
1701
|
+
{
|
1702
|
+
"internalType": "uint256",
|
1703
|
+
"name": "fixedFee",
|
1704
|
+
"type": "uint256"
|
1705
|
+
}
|
1706
|
+
],
|
1707
|
+
"internalType": "struct Fee",
|
1708
|
+
"name": "distributionFee",
|
1709
|
+
"type": "tuple"
|
1439
1710
|
}
|
1440
1711
|
],
|
1441
|
-
"internalType": "struct
|
1442
|
-
"name": "
|
1712
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1713
|
+
"name": "info",
|
1443
1714
|
"type": "tuple"
|
1444
1715
|
}
|
1445
1716
|
],
|
1446
|
-
"name": "
|
1717
|
+
"name": "registerProductSetup",
|
1447
1718
|
"outputs": [],
|
1448
1719
|
"stateMutability": "nonpayable",
|
1449
1720
|
"type": "function"
|
@@ -1511,17 +1782,34 @@
|
|
1511
1782
|
},
|
1512
1783
|
{
|
1513
1784
|
"inputs": [
|
1785
|
+
{
|
1786
|
+
"internalType": "NftId",
|
1787
|
+
"name": "nftId",
|
1788
|
+
"type": "uint96"
|
1789
|
+
},
|
1514
1790
|
{
|
1515
1791
|
"components": [
|
1516
1792
|
{
|
1517
1793
|
"internalType": "NftId",
|
1518
|
-
"name": "
|
1794
|
+
"name": "poolNftId",
|
1519
1795
|
"type": "uint96"
|
1520
1796
|
},
|
1521
1797
|
{
|
1522
|
-
"
|
1523
|
-
|
1524
|
-
|
1798
|
+
"components": [
|
1799
|
+
{
|
1800
|
+
"internalType": "UFixed",
|
1801
|
+
"name": "fractionalFee",
|
1802
|
+
"type": "uint256"
|
1803
|
+
},
|
1804
|
+
{
|
1805
|
+
"internalType": "uint256",
|
1806
|
+
"name": "fixedFee",
|
1807
|
+
"type": "uint256"
|
1808
|
+
}
|
1809
|
+
],
|
1810
|
+
"internalType": "struct Fee",
|
1811
|
+
"name": "fee",
|
1812
|
+
"type": "tuple"
|
1525
1813
|
},
|
1526
1814
|
{
|
1527
1815
|
"internalType": "bytes",
|
@@ -1566,49 +1854,13 @@
|
|
1566
1854
|
},
|
1567
1855
|
{
|
1568
1856
|
"inputs": [
|
1569
|
-
{
|
1570
|
-
"components": [
|
1571
|
-
{
|
1572
|
-
"internalType": "NftId",
|
1573
|
-
"name": "nftId",
|
1574
|
-
"type": "uint96"
|
1575
|
-
},
|
1576
|
-
{
|
1577
|
-
"internalType": "StateId",
|
1578
|
-
"name": "state",
|
1579
|
-
"type": "uint8"
|
1580
|
-
},
|
1581
|
-
{
|
1582
|
-
"internalType": "contract IERC20Metadata",
|
1583
|
-
"name": "token",
|
1584
|
-
"type": "address"
|
1585
|
-
}
|
1586
|
-
],
|
1587
|
-
"internalType": "struct IComponent.ComponentInfo",
|
1588
|
-
"name": "info",
|
1589
|
-
"type": "tuple"
|
1590
|
-
}
|
1591
|
-
],
|
1592
|
-
"name": "setComponentInfo",
|
1593
|
-
"outputs": [
|
1594
1857
|
{
|
1595
1858
|
"internalType": "NftId",
|
1596
|
-
"name": "
|
1859
|
+
"name": "policyNftId",
|
1597
1860
|
"type": "uint96"
|
1598
|
-
}
|
1599
|
-
],
|
1600
|
-
"stateMutability": "nonpayable",
|
1601
|
-
"type": "function"
|
1602
|
-
},
|
1603
|
-
{
|
1604
|
-
"inputs": [
|
1861
|
+
},
|
1605
1862
|
{
|
1606
1863
|
"components": [
|
1607
|
-
{
|
1608
|
-
"internalType": "NftId",
|
1609
|
-
"name": "nftId",
|
1610
|
-
"type": "uint96"
|
1611
|
-
},
|
1612
1864
|
{
|
1613
1865
|
"internalType": "NftId",
|
1614
1866
|
"name": "productNftId",
|
@@ -1619,15 +1871,20 @@
|
|
1619
1871
|
"name": "bundleNftId",
|
1620
1872
|
"type": "uint96"
|
1621
1873
|
},
|
1874
|
+
{
|
1875
|
+
"internalType": "ReferralId",
|
1876
|
+
"name": "referralId",
|
1877
|
+
"type": "bytes8"
|
1878
|
+
},
|
1622
1879
|
{
|
1623
1880
|
"internalType": "address",
|
1624
1881
|
"name": "beneficiary",
|
1625
1882
|
"type": "address"
|
1626
1883
|
},
|
1627
1884
|
{
|
1628
|
-
"internalType": "
|
1629
|
-
"name": "
|
1630
|
-
"type": "
|
1885
|
+
"internalType": "RiskId",
|
1886
|
+
"name": "riskId",
|
1887
|
+
"type": "bytes8"
|
1631
1888
|
},
|
1632
1889
|
{
|
1633
1890
|
"internalType": "uint256",
|
@@ -1651,13 +1908,13 @@
|
|
1651
1908
|
},
|
1652
1909
|
{
|
1653
1910
|
"internalType": "bytes",
|
1654
|
-
"name": "
|
1911
|
+
"name": "applicationData",
|
1655
1912
|
"type": "bytes"
|
1656
1913
|
},
|
1657
1914
|
{
|
1658
|
-
"internalType": "
|
1659
|
-
"name": "
|
1660
|
-
"type": "
|
1915
|
+
"internalType": "bytes",
|
1916
|
+
"name": "policyData",
|
1917
|
+
"type": "bytes"
|
1661
1918
|
},
|
1662
1919
|
{
|
1663
1920
|
"internalType": "Timestamp",
|
@@ -1673,15 +1930,10 @@
|
|
1673
1930
|
"internalType": "Timestamp",
|
1674
1931
|
"name": "closedAt",
|
1675
1932
|
"type": "uint40"
|
1676
|
-
},
|
1677
|
-
{
|
1678
|
-
"internalType": "Blocknumber",
|
1679
|
-
"name": "updatedIn",
|
1680
|
-
"type": "uint32"
|
1681
1933
|
}
|
1682
1934
|
],
|
1683
1935
|
"internalType": "struct IPolicy.PolicyInfo",
|
1684
|
-
"name": "
|
1936
|
+
"name": "info",
|
1685
1937
|
"type": "tuple"
|
1686
1938
|
}
|
1687
1939
|
],
|
@@ -1693,46 +1945,47 @@
|
|
1693
1945
|
{
|
1694
1946
|
"inputs": [
|
1695
1947
|
{
|
1696
|
-
"internalType": "
|
1697
|
-
"name": "
|
1698
|
-
"type": "
|
1948
|
+
"internalType": "RiskId",
|
1949
|
+
"name": "riskId",
|
1950
|
+
"type": "bytes8"
|
1699
1951
|
},
|
1700
1952
|
{
|
1701
1953
|
"components": [
|
1702
1954
|
{
|
1703
|
-
"internalType": "
|
1704
|
-
"name": "
|
1705
|
-
"type": "
|
1955
|
+
"internalType": "NftId",
|
1956
|
+
"name": "productNftId",
|
1957
|
+
"type": "uint96"
|
1706
1958
|
},
|
1707
1959
|
{
|
1708
|
-
"internalType": "
|
1709
|
-
"name": "
|
1710
|
-
"type": "
|
1960
|
+
"internalType": "bytes",
|
1961
|
+
"name": "data",
|
1962
|
+
"type": "bytes"
|
1711
1963
|
}
|
1712
1964
|
],
|
1713
|
-
"internalType": "struct
|
1714
|
-
"name": "
|
1965
|
+
"internalType": "struct IRisk.RiskInfo",
|
1966
|
+
"name": "info",
|
1715
1967
|
"type": "tuple"
|
1968
|
+
}
|
1969
|
+
],
|
1970
|
+
"name": "setRiskInfo",
|
1971
|
+
"outputs": [],
|
1972
|
+
"stateMutability": "nonpayable",
|
1973
|
+
"type": "function"
|
1974
|
+
},
|
1975
|
+
{
|
1976
|
+
"inputs": [
|
1977
|
+
{
|
1978
|
+
"internalType": "RoleId",
|
1979
|
+
"name": "role",
|
1980
|
+
"type": "bytes8"
|
1716
1981
|
},
|
1717
1982
|
{
|
1718
|
-
"
|
1719
|
-
|
1720
|
-
|
1721
|
-
"name": "fractionalFee",
|
1722
|
-
"type": "uint256"
|
1723
|
-
},
|
1724
|
-
{
|
1725
|
-
"internalType": "uint256",
|
1726
|
-
"name": "fixedFee",
|
1727
|
-
"type": "uint256"
|
1728
|
-
}
|
1729
|
-
],
|
1730
|
-
"internalType": "struct Fee",
|
1731
|
-
"name": "performanceFee",
|
1732
|
-
"type": "tuple"
|
1983
|
+
"internalType": "bool",
|
1984
|
+
"name": "active",
|
1985
|
+
"type": "bool"
|
1733
1986
|
}
|
1734
1987
|
],
|
1735
|
-
"name": "
|
1988
|
+
"name": "setRoleState",
|
1736
1989
|
"outputs": [],
|
1737
1990
|
"stateMutability": "nonpayable",
|
1738
1991
|
"type": "function"
|
@@ -1747,57 +2000,129 @@
|
|
1747
2000
|
{
|
1748
2001
|
"components": [
|
1749
2002
|
{
|
1750
|
-
"internalType": "
|
1751
|
-
"name": "
|
1752
|
-
"type": "
|
2003
|
+
"internalType": "NftId",
|
2004
|
+
"name": "poolNftId",
|
2005
|
+
"type": "uint96"
|
1753
2006
|
},
|
1754
2007
|
{
|
1755
|
-
"internalType": "
|
1756
|
-
"name": "
|
1757
|
-
"type": "
|
1758
|
-
}
|
1759
|
-
],
|
1760
|
-
"internalType": "struct Fee",
|
1761
|
-
"name": "policyFee",
|
1762
|
-
"type": "tuple"
|
1763
|
-
},
|
1764
|
-
{
|
1765
|
-
"components": [
|
2008
|
+
"internalType": "NftId",
|
2009
|
+
"name": "distributionNftId",
|
2010
|
+
"type": "uint96"
|
2011
|
+
},
|
1766
2012
|
{
|
1767
|
-
"internalType": "
|
1768
|
-
"name": "
|
1769
|
-
"type": "
|
2013
|
+
"internalType": "contract IERC20Metadata",
|
2014
|
+
"name": "token",
|
2015
|
+
"type": "address"
|
1770
2016
|
},
|
1771
2017
|
{
|
1772
|
-
"
|
1773
|
-
|
1774
|
-
|
2018
|
+
"components": [
|
2019
|
+
{
|
2020
|
+
"internalType": "UFixed",
|
2021
|
+
"name": "fractionalFee",
|
2022
|
+
"type": "uint256"
|
2023
|
+
},
|
2024
|
+
{
|
2025
|
+
"internalType": "uint256",
|
2026
|
+
"name": "fixedFee",
|
2027
|
+
"type": "uint256"
|
2028
|
+
}
|
2029
|
+
],
|
2030
|
+
"internalType": "struct Fee",
|
2031
|
+
"name": "productFee",
|
2032
|
+
"type": "tuple"
|
2033
|
+
},
|
2034
|
+
{
|
2035
|
+
"components": [
|
2036
|
+
{
|
2037
|
+
"internalType": "UFixed",
|
2038
|
+
"name": "fractionalFee",
|
2039
|
+
"type": "uint256"
|
2040
|
+
},
|
2041
|
+
{
|
2042
|
+
"internalType": "uint256",
|
2043
|
+
"name": "fixedFee",
|
2044
|
+
"type": "uint256"
|
2045
|
+
}
|
2046
|
+
],
|
2047
|
+
"internalType": "struct Fee",
|
2048
|
+
"name": "processingFee",
|
2049
|
+
"type": "tuple"
|
2050
|
+
},
|
2051
|
+
{
|
2052
|
+
"components": [
|
2053
|
+
{
|
2054
|
+
"internalType": "UFixed",
|
2055
|
+
"name": "fractionalFee",
|
2056
|
+
"type": "uint256"
|
2057
|
+
},
|
2058
|
+
{
|
2059
|
+
"internalType": "uint256",
|
2060
|
+
"name": "fixedFee",
|
2061
|
+
"type": "uint256"
|
2062
|
+
}
|
2063
|
+
],
|
2064
|
+
"internalType": "struct Fee",
|
2065
|
+
"name": "poolFee",
|
2066
|
+
"type": "tuple"
|
2067
|
+
},
|
2068
|
+
{
|
2069
|
+
"components": [
|
2070
|
+
{
|
2071
|
+
"internalType": "UFixed",
|
2072
|
+
"name": "fractionalFee",
|
2073
|
+
"type": "uint256"
|
2074
|
+
},
|
2075
|
+
{
|
2076
|
+
"internalType": "uint256",
|
2077
|
+
"name": "fixedFee",
|
2078
|
+
"type": "uint256"
|
2079
|
+
}
|
2080
|
+
],
|
2081
|
+
"internalType": "struct Fee",
|
2082
|
+
"name": "stakingFee",
|
2083
|
+
"type": "tuple"
|
2084
|
+
},
|
2085
|
+
{
|
2086
|
+
"components": [
|
2087
|
+
{
|
2088
|
+
"internalType": "UFixed",
|
2089
|
+
"name": "fractionalFee",
|
2090
|
+
"type": "uint256"
|
2091
|
+
},
|
2092
|
+
{
|
2093
|
+
"internalType": "uint256",
|
2094
|
+
"name": "fixedFee",
|
2095
|
+
"type": "uint256"
|
2096
|
+
}
|
2097
|
+
],
|
2098
|
+
"internalType": "struct Fee",
|
2099
|
+
"name": "performanceFee",
|
2100
|
+
"type": "tuple"
|
2101
|
+
},
|
2102
|
+
{
|
2103
|
+
"components": [
|
2104
|
+
{
|
2105
|
+
"internalType": "UFixed",
|
2106
|
+
"name": "fractionalFee",
|
2107
|
+
"type": "uint256"
|
2108
|
+
},
|
2109
|
+
{
|
2110
|
+
"internalType": "uint256",
|
2111
|
+
"name": "fixedFee",
|
2112
|
+
"type": "uint256"
|
2113
|
+
}
|
2114
|
+
],
|
2115
|
+
"internalType": "struct Fee",
|
2116
|
+
"name": "distributionFee",
|
2117
|
+
"type": "tuple"
|
1775
2118
|
}
|
1776
2119
|
],
|
1777
|
-
"internalType": "struct
|
1778
|
-
"name": "
|
2120
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
2121
|
+
"name": "info",
|
1779
2122
|
"type": "tuple"
|
1780
2123
|
}
|
1781
2124
|
],
|
1782
|
-
"name": "
|
1783
|
-
"outputs": [],
|
1784
|
-
"stateMutability": "nonpayable",
|
1785
|
-
"type": "function"
|
1786
|
-
},
|
1787
|
-
{
|
1788
|
-
"inputs": [
|
1789
|
-
{
|
1790
|
-
"internalType": "RoleId",
|
1791
|
-
"name": "role",
|
1792
|
-
"type": "bytes8"
|
1793
|
-
},
|
1794
|
-
{
|
1795
|
-
"internalType": "bool",
|
1796
|
-
"name": "active",
|
1797
|
-
"type": "bool"
|
1798
|
-
}
|
1799
|
-
],
|
1800
|
-
"name": "setRoleState",
|
2125
|
+
"name": "setTreasuryInfo",
|
1801
2126
|
"outputs": [],
|
1802
2127
|
"stateMutability": "nonpayable",
|
1803
2128
|
"type": "function"
|
@@ -1825,26 +2150,25 @@
|
|
1825
2150
|
"inputs": [
|
1826
2151
|
{
|
1827
2152
|
"internalType": "NftId",
|
1828
|
-
"name": "
|
2153
|
+
"name": "nftId",
|
1829
2154
|
"type": "uint96"
|
1830
|
-
}
|
1831
|
-
],
|
1832
|
-
"name": "toBundleKey32",
|
1833
|
-
"outputs": [
|
2155
|
+
},
|
1834
2156
|
{
|
1835
|
-
"internalType": "
|
1836
|
-
"name": "
|
1837
|
-
"type": "
|
2157
|
+
"internalType": "StateId",
|
2158
|
+
"name": "state",
|
2159
|
+
"type": "uint8"
|
1838
2160
|
}
|
1839
2161
|
],
|
1840
|
-
"
|
2162
|
+
"name": "updateBundleState",
|
2163
|
+
"outputs": [],
|
2164
|
+
"stateMutability": "nonpayable",
|
1841
2165
|
"type": "function"
|
1842
2166
|
},
|
1843
2167
|
{
|
1844
2168
|
"inputs": [
|
1845
2169
|
{
|
1846
2170
|
"internalType": "NftId",
|
1847
|
-
"name": "
|
2171
|
+
"name": "nftId",
|
1848
2172
|
"type": "uint96"
|
1849
2173
|
},
|
1850
2174
|
{
|
@@ -1853,7 +2177,66 @@
|
|
1853
2177
|
"type": "uint8"
|
1854
2178
|
}
|
1855
2179
|
],
|
1856
|
-
"name": "
|
2180
|
+
"name": "updatePolicyState",
|
2181
|
+
"outputs": [],
|
2182
|
+
"stateMutability": "nonpayable",
|
2183
|
+
"type": "function"
|
2184
|
+
},
|
2185
|
+
{
|
2186
|
+
"inputs": [
|
2187
|
+
{
|
2188
|
+
"internalType": "RiskId",
|
2189
|
+
"name": "riskId",
|
2190
|
+
"type": "bytes8"
|
2191
|
+
},
|
2192
|
+
{
|
2193
|
+
"internalType": "StateId",
|
2194
|
+
"name": "state",
|
2195
|
+
"type": "uint8"
|
2196
|
+
}
|
2197
|
+
],
|
2198
|
+
"name": "updateRiskState",
|
2199
|
+
"outputs": [],
|
2200
|
+
"stateMutability": "nonpayable",
|
2201
|
+
"type": "function"
|
2202
|
+
},
|
2203
|
+
{
|
2204
|
+
"inputs": [
|
2205
|
+
{
|
2206
|
+
"internalType": "Key32",
|
2207
|
+
"name": "key",
|
2208
|
+
"type": "bytes32"
|
2209
|
+
},
|
2210
|
+
{
|
2211
|
+
"internalType": "StateId",
|
2212
|
+
"name": "state",
|
2213
|
+
"type": "uint8"
|
2214
|
+
}
|
2215
|
+
],
|
2216
|
+
"name": "updateState",
|
2217
|
+
"outputs": [],
|
2218
|
+
"stateMutability": "nonpayable",
|
2219
|
+
"type": "function"
|
2220
|
+
},
|
2221
|
+
{
|
2222
|
+
"inputs": [
|
2223
|
+
{
|
2224
|
+
"internalType": "address",
|
2225
|
+
"name": "implementation",
|
2226
|
+
"type": "address"
|
2227
|
+
},
|
2228
|
+
{
|
2229
|
+
"internalType": "address",
|
2230
|
+
"name": "activatedBy",
|
2231
|
+
"type": "address"
|
2232
|
+
},
|
2233
|
+
{
|
2234
|
+
"internalType": "bytes",
|
2235
|
+
"name": "upgradeData",
|
2236
|
+
"type": "bytes"
|
2237
|
+
}
|
2238
|
+
],
|
2239
|
+
"name": "upgrade",
|
1857
2240
|
"outputs": [],
|
1858
2241
|
"stateMutability": "nonpayable",
|
1859
2242
|
"type": "function"
|