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