@etherisc/gif-next 0.0.2-eadf4ad-726 → 0.0.2-eae585a-625

Sign up to get free protection for your applications and to get access to all the features.
Files changed (597) hide show
  1. package/README.md +139 -10
  2. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.dbg.json +4 -0
  3. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.json +1075 -0
  4. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.dbg.json +4 -0
  5. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.json +790 -0
  6. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.dbg.json +4 -0
  7. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.json +843 -0
  8. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +4 -0
  9. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +1664 -0
  10. package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.dbg.json +4 -0
  11. package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.json +1289 -0
  12. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.dbg.json +4 -0
  13. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.json +1403 -0
  14. package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +4 -0
  15. package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +790 -0
  16. package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +4 -0
  17. package/artifacts/contracts/{instance/module/ISetup.sol/ISetup.json → authorization/IAccess.sol/IAccess.json} +2 -2
  18. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +4 -0
  19. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.json +1372 -0
  20. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +4 -0
  21. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.json +455 -0
  22. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +4 -0
  23. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +397 -0
  24. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +4 -0
  25. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +646 -0
  26. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +4 -0
  27. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +1244 -0
  28. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +4 -0
  29. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +805 -0
  30. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +1 -1
  31. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +174 -601
  32. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +1 -1
  33. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +786 -533
  34. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  35. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +239 -128
  36. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  37. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +178 -330
  38. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  39. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +622 -178
  40. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.dbg.json +4 -0
  41. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.json +22 -0
  42. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.dbg.json +4 -0
  43. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.json +1484 -0
  44. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.dbg.json +4 -0
  45. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.json +805 -0
  46. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +4 -0
  47. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +2053 -0
  48. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.dbg.json +4 -0
  49. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.json +805 -0
  50. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.dbg.json +4 -0
  51. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.json +376 -0
  52. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +4 -0
  53. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +1439 -0
  54. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.dbg.json +4 -0
  55. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.json +805 -0
  56. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +4 -0
  57. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +1171 -0
  58. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +4 -0
  59. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +1647 -0
  60. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.dbg.json +4 -0
  61. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.json +805 -0
  62. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +4 -0
  63. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +2585 -0
  64. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.dbg.json +4 -0
  65. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.json +805 -0
  66. package/artifacts/contracts/instance/BaseStore.sol/BaseStore.dbg.json +4 -0
  67. package/artifacts/contracts/instance/BaseStore.sol/BaseStore.json +332 -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/IBaseStore.sol/IBaseStore.dbg.json +4 -0
  71. package/artifacts/contracts/instance/IBaseStore.sol/IBaseStore.json +304 -0
  72. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  73. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +604 -92
  74. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +532 -56
  76. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  77. package/artifacts/contracts/instance/Instance.sol/Instance.json +657 -257
  78. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +4 -0
  79. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +2284 -0
  80. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +4 -0
  81. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +837 -0
  82. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  83. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1833 -761
  84. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +552 -193
  86. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  87. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +171 -94
  88. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +1 -1
  89. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +1548 -1017
  90. package/artifacts/contracts/instance/ProductStore.sol/ProductStore.dbg.json +4 -0
  91. package/artifacts/contracts/instance/ProductStore.sol/ProductStore.json +1539 -0
  92. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.dbg.json +4 -0
  93. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.json +866 -0
  94. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +4 -0
  95. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +318 -0
  96. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +1 -1
  97. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.json +0 -53
  98. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +4 -0
  99. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +10 -0
  100. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +4 -0
  101. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +223 -0
  102. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +4 -0
  103. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +192 -0
  104. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.dbg.json +4 -0
  105. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.json +168 -0
  106. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  107. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  108. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  109. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  110. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  111. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +4 -0
  112. package/artifacts/contracts/mock/Dip.sol/Dip.json +376 -0
  113. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +4 -0
  114. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +957 -0
  115. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +4 -0
  116. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +810 -0
  117. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +4 -0
  118. package/artifacts/contracts/oracle/IOracle.sol/IOracle.json +52 -0
  119. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +4 -0
  120. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +772 -0
  121. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +4 -0
  122. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.json +762 -0
  123. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +4 -0
  124. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +873 -0
  125. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +4 -0
  126. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +1042 -0
  127. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +4 -0
  128. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +810 -0
  129. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +4 -0
  130. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +1242 -0
  131. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +4 -0
  132. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +805 -0
  133. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +1 -1
  134. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +550 -400
  135. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  136. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +233 -102
  137. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +1 -1
  138. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +384 -86
  139. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  140. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +233 -423
  141. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +1 -1
  142. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +749 -377
  143. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +1 -1
  144. package/artifacts/contracts/pool/Pool.sol/Pool.json +247 -629
  145. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.dbg.json +4 -0
  146. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.json +522 -0
  147. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +1 -1
  148. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +954 -743
  149. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  150. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +232 -113
  151. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  152. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +370 -252
  153. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  154. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +192 -89
  155. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +4 -0
  156. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +1159 -0
  157. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +4 -0
  158. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +805 -0
  159. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +1 -1
  160. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +491 -341
  161. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  162. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +214 -115
  163. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  164. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +320 -9
  165. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +1 -1
  166. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +369 -18
  167. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  168. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +454 -69
  169. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +1 -1
  170. package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +217 -75
  171. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  172. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +380 -225
  173. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +4 -0
  174. package/artifacts/contracts/product/{IProductService.sol/IProductService.json → IRiskService.sol/IRiskService.json} +289 -66
  175. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +1 -1
  176. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +507 -384
  177. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.dbg.json +4 -0
  178. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.json +783 -0
  179. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  180. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +198 -123
  181. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +1 -1
  182. package/artifacts/contracts/product/PricingService.sol/PricingService.json +261 -333
  183. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +1 -1
  184. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +196 -109
  185. package/artifacts/contracts/product/Product.sol/Product.dbg.json +1 -1
  186. package/artifacts/contracts/product/Product.sol/Product.json +428 -509
  187. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +4 -0
  188. package/artifacts/contracts/product/RiskService.sol/RiskService.json +873 -0
  189. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +4 -0
  190. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +774 -0
  191. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  192. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +59 -16
  193. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  194. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +456 -51
  195. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  196. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +177 -65
  197. package/artifacts/contracts/registry/IRelease.sol/IRelease.dbg.json +4 -0
  198. package/artifacts/contracts/registry/IRelease.sol/IRelease.json +24 -0
  199. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  200. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +5 -18
  201. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  202. package/artifacts/contracts/registry/Registry.sol/Registry.json +962 -174
  203. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +4 -0
  204. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +2160 -0
  205. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.dbg.json +4 -0
  206. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.json +1074 -0
  207. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  208. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +242 -196
  209. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  210. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +162 -90
  211. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.dbg.json +4 -0
  212. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.json +2152 -0
  213. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +4 -0
  214. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +205 -0
  215. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +4 -0
  216. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +1389 -0
  217. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +4 -0
  218. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +683 -0
  219. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  220. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +361 -125
  221. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +1 -1
  222. package/artifacts/contracts/shared/Component.sol/Component.json +128 -296
  223. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +1 -1
  224. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +1076 -156
  225. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +4 -0
  226. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +862 -0
  227. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +4 -0
  228. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +632 -0
  229. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.dbg.json +4 -0
  230. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.json +24 -0
  231. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.dbg.json +4 -0
  232. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.json +30 -0
  233. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.dbg.json +4 -0
  234. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.json +40 -0
  235. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +1 -1
  236. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +129 -135
  237. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +4 -0
  238. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +1175 -0
  239. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +4 -0
  240. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +707 -0
  241. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  242. package/artifacts/contracts/{instance/base → shared}/IKeyValueStore.sol/IKeyValueStore.json +89 -20
  243. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  244. package/artifacts/contracts/{instance/base → shared}/ILifecycle.sol/ILifecycle.json +35 -4
  245. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  246. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +42 -1
  247. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  248. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +16 -30
  249. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  250. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +173 -0
  251. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  252. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  253. package/artifacts/contracts/shared/IService.sol/IService.json +103 -2
  254. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +4 -0
  255. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +53 -0
  256. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +4 -0
  257. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +795 -0
  258. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  259. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +575 -0
  260. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  261. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +174 -0
  262. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +4 -0
  263. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +306 -0
  264. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  265. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +45 -55
  266. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  267. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +20 -124
  268. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  269. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +148 -90
  270. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  271. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
  272. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  273. package/artifacts/contracts/shared/Service.sol/Service.json +96 -102
  274. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  275. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +615 -6
  276. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.dbg.json +4 -0
  277. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.json +484 -0
  278. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +4 -0
  279. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +172 -0
  280. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +4 -0
  281. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +2757 -0
  282. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +1 -1
  283. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +732 -108
  284. package/artifacts/contracts/staking/ITargetLimitHandler.sol/ITargetLimitHandler.dbg.json +4 -0
  285. package/artifacts/contracts/staking/ITargetLimitHandler.sol/ITargetLimitHandler.json +50 -0
  286. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +4 -0
  287. package/artifacts/contracts/staking/Staking.sol/Staking.json +3185 -0
  288. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.dbg.json +4 -0
  289. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.json +470 -0
  290. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +4 -0
  291. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +847 -0
  292. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +4 -0
  293. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +704 -0
  294. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +1 -1
  295. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +818 -241
  296. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +1 -1
  297. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +182 -83
  298. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +4 -0
  299. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +3097 -0
  300. package/artifacts/contracts/staking/TargetHandler.sol/TargetHandler.dbg.json +4 -0
  301. package/artifacts/contracts/staking/TargetHandler.sol/TargetHandler.json +309 -0
  302. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +4 -0
  303. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +679 -0
  304. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  305. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.json +2 -2
  306. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +1 -1
  307. package/artifacts/contracts/type/Amount.sol/AmountLib.json +122 -5
  308. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  309. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +92 -15
  310. package/artifacts/contracts/type/ChainId.sol/ChainIdLib.dbg.json +4 -0
  311. package/artifacts/contracts/type/ChainId.sol/ChainIdLib.json +193 -0
  312. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  313. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +28 -4
  314. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  315. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +4 -4
  316. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +1 -1
  317. package/artifacts/contracts/type/Fee.sol/FeeLib.json +119 -58
  318. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +1 -1
  319. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +2 -2
  320. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.dbg.json +4 -0
  321. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.json +33 -0
  322. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +1 -1
  323. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +66 -4
  324. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  325. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +2 -2
  326. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  327. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +153 -4
  328. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  329. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +19 -19
  330. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +1 -1
  331. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +4 -4
  332. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +4 -0
  333. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +204 -0
  334. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +1 -1
  335. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +125 -7
  336. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +1 -1
  337. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +121 -23
  338. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +1 -1
  339. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +167 -2
  340. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +4 -0
  341. package/artifacts/contracts/type/Selector.sol/SelectorLib.json +148 -0
  342. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +4 -0
  343. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.json +10 -0
  344. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +1 -1
  345. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +15 -2
  346. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +4 -0
  347. package/artifacts/contracts/type/String.sol/StrLib.json +180 -0
  348. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +1 -1
  349. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +37 -5
  350. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +1 -1
  351. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +126 -33
  352. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +1 -1
  353. package/artifacts/contracts/type/Version.sol/VersionLib.json +2 -21
  354. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +1 -1
  355. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +120 -2
  356. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +4 -0
  357. package/artifacts/contracts/{shared → upgradeability}/IVersionable.sol/IVersionable.json +11 -1
  358. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  359. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +656 -0
  360. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  361. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +142 -0
  362. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +4 -0
  363. package/artifacts/contracts/{shared → upgradeability}/Versionable.sol/Versionable.json +11 -1
  364. package/contracts/accounting/AccountingService.sol +274 -0
  365. package/contracts/accounting/AccountingServiceManager.sol +38 -0
  366. package/contracts/accounting/IAccountingService.sol +47 -0
  367. package/contracts/authorization/AccessAdmin.sol +780 -0
  368. package/contracts/authorization/AccessAdminLib.sol +396 -0
  369. package/contracts/authorization/AccessManagerCloneable.sol +158 -0
  370. package/contracts/authorization/Authorization.sol +169 -0
  371. package/contracts/authorization/IAccess.sol +67 -0
  372. package/contracts/authorization/IAccessAdmin.sol +144 -0
  373. package/contracts/authorization/IAuthorization.sol +26 -0
  374. package/contracts/authorization/IServiceAuthorization.sol +78 -0
  375. package/contracts/authorization/ServiceAuthorization.sol +320 -0
  376. package/contracts/distribution/BasicDistribution.sol +141 -0
  377. package/contracts/distribution/BasicDistributionAuthorization.sol +67 -0
  378. package/contracts/distribution/Distribution.sol +137 -175
  379. package/contracts/distribution/DistributionService.sol +313 -216
  380. package/contracts/distribution/DistributionServiceManager.sol +8 -23
  381. package/contracts/distribution/IDistributionComponent.sol +23 -49
  382. package/contracts/distribution/IDistributionService.sol +61 -33
  383. package/contracts/examples/fire/DamageLevel.sol +59 -0
  384. package/contracts/examples/fire/FirePool.sol +86 -0
  385. package/contracts/examples/fire/FirePoolAuthorization.sol +35 -0
  386. package/contracts/examples/fire/FireProduct.sol +433 -0
  387. package/contracts/examples/fire/FireProductAuthorization.sol +45 -0
  388. package/contracts/examples/fire/FireUSD.sol +26 -0
  389. package/contracts/examples/unpermissioned/SimpleDistribution.sol +81 -0
  390. package/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol +28 -0
  391. package/contracts/examples/unpermissioned/SimpleOracle.sol +133 -0
  392. package/contracts/examples/unpermissioned/SimplePool.sol +102 -0
  393. package/contracts/examples/unpermissioned/SimplePoolAuthorization.sol +28 -0
  394. package/contracts/examples/unpermissioned/SimpleProduct.sol +437 -0
  395. package/contracts/examples/unpermissioned/SimpleProductAuthorization.sol +28 -0
  396. package/contracts/instance/BaseStore.sol +93 -0
  397. package/contracts/instance/BundleSet.sol +130 -0
  398. package/contracts/instance/IBaseStore.sol +37 -0
  399. package/contracts/instance/IInstance.sol +128 -49
  400. package/contracts/instance/IInstanceService.sol +83 -37
  401. package/contracts/instance/Instance.sol +254 -132
  402. package/contracts/instance/InstanceAdmin.sol +379 -0
  403. package/contracts/instance/InstanceAuthorizationV3.sol +275 -0
  404. package/contracts/instance/InstanceReader.sol +507 -241
  405. package/contracts/instance/InstanceService.sol +418 -205
  406. package/contracts/instance/InstanceServiceManager.sol +8 -13
  407. package/contracts/instance/InstanceStore.sol +146 -89
  408. package/contracts/instance/ProductStore.sol +119 -0
  409. package/contracts/instance/RiskSet.sol +126 -0
  410. package/contracts/instance/TargetNames.sol +10 -0
  411. package/contracts/instance/base/BalanceStore.sol +121 -0
  412. package/contracts/instance/base/Cloneable.sol +2 -25
  413. package/contracts/instance/base/ObjectCounter.sol +20 -0
  414. package/contracts/instance/base/ObjectLifecycle.sol +109 -0
  415. package/contracts/instance/base/ObjectSet.sol +77 -0
  416. package/contracts/instance/base/ObjectSetHelperLib.sol +30 -0
  417. package/contracts/instance/module/IBundle.sol +6 -8
  418. package/contracts/instance/module/IComponents.sol +40 -19
  419. package/contracts/instance/module/IDistribution.sol +21 -9
  420. package/contracts/instance/module/IPolicy.sol +57 -30
  421. package/contracts/instance/module/IRisk.sol +5 -0
  422. package/contracts/mock/Dip.sol +26 -0
  423. package/contracts/oracle/BasicOracle.sol +45 -0
  424. package/contracts/oracle/BasicOracleAuthorization.sol +53 -0
  425. package/contracts/oracle/IOracle.sol +41 -0
  426. package/contracts/oracle/IOracleComponent.sol +33 -0
  427. package/contracts/oracle/IOracleService.sol +66 -0
  428. package/contracts/oracle/Oracle.sol +154 -0
  429. package/contracts/oracle/OracleService.sol +310 -0
  430. package/contracts/oracle/OracleServiceManager.sol +39 -0
  431. package/contracts/pool/BasicPool.sol +162 -0
  432. package/contracts/pool/BasicPoolAuthorization.sol +81 -0
  433. package/contracts/pool/BundleService.sol +248 -246
  434. package/contracts/pool/BundleServiceManager.sol +8 -11
  435. package/contracts/pool/IBundleService.sol +47 -49
  436. package/contracts/pool/IPoolComponent.sol +23 -75
  437. package/contracts/pool/IPoolService.sol +112 -56
  438. package/contracts/pool/Pool.sol +200 -169
  439. package/contracts/pool/PoolLib.sol +341 -0
  440. package/contracts/pool/PoolService.sol +477 -267
  441. package/contracts/pool/PoolServiceManager.sol +6 -9
  442. package/contracts/product/ApplicationService.sol +222 -82
  443. package/contracts/product/ApplicationServiceManager.sol +6 -6
  444. package/contracts/product/BasicProduct.sol +49 -0
  445. package/contracts/product/BasicProductAuthorization.sol +63 -0
  446. package/contracts/product/ClaimService.sol +397 -214
  447. package/contracts/product/ClaimServiceManager.sol +6 -6
  448. package/contracts/product/IApplicationService.sol +30 -4
  449. package/contracts/product/IClaimService.sol +52 -9
  450. package/contracts/product/IPolicyService.sol +62 -40
  451. package/contracts/product/IPricingService.sol +14 -11
  452. package/contracts/product/IProductComponent.sol +31 -10
  453. package/contracts/product/IRiskService.sol +48 -0
  454. package/contracts/product/PolicyService.sol +504 -237
  455. package/contracts/product/PolicyServiceLib.sol +139 -0
  456. package/contracts/product/PolicyServiceManager.sol +6 -9
  457. package/contracts/product/PricingService.sol +132 -102
  458. package/contracts/product/PricingServiceManager.sol +6 -9
  459. package/contracts/product/Product.sol +267 -153
  460. package/contracts/product/RiskService.sol +190 -0
  461. package/contracts/product/RiskServiceManager.sol +39 -0
  462. package/contracts/registry/ChainNft.sol +79 -40
  463. package/contracts/registry/IRegistry.sol +98 -34
  464. package/contracts/registry/IRegistryService.sol +10 -6
  465. package/contracts/registry/IRelease.sol +29 -0
  466. package/contracts/registry/ITransferInterceptor.sol +1 -2
  467. package/contracts/registry/Registry.sol +457 -192
  468. package/contracts/registry/RegistryAdmin.sol +191 -0
  469. package/contracts/registry/RegistryAuthorization.sol +336 -0
  470. package/contracts/registry/RegistryService.sol +77 -67
  471. package/contracts/registry/RegistryServiceManager.sol +6 -25
  472. package/contracts/registry/ReleaseAdmin.sol +195 -0
  473. package/contracts/registry/ReleaseLifecycle.sol +32 -0
  474. package/contracts/registry/ReleaseRegistry.sol +525 -0
  475. package/contracts/registry/ServiceAuthorizationV3.sol +342 -0
  476. package/contracts/registry/TokenRegistry.sol +264 -63
  477. package/contracts/shared/Component.sol +126 -183
  478. package/contracts/shared/ComponentService.sol +639 -93
  479. package/contracts/shared/ComponentServiceManager.sol +38 -0
  480. package/contracts/shared/ContractLib.sol +312 -0
  481. package/contracts/shared/IComponent.sol +18 -50
  482. package/contracts/shared/IComponentService.sol +111 -0
  483. package/contracts/shared/IInstanceLinkedComponent.sol +30 -0
  484. package/contracts/{instance/base → shared}/IKeyValueStore.sol +15 -6
  485. package/contracts/{instance/base → shared}/ILifecycle.sol +5 -4
  486. package/contracts/shared/INftOwnable.sol +5 -1
  487. package/contracts/shared/IPolicyHolder.sol +12 -17
  488. package/contracts/shared/IRegisterable.sol +22 -1
  489. package/contracts/shared/IService.sol +11 -6
  490. package/contracts/shared/{ERC165.sol → InitializableERC165.sol} +12 -4
  491. package/contracts/shared/InstanceLinkedComponent.sol +194 -0
  492. package/contracts/shared/KeyValueStore.sol +131 -0
  493. package/contracts/shared/Lifecycle.sol +88 -0
  494. package/contracts/shared/NftIdSet.sol +65 -0
  495. package/contracts/shared/NftOwnable.sol +35 -24
  496. package/contracts/shared/PolicyHolder.sol +19 -50
  497. package/contracts/shared/Registerable.sol +54 -23
  498. package/contracts/shared/RegistryLinked.sol +9 -14
  499. package/contracts/shared/Service.sol +36 -41
  500. package/contracts/shared/TokenHandler.sol +320 -13
  501. package/contracts/shared/TokenHandlerDeployerLib.sol +20 -0
  502. package/contracts/staking/IStaking.sol +367 -0
  503. package/contracts/staking/IStakingService.sol +106 -81
  504. package/contracts/staking/ITargetLimitHandler.sol +17 -0
  505. package/contracts/staking/Staking.sol +798 -0
  506. package/contracts/staking/StakingLib.sol +195 -0
  507. package/contracts/staking/StakingManager.sol +53 -0
  508. package/contracts/staking/StakingReader.sol +171 -0
  509. package/contracts/staking/StakingService.sol +208 -56
  510. package/contracts/staking/StakingServiceManager.sol +14 -8
  511. package/contracts/staking/StakingStore.sol +1368 -0
  512. package/contracts/staking/TargetHandler.sol +132 -0
  513. package/contracts/staking/TargetManagerLib.sol +234 -0
  514. package/contracts/type/AddressSet.sol +1 -1
  515. package/contracts/type/Amount.sol +48 -3
  516. package/contracts/type/Blocknumber.sol +36 -13
  517. package/contracts/type/ChainId.sol +101 -0
  518. package/contracts/type/ClaimId.sol +6 -1
  519. package/contracts/type/Fee.sol +22 -21
  520. package/contracts/type/Key32.sol +2 -2
  521. package/contracts/type/Key32Set.sol +62 -0
  522. package/contracts/type/NftId.sol +21 -16
  523. package/contracts/type/NftIdSet.sol +1 -1
  524. package/contracts/type/ObjectType.sol +204 -59
  525. package/contracts/type/PayoutId.sol +10 -10
  526. package/contracts/type/Referral.sol +2 -1
  527. package/contracts/type/RequestId.sol +75 -0
  528. package/contracts/type/RiskId.sol +39 -7
  529. package/contracts/type/RoleId.sol +122 -81
  530. package/contracts/type/Seconds.sol +67 -1
  531. package/contracts/type/Selector.sol +107 -0
  532. package/contracts/type/StateId.sol +41 -2
  533. package/contracts/type/String.sol +65 -0
  534. package/contracts/type/Timestamp.sol +20 -9
  535. package/contracts/type/UFixed.sol +62 -125
  536. package/contracts/type/Version.sol +58 -7
  537. package/contracts/{shared → upgradeability}/IVersionable.sol +3 -0
  538. package/contracts/{shared → upgradeability}/ProxyManager.sol +101 -50
  539. package/contracts/upgradeability/UpgradableProxyWithAdmin.sol +24 -0
  540. package/contracts/{shared → upgradeability}/Versionable.sol +8 -5
  541. package/package.json +12 -8
  542. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +0 -4
  543. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +0 -778
  544. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +0 -4
  545. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +0 -1348
  546. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +0 -4
  547. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +0 -124
  548. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
  549. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  550. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +0 -4
  551. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +0 -581
  552. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +0 -4
  553. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +0 -194
  554. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +0 -4
  555. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.json +0 -256
  556. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +0 -4
  557. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +0 -237
  558. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +0 -4
  559. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +0 -4
  560. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +0 -10
  561. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +0 -4
  562. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +0 -4
  563. package/artifacts/contracts/product/ProductService.sol/ProductService.json +0 -864
  564. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
  565. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +0 -679
  566. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +0 -4
  567. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +0 -238
  568. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +0 -4
  569. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +0 -846
  570. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  571. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
  572. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +0 -4
  573. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +0 -73
  574. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +0 -4
  575. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +0 -4
  576. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +0 -598
  577. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +0 -4
  578. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +0 -129
  579. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +0 -4
  580. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +0 -4
  581. package/artifacts/contracts/type/UFixed.sol/MathLib.json +0 -10
  582. package/contracts/instance/BundleManager.sol +0 -126
  583. package/contracts/instance/InstanceAccessManager.sol +0 -543
  584. package/contracts/instance/InstanceAuthorizationsLib.sol +0 -308
  585. package/contracts/instance/base/KeyValueStore.sol +0 -169
  586. package/contracts/instance/base/Lifecycle.sol +0 -121
  587. package/contracts/instance/base/ObjectManager.sol +0 -82
  588. package/contracts/instance/module/IAccess.sol +0 -54
  589. package/contracts/instance/module/ISetup.sol +0 -33
  590. package/contracts/instance/module/ITreasury.sol +0 -23
  591. package/contracts/product/IProductService.sol +0 -40
  592. package/contracts/product/ProductService.sol +0 -212
  593. package/contracts/product/ProductServiceManager.sol +0 -42
  594. package/contracts/registry/RegistryAccessManager.sol +0 -132
  595. package/contracts/registry/ReleaseManager.sol +0 -382
  596. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +0 -13
  597. package/contracts/shared/UpgradableProxyWithAdmin.sol +0 -16
@@ -41,6 +41,17 @@
41
41
  "name": "AccessManagedUnauthorized",
42
42
  "type": "error"
43
43
  },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "authority",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorAuthorityInvalid",
53
+ "type": "error"
54
+ },
44
55
  {
45
56
  "inputs": [
46
57
  {
@@ -68,6 +79,22 @@
68
79
  "name": "ErrorNftOwnableInitialOwnerZero",
69
80
  "type": "error"
70
81
  },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "NftId",
86
+ "name": "nftId",
87
+ "type": "uint96"
88
+ },
89
+ {
90
+ "internalType": "ObjectType",
91
+ "name": "expectedObjectType",
92
+ "type": "uint8"
93
+ }
94
+ ],
95
+ "name": "ErrorNftOwnableInvalidType",
96
+ "type": "error"
97
+ },
71
98
  {
72
99
  "inputs": [
73
100
  {
@@ -105,18 +132,34 @@
105
132
  "inputs": [
106
133
  {
107
134
  "internalType": "NftId",
108
- "name": "bundlePoolNftId",
135
+ "name": "bundleNftId",
109
136
  "type": "uint96"
110
137
  },
111
138
  {
112
139
  "internalType": "NftId",
113
- "name": "productPoolNftId",
140
+ "name": "poolNftId",
114
141
  "type": "uint96"
115
142
  }
116
143
  ],
117
144
  "name": "ErrorPoolServiceBundlePoolMismatch",
118
145
  "type": "error"
119
146
  },
147
+ {
148
+ "inputs": [
149
+ {
150
+ "internalType": "Amount",
151
+ "name": "amount",
152
+ "type": "uint96"
153
+ },
154
+ {
155
+ "internalType": "Amount",
156
+ "name": "limit",
157
+ "type": "uint96"
158
+ }
159
+ ],
160
+ "name": "ErrorPoolServiceFeesWithdrawAmountExceedsLimit",
161
+ "type": "error"
162
+ },
120
163
  {
121
164
  "inputs": [
122
165
  {
@@ -133,9 +176,77 @@
133
176
  "name": "ErrorPoolServiceInvalidTransferAmount",
134
177
  "type": "error"
135
178
  },
179
+ {
180
+ "inputs": [
181
+ {
182
+ "internalType": "NftId",
183
+ "name": "poolNftId",
184
+ "type": "uint96"
185
+ },
186
+ {
187
+ "internalType": "Amount",
188
+ "name": "maxBalanceAmount",
189
+ "type": "uint96"
190
+ },
191
+ {
192
+ "internalType": "Amount",
193
+ "name": "currentBalanceAmount",
194
+ "type": "uint96"
195
+ },
196
+ {
197
+ "internalType": "Amount",
198
+ "name": "transferAmount",
199
+ "type": "uint96"
200
+ }
201
+ ],
202
+ "name": "ErrorPoolServiceMaxBalanceAmountExceeded",
203
+ "type": "error"
204
+ },
205
+ {
206
+ "inputs": [
207
+ {
208
+ "internalType": "NftId",
209
+ "name": "policyNftId",
210
+ "type": "uint96"
211
+ },
212
+ {
213
+ "internalType": "NftId",
214
+ "name": "productNftId",
215
+ "type": "uint96"
216
+ },
217
+ {
218
+ "internalType": "NftId",
219
+ "name": "expectedProductNftId",
220
+ "type": "uint96"
221
+ }
222
+ ],
223
+ "name": "ErrorPoolServicePolicyPoolMismatch",
224
+ "type": "error"
225
+ },
226
+ {
227
+ "inputs": [
228
+ {
229
+ "internalType": "NftId",
230
+ "name": "poolNftId",
231
+ "type": "uint96"
232
+ }
233
+ ],
234
+ "name": "ErrorPoolServicePoolNotExternallyManaged",
235
+ "type": "error"
236
+ },
237
+ {
238
+ "inputs": [],
239
+ "name": "ErrorRegisterableNotActive",
240
+ "type": "error"
241
+ },
136
242
  {
137
243
  "inputs": [],
138
- "name": "ErrorServiceNotImplemented",
244
+ "name": "ErrorVersionableInitializeNotImplemented",
245
+ "type": "error"
246
+ },
247
+ {
248
+ "inputs": [],
249
+ "name": "ErrorVersionableUpgradeNotImplemented",
139
250
  "type": "error"
140
251
  },
141
252
  {
@@ -151,6 +262,56 @@
151
262
  "name": "AuthorityUpdated",
152
263
  "type": "event"
153
264
  },
265
+ {
266
+ "anonymous": false,
267
+ "inputs": [
268
+ {
269
+ "indexed": false,
270
+ "internalType": "NftId",
271
+ "name": "nftId",
272
+ "type": "uint96"
273
+ },
274
+ {
275
+ "indexed": false,
276
+ "internalType": "address",
277
+ "name": "owner",
278
+ "type": "address"
279
+ }
280
+ ],
281
+ "name": "LogNftOwnableNftLinkedToAddress",
282
+ "type": "event"
283
+ },
284
+ {
285
+ "anonymous": false,
286
+ "inputs": [
287
+ {
288
+ "indexed": false,
289
+ "internalType": "NftId",
290
+ "name": "poolNftId",
291
+ "type": "uint96"
292
+ },
293
+ {
294
+ "indexed": false,
295
+ "internalType": "NftId",
296
+ "name": "bundleNftId",
297
+ "type": "uint96"
298
+ },
299
+ {
300
+ "indexed": false,
301
+ "internalType": "NftId",
302
+ "name": "applicationNftId",
303
+ "type": "uint96"
304
+ },
305
+ {
306
+ "indexed": false,
307
+ "internalType": "Amount",
308
+ "name": "totalCollateralAmount",
309
+ "type": "uint96"
310
+ }
311
+ ],
312
+ "name": "LogPoolServiceApplicationVerified",
313
+ "type": "event"
314
+ },
154
315
  {
155
316
  "anonymous": false,
156
317
  "inputs": [
@@ -204,6 +365,12 @@
204
365
  {
205
366
  "anonymous": false,
206
367
  "inputs": [
368
+ {
369
+ "indexed": false,
370
+ "internalType": "NftId",
371
+ "name": "instanceNftId",
372
+ "type": "uint96"
373
+ },
207
374
  {
208
375
  "indexed": false,
209
376
  "internalType": "NftId",
@@ -212,12 +379,154 @@
212
379
  },
213
380
  {
214
381
  "indexed": false,
215
- "internalType": "RoleId",
216
- "name": "bundleOwnerRole",
217
- "type": "uint64"
382
+ "internalType": "NftId",
383
+ "name": "bundleNftId",
384
+ "type": "uint96"
385
+ },
386
+ {
387
+ "indexed": false,
388
+ "internalType": "Amount",
389
+ "name": "amount",
390
+ "type": "uint96"
391
+ },
392
+ {
393
+ "indexed": false,
394
+ "internalType": "Amount",
395
+ "name": "netAmount",
396
+ "type": "uint96"
218
397
  }
219
398
  ],
220
- "name": "LogPoolServiceBundleOwnerRoleSet",
399
+ "name": "LogPoolServiceBundleStaked",
400
+ "type": "event"
401
+ },
402
+ {
403
+ "anonymous": false,
404
+ "inputs": [
405
+ {
406
+ "indexed": false,
407
+ "internalType": "NftId",
408
+ "name": "instanceNftId",
409
+ "type": "uint96"
410
+ },
411
+ {
412
+ "indexed": false,
413
+ "internalType": "NftId",
414
+ "name": "poolNftId",
415
+ "type": "uint96"
416
+ },
417
+ {
418
+ "indexed": false,
419
+ "internalType": "NftId",
420
+ "name": "bundleNftId",
421
+ "type": "uint96"
422
+ },
423
+ {
424
+ "indexed": false,
425
+ "internalType": "Amount",
426
+ "name": "amount",
427
+ "type": "uint96"
428
+ },
429
+ {
430
+ "indexed": false,
431
+ "internalType": "Amount",
432
+ "name": "netAmount",
433
+ "type": "uint96"
434
+ }
435
+ ],
436
+ "name": "LogPoolServiceBundleUnstaked",
437
+ "type": "event"
438
+ },
439
+ {
440
+ "anonymous": false,
441
+ "inputs": [
442
+ {
443
+ "indexed": false,
444
+ "internalType": "NftId",
445
+ "name": "poolNftId",
446
+ "type": "uint96"
447
+ },
448
+ {
449
+ "indexed": false,
450
+ "internalType": "NftId",
451
+ "name": "bundleNftId",
452
+ "type": "uint96"
453
+ },
454
+ {
455
+ "indexed": false,
456
+ "internalType": "NftId",
457
+ "name": "applicationNftId",
458
+ "type": "uint96"
459
+ },
460
+ {
461
+ "indexed": false,
462
+ "internalType": "Amount",
463
+ "name": "totalCollateralAmount",
464
+ "type": "uint96"
465
+ },
466
+ {
467
+ "indexed": false,
468
+ "internalType": "Amount",
469
+ "name": "lockedCollateralAmount",
470
+ "type": "uint96"
471
+ }
472
+ ],
473
+ "name": "LogPoolServiceCollateralLocked",
474
+ "type": "event"
475
+ },
476
+ {
477
+ "anonymous": false,
478
+ "inputs": [
479
+ {
480
+ "indexed": false,
481
+ "internalType": "NftId",
482
+ "name": "bundleNftId",
483
+ "type": "uint96"
484
+ },
485
+ {
486
+ "indexed": false,
487
+ "internalType": "NftId",
488
+ "name": "policyNftId",
489
+ "type": "uint96"
490
+ },
491
+ {
492
+ "indexed": false,
493
+ "internalType": "Amount",
494
+ "name": "remainingCollateralAmount",
495
+ "type": "uint96"
496
+ }
497
+ ],
498
+ "name": "LogPoolServiceCollateralReleased",
499
+ "type": "event"
500
+ },
501
+ {
502
+ "anonymous": false,
503
+ "inputs": [
504
+ {
505
+ "indexed": false,
506
+ "internalType": "NftId",
507
+ "name": "bundleNftId",
508
+ "type": "uint96"
509
+ },
510
+ {
511
+ "indexed": false,
512
+ "internalType": "address",
513
+ "name": "recipient",
514
+ "type": "address"
515
+ },
516
+ {
517
+ "indexed": false,
518
+ "internalType": "address",
519
+ "name": "tokenAddress",
520
+ "type": "address"
521
+ },
522
+ {
523
+ "indexed": false,
524
+ "internalType": "Amount",
525
+ "name": "amount",
526
+ "type": "uint96"
527
+ }
528
+ ],
529
+ "name": "LogPoolServiceFeesWithdrawn",
221
530
  "type": "event"
222
531
  },
223
532
  {
@@ -238,11 +547,172 @@
238
547
  {
239
548
  "indexed": false,
240
549
  "internalType": "Amount",
241
- "name": "currentMaxCapitalAmount",
550
+ "name": "currentMaxCapitalAmount",
551
+ "type": "uint96"
552
+ }
553
+ ],
554
+ "name": "LogPoolServiceMaxBalanceAmountUpdated",
555
+ "type": "event"
556
+ },
557
+ {
558
+ "anonymous": false,
559
+ "inputs": [
560
+ {
561
+ "indexed": false,
562
+ "internalType": "NftId",
563
+ "name": "poolNftId",
564
+ "type": "uint96"
565
+ },
566
+ {
567
+ "indexed": false,
568
+ "internalType": "NftId",
569
+ "name": "bundleNftId",
570
+ "type": "uint96"
571
+ },
572
+ {
573
+ "indexed": false,
574
+ "internalType": "NftId",
575
+ "name": "policyNftId",
576
+ "type": "uint96"
577
+ },
578
+ {
579
+ "indexed": false,
580
+ "internalType": "PayoutId",
581
+ "name": "payoutId",
582
+ "type": "uint40"
583
+ },
584
+ {
585
+ "indexed": false,
586
+ "internalType": "Amount",
587
+ "name": "netPayoutAmount",
588
+ "type": "uint96"
589
+ },
590
+ {
591
+ "indexed": false,
592
+ "internalType": "Amount",
593
+ "name": "processingFeeAmount",
594
+ "type": "uint96"
595
+ },
596
+ {
597
+ "indexed": false,
598
+ "internalType": "address",
599
+ "name": "payoutBeneficiary",
600
+ "type": "address"
601
+ }
602
+ ],
603
+ "name": "LogPoolServicePayoutProcessed",
604
+ "type": "event"
605
+ },
606
+ {
607
+ "anonymous": false,
608
+ "inputs": [
609
+ {
610
+ "indexed": false,
611
+ "internalType": "NftId",
612
+ "name": "policyNftId",
613
+ "type": "uint96"
614
+ },
615
+ {
616
+ "indexed": false,
617
+ "internalType": "ClaimId",
618
+ "name": "claimId",
619
+ "type": "uint16"
620
+ },
621
+ {
622
+ "indexed": false,
623
+ "internalType": "Amount",
624
+ "name": "availableAmount",
625
+ "type": "uint96"
626
+ }
627
+ ],
628
+ "name": "LogPoolServiceProcessFundedClaim",
629
+ "type": "event"
630
+ },
631
+ {
632
+ "anonymous": false,
633
+ "inputs": [
634
+ {
635
+ "indexed": false,
636
+ "internalType": "NftId",
637
+ "name": "poolNftId",
638
+ "type": "uint96"
639
+ },
640
+ {
641
+ "indexed": false,
642
+ "internalType": "NftId",
643
+ "name": "bundleNftId",
644
+ "type": "uint96"
645
+ },
646
+ {
647
+ "indexed": false,
648
+ "internalType": "Amount",
649
+ "name": "bundleNetAmount",
650
+ "type": "uint96"
651
+ },
652
+ {
653
+ "indexed": false,
654
+ "internalType": "Amount",
655
+ "name": "bundleFeeAmount",
656
+ "type": "uint96"
657
+ },
658
+ {
659
+ "indexed": false,
660
+ "internalType": "Amount",
661
+ "name": "poolFeeAmount",
662
+ "type": "uint96"
663
+ }
664
+ ],
665
+ "name": "LogPoolServiceSaleProcessed",
666
+ "type": "event"
667
+ },
668
+ {
669
+ "anonymous": false,
670
+ "inputs": [
671
+ {
672
+ "indexed": false,
673
+ "internalType": "NftId",
674
+ "name": "poolNftId",
675
+ "type": "uint96"
676
+ },
677
+ {
678
+ "indexed": false,
679
+ "internalType": "address",
680
+ "name": "poolOwner",
681
+ "type": "address"
682
+ },
683
+ {
684
+ "indexed": false,
685
+ "internalType": "Amount",
686
+ "name": "amount",
687
+ "type": "uint96"
688
+ }
689
+ ],
690
+ "name": "LogPoolServiceWalletDefunded",
691
+ "type": "event"
692
+ },
693
+ {
694
+ "anonymous": false,
695
+ "inputs": [
696
+ {
697
+ "indexed": false,
698
+ "internalType": "NftId",
699
+ "name": "poolNftId",
700
+ "type": "uint96"
701
+ },
702
+ {
703
+ "indexed": false,
704
+ "internalType": "address",
705
+ "name": "poolOwner",
706
+ "type": "address"
707
+ },
708
+ {
709
+ "indexed": false,
710
+ "internalType": "Amount",
711
+ "name": "amount",
242
712
  "type": "uint96"
243
713
  }
244
714
  ],
245
- "name": "LogPoolServiceMaxCapitalAmountUpdated",
715
+ "name": "LogPoolServiceWalletFunded",
246
716
  "type": "event"
247
717
  },
248
718
  {
@@ -273,52 +743,27 @@
273
743
  },
274
744
  {
275
745
  "inputs": [
276
- {
277
- "internalType": "address",
278
- "name": "owner",
279
- "type": "address"
280
- },
281
- {
282
- "components": [
283
- {
284
- "internalType": "UFixed",
285
- "name": "fractionalFee",
286
- "type": "uint256"
287
- },
288
- {
289
- "internalType": "uint256",
290
- "name": "fixedFee",
291
- "type": "uint256"
292
- }
293
- ],
294
- "internalType": "struct Fee",
295
- "name": "fee",
296
- "type": "tuple"
297
- },
298
746
  {
299
747
  "internalType": "Amount",
300
- "name": "stakingAmount",
748
+ "name": "amount",
301
749
  "type": "uint96"
302
- },
303
- {
304
- "internalType": "Seconds",
305
- "name": "lifetime",
306
- "type": "uint40"
307
- },
308
- {
309
- "internalType": "bytes",
310
- "name": "filter",
311
- "type": "bytes"
312
750
  }
313
751
  ],
314
- "name": "createBundle",
315
- "outputs": [
752
+ "name": "defundPoolWallet",
753
+ "outputs": [],
754
+ "stateMutability": "nonpayable",
755
+ "type": "function"
756
+ },
757
+ {
758
+ "inputs": [
316
759
  {
317
- "internalType": "NftId",
318
- "name": "bundleNftId",
760
+ "internalType": "Amount",
761
+ "name": "amount",
319
762
  "type": "uint96"
320
763
  }
321
764
  ],
765
+ "name": "fundPoolWallet",
766
+ "outputs": [],
322
767
  "stateMutability": "nonpayable",
323
768
  "type": "function"
324
769
  },
@@ -424,6 +869,32 @@
424
869
  "stateMutability": "view",
425
870
  "type": "function"
426
871
  },
872
+ {
873
+ "inputs": [],
874
+ "name": "getRelease",
875
+ "outputs": [
876
+ {
877
+ "internalType": "VersionPart",
878
+ "name": "release",
879
+ "type": "uint8"
880
+ }
881
+ ],
882
+ "stateMutability": "view",
883
+ "type": "function"
884
+ },
885
+ {
886
+ "inputs": [],
887
+ "name": "getRoleId",
888
+ "outputs": [
889
+ {
890
+ "internalType": "RoleId",
891
+ "name": "serviceRoleId",
892
+ "type": "uint64"
893
+ }
894
+ ],
895
+ "stateMutability": "view",
896
+ "type": "function"
897
+ },
427
898
  {
428
899
  "inputs": [],
429
900
  "name": "getVersion",
@@ -455,6 +926,19 @@
455
926
  "stateMutability": "nonpayable",
456
927
  "type": "function"
457
928
  },
929
+ {
930
+ "inputs": [],
931
+ "name": "isActive",
932
+ "outputs": [
933
+ {
934
+ "internalType": "bool",
935
+ "name": "active",
936
+ "type": "bool"
937
+ }
938
+ ],
939
+ "stateMutability": "view",
940
+ "type": "function"
941
+ },
458
942
  {
459
943
  "inputs": [],
460
944
  "name": "isConsumingScheduledOp",
@@ -471,7 +955,13 @@
471
955
  {
472
956
  "inputs": [],
473
957
  "name": "linkToRegisteredNftId",
474
- "outputs": [],
958
+ "outputs": [
959
+ {
960
+ "internalType": "NftId",
961
+ "name": "",
962
+ "type": "uint96"
963
+ }
964
+ ],
475
965
  "stateMutability": "nonpayable",
476
966
  "type": "function"
477
967
  },
@@ -482,6 +972,11 @@
482
972
  "name": "instance",
483
973
  "type": "address"
484
974
  },
975
+ {
976
+ "internalType": "address",
977
+ "name": "token",
978
+ "type": "address"
979
+ },
485
980
  {
486
981
  "internalType": "NftId",
487
982
  "name": "productNftId",
@@ -493,245 +988,146 @@
493
988
  "type": "uint96"
494
989
  },
495
990
  {
496
- "components": [
497
- {
498
- "internalType": "NftId",
499
- "name": "productNftId",
500
- "type": "uint96"
501
- },
502
- {
503
- "internalType": "NftId",
504
- "name": "bundleNftId",
505
- "type": "uint96"
506
- },
507
- {
508
- "internalType": "ReferralId",
509
- "name": "referralId",
510
- "type": "bytes8"
511
- },
512
- {
513
- "internalType": "RiskId",
514
- "name": "riskId",
515
- "type": "bytes8"
516
- },
517
- {
518
- "internalType": "Amount",
519
- "name": "sumInsuredAmount",
520
- "type": "uint96"
521
- },
522
- {
523
- "internalType": "Amount",
524
- "name": "premiumAmount",
525
- "type": "uint96"
526
- },
527
- {
528
- "internalType": "Amount",
529
- "name": "premiumPaidAmount",
530
- "type": "uint96"
531
- },
532
- {
533
- "internalType": "Seconds",
534
- "name": "lifetime",
535
- "type": "uint40"
536
- },
537
- {
538
- "internalType": "bytes",
539
- "name": "applicationData",
540
- "type": "bytes"
541
- },
542
- {
543
- "internalType": "bytes",
544
- "name": "processData",
545
- "type": "bytes"
546
- },
547
- {
548
- "internalType": "uint16",
549
- "name": "claimsCount",
550
- "type": "uint16"
551
- },
552
- {
553
- "internalType": "uint16",
554
- "name": "openClaimsCount",
555
- "type": "uint16"
556
- },
557
- {
558
- "internalType": "Amount",
559
- "name": "claimAmount",
560
- "type": "uint96"
561
- },
562
- {
563
- "internalType": "Amount",
564
- "name": "payoutAmount",
565
- "type": "uint96"
566
- },
567
- {
568
- "internalType": "Timestamp",
569
- "name": "activatedAt",
570
- "type": "uint40"
571
- },
572
- {
573
- "internalType": "Timestamp",
574
- "name": "expiredAt",
575
- "type": "uint40"
576
- },
577
- {
578
- "internalType": "Timestamp",
579
- "name": "closedAt",
580
- "type": "uint40"
581
- }
582
- ],
583
- "internalType": "struct IPolicy.PolicyInfo",
584
- "name": "applicationInfo",
585
- "type": "tuple"
991
+ "internalType": "NftId",
992
+ "name": "bundleNftId",
993
+ "type": "uint96"
586
994
  },
587
995
  {
588
996
  "internalType": "Amount",
589
- "name": "premiumAmount",
997
+ "name": "sumInsuredAmount",
590
998
  "type": "uint96"
591
999
  }
592
1000
  ],
593
1001
  "name": "lockCollateral",
1002
+ "outputs": [
1003
+ {
1004
+ "internalType": "Amount",
1005
+ "name": "localCollateralAmount",
1006
+ "type": "uint96"
1007
+ },
1008
+ {
1009
+ "internalType": "Amount",
1010
+ "name": "totalCollateralAmount",
1011
+ "type": "uint96"
1012
+ }
1013
+ ],
1014
+ "stateMutability": "nonpayable",
1015
+ "type": "function"
1016
+ },
1017
+ {
1018
+ "inputs": [
1019
+ {
1020
+ "internalType": "NftId",
1021
+ "name": "policyNftId",
1022
+ "type": "uint96"
1023
+ },
1024
+ {
1025
+ "internalType": "ClaimId",
1026
+ "name": "claimId",
1027
+ "type": "uint16"
1028
+ },
1029
+ {
1030
+ "internalType": "Amount",
1031
+ "name": "availableAmount",
1032
+ "type": "uint96"
1033
+ }
1034
+ ],
1035
+ "name": "processFundedClaim",
594
1036
  "outputs": [],
595
1037
  "stateMutability": "nonpayable",
596
1038
  "type": "function"
597
1039
  },
598
1040
  {
599
1041
  "inputs": [
1042
+ {
1043
+ "internalType": "contract InstanceReader",
1044
+ "name": "instanceReader",
1045
+ "type": "address"
1046
+ },
1047
+ {
1048
+ "internalType": "contract InstanceStore",
1049
+ "name": "instanceStore",
1050
+ "type": "address"
1051
+ },
600
1052
  {
601
1053
  "internalType": "NftId",
602
- "name": "bundleNftId",
1054
+ "name": "productNftId",
603
1055
  "type": "uint96"
604
1056
  },
605
1057
  {
606
- "components": [
607
- {
608
- "internalType": "uint256",
609
- "name": "netPremiumAmount",
610
- "type": "uint256"
611
- },
612
- {
613
- "internalType": "uint256",
614
- "name": "fullPremiumAmount",
615
- "type": "uint256"
616
- },
617
- {
618
- "internalType": "uint256",
619
- "name": "premiumAmount",
620
- "type": "uint256"
621
- },
622
- {
623
- "internalType": "uint256",
624
- "name": "productFeeFixAmount",
625
- "type": "uint256"
626
- },
627
- {
628
- "internalType": "uint256",
629
- "name": "poolFeeFixAmount",
630
- "type": "uint256"
631
- },
632
- {
633
- "internalType": "uint256",
634
- "name": "bundleFeeFixAmount",
635
- "type": "uint256"
636
- },
637
- {
638
- "internalType": "uint256",
639
- "name": "distributionFeeFixAmount",
640
- "type": "uint256"
641
- },
642
- {
643
- "internalType": "uint256",
644
- "name": "productFeeVarAmount",
645
- "type": "uint256"
646
- },
647
- {
648
- "internalType": "uint256",
649
- "name": "poolFeeVarAmount",
650
- "type": "uint256"
651
- },
652
- {
653
- "internalType": "uint256",
654
- "name": "bundleFeeVarAmount",
655
- "type": "uint256"
656
- },
657
- {
658
- "internalType": "uint256",
659
- "name": "distributionFeeVarAmount",
660
- "type": "uint256"
661
- },
662
- {
663
- "internalType": "uint256",
664
- "name": "distributionOwnerFeeFixAmount",
665
- "type": "uint256"
666
- },
667
- {
668
- "internalType": "uint256",
669
- "name": "distributionOwnerFeeVarAmount",
670
- "type": "uint256"
671
- },
672
- {
673
- "internalType": "uint256",
674
- "name": "commissionAmount",
675
- "type": "uint256"
676
- },
677
- {
678
- "internalType": "uint256",
679
- "name": "discountAmount",
680
- "type": "uint256"
681
- }
682
- ],
683
- "internalType": "struct IPolicy.Premium",
684
- "name": "premium",
685
- "type": "tuple"
1058
+ "internalType": "NftId",
1059
+ "name": "policyNftId",
1060
+ "type": "uint96"
1061
+ },
1062
+ {
1063
+ "internalType": "NftId",
1064
+ "name": "bundleNftId",
1065
+ "type": "uint96"
1066
+ },
1067
+ {
1068
+ "internalType": "PayoutId",
1069
+ "name": "payoutId",
1070
+ "type": "uint40"
686
1071
  },
687
1072
  {
688
1073
  "internalType": "Amount",
689
- "name": "actualAmountTransferred",
1074
+ "name": "payoutAmount",
1075
+ "type": "uint96"
1076
+ },
1077
+ {
1078
+ "internalType": "address",
1079
+ "name": "payoutBeneficiary",
1080
+ "type": "address"
1081
+ }
1082
+ ],
1083
+ "name": "processPayout",
1084
+ "outputs": [
1085
+ {
1086
+ "internalType": "Amount",
1087
+ "name": "netPayoutAmount",
1088
+ "type": "uint96"
1089
+ },
1090
+ {
1091
+ "internalType": "Amount",
1092
+ "name": "processingFeeAmount",
690
1093
  "type": "uint96"
691
1094
  }
692
1095
  ],
693
- "name": "processSale",
694
- "outputs": [],
695
1096
  "stateMutability": "nonpayable",
696
1097
  "type": "function"
697
1098
  },
698
1099
  {
699
1100
  "inputs": [
700
- {
701
- "internalType": "contract IInstance",
702
- "name": "instance",
703
- "type": "address"
704
- },
705
1101
  {
706
1102
  "internalType": "NftId",
707
- "name": "policyNftId",
1103
+ "name": "bundleNftId",
708
1104
  "type": "uint96"
709
1105
  },
710
1106
  {
711
1107
  "components": [
712
1108
  {
713
- "internalType": "NftId",
714
- "name": "productNftId",
1109
+ "internalType": "Amount",
1110
+ "name": "productFeeAmount",
715
1111
  "type": "uint96"
716
1112
  },
717
1113
  {
718
- "internalType": "NftId",
719
- "name": "bundleNftId",
1114
+ "internalType": "Amount",
1115
+ "name": "distributionFeeAndCommissionAmount",
720
1116
  "type": "uint96"
721
1117
  },
722
1118
  {
723
- "internalType": "ReferralId",
724
- "name": "referralId",
725
- "type": "bytes8"
1119
+ "internalType": "Amount",
1120
+ "name": "poolPremiumAndFeeAmount",
1121
+ "type": "uint96"
726
1122
  },
727
1123
  {
728
- "internalType": "RiskId",
729
- "name": "riskId",
730
- "type": "bytes8"
1124
+ "internalType": "Amount",
1125
+ "name": "netPremiumAmount",
1126
+ "type": "uint96"
731
1127
  },
732
1128
  {
733
1129
  "internalType": "Amount",
734
- "name": "sumInsuredAmount",
1130
+ "name": "fullPremiumAmount",
735
1131
  "type": "uint96"
736
1132
  },
737
1133
  {
@@ -741,94 +1137,75 @@
741
1137
  },
742
1138
  {
743
1139
  "internalType": "Amount",
744
- "name": "premiumPaidAmount",
1140
+ "name": "productFeeFixAmount",
745
1141
  "type": "uint96"
746
1142
  },
747
1143
  {
748
- "internalType": "Seconds",
749
- "name": "lifetime",
750
- "type": "uint40"
1144
+ "internalType": "Amount",
1145
+ "name": "poolFeeFixAmount",
1146
+ "type": "uint96"
751
1147
  },
752
1148
  {
753
- "internalType": "bytes",
754
- "name": "applicationData",
755
- "type": "bytes"
1149
+ "internalType": "Amount",
1150
+ "name": "bundleFeeFixAmount",
1151
+ "type": "uint96"
756
1152
  },
757
1153
  {
758
- "internalType": "bytes",
759
- "name": "processData",
760
- "type": "bytes"
1154
+ "internalType": "Amount",
1155
+ "name": "distributionFeeFixAmount",
1156
+ "type": "uint96"
761
1157
  },
762
1158
  {
763
- "internalType": "uint16",
764
- "name": "claimsCount",
765
- "type": "uint16"
1159
+ "internalType": "Amount",
1160
+ "name": "productFeeVarAmount",
1161
+ "type": "uint96"
766
1162
  },
767
1163
  {
768
- "internalType": "uint16",
769
- "name": "openClaimsCount",
770
- "type": "uint16"
1164
+ "internalType": "Amount",
1165
+ "name": "poolFeeVarAmount",
1166
+ "type": "uint96"
771
1167
  },
772
1168
  {
773
1169
  "internalType": "Amount",
774
- "name": "claimAmount",
1170
+ "name": "bundleFeeVarAmount",
775
1171
  "type": "uint96"
776
1172
  },
777
1173
  {
778
1174
  "internalType": "Amount",
779
- "name": "payoutAmount",
1175
+ "name": "distributionFeeVarAmount",
780
1176
  "type": "uint96"
781
1177
  },
782
1178
  {
783
- "internalType": "Timestamp",
784
- "name": "activatedAt",
785
- "type": "uint40"
1179
+ "internalType": "Amount",
1180
+ "name": "distributionOwnerFeeFixAmount",
1181
+ "type": "uint96"
786
1182
  },
787
1183
  {
788
- "internalType": "Timestamp",
789
- "name": "expiredAt",
790
- "type": "uint40"
1184
+ "internalType": "Amount",
1185
+ "name": "distributionOwnerFeeVarAmount",
1186
+ "type": "uint96"
791
1187
  },
792
1188
  {
793
- "internalType": "Timestamp",
794
- "name": "closedAt",
795
- "type": "uint40"
1189
+ "internalType": "Amount",
1190
+ "name": "commissionAmount",
1191
+ "type": "uint96"
1192
+ },
1193
+ {
1194
+ "internalType": "Amount",
1195
+ "name": "discountAmount",
1196
+ "type": "uint96"
796
1197
  }
797
1198
  ],
798
- "internalType": "struct IPolicy.PolicyInfo",
799
- "name": "policyInfo",
1199
+ "internalType": "struct IPolicy.PremiumInfo",
1200
+ "name": "premium",
800
1201
  "type": "tuple"
801
- },
802
- {
803
- "internalType": "Amount",
804
- "name": "payoutAmount",
805
- "type": "uint96"
806
1202
  }
807
1203
  ],
808
- "name": "reduceCollateral",
1204
+ "name": "processSale",
809
1205
  "outputs": [],
810
1206
  "stateMutability": "nonpayable",
811
1207
  "type": "function"
812
1208
  },
813
- {
814
- "inputs": [
815
- {
816
- "internalType": "address",
817
- "name": "poolAddress",
818
- "type": "address"
819
- }
820
- ],
821
- "name": "register",
822
- "outputs": [
823
- {
824
- "internalType": "NftId",
825
- "name": "",
826
- "type": "uint96"
827
- }
828
- ],
829
- "stateMutability": "nonpayable",
830
- "type": "function"
831
- },
832
1209
  {
833
1210
  "inputs": [
834
1211
  {
@@ -853,11 +1230,6 @@
853
1230
  "name": "bundleNftId",
854
1231
  "type": "uint96"
855
1232
  },
856
- {
857
- "internalType": "ReferralId",
858
- "name": "referralId",
859
- "type": "bytes8"
860
- },
861
1233
  {
862
1234
  "internalType": "RiskId",
863
1235
  "name": "riskId",
@@ -874,24 +1246,9 @@
874
1246
  "type": "uint96"
875
1247
  },
876
1248
  {
877
- "internalType": "Amount",
878
- "name": "premiumPaidAmount",
879
- "type": "uint96"
880
- },
881
- {
882
- "internalType": "Seconds",
883
- "name": "lifetime",
884
- "type": "uint40"
885
- },
886
- {
887
- "internalType": "bytes",
888
- "name": "applicationData",
889
- "type": "bytes"
890
- },
891
- {
892
- "internalType": "bytes",
893
- "name": "processData",
894
- "type": "bytes"
1249
+ "internalType": "ReferralId",
1250
+ "name": "referralId",
1251
+ "type": "bytes8"
895
1252
  },
896
1253
  {
897
1254
  "internalType": "uint16",
@@ -918,6 +1275,11 @@
918
1275
  "name": "activatedAt",
919
1276
  "type": "uint40"
920
1277
  },
1278
+ {
1279
+ "internalType": "Seconds",
1280
+ "name": "lifetime",
1281
+ "type": "uint40"
1282
+ },
921
1283
  {
922
1284
  "internalType": "Timestamp",
923
1285
  "name": "expiredAt",
@@ -927,6 +1289,16 @@
927
1289
  "internalType": "Timestamp",
928
1290
  "name": "closedAt",
929
1291
  "type": "uint40"
1292
+ },
1293
+ {
1294
+ "internalType": "bytes",
1295
+ "name": "applicationData",
1296
+ "type": "bytes"
1297
+ },
1298
+ {
1299
+ "internalType": "bytes",
1300
+ "name": "processData",
1301
+ "type": "bytes"
930
1302
  }
931
1303
  ],
932
1304
  "internalType": "struct IPolicy.PolicyInfo",
@@ -955,12 +1327,12 @@
955
1327
  {
956
1328
  "inputs": [
957
1329
  {
958
- "internalType": "RoleId",
959
- "name": "bundleOwnerRole",
960
- "type": "uint64"
1330
+ "internalType": "Amount",
1331
+ "name": "maxBalanceAmount",
1332
+ "type": "uint96"
961
1333
  }
962
1334
  ],
963
- "name": "setBundleOwnerRole",
1335
+ "name": "setMaxBalanceAmount",
964
1336
  "outputs": [],
965
1337
  "stateMutability": "nonpayable",
966
1338
  "type": "function"
@@ -968,72 +1340,24 @@
968
1340
  {
969
1341
  "inputs": [
970
1342
  {
971
- "components": [
972
- {
973
- "internalType": "UFixed",
974
- "name": "fractionalFee",
975
- "type": "uint256"
976
- },
977
- {
978
- "internalType": "uint256",
979
- "name": "fixedFee",
980
- "type": "uint256"
981
- }
982
- ],
983
- "internalType": "struct Fee",
984
- "name": "poolFee",
985
- "type": "tuple"
986
- },
987
- {
988
- "components": [
989
- {
990
- "internalType": "UFixed",
991
- "name": "fractionalFee",
992
- "type": "uint256"
993
- },
994
- {
995
- "internalType": "uint256",
996
- "name": "fixedFee",
997
- "type": "uint256"
998
- }
999
- ],
1000
- "internalType": "struct Fee",
1001
- "name": "stakingFee",
1002
- "type": "tuple"
1343
+ "internalType": "NftId",
1344
+ "name": "bundleNftId",
1345
+ "type": "uint96"
1003
1346
  },
1004
1347
  {
1005
- "components": [
1006
- {
1007
- "internalType": "UFixed",
1008
- "name": "fractionalFee",
1009
- "type": "uint256"
1010
- },
1011
- {
1012
- "internalType": "uint256",
1013
- "name": "fixedFee",
1014
- "type": "uint256"
1015
- }
1016
- ],
1017
- "internalType": "struct Fee",
1018
- "name": "performanceFee",
1019
- "type": "tuple"
1348
+ "internalType": "Amount",
1349
+ "name": "amount",
1350
+ "type": "uint96"
1020
1351
  }
1021
1352
  ],
1022
- "name": "setFees",
1023
- "outputs": [],
1024
- "stateMutability": "nonpayable",
1025
- "type": "function"
1026
- },
1027
- {
1028
- "inputs": [
1353
+ "name": "stake",
1354
+ "outputs": [
1029
1355
  {
1030
1356
  "internalType": "Amount",
1031
- "name": "maxCapitalAmount",
1357
+ "name": "netAmount",
1032
1358
  "type": "uint96"
1033
1359
  }
1034
1360
  ],
1035
- "name": "setMaxCapitalAmount",
1036
- "outputs": [],
1037
1361
  "stateMutability": "nonpayable",
1038
1362
  "type": "function"
1039
1363
  },
@@ -1056,6 +1380,30 @@
1056
1380
  "stateMutability": "view",
1057
1381
  "type": "function"
1058
1382
  },
1383
+ {
1384
+ "inputs": [
1385
+ {
1386
+ "internalType": "NftId",
1387
+ "name": "bundleNftId",
1388
+ "type": "uint96"
1389
+ },
1390
+ {
1391
+ "internalType": "Amount",
1392
+ "name": "amount",
1393
+ "type": "uint96"
1394
+ }
1395
+ ],
1396
+ "name": "unstake",
1397
+ "outputs": [
1398
+ {
1399
+ "internalType": "Amount",
1400
+ "name": "netAmount",
1401
+ "type": "uint96"
1402
+ }
1403
+ ],
1404
+ "stateMutability": "nonpayable",
1405
+ "type": "function"
1406
+ },
1059
1407
  {
1060
1408
  "inputs": [
1061
1409
  {
@@ -1068,6 +1416,30 @@
1068
1416
  "outputs": [],
1069
1417
  "stateMutability": "nonpayable",
1070
1418
  "type": "function"
1419
+ },
1420
+ {
1421
+ "inputs": [
1422
+ {
1423
+ "internalType": "NftId",
1424
+ "name": "bundleNftId",
1425
+ "type": "uint96"
1426
+ },
1427
+ {
1428
+ "internalType": "Amount",
1429
+ "name": "amount",
1430
+ "type": "uint96"
1431
+ }
1432
+ ],
1433
+ "name": "withdrawBundleFees",
1434
+ "outputs": [
1435
+ {
1436
+ "internalType": "Amount",
1437
+ "name": "withdrawnAmount",
1438
+ "type": "uint96"
1439
+ }
1440
+ ],
1441
+ "stateMutability": "nonpayable",
1442
+ "type": "function"
1071
1443
  }
1072
1444
  ],
1073
1445
  "bytecode": "0x",