@etherisc/gif-next 0.0.2-7631288 → 0.0.2-78bf628-134

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