@etherisc/gif-next 0.0.2-d250c72 → 0.0.2-d2fd9d7-008
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +344 -7
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/component/ComponentModule.sol/ComponentModule.json → components/BaseComponent.sol/BaseComponent.json} +156 -156
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +618 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/component/IComponent.sol/IComponentModule.json → components/IBaseComponent.sol/IBaseComponent.json} +139 -104
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +275 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +157 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +636 -36
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +544 -46
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
- 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 +4 -0
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +101 -0
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +1132 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +775 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1272 -466
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +485 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +3098 -557
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +917 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1422 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +970 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +512 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +272 -0
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +540 -0
- 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 +429 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -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/module/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/ISetup.sol/ISetup.json} +2 -2
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +10 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +827 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +716 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +444 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +466 -0
- 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 +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +728 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +760 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1049 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +464 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1147 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +488 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +429 -63
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +947 -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 +566 -77
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1293 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +517 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -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 +4 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
- 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 +4 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +201 -0
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/shared/IService.sol/IService.json +421 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
- 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 +4 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +274 -0
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/shared/Service.sol/Service.json +468 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
- 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 +4 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +305 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
- package/artifacts/contracts/test/TestService.sol/TestService.json +600 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- 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 +125 -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 +4 -0
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -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 +156 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +249 -0
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
- package/contracts/components/BaseComponent.sol +91 -0
- package/contracts/components/Distribution.sol +163 -0
- package/contracts/components/IBaseComponent.sol +25 -0
- package/contracts/components/IDistributionComponent.sol +44 -0
- package/contracts/components/IPoolComponent.sol +66 -0
- package/contracts/components/IProductComponent.sol +35 -0
- package/contracts/components/Pool.sol +256 -18
- package/contracts/components/Product.sol +258 -35
- package/contracts/experiment/cloning/Cloner.sol +47 -0
- package/contracts/experiment/errors/Require.sol +10 -5
- package/contracts/experiment/errors/Revert.sol +13 -8
- package/contracts/experiment/inheritance/A.sol +8 -11
- package/contracts/experiment/inheritance/B.sol +10 -5
- package/contracts/experiment/inheritance/C.sol +11 -5
- package/contracts/experiment/inheritance/IA.sol +2 -7
- package/contracts/experiment/inheritance/IB.sol +3 -2
- package/contracts/experiment/inheritance/IC.sol +4 -3
- package/contracts/experiment/statemachine/Dummy.sol +27 -0
- package/contracts/experiment/statemachine/ISM.sol +25 -0
- package/contracts/experiment/statemachine/SM.sol +57 -0
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
- package/contracts/experiment/types/TypeA.sol +14 -9
- package/contracts/experiment/types/TypeB.sol +14 -9
- package/contracts/instance/AccessManagedSimple.sol +115 -0
- package/contracts/instance/AccessManagerSimple.sol +692 -0
- package/contracts/instance/BundleManager.sol +129 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IAccessManagerSimple.sol +391 -0
- package/contracts/instance/IInstance.sol +51 -15
- package/contracts/instance/IInstanceService.sol +32 -0
- package/contracts/instance/Instance.sol +434 -44
- package/contracts/instance/InstanceAccessManager.sol +288 -0
- package/contracts/instance/InstanceReader.sol +315 -0
- package/contracts/instance/InstanceService.sol +232 -0
- package/contracts/instance/InstanceServiceManager.sol +57 -0
- package/contracts/instance/ObjectManager.sol +95 -0
- package/contracts/instance/base/ComponentServiceBase.sol +134 -0
- package/contracts/instance/base/IInstanceBase.sol +23 -0
- package/contracts/instance/base/IKeyValueStore.sol +49 -0
- package/contracts/instance/base/ILifecycle.sol +30 -0
- package/contracts/instance/base/KeyValueStore.sol +172 -0
- package/contracts/instance/base/Lifecycle.sol +100 -0
- package/contracts/instance/module/IAccess.sol +38 -0
- package/contracts/instance/module/IBundle.sol +20 -0
- package/contracts/instance/module/IDistribution.sol +39 -0
- package/contracts/instance/module/IPolicy.sol +45 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +46 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/ComponentOwnerService.sol +317 -0
- package/contracts/instance/service/DistributionService.sol +88 -0
- package/contracts/instance/service/DistributionServiceManager.sol +54 -0
- package/contracts/instance/service/IComponentOwnerService.sol +20 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPoolService.sol +51 -0
- package/contracts/instance/service/IProductService.sol +110 -0
- package/contracts/instance/service/PoolService.sol +287 -0
- package/contracts/instance/service/PoolServiceManager.sol +54 -0
- package/contracts/instance/service/ProductService.sol +570 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +138 -109
- package/contracts/registry/IRegistry.sol +68 -57
- package/contracts/registry/IRegistryService.sol +50 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +386 -120
- package/contracts/registry/RegistryService.sol +358 -0
- package/contracts/registry/RegistryServiceManager.sol +80 -0
- package/contracts/registry/TokenRegistry.sol +111 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +25 -0
- package/contracts/shared/INftOwnable.sol +22 -0
- package/contracts/shared/IRegisterable.sol +17 -0
- package/contracts/shared/IService.sol +15 -0
- package/contracts/shared/IVersionable.sol +96 -0
- package/contracts/shared/NftOwnable.sol +134 -0
- package/contracts/shared/ProxyManager.sol +94 -0
- package/contracts/shared/Registerable.sol +90 -0
- package/contracts/shared/RegisterableUpgradable.sol +16 -0
- package/contracts/shared/Service.sol +55 -0
- package/contracts/shared/TokenHandler.sol +27 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +147 -0
- package/contracts/test/TestFee.sol +25 -0
- package/contracts/test/TestRegisterable.sol +18 -0
- package/contracts/test/TestRoleId.sol +14 -0
- package/contracts/test/TestService.sol +24 -0
- package/contracts/test/TestToken.sol +26 -0
- package/contracts/test/TestVersion.sol +44 -0
- package/contracts/test/TestVersionable.sol +17 -0
- package/contracts/test/Usdc.sol +26 -0
- package/contracts/types/AddressSet.sol +58 -0
- package/contracts/types/Blocknumber.sol +118 -0
- package/contracts/types/ChainId.sol +24 -10
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +56 -0
- package/contracts/types/Key32.sol +50 -0
- package/contracts/types/NftId.sol +48 -11
- package/contracts/types/NftIdSet.sol +62 -0
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +152 -0
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +90 -0
- package/contracts/types/StateId.sol +105 -0
- package/contracts/types/Timestamp.sol +127 -0
- package/contracts/types/UFixed.sol +325 -0
- package/contracts/types/Version.sol +107 -0
- package/package.json +21 -6
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/Component.json +0 -179
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -179
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -147
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -179
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -231
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -231
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -149
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -162
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -114
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -167
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
- package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/Registerable.json +0 -166
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
- package/contracts/components/Component.sol +0 -62
- package/contracts/components/IPool.sol +0 -9
- package/contracts/components/IProduct.sol +0 -12
- package/contracts/instance/access/Access.sol +0 -218
- package/contracts/instance/access/IAccess.sol +0 -83
- package/contracts/instance/component/ComponentModule.sol +0 -248
- package/contracts/instance/component/IComponent.sol +0 -95
- package/contracts/instance/policy/IPolicy.sol +0 -66
- package/contracts/instance/policy/PolicyModule.sol +0 -107
- package/contracts/instance/pool/IPoolModule.sol +0 -41
- package/contracts/instance/pool/PoolModule.sol +0 -86
- package/contracts/instance/product/IProductService.sol +0 -46
- package/contracts/instance/product/ProductService.sol +0 -108
- package/contracts/registry/IChainNft.sol +0 -18
@@ -4,163 +4,245 @@
|
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
|
-
"anonymous": false,
|
8
7
|
"inputs": [
|
9
8
|
{
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"type": "uint256"
|
9
|
+
"internalType": "ObjectType",
|
10
|
+
"name": "objectType",
|
11
|
+
"type": "uint8"
|
14
12
|
},
|
15
13
|
{
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"type": "address"
|
14
|
+
"internalType": "StateId",
|
15
|
+
"name": "fromStateId",
|
16
|
+
"type": "uint8"
|
20
17
|
},
|
21
18
|
{
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"type": "string"
|
19
|
+
"internalType": "StateId",
|
20
|
+
"name": "toStateId",
|
21
|
+
"type": "uint8"
|
26
22
|
}
|
27
23
|
],
|
28
|
-
"name": "
|
29
|
-
"type": "
|
24
|
+
"name": "ErrorInvalidStateTransition",
|
25
|
+
"type": "error"
|
30
26
|
},
|
31
27
|
{
|
32
|
-
"inputs": [
|
33
|
-
"name": "ORACLE_OWNER_ROLE",
|
34
|
-
"outputs": [
|
28
|
+
"inputs": [
|
35
29
|
{
|
36
|
-
"internalType": "
|
37
|
-
"name": "
|
38
|
-
"type": "
|
39
|
-
}
|
40
|
-
],
|
41
|
-
"stateMutability": "view",
|
42
|
-
"type": "function"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"inputs": [],
|
46
|
-
"name": "POOL_OWNER_ROLE",
|
47
|
-
"outputs": [
|
30
|
+
"internalType": "NftId",
|
31
|
+
"name": "nftId",
|
32
|
+
"type": "uint96"
|
33
|
+
},
|
48
34
|
{
|
49
|
-
"internalType": "
|
50
|
-
"name": "
|
51
|
-
"type": "
|
35
|
+
"internalType": "ObjectType",
|
36
|
+
"name": "objectType",
|
37
|
+
"type": "uint8"
|
52
38
|
}
|
53
39
|
],
|
54
|
-
"
|
55
|
-
"type": "
|
40
|
+
"name": "ErrorNoLifecycle",
|
41
|
+
"type": "error"
|
56
42
|
},
|
57
43
|
{
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"outputs": [
|
44
|
+
"anonymous": false,
|
45
|
+
"inputs": [
|
61
46
|
{
|
62
|
-
"
|
63
|
-
"
|
64
|
-
"
|
47
|
+
"indexed": false,
|
48
|
+
"internalType": "ObjectType",
|
49
|
+
"name": "objectType",
|
50
|
+
"type": "uint8"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"indexed": false,
|
54
|
+
"internalType": "KeyId",
|
55
|
+
"name": "keyId",
|
56
|
+
"type": "bytes31"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"indexed": false,
|
60
|
+
"internalType": "StateId",
|
61
|
+
"name": "state",
|
62
|
+
"type": "uint8"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"indexed": false,
|
66
|
+
"internalType": "address",
|
67
|
+
"name": "createdBy",
|
68
|
+
"type": "address"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"indexed": false,
|
72
|
+
"internalType": "address",
|
73
|
+
"name": "txOrigin",
|
74
|
+
"type": "address"
|
65
75
|
}
|
66
76
|
],
|
67
|
-
"
|
68
|
-
"type": "
|
77
|
+
"name": "LogInfoCreated",
|
78
|
+
"type": "event"
|
69
79
|
},
|
70
80
|
{
|
81
|
+
"anonymous": false,
|
71
82
|
"inputs": [
|
72
83
|
{
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
84
|
+
"indexed": false,
|
85
|
+
"internalType": "ObjectType",
|
86
|
+
"name": "objectType",
|
87
|
+
"type": "uint8"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"indexed": false,
|
91
|
+
"internalType": "KeyId",
|
92
|
+
"name": "keyId",
|
93
|
+
"type": "bytes31"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"indexed": false,
|
97
|
+
"internalType": "StateId",
|
98
|
+
"name": "state",
|
99
|
+
"type": "uint8"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"indexed": false,
|
103
|
+
"internalType": "address",
|
104
|
+
"name": "updatedBy",
|
105
|
+
"type": "address"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"indexed": false,
|
109
|
+
"internalType": "address",
|
110
|
+
"name": "txOrigin",
|
111
|
+
"type": "address"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"indexed": false,
|
115
|
+
"internalType": "Blocknumber",
|
116
|
+
"name": "lastUpdatedIn",
|
117
|
+
"type": "uint32"
|
76
118
|
}
|
77
119
|
],
|
78
|
-
"name": "
|
79
|
-
"
|
80
|
-
"stateMutability": "nonpayable",
|
81
|
-
"type": "function"
|
120
|
+
"name": "LogInfoUpdated",
|
121
|
+
"type": "event"
|
82
122
|
},
|
83
123
|
{
|
84
|
-
"
|
85
|
-
"
|
86
|
-
|
124
|
+
"anonymous": false,
|
125
|
+
"inputs": [
|
126
|
+
{
|
127
|
+
"indexed": false,
|
128
|
+
"internalType": "ObjectType",
|
129
|
+
"name": "objectType",
|
130
|
+
"type": "uint8"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"indexed": false,
|
134
|
+
"internalType": "KeyId",
|
135
|
+
"name": "keyId",
|
136
|
+
"type": "bytes31"
|
137
|
+
},
|
87
138
|
{
|
88
|
-
"
|
89
|
-
"
|
90
|
-
"
|
139
|
+
"indexed": false,
|
140
|
+
"internalType": "StateId",
|
141
|
+
"name": "stateOld",
|
142
|
+
"type": "uint8"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"indexed": false,
|
146
|
+
"internalType": "StateId",
|
147
|
+
"name": "stateNew",
|
148
|
+
"type": "uint8"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"indexed": false,
|
152
|
+
"internalType": "address",
|
153
|
+
"name": "updatedBy",
|
154
|
+
"type": "address"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"indexed": false,
|
158
|
+
"internalType": "address",
|
159
|
+
"name": "txOrigin",
|
160
|
+
"type": "address"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"indexed": false,
|
164
|
+
"internalType": "Blocknumber",
|
165
|
+
"name": "lastUpdatedIn",
|
166
|
+
"type": "uint32"
|
91
167
|
}
|
92
168
|
],
|
93
|
-
"
|
94
|
-
"type": "
|
169
|
+
"name": "LogStateUpdated",
|
170
|
+
"type": "event"
|
95
171
|
},
|
96
172
|
{
|
97
173
|
"inputs": [
|
174
|
+
{
|
175
|
+
"internalType": "NftId",
|
176
|
+
"name": "bundleNftId",
|
177
|
+
"type": "uint96"
|
178
|
+
},
|
98
179
|
{
|
99
180
|
"components": [
|
100
181
|
{
|
101
182
|
"internalType": "NftId",
|
102
|
-
"name": "
|
183
|
+
"name": "poolNftId",
|
103
184
|
"type": "uint96"
|
104
185
|
},
|
105
186
|
{
|
106
|
-
"
|
107
|
-
|
108
|
-
|
187
|
+
"components": [
|
188
|
+
{
|
189
|
+
"internalType": "UFixed",
|
190
|
+
"name": "fractionalFee",
|
191
|
+
"type": "uint256"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"internalType": "uint256",
|
195
|
+
"name": "fixedFee",
|
196
|
+
"type": "uint256"
|
197
|
+
}
|
198
|
+
],
|
199
|
+
"internalType": "struct Fee",
|
200
|
+
"name": "fee",
|
201
|
+
"type": "tuple"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"internalType": "bytes",
|
205
|
+
"name": "filter",
|
206
|
+
"type": "bytes"
|
109
207
|
},
|
110
208
|
{
|
111
209
|
"internalType": "uint256",
|
112
|
-
"name": "
|
210
|
+
"name": "capitalAmount",
|
113
211
|
"type": "uint256"
|
114
212
|
},
|
115
213
|
{
|
116
|
-
"internalType": "
|
117
|
-
"name": "
|
118
|
-
"type": "
|
214
|
+
"internalType": "uint256",
|
215
|
+
"name": "lockedAmount",
|
216
|
+
"type": "uint256"
|
119
217
|
},
|
120
218
|
{
|
121
|
-
"internalType": "
|
122
|
-
"name": "
|
123
|
-
"type": "
|
219
|
+
"internalType": "uint256",
|
220
|
+
"name": "balanceAmount",
|
221
|
+
"type": "uint256"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"internalType": "uint256",
|
225
|
+
"name": "lifetime",
|
226
|
+
"type": "uint256"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"internalType": "Timestamp",
|
230
|
+
"name": "expiredAt",
|
231
|
+
"type": "uint40"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"internalType": "Timestamp",
|
235
|
+
"name": "closedAt",
|
236
|
+
"type": "uint40"
|
124
237
|
}
|
125
238
|
],
|
126
|
-
"internalType": "struct
|
127
|
-
"name": "
|
239
|
+
"internalType": "struct IBundle.BundleInfo",
|
240
|
+
"name": "bundle",
|
128
241
|
"type": "tuple"
|
129
|
-
},
|
130
|
-
{
|
131
|
-
"internalType": "address",
|
132
|
-
"name": "applicationOwner",
|
133
|
-
"type": "address"
|
134
|
-
},
|
135
|
-
{
|
136
|
-
"internalType": "uint256",
|
137
|
-
"name": "sumInsuredAmount",
|
138
|
-
"type": "uint256"
|
139
|
-
},
|
140
|
-
{
|
141
|
-
"internalType": "uint256",
|
142
|
-
"name": "premiumAmount",
|
143
|
-
"type": "uint256"
|
144
|
-
},
|
145
|
-
{
|
146
|
-
"internalType": "uint256",
|
147
|
-
"name": "lifetime",
|
148
|
-
"type": "uint256"
|
149
|
-
},
|
150
|
-
{
|
151
|
-
"internalType": "NftId",
|
152
|
-
"name": "bundleNftId",
|
153
|
-
"type": "uint96"
|
154
|
-
}
|
155
|
-
],
|
156
|
-
"name": "createApplication",
|
157
|
-
"outputs": [
|
158
|
-
{
|
159
|
-
"internalType": "NftId",
|
160
|
-
"name": "nftId",
|
161
|
-
"type": "uint96"
|
162
242
|
}
|
163
243
|
],
|
244
|
+
"name": "createBundle",
|
245
|
+
"outputs": [],
|
164
246
|
"stateMutability": "nonpayable",
|
165
247
|
"type": "function"
|
166
248
|
},
|
@@ -168,21 +250,55 @@
|
|
168
250
|
"inputs": [
|
169
251
|
{
|
170
252
|
"internalType": "NftId",
|
171
|
-
"name": "
|
253
|
+
"name": "distributionNftId",
|
172
254
|
"type": "uint96"
|
173
255
|
},
|
174
256
|
{
|
175
|
-
"
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
257
|
+
"components": [
|
258
|
+
{
|
259
|
+
"internalType": "NftId",
|
260
|
+
"name": "productNftId",
|
261
|
+
"type": "uint96"
|
262
|
+
},
|
263
|
+
{
|
264
|
+
"internalType": "contract TokenHandler",
|
265
|
+
"name": "tokenHandler",
|
266
|
+
"type": "address"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"components": [
|
270
|
+
{
|
271
|
+
"internalType": "UFixed",
|
272
|
+
"name": "fractionalFee",
|
273
|
+
"type": "uint256"
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"internalType": "uint256",
|
277
|
+
"name": "fixedFee",
|
278
|
+
"type": "uint256"
|
279
|
+
}
|
280
|
+
],
|
281
|
+
"internalType": "struct Fee",
|
282
|
+
"name": "distributionFee",
|
283
|
+
"type": "tuple"
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"internalType": "bool",
|
287
|
+
"name": "isIntercepting",
|
288
|
+
"type": "bool"
|
289
|
+
},
|
290
|
+
{
|
291
|
+
"internalType": "address",
|
292
|
+
"name": "wallet",
|
293
|
+
"type": "address"
|
294
|
+
}
|
295
|
+
],
|
296
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
297
|
+
"name": "setup",
|
298
|
+
"type": "tuple"
|
183
299
|
}
|
184
300
|
],
|
185
|
-
"name": "
|
301
|
+
"name": "createDistributionSetup",
|
186
302
|
"outputs": [],
|
187
303
|
"stateMutability": "nonpayable",
|
188
304
|
"type": "function"
|
@@ -190,31 +306,99 @@
|
|
190
306
|
{
|
191
307
|
"inputs": [
|
192
308
|
{
|
193
|
-
"internalType": "
|
194
|
-
"name": "
|
195
|
-
"type": "
|
196
|
-
}
|
197
|
-
],
|
198
|
-
"name": "createRole",
|
199
|
-
"outputs": [
|
200
|
-
{
|
201
|
-
"internalType": "bytes32",
|
202
|
-
"name": "role",
|
203
|
-
"type": "bytes32"
|
204
|
-
}
|
205
|
-
],
|
206
|
-
"stateMutability": "nonpayable",
|
207
|
-
"type": "function"
|
208
|
-
},
|
209
|
-
{
|
210
|
-
"inputs": [
|
309
|
+
"internalType": "NftId",
|
310
|
+
"name": "policyNftId",
|
311
|
+
"type": "uint96"
|
312
|
+
},
|
211
313
|
{
|
212
|
-
"
|
213
|
-
|
214
|
-
|
314
|
+
"components": [
|
315
|
+
{
|
316
|
+
"internalType": "NftId",
|
317
|
+
"name": "productNftId",
|
318
|
+
"type": "uint96"
|
319
|
+
},
|
320
|
+
{
|
321
|
+
"internalType": "NftId",
|
322
|
+
"name": "bundleNftId",
|
323
|
+
"type": "uint96"
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"internalType": "ReferralId",
|
327
|
+
"name": "referralId",
|
328
|
+
"type": "bytes8"
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"internalType": "RiskId",
|
332
|
+
"name": "riskId",
|
333
|
+
"type": "bytes8"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"internalType": "uint256",
|
337
|
+
"name": "sumInsuredAmount",
|
338
|
+
"type": "uint256"
|
339
|
+
},
|
340
|
+
{
|
341
|
+
"internalType": "uint256",
|
342
|
+
"name": "premiumAmount",
|
343
|
+
"type": "uint256"
|
344
|
+
},
|
345
|
+
{
|
346
|
+
"internalType": "uint256",
|
347
|
+
"name": "premiumPaidAmount",
|
348
|
+
"type": "uint256"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"internalType": "uint256",
|
352
|
+
"name": "lifetime",
|
353
|
+
"type": "uint256"
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"internalType": "bytes",
|
357
|
+
"name": "applicationData",
|
358
|
+
"type": "bytes"
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"internalType": "bytes",
|
362
|
+
"name": "policyData",
|
363
|
+
"type": "bytes"
|
364
|
+
},
|
365
|
+
{
|
366
|
+
"internalType": "uint16",
|
367
|
+
"name": "claimsCount",
|
368
|
+
"type": "uint16"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"internalType": "uint16",
|
372
|
+
"name": "openClaimsCount",
|
373
|
+
"type": "uint16"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"internalType": "uint256",
|
377
|
+
"name": "payoutAmount",
|
378
|
+
"type": "uint256"
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"internalType": "Timestamp",
|
382
|
+
"name": "activatedAt",
|
383
|
+
"type": "uint40"
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"internalType": "Timestamp",
|
387
|
+
"name": "expiredAt",
|
388
|
+
"type": "uint40"
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"internalType": "Timestamp",
|
392
|
+
"name": "closedAt",
|
393
|
+
"type": "uint40"
|
394
|
+
}
|
395
|
+
],
|
396
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
397
|
+
"name": "policy",
|
398
|
+
"type": "tuple"
|
215
399
|
}
|
216
400
|
],
|
217
|
-
"name": "
|
401
|
+
"name": "createPolicy",
|
218
402
|
"outputs": [],
|
219
403
|
"stateMutability": "nonpayable",
|
220
404
|
"type": "function"
|
@@ -222,12 +406,100 @@
|
|
222
406
|
{
|
223
407
|
"inputs": [
|
224
408
|
{
|
225
|
-
"internalType": "
|
226
|
-
"name": "
|
227
|
-
"type": "
|
409
|
+
"internalType": "NftId",
|
410
|
+
"name": "poolNftId",
|
411
|
+
"type": "uint96"
|
412
|
+
},
|
413
|
+
{
|
414
|
+
"components": [
|
415
|
+
{
|
416
|
+
"internalType": "NftId",
|
417
|
+
"name": "productNftId",
|
418
|
+
"type": "uint96"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"internalType": "contract TokenHandler",
|
422
|
+
"name": "tokenHandler",
|
423
|
+
"type": "address"
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"internalType": "UFixed",
|
427
|
+
"name": "collateralizationLevel",
|
428
|
+
"type": "uint256"
|
429
|
+
},
|
430
|
+
{
|
431
|
+
"components": [
|
432
|
+
{
|
433
|
+
"internalType": "UFixed",
|
434
|
+
"name": "fractionalFee",
|
435
|
+
"type": "uint256"
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"internalType": "uint256",
|
439
|
+
"name": "fixedFee",
|
440
|
+
"type": "uint256"
|
441
|
+
}
|
442
|
+
],
|
443
|
+
"internalType": "struct Fee",
|
444
|
+
"name": "poolFee",
|
445
|
+
"type": "tuple"
|
446
|
+
},
|
447
|
+
{
|
448
|
+
"components": [
|
449
|
+
{
|
450
|
+
"internalType": "UFixed",
|
451
|
+
"name": "fractionalFee",
|
452
|
+
"type": "uint256"
|
453
|
+
},
|
454
|
+
{
|
455
|
+
"internalType": "uint256",
|
456
|
+
"name": "fixedFee",
|
457
|
+
"type": "uint256"
|
458
|
+
}
|
459
|
+
],
|
460
|
+
"internalType": "struct Fee",
|
461
|
+
"name": "stakingFee",
|
462
|
+
"type": "tuple"
|
463
|
+
},
|
464
|
+
{
|
465
|
+
"components": [
|
466
|
+
{
|
467
|
+
"internalType": "UFixed",
|
468
|
+
"name": "fractionalFee",
|
469
|
+
"type": "uint256"
|
470
|
+
},
|
471
|
+
{
|
472
|
+
"internalType": "uint256",
|
473
|
+
"name": "fixedFee",
|
474
|
+
"type": "uint256"
|
475
|
+
}
|
476
|
+
],
|
477
|
+
"internalType": "struct Fee",
|
478
|
+
"name": "performanceFee",
|
479
|
+
"type": "tuple"
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"internalType": "bool",
|
483
|
+
"name": "isIntercepting",
|
484
|
+
"type": "bool"
|
485
|
+
},
|
486
|
+
{
|
487
|
+
"internalType": "bool",
|
488
|
+
"name": "isConfirmingApplication",
|
489
|
+
"type": "bool"
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"internalType": "address",
|
493
|
+
"name": "wallet",
|
494
|
+
"type": "address"
|
495
|
+
}
|
496
|
+
],
|
497
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
498
|
+
"name": "setup",
|
499
|
+
"type": "tuple"
|
228
500
|
}
|
229
501
|
],
|
230
|
-
"name": "
|
502
|
+
"name": "createPoolSetup",
|
231
503
|
"outputs": [],
|
232
504
|
"stateMutability": "nonpayable",
|
233
505
|
"type": "function"
|
@@ -236,54 +508,198 @@
|
|
236
508
|
"inputs": [
|
237
509
|
{
|
238
510
|
"internalType": "NftId",
|
239
|
-
"name": "
|
511
|
+
"name": "productNftId",
|
240
512
|
"type": "uint96"
|
241
|
-
}
|
242
|
-
],
|
243
|
-
"name": "getBundleNftForPolicy",
|
244
|
-
"outputs": [
|
513
|
+
},
|
245
514
|
{
|
246
|
-
"
|
247
|
-
|
248
|
-
|
515
|
+
"components": [
|
516
|
+
{
|
517
|
+
"internalType": "contract IERC20Metadata",
|
518
|
+
"name": "token",
|
519
|
+
"type": "address"
|
520
|
+
},
|
521
|
+
{
|
522
|
+
"internalType": "contract TokenHandler",
|
523
|
+
"name": "tokenHandler",
|
524
|
+
"type": "address"
|
525
|
+
},
|
526
|
+
{
|
527
|
+
"internalType": "NftId",
|
528
|
+
"name": "distributionNftId",
|
529
|
+
"type": "uint96"
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"internalType": "NftId",
|
533
|
+
"name": "poolNftId",
|
534
|
+
"type": "uint96"
|
535
|
+
},
|
536
|
+
{
|
537
|
+
"components": [
|
538
|
+
{
|
539
|
+
"internalType": "UFixed",
|
540
|
+
"name": "fractionalFee",
|
541
|
+
"type": "uint256"
|
542
|
+
},
|
543
|
+
{
|
544
|
+
"internalType": "uint256",
|
545
|
+
"name": "fixedFee",
|
546
|
+
"type": "uint256"
|
547
|
+
}
|
548
|
+
],
|
549
|
+
"internalType": "struct Fee",
|
550
|
+
"name": "distributionFee",
|
551
|
+
"type": "tuple"
|
552
|
+
},
|
553
|
+
{
|
554
|
+
"components": [
|
555
|
+
{
|
556
|
+
"internalType": "UFixed",
|
557
|
+
"name": "fractionalFee",
|
558
|
+
"type": "uint256"
|
559
|
+
},
|
560
|
+
{
|
561
|
+
"internalType": "uint256",
|
562
|
+
"name": "fixedFee",
|
563
|
+
"type": "uint256"
|
564
|
+
}
|
565
|
+
],
|
566
|
+
"internalType": "struct Fee",
|
567
|
+
"name": "productFee",
|
568
|
+
"type": "tuple"
|
569
|
+
},
|
570
|
+
{
|
571
|
+
"components": [
|
572
|
+
{
|
573
|
+
"internalType": "UFixed",
|
574
|
+
"name": "fractionalFee",
|
575
|
+
"type": "uint256"
|
576
|
+
},
|
577
|
+
{
|
578
|
+
"internalType": "uint256",
|
579
|
+
"name": "fixedFee",
|
580
|
+
"type": "uint256"
|
581
|
+
}
|
582
|
+
],
|
583
|
+
"internalType": "struct Fee",
|
584
|
+
"name": "processingFee",
|
585
|
+
"type": "tuple"
|
586
|
+
},
|
587
|
+
{
|
588
|
+
"components": [
|
589
|
+
{
|
590
|
+
"internalType": "UFixed",
|
591
|
+
"name": "fractionalFee",
|
592
|
+
"type": "uint256"
|
593
|
+
},
|
594
|
+
{
|
595
|
+
"internalType": "uint256",
|
596
|
+
"name": "fixedFee",
|
597
|
+
"type": "uint256"
|
598
|
+
}
|
599
|
+
],
|
600
|
+
"internalType": "struct Fee",
|
601
|
+
"name": "poolFee",
|
602
|
+
"type": "tuple"
|
603
|
+
},
|
604
|
+
{
|
605
|
+
"components": [
|
606
|
+
{
|
607
|
+
"internalType": "UFixed",
|
608
|
+
"name": "fractionalFee",
|
609
|
+
"type": "uint256"
|
610
|
+
},
|
611
|
+
{
|
612
|
+
"internalType": "uint256",
|
613
|
+
"name": "fixedFee",
|
614
|
+
"type": "uint256"
|
615
|
+
}
|
616
|
+
],
|
617
|
+
"internalType": "struct Fee",
|
618
|
+
"name": "stakingFee",
|
619
|
+
"type": "tuple"
|
620
|
+
},
|
621
|
+
{
|
622
|
+
"components": [
|
623
|
+
{
|
624
|
+
"internalType": "UFixed",
|
625
|
+
"name": "fractionalFee",
|
626
|
+
"type": "uint256"
|
627
|
+
},
|
628
|
+
{
|
629
|
+
"internalType": "uint256",
|
630
|
+
"name": "fixedFee",
|
631
|
+
"type": "uint256"
|
632
|
+
}
|
633
|
+
],
|
634
|
+
"internalType": "struct Fee",
|
635
|
+
"name": "performanceFee",
|
636
|
+
"type": "tuple"
|
637
|
+
},
|
638
|
+
{
|
639
|
+
"internalType": "bool",
|
640
|
+
"name": "isIntercepting",
|
641
|
+
"type": "bool"
|
642
|
+
},
|
643
|
+
{
|
644
|
+
"internalType": "address",
|
645
|
+
"name": "wallet",
|
646
|
+
"type": "address"
|
647
|
+
}
|
648
|
+
],
|
649
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
650
|
+
"name": "setup",
|
651
|
+
"type": "tuple"
|
249
652
|
}
|
250
653
|
],
|
251
|
-
"
|
654
|
+
"name": "createProductSetup",
|
655
|
+
"outputs": [],
|
656
|
+
"stateMutability": "nonpayable",
|
252
657
|
"type": "function"
|
253
658
|
},
|
254
659
|
{
|
255
660
|
"inputs": [
|
256
661
|
{
|
257
|
-
"internalType": "
|
258
|
-
"name": "
|
259
|
-
"type": "
|
260
|
-
}
|
261
|
-
],
|
262
|
-
"name": "getComponentId",
|
263
|
-
"outputs": [
|
662
|
+
"internalType": "RiskId",
|
663
|
+
"name": "riskId",
|
664
|
+
"type": "bytes8"
|
665
|
+
},
|
264
666
|
{
|
265
|
-
"
|
266
|
-
|
267
|
-
|
667
|
+
"components": [
|
668
|
+
{
|
669
|
+
"internalType": "NftId",
|
670
|
+
"name": "productNftId",
|
671
|
+
"type": "uint96"
|
672
|
+
},
|
673
|
+
{
|
674
|
+
"internalType": "bytes",
|
675
|
+
"name": "data",
|
676
|
+
"type": "bytes"
|
677
|
+
}
|
678
|
+
],
|
679
|
+
"internalType": "struct IRisk.RiskInfo",
|
680
|
+
"name": "risk",
|
681
|
+
"type": "tuple"
|
268
682
|
}
|
269
683
|
],
|
270
|
-
"
|
684
|
+
"name": "createRisk",
|
685
|
+
"outputs": [],
|
686
|
+
"stateMutability": "nonpayable",
|
271
687
|
"type": "function"
|
272
688
|
},
|
273
689
|
{
|
274
690
|
"inputs": [
|
275
691
|
{
|
276
|
-
"internalType": "
|
277
|
-
"name": "
|
278
|
-
"type": "
|
692
|
+
"internalType": "Key32",
|
693
|
+
"name": "key",
|
694
|
+
"type": "bytes32"
|
279
695
|
}
|
280
696
|
],
|
281
|
-
"name": "
|
697
|
+
"name": "exists",
|
282
698
|
"outputs": [
|
283
699
|
{
|
284
|
-
"internalType": "
|
285
|
-
"name": "
|
286
|
-
"type": "
|
700
|
+
"internalType": "bool",
|
701
|
+
"name": "",
|
702
|
+
"type": "bool"
|
287
703
|
}
|
288
704
|
],
|
289
705
|
"stateMutability": "view",
|
@@ -292,28 +708,55 @@
|
|
292
708
|
{
|
293
709
|
"inputs": [
|
294
710
|
{
|
295
|
-
"internalType": "
|
296
|
-
"name": "
|
297
|
-
"type": "
|
711
|
+
"internalType": "Key32",
|
712
|
+
"name": "key",
|
713
|
+
"type": "bytes32"
|
298
714
|
}
|
299
715
|
],
|
300
|
-
"name": "
|
716
|
+
"name": "get",
|
301
717
|
"outputs": [
|
302
718
|
{
|
303
719
|
"components": [
|
304
720
|
{
|
305
|
-
"
|
306
|
-
|
307
|
-
|
721
|
+
"components": [
|
722
|
+
{
|
723
|
+
"internalType": "ObjectType",
|
724
|
+
"name": "objectType",
|
725
|
+
"type": "uint8"
|
726
|
+
},
|
727
|
+
{
|
728
|
+
"internalType": "StateId",
|
729
|
+
"name": "state",
|
730
|
+
"type": "uint8"
|
731
|
+
},
|
732
|
+
{
|
733
|
+
"internalType": "address",
|
734
|
+
"name": "updatedBy",
|
735
|
+
"type": "address"
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"internalType": "Blocknumber",
|
739
|
+
"name": "updatedIn",
|
740
|
+
"type": "uint32"
|
741
|
+
},
|
742
|
+
{
|
743
|
+
"internalType": "Blocknumber",
|
744
|
+
"name": "createdIn",
|
745
|
+
"type": "uint32"
|
746
|
+
}
|
747
|
+
],
|
748
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
749
|
+
"name": "metadata",
|
750
|
+
"type": "tuple"
|
308
751
|
},
|
309
752
|
{
|
310
|
-
"internalType": "
|
311
|
-
"name": "
|
312
|
-
"type": "
|
753
|
+
"internalType": "bytes",
|
754
|
+
"name": "data",
|
755
|
+
"type": "bytes"
|
313
756
|
}
|
314
757
|
],
|
315
|
-
"internalType": "struct
|
316
|
-
"name": "
|
758
|
+
"internalType": "struct IKeyValueStore.Value",
|
759
|
+
"name": "value",
|
317
760
|
"type": "tuple"
|
318
761
|
}
|
319
762
|
],
|
@@ -321,18 +764,12 @@
|
|
321
764
|
"type": "function"
|
322
765
|
},
|
323
766
|
{
|
324
|
-
"inputs": [
|
325
|
-
|
326
|
-
"internalType": "NftId",
|
327
|
-
"name": "nftId",
|
328
|
-
"type": "uint96"
|
329
|
-
}
|
330
|
-
],
|
331
|
-
"name": "getComponentOwner",
|
767
|
+
"inputs": [],
|
768
|
+
"name": "getBundleManager",
|
332
769
|
"outputs": [
|
333
770
|
{
|
334
|
-
"internalType": "
|
335
|
-
"name": "
|
771
|
+
"internalType": "contract BundleManager",
|
772
|
+
"name": "",
|
336
773
|
"type": "address"
|
337
774
|
}
|
338
775
|
],
|
@@ -353,7 +790,13 @@
|
|
353
790
|
"type": "function"
|
354
791
|
},
|
355
792
|
{
|
356
|
-
"inputs": [
|
793
|
+
"inputs": [
|
794
|
+
{
|
795
|
+
"internalType": "Key32",
|
796
|
+
"name": "key",
|
797
|
+
"type": "bytes32"
|
798
|
+
}
|
799
|
+
],
|
357
800
|
"name": "getData",
|
358
801
|
"outputs": [
|
359
802
|
{
|
@@ -367,11 +810,11 @@
|
|
367
810
|
},
|
368
811
|
{
|
369
812
|
"inputs": [],
|
370
|
-
"name": "
|
813
|
+
"name": "getDistributionService",
|
371
814
|
"outputs": [
|
372
815
|
{
|
373
|
-
"internalType": "
|
374
|
-
"name": "
|
816
|
+
"internalType": "contract IDistributionService",
|
817
|
+
"name": "",
|
375
818
|
"type": "address"
|
376
819
|
}
|
377
820
|
],
|
@@ -379,26 +822,19 @@
|
|
379
822
|
"type": "function"
|
380
823
|
},
|
381
824
|
{
|
382
|
-
"inputs": [
|
383
|
-
"name": "getNftId",
|
384
|
-
"outputs": [
|
825
|
+
"inputs": [
|
385
826
|
{
|
386
|
-
"internalType": "
|
387
|
-
"name": "
|
388
|
-
"type": "
|
827
|
+
"internalType": "ObjectType",
|
828
|
+
"name": "objectType",
|
829
|
+
"type": "uint8"
|
389
830
|
}
|
390
831
|
],
|
391
|
-
"
|
392
|
-
"type": "function"
|
393
|
-
},
|
394
|
-
{
|
395
|
-
"inputs": [],
|
396
|
-
"name": "getOwner",
|
832
|
+
"name": "getInitialState",
|
397
833
|
"outputs": [
|
398
834
|
{
|
399
|
-
"internalType": "
|
400
|
-
"name": "
|
401
|
-
"type": "
|
835
|
+
"internalType": "StateId",
|
836
|
+
"name": "",
|
837
|
+
"type": "uint8"
|
402
838
|
}
|
403
839
|
],
|
404
840
|
"stateMutability": "view",
|
@@ -406,12 +842,12 @@
|
|
406
842
|
},
|
407
843
|
{
|
408
844
|
"inputs": [],
|
409
|
-
"name": "
|
845
|
+
"name": "getInstanceReader",
|
410
846
|
"outputs": [
|
411
847
|
{
|
412
|
-
"internalType": "
|
413
|
-
"name": "
|
414
|
-
"type": "
|
848
|
+
"internalType": "contract InstanceReader",
|
849
|
+
"name": "",
|
850
|
+
"type": "address"
|
415
851
|
}
|
416
852
|
],
|
417
853
|
"stateMutability": "view",
|
@@ -420,63 +856,43 @@
|
|
420
856
|
{
|
421
857
|
"inputs": [
|
422
858
|
{
|
423
|
-
"internalType": "
|
424
|
-
"name": "
|
425
|
-
"type": "
|
859
|
+
"internalType": "Key32",
|
860
|
+
"name": "key",
|
861
|
+
"type": "bytes32"
|
426
862
|
}
|
427
863
|
],
|
428
|
-
"name": "
|
864
|
+
"name": "getMetadata",
|
429
865
|
"outputs": [
|
430
866
|
{
|
431
867
|
"components": [
|
432
868
|
{
|
433
|
-
"internalType": "
|
434
|
-
"name": "
|
435
|
-
"type": "
|
869
|
+
"internalType": "ObjectType",
|
870
|
+
"name": "objectType",
|
871
|
+
"type": "uint8"
|
436
872
|
},
|
437
873
|
{
|
438
|
-
"internalType": "
|
874
|
+
"internalType": "StateId",
|
439
875
|
"name": "state",
|
440
876
|
"type": "uint8"
|
441
877
|
},
|
442
878
|
{
|
443
|
-
"internalType": "
|
444
|
-
"name": "
|
445
|
-
"type": "
|
446
|
-
},
|
447
|
-
{
|
448
|
-
"internalType": "uint256",
|
449
|
-
"name": "premiumAmount",
|
450
|
-
"type": "uint256"
|
451
|
-
},
|
452
|
-
{
|
453
|
-
"internalType": "uint256",
|
454
|
-
"name": "lifetime",
|
455
|
-
"type": "uint256"
|
456
|
-
},
|
457
|
-
{
|
458
|
-
"internalType": "uint256",
|
459
|
-
"name": "createdAt",
|
460
|
-
"type": "uint256"
|
461
|
-
},
|
462
|
-
{
|
463
|
-
"internalType": "uint256",
|
464
|
-
"name": "activatedAt",
|
465
|
-
"type": "uint256"
|
879
|
+
"internalType": "address",
|
880
|
+
"name": "updatedBy",
|
881
|
+
"type": "address"
|
466
882
|
},
|
467
883
|
{
|
468
|
-
"internalType": "
|
469
|
-
"name": "
|
470
|
-
"type": "
|
884
|
+
"internalType": "Blocknumber",
|
885
|
+
"name": "updatedIn",
|
886
|
+
"type": "uint32"
|
471
887
|
},
|
472
888
|
{
|
473
|
-
"internalType": "
|
474
|
-
"name": "
|
475
|
-
"type": "
|
889
|
+
"internalType": "Blocknumber",
|
890
|
+
"name": "createdIn",
|
891
|
+
"type": "uint32"
|
476
892
|
}
|
477
893
|
],
|
478
|
-
"internalType": "struct
|
479
|
-
"name": "
|
894
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
895
|
+
"name": "metadata",
|
480
896
|
"type": "tuple"
|
481
897
|
}
|
482
898
|
],
|
@@ -484,46 +900,26 @@
|
|
484
900
|
"type": "function"
|
485
901
|
},
|
486
902
|
{
|
487
|
-
"inputs": [
|
903
|
+
"inputs": [],
|
904
|
+
"name": "getPoolService",
|
905
|
+
"outputs": [
|
488
906
|
{
|
489
|
-
"internalType": "
|
490
|
-
"name": "
|
491
|
-
"type": "
|
907
|
+
"internalType": "contract IPoolService",
|
908
|
+
"name": "",
|
909
|
+
"type": "address"
|
492
910
|
}
|
493
911
|
],
|
494
|
-
"
|
912
|
+
"stateMutability": "view",
|
913
|
+
"type": "function"
|
914
|
+
},
|
915
|
+
{
|
916
|
+
"inputs": [],
|
917
|
+
"name": "getProductService",
|
495
918
|
"outputs": [
|
496
919
|
{
|
497
|
-
"
|
498
|
-
|
499
|
-
|
500
|
-
"name": "nftId",
|
501
|
-
"type": "uint96"
|
502
|
-
},
|
503
|
-
{
|
504
|
-
"internalType": "address",
|
505
|
-
"name": "wallet",
|
506
|
-
"type": "address"
|
507
|
-
},
|
508
|
-
{
|
509
|
-
"internalType": "address",
|
510
|
-
"name": "token",
|
511
|
-
"type": "address"
|
512
|
-
},
|
513
|
-
{
|
514
|
-
"internalType": "uint256",
|
515
|
-
"name": "capital",
|
516
|
-
"type": "uint256"
|
517
|
-
},
|
518
|
-
{
|
519
|
-
"internalType": "uint256",
|
520
|
-
"name": "lockedCapital",
|
521
|
-
"type": "uint256"
|
522
|
-
}
|
523
|
-
],
|
524
|
-
"internalType": "struct IPool.PoolInfo",
|
525
|
-
"name": "info",
|
526
|
-
"type": "tuple"
|
920
|
+
"internalType": "contract IProductService",
|
921
|
+
"name": "",
|
922
|
+
"type": "address"
|
527
923
|
}
|
528
924
|
],
|
529
925
|
"stateMutability": "view",
|
@@ -532,43 +928,36 @@
|
|
532
928
|
{
|
533
929
|
"inputs": [
|
534
930
|
{
|
535
|
-
"internalType": "
|
536
|
-
"name": "
|
537
|
-
"type": "
|
931
|
+
"internalType": "Key32",
|
932
|
+
"name": "key",
|
933
|
+
"type": "bytes32"
|
538
934
|
}
|
539
935
|
],
|
540
|
-
"name": "
|
936
|
+
"name": "getState",
|
541
937
|
"outputs": [
|
542
938
|
{
|
543
|
-
"internalType": "
|
544
|
-
"name": "
|
545
|
-
"type": "
|
939
|
+
"internalType": "StateId",
|
940
|
+
"name": "state",
|
941
|
+
"type": "uint8"
|
546
942
|
}
|
547
943
|
],
|
548
944
|
"stateMutability": "view",
|
549
945
|
"type": "function"
|
550
946
|
},
|
551
947
|
{
|
552
|
-
"inputs": [
|
553
|
-
"name": "getProductService",
|
554
|
-
"outputs": [
|
948
|
+
"inputs": [
|
555
949
|
{
|
556
|
-
"internalType": "
|
557
|
-
"name": "",
|
558
|
-
"type": "
|
950
|
+
"internalType": "ObjectType",
|
951
|
+
"name": "objectType",
|
952
|
+
"type": "uint8"
|
559
953
|
}
|
560
954
|
],
|
561
|
-
"
|
562
|
-
"type": "function"
|
563
|
-
},
|
564
|
-
{
|
565
|
-
"inputs": [],
|
566
|
-
"name": "getRegistry",
|
955
|
+
"name": "hasLifecycle",
|
567
956
|
"outputs": [
|
568
957
|
{
|
569
|
-
"internalType": "
|
570
|
-
"name": "
|
571
|
-
"type": "
|
958
|
+
"internalType": "bool",
|
959
|
+
"name": "",
|
960
|
+
"type": "bool"
|
572
961
|
}
|
573
962
|
],
|
574
963
|
"stateMutability": "view",
|
@@ -577,30 +966,46 @@
|
|
577
966
|
{
|
578
967
|
"inputs": [
|
579
968
|
{
|
580
|
-
"internalType": "
|
581
|
-
"name": "
|
582
|
-
"type": "
|
969
|
+
"internalType": "ObjectType",
|
970
|
+
"name": "objectType",
|
971
|
+
"type": "uint8"
|
972
|
+
},
|
973
|
+
{
|
974
|
+
"internalType": "StateId",
|
975
|
+
"name": "fromId",
|
976
|
+
"type": "uint8"
|
977
|
+
},
|
978
|
+
{
|
979
|
+
"internalType": "StateId",
|
980
|
+
"name": "toId",
|
981
|
+
"type": "uint8"
|
583
982
|
}
|
584
983
|
],
|
585
|
-
"name": "
|
984
|
+
"name": "isValidTransition",
|
586
985
|
"outputs": [
|
587
986
|
{
|
588
|
-
"internalType": "
|
589
|
-
"name": "
|
590
|
-
"type": "
|
987
|
+
"internalType": "bool",
|
988
|
+
"name": "",
|
989
|
+
"type": "bool"
|
591
990
|
}
|
592
991
|
],
|
593
992
|
"stateMutability": "view",
|
594
993
|
"type": "function"
|
595
994
|
},
|
596
995
|
{
|
597
|
-
"inputs": [
|
598
|
-
|
996
|
+
"inputs": [
|
997
|
+
{
|
998
|
+
"internalType": "bytes4",
|
999
|
+
"name": "interfaceId",
|
1000
|
+
"type": "bytes4"
|
1001
|
+
}
|
1002
|
+
],
|
1003
|
+
"name": "supportsInterface",
|
599
1004
|
"outputs": [
|
600
1005
|
{
|
601
|
-
"internalType": "
|
602
|
-
"name": "
|
603
|
-
"type": "
|
1006
|
+
"internalType": "bool",
|
1007
|
+
"name": "",
|
1008
|
+
"type": "bool"
|
604
1009
|
}
|
605
1010
|
],
|
606
1011
|
"stateMutability": "view",
|
@@ -609,16 +1014,21 @@
|
|
609
1014
|
{
|
610
1015
|
"inputs": [
|
611
1016
|
{
|
612
|
-
"internalType": "
|
613
|
-
"name": "
|
614
|
-
"type": "
|
1017
|
+
"internalType": "ObjectType",
|
1018
|
+
"name": "objectType",
|
1019
|
+
"type": "uint8"
|
1020
|
+
},
|
1021
|
+
{
|
1022
|
+
"internalType": "KeyId",
|
1023
|
+
"name": "id",
|
1024
|
+
"type": "bytes31"
|
615
1025
|
}
|
616
1026
|
],
|
617
|
-
"name": "
|
1027
|
+
"name": "toKey32",
|
618
1028
|
"outputs": [
|
619
1029
|
{
|
620
|
-
"internalType": "
|
621
|
-
"name": "
|
1030
|
+
"internalType": "Key32",
|
1031
|
+
"name": "",
|
622
1032
|
"type": "bytes32"
|
623
1033
|
}
|
624
1034
|
],
|
@@ -628,109 +1038,302 @@
|
|
628
1038
|
{
|
629
1039
|
"inputs": [
|
630
1040
|
{
|
631
|
-
"internalType": "
|
632
|
-
"name": "
|
633
|
-
"type": "
|
1041
|
+
"internalType": "NftId",
|
1042
|
+
"name": "bundleNftId",
|
1043
|
+
"type": "uint96"
|
1044
|
+
},
|
1045
|
+
{
|
1046
|
+
"components": [
|
1047
|
+
{
|
1048
|
+
"internalType": "NftId",
|
1049
|
+
"name": "poolNftId",
|
1050
|
+
"type": "uint96"
|
1051
|
+
},
|
1052
|
+
{
|
1053
|
+
"components": [
|
1054
|
+
{
|
1055
|
+
"internalType": "UFixed",
|
1056
|
+
"name": "fractionalFee",
|
1057
|
+
"type": "uint256"
|
1058
|
+
},
|
1059
|
+
{
|
1060
|
+
"internalType": "uint256",
|
1061
|
+
"name": "fixedFee",
|
1062
|
+
"type": "uint256"
|
1063
|
+
}
|
1064
|
+
],
|
1065
|
+
"internalType": "struct Fee",
|
1066
|
+
"name": "fee",
|
1067
|
+
"type": "tuple"
|
1068
|
+
},
|
1069
|
+
{
|
1070
|
+
"internalType": "bytes",
|
1071
|
+
"name": "filter",
|
1072
|
+
"type": "bytes"
|
1073
|
+
},
|
1074
|
+
{
|
1075
|
+
"internalType": "uint256",
|
1076
|
+
"name": "capitalAmount",
|
1077
|
+
"type": "uint256"
|
1078
|
+
},
|
1079
|
+
{
|
1080
|
+
"internalType": "uint256",
|
1081
|
+
"name": "lockedAmount",
|
1082
|
+
"type": "uint256"
|
1083
|
+
},
|
1084
|
+
{
|
1085
|
+
"internalType": "uint256",
|
1086
|
+
"name": "balanceAmount",
|
1087
|
+
"type": "uint256"
|
1088
|
+
},
|
1089
|
+
{
|
1090
|
+
"internalType": "uint256",
|
1091
|
+
"name": "lifetime",
|
1092
|
+
"type": "uint256"
|
1093
|
+
},
|
1094
|
+
{
|
1095
|
+
"internalType": "Timestamp",
|
1096
|
+
"name": "expiredAt",
|
1097
|
+
"type": "uint40"
|
1098
|
+
},
|
1099
|
+
{
|
1100
|
+
"internalType": "Timestamp",
|
1101
|
+
"name": "closedAt",
|
1102
|
+
"type": "uint40"
|
1103
|
+
}
|
1104
|
+
],
|
1105
|
+
"internalType": "struct IBundle.BundleInfo",
|
1106
|
+
"name": "bundle",
|
1107
|
+
"type": "tuple"
|
1108
|
+
},
|
1109
|
+
{
|
1110
|
+
"internalType": "StateId",
|
1111
|
+
"name": "newState",
|
1112
|
+
"type": "uint8"
|
634
1113
|
}
|
635
1114
|
],
|
636
|
-
"name": "
|
637
|
-
"outputs": [
|
1115
|
+
"name": "updateBundle",
|
1116
|
+
"outputs": [],
|
1117
|
+
"stateMutability": "nonpayable",
|
1118
|
+
"type": "function"
|
1119
|
+
},
|
1120
|
+
{
|
1121
|
+
"inputs": [
|
1122
|
+
{
|
1123
|
+
"internalType": "NftId",
|
1124
|
+
"name": "bundleNftId",
|
1125
|
+
"type": "uint96"
|
1126
|
+
},
|
1127
|
+
{
|
1128
|
+
"internalType": "StateId",
|
1129
|
+
"name": "newState",
|
1130
|
+
"type": "uint8"
|
1131
|
+
}
|
1132
|
+
],
|
1133
|
+
"name": "updateBundleState",
|
1134
|
+
"outputs": [],
|
1135
|
+
"stateMutability": "nonpayable",
|
1136
|
+
"type": "function"
|
1137
|
+
},
|
1138
|
+
{
|
1139
|
+
"inputs": [
|
1140
|
+
{
|
1141
|
+
"internalType": "NftId",
|
1142
|
+
"name": "distributionNftId",
|
1143
|
+
"type": "uint96"
|
1144
|
+
},
|
638
1145
|
{
|
639
1146
|
"components": [
|
640
1147
|
{
|
641
|
-
"internalType": "
|
642
|
-
"name": "
|
643
|
-
"type": "
|
1148
|
+
"internalType": "NftId",
|
1149
|
+
"name": "productNftId",
|
1150
|
+
"type": "uint96"
|
1151
|
+
},
|
1152
|
+
{
|
1153
|
+
"internalType": "contract TokenHandler",
|
1154
|
+
"name": "tokenHandler",
|
1155
|
+
"type": "address"
|
644
1156
|
},
|
645
1157
|
{
|
646
|
-
"
|
647
|
-
|
648
|
-
|
1158
|
+
"components": [
|
1159
|
+
{
|
1160
|
+
"internalType": "UFixed",
|
1161
|
+
"name": "fractionalFee",
|
1162
|
+
"type": "uint256"
|
1163
|
+
},
|
1164
|
+
{
|
1165
|
+
"internalType": "uint256",
|
1166
|
+
"name": "fixedFee",
|
1167
|
+
"type": "uint256"
|
1168
|
+
}
|
1169
|
+
],
|
1170
|
+
"internalType": "struct Fee",
|
1171
|
+
"name": "distributionFee",
|
1172
|
+
"type": "tuple"
|
649
1173
|
},
|
650
1174
|
{
|
651
1175
|
"internalType": "bool",
|
652
|
-
"name": "
|
1176
|
+
"name": "isIntercepting",
|
653
1177
|
"type": "bool"
|
1178
|
+
},
|
1179
|
+
{
|
1180
|
+
"internalType": "address",
|
1181
|
+
"name": "wallet",
|
1182
|
+
"type": "address"
|
654
1183
|
}
|
655
1184
|
],
|
656
|
-
"internalType": "struct
|
657
|
-
"name": "
|
1185
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
1186
|
+
"name": "setup",
|
658
1187
|
"type": "tuple"
|
1188
|
+
},
|
1189
|
+
{
|
1190
|
+
"internalType": "StateId",
|
1191
|
+
"name": "newState",
|
1192
|
+
"type": "uint8"
|
659
1193
|
}
|
660
1194
|
],
|
661
|
-
"
|
1195
|
+
"name": "updateDistributionSetup",
|
1196
|
+
"outputs": [],
|
1197
|
+
"stateMutability": "nonpayable",
|
662
1198
|
"type": "function"
|
663
1199
|
},
|
664
1200
|
{
|
665
1201
|
"inputs": [
|
666
1202
|
{
|
667
|
-
"internalType": "
|
668
|
-
"name": "
|
669
|
-
"type": "
|
1203
|
+
"internalType": "NftId",
|
1204
|
+
"name": "distributionNftId",
|
1205
|
+
"type": "uint96"
|
670
1206
|
},
|
671
1207
|
{
|
672
|
-
"internalType": "
|
673
|
-
"name": "
|
674
|
-
"type": "
|
675
|
-
}
|
676
|
-
],
|
677
|
-
"name": "getRoleMember",
|
678
|
-
"outputs": [
|
679
|
-
{
|
680
|
-
"internalType": "address",
|
681
|
-
"name": "roleMembers",
|
682
|
-
"type": "address"
|
1208
|
+
"internalType": "StateId",
|
1209
|
+
"name": "newState",
|
1210
|
+
"type": "uint8"
|
683
1211
|
}
|
684
1212
|
],
|
685
|
-
"
|
1213
|
+
"name": "updateDistributionSetupState",
|
1214
|
+
"outputs": [],
|
1215
|
+
"stateMutability": "nonpayable",
|
686
1216
|
"type": "function"
|
687
1217
|
},
|
688
1218
|
{
|
689
1219
|
"inputs": [
|
690
1220
|
{
|
691
|
-
"internalType": "
|
692
|
-
"name": "
|
693
|
-
"type": "
|
694
|
-
}
|
695
|
-
],
|
696
|
-
"name": "getRoleMemberCount",
|
697
|
-
"outputs": [
|
1221
|
+
"internalType": "NftId",
|
1222
|
+
"name": "policyNftId",
|
1223
|
+
"type": "uint96"
|
1224
|
+
},
|
698
1225
|
{
|
699
|
-
"
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
1226
|
+
"components": [
|
1227
|
+
{
|
1228
|
+
"internalType": "NftId",
|
1229
|
+
"name": "productNftId",
|
1230
|
+
"type": "uint96"
|
1231
|
+
},
|
1232
|
+
{
|
1233
|
+
"internalType": "NftId",
|
1234
|
+
"name": "bundleNftId",
|
1235
|
+
"type": "uint96"
|
1236
|
+
},
|
1237
|
+
{
|
1238
|
+
"internalType": "ReferralId",
|
1239
|
+
"name": "referralId",
|
1240
|
+
"type": "bytes8"
|
1241
|
+
},
|
1242
|
+
{
|
1243
|
+
"internalType": "RiskId",
|
1244
|
+
"name": "riskId",
|
1245
|
+
"type": "bytes8"
|
1246
|
+
},
|
1247
|
+
{
|
1248
|
+
"internalType": "uint256",
|
1249
|
+
"name": "sumInsuredAmount",
|
1250
|
+
"type": "uint256"
|
1251
|
+
},
|
1252
|
+
{
|
1253
|
+
"internalType": "uint256",
|
1254
|
+
"name": "premiumAmount",
|
1255
|
+
"type": "uint256"
|
1256
|
+
},
|
1257
|
+
{
|
1258
|
+
"internalType": "uint256",
|
1259
|
+
"name": "premiumPaidAmount",
|
1260
|
+
"type": "uint256"
|
1261
|
+
},
|
1262
|
+
{
|
1263
|
+
"internalType": "uint256",
|
1264
|
+
"name": "lifetime",
|
1265
|
+
"type": "uint256"
|
1266
|
+
},
|
1267
|
+
{
|
1268
|
+
"internalType": "bytes",
|
1269
|
+
"name": "applicationData",
|
1270
|
+
"type": "bytes"
|
1271
|
+
},
|
1272
|
+
{
|
1273
|
+
"internalType": "bytes",
|
1274
|
+
"name": "policyData",
|
1275
|
+
"type": "bytes"
|
1276
|
+
},
|
1277
|
+
{
|
1278
|
+
"internalType": "uint16",
|
1279
|
+
"name": "claimsCount",
|
1280
|
+
"type": "uint16"
|
1281
|
+
},
|
1282
|
+
{
|
1283
|
+
"internalType": "uint16",
|
1284
|
+
"name": "openClaimsCount",
|
1285
|
+
"type": "uint16"
|
1286
|
+
},
|
1287
|
+
{
|
1288
|
+
"internalType": "uint256",
|
1289
|
+
"name": "payoutAmount",
|
1290
|
+
"type": "uint256"
|
1291
|
+
},
|
1292
|
+
{
|
1293
|
+
"internalType": "Timestamp",
|
1294
|
+
"name": "activatedAt",
|
1295
|
+
"type": "uint40"
|
1296
|
+
},
|
1297
|
+
{
|
1298
|
+
"internalType": "Timestamp",
|
1299
|
+
"name": "expiredAt",
|
1300
|
+
"type": "uint40"
|
1301
|
+
},
|
1302
|
+
{
|
1303
|
+
"internalType": "Timestamp",
|
1304
|
+
"name": "closedAt",
|
1305
|
+
"type": "uint40"
|
1306
|
+
}
|
1307
|
+
],
|
1308
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
1309
|
+
"name": "policy",
|
1310
|
+
"type": "tuple"
|
1311
|
+
},
|
711
1312
|
{
|
712
|
-
"internalType": "
|
713
|
-
"name": "
|
714
|
-
"type": "
|
1313
|
+
"internalType": "StateId",
|
1314
|
+
"name": "newState",
|
1315
|
+
"type": "uint8"
|
715
1316
|
}
|
716
1317
|
],
|
717
|
-
"
|
1318
|
+
"name": "updatePolicy",
|
1319
|
+
"outputs": [],
|
1320
|
+
"stateMutability": "nonpayable",
|
718
1321
|
"type": "function"
|
719
1322
|
},
|
720
1323
|
{
|
721
1324
|
"inputs": [
|
722
1325
|
{
|
723
|
-
"internalType": "
|
724
|
-
"name": "
|
725
|
-
"type": "
|
1326
|
+
"internalType": "NftId",
|
1327
|
+
"name": "policyNftId",
|
1328
|
+
"type": "uint96"
|
726
1329
|
},
|
727
1330
|
{
|
728
|
-
"internalType": "
|
729
|
-
"name": "
|
730
|
-
"type": "
|
1331
|
+
"internalType": "StateId",
|
1332
|
+
"name": "newState",
|
1333
|
+
"type": "uint8"
|
731
1334
|
}
|
732
1335
|
],
|
733
|
-
"name": "
|
1336
|
+
"name": "updatePolicyState",
|
734
1337
|
"outputs": [],
|
735
1338
|
"stateMutability": "nonpayable",
|
736
1339
|
"type": "function"
|
@@ -738,148 +1341,351 @@
|
|
738
1341
|
{
|
739
1342
|
"inputs": [
|
740
1343
|
{
|
741
|
-
"internalType": "
|
742
|
-
"name": "
|
743
|
-
"type": "
|
1344
|
+
"internalType": "NftId",
|
1345
|
+
"name": "poolNftId",
|
1346
|
+
"type": "uint96"
|
744
1347
|
},
|
745
1348
|
{
|
746
|
-
"
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
1349
|
+
"components": [
|
1350
|
+
{
|
1351
|
+
"internalType": "NftId",
|
1352
|
+
"name": "productNftId",
|
1353
|
+
"type": "uint96"
|
1354
|
+
},
|
1355
|
+
{
|
1356
|
+
"internalType": "contract TokenHandler",
|
1357
|
+
"name": "tokenHandler",
|
1358
|
+
"type": "address"
|
1359
|
+
},
|
1360
|
+
{
|
1361
|
+
"internalType": "UFixed",
|
1362
|
+
"name": "collateralizationLevel",
|
1363
|
+
"type": "uint256"
|
1364
|
+
},
|
1365
|
+
{
|
1366
|
+
"components": [
|
1367
|
+
{
|
1368
|
+
"internalType": "UFixed",
|
1369
|
+
"name": "fractionalFee",
|
1370
|
+
"type": "uint256"
|
1371
|
+
},
|
1372
|
+
{
|
1373
|
+
"internalType": "uint256",
|
1374
|
+
"name": "fixedFee",
|
1375
|
+
"type": "uint256"
|
1376
|
+
}
|
1377
|
+
],
|
1378
|
+
"internalType": "struct Fee",
|
1379
|
+
"name": "poolFee",
|
1380
|
+
"type": "tuple"
|
1381
|
+
},
|
1382
|
+
{
|
1383
|
+
"components": [
|
1384
|
+
{
|
1385
|
+
"internalType": "UFixed",
|
1386
|
+
"name": "fractionalFee",
|
1387
|
+
"type": "uint256"
|
1388
|
+
},
|
1389
|
+
{
|
1390
|
+
"internalType": "uint256",
|
1391
|
+
"name": "fixedFee",
|
1392
|
+
"type": "uint256"
|
1393
|
+
}
|
1394
|
+
],
|
1395
|
+
"internalType": "struct Fee",
|
1396
|
+
"name": "stakingFee",
|
1397
|
+
"type": "tuple"
|
1398
|
+
},
|
1399
|
+
{
|
1400
|
+
"components": [
|
1401
|
+
{
|
1402
|
+
"internalType": "UFixed",
|
1403
|
+
"name": "fractionalFee",
|
1404
|
+
"type": "uint256"
|
1405
|
+
},
|
1406
|
+
{
|
1407
|
+
"internalType": "uint256",
|
1408
|
+
"name": "fixedFee",
|
1409
|
+
"type": "uint256"
|
1410
|
+
}
|
1411
|
+
],
|
1412
|
+
"internalType": "struct Fee",
|
1413
|
+
"name": "performanceFee",
|
1414
|
+
"type": "tuple"
|
1415
|
+
},
|
1416
|
+
{
|
1417
|
+
"internalType": "bool",
|
1418
|
+
"name": "isIntercepting",
|
1419
|
+
"type": "bool"
|
1420
|
+
},
|
1421
|
+
{
|
1422
|
+
"internalType": "bool",
|
1423
|
+
"name": "isConfirmingApplication",
|
1424
|
+
"type": "bool"
|
1425
|
+
},
|
1426
|
+
{
|
1427
|
+
"internalType": "address",
|
1428
|
+
"name": "wallet",
|
1429
|
+
"type": "address"
|
1430
|
+
}
|
1431
|
+
],
|
1432
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
1433
|
+
"name": "setup",
|
1434
|
+
"type": "tuple"
|
1435
|
+
},
|
779
1436
|
{
|
780
|
-
"internalType": "
|
781
|
-
"name": "",
|
782
|
-
"type": "
|
1437
|
+
"internalType": "StateId",
|
1438
|
+
"name": "newState",
|
1439
|
+
"type": "uint8"
|
783
1440
|
}
|
784
1441
|
],
|
785
|
-
"
|
1442
|
+
"name": "updatePoolSetup",
|
1443
|
+
"outputs": [],
|
1444
|
+
"stateMutability": "nonpayable",
|
786
1445
|
"type": "function"
|
787
1446
|
},
|
788
1447
|
{
|
789
|
-
"inputs": [
|
790
|
-
"name": "register",
|
791
|
-
"outputs": [
|
1448
|
+
"inputs": [
|
792
1449
|
{
|
793
1450
|
"internalType": "NftId",
|
794
|
-
"name": "
|
1451
|
+
"name": "poolNftId",
|
795
1452
|
"type": "uint96"
|
1453
|
+
},
|
1454
|
+
{
|
1455
|
+
"internalType": "StateId",
|
1456
|
+
"name": "newState",
|
1457
|
+
"type": "uint8"
|
796
1458
|
}
|
797
1459
|
],
|
1460
|
+
"name": "updatePoolSetupState",
|
1461
|
+
"outputs": [],
|
798
1462
|
"stateMutability": "nonpayable",
|
799
1463
|
"type": "function"
|
800
1464
|
},
|
801
1465
|
{
|
802
1466
|
"inputs": [
|
803
|
-
{
|
804
|
-
"internalType": "contract IComponentContract",
|
805
|
-
"name": "component",
|
806
|
-
"type": "address"
|
807
|
-
}
|
808
|
-
],
|
809
|
-
"name": "registerComponent",
|
810
|
-
"outputs": [
|
811
1467
|
{
|
812
1468
|
"internalType": "NftId",
|
813
|
-
"name": "
|
1469
|
+
"name": "productNftId",
|
814
1470
|
"type": "uint96"
|
1471
|
+
},
|
1472
|
+
{
|
1473
|
+
"components": [
|
1474
|
+
{
|
1475
|
+
"internalType": "contract IERC20Metadata",
|
1476
|
+
"name": "token",
|
1477
|
+
"type": "address"
|
1478
|
+
},
|
1479
|
+
{
|
1480
|
+
"internalType": "contract TokenHandler",
|
1481
|
+
"name": "tokenHandler",
|
1482
|
+
"type": "address"
|
1483
|
+
},
|
1484
|
+
{
|
1485
|
+
"internalType": "NftId",
|
1486
|
+
"name": "distributionNftId",
|
1487
|
+
"type": "uint96"
|
1488
|
+
},
|
1489
|
+
{
|
1490
|
+
"internalType": "NftId",
|
1491
|
+
"name": "poolNftId",
|
1492
|
+
"type": "uint96"
|
1493
|
+
},
|
1494
|
+
{
|
1495
|
+
"components": [
|
1496
|
+
{
|
1497
|
+
"internalType": "UFixed",
|
1498
|
+
"name": "fractionalFee",
|
1499
|
+
"type": "uint256"
|
1500
|
+
},
|
1501
|
+
{
|
1502
|
+
"internalType": "uint256",
|
1503
|
+
"name": "fixedFee",
|
1504
|
+
"type": "uint256"
|
1505
|
+
}
|
1506
|
+
],
|
1507
|
+
"internalType": "struct Fee",
|
1508
|
+
"name": "distributionFee",
|
1509
|
+
"type": "tuple"
|
1510
|
+
},
|
1511
|
+
{
|
1512
|
+
"components": [
|
1513
|
+
{
|
1514
|
+
"internalType": "UFixed",
|
1515
|
+
"name": "fractionalFee",
|
1516
|
+
"type": "uint256"
|
1517
|
+
},
|
1518
|
+
{
|
1519
|
+
"internalType": "uint256",
|
1520
|
+
"name": "fixedFee",
|
1521
|
+
"type": "uint256"
|
1522
|
+
}
|
1523
|
+
],
|
1524
|
+
"internalType": "struct Fee",
|
1525
|
+
"name": "productFee",
|
1526
|
+
"type": "tuple"
|
1527
|
+
},
|
1528
|
+
{
|
1529
|
+
"components": [
|
1530
|
+
{
|
1531
|
+
"internalType": "UFixed",
|
1532
|
+
"name": "fractionalFee",
|
1533
|
+
"type": "uint256"
|
1534
|
+
},
|
1535
|
+
{
|
1536
|
+
"internalType": "uint256",
|
1537
|
+
"name": "fixedFee",
|
1538
|
+
"type": "uint256"
|
1539
|
+
}
|
1540
|
+
],
|
1541
|
+
"internalType": "struct Fee",
|
1542
|
+
"name": "processingFee",
|
1543
|
+
"type": "tuple"
|
1544
|
+
},
|
1545
|
+
{
|
1546
|
+
"components": [
|
1547
|
+
{
|
1548
|
+
"internalType": "UFixed",
|
1549
|
+
"name": "fractionalFee",
|
1550
|
+
"type": "uint256"
|
1551
|
+
},
|
1552
|
+
{
|
1553
|
+
"internalType": "uint256",
|
1554
|
+
"name": "fixedFee",
|
1555
|
+
"type": "uint256"
|
1556
|
+
}
|
1557
|
+
],
|
1558
|
+
"internalType": "struct Fee",
|
1559
|
+
"name": "poolFee",
|
1560
|
+
"type": "tuple"
|
1561
|
+
},
|
1562
|
+
{
|
1563
|
+
"components": [
|
1564
|
+
{
|
1565
|
+
"internalType": "UFixed",
|
1566
|
+
"name": "fractionalFee",
|
1567
|
+
"type": "uint256"
|
1568
|
+
},
|
1569
|
+
{
|
1570
|
+
"internalType": "uint256",
|
1571
|
+
"name": "fixedFee",
|
1572
|
+
"type": "uint256"
|
1573
|
+
}
|
1574
|
+
],
|
1575
|
+
"internalType": "struct Fee",
|
1576
|
+
"name": "stakingFee",
|
1577
|
+
"type": "tuple"
|
1578
|
+
},
|
1579
|
+
{
|
1580
|
+
"components": [
|
1581
|
+
{
|
1582
|
+
"internalType": "UFixed",
|
1583
|
+
"name": "fractionalFee",
|
1584
|
+
"type": "uint256"
|
1585
|
+
},
|
1586
|
+
{
|
1587
|
+
"internalType": "uint256",
|
1588
|
+
"name": "fixedFee",
|
1589
|
+
"type": "uint256"
|
1590
|
+
}
|
1591
|
+
],
|
1592
|
+
"internalType": "struct Fee",
|
1593
|
+
"name": "performanceFee",
|
1594
|
+
"type": "tuple"
|
1595
|
+
},
|
1596
|
+
{
|
1597
|
+
"internalType": "bool",
|
1598
|
+
"name": "isIntercepting",
|
1599
|
+
"type": "bool"
|
1600
|
+
},
|
1601
|
+
{
|
1602
|
+
"internalType": "address",
|
1603
|
+
"name": "wallet",
|
1604
|
+
"type": "address"
|
1605
|
+
}
|
1606
|
+
],
|
1607
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
1608
|
+
"name": "setup",
|
1609
|
+
"type": "tuple"
|
1610
|
+
},
|
1611
|
+
{
|
1612
|
+
"internalType": "StateId",
|
1613
|
+
"name": "newState",
|
1614
|
+
"type": "uint8"
|
815
1615
|
}
|
816
1616
|
],
|
1617
|
+
"name": "updateProductSetup",
|
1618
|
+
"outputs": [],
|
817
1619
|
"stateMutability": "nonpayable",
|
818
1620
|
"type": "function"
|
819
1621
|
},
|
820
1622
|
{
|
821
1623
|
"inputs": [
|
822
1624
|
{
|
823
|
-
"internalType": "
|
824
|
-
"name": "
|
825
|
-
"type": "
|
1625
|
+
"internalType": "NftId",
|
1626
|
+
"name": "productNftId",
|
1627
|
+
"type": "uint96"
|
826
1628
|
},
|
827
1629
|
{
|
828
|
-
"internalType": "
|
829
|
-
"name": "
|
830
|
-
"type": "
|
1630
|
+
"internalType": "StateId",
|
1631
|
+
"name": "newState",
|
1632
|
+
"type": "uint8"
|
831
1633
|
}
|
832
1634
|
],
|
833
|
-
"name": "
|
1635
|
+
"name": "updateProductSetupState",
|
834
1636
|
"outputs": [],
|
835
1637
|
"stateMutability": "nonpayable",
|
836
1638
|
"type": "function"
|
837
1639
|
},
|
838
1640
|
{
|
839
1641
|
"inputs": [
|
1642
|
+
{
|
1643
|
+
"internalType": "RiskId",
|
1644
|
+
"name": "riskId",
|
1645
|
+
"type": "bytes8"
|
1646
|
+
},
|
840
1647
|
{
|
841
1648
|
"components": [
|
842
1649
|
{
|
843
1650
|
"internalType": "NftId",
|
844
|
-
"name": "
|
1651
|
+
"name": "productNftId",
|
845
1652
|
"type": "uint96"
|
846
1653
|
},
|
847
1654
|
{
|
848
|
-
"internalType": "
|
849
|
-
"name": "
|
850
|
-
"type": "
|
1655
|
+
"internalType": "bytes",
|
1656
|
+
"name": "data",
|
1657
|
+
"type": "bytes"
|
851
1658
|
}
|
852
1659
|
],
|
853
|
-
"internalType": "struct
|
854
|
-
"name": "
|
1660
|
+
"internalType": "struct IRisk.RiskInfo",
|
1661
|
+
"name": "risk",
|
855
1662
|
"type": "tuple"
|
856
|
-
}
|
857
|
-
],
|
858
|
-
"name": "setComponentInfo",
|
859
|
-
"outputs": [
|
1663
|
+
},
|
860
1664
|
{
|
861
|
-
"internalType": "
|
862
|
-
"name": "
|
863
|
-
"type": "
|
1665
|
+
"internalType": "StateId",
|
1666
|
+
"name": "newState",
|
1667
|
+
"type": "uint8"
|
864
1668
|
}
|
865
1669
|
],
|
1670
|
+
"name": "updateRisk",
|
1671
|
+
"outputs": [],
|
866
1672
|
"stateMutability": "nonpayable",
|
867
1673
|
"type": "function"
|
868
1674
|
},
|
869
1675
|
{
|
870
1676
|
"inputs": [
|
871
1677
|
{
|
872
|
-
"internalType": "
|
873
|
-
"name": "
|
874
|
-
"type": "
|
1678
|
+
"internalType": "RiskId",
|
1679
|
+
"name": "riskId",
|
1680
|
+
"type": "bytes8"
|
875
1681
|
},
|
876
1682
|
{
|
877
|
-
"internalType": "
|
878
|
-
"name": "
|
879
|
-
"type": "
|
1683
|
+
"internalType": "StateId",
|
1684
|
+
"name": "newState",
|
1685
|
+
"type": "uint8"
|
880
1686
|
}
|
881
1687
|
],
|
882
|
-
"name": "
|
1688
|
+
"name": "updateRiskState",
|
883
1689
|
"outputs": [],
|
884
1690
|
"stateMutability": "nonpayable",
|
885
1691
|
"type": "function"
|