@etherisc/gif-next 0.0.2-e6a90b9 → 0.0.2-e818783-565

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