@etherisc/gif-next 0.0.2-fb8d07b-779 → 0.0.2-fbe22f0-239

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