@etherisc/gif-next 0.0.2-f7c17b4-970 → 0.0.2-f7d1200-068

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