@etherisc/gif-next 0.0.2-e59218b-293 → 0.0.2-e5a6af8-639

Sign up to get free protection for your applications and to get access to all the features.
Files changed (705) hide show
  1. package/README.md +121 -18
  2. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +4 -0
  3. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +1293 -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 +414 -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 +1060 -0
  12. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +4 -0
  13. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.json +295 -0
  14. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +4 -0
  15. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +167 -0
  16. package/artifacts/contracts/authorization/ReleaseAccessManager.sol/ReleaseAccessManager.dbg.json +4 -0
  17. package/artifacts/contracts/{instance/IAccessManagerSimple.sol/IAccessManagerSimple.json → authorization/ReleaseAccessManager.sol/ReleaseAccessManager.json} +125 -11
  18. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +4 -0
  19. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +253 -0
  20. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +4 -0
  21. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +1402 -0
  22. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +4 -0
  23. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +470 -0
  24. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
  25. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +1048 -0
  26. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
  27. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1439 -0
  28. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  29. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +830 -0
  30. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  31. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +929 -0
  32. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  33. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +961 -0
  34. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.dbg.json +4 -0
  35. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.json +22 -0
  36. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.dbg.json +4 -0
  37. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.json +1538 -0
  38. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.dbg.json +4 -0
  39. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.json +470 -0
  40. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +4 -0
  41. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +2077 -0
  42. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.dbg.json +4 -0
  43. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.json +470 -0
  44. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.dbg.json +4 -0
  45. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.json +376 -0
  46. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +4 -0
  47. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +1471 -0
  48. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +4 -0
  49. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +1231 -0
  50. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +4 -0
  51. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +1592 -0
  52. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +4 -0
  53. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +2095 -0
  54. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +4 -0
  55. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +703 -0
  56. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  57. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +328 -1319
  58. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  59. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +389 -167
  60. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  61. package/artifacts/contracts/instance/Instance.sol/Instance.json +361 -3086
  62. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +1653 -0
  64. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +4 -0
  65. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +561 -0
  66. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  67. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1025 -379
  68. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  69. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +469 -405
  70. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  71. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +340 -126
  72. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  73. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +3678 -0
  74. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +4 -0
  75. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +318 -0
  76. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +4 -0
  77. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → base/Cloneable.sol/Cloneable.json} +38 -2
  78. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +4 -0
  79. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +10 -0
  80. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +4 -0
  81. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +223 -0
  82. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +4 -0
  83. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +181 -0
  84. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  85. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +30 -112
  86. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  87. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  88. package/artifacts/contracts/instance/module/{ITreasury.sol/ITreasury.json → IComponents.sol/IComponents.json} +2 -2
  89. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  90. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  91. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  92. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +4 -0
  93. package/artifacts/contracts/mock/Dip.sol/Dip.json +376 -0
  94. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +4 -0
  95. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +1039 -0
  96. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +4 -0
  97. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +478 -0
  98. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +4 -0
  99. package/artifacts/contracts/oracle/IOracle.sol/IOracle.json +52 -0
  100. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +4 -0
  101. package/artifacts/contracts/{instance/service/IProductService.sol/IProductService.json → oracle/IOracleComponent.sol/IOracleComponent.json} +400 -372
  102. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +4 -0
  103. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.json +709 -0
  104. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +4 -0
  105. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +907 -0
  106. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +4 -0
  107. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +966 -0
  108. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +4 -0
  109. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +722 -0
  110. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +4 -0
  111. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +1299 -0
  112. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +4 -0
  113. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +470 -0
  114. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
  115. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1465 -0
  116. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  117. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +834 -0
  118. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
  119. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +960 -0
  120. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  121. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +960 -0
  122. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
  123. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1283 -0
  124. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
  125. package/artifacts/contracts/pool/Pool.sol/Pool.json +1098 -0
  126. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
  127. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1625 -0
  128. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  129. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +766 -0
  130. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  131. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +771 -0
  132. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  133. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +710 -0
  134. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +4 -0
  135. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +1173 -0
  136. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +4 -0
  137. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +470 -0
  138. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
  139. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1431 -0
  140. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  141. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +838 -0
  142. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  143. package/artifacts/contracts/{instance/base/ComponentServiceBase.sol/ComponentServiceBase.json → product/IApplicationService.sol/IApplicationService.json} +231 -225
  144. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
  145. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +942 -0
  146. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  147. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +925 -0
  148. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
  149. package/artifacts/contracts/{instance/service/IDistributionService.sol/IDistributionService.json → product/IPricingService.sol/IPricingService.json} +310 -178
  150. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  151. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +1012 -0
  152. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +4 -0
  153. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → product/IRiskService.sol/IRiskService.json} +149 -162
  154. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
  155. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1302 -0
  156. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  157. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +782 -0
  158. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
  159. package/artifacts/contracts/product/PricingService.sol/PricingService.json +907 -0
  160. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  161. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +762 -0
  162. package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
  163. package/artifacts/contracts/product/Product.sol/Product.json +1131 -0
  164. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +4 -0
  165. package/artifacts/contracts/product/RiskService.sol/RiskService.json +622 -0
  166. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +4 -0
  167. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +694 -0
  168. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  169. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +72 -16
  170. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  171. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +646 -129
  172. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  173. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +305 -233
  174. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  175. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +5 -0
  176. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  177. package/artifacts/contracts/registry/Registry.sol/Registry.json +974 -155
  178. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +4 -0
  179. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +1886 -0
  180. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  181. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +296 -343
  182. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  183. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +329 -133
  184. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +4 -0
  185. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +205 -0
  186. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +4 -0
  187. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +1067 -0
  188. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +4 -0
  189. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +272 -0
  190. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  191. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +351 -100
  192. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  193. package/artifacts/contracts/shared/Component.sol/Component.json +725 -0
  194. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
  195. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +1768 -0
  196. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +4 -0
  197. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +814 -0
  198. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +4 -0
  199. package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/ComponentVerifyingService.sol/ComponentVerifyingService.json} +209 -201
  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/{instance/service/IPoolService.sol/IPoolService.json → shared/IComponent.sol/IComponent.json} +324 -340
  204. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +4 -0
  205. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +1335 -0
  206. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +4 -0
  207. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +723 -0
  208. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  209. package/artifacts/contracts/{instance/base → shared}/IKeyValueStore.sol/IKeyValueStore.json +95 -14
  210. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  211. package/artifacts/contracts/{instance/base → shared}/ILifecycle.sol/ILifecycle.json +35 -4
  212. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  213. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +46 -26
  214. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  215. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +175 -0
  216. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  217. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +40 -31
  218. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  219. package/artifacts/contracts/{experiment/inheritance/IA.sol/ISharedA.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +15 -17
  220. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  221. package/artifacts/contracts/shared/IService.sol/IService.json +119 -165
  222. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +4 -0
  223. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +53 -0
  224. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +4 -0
  225. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +829 -0
  226. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  227. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +538 -0
  228. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  229. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +174 -0
  230. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +4 -0
  231. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +306 -0
  232. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  233. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +81 -30
  234. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  235. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +198 -0
  236. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  237. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +96 -48
  238. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  239. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +58 -0
  240. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  241. package/artifacts/contracts/shared/Service.sol/Service.json +150 -176
  242. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  243. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +382 -9
  244. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +4 -0
  245. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +108 -0
  246. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +4 -0
  247. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +1465 -0
  248. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
  249. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +1043 -0
  250. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.dbg.json +4 -0
  251. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.json +440 -0
  252. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +4 -0
  253. package/artifacts/contracts/staking/Staking.sol/Staking.json +1888 -0
  254. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.dbg.json +4 -0
  255. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.json +205 -0
  256. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +4 -0
  257. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +776 -0
  258. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +4 -0
  259. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +587 -0
  260. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
  261. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +1249 -0
  262. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
  263. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +710 -0
  264. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +4 -0
  265. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +2283 -0
  266. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +4 -0
  267. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +607 -0
  268. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  269. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.json +10 -0
  270. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
  271. package/artifacts/contracts/type/Amount.sol/AmountLib.json +398 -0
  272. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  273. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +225 -0
  274. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  275. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +203 -0
  276. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  277. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +104 -0
  278. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
  279. package/artifacts/contracts/type/Fee.sol/FeeLib.json +317 -0
  280. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
  281. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +125 -0
  282. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
  283. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +209 -0
  284. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  285. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +33 -0
  286. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  287. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +239 -0
  288. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  289. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +209 -0
  290. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
  291. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +142 -0
  292. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +4 -0
  293. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +204 -0
  294. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
  295. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +142 -0
  296. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
  297. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +369 -0
  298. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
  299. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +246 -0
  300. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +4 -0
  301. package/artifacts/contracts/type/Selector.sol/SelectorLib.json +129 -0
  302. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +4 -0
  303. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.json +10 -0
  304. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
  305. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +105 -0
  306. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +4 -0
  307. package/artifacts/contracts/type/String.sol/StrLib.json +132 -0
  308. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
  309. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +312 -0
  310. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +4 -0
  311. package/artifacts/contracts/type/UFixed.sol/MathLib.json +16 -0
  312. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
  313. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +548 -0
  314. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
  315. package/artifacts/contracts/type/Version.sol/VersionLib.json +177 -0
  316. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
  317. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +68 -0
  318. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +4 -0
  319. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.json +55 -0
  320. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  321. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +602 -0
  322. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  323. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  324. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +4 -0
  325. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.json +78 -0
  326. package/contracts/authorization/AccessAdmin.sol +596 -0
  327. package/contracts/authorization/AccessManagerCloneable.sol +16 -0
  328. package/contracts/authorization/Authorization.sol +289 -0
  329. package/contracts/authorization/IAccess.sol +49 -0
  330. package/contracts/authorization/IAccessAdmin.sol +137 -0
  331. package/contracts/authorization/IAuthorization.sol +60 -0
  332. package/contracts/authorization/IServiceAuthorization.sol +40 -0
  333. package/contracts/authorization/ReleaseAccessManager.sol +38 -0
  334. package/contracts/authorization/ServiceAuthorization.sol +106 -0
  335. package/contracts/distribution/BasicDistribution.sol +139 -0
  336. package/contracts/distribution/BasicDistributionAuthorization.sol +47 -0
  337. package/contracts/distribution/Distribution.sol +285 -0
  338. package/contracts/distribution/DistributionService.sol +355 -0
  339. package/contracts/distribution/DistributionServiceManager.sol +39 -0
  340. package/contracts/distribution/IDistributionComponent.sol +52 -0
  341. package/contracts/distribution/IDistributionService.sol +101 -0
  342. package/contracts/examples/fire/DamageLevel.sol +59 -0
  343. package/contracts/examples/fire/FirePool.sol +75 -0
  344. package/contracts/examples/fire/FirePoolAuthorization.sol +34 -0
  345. package/contracts/examples/fire/FireProduct.sol +418 -0
  346. package/contracts/examples/fire/FireProductAuthorization.sol +44 -0
  347. package/contracts/examples/fire/FireUSD.sol +26 -0
  348. package/contracts/examples/unpermissioned/SimpleDistribution.sol +50 -0
  349. package/contracts/examples/unpermissioned/SimpleOracle.sol +137 -0
  350. package/contracts/examples/unpermissioned/SimplePool.sol +76 -0
  351. package/contracts/examples/unpermissioned/SimpleProduct.sol +351 -0
  352. package/contracts/instance/BundleSet.sol +126 -0
  353. package/contracts/instance/IInstance.sol +48 -36
  354. package/contracts/instance/IInstanceService.sol +58 -16
  355. package/contracts/instance/Instance.sol +164 -375
  356. package/contracts/instance/InstanceAdmin.sol +277 -0
  357. package/contracts/instance/InstanceAuthorizationV3.sol +194 -0
  358. package/contracts/instance/InstanceReader.sol +264 -84
  359. package/contracts/instance/InstanceService.sol +370 -157
  360. package/contracts/instance/InstanceServiceManager.sol +14 -32
  361. package/contracts/instance/InstanceStore.sol +287 -0
  362. package/contracts/instance/base/BalanceStore.sol +123 -0
  363. package/contracts/instance/base/Cloneable.sol +28 -0
  364. package/contracts/instance/base/ObjectCounter.sol +21 -0
  365. package/contracts/instance/base/ObjectLifecycle.sol +111 -0
  366. package/contracts/instance/base/ObjectSet.sol +79 -0
  367. package/contracts/instance/module/IAccess.sol +29 -21
  368. package/contracts/instance/module/IBundle.sol +8 -8
  369. package/contracts/instance/module/IComponents.sol +51 -0
  370. package/contracts/instance/module/IDistribution.sol +6 -4
  371. package/contracts/instance/module/IPolicy.sol +58 -19
  372. package/contracts/instance/module/IRisk.sol +1 -1
  373. package/contracts/{test/Usdc.sol → mock/Dip.sol} +6 -6
  374. package/contracts/oracle/BasicOracle.sol +47 -0
  375. package/contracts/oracle/BasicOracleAuthorization.sol +46 -0
  376. package/contracts/oracle/IOracle.sol +36 -0
  377. package/contracts/oracle/IOracleComponent.sol +33 -0
  378. package/contracts/oracle/IOracleService.sol +66 -0
  379. package/contracts/oracle/Oracle.sol +156 -0
  380. package/contracts/oracle/OracleService.sol +291 -0
  381. package/contracts/oracle/OracleServiceManager.sol +39 -0
  382. package/contracts/pool/BasicPool.sol +154 -0
  383. package/contracts/pool/BasicPoolAuthorization.sol +57 -0
  384. package/contracts/pool/BundleService.sol +480 -0
  385. package/contracts/pool/BundleServiceManager.sol +39 -0
  386. package/contracts/pool/IBundleService.sol +143 -0
  387. package/contracts/pool/IPoolComponent.sol +68 -0
  388. package/contracts/pool/IPoolService.sol +167 -0
  389. package/contracts/pool/Pool.sol +335 -0
  390. package/contracts/pool/PoolService.sol +534 -0
  391. package/contracts/pool/PoolServiceManager.sol +39 -0
  392. package/contracts/product/ApplicationService.sol +257 -0
  393. package/contracts/product/ApplicationServiceManager.sol +38 -0
  394. package/contracts/product/BasicProduct.sol +53 -0
  395. package/contracts/product/BasicProductAuthorization.sol +42 -0
  396. package/contracts/product/ClaimService.sol +604 -0
  397. package/contracts/product/ClaimServiceManager.sol +38 -0
  398. package/contracts/product/IApplicationService.sol +63 -0
  399. package/contracts/product/IClaimService.sol +123 -0
  400. package/contracts/product/IPolicyService.sol +80 -0
  401. package/contracts/product/IPricingService.sol +39 -0
  402. package/contracts/product/IProductComponent.sol +59 -0
  403. package/contracts/product/IRiskService.sol +33 -0
  404. package/contracts/product/PolicyService.sol +683 -0
  405. package/contracts/product/PolicyServiceManager.sol +39 -0
  406. package/contracts/product/PricingService.sol +297 -0
  407. package/contracts/product/PricingServiceManager.sol +39 -0
  408. package/contracts/product/Product.sol +455 -0
  409. package/contracts/product/RiskService.sol +96 -0
  410. package/contracts/product/RiskServiceManager.sol +39 -0
  411. package/contracts/registry/ChainNft.sol +78 -33
  412. package/contracts/registry/IRegistry.sol +125 -35
  413. package/contracts/registry/IRegistryService.sol +40 -28
  414. package/contracts/registry/ITransferInterceptor.sol +1 -1
  415. package/contracts/registry/Registry.sol +542 -273
  416. package/contracts/registry/RegistryAdmin.sol +448 -0
  417. package/contracts/registry/RegistryService.sol +116 -233
  418. package/contracts/registry/RegistryServiceManager.sol +26 -53
  419. package/contracts/registry/ReleaseLifecycle.sol +30 -0
  420. package/contracts/registry/ReleaseRegistry.sol +501 -0
  421. package/contracts/registry/ServiceAuthorizationV3.sol +194 -0
  422. package/contracts/registry/TokenRegistry.sol +261 -57
  423. package/contracts/shared/Component.sol +265 -0
  424. package/contracts/shared/ComponentService.sol +735 -0
  425. package/contracts/shared/ComponentServiceManager.sol +38 -0
  426. package/contracts/shared/ComponentVerifyingService.sol +126 -0
  427. package/contracts/shared/ContractLib.sol +38 -0
  428. package/contracts/shared/IComponent.sol +74 -0
  429. package/contracts/shared/IComponentService.sol +120 -0
  430. package/contracts/shared/IInstanceLinkedComponent.sol +41 -0
  431. package/contracts/{instance/base → shared}/IKeyValueStore.sol +16 -11
  432. package/contracts/{instance/base → shared}/ILifecycle.sol +5 -4
  433. package/contracts/shared/INftOwnable.sol +15 -12
  434. package/contracts/shared/IPolicyHolder.sol +35 -0
  435. package/contracts/shared/IRegisterable.sol +15 -6
  436. package/contracts/shared/IRegistryLinked.sol +11 -0
  437. package/contracts/shared/IService.sol +16 -6
  438. package/contracts/shared/InitializableERC165.sol +27 -0
  439. package/contracts/shared/InstanceLinkedComponent.sol +213 -0
  440. package/contracts/shared/KeyValueStore.sol +131 -0
  441. package/contracts/shared/Lifecycle.sol +88 -0
  442. package/contracts/shared/NftIdSet.sol +65 -0
  443. package/contracts/shared/NftOwnable.sol +71 -82
  444. package/contracts/shared/PolicyHolder.sol +62 -0
  445. package/contracts/shared/Registerable.sol +34 -39
  446. package/contracts/shared/RegistryLinked.sol +44 -0
  447. package/contracts/shared/Service.sol +61 -32
  448. package/contracts/shared/TokenHandler.sol +122 -10
  449. package/contracts/shared/TokenHandlerDeployerLib.sol +12 -0
  450. package/contracts/staking/IStaking.sol +168 -0
  451. package/contracts/staking/IStakingService.sol +157 -0
  452. package/contracts/staking/StakeManagerLib.sol +224 -0
  453. package/contracts/staking/Staking.sol +497 -0
  454. package/contracts/staking/StakingLifecycle.sol +23 -0
  455. package/contracts/staking/StakingManager.sol +52 -0
  456. package/contracts/staking/StakingReader.sol +190 -0
  457. package/contracts/staking/StakingService.sol +393 -0
  458. package/contracts/staking/StakingServiceManager.sol +44 -0
  459. package/contracts/staking/StakingStore.sol +605 -0
  460. package/contracts/staking/TargetManagerLib.sol +211 -0
  461. package/contracts/{types → type}/AddressSet.sol +1 -1
  462. package/contracts/type/Amount.sol +150 -0
  463. package/contracts/{types → type}/Blocknumber.sol +27 -3
  464. package/contracts/type/ClaimId.sol +80 -0
  465. package/contracts/{types → type}/DistributorType.sol +2 -2
  466. package/contracts/{types → type}/Fee.sol +33 -23
  467. package/contracts/{types → type}/NftId.sol +22 -15
  468. package/contracts/type/NftIdSet.sol +62 -0
  469. package/contracts/type/ObjectType.sol +276 -0
  470. package/contracts/type/PayoutId.sol +82 -0
  471. package/contracts/{types → type}/Referral.sol +6 -1
  472. package/contracts/type/RequestId.sol +75 -0
  473. package/contracts/{types → type}/RiskId.sol +16 -2
  474. package/contracts/type/RoleId.sol +162 -0
  475. package/contracts/type/Seconds.sol +101 -0
  476. package/contracts/type/Selector.sol +102 -0
  477. package/contracts/{types → type}/StateId.sol +48 -4
  478. package/contracts/type/String.sol +53 -0
  479. package/contracts/{types → type}/Timestamp.sol +34 -15
  480. package/contracts/{types → type}/UFixed.sol +39 -9
  481. package/contracts/{types → type}/Version.sol +5 -2
  482. package/contracts/{shared → upgradeability}/IVersionable.sol +5 -48
  483. package/contracts/upgradeability/ProxyManager.sol +232 -0
  484. package/contracts/{shared → upgradeability}/UpgradableProxyWithAdmin.sol +1 -3
  485. package/contracts/upgradeability/Versionable.sol +59 -0
  486. package/package.json +11 -7
  487. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  488. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -327
  489. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
  490. package/artifacts/contracts/components/Distribution.sol/Distribution.json +0 -618
  491. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  492. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
  493. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
  494. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -152
  495. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  496. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +0 -249
  497. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  498. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -157
  499. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  500. package/artifacts/contracts/components/Pool.sol/Pool.json +0 -782
  501. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  502. package/artifacts/contracts/components/Product.sol/Product.json +0 -724
  503. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  504. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  505. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  506. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  507. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  508. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  509. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  510. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  511. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  512. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  513. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  514. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  515. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  516. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  517. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  518. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  519. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  520. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  521. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  522. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  523. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  524. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  525. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  526. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  527. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  528. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  529. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  530. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  531. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  532. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  533. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  534. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  535. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  536. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  537. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  538. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  539. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  540. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  541. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  542. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  543. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  544. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  545. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  546. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +0 -4
  547. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +0 -917
  548. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  549. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  550. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  551. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
  552. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  553. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +0 -4
  554. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +0 -502
  555. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +0 -4
  556. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +0 -169
  557. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +0 -4
  558. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +0 -4
  559. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  560. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  561. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +0 -4
  562. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +0 -716
  563. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +0 -4
  564. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +0 -444
  565. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  566. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
  567. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  568. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  569. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  570. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -926
  571. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +0 -4
  572. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +0 -448
  573. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  574. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -1147
  575. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
  576. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +0 -488
  577. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +0 -4
  578. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +0 -107
  579. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +0 -4
  580. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +0 -35
  581. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +0 -4
  582. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +0 -205
  583. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +0 -4
  584. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +0 -349
  585. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  586. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +0 -4
  587. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +0 -129
  588. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +0 -4
  589. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +0 -228
  590. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
  591. package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
  592. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
  593. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -305
  594. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
  595. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
  596. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
  597. package/artifacts/contracts/test/TestService.sol/TestService.json +0 -600
  598. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
  599. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -376
  600. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
  601. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
  602. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
  603. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -286
  604. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
  605. package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -376
  606. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
  607. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +0 -10
  608. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
  609. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +0 -174
  610. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  611. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +0 -10
  612. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +0 -4
  613. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +0 -104
  614. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
  615. package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -257
  616. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
  617. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +0 -125
  618. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  619. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +0 -153
  620. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
  621. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +0 -10
  622. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +0 -4
  623. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +0 -100
  624. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
  625. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +0 -92
  626. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +0 -4
  627. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +0 -123
  628. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +0 -4
  629. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +0 -86
  630. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
  631. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +0 -156
  632. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
  633. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +0 -92
  634. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
  635. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +0 -249
  636. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +0 -4
  637. package/artifacts/contracts/types/UFixed.sol/MathLib.json +0 -10
  638. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +0 -4
  639. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +0 -479
  640. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
  641. package/artifacts/contracts/types/Version.sol/VersionLib.json +0 -177
  642. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
  643. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +0 -49
  644. package/contracts/components/BaseComponent.sol +0 -91
  645. package/contracts/components/Distribution.sol +0 -163
  646. package/contracts/components/IBaseComponent.sol +0 -25
  647. package/contracts/components/IDistributionComponent.sol +0 -44
  648. package/contracts/components/IPoolComponent.sol +0 -62
  649. package/contracts/components/IProductComponent.sol +0 -35
  650. package/contracts/components/Pool.sol +0 -246
  651. package/contracts/components/Product.sol +0 -288
  652. package/contracts/experiment/cloning/Cloner.sol +0 -47
  653. package/contracts/experiment/errors/Require.sol +0 -38
  654. package/contracts/experiment/errors/Revert.sol +0 -44
  655. package/contracts/experiment/inheritance/A.sol +0 -53
  656. package/contracts/experiment/inheritance/B.sol +0 -28
  657. package/contracts/experiment/inheritance/C.sol +0 -34
  658. package/contracts/experiment/inheritance/IA.sol +0 -13
  659. package/contracts/experiment/inheritance/IB.sol +0 -10
  660. package/contracts/experiment/inheritance/IC.sol +0 -12
  661. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  662. package/contracts/experiment/statemachine/ISM.sol +0 -25
  663. package/contracts/experiment/statemachine/SM.sol +0 -57
  664. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  665. package/contracts/experiment/types/TypeA.sol +0 -47
  666. package/contracts/experiment/types/TypeB.sol +0 -29
  667. package/contracts/instance/AccessManagedSimple.sol +0 -115
  668. package/contracts/instance/AccessManagerSimple.sol +0 -692
  669. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  670. package/contracts/instance/InstanceAccessManager.sol +0 -288
  671. package/contracts/instance/base/ComponentServiceBase.sol +0 -134
  672. package/contracts/instance/base/IInstanceBase.sol +0 -23
  673. package/contracts/instance/base/KeyValueStore.sol +0 -172
  674. package/contracts/instance/base/Lifecycle.sol +0 -100
  675. package/contracts/instance/module/ISetup.sol +0 -45
  676. package/contracts/instance/module/ITreasury.sol +0 -23
  677. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  678. package/contracts/instance/service/DistributionService.sol +0 -88
  679. package/contracts/instance/service/DistributionServiceManager.sol +0 -54
  680. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  681. package/contracts/instance/service/IDistributionService.sol +0 -12
  682. package/contracts/instance/service/IPoolService.sol +0 -41
  683. package/contracts/instance/service/IProductService.sol +0 -110
  684. package/contracts/instance/service/PoolService.sol +0 -201
  685. package/contracts/instance/service/PoolServiceManager.sol +0 -54
  686. package/contracts/instance/service/ProductService.sol +0 -567
  687. package/contracts/instance/service/ProductServiceManager.sol +0 -54
  688. package/contracts/shared/ContractDeployerLib.sol +0 -72
  689. package/contracts/shared/ERC165.sol +0 -25
  690. package/contracts/shared/ProxyManager.sol +0 -94
  691. package/contracts/shared/RegisterableUpgradable.sol +0 -16
  692. package/contracts/shared/Versionable.sol +0 -147
  693. package/contracts/test/TestFee.sol +0 -25
  694. package/contracts/test/TestRegisterable.sol +0 -18
  695. package/contracts/test/TestRoleId.sol +0 -14
  696. package/contracts/test/TestService.sol +0 -24
  697. package/contracts/test/TestToken.sol +0 -26
  698. package/contracts/test/TestVersion.sol +0 -44
  699. package/contracts/test/TestVersionable.sol +0 -17
  700. package/contracts/types/ChainId.sol +0 -38
  701. package/contracts/types/NftIdSet.sol +0 -60
  702. package/contracts/types/NumberId.sol +0 -52
  703. package/contracts/types/ObjectType.sol +0 -152
  704. package/contracts/types/RoleId.sol +0 -90
  705. /package/contracts/{types → type}/Key32.sol +0 -0
@@ -6,791 +6,218 @@
6
6
  {
7
7
  "inputs": [
8
8
  {
9
- "internalType": "ObjectType",
10
- "name": "objectType",
11
- "type": "uint8"
12
- },
13
- {
14
- "internalType": "StateId",
15
- "name": "fromStateId",
16
- "type": "uint8"
17
- },
18
- {
19
- "internalType": "StateId",
20
- "name": "toStateId",
21
- "type": "uint8"
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
22
12
  }
23
13
  ],
24
- "name": "ErrorInvalidStateTransition",
14
+ "name": "AccessManagedInvalidAuthority",
25
15
  "type": "error"
26
16
  },
27
17
  {
28
18
  "inputs": [
29
19
  {
30
- "internalType": "NftId",
31
- "name": "nftId",
32
- "type": "uint96"
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
33
23
  },
34
24
  {
35
- "internalType": "ObjectType",
36
- "name": "objectType",
37
- "type": "uint8"
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
38
28
  }
39
29
  ],
40
- "name": "ErrorNoLifecycle",
30
+ "name": "AccessManagedRequiredDelay",
41
31
  "type": "error"
42
32
  },
43
33
  {
44
- "anonymous": false,
45
34
  "inputs": [
46
35
  {
47
- "indexed": false,
48
- "internalType": "ObjectType",
49
- "name": "objectType",
50
- "type": "uint8"
51
- },
52
- {
53
- "indexed": false,
54
- "internalType": "KeyId",
55
- "name": "keyId",
56
- "type": "bytes31"
57
- },
58
- {
59
- "indexed": false,
60
- "internalType": "StateId",
61
- "name": "state",
62
- "type": "uint8"
63
- },
64
- {
65
- "indexed": false,
66
- "internalType": "address",
67
- "name": "createdBy",
68
- "type": "address"
69
- },
70
- {
71
- "indexed": false,
72
36
  "internalType": "address",
73
- "name": "txOrigin",
37
+ "name": "caller",
74
38
  "type": "address"
75
39
  }
76
40
  ],
77
- "name": "LogInfoCreated",
78
- "type": "event"
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
79
43
  },
80
44
  {
81
- "anonymous": false,
82
45
  "inputs": [
83
46
  {
84
- "indexed": false,
85
- "internalType": "ObjectType",
86
- "name": "objectType",
87
- "type": "uint8"
88
- },
89
- {
90
- "indexed": false,
91
- "internalType": "KeyId",
92
- "name": "keyId",
93
- "type": "bytes31"
94
- },
95
- {
96
- "indexed": false,
97
- "internalType": "StateId",
98
- "name": "state",
99
- "type": "uint8"
100
- },
101
- {
102
- "indexed": false,
103
47
  "internalType": "address",
104
- "name": "updatedBy",
48
+ "name": "instanceBundleSet",
105
49
  "type": "address"
106
- },
107
- {
108
- "indexed": false,
109
- "internalType": "address",
110
- "name": "txOrigin",
111
- "type": "address"
112
- },
113
- {
114
- "indexed": false,
115
- "internalType": "Blocknumber",
116
- "name": "lastUpdatedIn",
117
- "type": "uint32"
118
50
  }
119
51
  ],
120
- "name": "LogInfoUpdated",
121
- "type": "event"
52
+ "name": "ErrorInstanceBundleSetAlreadySet",
53
+ "type": "error"
122
54
  },
123
55
  {
124
- "anonymous": false,
125
56
  "inputs": [
126
57
  {
127
- "indexed": false,
128
- "internalType": "ObjectType",
129
- "name": "objectType",
130
- "type": "uint8"
131
- },
132
- {
133
- "indexed": false,
134
- "internalType": "KeyId",
135
- "name": "keyId",
136
- "type": "bytes31"
137
- },
138
- {
139
- "indexed": false,
140
- "internalType": "StateId",
141
- "name": "stateOld",
142
- "type": "uint8"
143
- },
144
- {
145
- "indexed": false,
146
- "internalType": "StateId",
147
- "name": "stateNew",
148
- "type": "uint8"
149
- },
150
- {
151
- "indexed": false,
152
58
  "internalType": "address",
153
- "name": "updatedBy",
59
+ "name": "instanceAuthority",
154
60
  "type": "address"
155
- },
156
- {
157
- "indexed": false,
158
- "internalType": "address",
159
- "name": "txOrigin",
160
- "type": "address"
161
- },
162
- {
163
- "indexed": false,
164
- "internalType": "Blocknumber",
165
- "name": "lastUpdatedIn",
166
- "type": "uint32"
167
- }
168
- ],
169
- "name": "LogStateUpdated",
170
- "type": "event"
171
- },
172
- {
173
- "inputs": [
174
- {
175
- "internalType": "NftId",
176
- "name": "bundleNftId",
177
- "type": "uint96"
178
- },
179
- {
180
- "components": [
181
- {
182
- "internalType": "NftId",
183
- "name": "poolNftId",
184
- "type": "uint96"
185
- },
186
- {
187
- "components": [
188
- {
189
- "internalType": "UFixed",
190
- "name": "fractionalFee",
191
- "type": "uint256"
192
- },
193
- {
194
- "internalType": "uint256",
195
- "name": "fixedFee",
196
- "type": "uint256"
197
- }
198
- ],
199
- "internalType": "struct Fee",
200
- "name": "fee",
201
- "type": "tuple"
202
- },
203
- {
204
- "internalType": "bytes",
205
- "name": "filter",
206
- "type": "bytes"
207
- },
208
- {
209
- "internalType": "uint256",
210
- "name": "capitalAmount",
211
- "type": "uint256"
212
- },
213
- {
214
- "internalType": "uint256",
215
- "name": "lockedAmount",
216
- "type": "uint256"
217
- },
218
- {
219
- "internalType": "uint256",
220
- "name": "balanceAmount",
221
- "type": "uint256"
222
- },
223
- {
224
- "internalType": "uint256",
225
- "name": "lifetime",
226
- "type": "uint256"
227
- },
228
- {
229
- "internalType": "Timestamp",
230
- "name": "expiredAt",
231
- "type": "uint40"
232
- },
233
- {
234
- "internalType": "Timestamp",
235
- "name": "closedAt",
236
- "type": "uint40"
237
- }
238
- ],
239
- "internalType": "struct IBundle.BundleInfo",
240
- "name": "bundle",
241
- "type": "tuple"
242
- }
243
- ],
244
- "name": "createBundle",
245
- "outputs": [],
246
- "stateMutability": "nonpayable",
247
- "type": "function"
248
- },
249
- {
250
- "inputs": [
251
- {
252
- "internalType": "NftId",
253
- "name": "distributionNftId",
254
- "type": "uint96"
255
- },
256
- {
257
- "components": [
258
- {
259
- "internalType": "NftId",
260
- "name": "productNftId",
261
- "type": "uint96"
262
- },
263
- {
264
- "internalType": "contract TokenHandler",
265
- "name": "tokenHandler",
266
- "type": "address"
267
- },
268
- {
269
- "components": [
270
- {
271
- "internalType": "UFixed",
272
- "name": "fractionalFee",
273
- "type": "uint256"
274
- },
275
- {
276
- "internalType": "uint256",
277
- "name": "fixedFee",
278
- "type": "uint256"
279
- }
280
- ],
281
- "internalType": "struct Fee",
282
- "name": "distributionFee",
283
- "type": "tuple"
284
- },
285
- {
286
- "internalType": "bool",
287
- "name": "isIntercepting",
288
- "type": "bool"
289
- },
290
- {
291
- "internalType": "address",
292
- "name": "wallet",
293
- "type": "address"
294
- }
295
- ],
296
- "internalType": "struct ISetup.DistributionSetupInfo",
297
- "name": "setup",
298
- "type": "tuple"
299
61
  }
300
62
  ],
301
- "name": "createDistributionSetup",
302
- "outputs": [],
303
- "stateMutability": "nonpayable",
304
- "type": "function"
63
+ "name": "ErrorInstanceBundleSetAuthorityMismatch",
64
+ "type": "error"
305
65
  },
306
66
  {
307
67
  "inputs": [
308
68
  {
309
- "internalType": "NftId",
310
- "name": "policyNftId",
311
- "type": "uint96"
312
- },
313
- {
314
- "components": [
315
- {
316
- "internalType": "NftId",
317
- "name": "productNftId",
318
- "type": "uint96"
319
- },
320
- {
321
- "internalType": "NftId",
322
- "name": "bundleNftId",
323
- "type": "uint96"
324
- },
325
- {
326
- "internalType": "ReferralId",
327
- "name": "referralId",
328
- "type": "bytes8"
329
- },
330
- {
331
- "internalType": "RiskId",
332
- "name": "riskId",
333
- "type": "bytes8"
334
- },
335
- {
336
- "internalType": "uint256",
337
- "name": "sumInsuredAmount",
338
- "type": "uint256"
339
- },
340
- {
341
- "internalType": "uint256",
342
- "name": "premiumAmount",
343
- "type": "uint256"
344
- },
345
- {
346
- "internalType": "uint256",
347
- "name": "premiumPaidAmount",
348
- "type": "uint256"
349
- },
350
- {
351
- "internalType": "uint256",
352
- "name": "lifetime",
353
- "type": "uint256"
354
- },
355
- {
356
- "internalType": "bytes",
357
- "name": "applicationData",
358
- "type": "bytes"
359
- },
360
- {
361
- "internalType": "bytes",
362
- "name": "policyData",
363
- "type": "bytes"
364
- },
365
- {
366
- "internalType": "uint16",
367
- "name": "claimsCount",
368
- "type": "uint16"
369
- },
370
- {
371
- "internalType": "uint16",
372
- "name": "openClaimsCount",
373
- "type": "uint16"
374
- },
375
- {
376
- "internalType": "uint256",
377
- "name": "payoutAmount",
378
- "type": "uint256"
379
- },
380
- {
381
- "internalType": "Timestamp",
382
- "name": "activatedAt",
383
- "type": "uint40"
384
- },
385
- {
386
- "internalType": "Timestamp",
387
- "name": "expiredAt",
388
- "type": "uint40"
389
- },
390
- {
391
- "internalType": "Timestamp",
392
- "name": "closedAt",
393
- "type": "uint40"
394
- }
395
- ],
396
- "internalType": "struct IPolicy.PolicyInfo",
397
- "name": "policy",
398
- "type": "tuple"
69
+ "internalType": "address",
70
+ "name": "instance",
71
+ "type": "address"
399
72
  }
400
73
  ],
401
- "name": "createPolicy",
402
- "outputs": [],
403
- "stateMutability": "nonpayable",
404
- "type": "function"
74
+ "name": "ErrorInstanceBundleSetInstanceMismatch",
75
+ "type": "error"
405
76
  },
406
77
  {
407
78
  "inputs": [
408
79
  {
409
- "internalType": "NftId",
410
- "name": "poolNftId",
411
- "type": "uint96"
412
- },
413
- {
414
- "components": [
415
- {
416
- "internalType": "NftId",
417
- "name": "productNftId",
418
- "type": "uint96"
419
- },
420
- {
421
- "internalType": "contract TokenHandler",
422
- "name": "tokenHandler",
423
- "type": "address"
424
- },
425
- {
426
- "internalType": "UFixed",
427
- "name": "collateralizationLevel",
428
- "type": "uint256"
429
- },
430
- {
431
- "components": [
432
- {
433
- "internalType": "UFixed",
434
- "name": "fractionalFee",
435
- "type": "uint256"
436
- },
437
- {
438
- "internalType": "uint256",
439
- "name": "fixedFee",
440
- "type": "uint256"
441
- }
442
- ],
443
- "internalType": "struct Fee",
444
- "name": "poolFee",
445
- "type": "tuple"
446
- },
447
- {
448
- "components": [
449
- {
450
- "internalType": "UFixed",
451
- "name": "fractionalFee",
452
- "type": "uint256"
453
- },
454
- {
455
- "internalType": "uint256",
456
- "name": "fixedFee",
457
- "type": "uint256"
458
- }
459
- ],
460
- "internalType": "struct Fee",
461
- "name": "stakingFee",
462
- "type": "tuple"
463
- },
464
- {
465
- "components": [
466
- {
467
- "internalType": "UFixed",
468
- "name": "fractionalFee",
469
- "type": "uint256"
470
- },
471
- {
472
- "internalType": "uint256",
473
- "name": "fixedFee",
474
- "type": "uint256"
475
- }
476
- ],
477
- "internalType": "struct Fee",
478
- "name": "performanceFee",
479
- "type": "tuple"
480
- },
481
- {
482
- "internalType": "bool",
483
- "name": "isIntercepting",
484
- "type": "bool"
485
- },
486
- {
487
- "internalType": "address",
488
- "name": "wallet",
489
- "type": "address"
490
- }
491
- ],
492
- "internalType": "struct ISetup.PoolSetupInfo",
493
- "name": "setup",
494
- "type": "tuple"
80
+ "internalType": "address",
81
+ "name": "InstanceAdmin",
82
+ "type": "address"
495
83
  }
496
84
  ],
497
- "name": "createPoolSetup",
498
- "outputs": [],
499
- "stateMutability": "nonpayable",
500
- "type": "function"
85
+ "name": "ErrorInstanceInstanceAdminAlreadySet",
86
+ "type": "error"
501
87
  },
502
- {
503
- "inputs": [
504
- {
505
- "internalType": "NftId",
506
- "name": "productNftId",
507
- "type": "uint96"
508
- },
509
- {
510
- "components": [
511
- {
512
- "internalType": "contract IERC20Metadata",
513
- "name": "token",
514
- "type": "address"
515
- },
516
- {
517
- "internalType": "contract TokenHandler",
518
- "name": "tokenHandler",
519
- "type": "address"
520
- },
521
- {
522
- "internalType": "NftId",
523
- "name": "distributionNftId",
524
- "type": "uint96"
525
- },
526
- {
527
- "internalType": "NftId",
528
- "name": "poolNftId",
529
- "type": "uint96"
530
- },
531
- {
532
- "components": [
533
- {
534
- "internalType": "UFixed",
535
- "name": "fractionalFee",
536
- "type": "uint256"
537
- },
538
- {
539
- "internalType": "uint256",
540
- "name": "fixedFee",
541
- "type": "uint256"
542
- }
543
- ],
544
- "internalType": "struct Fee",
545
- "name": "distributionFee",
546
- "type": "tuple"
547
- },
548
- {
549
- "components": [
550
- {
551
- "internalType": "UFixed",
552
- "name": "fractionalFee",
553
- "type": "uint256"
554
- },
555
- {
556
- "internalType": "uint256",
557
- "name": "fixedFee",
558
- "type": "uint256"
559
- }
560
- ],
561
- "internalType": "struct Fee",
562
- "name": "productFee",
563
- "type": "tuple"
564
- },
565
- {
566
- "components": [
567
- {
568
- "internalType": "UFixed",
569
- "name": "fractionalFee",
570
- "type": "uint256"
571
- },
572
- {
573
- "internalType": "uint256",
574
- "name": "fixedFee",
575
- "type": "uint256"
576
- }
577
- ],
578
- "internalType": "struct Fee",
579
- "name": "processingFee",
580
- "type": "tuple"
581
- },
582
- {
583
- "components": [
584
- {
585
- "internalType": "UFixed",
586
- "name": "fractionalFee",
587
- "type": "uint256"
588
- },
589
- {
590
- "internalType": "uint256",
591
- "name": "fixedFee",
592
- "type": "uint256"
593
- }
594
- ],
595
- "internalType": "struct Fee",
596
- "name": "poolFee",
597
- "type": "tuple"
598
- },
599
- {
600
- "components": [
601
- {
602
- "internalType": "UFixed",
603
- "name": "fractionalFee",
604
- "type": "uint256"
605
- },
606
- {
607
- "internalType": "uint256",
608
- "name": "fixedFee",
609
- "type": "uint256"
610
- }
611
- ],
612
- "internalType": "struct Fee",
613
- "name": "stakingFee",
614
- "type": "tuple"
615
- },
616
- {
617
- "components": [
618
- {
619
- "internalType": "UFixed",
620
- "name": "fractionalFee",
621
- "type": "uint256"
622
- },
623
- {
624
- "internalType": "uint256",
625
- "name": "fixedFee",
626
- "type": "uint256"
627
- }
628
- ],
629
- "internalType": "struct Fee",
630
- "name": "performanceFee",
631
- "type": "tuple"
632
- },
633
- {
634
- "internalType": "address",
635
- "name": "wallet",
636
- "type": "address"
637
- }
638
- ],
639
- "internalType": "struct ISetup.ProductSetupInfo",
640
- "name": "setup",
641
- "type": "tuple"
88
+ {
89
+ "inputs": [
90
+ {
91
+ "internalType": "address",
92
+ "name": "instanceAuthority",
93
+ "type": "address"
642
94
  }
643
95
  ],
644
- "name": "createProductSetup",
645
- "outputs": [],
646
- "stateMutability": "nonpayable",
647
- "type": "function"
96
+ "name": "ErrorInstanceInstanceAdminAuthorityMismatch",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ErrorInstanceInstanceAdminZero",
102
+ "type": "error"
648
103
  },
649
104
  {
650
105
  "inputs": [
651
106
  {
652
- "internalType": "RiskId",
653
- "name": "riskId",
654
- "type": "bytes8"
655
- },
656
- {
657
- "components": [
658
- {
659
- "internalType": "NftId",
660
- "name": "productNftId",
661
- "type": "uint96"
662
- },
663
- {
664
- "internalType": "bytes",
665
- "name": "data",
666
- "type": "bytes"
667
- }
668
- ],
669
- "internalType": "struct IRisk.RiskInfo",
670
- "name": "risk",
671
- "type": "tuple"
107
+ "internalType": "address",
108
+ "name": "instanceAuthority",
109
+ "type": "address"
672
110
  }
673
111
  ],
674
- "name": "createRisk",
675
- "outputs": [],
676
- "stateMutability": "nonpayable",
677
- "type": "function"
112
+ "name": "ErrorInstanceInstanceReaderInstanceMismatch",
113
+ "type": "error"
678
114
  },
679
115
  {
680
116
  "inputs": [
681
117
  {
682
- "internalType": "Key32",
683
- "name": "key",
684
- "type": "bytes32"
118
+ "internalType": "address",
119
+ "name": "instanceStore",
120
+ "type": "address"
685
121
  }
686
122
  ],
687
- "name": "exists",
688
- "outputs": [
123
+ "name": "ErrorInstanceInstanceStoreAlreadySet",
124
+ "type": "error"
125
+ },
126
+ {
127
+ "inputs": [
689
128
  {
690
- "internalType": "bool",
691
- "name": "",
692
- "type": "bool"
129
+ "internalType": "address",
130
+ "name": "instanceAuthority",
131
+ "type": "address"
693
132
  }
694
133
  ],
695
- "stateMutability": "view",
696
- "type": "function"
134
+ "name": "ErrorInstanceInstanceStoreAuthorityMismatch",
135
+ "type": "error"
697
136
  },
698
137
  {
699
138
  "inputs": [
700
139
  {
701
- "internalType": "Key32",
702
- "name": "key",
703
- "type": "bytes32"
140
+ "internalType": "NftId",
141
+ "name": "nftId",
142
+ "type": "uint96"
704
143
  }
705
144
  ],
706
- "name": "get",
707
- "outputs": [
145
+ "name": "ErrorNftOwnableAlreadyLinked",
146
+ "type": "error"
147
+ },
148
+ {
149
+ "inputs": [
708
150
  {
709
- "components": [
710
- {
711
- "components": [
712
- {
713
- "internalType": "ObjectType",
714
- "name": "objectType",
715
- "type": "uint8"
716
- },
717
- {
718
- "internalType": "StateId",
719
- "name": "state",
720
- "type": "uint8"
721
- },
722
- {
723
- "internalType": "address",
724
- "name": "updatedBy",
725
- "type": "address"
726
- },
727
- {
728
- "internalType": "Blocknumber",
729
- "name": "updatedIn",
730
- "type": "uint32"
731
- },
732
- {
733
- "internalType": "Blocknumber",
734
- "name": "createdIn",
735
- "type": "uint32"
736
- }
737
- ],
738
- "internalType": "struct IKeyValueStore.Metadata",
739
- "name": "metadata",
740
- "type": "tuple"
741
- },
742
- {
743
- "internalType": "bytes",
744
- "name": "data",
745
- "type": "bytes"
746
- }
747
- ],
748
- "internalType": "struct IKeyValueStore.Value",
749
- "name": "value",
750
- "type": "tuple"
151
+ "internalType": "address",
152
+ "name": "contractAddress",
153
+ "type": "address"
751
154
  }
752
155
  ],
753
- "stateMutability": "view",
754
- "type": "function"
156
+ "name": "ErrorNftOwnableContractNotRegistered",
157
+ "type": "error"
755
158
  },
756
159
  {
757
160
  "inputs": [],
758
- "name": "getComponentOwnerService",
759
- "outputs": [
161
+ "name": "ErrorNftOwnableInitialOwnerZero",
162
+ "type": "error"
163
+ },
164
+ {
165
+ "inputs": [
760
166
  {
761
- "internalType": "contract IComponentOwnerService",
762
- "name": "",
167
+ "internalType": "NftId",
168
+ "name": "nftId",
169
+ "type": "uint96"
170
+ },
171
+ {
172
+ "internalType": "ObjectType",
173
+ "name": "expectedObjectType",
174
+ "type": "uint8"
175
+ }
176
+ ],
177
+ "name": "ErrorNftOwnableInvalidType",
178
+ "type": "error"
179
+ },
180
+ {
181
+ "inputs": [
182
+ {
183
+ "internalType": "address",
184
+ "name": "account",
763
185
  "type": "address"
764
186
  }
765
187
  ],
766
- "stateMutability": "view",
767
- "type": "function"
188
+ "name": "ErrorNftOwnableNotOwner",
189
+ "type": "error"
768
190
  },
769
191
  {
770
192
  "inputs": [
771
193
  {
772
- "internalType": "Key32",
773
- "name": "key",
774
- "type": "bytes32"
194
+ "internalType": "address",
195
+ "name": "registryAddress",
196
+ "type": "address"
775
197
  }
776
198
  ],
777
- "name": "getData",
778
- "outputs": [
199
+ "name": "ErrorNotRegistry",
200
+ "type": "error"
201
+ },
202
+ {
203
+ "anonymous": false,
204
+ "inputs": [
779
205
  {
780
- "internalType": "bytes",
781
- "name": "data",
782
- "type": "bytes"
206
+ "indexed": false,
207
+ "internalType": "address",
208
+ "name": "authority",
209
+ "type": "address"
783
210
  }
784
211
  ],
785
- "stateMutability": "view",
786
- "type": "function"
212
+ "name": "AuthorityUpdated",
213
+ "type": "event"
787
214
  },
788
215
  {
789
216
  "inputs": [],
790
- "name": "getDistributionService",
217
+ "name": "authority",
791
218
  "outputs": [
792
219
  {
793
- "internalType": "contract IDistributionService",
220
+ "internalType": "address",
794
221
  "name": "",
795
222
  "type": "address"
796
223
  }
@@ -801,28 +228,56 @@
801
228
  {
802
229
  "inputs": [
803
230
  {
804
- "internalType": "ObjectType",
805
- "name": "objectType",
806
- "type": "uint8"
231
+ "internalType": "string",
232
+ "name": "roleName",
233
+ "type": "string"
234
+ },
235
+ {
236
+ "internalType": "string",
237
+ "name": "adminName",
238
+ "type": "string"
807
239
  }
808
240
  ],
809
- "name": "getInitialState",
241
+ "name": "createRole",
810
242
  "outputs": [
811
243
  {
812
- "internalType": "StateId",
813
- "name": "",
814
- "type": "uint8"
244
+ "internalType": "RoleId",
245
+ "name": "roleId",
246
+ "type": "uint64"
247
+ },
248
+ {
249
+ "internalType": "RoleId",
250
+ "name": "admin",
251
+ "type": "uint64"
815
252
  }
816
253
  ],
817
- "stateMutability": "view",
254
+ "stateMutability": "nonpayable",
255
+ "type": "function"
256
+ },
257
+ {
258
+ "inputs": [
259
+ {
260
+ "internalType": "address",
261
+ "name": "target",
262
+ "type": "address"
263
+ },
264
+ {
265
+ "internalType": "string",
266
+ "name": "name",
267
+ "type": "string"
268
+ }
269
+ ],
270
+ "name": "createTarget",
271
+ "outputs": [],
272
+ "stateMutability": "nonpayable",
818
273
  "type": "function"
819
274
  },
820
275
  {
821
276
  "inputs": [],
822
- "name": "getInstanceReader",
277
+ "name": "getBundleSet",
823
278
  "outputs": [
824
279
  {
825
- "internalType": "contract InstanceReader",
280
+ "internalType": "contract BundleSet",
826
281
  "name": "",
827
282
  "type": "address"
828
283
  }
@@ -831,45 +286,49 @@
831
286
  "type": "function"
832
287
  },
833
288
  {
834
- "inputs": [
835
- {
836
- "internalType": "Key32",
837
- "name": "key",
838
- "type": "bytes32"
839
- }
840
- ],
841
- "name": "getMetadata",
289
+ "inputs": [],
290
+ "name": "getInitialInfo",
842
291
  "outputs": [
843
292
  {
844
293
  "components": [
294
+ {
295
+ "internalType": "NftId",
296
+ "name": "nftId",
297
+ "type": "uint96"
298
+ },
299
+ {
300
+ "internalType": "NftId",
301
+ "name": "parentNftId",
302
+ "type": "uint96"
303
+ },
845
304
  {
846
305
  "internalType": "ObjectType",
847
306
  "name": "objectType",
848
307
  "type": "uint8"
849
308
  },
850
309
  {
851
- "internalType": "StateId",
852
- "name": "state",
853
- "type": "uint8"
310
+ "internalType": "bool",
311
+ "name": "isInterceptor",
312
+ "type": "bool"
854
313
  },
855
314
  {
856
315
  "internalType": "address",
857
- "name": "updatedBy",
316
+ "name": "objectAddress",
858
317
  "type": "address"
859
318
  },
860
319
  {
861
- "internalType": "Blocknumber",
862
- "name": "updatedIn",
863
- "type": "uint32"
320
+ "internalType": "address",
321
+ "name": "initialOwner",
322
+ "type": "address"
864
323
  },
865
324
  {
866
- "internalType": "Blocknumber",
867
- "name": "createdIn",
868
- "type": "uint32"
325
+ "internalType": "bytes",
326
+ "name": "data",
327
+ "type": "bytes"
869
328
  }
870
329
  ],
871
- "internalType": "struct IKeyValueStore.Metadata",
872
- "name": "metadata",
330
+ "internalType": "struct IRegistry.ObjectInfo",
331
+ "name": "",
873
332
  "type": "tuple"
874
333
  }
875
334
  ],
@@ -878,10 +337,10 @@
878
337
  },
879
338
  {
880
339
  "inputs": [],
881
- "name": "getPoolService",
340
+ "name": "getInstanceAdmin",
882
341
  "outputs": [
883
342
  {
884
- "internalType": "contract IPoolService",
343
+ "internalType": "contract InstanceAdmin",
885
344
  "name": "",
886
345
  "type": "address"
887
346
  }
@@ -891,10 +350,10 @@
891
350
  },
892
351
  {
893
352
  "inputs": [],
894
- "name": "getProductService",
353
+ "name": "getInstanceReader",
895
354
  "outputs": [
896
355
  {
897
- "internalType": "contract IProductService",
356
+ "internalType": "contract InstanceReader",
898
357
  "name": "",
899
358
  "type": "address"
900
359
  }
@@ -903,273 +362,138 @@
903
362
  "type": "function"
904
363
  },
905
364
  {
906
- "inputs": [
907
- {
908
- "internalType": "Key32",
909
- "name": "key",
910
- "type": "bytes32"
911
- }
912
- ],
913
- "name": "getState",
914
- "outputs": [
915
- {
916
- "internalType": "StateId",
917
- "name": "state",
918
- "type": "uint8"
919
- }
920
- ],
921
- "stateMutability": "view",
922
- "type": "function"
923
- },
924
- {
925
- "inputs": [
926
- {
927
- "internalType": "ObjectType",
928
- "name": "objectType",
929
- "type": "uint8"
930
- }
931
- ],
932
- "name": "hasLifecycle",
365
+ "inputs": [],
366
+ "name": "getInstanceStore",
933
367
  "outputs": [
934
368
  {
935
- "internalType": "bool",
369
+ "internalType": "contract InstanceStore",
936
370
  "name": "",
937
- "type": "bool"
371
+ "type": "address"
938
372
  }
939
373
  ],
940
374
  "stateMutability": "view",
941
375
  "type": "function"
942
376
  },
943
377
  {
944
- "inputs": [
945
- {
946
- "internalType": "ObjectType",
947
- "name": "objectType",
948
- "type": "uint8"
949
- },
950
- {
951
- "internalType": "StateId",
952
- "name": "fromId",
953
- "type": "uint8"
954
- },
955
- {
956
- "internalType": "StateId",
957
- "name": "toId",
958
- "type": "uint8"
959
- }
960
- ],
961
- "name": "isValidTransition",
378
+ "inputs": [],
379
+ "name": "getNftId",
962
380
  "outputs": [
963
381
  {
964
- "internalType": "bool",
382
+ "internalType": "NftId",
965
383
  "name": "",
966
- "type": "bool"
384
+ "type": "uint96"
967
385
  }
968
386
  ],
969
387
  "stateMutability": "view",
970
388
  "type": "function"
971
389
  },
972
390
  {
973
- "inputs": [
974
- {
975
- "internalType": "bytes4",
976
- "name": "interfaceId",
977
- "type": "bytes4"
978
- }
979
- ],
980
- "name": "supportsInterface",
391
+ "inputs": [],
392
+ "name": "getOwner",
981
393
  "outputs": [
982
394
  {
983
- "internalType": "bool",
395
+ "internalType": "address",
984
396
  "name": "",
985
- "type": "bool"
397
+ "type": "address"
986
398
  }
987
399
  ],
988
400
  "stateMutability": "view",
989
401
  "type": "function"
990
402
  },
991
403
  {
992
- "inputs": [
993
- {
994
- "internalType": "ObjectType",
995
- "name": "objectType",
996
- "type": "uint8"
997
- },
998
- {
999
- "internalType": "KeyId",
1000
- "name": "id",
1001
- "type": "bytes31"
1002
- }
1003
- ],
1004
- "name": "toKey32",
404
+ "inputs": [],
405
+ "name": "getRegistry",
1005
406
  "outputs": [
1006
407
  {
1007
- "internalType": "Key32",
408
+ "internalType": "contract IRegistry",
1008
409
  "name": "",
1009
- "type": "bytes32"
410
+ "type": "address"
1010
411
  }
1011
412
  ],
1012
- "stateMutability": "pure",
413
+ "stateMutability": "view",
1013
414
  "type": "function"
1014
415
  },
1015
416
  {
1016
- "inputs": [
1017
- {
1018
- "internalType": "NftId",
1019
- "name": "bundleNftId",
1020
- "type": "uint96"
1021
- },
1022
- {
1023
- "components": [
1024
- {
1025
- "internalType": "NftId",
1026
- "name": "poolNftId",
1027
- "type": "uint96"
1028
- },
1029
- {
1030
- "components": [
1031
- {
1032
- "internalType": "UFixed",
1033
- "name": "fractionalFee",
1034
- "type": "uint256"
1035
- },
1036
- {
1037
- "internalType": "uint256",
1038
- "name": "fixedFee",
1039
- "type": "uint256"
1040
- }
1041
- ],
1042
- "internalType": "struct Fee",
1043
- "name": "fee",
1044
- "type": "tuple"
1045
- },
1046
- {
1047
- "internalType": "bytes",
1048
- "name": "filter",
1049
- "type": "bytes"
1050
- },
1051
- {
1052
- "internalType": "uint256",
1053
- "name": "capitalAmount",
1054
- "type": "uint256"
1055
- },
1056
- {
1057
- "internalType": "uint256",
1058
- "name": "lockedAmount",
1059
- "type": "uint256"
1060
- },
1061
- {
1062
- "internalType": "uint256",
1063
- "name": "balanceAmount",
1064
- "type": "uint256"
1065
- },
1066
- {
1067
- "internalType": "uint256",
1068
- "name": "lifetime",
1069
- "type": "uint256"
1070
- },
1071
- {
1072
- "internalType": "Timestamp",
1073
- "name": "expiredAt",
1074
- "type": "uint40"
1075
- },
1076
- {
1077
- "internalType": "Timestamp",
1078
- "name": "closedAt",
1079
- "type": "uint40"
1080
- }
1081
- ],
1082
- "internalType": "struct IBundle.BundleInfo",
1083
- "name": "bundle",
1084
- "type": "tuple"
1085
- },
417
+ "inputs": [],
418
+ "name": "getRelease",
419
+ "outputs": [
1086
420
  {
1087
- "internalType": "StateId",
1088
- "name": "newState",
421
+ "internalType": "VersionPart",
422
+ "name": "release",
1089
423
  "type": "uint8"
1090
424
  }
1091
425
  ],
1092
- "name": "updateBundle",
1093
- "outputs": [],
1094
- "stateMutability": "nonpayable",
426
+ "stateMutability": "pure",
1095
427
  "type": "function"
1096
428
  },
1097
429
  {
1098
430
  "inputs": [
1099
431
  {
1100
- "internalType": "NftId",
1101
- "name": "bundleNftId",
1102
- "type": "uint96"
432
+ "internalType": "RoleId",
433
+ "name": "roleId",
434
+ "type": "uint64"
1103
435
  },
1104
436
  {
1105
- "internalType": "StateId",
1106
- "name": "newState",
1107
- "type": "uint8"
437
+ "internalType": "address",
438
+ "name": "account",
439
+ "type": "address"
1108
440
  }
1109
441
  ],
1110
- "name": "updateBundleState",
442
+ "name": "grantRole",
1111
443
  "outputs": [],
1112
444
  "stateMutability": "nonpayable",
1113
445
  "type": "function"
1114
446
  },
1115
447
  {
1116
- "inputs": [
448
+ "inputs": [],
449
+ "name": "isConsumingScheduledOp",
450
+ "outputs": [
451
+ {
452
+ "internalType": "bytes4",
453
+ "name": "",
454
+ "type": "bytes4"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [],
462
+ "name": "linkToRegisteredNftId",
463
+ "outputs": [
1117
464
  {
1118
465
  "internalType": "NftId",
1119
- "name": "distributionNftId",
466
+ "name": "",
1120
467
  "type": "uint96"
468
+ }
469
+ ],
470
+ "stateMutability": "nonpayable",
471
+ "type": "function"
472
+ },
473
+ {
474
+ "inputs": [
475
+ {
476
+ "internalType": "address",
477
+ "name": "from",
478
+ "type": "address"
1121
479
  },
1122
480
  {
1123
- "components": [
1124
- {
1125
- "internalType": "NftId",
1126
- "name": "productNftId",
1127
- "type": "uint96"
1128
- },
1129
- {
1130
- "internalType": "contract TokenHandler",
1131
- "name": "tokenHandler",
1132
- "type": "address"
1133
- },
1134
- {
1135
- "components": [
1136
- {
1137
- "internalType": "UFixed",
1138
- "name": "fractionalFee",
1139
- "type": "uint256"
1140
- },
1141
- {
1142
- "internalType": "uint256",
1143
- "name": "fixedFee",
1144
- "type": "uint256"
1145
- }
1146
- ],
1147
- "internalType": "struct Fee",
1148
- "name": "distributionFee",
1149
- "type": "tuple"
1150
- },
1151
- {
1152
- "internalType": "bool",
1153
- "name": "isIntercepting",
1154
- "type": "bool"
1155
- },
1156
- {
1157
- "internalType": "address",
1158
- "name": "wallet",
1159
- "type": "address"
1160
- }
1161
- ],
1162
- "internalType": "struct ISetup.DistributionSetupInfo",
1163
- "name": "setup",
1164
- "type": "tuple"
481
+ "internalType": "address",
482
+ "name": "to",
483
+ "type": "address"
1165
484
  },
1166
485
  {
1167
- "internalType": "StateId",
1168
- "name": "newState",
1169
- "type": "uint8"
486
+ "internalType": "uint256",
487
+ "name": "tokenId",
488
+ "type": "uint256"
489
+ },
490
+ {
491
+ "internalType": "address",
492
+ "name": "operator",
493
+ "type": "address"
1170
494
  }
1171
495
  ],
1172
- "name": "updateDistributionSetup",
496
+ "name": "nftTransferFrom",
1173
497
  "outputs": [],
1174
498
  "stateMutability": "nonpayable",
1175
499
  "type": "function"
@@ -1177,122 +501,49 @@
1177
501
  {
1178
502
  "inputs": [
1179
503
  {
1180
- "internalType": "NftId",
1181
- "name": "distributionNftId",
504
+ "internalType": "Amount",
505
+ "name": "dipAmount",
1182
506
  "type": "uint96"
1183
- },
1184
- {
1185
- "internalType": "StateId",
1186
- "name": "newState",
1187
- "type": "uint8"
1188
507
  }
1189
508
  ],
1190
- "name": "updateDistributionSetupState",
509
+ "name": "refillStakingRewardReserves",
1191
510
  "outputs": [],
1192
511
  "stateMutability": "nonpayable",
1193
512
  "type": "function"
1194
513
  },
1195
514
  {
1196
515
  "inputs": [
516
+ {
517
+ "internalType": "address",
518
+ "name": "product",
519
+ "type": "address"
520
+ }
521
+ ],
522
+ "name": "registerProduct",
523
+ "outputs": [
1197
524
  {
1198
525
  "internalType": "NftId",
1199
- "name": "policyNftId",
526
+ "name": "productNftId",
1200
527
  "type": "uint96"
1201
- },
528
+ }
529
+ ],
530
+ "stateMutability": "nonpayable",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [
1202
535
  {
1203
- "components": [
1204
- {
1205
- "internalType": "NftId",
1206
- "name": "productNftId",
1207
- "type": "uint96"
1208
- },
1209
- {
1210
- "internalType": "NftId",
1211
- "name": "bundleNftId",
1212
- "type": "uint96"
1213
- },
1214
- {
1215
- "internalType": "ReferralId",
1216
- "name": "referralId",
1217
- "type": "bytes8"
1218
- },
1219
- {
1220
- "internalType": "RiskId",
1221
- "name": "riskId",
1222
- "type": "bytes8"
1223
- },
1224
- {
1225
- "internalType": "uint256",
1226
- "name": "sumInsuredAmount",
1227
- "type": "uint256"
1228
- },
1229
- {
1230
- "internalType": "uint256",
1231
- "name": "premiumAmount",
1232
- "type": "uint256"
1233
- },
1234
- {
1235
- "internalType": "uint256",
1236
- "name": "premiumPaidAmount",
1237
- "type": "uint256"
1238
- },
1239
- {
1240
- "internalType": "uint256",
1241
- "name": "lifetime",
1242
- "type": "uint256"
1243
- },
1244
- {
1245
- "internalType": "bytes",
1246
- "name": "applicationData",
1247
- "type": "bytes"
1248
- },
1249
- {
1250
- "internalType": "bytes",
1251
- "name": "policyData",
1252
- "type": "bytes"
1253
- },
1254
- {
1255
- "internalType": "uint16",
1256
- "name": "claimsCount",
1257
- "type": "uint16"
1258
- },
1259
- {
1260
- "internalType": "uint16",
1261
- "name": "openClaimsCount",
1262
- "type": "uint16"
1263
- },
1264
- {
1265
- "internalType": "uint256",
1266
- "name": "payoutAmount",
1267
- "type": "uint256"
1268
- },
1269
- {
1270
- "internalType": "Timestamp",
1271
- "name": "activatedAt",
1272
- "type": "uint40"
1273
- },
1274
- {
1275
- "internalType": "Timestamp",
1276
- "name": "expiredAt",
1277
- "type": "uint40"
1278
- },
1279
- {
1280
- "internalType": "Timestamp",
1281
- "name": "closedAt",
1282
- "type": "uint40"
1283
- }
1284
- ],
1285
- "internalType": "struct IPolicy.PolicyInfo",
1286
- "name": "policy",
1287
- "type": "tuple"
536
+ "internalType": "RoleId",
537
+ "name": "roleId",
538
+ "type": "uint64"
1288
539
  },
1289
540
  {
1290
- "internalType": "StateId",
1291
- "name": "newState",
1292
- "type": "uint8"
541
+ "internalType": "address",
542
+ "name": "account",
543
+ "type": "address"
1293
544
  }
1294
545
  ],
1295
- "name": "updatePolicy",
546
+ "name": "revokeRole",
1296
547
  "outputs": [],
1297
548
  "stateMutability": "nonpayable",
1298
549
  "type": "function"
@@ -1300,17 +551,12 @@
1300
551
  {
1301
552
  "inputs": [
1302
553
  {
1303
- "internalType": "NftId",
1304
- "name": "policyNftId",
1305
- "type": "uint96"
1306
- },
1307
- {
1308
- "internalType": "StateId",
1309
- "name": "newState",
1310
- "type": "uint8"
554
+ "internalType": "address",
555
+ "name": "",
556
+ "type": "address"
1311
557
  }
1312
558
  ],
1313
- "name": "updatePolicyState",
559
+ "name": "setAuthority",
1314
560
  "outputs": [],
1315
561
  "stateMutability": "nonpayable",
1316
562
  "type": "function"
@@ -1318,100 +564,12 @@
1318
564
  {
1319
565
  "inputs": [
1320
566
  {
1321
- "internalType": "NftId",
1322
- "name": "poolNftId",
1323
- "type": "uint96"
1324
- },
1325
- {
1326
- "components": [
1327
- {
1328
- "internalType": "NftId",
1329
- "name": "productNftId",
1330
- "type": "uint96"
1331
- },
1332
- {
1333
- "internalType": "contract TokenHandler",
1334
- "name": "tokenHandler",
1335
- "type": "address"
1336
- },
1337
- {
1338
- "internalType": "UFixed",
1339
- "name": "collateralizationLevel",
1340
- "type": "uint256"
1341
- },
1342
- {
1343
- "components": [
1344
- {
1345
- "internalType": "UFixed",
1346
- "name": "fractionalFee",
1347
- "type": "uint256"
1348
- },
1349
- {
1350
- "internalType": "uint256",
1351
- "name": "fixedFee",
1352
- "type": "uint256"
1353
- }
1354
- ],
1355
- "internalType": "struct Fee",
1356
- "name": "poolFee",
1357
- "type": "tuple"
1358
- },
1359
- {
1360
- "components": [
1361
- {
1362
- "internalType": "UFixed",
1363
- "name": "fractionalFee",
1364
- "type": "uint256"
1365
- },
1366
- {
1367
- "internalType": "uint256",
1368
- "name": "fixedFee",
1369
- "type": "uint256"
1370
- }
1371
- ],
1372
- "internalType": "struct Fee",
1373
- "name": "stakingFee",
1374
- "type": "tuple"
1375
- },
1376
- {
1377
- "components": [
1378
- {
1379
- "internalType": "UFixed",
1380
- "name": "fractionalFee",
1381
- "type": "uint256"
1382
- },
1383
- {
1384
- "internalType": "uint256",
1385
- "name": "fixedFee",
1386
- "type": "uint256"
1387
- }
1388
- ],
1389
- "internalType": "struct Fee",
1390
- "name": "performanceFee",
1391
- "type": "tuple"
1392
- },
1393
- {
1394
- "internalType": "bool",
1395
- "name": "isIntercepting",
1396
- "type": "bool"
1397
- },
1398
- {
1399
- "internalType": "address",
1400
- "name": "wallet",
1401
- "type": "address"
1402
- }
1403
- ],
1404
- "internalType": "struct ISetup.PoolSetupInfo",
1405
- "name": "setup",
1406
- "type": "tuple"
1407
- },
1408
- {
1409
- "internalType": "StateId",
1410
- "name": "newState",
1411
- "type": "uint8"
567
+ "internalType": "Seconds",
568
+ "name": "stakeLockingPeriod",
569
+ "type": "uint40"
1412
570
  }
1413
571
  ],
1414
- "name": "updatePoolSetup",
572
+ "name": "setStakingLockingPeriod",
1415
573
  "outputs": [],
1416
574
  "stateMutability": "nonpayable",
1417
575
  "type": "function"
@@ -1419,17 +577,12 @@
1419
577
  {
1420
578
  "inputs": [
1421
579
  {
1422
- "internalType": "NftId",
1423
- "name": "poolNftId",
1424
- "type": "uint96"
1425
- },
1426
- {
1427
- "internalType": "StateId",
1428
- "name": "newState",
1429
- "type": "uint8"
580
+ "internalType": "UFixed",
581
+ "name": "rewardRate",
582
+ "type": "uint256"
1430
583
  }
1431
584
  ],
1432
- "name": "updatePoolSetupState",
585
+ "name": "setStakingRewardRate",
1433
586
  "outputs": [],
1434
587
  "stateMutability": "nonpayable",
1435
588
  "type": "function"
@@ -1437,151 +590,22 @@
1437
590
  {
1438
591
  "inputs": [
1439
592
  {
1440
- "internalType": "NftId",
1441
- "name": "productNftId",
1442
- "type": "uint96"
593
+ "internalType": "string",
594
+ "name": "targetName",
595
+ "type": "string"
1443
596
  },
1444
597
  {
1445
- "components": [
1446
- {
1447
- "internalType": "contract IERC20Metadata",
1448
- "name": "token",
1449
- "type": "address"
1450
- },
1451
- {
1452
- "internalType": "contract TokenHandler",
1453
- "name": "tokenHandler",
1454
- "type": "address"
1455
- },
1456
- {
1457
- "internalType": "NftId",
1458
- "name": "distributionNftId",
1459
- "type": "uint96"
1460
- },
1461
- {
1462
- "internalType": "NftId",
1463
- "name": "poolNftId",
1464
- "type": "uint96"
1465
- },
1466
- {
1467
- "components": [
1468
- {
1469
- "internalType": "UFixed",
1470
- "name": "fractionalFee",
1471
- "type": "uint256"
1472
- },
1473
- {
1474
- "internalType": "uint256",
1475
- "name": "fixedFee",
1476
- "type": "uint256"
1477
- }
1478
- ],
1479
- "internalType": "struct Fee",
1480
- "name": "distributionFee",
1481
- "type": "tuple"
1482
- },
1483
- {
1484
- "components": [
1485
- {
1486
- "internalType": "UFixed",
1487
- "name": "fractionalFee",
1488
- "type": "uint256"
1489
- },
1490
- {
1491
- "internalType": "uint256",
1492
- "name": "fixedFee",
1493
- "type": "uint256"
1494
- }
1495
- ],
1496
- "internalType": "struct Fee",
1497
- "name": "productFee",
1498
- "type": "tuple"
1499
- },
1500
- {
1501
- "components": [
1502
- {
1503
- "internalType": "UFixed",
1504
- "name": "fractionalFee",
1505
- "type": "uint256"
1506
- },
1507
- {
1508
- "internalType": "uint256",
1509
- "name": "fixedFee",
1510
- "type": "uint256"
1511
- }
1512
- ],
1513
- "internalType": "struct Fee",
1514
- "name": "processingFee",
1515
- "type": "tuple"
1516
- },
1517
- {
1518
- "components": [
1519
- {
1520
- "internalType": "UFixed",
1521
- "name": "fractionalFee",
1522
- "type": "uint256"
1523
- },
1524
- {
1525
- "internalType": "uint256",
1526
- "name": "fixedFee",
1527
- "type": "uint256"
1528
- }
1529
- ],
1530
- "internalType": "struct Fee",
1531
- "name": "poolFee",
1532
- "type": "tuple"
1533
- },
1534
- {
1535
- "components": [
1536
- {
1537
- "internalType": "UFixed",
1538
- "name": "fractionalFee",
1539
- "type": "uint256"
1540
- },
1541
- {
1542
- "internalType": "uint256",
1543
- "name": "fixedFee",
1544
- "type": "uint256"
1545
- }
1546
- ],
1547
- "internalType": "struct Fee",
1548
- "name": "stakingFee",
1549
- "type": "tuple"
1550
- },
1551
- {
1552
- "components": [
1553
- {
1554
- "internalType": "UFixed",
1555
- "name": "fractionalFee",
1556
- "type": "uint256"
1557
- },
1558
- {
1559
- "internalType": "uint256",
1560
- "name": "fixedFee",
1561
- "type": "uint256"
1562
- }
1563
- ],
1564
- "internalType": "struct Fee",
1565
- "name": "performanceFee",
1566
- "type": "tuple"
1567
- },
1568
- {
1569
- "internalType": "address",
1570
- "name": "wallet",
1571
- "type": "address"
1572
- }
1573
- ],
1574
- "internalType": "struct ISetup.ProductSetupInfo",
1575
- "name": "setup",
1576
- "type": "tuple"
598
+ "internalType": "bytes4[]",
599
+ "name": "selectors",
600
+ "type": "bytes4[]"
1577
601
  },
1578
602
  {
1579
- "internalType": "StateId",
1580
- "name": "newState",
1581
- "type": "uint8"
603
+ "internalType": "RoleId",
604
+ "name": "roleId",
605
+ "type": "uint64"
1582
606
  }
1583
607
  ],
1584
- "name": "updateProductSetup",
608
+ "name": "setTargetFunctionRole",
1585
609
  "outputs": [],
1586
610
  "stateMutability": "nonpayable",
1587
611
  "type": "function"
@@ -1589,17 +613,17 @@
1589
613
  {
1590
614
  "inputs": [
1591
615
  {
1592
- "internalType": "NftId",
1593
- "name": "productNftId",
1594
- "type": "uint96"
616
+ "internalType": "address",
617
+ "name": "target",
618
+ "type": "address"
1595
619
  },
1596
620
  {
1597
- "internalType": "StateId",
1598
- "name": "newState",
1599
- "type": "uint8"
621
+ "internalType": "bool",
622
+ "name": "locked",
623
+ "type": "bool"
1600
624
  }
1601
625
  ],
1602
- "name": "updateProductSetupState",
626
+ "name": "setTargetLocked",
1603
627
  "outputs": [],
1604
628
  "stateMutability": "nonpayable",
1605
629
  "type": "function"
@@ -1607,53 +631,38 @@
1607
631
  {
1608
632
  "inputs": [
1609
633
  {
1610
- "internalType": "RiskId",
1611
- "name": "riskId",
1612
- "type": "bytes8"
1613
- },
1614
- {
1615
- "components": [
1616
- {
1617
- "internalType": "NftId",
1618
- "name": "productNftId",
1619
- "type": "uint96"
1620
- },
1621
- {
1622
- "internalType": "bytes",
1623
- "name": "data",
1624
- "type": "bytes"
1625
- }
1626
- ],
1627
- "internalType": "struct IRisk.RiskInfo",
1628
- "name": "risk",
1629
- "type": "tuple"
1630
- },
634
+ "internalType": "bytes4",
635
+ "name": "interfaceId",
636
+ "type": "bytes4"
637
+ }
638
+ ],
639
+ "name": "supportsInterface",
640
+ "outputs": [
1631
641
  {
1632
- "internalType": "StateId",
1633
- "name": "newState",
1634
- "type": "uint8"
642
+ "internalType": "bool",
643
+ "name": "",
644
+ "type": "bool"
1635
645
  }
1636
646
  ],
1637
- "name": "updateRisk",
1638
- "outputs": [],
1639
- "stateMutability": "nonpayable",
647
+ "stateMutability": "view",
1640
648
  "type": "function"
1641
649
  },
1642
650
  {
1643
651
  "inputs": [
1644
652
  {
1645
- "internalType": "RiskId",
1646
- "name": "riskId",
1647
- "type": "bytes8"
1648
- },
653
+ "internalType": "Amount",
654
+ "name": "dipAmount",
655
+ "type": "uint96"
656
+ }
657
+ ],
658
+ "name": "withdrawStakingRewardReserves",
659
+ "outputs": [
1649
660
  {
1650
- "internalType": "StateId",
1651
- "name": "newState",
1652
- "type": "uint8"
661
+ "internalType": "Amount",
662
+ "name": "newBalance",
663
+ "type": "uint96"
1653
664
  }
1654
665
  ],
1655
- "name": "updateRiskState",
1656
- "outputs": [],
1657
666
  "stateMutability": "nonpayable",
1658
667
  "type": "function"
1659
668
  }