@etherisc/gif-next 0.0.2-9a053fa-993 → 0.0.2-9addcc0-107

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