@etherisc/gif-next 0.0.2-fbe22f0-239 → 0.0.2-fbe6493-116

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