@etherisc/gif-next 0.0.2-ce8407f-016 → 0.0.2-ceb30b2-601

Sign up to get free protection for your applications and to get access to all the features.
Files changed (374) hide show
  1. package/README.md +178 -14
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +829 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1332 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +592 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +956 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +1051 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +817 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +4 -0
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +1363 -0
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +4 -0
  17. package/artifacts/contracts/components/Product.sol/Product.json +1154 -0
  18. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  19. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  20. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  21. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  23. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +91 -2
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2719 -1
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +600 -0
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +1220 -1347
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +593 -180
  32. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  33. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +586 -56
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1014 -32
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +724 -0
  38. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  39. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
  40. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  41. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +631 -0
  42. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +0 -77
  44. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -244
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  49. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +71 -45
  51. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  53. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  54. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  56. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  58. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  59. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  60. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1092 -0
  61. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  62. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +672 -0
  63. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  64. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1313 -0
  65. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  66. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +712 -0
  67. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  68. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1316 -0
  69. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  70. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +724 -0
  71. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  72. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1798 -0
  73. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  74. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +780 -0
  75. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  76. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +619 -0
  77. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  78. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +701 -0
  79. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +731 -0
  81. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +1082 -0
  83. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  84. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +651 -0
  85. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +1077 -0
  87. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  88. package/artifacts/contracts/instance/{base/IService.sol/IService.json → service/IProductService.sol/IProductService.json} +178 -157
  89. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  90. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1153 -0
  91. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  92. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +676 -0
  93. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  94. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1598 -0
  95. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +696 -0
  97. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  98. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +864 -0
  99. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  100. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +640 -0
  101. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  102. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +60 -2
  103. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  104. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +255 -63
  105. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  106. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +309 -196
  107. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  108. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  109. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  110. package/artifacts/contracts/registry/Registry.sol/Registry.json +229 -212
  111. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  112. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  113. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  114. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +421 -284
  115. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  116. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +310 -129
  117. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  118. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  119. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  120. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +485 -0
  121. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  122. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  123. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  124. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  125. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +27 -29
  126. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  127. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +165 -0
  128. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  129. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +8 -34
  130. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  131. package/artifacts/contracts/{experiment/inheritance/IA.sol/ISharedA.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +15 -17
  132. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  133. package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/IService.sol/IService.json} +115 -29
  134. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  135. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  136. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +107 -27
  138. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  139. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +271 -0
  140. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  141. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +283 -63
  142. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  143. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +116 -51
  144. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  145. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
  146. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  147. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +187 -167
  148. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  149. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  150. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  151. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  152. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  153. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  154. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  156. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +116 -51
  158. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +111 -5
  160. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  161. package/artifacts/contracts/test/TestService.sol/TestService.json +204 -216
  162. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  163. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  164. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  165. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  166. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  167. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  168. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  169. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  170. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  171. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
  172. package/artifacts/contracts/types/Amount.sol/AmountLib.json +209 -0
  173. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  175. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  177. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
  178. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  180. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/Fee.sol/FeeLib.json +42 -11
  182. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  183. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  184. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  186. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  187. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  188. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  191. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  192. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +209 -0
  193. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  195. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  197. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  199. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  200. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  201. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  202. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  203. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  204. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
  205. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  206. package/artifacts/contracts/{experiment/types/TypeB.sol/TypeBLib.json → types/UFixed.sol/MathLib.json} +4 -4
  207. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  208. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  209. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  210. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  211. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  212. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  213. package/contracts/components/Component.sol +253 -0
  214. package/contracts/components/Distribution.sol +284 -0
  215. package/contracts/components/IComponent.sol +76 -0
  216. package/contracts/components/IDistributionComponent.sol +71 -0
  217. package/contracts/components/IPoolComponent.sol +113 -0
  218. package/contracts/components/IProductComponent.sol +40 -0
  219. package/contracts/components/Pool.sol +302 -0
  220. package/contracts/components/Product.sol +371 -0
  221. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  222. package/contracts/instance/BundleManager.sol +126 -0
  223. package/contracts/instance/Cloneable.sol +51 -0
  224. package/contracts/instance/IInstance.sol +99 -1
  225. package/contracts/instance/IInstanceService.sol +63 -0
  226. package/contracts/instance/Instance.sol +169 -243
  227. package/contracts/instance/InstanceAccessManager.sol +417 -178
  228. package/contracts/instance/InstanceReader.sol +116 -34
  229. package/contracts/instance/InstanceService.sol +462 -23
  230. package/contracts/instance/InstanceServiceManager.sol +54 -0
  231. package/contracts/instance/ObjectManager.sol +82 -0
  232. package/contracts/instance/base/ComponentService.sol +130 -0
  233. package/contracts/instance/base/IKeyValueStore.sol +5 -4
  234. package/contracts/instance/base/KeyValueStore.sol +13 -52
  235. package/contracts/instance/base/Lifecycle.sol +23 -6
  236. package/contracts/instance/module/IAccess.sol +37 -21
  237. package/contracts/instance/module/IBundle.sol +8 -4
  238. package/contracts/instance/module/IComponents.sol +41 -0
  239. package/contracts/instance/module/IDistribution.sol +2 -0
  240. package/contracts/instance/module/IPolicy.sol +42 -9
  241. package/contracts/instance/module/ISetup.sol +10 -18
  242. package/contracts/instance/module/ITreasury.sol +1 -1
  243. package/contracts/instance/service/ApplicationService.sol +356 -0
  244. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  245. package/contracts/instance/service/BundleService.sol +443 -0
  246. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  247. package/contracts/instance/service/ClaimService.sol +361 -0
  248. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  249. package/contracts/instance/service/DistributionService.sol +431 -0
  250. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  251. package/contracts/instance/service/IApplicationService.sol +78 -0
  252. package/contracts/instance/service/IBundleService.sol +102 -0
  253. package/contracts/instance/service/IClaimService.sol +90 -0
  254. package/contracts/instance/service/IDistributionService.sol +99 -0
  255. package/contracts/instance/service/IPolicyService.sol +80 -0
  256. package/contracts/instance/service/IPoolService.sol +144 -0
  257. package/contracts/instance/service/IProductService.sol +40 -0
  258. package/contracts/instance/service/PolicyService.sol +358 -0
  259. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  260. package/contracts/instance/service/PoolService.sol +349 -0
  261. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  262. package/contracts/instance/service/ProductService.sol +210 -0
  263. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  264. package/contracts/registry/ChainNft.sol +49 -26
  265. package/contracts/registry/IRegistry.sol +53 -25
  266. package/contracts/registry/IRegistryService.sol +53 -16
  267. package/contracts/registry/ITransferInterceptor.sol +1 -0
  268. package/contracts/registry/Registry.sol +289 -313
  269. package/contracts/registry/RegistryAccessManager.sol +216 -0
  270. package/contracts/registry/RegistryService.sol +169 -256
  271. package/contracts/registry/RegistryServiceManager.sol +30 -11
  272. package/contracts/registry/ReleaseManager.sol +324 -0
  273. package/contracts/registry/TokenRegistry.sol +116 -0
  274. package/contracts/shared/ERC165.sol +15 -9
  275. package/contracts/shared/INftOwnable.sol +11 -10
  276. package/contracts/shared/IPolicyHolder.sol +38 -0
  277. package/contracts/shared/IRegisterable.sol +4 -6
  278. package/contracts/shared/IRegistryLinked.sol +11 -0
  279. package/contracts/shared/IService.sol +18 -0
  280. package/contracts/shared/IVersionable.sol +4 -47
  281. package/contracts/shared/NftOwnable.sol +65 -83
  282. package/contracts/shared/PolicyHolder.sol +87 -0
  283. package/contracts/shared/ProxyManager.sol +101 -26
  284. package/contracts/shared/Registerable.sol +25 -39
  285. package/contracts/shared/RegistryLinked.sol +43 -0
  286. package/contracts/shared/Service.sol +72 -0
  287. package/contracts/shared/TokenHandler.sol +13 -7
  288. package/contracts/shared/UpgradableProxyWithAdmin.sol +2 -2
  289. package/contracts/shared/Versionable.sol +5 -93
  290. package/contracts/test/TestFee.sol +2 -2
  291. package/contracts/test/TestRegisterable.sol +1 -1
  292. package/contracts/test/TestRoleId.sol +6 -6
  293. package/contracts/test/TestService.sol +6 -7
  294. package/contracts/types/Amount.sol +70 -0
  295. package/contracts/types/Blocknumber.sol +1 -0
  296. package/contracts/types/ClaimId.sol +75 -0
  297. package/contracts/types/DistributorType.sol +2 -2
  298. package/contracts/types/Fee.sol +15 -7
  299. package/contracts/types/NftId.sol +8 -0
  300. package/contracts/types/NftIdSet.sol +26 -24
  301. package/contracts/types/ObjectType.sol +11 -6
  302. package/contracts/types/PayoutId.sol +82 -0
  303. package/contracts/types/Referral.sol +4 -0
  304. package/contracts/types/RoleId.sol +26 -4
  305. package/contracts/types/Seconds.sol +54 -0
  306. package/contracts/types/StateId.sol +11 -2
  307. package/contracts/types/Timestamp.sol +18 -13
  308. package/contracts/types/UFixed.sol +129 -12
  309. package/contracts/types/Version.sol +5 -1
  310. package/package.json +6 -5
  311. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  312. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  313. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  314. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  315. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  316. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  317. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  318. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  319. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  320. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  321. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  322. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  323. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  324. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  325. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  326. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  327. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  328. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  329. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  330. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  331. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  332. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  333. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  334. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  335. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  336. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  337. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  338. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  339. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  340. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  341. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  342. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  343. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  344. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  345. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  346. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
  347. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  348. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  349. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  350. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  351. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  352. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
  353. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  354. package/contracts/components/IBaseComponent.sol +0 -19
  355. package/contracts/experiment/errors/Require.sol +0 -38
  356. package/contracts/experiment/errors/Revert.sol +0 -44
  357. package/contracts/experiment/inheritance/A.sol +0 -53
  358. package/contracts/experiment/inheritance/B.sol +0 -28
  359. package/contracts/experiment/inheritance/C.sol +0 -34
  360. package/contracts/experiment/inheritance/IA.sol +0 -13
  361. package/contracts/experiment/inheritance/IB.sol +0 -10
  362. package/contracts/experiment/inheritance/IC.sol +0 -12
  363. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  364. package/contracts/experiment/statemachine/ISM.sol +0 -25
  365. package/contracts/experiment/statemachine/SM.sol +0 -57
  366. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  367. package/contracts/experiment/types/TypeA.sol +0 -47
  368. package/contracts/experiment/types/TypeB.sol +0 -29
  369. package/contracts/instance/AccessManagedSimple.sol +0 -114
  370. package/contracts/instance/AccessManagerSimple.sol +0 -682
  371. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  372. package/contracts/instance/base/IService.sol +0 -15
  373. package/contracts/instance/base/ServiceBase.sol +0 -44
  374. package/contracts/registry/IChainNft.sol +0 -22
@@ -2,7 +2,2725 @@
2
2
  "_format": "hh-sol-artifact-1",
3
3
  "contractName": "IInstance",
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
- "abi": [],
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "instanceBundleManager",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorInstanceBundleManagerAlreadySet",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "instanceAuthority",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "ErrorInstanceBundleManagerAuthorityMismatch",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "instance",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "ErrorInstanceBundleManagerInstanceMismatch",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
79
+ {
80
+ "internalType": "address",
81
+ "name": "instanceAccessManager",
82
+ "type": "address"
83
+ }
84
+ ],
85
+ "name": "ErrorInstanceInstanceAccessManagerAlreadySet",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [
90
+ {
91
+ "internalType": "address",
92
+ "name": "instanceAuthority",
93
+ "type": "address"
94
+ }
95
+ ],
96
+ "name": "ErrorInstanceInstanceAccessManagerAuthorityMismatch",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ErrorInstanceInstanceAccessManagerZero",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "address",
108
+ "name": "instanceAuthority",
109
+ "type": "address"
110
+ }
111
+ ],
112
+ "name": "ErrorInstanceInstanceReaderInstanceMismatch",
113
+ "type": "error"
114
+ },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "ObjectType",
119
+ "name": "objectType",
120
+ "type": "uint8"
121
+ },
122
+ {
123
+ "internalType": "StateId",
124
+ "name": "fromStateId",
125
+ "type": "uint8"
126
+ },
127
+ {
128
+ "internalType": "StateId",
129
+ "name": "toStateId",
130
+ "type": "uint8"
131
+ }
132
+ ],
133
+ "name": "ErrorInvalidStateTransition",
134
+ "type": "error"
135
+ },
136
+ {
137
+ "inputs": [
138
+ {
139
+ "internalType": "NftId",
140
+ "name": "nftId",
141
+ "type": "uint96"
142
+ }
143
+ ],
144
+ "name": "ErrorNftOwnableAlreadyLinked",
145
+ "type": "error"
146
+ },
147
+ {
148
+ "inputs": [
149
+ {
150
+ "internalType": "address",
151
+ "name": "contractAddress",
152
+ "type": "address"
153
+ }
154
+ ],
155
+ "name": "ErrorNftOwnableContractNotRegistered",
156
+ "type": "error"
157
+ },
158
+ {
159
+ "inputs": [],
160
+ "name": "ErrorNftOwnableInitialOwnerZero",
161
+ "type": "error"
162
+ },
163
+ {
164
+ "inputs": [
165
+ {
166
+ "internalType": "address",
167
+ "name": "account",
168
+ "type": "address"
169
+ }
170
+ ],
171
+ "name": "ErrorNftOwnableNotOwner",
172
+ "type": "error"
173
+ },
174
+ {
175
+ "inputs": [
176
+ {
177
+ "internalType": "NftId",
178
+ "name": "nftId",
179
+ "type": "uint96"
180
+ },
181
+ {
182
+ "internalType": "ObjectType",
183
+ "name": "objectType",
184
+ "type": "uint8"
185
+ }
186
+ ],
187
+ "name": "ErrorNoLifecycle",
188
+ "type": "error"
189
+ },
190
+ {
191
+ "inputs": [
192
+ {
193
+ "internalType": "address",
194
+ "name": "registryAddress",
195
+ "type": "address"
196
+ }
197
+ ],
198
+ "name": "ErrorNotRegistry",
199
+ "type": "error"
200
+ },
201
+ {
202
+ "anonymous": false,
203
+ "inputs": [
204
+ {
205
+ "indexed": false,
206
+ "internalType": "address",
207
+ "name": "authority",
208
+ "type": "address"
209
+ }
210
+ ],
211
+ "name": "AuthorityUpdated",
212
+ "type": "event"
213
+ },
214
+ {
215
+ "anonymous": false,
216
+ "inputs": [
217
+ {
218
+ "indexed": false,
219
+ "internalType": "ObjectType",
220
+ "name": "objectType",
221
+ "type": "uint8"
222
+ },
223
+ {
224
+ "indexed": false,
225
+ "internalType": "KeyId",
226
+ "name": "keyId",
227
+ "type": "bytes31"
228
+ },
229
+ {
230
+ "indexed": false,
231
+ "internalType": "StateId",
232
+ "name": "state",
233
+ "type": "uint8"
234
+ },
235
+ {
236
+ "indexed": false,
237
+ "internalType": "address",
238
+ "name": "createdBy",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "indexed": false,
243
+ "internalType": "address",
244
+ "name": "txOrigin",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "name": "LogInfoCreated",
249
+ "type": "event"
250
+ },
251
+ {
252
+ "anonymous": false,
253
+ "inputs": [
254
+ {
255
+ "indexed": false,
256
+ "internalType": "ObjectType",
257
+ "name": "objectType",
258
+ "type": "uint8"
259
+ },
260
+ {
261
+ "indexed": false,
262
+ "internalType": "KeyId",
263
+ "name": "keyId",
264
+ "type": "bytes31"
265
+ },
266
+ {
267
+ "indexed": false,
268
+ "internalType": "StateId",
269
+ "name": "state",
270
+ "type": "uint8"
271
+ },
272
+ {
273
+ "indexed": false,
274
+ "internalType": "address",
275
+ "name": "updatedBy",
276
+ "type": "address"
277
+ },
278
+ {
279
+ "indexed": false,
280
+ "internalType": "address",
281
+ "name": "txOrigin",
282
+ "type": "address"
283
+ },
284
+ {
285
+ "indexed": false,
286
+ "internalType": "Blocknumber",
287
+ "name": "lastUpdatedIn",
288
+ "type": "uint32"
289
+ }
290
+ ],
291
+ "name": "LogInfoUpdated",
292
+ "type": "event"
293
+ },
294
+ {
295
+ "anonymous": false,
296
+ "inputs": [
297
+ {
298
+ "indexed": false,
299
+ "internalType": "ObjectType",
300
+ "name": "objectType",
301
+ "type": "uint8"
302
+ },
303
+ {
304
+ "indexed": false,
305
+ "internalType": "KeyId",
306
+ "name": "keyId",
307
+ "type": "bytes31"
308
+ },
309
+ {
310
+ "indexed": false,
311
+ "internalType": "StateId",
312
+ "name": "stateOld",
313
+ "type": "uint8"
314
+ },
315
+ {
316
+ "indexed": false,
317
+ "internalType": "StateId",
318
+ "name": "stateNew",
319
+ "type": "uint8"
320
+ },
321
+ {
322
+ "indexed": false,
323
+ "internalType": "address",
324
+ "name": "updatedBy",
325
+ "type": "address"
326
+ },
327
+ {
328
+ "indexed": false,
329
+ "internalType": "address",
330
+ "name": "txOrigin",
331
+ "type": "address"
332
+ },
333
+ {
334
+ "indexed": false,
335
+ "internalType": "Blocknumber",
336
+ "name": "lastUpdatedIn",
337
+ "type": "uint32"
338
+ }
339
+ ],
340
+ "name": "LogStateUpdated",
341
+ "type": "event"
342
+ },
343
+ {
344
+ "inputs": [],
345
+ "name": "authority",
346
+ "outputs": [
347
+ {
348
+ "internalType": "address",
349
+ "name": "",
350
+ "type": "address"
351
+ }
352
+ ],
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [
358
+ {
359
+ "internalType": "NftId",
360
+ "name": "applicationNftId",
361
+ "type": "uint96"
362
+ },
363
+ {
364
+ "components": [
365
+ {
366
+ "internalType": "NftId",
367
+ "name": "productNftId",
368
+ "type": "uint96"
369
+ },
370
+ {
371
+ "internalType": "NftId",
372
+ "name": "bundleNftId",
373
+ "type": "uint96"
374
+ },
375
+ {
376
+ "internalType": "ReferralId",
377
+ "name": "referralId",
378
+ "type": "bytes8"
379
+ },
380
+ {
381
+ "internalType": "RiskId",
382
+ "name": "riskId",
383
+ "type": "bytes8"
384
+ },
385
+ {
386
+ "internalType": "uint256",
387
+ "name": "sumInsuredAmount",
388
+ "type": "uint256"
389
+ },
390
+ {
391
+ "internalType": "uint256",
392
+ "name": "premiumAmount",
393
+ "type": "uint256"
394
+ },
395
+ {
396
+ "internalType": "uint256",
397
+ "name": "premiumPaidAmount",
398
+ "type": "uint256"
399
+ },
400
+ {
401
+ "internalType": "Seconds",
402
+ "name": "lifetime",
403
+ "type": "uint40"
404
+ },
405
+ {
406
+ "internalType": "bytes",
407
+ "name": "applicationData",
408
+ "type": "bytes"
409
+ },
410
+ {
411
+ "internalType": "bytes",
412
+ "name": "policyData",
413
+ "type": "bytes"
414
+ },
415
+ {
416
+ "internalType": "uint16",
417
+ "name": "claimsCount",
418
+ "type": "uint16"
419
+ },
420
+ {
421
+ "internalType": "uint16",
422
+ "name": "openClaimsCount",
423
+ "type": "uint16"
424
+ },
425
+ {
426
+ "internalType": "Amount",
427
+ "name": "claimAmount",
428
+ "type": "uint96"
429
+ },
430
+ {
431
+ "internalType": "Amount",
432
+ "name": "payoutAmount",
433
+ "type": "uint96"
434
+ },
435
+ {
436
+ "internalType": "Timestamp",
437
+ "name": "activatedAt",
438
+ "type": "uint40"
439
+ },
440
+ {
441
+ "internalType": "Timestamp",
442
+ "name": "expiredAt",
443
+ "type": "uint40"
444
+ },
445
+ {
446
+ "internalType": "Timestamp",
447
+ "name": "closedAt",
448
+ "type": "uint40"
449
+ }
450
+ ],
451
+ "internalType": "struct IPolicy.PolicyInfo",
452
+ "name": "policy",
453
+ "type": "tuple"
454
+ }
455
+ ],
456
+ "name": "createApplication",
457
+ "outputs": [],
458
+ "stateMutability": "nonpayable",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [
463
+ {
464
+ "internalType": "NftId",
465
+ "name": "bundleNftId",
466
+ "type": "uint96"
467
+ },
468
+ {
469
+ "components": [
470
+ {
471
+ "internalType": "NftId",
472
+ "name": "poolNftId",
473
+ "type": "uint96"
474
+ },
475
+ {
476
+ "components": [
477
+ {
478
+ "internalType": "UFixed",
479
+ "name": "fractionalFee",
480
+ "type": "uint256"
481
+ },
482
+ {
483
+ "internalType": "uint256",
484
+ "name": "fixedFee",
485
+ "type": "uint256"
486
+ }
487
+ ],
488
+ "internalType": "struct Fee",
489
+ "name": "fee",
490
+ "type": "tuple"
491
+ },
492
+ {
493
+ "internalType": "bytes",
494
+ "name": "filter",
495
+ "type": "bytes"
496
+ },
497
+ {
498
+ "internalType": "Amount",
499
+ "name": "capitalAmount",
500
+ "type": "uint96"
501
+ },
502
+ {
503
+ "internalType": "Amount",
504
+ "name": "lockedAmount",
505
+ "type": "uint96"
506
+ },
507
+ {
508
+ "internalType": "Amount",
509
+ "name": "feeAmount",
510
+ "type": "uint96"
511
+ },
512
+ {
513
+ "internalType": "Seconds",
514
+ "name": "lifetime",
515
+ "type": "uint40"
516
+ },
517
+ {
518
+ "internalType": "Timestamp",
519
+ "name": "expiredAt",
520
+ "type": "uint40"
521
+ },
522
+ {
523
+ "internalType": "Timestamp",
524
+ "name": "closedAt",
525
+ "type": "uint40"
526
+ }
527
+ ],
528
+ "internalType": "struct IBundle.BundleInfo",
529
+ "name": "bundle",
530
+ "type": "tuple"
531
+ }
532
+ ],
533
+ "name": "createBundle",
534
+ "outputs": [],
535
+ "stateMutability": "nonpayable",
536
+ "type": "function"
537
+ },
538
+ {
539
+ "inputs": [
540
+ {
541
+ "internalType": "NftId",
542
+ "name": "policyNftId",
543
+ "type": "uint96"
544
+ },
545
+ {
546
+ "internalType": "ClaimId",
547
+ "name": "claimId",
548
+ "type": "uint16"
549
+ },
550
+ {
551
+ "components": [
552
+ {
553
+ "internalType": "Amount",
554
+ "name": "claimAmount",
555
+ "type": "uint96"
556
+ },
557
+ {
558
+ "internalType": "Amount",
559
+ "name": "paidAmount",
560
+ "type": "uint96"
561
+ },
562
+ {
563
+ "internalType": "uint8",
564
+ "name": "payoutsCount",
565
+ "type": "uint8"
566
+ },
567
+ {
568
+ "internalType": "uint8",
569
+ "name": "openPayoutsCount",
570
+ "type": "uint8"
571
+ },
572
+ {
573
+ "internalType": "bytes",
574
+ "name": "data",
575
+ "type": "bytes"
576
+ },
577
+ {
578
+ "internalType": "Timestamp",
579
+ "name": "closedAt",
580
+ "type": "uint40"
581
+ }
582
+ ],
583
+ "internalType": "struct IPolicy.ClaimInfo",
584
+ "name": "claim",
585
+ "type": "tuple"
586
+ }
587
+ ],
588
+ "name": "createClaim",
589
+ "outputs": [],
590
+ "stateMutability": "nonpayable",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [
595
+ {
596
+ "internalType": "NftId",
597
+ "name": "distributionNftId",
598
+ "type": "uint96"
599
+ },
600
+ {
601
+ "components": [
602
+ {
603
+ "internalType": "NftId",
604
+ "name": "productNftId",
605
+ "type": "uint96"
606
+ },
607
+ {
608
+ "internalType": "contract TokenHandler",
609
+ "name": "tokenHandler",
610
+ "type": "address"
611
+ },
612
+ {
613
+ "components": [
614
+ {
615
+ "internalType": "UFixed",
616
+ "name": "fractionalFee",
617
+ "type": "uint256"
618
+ },
619
+ {
620
+ "internalType": "uint256",
621
+ "name": "fixedFee",
622
+ "type": "uint256"
623
+ }
624
+ ],
625
+ "internalType": "struct Fee",
626
+ "name": "minDistributionOwnerFee",
627
+ "type": "tuple"
628
+ },
629
+ {
630
+ "components": [
631
+ {
632
+ "internalType": "UFixed",
633
+ "name": "fractionalFee",
634
+ "type": "uint256"
635
+ },
636
+ {
637
+ "internalType": "uint256",
638
+ "name": "fixedFee",
639
+ "type": "uint256"
640
+ }
641
+ ],
642
+ "internalType": "struct Fee",
643
+ "name": "distributionFee",
644
+ "type": "tuple"
645
+ },
646
+ {
647
+ "internalType": "address",
648
+ "name": "wallet",
649
+ "type": "address"
650
+ },
651
+ {
652
+ "internalType": "uint256",
653
+ "name": "sumDistributionOwnerFees",
654
+ "type": "uint256"
655
+ }
656
+ ],
657
+ "internalType": "struct ISetup.DistributionSetupInfo",
658
+ "name": "setup",
659
+ "type": "tuple"
660
+ }
661
+ ],
662
+ "name": "createDistributionSetup",
663
+ "outputs": [],
664
+ "stateMutability": "nonpayable",
665
+ "type": "function"
666
+ },
667
+ {
668
+ "inputs": [
669
+ {
670
+ "internalType": "NftId",
671
+ "name": "nftId",
672
+ "type": "uint96"
673
+ },
674
+ {
675
+ "components": [
676
+ {
677
+ "internalType": "DistributorType",
678
+ "name": "distributorType",
679
+ "type": "bytes8"
680
+ },
681
+ {
682
+ "internalType": "bool",
683
+ "name": "active",
684
+ "type": "bool"
685
+ },
686
+ {
687
+ "internalType": "bytes",
688
+ "name": "data",
689
+ "type": "bytes"
690
+ },
691
+ {
692
+ "internalType": "uint256",
693
+ "name": "sumCommisions",
694
+ "type": "uint256"
695
+ },
696
+ {
697
+ "internalType": "uint256",
698
+ "name": "numPoliciesSold",
699
+ "type": "uint256"
700
+ }
701
+ ],
702
+ "internalType": "struct IDistribution.DistributorInfo",
703
+ "name": "info",
704
+ "type": "tuple"
705
+ }
706
+ ],
707
+ "name": "createDistributor",
708
+ "outputs": [],
709
+ "stateMutability": "nonpayable",
710
+ "type": "function"
711
+ },
712
+ {
713
+ "inputs": [
714
+ {
715
+ "internalType": "DistributorType",
716
+ "name": "distributorType",
717
+ "type": "bytes8"
718
+ },
719
+ {
720
+ "components": [
721
+ {
722
+ "internalType": "string",
723
+ "name": "name",
724
+ "type": "string"
725
+ },
726
+ {
727
+ "internalType": "UFixed",
728
+ "name": "minDiscountPercentage",
729
+ "type": "uint256"
730
+ },
731
+ {
732
+ "internalType": "UFixed",
733
+ "name": "maxDiscountPercentage",
734
+ "type": "uint256"
735
+ },
736
+ {
737
+ "internalType": "UFixed",
738
+ "name": "commissionPercentage",
739
+ "type": "uint256"
740
+ },
741
+ {
742
+ "internalType": "uint32",
743
+ "name": "maxReferralCount",
744
+ "type": "uint32"
745
+ },
746
+ {
747
+ "internalType": "uint32",
748
+ "name": "maxReferralLifetime",
749
+ "type": "uint32"
750
+ },
751
+ {
752
+ "internalType": "bool",
753
+ "name": "allowSelfReferrals",
754
+ "type": "bool"
755
+ },
756
+ {
757
+ "internalType": "bool",
758
+ "name": "allowRenewals",
759
+ "type": "bool"
760
+ },
761
+ {
762
+ "internalType": "bytes",
763
+ "name": "data",
764
+ "type": "bytes"
765
+ }
766
+ ],
767
+ "internalType": "struct IDistribution.DistributorTypeInfo",
768
+ "name": "info",
769
+ "type": "tuple"
770
+ }
771
+ ],
772
+ "name": "createDistributorType",
773
+ "outputs": [],
774
+ "stateMutability": "nonpayable",
775
+ "type": "function"
776
+ },
777
+ {
778
+ "inputs": [
779
+ {
780
+ "internalType": "NftId",
781
+ "name": "policyNftId",
782
+ "type": "uint96"
783
+ },
784
+ {
785
+ "internalType": "PayoutId",
786
+ "name": "payoutId",
787
+ "type": "uint24"
788
+ },
789
+ {
790
+ "components": [
791
+ {
792
+ "internalType": "ClaimId",
793
+ "name": "claimId",
794
+ "type": "uint16"
795
+ },
796
+ {
797
+ "internalType": "Amount",
798
+ "name": "amount",
799
+ "type": "uint96"
800
+ },
801
+ {
802
+ "internalType": "bytes",
803
+ "name": "data",
804
+ "type": "bytes"
805
+ },
806
+ {
807
+ "internalType": "Timestamp",
808
+ "name": "paidAt",
809
+ "type": "uint40"
810
+ }
811
+ ],
812
+ "internalType": "struct IPolicy.PayoutInfo",
813
+ "name": "claim",
814
+ "type": "tuple"
815
+ }
816
+ ],
817
+ "name": "createPayout",
818
+ "outputs": [],
819
+ "stateMutability": "nonpayable",
820
+ "type": "function"
821
+ },
822
+ {
823
+ "inputs": [
824
+ {
825
+ "internalType": "NftId",
826
+ "name": "poolNftId",
827
+ "type": "uint96"
828
+ },
829
+ {
830
+ "components": [
831
+ {
832
+ "internalType": "string",
833
+ "name": "name",
834
+ "type": "string"
835
+ },
836
+ {
837
+ "internalType": "contract IERC20Metadata",
838
+ "name": "token",
839
+ "type": "address"
840
+ },
841
+ {
842
+ "internalType": "contract TokenHandler",
843
+ "name": "tokenHandler",
844
+ "type": "address"
845
+ },
846
+ {
847
+ "internalType": "address",
848
+ "name": "wallet",
849
+ "type": "address"
850
+ },
851
+ {
852
+ "internalType": "Amount",
853
+ "name": "balanceAmount",
854
+ "type": "uint96"
855
+ },
856
+ {
857
+ "internalType": "Amount",
858
+ "name": "feeAmount",
859
+ "type": "uint96"
860
+ },
861
+ {
862
+ "internalType": "bytes",
863
+ "name": "data",
864
+ "type": "bytes"
865
+ }
866
+ ],
867
+ "internalType": "struct IComponents.ComponentInfo",
868
+ "name": "info",
869
+ "type": "tuple"
870
+ }
871
+ ],
872
+ "name": "createPoolSetup",
873
+ "outputs": [],
874
+ "stateMutability": "nonpayable",
875
+ "type": "function"
876
+ },
877
+ {
878
+ "inputs": [
879
+ {
880
+ "internalType": "NftId",
881
+ "name": "productNftId",
882
+ "type": "uint96"
883
+ },
884
+ {
885
+ "components": [
886
+ {
887
+ "internalType": "contract IERC20Metadata",
888
+ "name": "token",
889
+ "type": "address"
890
+ },
891
+ {
892
+ "internalType": "contract TokenHandler",
893
+ "name": "tokenHandler",
894
+ "type": "address"
895
+ },
896
+ {
897
+ "internalType": "NftId",
898
+ "name": "distributionNftId",
899
+ "type": "uint96"
900
+ },
901
+ {
902
+ "internalType": "NftId",
903
+ "name": "poolNftId",
904
+ "type": "uint96"
905
+ },
906
+ {
907
+ "components": [
908
+ {
909
+ "internalType": "UFixed",
910
+ "name": "fractionalFee",
911
+ "type": "uint256"
912
+ },
913
+ {
914
+ "internalType": "uint256",
915
+ "name": "fixedFee",
916
+ "type": "uint256"
917
+ }
918
+ ],
919
+ "internalType": "struct Fee",
920
+ "name": "productFee",
921
+ "type": "tuple"
922
+ },
923
+ {
924
+ "components": [
925
+ {
926
+ "internalType": "UFixed",
927
+ "name": "fractionalFee",
928
+ "type": "uint256"
929
+ },
930
+ {
931
+ "internalType": "uint256",
932
+ "name": "fixedFee",
933
+ "type": "uint256"
934
+ }
935
+ ],
936
+ "internalType": "struct Fee",
937
+ "name": "processingFee",
938
+ "type": "tuple"
939
+ },
940
+ {
941
+ "internalType": "bool",
942
+ "name": "isIntercepting",
943
+ "type": "bool"
944
+ },
945
+ {
946
+ "internalType": "address",
947
+ "name": "wallet",
948
+ "type": "address"
949
+ }
950
+ ],
951
+ "internalType": "struct ISetup.ProductSetupInfo",
952
+ "name": "setup",
953
+ "type": "tuple"
954
+ }
955
+ ],
956
+ "name": "createProductSetup",
957
+ "outputs": [],
958
+ "stateMutability": "nonpayable",
959
+ "type": "function"
960
+ },
961
+ {
962
+ "inputs": [
963
+ {
964
+ "internalType": "ReferralId",
965
+ "name": "referralId",
966
+ "type": "bytes8"
967
+ },
968
+ {
969
+ "components": [
970
+ {
971
+ "internalType": "NftId",
972
+ "name": "distributorNftId",
973
+ "type": "uint96"
974
+ },
975
+ {
976
+ "internalType": "string",
977
+ "name": "referralCode",
978
+ "type": "string"
979
+ },
980
+ {
981
+ "internalType": "UFixed",
982
+ "name": "discountPercentage",
983
+ "type": "uint256"
984
+ },
985
+ {
986
+ "internalType": "uint32",
987
+ "name": "maxReferrals",
988
+ "type": "uint32"
989
+ },
990
+ {
991
+ "internalType": "uint32",
992
+ "name": "usedReferrals",
993
+ "type": "uint32"
994
+ },
995
+ {
996
+ "internalType": "Timestamp",
997
+ "name": "expiryAt",
998
+ "type": "uint40"
999
+ },
1000
+ {
1001
+ "internalType": "bytes",
1002
+ "name": "data",
1003
+ "type": "bytes"
1004
+ }
1005
+ ],
1006
+ "internalType": "struct IDistribution.ReferralInfo",
1007
+ "name": "referralInfo",
1008
+ "type": "tuple"
1009
+ }
1010
+ ],
1011
+ "name": "createReferral",
1012
+ "outputs": [],
1013
+ "stateMutability": "nonpayable",
1014
+ "type": "function"
1015
+ },
1016
+ {
1017
+ "inputs": [
1018
+ {
1019
+ "internalType": "RiskId",
1020
+ "name": "riskId",
1021
+ "type": "bytes8"
1022
+ },
1023
+ {
1024
+ "components": [
1025
+ {
1026
+ "internalType": "NftId",
1027
+ "name": "productNftId",
1028
+ "type": "uint96"
1029
+ },
1030
+ {
1031
+ "internalType": "bytes",
1032
+ "name": "data",
1033
+ "type": "bytes"
1034
+ }
1035
+ ],
1036
+ "internalType": "struct IRisk.RiskInfo",
1037
+ "name": "risk",
1038
+ "type": "tuple"
1039
+ }
1040
+ ],
1041
+ "name": "createRisk",
1042
+ "outputs": [],
1043
+ "stateMutability": "nonpayable",
1044
+ "type": "function"
1045
+ },
1046
+ {
1047
+ "inputs": [
1048
+ {
1049
+ "internalType": "Key32",
1050
+ "name": "key",
1051
+ "type": "bytes32"
1052
+ }
1053
+ ],
1054
+ "name": "exists",
1055
+ "outputs": [
1056
+ {
1057
+ "internalType": "bool",
1058
+ "name": "",
1059
+ "type": "bool"
1060
+ }
1061
+ ],
1062
+ "stateMutability": "view",
1063
+ "type": "function"
1064
+ },
1065
+ {
1066
+ "inputs": [
1067
+ {
1068
+ "internalType": "Key32",
1069
+ "name": "key",
1070
+ "type": "bytes32"
1071
+ }
1072
+ ],
1073
+ "name": "get",
1074
+ "outputs": [
1075
+ {
1076
+ "components": [
1077
+ {
1078
+ "components": [
1079
+ {
1080
+ "internalType": "ObjectType",
1081
+ "name": "objectType",
1082
+ "type": "uint8"
1083
+ },
1084
+ {
1085
+ "internalType": "StateId",
1086
+ "name": "state",
1087
+ "type": "uint8"
1088
+ },
1089
+ {
1090
+ "internalType": "address",
1091
+ "name": "updatedBy",
1092
+ "type": "address"
1093
+ },
1094
+ {
1095
+ "internalType": "Blocknumber",
1096
+ "name": "updatedIn",
1097
+ "type": "uint32"
1098
+ },
1099
+ {
1100
+ "internalType": "Blocknumber",
1101
+ "name": "createdIn",
1102
+ "type": "uint32"
1103
+ }
1104
+ ],
1105
+ "internalType": "struct IKeyValueStore.Metadata",
1106
+ "name": "metadata",
1107
+ "type": "tuple"
1108
+ },
1109
+ {
1110
+ "internalType": "bytes",
1111
+ "name": "data",
1112
+ "type": "bytes"
1113
+ }
1114
+ ],
1115
+ "internalType": "struct IKeyValueStore.Value",
1116
+ "name": "value",
1117
+ "type": "tuple"
1118
+ }
1119
+ ],
1120
+ "stateMutability": "view",
1121
+ "type": "function"
1122
+ },
1123
+ {
1124
+ "inputs": [],
1125
+ "name": "getBundleManager",
1126
+ "outputs": [
1127
+ {
1128
+ "internalType": "contract BundleManager",
1129
+ "name": "",
1130
+ "type": "address"
1131
+ }
1132
+ ],
1133
+ "stateMutability": "view",
1134
+ "type": "function"
1135
+ },
1136
+ {
1137
+ "inputs": [
1138
+ {
1139
+ "internalType": "Key32",
1140
+ "name": "key",
1141
+ "type": "bytes32"
1142
+ }
1143
+ ],
1144
+ "name": "getData",
1145
+ "outputs": [
1146
+ {
1147
+ "internalType": "bytes",
1148
+ "name": "data",
1149
+ "type": "bytes"
1150
+ }
1151
+ ],
1152
+ "stateMutability": "view",
1153
+ "type": "function"
1154
+ },
1155
+ {
1156
+ "inputs": [],
1157
+ "name": "getInitialInfo",
1158
+ "outputs": [
1159
+ {
1160
+ "components": [
1161
+ {
1162
+ "internalType": "NftId",
1163
+ "name": "nftId",
1164
+ "type": "uint96"
1165
+ },
1166
+ {
1167
+ "internalType": "NftId",
1168
+ "name": "parentNftId",
1169
+ "type": "uint96"
1170
+ },
1171
+ {
1172
+ "internalType": "ObjectType",
1173
+ "name": "objectType",
1174
+ "type": "uint8"
1175
+ },
1176
+ {
1177
+ "internalType": "bool",
1178
+ "name": "isInterceptor",
1179
+ "type": "bool"
1180
+ },
1181
+ {
1182
+ "internalType": "address",
1183
+ "name": "objectAddress",
1184
+ "type": "address"
1185
+ },
1186
+ {
1187
+ "internalType": "address",
1188
+ "name": "initialOwner",
1189
+ "type": "address"
1190
+ },
1191
+ {
1192
+ "internalType": "bytes",
1193
+ "name": "data",
1194
+ "type": "bytes"
1195
+ }
1196
+ ],
1197
+ "internalType": "struct IRegistry.ObjectInfo",
1198
+ "name": "",
1199
+ "type": "tuple"
1200
+ }
1201
+ ],
1202
+ "stateMutability": "view",
1203
+ "type": "function"
1204
+ },
1205
+ {
1206
+ "inputs": [
1207
+ {
1208
+ "internalType": "ObjectType",
1209
+ "name": "objectType",
1210
+ "type": "uint8"
1211
+ }
1212
+ ],
1213
+ "name": "getInitialState",
1214
+ "outputs": [
1215
+ {
1216
+ "internalType": "StateId",
1217
+ "name": "",
1218
+ "type": "uint8"
1219
+ }
1220
+ ],
1221
+ "stateMutability": "view",
1222
+ "type": "function"
1223
+ },
1224
+ {
1225
+ "inputs": [],
1226
+ "name": "getInstanceAccessManager",
1227
+ "outputs": [
1228
+ {
1229
+ "internalType": "contract InstanceAccessManager",
1230
+ "name": "",
1231
+ "type": "address"
1232
+ }
1233
+ ],
1234
+ "stateMutability": "view",
1235
+ "type": "function"
1236
+ },
1237
+ {
1238
+ "inputs": [],
1239
+ "name": "getInstanceReader",
1240
+ "outputs": [
1241
+ {
1242
+ "internalType": "contract InstanceReader",
1243
+ "name": "",
1244
+ "type": "address"
1245
+ }
1246
+ ],
1247
+ "stateMutability": "view",
1248
+ "type": "function"
1249
+ },
1250
+ {
1251
+ "inputs": [],
1252
+ "name": "getMajorVersion",
1253
+ "outputs": [
1254
+ {
1255
+ "internalType": "VersionPart",
1256
+ "name": "majorVersion",
1257
+ "type": "uint8"
1258
+ }
1259
+ ],
1260
+ "stateMutability": "pure",
1261
+ "type": "function"
1262
+ },
1263
+ {
1264
+ "inputs": [
1265
+ {
1266
+ "internalType": "Key32",
1267
+ "name": "key",
1268
+ "type": "bytes32"
1269
+ }
1270
+ ],
1271
+ "name": "getMetadata",
1272
+ "outputs": [
1273
+ {
1274
+ "components": [
1275
+ {
1276
+ "internalType": "ObjectType",
1277
+ "name": "objectType",
1278
+ "type": "uint8"
1279
+ },
1280
+ {
1281
+ "internalType": "StateId",
1282
+ "name": "state",
1283
+ "type": "uint8"
1284
+ },
1285
+ {
1286
+ "internalType": "address",
1287
+ "name": "updatedBy",
1288
+ "type": "address"
1289
+ },
1290
+ {
1291
+ "internalType": "Blocknumber",
1292
+ "name": "updatedIn",
1293
+ "type": "uint32"
1294
+ },
1295
+ {
1296
+ "internalType": "Blocknumber",
1297
+ "name": "createdIn",
1298
+ "type": "uint32"
1299
+ }
1300
+ ],
1301
+ "internalType": "struct IKeyValueStore.Metadata",
1302
+ "name": "metadata",
1303
+ "type": "tuple"
1304
+ }
1305
+ ],
1306
+ "stateMutability": "view",
1307
+ "type": "function"
1308
+ },
1309
+ {
1310
+ "inputs": [],
1311
+ "name": "getNftId",
1312
+ "outputs": [
1313
+ {
1314
+ "internalType": "NftId",
1315
+ "name": "",
1316
+ "type": "uint96"
1317
+ }
1318
+ ],
1319
+ "stateMutability": "view",
1320
+ "type": "function"
1321
+ },
1322
+ {
1323
+ "inputs": [],
1324
+ "name": "getOwner",
1325
+ "outputs": [
1326
+ {
1327
+ "internalType": "address",
1328
+ "name": "",
1329
+ "type": "address"
1330
+ }
1331
+ ],
1332
+ "stateMutability": "view",
1333
+ "type": "function"
1334
+ },
1335
+ {
1336
+ "inputs": [],
1337
+ "name": "getRegistry",
1338
+ "outputs": [
1339
+ {
1340
+ "internalType": "contract IRegistry",
1341
+ "name": "",
1342
+ "type": "address"
1343
+ }
1344
+ ],
1345
+ "stateMutability": "view",
1346
+ "type": "function"
1347
+ },
1348
+ {
1349
+ "inputs": [
1350
+ {
1351
+ "internalType": "Key32",
1352
+ "name": "key",
1353
+ "type": "bytes32"
1354
+ }
1355
+ ],
1356
+ "name": "getState",
1357
+ "outputs": [
1358
+ {
1359
+ "internalType": "StateId",
1360
+ "name": "state",
1361
+ "type": "uint8"
1362
+ }
1363
+ ],
1364
+ "stateMutability": "view",
1365
+ "type": "function"
1366
+ },
1367
+ {
1368
+ "inputs": [
1369
+ {
1370
+ "internalType": "ObjectType",
1371
+ "name": "objectType",
1372
+ "type": "uint8"
1373
+ }
1374
+ ],
1375
+ "name": "hasLifecycle",
1376
+ "outputs": [
1377
+ {
1378
+ "internalType": "bool",
1379
+ "name": "",
1380
+ "type": "bool"
1381
+ }
1382
+ ],
1383
+ "stateMutability": "view",
1384
+ "type": "function"
1385
+ },
1386
+ {
1387
+ "inputs": [],
1388
+ "name": "isConsumingScheduledOp",
1389
+ "outputs": [
1390
+ {
1391
+ "internalType": "bytes4",
1392
+ "name": "",
1393
+ "type": "bytes4"
1394
+ }
1395
+ ],
1396
+ "stateMutability": "view",
1397
+ "type": "function"
1398
+ },
1399
+ {
1400
+ "inputs": [
1401
+ {
1402
+ "internalType": "ObjectType",
1403
+ "name": "objectType",
1404
+ "type": "uint8"
1405
+ },
1406
+ {
1407
+ "internalType": "StateId",
1408
+ "name": "fromId",
1409
+ "type": "uint8"
1410
+ },
1411
+ {
1412
+ "internalType": "StateId",
1413
+ "name": "toId",
1414
+ "type": "uint8"
1415
+ }
1416
+ ],
1417
+ "name": "isValidTransition",
1418
+ "outputs": [
1419
+ {
1420
+ "internalType": "bool",
1421
+ "name": "",
1422
+ "type": "bool"
1423
+ }
1424
+ ],
1425
+ "stateMutability": "view",
1426
+ "type": "function"
1427
+ },
1428
+ {
1429
+ "inputs": [],
1430
+ "name": "linkToRegisteredNftId",
1431
+ "outputs": [],
1432
+ "stateMutability": "nonpayable",
1433
+ "type": "function"
1434
+ },
1435
+ {
1436
+ "inputs": [
1437
+ {
1438
+ "internalType": "address",
1439
+ "name": "to",
1440
+ "type": "address"
1441
+ },
1442
+ {
1443
+ "internalType": "uint256",
1444
+ "name": "tokenId",
1445
+ "type": "uint256"
1446
+ }
1447
+ ],
1448
+ "name": "nftMint",
1449
+ "outputs": [],
1450
+ "stateMutability": "nonpayable",
1451
+ "type": "function"
1452
+ },
1453
+ {
1454
+ "inputs": [
1455
+ {
1456
+ "internalType": "address",
1457
+ "name": "from",
1458
+ "type": "address"
1459
+ },
1460
+ {
1461
+ "internalType": "address",
1462
+ "name": "to",
1463
+ "type": "address"
1464
+ },
1465
+ {
1466
+ "internalType": "uint256",
1467
+ "name": "tokenId",
1468
+ "type": "uint256"
1469
+ }
1470
+ ],
1471
+ "name": "nftTransferFrom",
1472
+ "outputs": [],
1473
+ "stateMutability": "nonpayable",
1474
+ "type": "function"
1475
+ },
1476
+ {
1477
+ "inputs": [
1478
+ {
1479
+ "internalType": "address",
1480
+ "name": "",
1481
+ "type": "address"
1482
+ }
1483
+ ],
1484
+ "name": "setAuthority",
1485
+ "outputs": [],
1486
+ "stateMutability": "nonpayable",
1487
+ "type": "function"
1488
+ },
1489
+ {
1490
+ "inputs": [
1491
+ {
1492
+ "internalType": "bytes4",
1493
+ "name": "interfaceId",
1494
+ "type": "bytes4"
1495
+ }
1496
+ ],
1497
+ "name": "supportsInterface",
1498
+ "outputs": [
1499
+ {
1500
+ "internalType": "bool",
1501
+ "name": "",
1502
+ "type": "bool"
1503
+ }
1504
+ ],
1505
+ "stateMutability": "view",
1506
+ "type": "function"
1507
+ },
1508
+ {
1509
+ "inputs": [
1510
+ {
1511
+ "internalType": "ObjectType",
1512
+ "name": "objectType",
1513
+ "type": "uint8"
1514
+ },
1515
+ {
1516
+ "internalType": "KeyId",
1517
+ "name": "id",
1518
+ "type": "bytes31"
1519
+ }
1520
+ ],
1521
+ "name": "toKey32",
1522
+ "outputs": [
1523
+ {
1524
+ "internalType": "Key32",
1525
+ "name": "",
1526
+ "type": "bytes32"
1527
+ }
1528
+ ],
1529
+ "stateMutability": "pure",
1530
+ "type": "function"
1531
+ },
1532
+ {
1533
+ "inputs": [
1534
+ {
1535
+ "internalType": "NftId",
1536
+ "name": "applicationNftId",
1537
+ "type": "uint96"
1538
+ },
1539
+ {
1540
+ "components": [
1541
+ {
1542
+ "internalType": "NftId",
1543
+ "name": "productNftId",
1544
+ "type": "uint96"
1545
+ },
1546
+ {
1547
+ "internalType": "NftId",
1548
+ "name": "bundleNftId",
1549
+ "type": "uint96"
1550
+ },
1551
+ {
1552
+ "internalType": "ReferralId",
1553
+ "name": "referralId",
1554
+ "type": "bytes8"
1555
+ },
1556
+ {
1557
+ "internalType": "RiskId",
1558
+ "name": "riskId",
1559
+ "type": "bytes8"
1560
+ },
1561
+ {
1562
+ "internalType": "uint256",
1563
+ "name": "sumInsuredAmount",
1564
+ "type": "uint256"
1565
+ },
1566
+ {
1567
+ "internalType": "uint256",
1568
+ "name": "premiumAmount",
1569
+ "type": "uint256"
1570
+ },
1571
+ {
1572
+ "internalType": "uint256",
1573
+ "name": "premiumPaidAmount",
1574
+ "type": "uint256"
1575
+ },
1576
+ {
1577
+ "internalType": "Seconds",
1578
+ "name": "lifetime",
1579
+ "type": "uint40"
1580
+ },
1581
+ {
1582
+ "internalType": "bytes",
1583
+ "name": "applicationData",
1584
+ "type": "bytes"
1585
+ },
1586
+ {
1587
+ "internalType": "bytes",
1588
+ "name": "policyData",
1589
+ "type": "bytes"
1590
+ },
1591
+ {
1592
+ "internalType": "uint16",
1593
+ "name": "claimsCount",
1594
+ "type": "uint16"
1595
+ },
1596
+ {
1597
+ "internalType": "uint16",
1598
+ "name": "openClaimsCount",
1599
+ "type": "uint16"
1600
+ },
1601
+ {
1602
+ "internalType": "Amount",
1603
+ "name": "claimAmount",
1604
+ "type": "uint96"
1605
+ },
1606
+ {
1607
+ "internalType": "Amount",
1608
+ "name": "payoutAmount",
1609
+ "type": "uint96"
1610
+ },
1611
+ {
1612
+ "internalType": "Timestamp",
1613
+ "name": "activatedAt",
1614
+ "type": "uint40"
1615
+ },
1616
+ {
1617
+ "internalType": "Timestamp",
1618
+ "name": "expiredAt",
1619
+ "type": "uint40"
1620
+ },
1621
+ {
1622
+ "internalType": "Timestamp",
1623
+ "name": "closedAt",
1624
+ "type": "uint40"
1625
+ }
1626
+ ],
1627
+ "internalType": "struct IPolicy.PolicyInfo",
1628
+ "name": "policy",
1629
+ "type": "tuple"
1630
+ },
1631
+ {
1632
+ "internalType": "StateId",
1633
+ "name": "newState",
1634
+ "type": "uint8"
1635
+ }
1636
+ ],
1637
+ "name": "updateApplication",
1638
+ "outputs": [],
1639
+ "stateMutability": "nonpayable",
1640
+ "type": "function"
1641
+ },
1642
+ {
1643
+ "inputs": [
1644
+ {
1645
+ "internalType": "NftId",
1646
+ "name": "applicationNftId",
1647
+ "type": "uint96"
1648
+ },
1649
+ {
1650
+ "internalType": "StateId",
1651
+ "name": "newState",
1652
+ "type": "uint8"
1653
+ }
1654
+ ],
1655
+ "name": "updateApplicationState",
1656
+ "outputs": [],
1657
+ "stateMutability": "nonpayable",
1658
+ "type": "function"
1659
+ },
1660
+ {
1661
+ "inputs": [
1662
+ {
1663
+ "internalType": "NftId",
1664
+ "name": "bundleNftId",
1665
+ "type": "uint96"
1666
+ },
1667
+ {
1668
+ "components": [
1669
+ {
1670
+ "internalType": "NftId",
1671
+ "name": "poolNftId",
1672
+ "type": "uint96"
1673
+ },
1674
+ {
1675
+ "components": [
1676
+ {
1677
+ "internalType": "UFixed",
1678
+ "name": "fractionalFee",
1679
+ "type": "uint256"
1680
+ },
1681
+ {
1682
+ "internalType": "uint256",
1683
+ "name": "fixedFee",
1684
+ "type": "uint256"
1685
+ }
1686
+ ],
1687
+ "internalType": "struct Fee",
1688
+ "name": "fee",
1689
+ "type": "tuple"
1690
+ },
1691
+ {
1692
+ "internalType": "bytes",
1693
+ "name": "filter",
1694
+ "type": "bytes"
1695
+ },
1696
+ {
1697
+ "internalType": "Amount",
1698
+ "name": "capitalAmount",
1699
+ "type": "uint96"
1700
+ },
1701
+ {
1702
+ "internalType": "Amount",
1703
+ "name": "lockedAmount",
1704
+ "type": "uint96"
1705
+ },
1706
+ {
1707
+ "internalType": "Amount",
1708
+ "name": "feeAmount",
1709
+ "type": "uint96"
1710
+ },
1711
+ {
1712
+ "internalType": "Seconds",
1713
+ "name": "lifetime",
1714
+ "type": "uint40"
1715
+ },
1716
+ {
1717
+ "internalType": "Timestamp",
1718
+ "name": "expiredAt",
1719
+ "type": "uint40"
1720
+ },
1721
+ {
1722
+ "internalType": "Timestamp",
1723
+ "name": "closedAt",
1724
+ "type": "uint40"
1725
+ }
1726
+ ],
1727
+ "internalType": "struct IBundle.BundleInfo",
1728
+ "name": "bundle",
1729
+ "type": "tuple"
1730
+ },
1731
+ {
1732
+ "internalType": "StateId",
1733
+ "name": "newState",
1734
+ "type": "uint8"
1735
+ }
1736
+ ],
1737
+ "name": "updateBundle",
1738
+ "outputs": [],
1739
+ "stateMutability": "nonpayable",
1740
+ "type": "function"
1741
+ },
1742
+ {
1743
+ "inputs": [
1744
+ {
1745
+ "internalType": "NftId",
1746
+ "name": "bundleNftId",
1747
+ "type": "uint96"
1748
+ },
1749
+ {
1750
+ "internalType": "StateId",
1751
+ "name": "newState",
1752
+ "type": "uint8"
1753
+ }
1754
+ ],
1755
+ "name": "updateBundleState",
1756
+ "outputs": [],
1757
+ "stateMutability": "nonpayable",
1758
+ "type": "function"
1759
+ },
1760
+ {
1761
+ "inputs": [
1762
+ {
1763
+ "internalType": "NftId",
1764
+ "name": "policyNftId",
1765
+ "type": "uint96"
1766
+ },
1767
+ {
1768
+ "internalType": "ClaimId",
1769
+ "name": "claimId",
1770
+ "type": "uint16"
1771
+ },
1772
+ {
1773
+ "components": [
1774
+ {
1775
+ "internalType": "Amount",
1776
+ "name": "claimAmount",
1777
+ "type": "uint96"
1778
+ },
1779
+ {
1780
+ "internalType": "Amount",
1781
+ "name": "paidAmount",
1782
+ "type": "uint96"
1783
+ },
1784
+ {
1785
+ "internalType": "uint8",
1786
+ "name": "payoutsCount",
1787
+ "type": "uint8"
1788
+ },
1789
+ {
1790
+ "internalType": "uint8",
1791
+ "name": "openPayoutsCount",
1792
+ "type": "uint8"
1793
+ },
1794
+ {
1795
+ "internalType": "bytes",
1796
+ "name": "data",
1797
+ "type": "bytes"
1798
+ },
1799
+ {
1800
+ "internalType": "Timestamp",
1801
+ "name": "closedAt",
1802
+ "type": "uint40"
1803
+ }
1804
+ ],
1805
+ "internalType": "struct IPolicy.ClaimInfo",
1806
+ "name": "claim",
1807
+ "type": "tuple"
1808
+ },
1809
+ {
1810
+ "internalType": "StateId",
1811
+ "name": "newState",
1812
+ "type": "uint8"
1813
+ }
1814
+ ],
1815
+ "name": "updateClaim",
1816
+ "outputs": [],
1817
+ "stateMutability": "nonpayable",
1818
+ "type": "function"
1819
+ },
1820
+ {
1821
+ "inputs": [
1822
+ {
1823
+ "internalType": "NftId",
1824
+ "name": "policyNftId",
1825
+ "type": "uint96"
1826
+ },
1827
+ {
1828
+ "internalType": "ClaimId",
1829
+ "name": "claimId",
1830
+ "type": "uint16"
1831
+ },
1832
+ {
1833
+ "internalType": "StateId",
1834
+ "name": "newState",
1835
+ "type": "uint8"
1836
+ }
1837
+ ],
1838
+ "name": "updateClaimState",
1839
+ "outputs": [],
1840
+ "stateMutability": "nonpayable",
1841
+ "type": "function"
1842
+ },
1843
+ {
1844
+ "inputs": [
1845
+ {
1846
+ "internalType": "NftId",
1847
+ "name": "distributionNftId",
1848
+ "type": "uint96"
1849
+ },
1850
+ {
1851
+ "components": [
1852
+ {
1853
+ "internalType": "NftId",
1854
+ "name": "productNftId",
1855
+ "type": "uint96"
1856
+ },
1857
+ {
1858
+ "internalType": "contract TokenHandler",
1859
+ "name": "tokenHandler",
1860
+ "type": "address"
1861
+ },
1862
+ {
1863
+ "components": [
1864
+ {
1865
+ "internalType": "UFixed",
1866
+ "name": "fractionalFee",
1867
+ "type": "uint256"
1868
+ },
1869
+ {
1870
+ "internalType": "uint256",
1871
+ "name": "fixedFee",
1872
+ "type": "uint256"
1873
+ }
1874
+ ],
1875
+ "internalType": "struct Fee",
1876
+ "name": "minDistributionOwnerFee",
1877
+ "type": "tuple"
1878
+ },
1879
+ {
1880
+ "components": [
1881
+ {
1882
+ "internalType": "UFixed",
1883
+ "name": "fractionalFee",
1884
+ "type": "uint256"
1885
+ },
1886
+ {
1887
+ "internalType": "uint256",
1888
+ "name": "fixedFee",
1889
+ "type": "uint256"
1890
+ }
1891
+ ],
1892
+ "internalType": "struct Fee",
1893
+ "name": "distributionFee",
1894
+ "type": "tuple"
1895
+ },
1896
+ {
1897
+ "internalType": "address",
1898
+ "name": "wallet",
1899
+ "type": "address"
1900
+ },
1901
+ {
1902
+ "internalType": "uint256",
1903
+ "name": "sumDistributionOwnerFees",
1904
+ "type": "uint256"
1905
+ }
1906
+ ],
1907
+ "internalType": "struct ISetup.DistributionSetupInfo",
1908
+ "name": "setup",
1909
+ "type": "tuple"
1910
+ },
1911
+ {
1912
+ "internalType": "StateId",
1913
+ "name": "newState",
1914
+ "type": "uint8"
1915
+ }
1916
+ ],
1917
+ "name": "updateDistributionSetup",
1918
+ "outputs": [],
1919
+ "stateMutability": "nonpayable",
1920
+ "type": "function"
1921
+ },
1922
+ {
1923
+ "inputs": [
1924
+ {
1925
+ "internalType": "NftId",
1926
+ "name": "distributionNftId",
1927
+ "type": "uint96"
1928
+ },
1929
+ {
1930
+ "internalType": "StateId",
1931
+ "name": "newState",
1932
+ "type": "uint8"
1933
+ }
1934
+ ],
1935
+ "name": "updateDistributionSetupState",
1936
+ "outputs": [],
1937
+ "stateMutability": "nonpayable",
1938
+ "type": "function"
1939
+ },
1940
+ {
1941
+ "inputs": [
1942
+ {
1943
+ "internalType": "NftId",
1944
+ "name": "nftId",
1945
+ "type": "uint96"
1946
+ },
1947
+ {
1948
+ "components": [
1949
+ {
1950
+ "internalType": "DistributorType",
1951
+ "name": "distributorType",
1952
+ "type": "bytes8"
1953
+ },
1954
+ {
1955
+ "internalType": "bool",
1956
+ "name": "active",
1957
+ "type": "bool"
1958
+ },
1959
+ {
1960
+ "internalType": "bytes",
1961
+ "name": "data",
1962
+ "type": "bytes"
1963
+ },
1964
+ {
1965
+ "internalType": "uint256",
1966
+ "name": "sumCommisions",
1967
+ "type": "uint256"
1968
+ },
1969
+ {
1970
+ "internalType": "uint256",
1971
+ "name": "numPoliciesSold",
1972
+ "type": "uint256"
1973
+ }
1974
+ ],
1975
+ "internalType": "struct IDistribution.DistributorInfo",
1976
+ "name": "info",
1977
+ "type": "tuple"
1978
+ },
1979
+ {
1980
+ "internalType": "StateId",
1981
+ "name": "newState",
1982
+ "type": "uint8"
1983
+ }
1984
+ ],
1985
+ "name": "updateDistributor",
1986
+ "outputs": [],
1987
+ "stateMutability": "nonpayable",
1988
+ "type": "function"
1989
+ },
1990
+ {
1991
+ "inputs": [
1992
+ {
1993
+ "internalType": "NftId",
1994
+ "name": "nftId",
1995
+ "type": "uint96"
1996
+ },
1997
+ {
1998
+ "internalType": "StateId",
1999
+ "name": "newState",
2000
+ "type": "uint8"
2001
+ }
2002
+ ],
2003
+ "name": "updateDistributorState",
2004
+ "outputs": [],
2005
+ "stateMutability": "nonpayable",
2006
+ "type": "function"
2007
+ },
2008
+ {
2009
+ "inputs": [
2010
+ {
2011
+ "internalType": "DistributorType",
2012
+ "name": "distributorType",
2013
+ "type": "bytes8"
2014
+ },
2015
+ {
2016
+ "components": [
2017
+ {
2018
+ "internalType": "string",
2019
+ "name": "name",
2020
+ "type": "string"
2021
+ },
2022
+ {
2023
+ "internalType": "UFixed",
2024
+ "name": "minDiscountPercentage",
2025
+ "type": "uint256"
2026
+ },
2027
+ {
2028
+ "internalType": "UFixed",
2029
+ "name": "maxDiscountPercentage",
2030
+ "type": "uint256"
2031
+ },
2032
+ {
2033
+ "internalType": "UFixed",
2034
+ "name": "commissionPercentage",
2035
+ "type": "uint256"
2036
+ },
2037
+ {
2038
+ "internalType": "uint32",
2039
+ "name": "maxReferralCount",
2040
+ "type": "uint32"
2041
+ },
2042
+ {
2043
+ "internalType": "uint32",
2044
+ "name": "maxReferralLifetime",
2045
+ "type": "uint32"
2046
+ },
2047
+ {
2048
+ "internalType": "bool",
2049
+ "name": "allowSelfReferrals",
2050
+ "type": "bool"
2051
+ },
2052
+ {
2053
+ "internalType": "bool",
2054
+ "name": "allowRenewals",
2055
+ "type": "bool"
2056
+ },
2057
+ {
2058
+ "internalType": "bytes",
2059
+ "name": "data",
2060
+ "type": "bytes"
2061
+ }
2062
+ ],
2063
+ "internalType": "struct IDistribution.DistributorTypeInfo",
2064
+ "name": "info",
2065
+ "type": "tuple"
2066
+ },
2067
+ {
2068
+ "internalType": "StateId",
2069
+ "name": "newState",
2070
+ "type": "uint8"
2071
+ }
2072
+ ],
2073
+ "name": "updateDistributorType",
2074
+ "outputs": [],
2075
+ "stateMutability": "nonpayable",
2076
+ "type": "function"
2077
+ },
2078
+ {
2079
+ "inputs": [
2080
+ {
2081
+ "internalType": "DistributorType",
2082
+ "name": "distributorType",
2083
+ "type": "bytes8"
2084
+ },
2085
+ {
2086
+ "internalType": "StateId",
2087
+ "name": "newState",
2088
+ "type": "uint8"
2089
+ }
2090
+ ],
2091
+ "name": "updateDistributorTypeState",
2092
+ "outputs": [],
2093
+ "stateMutability": "nonpayable",
2094
+ "type": "function"
2095
+ },
2096
+ {
2097
+ "inputs": [
2098
+ {
2099
+ "internalType": "NftId",
2100
+ "name": "policyNftId",
2101
+ "type": "uint96"
2102
+ },
2103
+ {
2104
+ "internalType": "PayoutId",
2105
+ "name": "payoutId",
2106
+ "type": "uint24"
2107
+ },
2108
+ {
2109
+ "components": [
2110
+ {
2111
+ "internalType": "ClaimId",
2112
+ "name": "claimId",
2113
+ "type": "uint16"
2114
+ },
2115
+ {
2116
+ "internalType": "Amount",
2117
+ "name": "amount",
2118
+ "type": "uint96"
2119
+ },
2120
+ {
2121
+ "internalType": "bytes",
2122
+ "name": "data",
2123
+ "type": "bytes"
2124
+ },
2125
+ {
2126
+ "internalType": "Timestamp",
2127
+ "name": "paidAt",
2128
+ "type": "uint40"
2129
+ }
2130
+ ],
2131
+ "internalType": "struct IPolicy.PayoutInfo",
2132
+ "name": "claim",
2133
+ "type": "tuple"
2134
+ },
2135
+ {
2136
+ "internalType": "StateId",
2137
+ "name": "newState",
2138
+ "type": "uint8"
2139
+ }
2140
+ ],
2141
+ "name": "updatePayout",
2142
+ "outputs": [],
2143
+ "stateMutability": "nonpayable",
2144
+ "type": "function"
2145
+ },
2146
+ {
2147
+ "inputs": [
2148
+ {
2149
+ "internalType": "NftId",
2150
+ "name": "policyNftId",
2151
+ "type": "uint96"
2152
+ },
2153
+ {
2154
+ "internalType": "PayoutId",
2155
+ "name": "payoutId",
2156
+ "type": "uint24"
2157
+ },
2158
+ {
2159
+ "internalType": "StateId",
2160
+ "name": "newState",
2161
+ "type": "uint8"
2162
+ }
2163
+ ],
2164
+ "name": "updatePayoutState",
2165
+ "outputs": [],
2166
+ "stateMutability": "nonpayable",
2167
+ "type": "function"
2168
+ },
2169
+ {
2170
+ "inputs": [
2171
+ {
2172
+ "internalType": "NftId",
2173
+ "name": "policyNftId",
2174
+ "type": "uint96"
2175
+ },
2176
+ {
2177
+ "components": [
2178
+ {
2179
+ "internalType": "NftId",
2180
+ "name": "productNftId",
2181
+ "type": "uint96"
2182
+ },
2183
+ {
2184
+ "internalType": "NftId",
2185
+ "name": "bundleNftId",
2186
+ "type": "uint96"
2187
+ },
2188
+ {
2189
+ "internalType": "ReferralId",
2190
+ "name": "referralId",
2191
+ "type": "bytes8"
2192
+ },
2193
+ {
2194
+ "internalType": "RiskId",
2195
+ "name": "riskId",
2196
+ "type": "bytes8"
2197
+ },
2198
+ {
2199
+ "internalType": "uint256",
2200
+ "name": "sumInsuredAmount",
2201
+ "type": "uint256"
2202
+ },
2203
+ {
2204
+ "internalType": "uint256",
2205
+ "name": "premiumAmount",
2206
+ "type": "uint256"
2207
+ },
2208
+ {
2209
+ "internalType": "uint256",
2210
+ "name": "premiumPaidAmount",
2211
+ "type": "uint256"
2212
+ },
2213
+ {
2214
+ "internalType": "Seconds",
2215
+ "name": "lifetime",
2216
+ "type": "uint40"
2217
+ },
2218
+ {
2219
+ "internalType": "bytes",
2220
+ "name": "applicationData",
2221
+ "type": "bytes"
2222
+ },
2223
+ {
2224
+ "internalType": "bytes",
2225
+ "name": "policyData",
2226
+ "type": "bytes"
2227
+ },
2228
+ {
2229
+ "internalType": "uint16",
2230
+ "name": "claimsCount",
2231
+ "type": "uint16"
2232
+ },
2233
+ {
2234
+ "internalType": "uint16",
2235
+ "name": "openClaimsCount",
2236
+ "type": "uint16"
2237
+ },
2238
+ {
2239
+ "internalType": "Amount",
2240
+ "name": "claimAmount",
2241
+ "type": "uint96"
2242
+ },
2243
+ {
2244
+ "internalType": "Amount",
2245
+ "name": "payoutAmount",
2246
+ "type": "uint96"
2247
+ },
2248
+ {
2249
+ "internalType": "Timestamp",
2250
+ "name": "activatedAt",
2251
+ "type": "uint40"
2252
+ },
2253
+ {
2254
+ "internalType": "Timestamp",
2255
+ "name": "expiredAt",
2256
+ "type": "uint40"
2257
+ },
2258
+ {
2259
+ "internalType": "Timestamp",
2260
+ "name": "closedAt",
2261
+ "type": "uint40"
2262
+ }
2263
+ ],
2264
+ "internalType": "struct IPolicy.PolicyInfo",
2265
+ "name": "policy",
2266
+ "type": "tuple"
2267
+ },
2268
+ {
2269
+ "internalType": "StateId",
2270
+ "name": "newState",
2271
+ "type": "uint8"
2272
+ }
2273
+ ],
2274
+ "name": "updatePolicy",
2275
+ "outputs": [],
2276
+ "stateMutability": "nonpayable",
2277
+ "type": "function"
2278
+ },
2279
+ {
2280
+ "inputs": [
2281
+ {
2282
+ "internalType": "NftId",
2283
+ "name": "policyNftId",
2284
+ "type": "uint96"
2285
+ },
2286
+ {
2287
+ "components": [
2288
+ {
2289
+ "internalType": "NftId",
2290
+ "name": "productNftId",
2291
+ "type": "uint96"
2292
+ },
2293
+ {
2294
+ "internalType": "NftId",
2295
+ "name": "bundleNftId",
2296
+ "type": "uint96"
2297
+ },
2298
+ {
2299
+ "internalType": "ReferralId",
2300
+ "name": "referralId",
2301
+ "type": "bytes8"
2302
+ },
2303
+ {
2304
+ "internalType": "RiskId",
2305
+ "name": "riskId",
2306
+ "type": "bytes8"
2307
+ },
2308
+ {
2309
+ "internalType": "uint256",
2310
+ "name": "sumInsuredAmount",
2311
+ "type": "uint256"
2312
+ },
2313
+ {
2314
+ "internalType": "uint256",
2315
+ "name": "premiumAmount",
2316
+ "type": "uint256"
2317
+ },
2318
+ {
2319
+ "internalType": "uint256",
2320
+ "name": "premiumPaidAmount",
2321
+ "type": "uint256"
2322
+ },
2323
+ {
2324
+ "internalType": "Seconds",
2325
+ "name": "lifetime",
2326
+ "type": "uint40"
2327
+ },
2328
+ {
2329
+ "internalType": "bytes",
2330
+ "name": "applicationData",
2331
+ "type": "bytes"
2332
+ },
2333
+ {
2334
+ "internalType": "bytes",
2335
+ "name": "policyData",
2336
+ "type": "bytes"
2337
+ },
2338
+ {
2339
+ "internalType": "uint16",
2340
+ "name": "claimsCount",
2341
+ "type": "uint16"
2342
+ },
2343
+ {
2344
+ "internalType": "uint16",
2345
+ "name": "openClaimsCount",
2346
+ "type": "uint16"
2347
+ },
2348
+ {
2349
+ "internalType": "Amount",
2350
+ "name": "claimAmount",
2351
+ "type": "uint96"
2352
+ },
2353
+ {
2354
+ "internalType": "Amount",
2355
+ "name": "payoutAmount",
2356
+ "type": "uint96"
2357
+ },
2358
+ {
2359
+ "internalType": "Timestamp",
2360
+ "name": "activatedAt",
2361
+ "type": "uint40"
2362
+ },
2363
+ {
2364
+ "internalType": "Timestamp",
2365
+ "name": "expiredAt",
2366
+ "type": "uint40"
2367
+ },
2368
+ {
2369
+ "internalType": "Timestamp",
2370
+ "name": "closedAt",
2371
+ "type": "uint40"
2372
+ }
2373
+ ],
2374
+ "internalType": "struct IPolicy.PolicyInfo",
2375
+ "name": "policy",
2376
+ "type": "tuple"
2377
+ },
2378
+ {
2379
+ "internalType": "StateId",
2380
+ "name": "newState",
2381
+ "type": "uint8"
2382
+ }
2383
+ ],
2384
+ "name": "updatePolicyClaims",
2385
+ "outputs": [],
2386
+ "stateMutability": "nonpayable",
2387
+ "type": "function"
2388
+ },
2389
+ {
2390
+ "inputs": [
2391
+ {
2392
+ "internalType": "NftId",
2393
+ "name": "policyNftId",
2394
+ "type": "uint96"
2395
+ },
2396
+ {
2397
+ "internalType": "StateId",
2398
+ "name": "newState",
2399
+ "type": "uint8"
2400
+ }
2401
+ ],
2402
+ "name": "updatePolicyState",
2403
+ "outputs": [],
2404
+ "stateMutability": "nonpayable",
2405
+ "type": "function"
2406
+ },
2407
+ {
2408
+ "inputs": [
2409
+ {
2410
+ "internalType": "NftId",
2411
+ "name": "poolNftId",
2412
+ "type": "uint96"
2413
+ },
2414
+ {
2415
+ "components": [
2416
+ {
2417
+ "internalType": "string",
2418
+ "name": "name",
2419
+ "type": "string"
2420
+ },
2421
+ {
2422
+ "internalType": "contract IERC20Metadata",
2423
+ "name": "token",
2424
+ "type": "address"
2425
+ },
2426
+ {
2427
+ "internalType": "contract TokenHandler",
2428
+ "name": "tokenHandler",
2429
+ "type": "address"
2430
+ },
2431
+ {
2432
+ "internalType": "address",
2433
+ "name": "wallet",
2434
+ "type": "address"
2435
+ },
2436
+ {
2437
+ "internalType": "Amount",
2438
+ "name": "balanceAmount",
2439
+ "type": "uint96"
2440
+ },
2441
+ {
2442
+ "internalType": "Amount",
2443
+ "name": "feeAmount",
2444
+ "type": "uint96"
2445
+ },
2446
+ {
2447
+ "internalType": "bytes",
2448
+ "name": "data",
2449
+ "type": "bytes"
2450
+ }
2451
+ ],
2452
+ "internalType": "struct IComponents.ComponentInfo",
2453
+ "name": "info",
2454
+ "type": "tuple"
2455
+ },
2456
+ {
2457
+ "internalType": "StateId",
2458
+ "name": "newState",
2459
+ "type": "uint8"
2460
+ }
2461
+ ],
2462
+ "name": "updatePoolSetup",
2463
+ "outputs": [],
2464
+ "stateMutability": "nonpayable",
2465
+ "type": "function"
2466
+ },
2467
+ {
2468
+ "inputs": [
2469
+ {
2470
+ "internalType": "NftId",
2471
+ "name": "poolNftId",
2472
+ "type": "uint96"
2473
+ },
2474
+ {
2475
+ "internalType": "StateId",
2476
+ "name": "newState",
2477
+ "type": "uint8"
2478
+ }
2479
+ ],
2480
+ "name": "updatePoolSetupState",
2481
+ "outputs": [],
2482
+ "stateMutability": "nonpayable",
2483
+ "type": "function"
2484
+ },
2485
+ {
2486
+ "inputs": [
2487
+ {
2488
+ "internalType": "NftId",
2489
+ "name": "productNftId",
2490
+ "type": "uint96"
2491
+ },
2492
+ {
2493
+ "components": [
2494
+ {
2495
+ "internalType": "contract IERC20Metadata",
2496
+ "name": "token",
2497
+ "type": "address"
2498
+ },
2499
+ {
2500
+ "internalType": "contract TokenHandler",
2501
+ "name": "tokenHandler",
2502
+ "type": "address"
2503
+ },
2504
+ {
2505
+ "internalType": "NftId",
2506
+ "name": "distributionNftId",
2507
+ "type": "uint96"
2508
+ },
2509
+ {
2510
+ "internalType": "NftId",
2511
+ "name": "poolNftId",
2512
+ "type": "uint96"
2513
+ },
2514
+ {
2515
+ "components": [
2516
+ {
2517
+ "internalType": "UFixed",
2518
+ "name": "fractionalFee",
2519
+ "type": "uint256"
2520
+ },
2521
+ {
2522
+ "internalType": "uint256",
2523
+ "name": "fixedFee",
2524
+ "type": "uint256"
2525
+ }
2526
+ ],
2527
+ "internalType": "struct Fee",
2528
+ "name": "productFee",
2529
+ "type": "tuple"
2530
+ },
2531
+ {
2532
+ "components": [
2533
+ {
2534
+ "internalType": "UFixed",
2535
+ "name": "fractionalFee",
2536
+ "type": "uint256"
2537
+ },
2538
+ {
2539
+ "internalType": "uint256",
2540
+ "name": "fixedFee",
2541
+ "type": "uint256"
2542
+ }
2543
+ ],
2544
+ "internalType": "struct Fee",
2545
+ "name": "processingFee",
2546
+ "type": "tuple"
2547
+ },
2548
+ {
2549
+ "internalType": "bool",
2550
+ "name": "isIntercepting",
2551
+ "type": "bool"
2552
+ },
2553
+ {
2554
+ "internalType": "address",
2555
+ "name": "wallet",
2556
+ "type": "address"
2557
+ }
2558
+ ],
2559
+ "internalType": "struct ISetup.ProductSetupInfo",
2560
+ "name": "setup",
2561
+ "type": "tuple"
2562
+ },
2563
+ {
2564
+ "internalType": "StateId",
2565
+ "name": "newState",
2566
+ "type": "uint8"
2567
+ }
2568
+ ],
2569
+ "name": "updateProductSetup",
2570
+ "outputs": [],
2571
+ "stateMutability": "nonpayable",
2572
+ "type": "function"
2573
+ },
2574
+ {
2575
+ "inputs": [
2576
+ {
2577
+ "internalType": "NftId",
2578
+ "name": "productNftId",
2579
+ "type": "uint96"
2580
+ },
2581
+ {
2582
+ "internalType": "StateId",
2583
+ "name": "newState",
2584
+ "type": "uint8"
2585
+ }
2586
+ ],
2587
+ "name": "updateProductSetupState",
2588
+ "outputs": [],
2589
+ "stateMutability": "nonpayable",
2590
+ "type": "function"
2591
+ },
2592
+ {
2593
+ "inputs": [
2594
+ {
2595
+ "internalType": "ReferralId",
2596
+ "name": "referralId",
2597
+ "type": "bytes8"
2598
+ },
2599
+ {
2600
+ "components": [
2601
+ {
2602
+ "internalType": "NftId",
2603
+ "name": "distributorNftId",
2604
+ "type": "uint96"
2605
+ },
2606
+ {
2607
+ "internalType": "string",
2608
+ "name": "referralCode",
2609
+ "type": "string"
2610
+ },
2611
+ {
2612
+ "internalType": "UFixed",
2613
+ "name": "discountPercentage",
2614
+ "type": "uint256"
2615
+ },
2616
+ {
2617
+ "internalType": "uint32",
2618
+ "name": "maxReferrals",
2619
+ "type": "uint32"
2620
+ },
2621
+ {
2622
+ "internalType": "uint32",
2623
+ "name": "usedReferrals",
2624
+ "type": "uint32"
2625
+ },
2626
+ {
2627
+ "internalType": "Timestamp",
2628
+ "name": "expiryAt",
2629
+ "type": "uint40"
2630
+ },
2631
+ {
2632
+ "internalType": "bytes",
2633
+ "name": "data",
2634
+ "type": "bytes"
2635
+ }
2636
+ ],
2637
+ "internalType": "struct IDistribution.ReferralInfo",
2638
+ "name": "referralInfo",
2639
+ "type": "tuple"
2640
+ },
2641
+ {
2642
+ "internalType": "StateId",
2643
+ "name": "newState",
2644
+ "type": "uint8"
2645
+ }
2646
+ ],
2647
+ "name": "updateReferral",
2648
+ "outputs": [],
2649
+ "stateMutability": "nonpayable",
2650
+ "type": "function"
2651
+ },
2652
+ {
2653
+ "inputs": [
2654
+ {
2655
+ "internalType": "ReferralId",
2656
+ "name": "referralId",
2657
+ "type": "bytes8"
2658
+ },
2659
+ {
2660
+ "internalType": "StateId",
2661
+ "name": "newState",
2662
+ "type": "uint8"
2663
+ }
2664
+ ],
2665
+ "name": "updateReferralState",
2666
+ "outputs": [],
2667
+ "stateMutability": "nonpayable",
2668
+ "type": "function"
2669
+ },
2670
+ {
2671
+ "inputs": [
2672
+ {
2673
+ "internalType": "RiskId",
2674
+ "name": "riskId",
2675
+ "type": "bytes8"
2676
+ },
2677
+ {
2678
+ "components": [
2679
+ {
2680
+ "internalType": "NftId",
2681
+ "name": "productNftId",
2682
+ "type": "uint96"
2683
+ },
2684
+ {
2685
+ "internalType": "bytes",
2686
+ "name": "data",
2687
+ "type": "bytes"
2688
+ }
2689
+ ],
2690
+ "internalType": "struct IRisk.RiskInfo",
2691
+ "name": "risk",
2692
+ "type": "tuple"
2693
+ },
2694
+ {
2695
+ "internalType": "StateId",
2696
+ "name": "newState",
2697
+ "type": "uint8"
2698
+ }
2699
+ ],
2700
+ "name": "updateRisk",
2701
+ "outputs": [],
2702
+ "stateMutability": "nonpayable",
2703
+ "type": "function"
2704
+ },
2705
+ {
2706
+ "inputs": [
2707
+ {
2708
+ "internalType": "RiskId",
2709
+ "name": "riskId",
2710
+ "type": "bytes8"
2711
+ },
2712
+ {
2713
+ "internalType": "StateId",
2714
+ "name": "newState",
2715
+ "type": "uint8"
2716
+ }
2717
+ ],
2718
+ "name": "updateRiskState",
2719
+ "outputs": [],
2720
+ "stateMutability": "nonpayable",
2721
+ "type": "function"
2722
+ }
2723
+ ],
6
2724
  "bytecode": "0x",
7
2725
  "deployedBytecode": "0x",
8
2726
  "linkReferences": {},