@etherisc/gif-next 0.0.2-d911522 → 0.0.2-da06f3b-803
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +364 -8
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +510 -33
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +849 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +244 -241
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +648 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +713 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +748 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +752 -51
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +773 -55
- 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/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -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/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1558 -470
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +592 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2454 -462
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1081 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1381 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1050 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +473 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +603 -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 +228 -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/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1102 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +449 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +772 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +437 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +715 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +441 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +766 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +494 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +531 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1227 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +505 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +806 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +437 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +856 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +437 -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 +525 -61
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +981 -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 +572 -74
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1200 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +464 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +394 -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/{instance/pool/PoolModule.sol/PoolModule.json → shared/IRegisterable.sol/IRegisterable.json} +107 -73
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/shared/IService.sol/IService.json +416 -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 +171 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +362 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +282 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/shared/Service.sol/Service.json +476 -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 +313 -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 +608 -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 +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- 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 +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +77 -2
- 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/Component.sol +192 -38
- package/contracts/components/Distribution.sol +153 -0
- package/contracts/components/IComponent.sol +43 -0
- package/contracts/components/IDistributionComponent.sol +47 -0
- package/contracts/components/IPoolComponent.sol +51 -0
- package/contracts/components/IProductComponent.sol +39 -0
- package/contracts/components/Pool.sol +196 -17
- package/contracts/components/Product.sol +236 -36
- 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/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +67 -15
- package/contracts/instance/IInstanceService.sol +42 -0
- package/contracts/instance/Instance.sol +248 -43
- package/contracts/instance/InstanceAccessManager.sol +414 -0
- package/contracts/instance/InstanceReader.sol +293 -0
- package/contracts/instance/InstanceService.sol +473 -0
- package/contracts/instance/InstanceServiceManager.sol +54 -0
- package/contracts/instance/ObjectManager.sol +84 -0
- package/contracts/instance/base/ComponentService.sol +134 -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 +48 -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/BundleService.sol +293 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/DistributionService.sol +106 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IBundleService.sol +44 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPolicyService.sol +94 -0
- package/contracts/instance/service/IPoolService.sol +20 -0
- package/contracts/instance/service/IProductService.sol +40 -0
- package/contracts/instance/service/PolicyService.sol +538 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +110 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +233 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +138 -109
- package/contracts/registry/IRegistry.sol +79 -49
- package/contracts/registry/IRegistryService.sol +65 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +391 -116
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +262 -0
- package/contracts/registry/RegistryServiceManager.sol +62 -0
- package/contracts/registry/ReleaseManager.sol +332 -0
- package/contracts/registry/TokenRegistry.sol +112 -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 +15 -0
- package/contracts/shared/IService.sol +16 -0
- package/contracts/shared/IVersionable.sol +96 -0
- package/contracts/shared/NftOwnable.sol +139 -0
- package/contracts/shared/ProxyManager.sol +94 -0
- package/contracts/shared/Registerable.sol +86 -0
- package/contracts/shared/Service.sol +60 -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 +25 -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 +76 -18
- package/contracts/types/ChainId.sol +18 -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 +93 -0
- package/contracts/types/StateId.sol +105 -0
- package/contracts/types/Timestamp.sol +89 -17
- package/contracts/types/UFixed.sol +193 -75
- package/contracts/types/Version.sol +107 -0
- package/package.json +21 -6
- 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/ComponentModule.json +0 -327
- 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/IComponentModule.json +0 -245
- 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/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/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/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -440
- 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,165 +4,90 @@
|
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
|
-
"anonymous": false,
|
8
7
|
"inputs": [
|
9
8
|
{
|
10
|
-
"indexed": false,
|
11
|
-
"internalType": "uint256",
|
12
|
-
"name": "idx",
|
13
|
-
"type": "uint256"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"indexed": false,
|
17
9
|
"internalType": "address",
|
18
|
-
"name": "
|
10
|
+
"name": "authority",
|
19
11
|
"type": "address"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"indexed": false,
|
23
|
-
"internalType": "string",
|
24
|
-
"name": "comment",
|
25
|
-
"type": "string"
|
26
12
|
}
|
27
13
|
],
|
28
|
-
"name": "
|
29
|
-
"type": "
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
30
16
|
},
|
31
17
|
{
|
32
|
-
"inputs": [
|
33
|
-
"name": "ORACLE_OWNER_ROLE",
|
34
|
-
"outputs": [
|
18
|
+
"inputs": [
|
35
19
|
{
|
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": [
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
22
|
+
"type": "address"
|
23
|
+
},
|
48
24
|
{
|
49
|
-
"internalType": "
|
50
|
-
"name": "
|
51
|
-
"type": "
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
52
28
|
}
|
53
29
|
],
|
54
|
-
"
|
55
|
-
"type": "
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
56
32
|
},
|
57
33
|
{
|
58
|
-
"inputs": [
|
59
|
-
"name": "PRODUCT_OWNER_ROLE",
|
60
|
-
"outputs": [
|
34
|
+
"inputs": [
|
61
35
|
{
|
62
|
-
"internalType": "
|
63
|
-
"name": "
|
64
|
-
"type": "
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
65
39
|
}
|
66
40
|
],
|
67
|
-
"
|
68
|
-
"type": "
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
69
43
|
},
|
70
44
|
{
|
71
45
|
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "registry",
|
49
|
+
"type": "address"
|
50
|
+
},
|
72
51
|
{
|
73
52
|
"internalType": "NftId",
|
74
53
|
"name": "nftId",
|
75
54
|
"type": "uint96"
|
76
55
|
}
|
77
56
|
],
|
78
|
-
"name": "
|
79
|
-
"
|
80
|
-
"stateMutability": "nonpayable",
|
81
|
-
"type": "function"
|
57
|
+
"name": "ErrorAlreadyLinked",
|
58
|
+
"type": "error"
|
82
59
|
},
|
83
60
|
{
|
84
|
-
"inputs": [
|
85
|
-
"name": "components",
|
86
|
-
"outputs": [
|
61
|
+
"inputs": [
|
87
62
|
{
|
88
|
-
"internalType": "
|
89
|
-
"name": "
|
90
|
-
"type": "
|
63
|
+
"internalType": "address",
|
64
|
+
"name": "contractAddress",
|
65
|
+
"type": "address"
|
91
66
|
}
|
92
67
|
],
|
93
|
-
"
|
94
|
-
"type": "
|
68
|
+
"name": "ErrorContractNotRegistered",
|
69
|
+
"type": "error"
|
95
70
|
},
|
96
71
|
{
|
97
72
|
"inputs": [
|
98
73
|
{
|
99
|
-
"
|
100
|
-
|
101
|
-
|
102
|
-
"name": "nftId",
|
103
|
-
"type": "uint96"
|
104
|
-
},
|
105
|
-
{
|
106
|
-
"internalType": "NftId",
|
107
|
-
"name": "parentNftId",
|
108
|
-
"type": "uint96"
|
109
|
-
},
|
110
|
-
{
|
111
|
-
"internalType": "uint256",
|
112
|
-
"name": "objectType",
|
113
|
-
"type": "uint256"
|
114
|
-
},
|
115
|
-
{
|
116
|
-
"internalType": "address",
|
117
|
-
"name": "objectAddress",
|
118
|
-
"type": "address"
|
119
|
-
},
|
120
|
-
{
|
121
|
-
"internalType": "address",
|
122
|
-
"name": "initialOwner",
|
123
|
-
"type": "address"
|
124
|
-
}
|
125
|
-
],
|
126
|
-
"internalType": "struct IRegistry.RegistryInfo",
|
127
|
-
"name": "productInfo",
|
128
|
-
"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"
|
74
|
+
"internalType": "ObjectType",
|
75
|
+
"name": "objectType",
|
76
|
+
"type": "uint8"
|
144
77
|
},
|
145
78
|
{
|
146
|
-
"internalType": "
|
147
|
-
"name": "
|
148
|
-
"type": "
|
79
|
+
"internalType": "StateId",
|
80
|
+
"name": "fromStateId",
|
81
|
+
"type": "uint8"
|
149
82
|
},
|
150
83
|
{
|
151
|
-
"internalType": "
|
152
|
-
"name": "
|
153
|
-
"type": "
|
154
|
-
}
|
155
|
-
],
|
156
|
-
"name": "createApplication",
|
157
|
-
"outputs": [
|
158
|
-
{
|
159
|
-
"internalType": "NftId",
|
160
|
-
"name": "nftId",
|
161
|
-
"type": "uint96"
|
84
|
+
"internalType": "StateId",
|
85
|
+
"name": "toStateId",
|
86
|
+
"type": "uint8"
|
162
87
|
}
|
163
88
|
],
|
164
|
-
"
|
165
|
-
"type": "
|
89
|
+
"name": "ErrorInvalidStateTransition",
|
90
|
+
"type": "error"
|
166
91
|
},
|
167
92
|
{
|
168
93
|
"inputs": [
|
@@ -172,118 +97,207 @@
|
|
172
97
|
"type": "uint96"
|
173
98
|
},
|
174
99
|
{
|
175
|
-
"internalType": "
|
176
|
-
"name": "
|
177
|
-
"type": "
|
178
|
-
},
|
179
|
-
{
|
180
|
-
"internalType": "address",
|
181
|
-
"name": "token",
|
182
|
-
"type": "address"
|
100
|
+
"internalType": "ObjectType",
|
101
|
+
"name": "objectType",
|
102
|
+
"type": "uint8"
|
183
103
|
}
|
184
104
|
],
|
185
|
-
"name": "
|
186
|
-
"
|
187
|
-
"stateMutability": "nonpayable",
|
188
|
-
"type": "function"
|
105
|
+
"name": "ErrorNoLifecycle",
|
106
|
+
"type": "error"
|
189
107
|
},
|
190
108
|
{
|
191
109
|
"inputs": [
|
192
110
|
{
|
193
|
-
"internalType": "
|
194
|
-
"name": "
|
195
|
-
"type": "
|
111
|
+
"internalType": "address",
|
112
|
+
"name": "account",
|
113
|
+
"type": "address"
|
196
114
|
}
|
197
115
|
],
|
198
|
-
"name": "
|
199
|
-
"
|
116
|
+
"name": "ErrorNotOwner",
|
117
|
+
"type": "error"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"inputs": [
|
200
121
|
{
|
201
|
-
"internalType": "
|
202
|
-
"name": "
|
203
|
-
"type": "
|
122
|
+
"internalType": "address",
|
123
|
+
"name": "registryAddress",
|
124
|
+
"type": "address"
|
204
125
|
}
|
205
126
|
],
|
206
|
-
"
|
207
|
-
"type": "
|
127
|
+
"name": "ErrorNotRegistry",
|
128
|
+
"type": "error"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"inputs": [],
|
132
|
+
"name": "ErrorRegistryAddressZero",
|
133
|
+
"type": "error"
|
208
134
|
},
|
209
135
|
{
|
210
136
|
"inputs": [
|
211
137
|
{
|
212
|
-
"internalType": "
|
213
|
-
"name": "
|
214
|
-
"type": "
|
138
|
+
"internalType": "address",
|
139
|
+
"name": "registry",
|
140
|
+
"type": "address"
|
215
141
|
}
|
216
142
|
],
|
217
|
-
"name": "
|
218
|
-
"
|
219
|
-
|
220
|
-
|
143
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
144
|
+
"type": "error"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"inputs": [],
|
148
|
+
"name": "ErrorRegistryNotInitialized",
|
149
|
+
"type": "error"
|
221
150
|
},
|
222
151
|
{
|
152
|
+
"anonymous": false,
|
223
153
|
"inputs": [
|
224
154
|
{
|
225
|
-
"
|
226
|
-
"
|
227
|
-
"
|
155
|
+
"indexed": false,
|
156
|
+
"internalType": "address",
|
157
|
+
"name": "authority",
|
158
|
+
"type": "address"
|
228
159
|
}
|
229
160
|
],
|
230
|
-
"name": "
|
231
|
-
"
|
232
|
-
"stateMutability": "nonpayable",
|
233
|
-
"type": "function"
|
161
|
+
"name": "AuthorityUpdated",
|
162
|
+
"type": "event"
|
234
163
|
},
|
235
164
|
{
|
165
|
+
"anonymous": false,
|
236
166
|
"inputs": [
|
237
167
|
{
|
238
|
-
"
|
239
|
-
"
|
240
|
-
"
|
241
|
-
|
242
|
-
|
243
|
-
"name": "getBundleNftForPolicy",
|
244
|
-
"outputs": [
|
168
|
+
"indexed": false,
|
169
|
+
"internalType": "ObjectType",
|
170
|
+
"name": "objectType",
|
171
|
+
"type": "uint8"
|
172
|
+
},
|
245
173
|
{
|
246
|
-
"
|
247
|
-
"
|
248
|
-
"
|
174
|
+
"indexed": false,
|
175
|
+
"internalType": "KeyId",
|
176
|
+
"name": "keyId",
|
177
|
+
"type": "bytes31"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"indexed": false,
|
181
|
+
"internalType": "StateId",
|
182
|
+
"name": "state",
|
183
|
+
"type": "uint8"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"indexed": false,
|
187
|
+
"internalType": "address",
|
188
|
+
"name": "createdBy",
|
189
|
+
"type": "address"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"indexed": false,
|
193
|
+
"internalType": "address",
|
194
|
+
"name": "txOrigin",
|
195
|
+
"type": "address"
|
249
196
|
}
|
250
197
|
],
|
251
|
-
"
|
252
|
-
"type": "
|
198
|
+
"name": "LogInfoCreated",
|
199
|
+
"type": "event"
|
253
200
|
},
|
254
201
|
{
|
202
|
+
"anonymous": false,
|
255
203
|
"inputs": [
|
256
204
|
{
|
205
|
+
"indexed": false,
|
206
|
+
"internalType": "ObjectType",
|
207
|
+
"name": "objectType",
|
208
|
+
"type": "uint8"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"indexed": false,
|
212
|
+
"internalType": "KeyId",
|
213
|
+
"name": "keyId",
|
214
|
+
"type": "bytes31"
|
215
|
+
},
|
216
|
+
{
|
217
|
+
"indexed": false,
|
218
|
+
"internalType": "StateId",
|
219
|
+
"name": "state",
|
220
|
+
"type": "uint8"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"indexed": false,
|
257
224
|
"internalType": "address",
|
258
|
-
"name": "
|
225
|
+
"name": "updatedBy",
|
259
226
|
"type": "address"
|
260
|
-
}
|
261
|
-
],
|
262
|
-
"name": "getComponentId",
|
263
|
-
"outputs": [
|
227
|
+
},
|
264
228
|
{
|
265
|
-
"
|
266
|
-
"
|
267
|
-
"
|
229
|
+
"indexed": false,
|
230
|
+
"internalType": "address",
|
231
|
+
"name": "txOrigin",
|
232
|
+
"type": "address"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"indexed": false,
|
236
|
+
"internalType": "Blocknumber",
|
237
|
+
"name": "lastUpdatedIn",
|
238
|
+
"type": "uint32"
|
268
239
|
}
|
269
240
|
],
|
270
|
-
"
|
271
|
-
"type": "
|
241
|
+
"name": "LogInfoUpdated",
|
242
|
+
"type": "event"
|
272
243
|
},
|
273
244
|
{
|
245
|
+
"anonymous": false,
|
274
246
|
"inputs": [
|
275
247
|
{
|
276
|
-
"
|
277
|
-
"
|
278
|
-
"
|
248
|
+
"indexed": false,
|
249
|
+
"internalType": "ObjectType",
|
250
|
+
"name": "objectType",
|
251
|
+
"type": "uint8"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"indexed": false,
|
255
|
+
"internalType": "KeyId",
|
256
|
+
"name": "keyId",
|
257
|
+
"type": "bytes31"
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"indexed": false,
|
261
|
+
"internalType": "StateId",
|
262
|
+
"name": "stateOld",
|
263
|
+
"type": "uint8"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"indexed": false,
|
267
|
+
"internalType": "StateId",
|
268
|
+
"name": "stateNew",
|
269
|
+
"type": "uint8"
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"indexed": false,
|
273
|
+
"internalType": "address",
|
274
|
+
"name": "updatedBy",
|
275
|
+
"type": "address"
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"indexed": false,
|
279
|
+
"internalType": "address",
|
280
|
+
"name": "txOrigin",
|
281
|
+
"type": "address"
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"indexed": false,
|
285
|
+
"internalType": "Blocknumber",
|
286
|
+
"name": "lastUpdatedIn",
|
287
|
+
"type": "uint32"
|
279
288
|
}
|
280
289
|
],
|
281
|
-
"name": "
|
290
|
+
"name": "LogStateUpdated",
|
291
|
+
"type": "event"
|
292
|
+
},
|
293
|
+
{
|
294
|
+
"inputs": [],
|
295
|
+
"name": "authority",
|
282
296
|
"outputs": [
|
283
297
|
{
|
284
|
-
"internalType": "
|
285
|
-
"name": "
|
286
|
-
"type": "
|
298
|
+
"internalType": "address",
|
299
|
+
"name": "",
|
300
|
+
"type": "address"
|
287
301
|
}
|
288
302
|
],
|
289
303
|
"stateMutability": "view",
|
@@ -293,151 +307,164 @@
|
|
293
307
|
"inputs": [
|
294
308
|
{
|
295
309
|
"internalType": "NftId",
|
296
|
-
"name": "
|
310
|
+
"name": "bundleNftId",
|
297
311
|
"type": "uint96"
|
298
|
-
}
|
299
|
-
],
|
300
|
-
"name": "getComponentInfo",
|
301
|
-
"outputs": [
|
312
|
+
},
|
302
313
|
{
|
303
314
|
"components": [
|
304
315
|
{
|
305
316
|
"internalType": "NftId",
|
306
|
-
"name": "
|
317
|
+
"name": "poolNftId",
|
307
318
|
"type": "uint96"
|
308
319
|
},
|
309
320
|
{
|
310
|
-
"
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
"
|
363
|
-
|
364
|
-
|
365
|
-
"stateMutability": "view",
|
366
|
-
"type": "function"
|
367
|
-
},
|
368
|
-
{
|
369
|
-
"inputs": [],
|
370
|
-
"name": "getInitialOwner",
|
371
|
-
"outputs": [
|
372
|
-
{
|
373
|
-
"internalType": "address",
|
374
|
-
"name": "initialOwner",
|
375
|
-
"type": "address"
|
321
|
+
"components": [
|
322
|
+
{
|
323
|
+
"internalType": "UFixed",
|
324
|
+
"name": "fractionalFee",
|
325
|
+
"type": "uint256"
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"internalType": "uint256",
|
329
|
+
"name": "fixedFee",
|
330
|
+
"type": "uint256"
|
331
|
+
}
|
332
|
+
],
|
333
|
+
"internalType": "struct Fee",
|
334
|
+
"name": "fee",
|
335
|
+
"type": "tuple"
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"internalType": "bytes",
|
339
|
+
"name": "filter",
|
340
|
+
"type": "bytes"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"internalType": "uint256",
|
344
|
+
"name": "capitalAmount",
|
345
|
+
"type": "uint256"
|
346
|
+
},
|
347
|
+
{
|
348
|
+
"internalType": "uint256",
|
349
|
+
"name": "lockedAmount",
|
350
|
+
"type": "uint256"
|
351
|
+
},
|
352
|
+
{
|
353
|
+
"internalType": "uint256",
|
354
|
+
"name": "balanceAmount",
|
355
|
+
"type": "uint256"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"internalType": "uint256",
|
359
|
+
"name": "lifetime",
|
360
|
+
"type": "uint256"
|
361
|
+
},
|
362
|
+
{
|
363
|
+
"internalType": "Timestamp",
|
364
|
+
"name": "expiredAt",
|
365
|
+
"type": "uint40"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"internalType": "Timestamp",
|
369
|
+
"name": "closedAt",
|
370
|
+
"type": "uint40"
|
371
|
+
}
|
372
|
+
],
|
373
|
+
"internalType": "struct IBundle.BundleInfo",
|
374
|
+
"name": "bundle",
|
375
|
+
"type": "tuple"
|
376
376
|
}
|
377
377
|
],
|
378
|
-
"
|
378
|
+
"name": "createBundle",
|
379
|
+
"outputs": [],
|
380
|
+
"stateMutability": "nonpayable",
|
379
381
|
"type": "function"
|
380
382
|
},
|
381
383
|
{
|
382
|
-
"inputs": [
|
383
|
-
"name": "getNftId",
|
384
|
-
"outputs": [
|
384
|
+
"inputs": [
|
385
385
|
{
|
386
386
|
"internalType": "NftId",
|
387
|
-
"name": "
|
387
|
+
"name": "distributionNftId",
|
388
388
|
"type": "uint96"
|
389
|
-
}
|
390
|
-
],
|
391
|
-
"stateMutability": "view",
|
392
|
-
"type": "function"
|
393
|
-
},
|
394
|
-
{
|
395
|
-
"inputs": [],
|
396
|
-
"name": "getOwner",
|
397
|
-
"outputs": [
|
398
|
-
{
|
399
|
-
"internalType": "address",
|
400
|
-
"name": "owner",
|
401
|
-
"type": "address"
|
402
|
-
}
|
403
|
-
],
|
404
|
-
"stateMutability": "view",
|
405
|
-
"type": "function"
|
406
|
-
},
|
407
|
-
{
|
408
|
-
"inputs": [],
|
409
|
-
"name": "getParentNftId",
|
410
|
-
"outputs": [
|
389
|
+
},
|
411
390
|
{
|
412
|
-
"
|
413
|
-
|
414
|
-
|
391
|
+
"components": [
|
392
|
+
{
|
393
|
+
"internalType": "NftId",
|
394
|
+
"name": "productNftId",
|
395
|
+
"type": "uint96"
|
396
|
+
},
|
397
|
+
{
|
398
|
+
"internalType": "contract TokenHandler",
|
399
|
+
"name": "tokenHandler",
|
400
|
+
"type": "address"
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"components": [
|
404
|
+
{
|
405
|
+
"internalType": "UFixed",
|
406
|
+
"name": "fractionalFee",
|
407
|
+
"type": "uint256"
|
408
|
+
},
|
409
|
+
{
|
410
|
+
"internalType": "uint256",
|
411
|
+
"name": "fixedFee",
|
412
|
+
"type": "uint256"
|
413
|
+
}
|
414
|
+
],
|
415
|
+
"internalType": "struct Fee",
|
416
|
+
"name": "distributionFee",
|
417
|
+
"type": "tuple"
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"internalType": "bool",
|
421
|
+
"name": "isIntercepting",
|
422
|
+
"type": "bool"
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"internalType": "address",
|
426
|
+
"name": "wallet",
|
427
|
+
"type": "address"
|
428
|
+
}
|
429
|
+
],
|
430
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
431
|
+
"name": "setup",
|
432
|
+
"type": "tuple"
|
415
433
|
}
|
416
434
|
],
|
417
|
-
"
|
435
|
+
"name": "createDistributionSetup",
|
436
|
+
"outputs": [],
|
437
|
+
"stateMutability": "nonpayable",
|
418
438
|
"type": "function"
|
419
439
|
},
|
420
440
|
{
|
421
441
|
"inputs": [
|
422
442
|
{
|
423
443
|
"internalType": "NftId",
|
424
|
-
"name": "
|
444
|
+
"name": "policyNftId",
|
425
445
|
"type": "uint96"
|
426
|
-
}
|
427
|
-
],
|
428
|
-
"name": "getPolicyInfo",
|
429
|
-
"outputs": [
|
446
|
+
},
|
430
447
|
{
|
431
448
|
"components": [
|
432
449
|
{
|
433
450
|
"internalType": "NftId",
|
434
|
-
"name": "
|
451
|
+
"name": "productNftId",
|
435
452
|
"type": "uint96"
|
436
453
|
},
|
437
454
|
{
|
438
|
-
"internalType": "
|
439
|
-
"name": "
|
440
|
-
"type": "
|
455
|
+
"internalType": "NftId",
|
456
|
+
"name": "bundleNftId",
|
457
|
+
"type": "uint96"
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"internalType": "ReferralId",
|
461
|
+
"name": "referralId",
|
462
|
+
"type": "bytes8"
|
463
|
+
},
|
464
|
+
{
|
465
|
+
"internalType": "RiskId",
|
466
|
+
"name": "riskId",
|
467
|
+
"type": "bytes8"
|
441
468
|
},
|
442
469
|
{
|
443
470
|
"internalType": "uint256",
|
@@ -451,82 +478,164 @@
|
|
451
478
|
},
|
452
479
|
{
|
453
480
|
"internalType": "uint256",
|
454
|
-
"name": "
|
481
|
+
"name": "premiumPaidAmount",
|
455
482
|
"type": "uint256"
|
456
483
|
},
|
457
484
|
{
|
458
485
|
"internalType": "uint256",
|
459
|
-
"name": "
|
486
|
+
"name": "lifetime",
|
460
487
|
"type": "uint256"
|
461
488
|
},
|
489
|
+
{
|
490
|
+
"internalType": "bytes",
|
491
|
+
"name": "applicationData",
|
492
|
+
"type": "bytes"
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"internalType": "bytes",
|
496
|
+
"name": "policyData",
|
497
|
+
"type": "bytes"
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"internalType": "uint16",
|
501
|
+
"name": "claimsCount",
|
502
|
+
"type": "uint16"
|
503
|
+
},
|
504
|
+
{
|
505
|
+
"internalType": "uint16",
|
506
|
+
"name": "openClaimsCount",
|
507
|
+
"type": "uint16"
|
508
|
+
},
|
462
509
|
{
|
463
510
|
"internalType": "uint256",
|
464
|
-
"name": "
|
511
|
+
"name": "payoutAmount",
|
465
512
|
"type": "uint256"
|
466
513
|
},
|
467
514
|
{
|
468
|
-
"internalType": "
|
515
|
+
"internalType": "Timestamp",
|
516
|
+
"name": "activatedAt",
|
517
|
+
"type": "uint40"
|
518
|
+
},
|
519
|
+
{
|
520
|
+
"internalType": "Timestamp",
|
469
521
|
"name": "expiredAt",
|
470
|
-
"type": "
|
522
|
+
"type": "uint40"
|
471
523
|
},
|
472
524
|
{
|
473
|
-
"internalType": "
|
525
|
+
"internalType": "Timestamp",
|
474
526
|
"name": "closedAt",
|
475
|
-
"type": "
|
527
|
+
"type": "uint40"
|
476
528
|
}
|
477
529
|
],
|
478
530
|
"internalType": "struct IPolicy.PolicyInfo",
|
479
|
-
"name": "
|
531
|
+
"name": "policy",
|
480
532
|
"type": "tuple"
|
481
533
|
}
|
482
534
|
],
|
483
|
-
"
|
535
|
+
"name": "createPolicy",
|
536
|
+
"outputs": [],
|
537
|
+
"stateMutability": "nonpayable",
|
484
538
|
"type": "function"
|
485
539
|
},
|
486
540
|
{
|
487
541
|
"inputs": [
|
488
542
|
{
|
489
543
|
"internalType": "NftId",
|
490
|
-
"name": "
|
544
|
+
"name": "poolNftId",
|
491
545
|
"type": "uint96"
|
492
|
-
}
|
493
|
-
],
|
494
|
-
"name": "getPoolInfo",
|
495
|
-
"outputs": [
|
546
|
+
},
|
496
547
|
{
|
497
548
|
"components": [
|
498
549
|
{
|
499
550
|
"internalType": "NftId",
|
500
|
-
"name": "
|
551
|
+
"name": "productNftId",
|
501
552
|
"type": "uint96"
|
502
553
|
},
|
503
554
|
{
|
504
|
-
"internalType": "
|
505
|
-
"name": "
|
555
|
+
"internalType": "contract TokenHandler",
|
556
|
+
"name": "tokenHandler",
|
506
557
|
"type": "address"
|
507
558
|
},
|
508
559
|
{
|
509
|
-
"internalType": "
|
510
|
-
"name": "
|
511
|
-
"type": "
|
560
|
+
"internalType": "UFixed",
|
561
|
+
"name": "collateralizationLevel",
|
562
|
+
"type": "uint256"
|
512
563
|
},
|
513
564
|
{
|
514
|
-
"
|
515
|
-
|
516
|
-
|
565
|
+
"components": [
|
566
|
+
{
|
567
|
+
"internalType": "UFixed",
|
568
|
+
"name": "fractionalFee",
|
569
|
+
"type": "uint256"
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"internalType": "uint256",
|
573
|
+
"name": "fixedFee",
|
574
|
+
"type": "uint256"
|
575
|
+
}
|
576
|
+
],
|
577
|
+
"internalType": "struct Fee",
|
578
|
+
"name": "poolFee",
|
579
|
+
"type": "tuple"
|
517
580
|
},
|
518
581
|
{
|
519
|
-
"
|
520
|
-
|
521
|
-
|
582
|
+
"components": [
|
583
|
+
{
|
584
|
+
"internalType": "UFixed",
|
585
|
+
"name": "fractionalFee",
|
586
|
+
"type": "uint256"
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"internalType": "uint256",
|
590
|
+
"name": "fixedFee",
|
591
|
+
"type": "uint256"
|
592
|
+
}
|
593
|
+
],
|
594
|
+
"internalType": "struct Fee",
|
595
|
+
"name": "stakingFee",
|
596
|
+
"type": "tuple"
|
597
|
+
},
|
598
|
+
{
|
599
|
+
"components": [
|
600
|
+
{
|
601
|
+
"internalType": "UFixed",
|
602
|
+
"name": "fractionalFee",
|
603
|
+
"type": "uint256"
|
604
|
+
},
|
605
|
+
{
|
606
|
+
"internalType": "uint256",
|
607
|
+
"name": "fixedFee",
|
608
|
+
"type": "uint256"
|
609
|
+
}
|
610
|
+
],
|
611
|
+
"internalType": "struct Fee",
|
612
|
+
"name": "performanceFee",
|
613
|
+
"type": "tuple"
|
614
|
+
},
|
615
|
+
{
|
616
|
+
"internalType": "bool",
|
617
|
+
"name": "isIntercepting",
|
618
|
+
"type": "bool"
|
619
|
+
},
|
620
|
+
{
|
621
|
+
"internalType": "bool",
|
622
|
+
"name": "isConfirmingApplication",
|
623
|
+
"type": "bool"
|
624
|
+
},
|
625
|
+
{
|
626
|
+
"internalType": "address",
|
627
|
+
"name": "wallet",
|
628
|
+
"type": "address"
|
522
629
|
}
|
523
630
|
],
|
524
|
-
"internalType": "struct
|
525
|
-
"name": "
|
631
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
632
|
+
"name": "setup",
|
526
633
|
"type": "tuple"
|
527
634
|
}
|
528
635
|
],
|
529
|
-
"
|
636
|
+
"name": "createPoolSetup",
|
637
|
+
"outputs": [],
|
638
|
+
"stateMutability": "nonpayable",
|
530
639
|
"type": "function"
|
531
640
|
},
|
532
641
|
{
|
@@ -535,40 +644,196 @@
|
|
535
644
|
"internalType": "NftId",
|
536
645
|
"name": "productNftId",
|
537
646
|
"type": "uint96"
|
538
|
-
}
|
539
|
-
],
|
540
|
-
"name": "getPoolNftId",
|
541
|
-
"outputs": [
|
647
|
+
},
|
542
648
|
{
|
543
|
-
"
|
544
|
-
|
545
|
-
|
649
|
+
"components": [
|
650
|
+
{
|
651
|
+
"internalType": "contract IERC20Metadata",
|
652
|
+
"name": "token",
|
653
|
+
"type": "address"
|
654
|
+
},
|
655
|
+
{
|
656
|
+
"internalType": "contract TokenHandler",
|
657
|
+
"name": "tokenHandler",
|
658
|
+
"type": "address"
|
659
|
+
},
|
660
|
+
{
|
661
|
+
"internalType": "NftId",
|
662
|
+
"name": "distributionNftId",
|
663
|
+
"type": "uint96"
|
664
|
+
},
|
665
|
+
{
|
666
|
+
"internalType": "NftId",
|
667
|
+
"name": "poolNftId",
|
668
|
+
"type": "uint96"
|
669
|
+
},
|
670
|
+
{
|
671
|
+
"components": [
|
672
|
+
{
|
673
|
+
"internalType": "UFixed",
|
674
|
+
"name": "fractionalFee",
|
675
|
+
"type": "uint256"
|
676
|
+
},
|
677
|
+
{
|
678
|
+
"internalType": "uint256",
|
679
|
+
"name": "fixedFee",
|
680
|
+
"type": "uint256"
|
681
|
+
}
|
682
|
+
],
|
683
|
+
"internalType": "struct Fee",
|
684
|
+
"name": "distributionFee",
|
685
|
+
"type": "tuple"
|
686
|
+
},
|
687
|
+
{
|
688
|
+
"components": [
|
689
|
+
{
|
690
|
+
"internalType": "UFixed",
|
691
|
+
"name": "fractionalFee",
|
692
|
+
"type": "uint256"
|
693
|
+
},
|
694
|
+
{
|
695
|
+
"internalType": "uint256",
|
696
|
+
"name": "fixedFee",
|
697
|
+
"type": "uint256"
|
698
|
+
}
|
699
|
+
],
|
700
|
+
"internalType": "struct Fee",
|
701
|
+
"name": "productFee",
|
702
|
+
"type": "tuple"
|
703
|
+
},
|
704
|
+
{
|
705
|
+
"components": [
|
706
|
+
{
|
707
|
+
"internalType": "UFixed",
|
708
|
+
"name": "fractionalFee",
|
709
|
+
"type": "uint256"
|
710
|
+
},
|
711
|
+
{
|
712
|
+
"internalType": "uint256",
|
713
|
+
"name": "fixedFee",
|
714
|
+
"type": "uint256"
|
715
|
+
}
|
716
|
+
],
|
717
|
+
"internalType": "struct Fee",
|
718
|
+
"name": "processingFee",
|
719
|
+
"type": "tuple"
|
720
|
+
},
|
721
|
+
{
|
722
|
+
"components": [
|
723
|
+
{
|
724
|
+
"internalType": "UFixed",
|
725
|
+
"name": "fractionalFee",
|
726
|
+
"type": "uint256"
|
727
|
+
},
|
728
|
+
{
|
729
|
+
"internalType": "uint256",
|
730
|
+
"name": "fixedFee",
|
731
|
+
"type": "uint256"
|
732
|
+
}
|
733
|
+
],
|
734
|
+
"internalType": "struct Fee",
|
735
|
+
"name": "poolFee",
|
736
|
+
"type": "tuple"
|
737
|
+
},
|
738
|
+
{
|
739
|
+
"components": [
|
740
|
+
{
|
741
|
+
"internalType": "UFixed",
|
742
|
+
"name": "fractionalFee",
|
743
|
+
"type": "uint256"
|
744
|
+
},
|
745
|
+
{
|
746
|
+
"internalType": "uint256",
|
747
|
+
"name": "fixedFee",
|
748
|
+
"type": "uint256"
|
749
|
+
}
|
750
|
+
],
|
751
|
+
"internalType": "struct Fee",
|
752
|
+
"name": "stakingFee",
|
753
|
+
"type": "tuple"
|
754
|
+
},
|
755
|
+
{
|
756
|
+
"components": [
|
757
|
+
{
|
758
|
+
"internalType": "UFixed",
|
759
|
+
"name": "fractionalFee",
|
760
|
+
"type": "uint256"
|
761
|
+
},
|
762
|
+
{
|
763
|
+
"internalType": "uint256",
|
764
|
+
"name": "fixedFee",
|
765
|
+
"type": "uint256"
|
766
|
+
}
|
767
|
+
],
|
768
|
+
"internalType": "struct Fee",
|
769
|
+
"name": "performanceFee",
|
770
|
+
"type": "tuple"
|
771
|
+
},
|
772
|
+
{
|
773
|
+
"internalType": "bool",
|
774
|
+
"name": "isIntercepting",
|
775
|
+
"type": "bool"
|
776
|
+
},
|
777
|
+
{
|
778
|
+
"internalType": "address",
|
779
|
+
"name": "wallet",
|
780
|
+
"type": "address"
|
781
|
+
}
|
782
|
+
],
|
783
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
784
|
+
"name": "setup",
|
785
|
+
"type": "tuple"
|
546
786
|
}
|
547
787
|
],
|
548
|
-
"
|
788
|
+
"name": "createProductSetup",
|
789
|
+
"outputs": [],
|
790
|
+
"stateMutability": "nonpayable",
|
549
791
|
"type": "function"
|
550
792
|
},
|
551
793
|
{
|
552
|
-
"inputs": [
|
553
|
-
"name": "getProductService",
|
554
|
-
"outputs": [
|
794
|
+
"inputs": [
|
555
795
|
{
|
556
|
-
"internalType": "
|
557
|
-
"name": "",
|
558
|
-
"type": "
|
559
|
-
}
|
560
|
-
|
561
|
-
|
562
|
-
|
796
|
+
"internalType": "RiskId",
|
797
|
+
"name": "riskId",
|
798
|
+
"type": "bytes8"
|
799
|
+
},
|
800
|
+
{
|
801
|
+
"components": [
|
802
|
+
{
|
803
|
+
"internalType": "NftId",
|
804
|
+
"name": "productNftId",
|
805
|
+
"type": "uint96"
|
806
|
+
},
|
807
|
+
{
|
808
|
+
"internalType": "bytes",
|
809
|
+
"name": "data",
|
810
|
+
"type": "bytes"
|
811
|
+
}
|
812
|
+
],
|
813
|
+
"internalType": "struct IRisk.RiskInfo",
|
814
|
+
"name": "risk",
|
815
|
+
"type": "tuple"
|
816
|
+
}
|
817
|
+
],
|
818
|
+
"name": "createRisk",
|
819
|
+
"outputs": [],
|
820
|
+
"stateMutability": "nonpayable",
|
821
|
+
"type": "function"
|
563
822
|
},
|
564
823
|
{
|
565
|
-
"inputs": [
|
566
|
-
|
824
|
+
"inputs": [
|
825
|
+
{
|
826
|
+
"internalType": "Key32",
|
827
|
+
"name": "key",
|
828
|
+
"type": "bytes32"
|
829
|
+
}
|
830
|
+
],
|
831
|
+
"name": "exists",
|
567
832
|
"outputs": [
|
568
833
|
{
|
569
|
-
"internalType": "
|
570
|
-
"name": "
|
571
|
-
"type": "
|
834
|
+
"internalType": "bool",
|
835
|
+
"name": "",
|
836
|
+
"type": "bool"
|
572
837
|
}
|
573
838
|
],
|
574
839
|
"stateMutability": "view",
|
@@ -577,17 +842,69 @@
|
|
577
842
|
{
|
578
843
|
"inputs": [
|
579
844
|
{
|
580
|
-
"internalType": "
|
581
|
-
"name": "
|
582
|
-
"type": "
|
845
|
+
"internalType": "Key32",
|
846
|
+
"name": "key",
|
847
|
+
"type": "bytes32"
|
583
848
|
}
|
584
849
|
],
|
585
|
-
"name": "
|
850
|
+
"name": "get",
|
586
851
|
"outputs": [
|
587
852
|
{
|
588
|
-
"
|
589
|
-
|
590
|
-
|
853
|
+
"components": [
|
854
|
+
{
|
855
|
+
"components": [
|
856
|
+
{
|
857
|
+
"internalType": "ObjectType",
|
858
|
+
"name": "objectType",
|
859
|
+
"type": "uint8"
|
860
|
+
},
|
861
|
+
{
|
862
|
+
"internalType": "StateId",
|
863
|
+
"name": "state",
|
864
|
+
"type": "uint8"
|
865
|
+
},
|
866
|
+
{
|
867
|
+
"internalType": "address",
|
868
|
+
"name": "updatedBy",
|
869
|
+
"type": "address"
|
870
|
+
},
|
871
|
+
{
|
872
|
+
"internalType": "Blocknumber",
|
873
|
+
"name": "updatedIn",
|
874
|
+
"type": "uint32"
|
875
|
+
},
|
876
|
+
{
|
877
|
+
"internalType": "Blocknumber",
|
878
|
+
"name": "createdIn",
|
879
|
+
"type": "uint32"
|
880
|
+
}
|
881
|
+
],
|
882
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
883
|
+
"name": "metadata",
|
884
|
+
"type": "tuple"
|
885
|
+
},
|
886
|
+
{
|
887
|
+
"internalType": "bytes",
|
888
|
+
"name": "data",
|
889
|
+
"type": "bytes"
|
890
|
+
}
|
891
|
+
],
|
892
|
+
"internalType": "struct IKeyValueStore.Value",
|
893
|
+
"name": "value",
|
894
|
+
"type": "tuple"
|
895
|
+
}
|
896
|
+
],
|
897
|
+
"stateMutability": "view",
|
898
|
+
"type": "function"
|
899
|
+
},
|
900
|
+
{
|
901
|
+
"inputs": [],
|
902
|
+
"name": "getBundleManager",
|
903
|
+
"outputs": [
|
904
|
+
{
|
905
|
+
"internalType": "contract BundleManager",
|
906
|
+
"name": "",
|
907
|
+
"type": "address"
|
591
908
|
}
|
592
909
|
],
|
593
910
|
"stateMutability": "view",
|
@@ -595,12 +912,12 @@
|
|
595
912
|
},
|
596
913
|
{
|
597
914
|
"inputs": [],
|
598
|
-
"name": "
|
915
|
+
"name": "getBundleService",
|
599
916
|
"outputs": [
|
600
917
|
{
|
601
|
-
"internalType": "
|
602
|
-
"name": "
|
603
|
-
"type": "
|
918
|
+
"internalType": "contract IBundleService",
|
919
|
+
"name": "",
|
920
|
+
"type": "address"
|
604
921
|
}
|
605
922
|
],
|
606
923
|
"stateMutability": "view",
|
@@ -609,52 +926,79 @@
|
|
609
926
|
{
|
610
927
|
"inputs": [
|
611
928
|
{
|
612
|
-
"internalType": "
|
613
|
-
"name": "
|
614
|
-
"type": "
|
929
|
+
"internalType": "Key32",
|
930
|
+
"name": "key",
|
931
|
+
"type": "bytes32"
|
615
932
|
}
|
616
933
|
],
|
617
|
-
"name": "
|
934
|
+
"name": "getData",
|
618
935
|
"outputs": [
|
619
936
|
{
|
620
|
-
"internalType": "
|
621
|
-
"name": "
|
622
|
-
"type": "
|
937
|
+
"internalType": "bytes",
|
938
|
+
"name": "data",
|
939
|
+
"type": "bytes"
|
623
940
|
}
|
624
941
|
],
|
625
|
-
"stateMutability": "
|
942
|
+
"stateMutability": "view",
|
626
943
|
"type": "function"
|
627
944
|
},
|
628
945
|
{
|
629
|
-
"inputs": [
|
946
|
+
"inputs": [],
|
947
|
+
"name": "getDistributionService",
|
948
|
+
"outputs": [
|
630
949
|
{
|
631
|
-
"internalType": "
|
632
|
-
"name": "
|
633
|
-
"type": "
|
950
|
+
"internalType": "contract IDistributionService",
|
951
|
+
"name": "",
|
952
|
+
"type": "address"
|
634
953
|
}
|
635
954
|
],
|
636
|
-
"
|
955
|
+
"stateMutability": "view",
|
956
|
+
"type": "function"
|
957
|
+
},
|
958
|
+
{
|
959
|
+
"inputs": [],
|
960
|
+
"name": "getInitialInfo",
|
637
961
|
"outputs": [
|
638
962
|
{
|
639
963
|
"components": [
|
640
964
|
{
|
641
|
-
"internalType": "
|
642
|
-
"name": "
|
643
|
-
"type": "
|
965
|
+
"internalType": "NftId",
|
966
|
+
"name": "nftId",
|
967
|
+
"type": "uint96"
|
968
|
+
},
|
969
|
+
{
|
970
|
+
"internalType": "NftId",
|
971
|
+
"name": "parentNftId",
|
972
|
+
"type": "uint96"
|
644
973
|
},
|
645
974
|
{
|
646
|
-
"internalType": "
|
647
|
-
"name": "
|
648
|
-
"type": "
|
975
|
+
"internalType": "ObjectType",
|
976
|
+
"name": "objectType",
|
977
|
+
"type": "uint8"
|
649
978
|
},
|
650
979
|
{
|
651
980
|
"internalType": "bool",
|
652
|
-
"name": "
|
981
|
+
"name": "isInterceptor",
|
653
982
|
"type": "bool"
|
983
|
+
},
|
984
|
+
{
|
985
|
+
"internalType": "address",
|
986
|
+
"name": "objectAddress",
|
987
|
+
"type": "address"
|
988
|
+
},
|
989
|
+
{
|
990
|
+
"internalType": "address",
|
991
|
+
"name": "initialOwner",
|
992
|
+
"type": "address"
|
993
|
+
},
|
994
|
+
{
|
995
|
+
"internalType": "bytes",
|
996
|
+
"name": "data",
|
997
|
+
"type": "bytes"
|
654
998
|
}
|
655
999
|
],
|
656
|
-
"internalType": "struct
|
657
|
-
"name": "
|
1000
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
1001
|
+
"name": "",
|
658
1002
|
"type": "tuple"
|
659
1003
|
}
|
660
1004
|
],
|
@@ -664,41 +1008,89 @@
|
|
664
1008
|
{
|
665
1009
|
"inputs": [
|
666
1010
|
{
|
667
|
-
"internalType": "
|
668
|
-
"name": "
|
669
|
-
"type": "
|
670
|
-
}
|
1011
|
+
"internalType": "ObjectType",
|
1012
|
+
"name": "objectType",
|
1013
|
+
"type": "uint8"
|
1014
|
+
}
|
1015
|
+
],
|
1016
|
+
"name": "getInitialState",
|
1017
|
+
"outputs": [
|
671
1018
|
{
|
672
|
-
"internalType": "
|
673
|
-
"name": "
|
674
|
-
"type": "
|
1019
|
+
"internalType": "StateId",
|
1020
|
+
"name": "",
|
1021
|
+
"type": "uint8"
|
675
1022
|
}
|
676
1023
|
],
|
677
|
-
"
|
1024
|
+
"stateMutability": "view",
|
1025
|
+
"type": "function"
|
1026
|
+
},
|
1027
|
+
{
|
1028
|
+
"inputs": [],
|
1029
|
+
"name": "getInstanceReader",
|
678
1030
|
"outputs": [
|
679
1031
|
{
|
680
|
-
"internalType": "
|
681
|
-
"name": "
|
1032
|
+
"internalType": "contract InstanceReader",
|
1033
|
+
"name": "",
|
682
1034
|
"type": "address"
|
683
1035
|
}
|
684
1036
|
],
|
685
1037
|
"stateMutability": "view",
|
686
1038
|
"type": "function"
|
687
1039
|
},
|
1040
|
+
{
|
1041
|
+
"inputs": [],
|
1042
|
+
"name": "getMajorVersion",
|
1043
|
+
"outputs": [
|
1044
|
+
{
|
1045
|
+
"internalType": "VersionPart",
|
1046
|
+
"name": "majorVersion",
|
1047
|
+
"type": "uint8"
|
1048
|
+
}
|
1049
|
+
],
|
1050
|
+
"stateMutability": "pure",
|
1051
|
+
"type": "function"
|
1052
|
+
},
|
688
1053
|
{
|
689
1054
|
"inputs": [
|
690
1055
|
{
|
691
|
-
"internalType": "
|
692
|
-
"name": "
|
1056
|
+
"internalType": "Key32",
|
1057
|
+
"name": "key",
|
693
1058
|
"type": "bytes32"
|
694
1059
|
}
|
695
1060
|
],
|
696
|
-
"name": "
|
1061
|
+
"name": "getMetadata",
|
697
1062
|
"outputs": [
|
698
1063
|
{
|
699
|
-
"
|
700
|
-
|
701
|
-
|
1064
|
+
"components": [
|
1065
|
+
{
|
1066
|
+
"internalType": "ObjectType",
|
1067
|
+
"name": "objectType",
|
1068
|
+
"type": "uint8"
|
1069
|
+
},
|
1070
|
+
{
|
1071
|
+
"internalType": "StateId",
|
1072
|
+
"name": "state",
|
1073
|
+
"type": "uint8"
|
1074
|
+
},
|
1075
|
+
{
|
1076
|
+
"internalType": "address",
|
1077
|
+
"name": "updatedBy",
|
1078
|
+
"type": "address"
|
1079
|
+
},
|
1080
|
+
{
|
1081
|
+
"internalType": "Blocknumber",
|
1082
|
+
"name": "updatedIn",
|
1083
|
+
"type": "uint32"
|
1084
|
+
},
|
1085
|
+
{
|
1086
|
+
"internalType": "Blocknumber",
|
1087
|
+
"name": "createdIn",
|
1088
|
+
"type": "uint32"
|
1089
|
+
}
|
1090
|
+
],
|
1091
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
1092
|
+
"name": "metadata",
|
1093
|
+
"type": "tuple"
|
702
1094
|
}
|
703
1095
|
],
|
704
1096
|
"stateMutability": "view",
|
@@ -706,54 +1098,51 @@
|
|
706
1098
|
},
|
707
1099
|
{
|
708
1100
|
"inputs": [],
|
709
|
-
"name": "
|
1101
|
+
"name": "getNftId",
|
710
1102
|
"outputs": [
|
711
1103
|
{
|
712
|
-
"internalType": "
|
713
|
-
"name": "
|
714
|
-
"type": "
|
1104
|
+
"internalType": "NftId",
|
1105
|
+
"name": "",
|
1106
|
+
"type": "uint96"
|
715
1107
|
}
|
716
1108
|
],
|
717
1109
|
"stateMutability": "view",
|
718
1110
|
"type": "function"
|
719
1111
|
},
|
720
1112
|
{
|
721
|
-
"inputs": [
|
722
|
-
|
723
|
-
|
724
|
-
"name": "role",
|
725
|
-
"type": "bytes32"
|
726
|
-
},
|
1113
|
+
"inputs": [],
|
1114
|
+
"name": "getOwner",
|
1115
|
+
"outputs": [
|
727
1116
|
{
|
728
1117
|
"internalType": "address",
|
729
|
-
"name": "
|
1118
|
+
"name": "",
|
730
1119
|
"type": "address"
|
731
1120
|
}
|
732
1121
|
],
|
733
|
-
"
|
734
|
-
"outputs": [],
|
735
|
-
"stateMutability": "nonpayable",
|
1122
|
+
"stateMutability": "view",
|
736
1123
|
"type": "function"
|
737
1124
|
},
|
738
1125
|
{
|
739
|
-
"inputs": [
|
740
|
-
|
741
|
-
|
742
|
-
"name": "role",
|
743
|
-
"type": "bytes32"
|
744
|
-
},
|
1126
|
+
"inputs": [],
|
1127
|
+
"name": "getPolicyService",
|
1128
|
+
"outputs": [
|
745
1129
|
{
|
746
|
-
"internalType": "
|
747
|
-
"name": "
|
1130
|
+
"internalType": "contract IPolicyService",
|
1131
|
+
"name": "",
|
748
1132
|
"type": "address"
|
749
1133
|
}
|
750
1134
|
],
|
751
|
-
"
|
1135
|
+
"stateMutability": "view",
|
1136
|
+
"type": "function"
|
1137
|
+
},
|
1138
|
+
{
|
1139
|
+
"inputs": [],
|
1140
|
+
"name": "getPoolService",
|
752
1141
|
"outputs": [
|
753
1142
|
{
|
754
|
-
"internalType": "
|
1143
|
+
"internalType": "contract IPoolService",
|
755
1144
|
"name": "",
|
756
|
-
"type": "
|
1145
|
+
"type": "address"
|
757
1146
|
}
|
758
1147
|
],
|
759
1148
|
"stateMutability": "view",
|
@@ -761,20 +1150,58 @@
|
|
761
1150
|
},
|
762
1151
|
{
|
763
1152
|
"inputs": [],
|
764
|
-
"name": "
|
1153
|
+
"name": "getProductService",
|
765
1154
|
"outputs": [
|
766
1155
|
{
|
767
|
-
"internalType": "
|
1156
|
+
"internalType": "contract IProductService",
|
768
1157
|
"name": "",
|
769
|
-
"type": "
|
1158
|
+
"type": "address"
|
770
1159
|
}
|
771
1160
|
],
|
772
|
-
"stateMutability": "
|
1161
|
+
"stateMutability": "view",
|
773
1162
|
"type": "function"
|
774
1163
|
},
|
775
1164
|
{
|
776
1165
|
"inputs": [],
|
777
|
-
"name": "
|
1166
|
+
"name": "getRegistry",
|
1167
|
+
"outputs": [
|
1168
|
+
{
|
1169
|
+
"internalType": "contract IRegistry",
|
1170
|
+
"name": "",
|
1171
|
+
"type": "address"
|
1172
|
+
}
|
1173
|
+
],
|
1174
|
+
"stateMutability": "view",
|
1175
|
+
"type": "function"
|
1176
|
+
},
|
1177
|
+
{
|
1178
|
+
"inputs": [
|
1179
|
+
{
|
1180
|
+
"internalType": "Key32",
|
1181
|
+
"name": "key",
|
1182
|
+
"type": "bytes32"
|
1183
|
+
}
|
1184
|
+
],
|
1185
|
+
"name": "getState",
|
1186
|
+
"outputs": [
|
1187
|
+
{
|
1188
|
+
"internalType": "StateId",
|
1189
|
+
"name": "state",
|
1190
|
+
"type": "uint8"
|
1191
|
+
}
|
1192
|
+
],
|
1193
|
+
"stateMutability": "view",
|
1194
|
+
"type": "function"
|
1195
|
+
},
|
1196
|
+
{
|
1197
|
+
"inputs": [
|
1198
|
+
{
|
1199
|
+
"internalType": "ObjectType",
|
1200
|
+
"name": "objectType",
|
1201
|
+
"type": "uint8"
|
1202
|
+
}
|
1203
|
+
],
|
1204
|
+
"name": "hasLifecycle",
|
778
1205
|
"outputs": [
|
779
1206
|
{
|
780
1207
|
"internalType": "bool",
|
@@ -787,50 +1214,62 @@
|
|
787
1214
|
},
|
788
1215
|
{
|
789
1216
|
"inputs": [],
|
790
|
-
"name": "
|
1217
|
+
"name": "isConsumingScheduledOp",
|
791
1218
|
"outputs": [
|
792
1219
|
{
|
793
|
-
"internalType": "
|
794
|
-
"name": "
|
795
|
-
"type": "
|
1220
|
+
"internalType": "bytes4",
|
1221
|
+
"name": "",
|
1222
|
+
"type": "bytes4"
|
796
1223
|
}
|
797
1224
|
],
|
798
|
-
"stateMutability": "
|
1225
|
+
"stateMutability": "view",
|
799
1226
|
"type": "function"
|
800
1227
|
},
|
801
1228
|
{
|
802
1229
|
"inputs": [
|
803
1230
|
{
|
804
|
-
"internalType": "
|
805
|
-
"name": "
|
806
|
-
"type": "
|
1231
|
+
"internalType": "ObjectType",
|
1232
|
+
"name": "objectType",
|
1233
|
+
"type": "uint8"
|
1234
|
+
},
|
1235
|
+
{
|
1236
|
+
"internalType": "StateId",
|
1237
|
+
"name": "fromId",
|
1238
|
+
"type": "uint8"
|
1239
|
+
},
|
1240
|
+
{
|
1241
|
+
"internalType": "StateId",
|
1242
|
+
"name": "toId",
|
1243
|
+
"type": "uint8"
|
807
1244
|
}
|
808
1245
|
],
|
809
|
-
"name": "
|
1246
|
+
"name": "isValidTransition",
|
810
1247
|
"outputs": [
|
811
1248
|
{
|
812
|
-
"internalType": "
|
813
|
-
"name": "
|
814
|
-
"type": "
|
1249
|
+
"internalType": "bool",
|
1250
|
+
"name": "",
|
1251
|
+
"type": "bool"
|
815
1252
|
}
|
816
1253
|
],
|
1254
|
+
"stateMutability": "view",
|
1255
|
+
"type": "function"
|
1256
|
+
},
|
1257
|
+
{
|
1258
|
+
"inputs": [],
|
1259
|
+
"name": "linkToRegisteredNftId",
|
1260
|
+
"outputs": [],
|
817
1261
|
"stateMutability": "nonpayable",
|
818
1262
|
"type": "function"
|
819
1263
|
},
|
820
1264
|
{
|
821
1265
|
"inputs": [
|
822
|
-
{
|
823
|
-
"internalType": "bytes32",
|
824
|
-
"name": "role",
|
825
|
-
"type": "bytes32"
|
826
|
-
},
|
827
1266
|
{
|
828
1267
|
"internalType": "address",
|
829
|
-
"name": "
|
1268
|
+
"name": "",
|
830
1269
|
"type": "address"
|
831
1270
|
}
|
832
1271
|
],
|
833
|
-
"name": "
|
1272
|
+
"name": "setAuthority",
|
834
1273
|
"outputs": [],
|
835
1274
|
"stateMutability": "nonpayable",
|
836
1275
|
"type": "function"
|
@@ -838,48 +1277,697 @@
|
|
838
1277
|
{
|
839
1278
|
"inputs": [
|
840
1279
|
{
|
841
|
-
"
|
842
|
-
|
843
|
-
|
844
|
-
"name": "nftId",
|
845
|
-
"type": "uint96"
|
846
|
-
},
|
847
|
-
{
|
848
|
-
"internalType": "enum IComponent.CState",
|
849
|
-
"name": "state",
|
850
|
-
"type": "uint8"
|
851
|
-
}
|
852
|
-
],
|
853
|
-
"internalType": "struct IComponent.ComponentInfo",
|
854
|
-
"name": "info",
|
855
|
-
"type": "tuple"
|
1280
|
+
"internalType": "bytes4",
|
1281
|
+
"name": "interfaceId",
|
1282
|
+
"type": "bytes4"
|
856
1283
|
}
|
857
1284
|
],
|
858
|
-
"name": "
|
1285
|
+
"name": "supportsInterface",
|
859
1286
|
"outputs": [
|
860
1287
|
{
|
861
|
-
"internalType": "
|
862
|
-
"name": "
|
863
|
-
"type": "
|
1288
|
+
"internalType": "bool",
|
1289
|
+
"name": "",
|
1290
|
+
"type": "bool"
|
864
1291
|
}
|
865
1292
|
],
|
866
|
-
"stateMutability": "
|
1293
|
+
"stateMutability": "view",
|
867
1294
|
"type": "function"
|
868
1295
|
},
|
869
1296
|
{
|
870
1297
|
"inputs": [
|
871
1298
|
{
|
872
|
-
"internalType": "
|
873
|
-
"name": "
|
874
|
-
"type": "
|
1299
|
+
"internalType": "ObjectType",
|
1300
|
+
"name": "objectType",
|
1301
|
+
"type": "uint8"
|
875
1302
|
},
|
876
1303
|
{
|
877
|
-
"internalType": "
|
1304
|
+
"internalType": "KeyId",
|
1305
|
+
"name": "id",
|
1306
|
+
"type": "bytes31"
|
1307
|
+
}
|
1308
|
+
],
|
1309
|
+
"name": "toKey32",
|
1310
|
+
"outputs": [
|
1311
|
+
{
|
1312
|
+
"internalType": "Key32",
|
1313
|
+
"name": "",
|
1314
|
+
"type": "bytes32"
|
1315
|
+
}
|
1316
|
+
],
|
1317
|
+
"stateMutability": "pure",
|
1318
|
+
"type": "function"
|
1319
|
+
},
|
1320
|
+
{
|
1321
|
+
"inputs": [
|
1322
|
+
{
|
1323
|
+
"internalType": "NftId",
|
1324
|
+
"name": "bundleNftId",
|
1325
|
+
"type": "uint96"
|
1326
|
+
},
|
1327
|
+
{
|
1328
|
+
"components": [
|
1329
|
+
{
|
1330
|
+
"internalType": "NftId",
|
1331
|
+
"name": "poolNftId",
|
1332
|
+
"type": "uint96"
|
1333
|
+
},
|
1334
|
+
{
|
1335
|
+
"components": [
|
1336
|
+
{
|
1337
|
+
"internalType": "UFixed",
|
1338
|
+
"name": "fractionalFee",
|
1339
|
+
"type": "uint256"
|
1340
|
+
},
|
1341
|
+
{
|
1342
|
+
"internalType": "uint256",
|
1343
|
+
"name": "fixedFee",
|
1344
|
+
"type": "uint256"
|
1345
|
+
}
|
1346
|
+
],
|
1347
|
+
"internalType": "struct Fee",
|
1348
|
+
"name": "fee",
|
1349
|
+
"type": "tuple"
|
1350
|
+
},
|
1351
|
+
{
|
1352
|
+
"internalType": "bytes",
|
1353
|
+
"name": "filter",
|
1354
|
+
"type": "bytes"
|
1355
|
+
},
|
1356
|
+
{
|
1357
|
+
"internalType": "uint256",
|
1358
|
+
"name": "capitalAmount",
|
1359
|
+
"type": "uint256"
|
1360
|
+
},
|
1361
|
+
{
|
1362
|
+
"internalType": "uint256",
|
1363
|
+
"name": "lockedAmount",
|
1364
|
+
"type": "uint256"
|
1365
|
+
},
|
1366
|
+
{
|
1367
|
+
"internalType": "uint256",
|
1368
|
+
"name": "balanceAmount",
|
1369
|
+
"type": "uint256"
|
1370
|
+
},
|
1371
|
+
{
|
1372
|
+
"internalType": "uint256",
|
1373
|
+
"name": "lifetime",
|
1374
|
+
"type": "uint256"
|
1375
|
+
},
|
1376
|
+
{
|
1377
|
+
"internalType": "Timestamp",
|
1378
|
+
"name": "expiredAt",
|
1379
|
+
"type": "uint40"
|
1380
|
+
},
|
1381
|
+
{
|
1382
|
+
"internalType": "Timestamp",
|
1383
|
+
"name": "closedAt",
|
1384
|
+
"type": "uint40"
|
1385
|
+
}
|
1386
|
+
],
|
1387
|
+
"internalType": "struct IBundle.BundleInfo",
|
1388
|
+
"name": "bundle",
|
1389
|
+
"type": "tuple"
|
1390
|
+
},
|
1391
|
+
{
|
1392
|
+
"internalType": "StateId",
|
1393
|
+
"name": "newState",
|
1394
|
+
"type": "uint8"
|
1395
|
+
}
|
1396
|
+
],
|
1397
|
+
"name": "updateBundle",
|
1398
|
+
"outputs": [],
|
1399
|
+
"stateMutability": "nonpayable",
|
1400
|
+
"type": "function"
|
1401
|
+
},
|
1402
|
+
{
|
1403
|
+
"inputs": [
|
1404
|
+
{
|
1405
|
+
"internalType": "NftId",
|
1406
|
+
"name": "bundleNftId",
|
1407
|
+
"type": "uint96"
|
1408
|
+
},
|
1409
|
+
{
|
1410
|
+
"internalType": "StateId",
|
1411
|
+
"name": "newState",
|
1412
|
+
"type": "uint8"
|
1413
|
+
}
|
1414
|
+
],
|
1415
|
+
"name": "updateBundleState",
|
1416
|
+
"outputs": [],
|
1417
|
+
"stateMutability": "nonpayable",
|
1418
|
+
"type": "function"
|
1419
|
+
},
|
1420
|
+
{
|
1421
|
+
"inputs": [
|
1422
|
+
{
|
1423
|
+
"internalType": "NftId",
|
1424
|
+
"name": "distributionNftId",
|
1425
|
+
"type": "uint96"
|
1426
|
+
},
|
1427
|
+
{
|
1428
|
+
"components": [
|
1429
|
+
{
|
1430
|
+
"internalType": "NftId",
|
1431
|
+
"name": "productNftId",
|
1432
|
+
"type": "uint96"
|
1433
|
+
},
|
1434
|
+
{
|
1435
|
+
"internalType": "contract TokenHandler",
|
1436
|
+
"name": "tokenHandler",
|
1437
|
+
"type": "address"
|
1438
|
+
},
|
1439
|
+
{
|
1440
|
+
"components": [
|
1441
|
+
{
|
1442
|
+
"internalType": "UFixed",
|
1443
|
+
"name": "fractionalFee",
|
1444
|
+
"type": "uint256"
|
1445
|
+
},
|
1446
|
+
{
|
1447
|
+
"internalType": "uint256",
|
1448
|
+
"name": "fixedFee",
|
1449
|
+
"type": "uint256"
|
1450
|
+
}
|
1451
|
+
],
|
1452
|
+
"internalType": "struct Fee",
|
1453
|
+
"name": "distributionFee",
|
1454
|
+
"type": "tuple"
|
1455
|
+
},
|
1456
|
+
{
|
1457
|
+
"internalType": "bool",
|
1458
|
+
"name": "isIntercepting",
|
1459
|
+
"type": "bool"
|
1460
|
+
},
|
1461
|
+
{
|
1462
|
+
"internalType": "address",
|
1463
|
+
"name": "wallet",
|
1464
|
+
"type": "address"
|
1465
|
+
}
|
1466
|
+
],
|
1467
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
1468
|
+
"name": "setup",
|
1469
|
+
"type": "tuple"
|
1470
|
+
},
|
1471
|
+
{
|
1472
|
+
"internalType": "StateId",
|
1473
|
+
"name": "newState",
|
1474
|
+
"type": "uint8"
|
1475
|
+
}
|
1476
|
+
],
|
1477
|
+
"name": "updateDistributionSetup",
|
1478
|
+
"outputs": [],
|
1479
|
+
"stateMutability": "nonpayable",
|
1480
|
+
"type": "function"
|
1481
|
+
},
|
1482
|
+
{
|
1483
|
+
"inputs": [
|
1484
|
+
{
|
1485
|
+
"internalType": "NftId",
|
1486
|
+
"name": "distributionNftId",
|
1487
|
+
"type": "uint96"
|
1488
|
+
},
|
1489
|
+
{
|
1490
|
+
"internalType": "StateId",
|
1491
|
+
"name": "newState",
|
1492
|
+
"type": "uint8"
|
1493
|
+
}
|
1494
|
+
],
|
1495
|
+
"name": "updateDistributionSetupState",
|
1496
|
+
"outputs": [],
|
1497
|
+
"stateMutability": "nonpayable",
|
1498
|
+
"type": "function"
|
1499
|
+
},
|
1500
|
+
{
|
1501
|
+
"inputs": [
|
1502
|
+
{
|
1503
|
+
"internalType": "NftId",
|
1504
|
+
"name": "policyNftId",
|
1505
|
+
"type": "uint96"
|
1506
|
+
},
|
1507
|
+
{
|
1508
|
+
"components": [
|
1509
|
+
{
|
1510
|
+
"internalType": "NftId",
|
1511
|
+
"name": "productNftId",
|
1512
|
+
"type": "uint96"
|
1513
|
+
},
|
1514
|
+
{
|
1515
|
+
"internalType": "NftId",
|
1516
|
+
"name": "bundleNftId",
|
1517
|
+
"type": "uint96"
|
1518
|
+
},
|
1519
|
+
{
|
1520
|
+
"internalType": "ReferralId",
|
1521
|
+
"name": "referralId",
|
1522
|
+
"type": "bytes8"
|
1523
|
+
},
|
1524
|
+
{
|
1525
|
+
"internalType": "RiskId",
|
1526
|
+
"name": "riskId",
|
1527
|
+
"type": "bytes8"
|
1528
|
+
},
|
1529
|
+
{
|
1530
|
+
"internalType": "uint256",
|
1531
|
+
"name": "sumInsuredAmount",
|
1532
|
+
"type": "uint256"
|
1533
|
+
},
|
1534
|
+
{
|
1535
|
+
"internalType": "uint256",
|
1536
|
+
"name": "premiumAmount",
|
1537
|
+
"type": "uint256"
|
1538
|
+
},
|
1539
|
+
{
|
1540
|
+
"internalType": "uint256",
|
1541
|
+
"name": "premiumPaidAmount",
|
1542
|
+
"type": "uint256"
|
1543
|
+
},
|
1544
|
+
{
|
1545
|
+
"internalType": "uint256",
|
1546
|
+
"name": "lifetime",
|
1547
|
+
"type": "uint256"
|
1548
|
+
},
|
1549
|
+
{
|
1550
|
+
"internalType": "bytes",
|
1551
|
+
"name": "applicationData",
|
1552
|
+
"type": "bytes"
|
1553
|
+
},
|
1554
|
+
{
|
1555
|
+
"internalType": "bytes",
|
1556
|
+
"name": "policyData",
|
1557
|
+
"type": "bytes"
|
1558
|
+
},
|
1559
|
+
{
|
1560
|
+
"internalType": "uint16",
|
1561
|
+
"name": "claimsCount",
|
1562
|
+
"type": "uint16"
|
1563
|
+
},
|
1564
|
+
{
|
1565
|
+
"internalType": "uint16",
|
1566
|
+
"name": "openClaimsCount",
|
1567
|
+
"type": "uint16"
|
1568
|
+
},
|
1569
|
+
{
|
1570
|
+
"internalType": "uint256",
|
1571
|
+
"name": "payoutAmount",
|
1572
|
+
"type": "uint256"
|
1573
|
+
},
|
1574
|
+
{
|
1575
|
+
"internalType": "Timestamp",
|
1576
|
+
"name": "activatedAt",
|
1577
|
+
"type": "uint40"
|
1578
|
+
},
|
1579
|
+
{
|
1580
|
+
"internalType": "Timestamp",
|
1581
|
+
"name": "expiredAt",
|
1582
|
+
"type": "uint40"
|
1583
|
+
},
|
1584
|
+
{
|
1585
|
+
"internalType": "Timestamp",
|
1586
|
+
"name": "closedAt",
|
1587
|
+
"type": "uint40"
|
1588
|
+
}
|
1589
|
+
],
|
1590
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
1591
|
+
"name": "policy",
|
1592
|
+
"type": "tuple"
|
1593
|
+
},
|
1594
|
+
{
|
1595
|
+
"internalType": "StateId",
|
1596
|
+
"name": "newState",
|
1597
|
+
"type": "uint8"
|
1598
|
+
}
|
1599
|
+
],
|
1600
|
+
"name": "updatePolicy",
|
1601
|
+
"outputs": [],
|
1602
|
+
"stateMutability": "nonpayable",
|
1603
|
+
"type": "function"
|
1604
|
+
},
|
1605
|
+
{
|
1606
|
+
"inputs": [
|
1607
|
+
{
|
1608
|
+
"internalType": "NftId",
|
878
1609
|
"name": "policyNftId",
|
879
1610
|
"type": "uint96"
|
1611
|
+
},
|
1612
|
+
{
|
1613
|
+
"internalType": "StateId",
|
1614
|
+
"name": "newState",
|
1615
|
+
"type": "uint8"
|
1616
|
+
}
|
1617
|
+
],
|
1618
|
+
"name": "updatePolicyState",
|
1619
|
+
"outputs": [],
|
1620
|
+
"stateMutability": "nonpayable",
|
1621
|
+
"type": "function"
|
1622
|
+
},
|
1623
|
+
{
|
1624
|
+
"inputs": [
|
1625
|
+
{
|
1626
|
+
"internalType": "NftId",
|
1627
|
+
"name": "poolNftId",
|
1628
|
+
"type": "uint96"
|
1629
|
+
},
|
1630
|
+
{
|
1631
|
+
"components": [
|
1632
|
+
{
|
1633
|
+
"internalType": "NftId",
|
1634
|
+
"name": "productNftId",
|
1635
|
+
"type": "uint96"
|
1636
|
+
},
|
1637
|
+
{
|
1638
|
+
"internalType": "contract TokenHandler",
|
1639
|
+
"name": "tokenHandler",
|
1640
|
+
"type": "address"
|
1641
|
+
},
|
1642
|
+
{
|
1643
|
+
"internalType": "UFixed",
|
1644
|
+
"name": "collateralizationLevel",
|
1645
|
+
"type": "uint256"
|
1646
|
+
},
|
1647
|
+
{
|
1648
|
+
"components": [
|
1649
|
+
{
|
1650
|
+
"internalType": "UFixed",
|
1651
|
+
"name": "fractionalFee",
|
1652
|
+
"type": "uint256"
|
1653
|
+
},
|
1654
|
+
{
|
1655
|
+
"internalType": "uint256",
|
1656
|
+
"name": "fixedFee",
|
1657
|
+
"type": "uint256"
|
1658
|
+
}
|
1659
|
+
],
|
1660
|
+
"internalType": "struct Fee",
|
1661
|
+
"name": "poolFee",
|
1662
|
+
"type": "tuple"
|
1663
|
+
},
|
1664
|
+
{
|
1665
|
+
"components": [
|
1666
|
+
{
|
1667
|
+
"internalType": "UFixed",
|
1668
|
+
"name": "fractionalFee",
|
1669
|
+
"type": "uint256"
|
1670
|
+
},
|
1671
|
+
{
|
1672
|
+
"internalType": "uint256",
|
1673
|
+
"name": "fixedFee",
|
1674
|
+
"type": "uint256"
|
1675
|
+
}
|
1676
|
+
],
|
1677
|
+
"internalType": "struct Fee",
|
1678
|
+
"name": "stakingFee",
|
1679
|
+
"type": "tuple"
|
1680
|
+
},
|
1681
|
+
{
|
1682
|
+
"components": [
|
1683
|
+
{
|
1684
|
+
"internalType": "UFixed",
|
1685
|
+
"name": "fractionalFee",
|
1686
|
+
"type": "uint256"
|
1687
|
+
},
|
1688
|
+
{
|
1689
|
+
"internalType": "uint256",
|
1690
|
+
"name": "fixedFee",
|
1691
|
+
"type": "uint256"
|
1692
|
+
}
|
1693
|
+
],
|
1694
|
+
"internalType": "struct Fee",
|
1695
|
+
"name": "performanceFee",
|
1696
|
+
"type": "tuple"
|
1697
|
+
},
|
1698
|
+
{
|
1699
|
+
"internalType": "bool",
|
1700
|
+
"name": "isIntercepting",
|
1701
|
+
"type": "bool"
|
1702
|
+
},
|
1703
|
+
{
|
1704
|
+
"internalType": "bool",
|
1705
|
+
"name": "isConfirmingApplication",
|
1706
|
+
"type": "bool"
|
1707
|
+
},
|
1708
|
+
{
|
1709
|
+
"internalType": "address",
|
1710
|
+
"name": "wallet",
|
1711
|
+
"type": "address"
|
1712
|
+
}
|
1713
|
+
],
|
1714
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
1715
|
+
"name": "setup",
|
1716
|
+
"type": "tuple"
|
1717
|
+
},
|
1718
|
+
{
|
1719
|
+
"internalType": "StateId",
|
1720
|
+
"name": "newState",
|
1721
|
+
"type": "uint8"
|
1722
|
+
}
|
1723
|
+
],
|
1724
|
+
"name": "updatePoolSetup",
|
1725
|
+
"outputs": [],
|
1726
|
+
"stateMutability": "nonpayable",
|
1727
|
+
"type": "function"
|
1728
|
+
},
|
1729
|
+
{
|
1730
|
+
"inputs": [
|
1731
|
+
{
|
1732
|
+
"internalType": "NftId",
|
1733
|
+
"name": "poolNftId",
|
1734
|
+
"type": "uint96"
|
1735
|
+
},
|
1736
|
+
{
|
1737
|
+
"internalType": "StateId",
|
1738
|
+
"name": "newState",
|
1739
|
+
"type": "uint8"
|
1740
|
+
}
|
1741
|
+
],
|
1742
|
+
"name": "updatePoolSetupState",
|
1743
|
+
"outputs": [],
|
1744
|
+
"stateMutability": "nonpayable",
|
1745
|
+
"type": "function"
|
1746
|
+
},
|
1747
|
+
{
|
1748
|
+
"inputs": [
|
1749
|
+
{
|
1750
|
+
"internalType": "NftId",
|
1751
|
+
"name": "productNftId",
|
1752
|
+
"type": "uint96"
|
1753
|
+
},
|
1754
|
+
{
|
1755
|
+
"components": [
|
1756
|
+
{
|
1757
|
+
"internalType": "contract IERC20Metadata",
|
1758
|
+
"name": "token",
|
1759
|
+
"type": "address"
|
1760
|
+
},
|
1761
|
+
{
|
1762
|
+
"internalType": "contract TokenHandler",
|
1763
|
+
"name": "tokenHandler",
|
1764
|
+
"type": "address"
|
1765
|
+
},
|
1766
|
+
{
|
1767
|
+
"internalType": "NftId",
|
1768
|
+
"name": "distributionNftId",
|
1769
|
+
"type": "uint96"
|
1770
|
+
},
|
1771
|
+
{
|
1772
|
+
"internalType": "NftId",
|
1773
|
+
"name": "poolNftId",
|
1774
|
+
"type": "uint96"
|
1775
|
+
},
|
1776
|
+
{
|
1777
|
+
"components": [
|
1778
|
+
{
|
1779
|
+
"internalType": "UFixed",
|
1780
|
+
"name": "fractionalFee",
|
1781
|
+
"type": "uint256"
|
1782
|
+
},
|
1783
|
+
{
|
1784
|
+
"internalType": "uint256",
|
1785
|
+
"name": "fixedFee",
|
1786
|
+
"type": "uint256"
|
1787
|
+
}
|
1788
|
+
],
|
1789
|
+
"internalType": "struct Fee",
|
1790
|
+
"name": "distributionFee",
|
1791
|
+
"type": "tuple"
|
1792
|
+
},
|
1793
|
+
{
|
1794
|
+
"components": [
|
1795
|
+
{
|
1796
|
+
"internalType": "UFixed",
|
1797
|
+
"name": "fractionalFee",
|
1798
|
+
"type": "uint256"
|
1799
|
+
},
|
1800
|
+
{
|
1801
|
+
"internalType": "uint256",
|
1802
|
+
"name": "fixedFee",
|
1803
|
+
"type": "uint256"
|
1804
|
+
}
|
1805
|
+
],
|
1806
|
+
"internalType": "struct Fee",
|
1807
|
+
"name": "productFee",
|
1808
|
+
"type": "tuple"
|
1809
|
+
},
|
1810
|
+
{
|
1811
|
+
"components": [
|
1812
|
+
{
|
1813
|
+
"internalType": "UFixed",
|
1814
|
+
"name": "fractionalFee",
|
1815
|
+
"type": "uint256"
|
1816
|
+
},
|
1817
|
+
{
|
1818
|
+
"internalType": "uint256",
|
1819
|
+
"name": "fixedFee",
|
1820
|
+
"type": "uint256"
|
1821
|
+
}
|
1822
|
+
],
|
1823
|
+
"internalType": "struct Fee",
|
1824
|
+
"name": "processingFee",
|
1825
|
+
"type": "tuple"
|
1826
|
+
},
|
1827
|
+
{
|
1828
|
+
"components": [
|
1829
|
+
{
|
1830
|
+
"internalType": "UFixed",
|
1831
|
+
"name": "fractionalFee",
|
1832
|
+
"type": "uint256"
|
1833
|
+
},
|
1834
|
+
{
|
1835
|
+
"internalType": "uint256",
|
1836
|
+
"name": "fixedFee",
|
1837
|
+
"type": "uint256"
|
1838
|
+
}
|
1839
|
+
],
|
1840
|
+
"internalType": "struct Fee",
|
1841
|
+
"name": "poolFee",
|
1842
|
+
"type": "tuple"
|
1843
|
+
},
|
1844
|
+
{
|
1845
|
+
"components": [
|
1846
|
+
{
|
1847
|
+
"internalType": "UFixed",
|
1848
|
+
"name": "fractionalFee",
|
1849
|
+
"type": "uint256"
|
1850
|
+
},
|
1851
|
+
{
|
1852
|
+
"internalType": "uint256",
|
1853
|
+
"name": "fixedFee",
|
1854
|
+
"type": "uint256"
|
1855
|
+
}
|
1856
|
+
],
|
1857
|
+
"internalType": "struct Fee",
|
1858
|
+
"name": "stakingFee",
|
1859
|
+
"type": "tuple"
|
1860
|
+
},
|
1861
|
+
{
|
1862
|
+
"components": [
|
1863
|
+
{
|
1864
|
+
"internalType": "UFixed",
|
1865
|
+
"name": "fractionalFee",
|
1866
|
+
"type": "uint256"
|
1867
|
+
},
|
1868
|
+
{
|
1869
|
+
"internalType": "uint256",
|
1870
|
+
"name": "fixedFee",
|
1871
|
+
"type": "uint256"
|
1872
|
+
}
|
1873
|
+
],
|
1874
|
+
"internalType": "struct Fee",
|
1875
|
+
"name": "performanceFee",
|
1876
|
+
"type": "tuple"
|
1877
|
+
},
|
1878
|
+
{
|
1879
|
+
"internalType": "bool",
|
1880
|
+
"name": "isIntercepting",
|
1881
|
+
"type": "bool"
|
1882
|
+
},
|
1883
|
+
{
|
1884
|
+
"internalType": "address",
|
1885
|
+
"name": "wallet",
|
1886
|
+
"type": "address"
|
1887
|
+
}
|
1888
|
+
],
|
1889
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
1890
|
+
"name": "setup",
|
1891
|
+
"type": "tuple"
|
1892
|
+
},
|
1893
|
+
{
|
1894
|
+
"internalType": "StateId",
|
1895
|
+
"name": "newState",
|
1896
|
+
"type": "uint8"
|
1897
|
+
}
|
1898
|
+
],
|
1899
|
+
"name": "updateProductSetup",
|
1900
|
+
"outputs": [],
|
1901
|
+
"stateMutability": "nonpayable",
|
1902
|
+
"type": "function"
|
1903
|
+
},
|
1904
|
+
{
|
1905
|
+
"inputs": [
|
1906
|
+
{
|
1907
|
+
"internalType": "NftId",
|
1908
|
+
"name": "productNftId",
|
1909
|
+
"type": "uint96"
|
1910
|
+
},
|
1911
|
+
{
|
1912
|
+
"internalType": "StateId",
|
1913
|
+
"name": "newState",
|
1914
|
+
"type": "uint8"
|
1915
|
+
}
|
1916
|
+
],
|
1917
|
+
"name": "updateProductSetupState",
|
1918
|
+
"outputs": [],
|
1919
|
+
"stateMutability": "nonpayable",
|
1920
|
+
"type": "function"
|
1921
|
+
},
|
1922
|
+
{
|
1923
|
+
"inputs": [
|
1924
|
+
{
|
1925
|
+
"internalType": "RiskId",
|
1926
|
+
"name": "riskId",
|
1927
|
+
"type": "bytes8"
|
1928
|
+
},
|
1929
|
+
{
|
1930
|
+
"components": [
|
1931
|
+
{
|
1932
|
+
"internalType": "NftId",
|
1933
|
+
"name": "productNftId",
|
1934
|
+
"type": "uint96"
|
1935
|
+
},
|
1936
|
+
{
|
1937
|
+
"internalType": "bytes",
|
1938
|
+
"name": "data",
|
1939
|
+
"type": "bytes"
|
1940
|
+
}
|
1941
|
+
],
|
1942
|
+
"internalType": "struct IRisk.RiskInfo",
|
1943
|
+
"name": "risk",
|
1944
|
+
"type": "tuple"
|
1945
|
+
},
|
1946
|
+
{
|
1947
|
+
"internalType": "StateId",
|
1948
|
+
"name": "newState",
|
1949
|
+
"type": "uint8"
|
1950
|
+
}
|
1951
|
+
],
|
1952
|
+
"name": "updateRisk",
|
1953
|
+
"outputs": [],
|
1954
|
+
"stateMutability": "nonpayable",
|
1955
|
+
"type": "function"
|
1956
|
+
},
|
1957
|
+
{
|
1958
|
+
"inputs": [
|
1959
|
+
{
|
1960
|
+
"internalType": "RiskId",
|
1961
|
+
"name": "riskId",
|
1962
|
+
"type": "bytes8"
|
1963
|
+
},
|
1964
|
+
{
|
1965
|
+
"internalType": "StateId",
|
1966
|
+
"name": "newState",
|
1967
|
+
"type": "uint8"
|
880
1968
|
}
|
881
1969
|
],
|
882
|
-
"name": "
|
1970
|
+
"name": "updateRiskState",
|
883
1971
|
"outputs": [],
|
884
1972
|
"stateMutability": "nonpayable",
|
885
1973
|
"type": "function"
|