@etherisc/gif-next 0.0.2-efef0ea-320 → 0.0.2-f02157b-803

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