@etherisc/gif-next 0.0.2-ff8087d-237 → 0.0.2-ffa91a6-022

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