@etherisc/gif-next 0.0.2-fe77319 → 0.0.2-ff8087d-237

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