@etherisc/gif-next 0.0.2-ceb30b2-601 → 0.0.2-ceed5e3-261

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