@etherisc/gif-next 0.0.2-d48ae55-246 → 0.0.2-d53bd1e-732

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