@etherisc/gif-next 0.0.2-0f8d3d5-891 → 0.0.2-104f68e-724

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