@etherisc/gif-next 0.0.2-299fe4a-464 → 0.0.2-2a0a7d0-893

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