@etherisc/gif-next 0.0.2-d3543ee-345 → 0.0.2-d679de9-140

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. package/README.md +76 -0
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
  3. package/artifacts/contracts/components/{Component.sol/Component.json → BaseComponent.sol/BaseComponent.json} +26 -57
  4. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
  5. package/artifacts/contracts/{instance/component/IComponent.sol/IComponentContract.json → components/IBaseComponent.sol/IBaseComponent.json} +26 -57
  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/{IPool.sol/IPoolComponent.json → IProductComponent.sol/IProductComponent.json} +89 -65
  10. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  11. package/artifacts/contracts/components/Pool.sol/Pool.json +134 -75
  12. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  13. package/artifacts/contracts/components/Product.sol/Product.json +72 -113
  14. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  16. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  26. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  30. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  32. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  34. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  35. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +719 -332
  36. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +4 -0
  37. package/artifacts/contracts/instance/{component/IComponent.sol → IInstanceLinked.sol}/IInstanceLinked.json +1 -1
  38. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  39. package/artifacts/contracts/instance/Instance.sol/Instance.json +962 -531
  40. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  41. package/artifacts/contracts/instance/{component/ComponentModule.sol/ComponentModule.json → base/ComponentServiceBase.sol/ComponentServiceBase.json} +133 -132
  42. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  43. package/artifacts/contracts/instance/{product/ProductService.sol/ProductModule.json → base/IInstanceBase.sol/IInstanceBase.json} +18 -30
  44. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  45. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +511 -0
  46. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  47. package/artifacts/contracts/instance/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  48. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
  49. package/artifacts/contracts/instance/base/IService.sol/IService.json +300 -0
  50. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  51. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +326 -0
  52. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  53. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +692 -0
  54. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  55. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  56. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
  57. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.json +10 -0
  58. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
  59. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +300 -0
  60. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +4 -0
  61. package/artifacts/contracts/instance/{access → module/access}/Access.sol/AccessModule.json +85 -152
  62. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +4 -0
  63. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccess.json +1 -1
  64. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +4 -0
  65. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccessModule.json +96 -99
  66. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +4 -0
  67. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +296 -0
  68. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +4 -0
  69. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.json +10 -0
  70. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +4 -0
  71. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +296 -0
  72. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +4 -0
  73. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +10 -0
  74. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +4 -0
  75. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +10 -0
  76. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +4 -0
  77. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +10 -0
  78. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
  79. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +188 -0
  80. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +4 -0
  81. package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponent.json +1 -1
  82. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +4 -0
  83. package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponentModule.json +33 -62
  84. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
  85. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicy.json +1 -1
  86. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
  87. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicyModule.json +132 -125
  88. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
  89. package/artifacts/contracts/instance/{policy → module/policy}/PolicyModule.sol/PolicyModule.json +132 -125
  90. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +4 -0
  91. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPool.json +1 -1
  92. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
  93. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPoolModule.json +67 -47
  94. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
  95. package/artifacts/contracts/instance/{pool → module/pool}/PoolModule.sol/PoolModule.json +51 -57
  96. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +4 -0
  97. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.json +10 -0
  98. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +4 -0
  99. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +10 -0
  100. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
  101. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +10 -0
  102. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
  103. package/artifacts/contracts/instance/{treasury → module/treasury}/ITreasury.sol/ITreasury.json +1 -1
  104. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
  105. package/artifacts/contracts/instance/{treasury → module/treasury}/ITreasury.sol/ITreasuryModule.json +100 -57
  106. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  107. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +76 -0
  108. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
  109. package/artifacts/contracts/instance/{treasury → module/treasury}/TreasuryModule.sol/TreasuryModule.json +100 -57
  110. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +491 -0
  112. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +364 -0
  114. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  115. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +376 -0
  116. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  117. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +477 -0
  118. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  119. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +471 -0
  120. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  121. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +673 -0
  122. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  123. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +65 -2
  124. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  125. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  126. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +147 -30
  127. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  128. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +24 -0
  129. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  130. package/artifacts/contracts/registry/Registry.sol/Registry.json +241 -25
  131. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  132. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  133. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +4 -0
  134. package/artifacts/contracts/{registry/IRegistry.sol → shared/IOwnable.sol}/IOwnable.json +1 -1
  135. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  136. package/artifacts/contracts/{registry/IRegistry.sol → shared/IRegisterable.sol}/IRegisterable.json +16 -61
  137. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  138. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +164 -0
  139. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  140. package/artifacts/contracts/{registry/Registry.sol → shared/Registerable.sol}/Registerable.json +16 -61
  141. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  142. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +164 -0
  143. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  144. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  145. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +4 -0
  146. package/artifacts/contracts/test/TestPool.sol/TestPool.json +387 -0
  147. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
  148. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +393 -0
  149. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  150. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +137 -0
  151. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  152. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +82 -0
  153. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  154. package/artifacts/contracts/test/TestService.sol/TestService.json +379 -0
  155. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  156. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +338 -0
  157. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  158. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  159. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  160. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +206 -0
  161. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  162. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  163. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  166. package/artifacts/contracts/types/Fee.sol/FeeLib.json +218 -0
  167. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  168. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
  169. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  171. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  172. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
  173. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  175. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  177. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +64 -2
  179. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +88 -62
  181. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  182. package/artifacts/contracts/types/Version.sol/VersionLib.json +139 -0
  183. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  184. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +30 -0
  185. package/contracts/components/BaseComponent.sol +88 -0
  186. package/contracts/components/IBaseComponent.sol +19 -0
  187. package/contracts/components/IPoolComponent.sol +57 -0
  188. package/contracts/components/{IProduct.sol → IProductComponent.sol} +9 -6
  189. package/contracts/components/Pool.sol +140 -18
  190. package/contracts/components/Product.sol +53 -25
  191. package/contracts/instance/IInstance.sol +38 -11
  192. package/contracts/instance/IInstanceLinked.sol +8 -0
  193. package/contracts/instance/Instance.sol +44 -48
  194. package/contracts/instance/base/ComponentServiceBase.sol +42 -0
  195. package/contracts/instance/base/IInstanceBase.sol +14 -0
  196. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  197. package/contracts/instance/{lifecycle → base}/ILifecycle.sol +4 -21
  198. package/contracts/instance/base/IService.sol +15 -0
  199. package/contracts/instance/base/InstanceBase.sol +80 -0
  200. package/contracts/instance/base/KeyValueStore.sol +156 -0
  201. package/contracts/instance/{lifecycle/LifecycleModule.sol → base/Lifecycle.sol} +36 -29
  202. package/contracts/instance/base/ModuleBase.sol +52 -0
  203. package/contracts/instance/base/ServiceBase.sol +37 -0
  204. package/contracts/instance/module/access/Access.sol +149 -0
  205. package/contracts/instance/module/access/IAccess.sol +53 -0
  206. package/contracts/instance/module/bundle/BundleModule.sol +136 -0
  207. package/contracts/instance/module/bundle/IBundle.sol +58 -0
  208. package/contracts/instance/module/compensation/CompensationModule.sol +8 -0
  209. package/contracts/instance/module/compensation/ICompensation.sol +10 -0
  210. package/contracts/instance/module/component/ComponentModule.sol +95 -0
  211. package/contracts/instance/module/component/IComponent.sol +53 -0
  212. package/contracts/instance/module/policy/IPolicy.sol +60 -0
  213. package/contracts/instance/module/policy/PolicyModule.sol +76 -0
  214. package/contracts/instance/module/pool/IPoolModule.sol +41 -0
  215. package/contracts/instance/module/pool/PoolModule.sol +87 -0
  216. package/contracts/instance/module/risk/IRisk.sol +10 -0
  217. package/contracts/instance/module/risk/RiskModule.sol +8 -0
  218. package/contracts/instance/{treasury → module/treasury}/ITreasury.sol +27 -15
  219. package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
  220. package/contracts/instance/{treasury → module/treasury}/TreasuryModule.sol +43 -59
  221. package/contracts/instance/service/ComponentOwnerService.sol +170 -0
  222. package/contracts/instance/service/IComponentOwnerService.sol +22 -0
  223. package/contracts/instance/service/IPoolService.sol +30 -0
  224. package/contracts/instance/service/IProductService.sol +58 -0
  225. package/contracts/instance/service/PoolService.sol +123 -0
  226. package/contracts/instance/service/ProductService.sol +354 -0
  227. package/contracts/registry/ChainNft.sol +61 -37
  228. package/contracts/registry/IRegistry.sol +24 -34
  229. package/contracts/registry/IRegistryLinked.sol +8 -0
  230. package/contracts/registry/Registry.sol +284 -85
  231. package/contracts/shared/ERC165.sol +21 -0
  232. package/contracts/shared/IOwnable.sol +6 -0
  233. package/contracts/shared/IRegisterable.sol +24 -0
  234. package/contracts/shared/IVersionable.sol +52 -0
  235. package/contracts/shared/Registerable.sol +86 -0
  236. package/contracts/shared/Versionable.sol +89 -0
  237. package/contracts/test/TestFee.sol +25 -0
  238. package/contracts/test/TestPool.sol +22 -0
  239. package/contracts/test/TestProduct.sol +44 -0
  240. package/contracts/test/TestRegisterable.sol +19 -0
  241. package/contracts/test/TestRoleId.sol +14 -0
  242. package/contracts/test/TestService.sol +32 -0
  243. package/contracts/test/TestToken.sol +26 -0
  244. package/contracts/test/TestVersion.sol +44 -0
  245. package/contracts/test/TestVersionable.sol +17 -0
  246. package/contracts/types/AddressSet.sol +58 -0
  247. package/contracts/types/Fee.sol +39 -20
  248. package/contracts/types/Key32.sol +45 -0
  249. package/contracts/types/NftId.sol +22 -1
  250. package/contracts/types/NftIdSet.sol +60 -0
  251. package/contracts/types/ObjectType.sol +22 -14
  252. package/contracts/types/RoleId.sol +36 -0
  253. package/contracts/types/StateId.sol +13 -3
  254. package/contracts/types/Timestamp.sol +22 -1
  255. package/contracts/types/UFixed.sol +29 -25
  256. package/contracts/types/Version.sol +95 -0
  257. package/package.json +8 -3
  258. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  259. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  260. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  261. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  262. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  263. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
  264. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  265. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  266. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  267. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  268. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  269. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  270. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  271. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  272. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  273. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -202
  274. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  275. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  276. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  277. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  278. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
  279. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  280. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  281. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  282. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  283. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  284. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  285. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  286. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  287. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  288. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  289. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  290. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  291. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  292. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  293. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  294. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -127
  295. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  296. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  297. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -196
  298. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  299. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  300. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  301. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
  302. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  303. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  304. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  305. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  306. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  307. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  308. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  309. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  310. package/contracts/components/Component.sol +0 -77
  311. package/contracts/components/IPool.sol +0 -15
  312. package/contracts/instance/access/Access.sol +0 -165
  313. package/contracts/instance/access/IAccess.sol +0 -63
  314. package/contracts/instance/component/ComponentModule.sol +0 -274
  315. package/contracts/instance/component/IComponent.sol +0 -74
  316. package/contracts/instance/policy/IPolicy.sol +0 -50
  317. package/contracts/instance/policy/PolicyModule.sol +0 -114
  318. package/contracts/instance/pool/IPoolModule.sol +0 -23
  319. package/contracts/instance/pool/PoolModule.sol +0 -81
  320. package/contracts/instance/product/IProductService.sol +0 -36
  321. package/contracts/instance/product/ProductService.sol +0 -136
  322. package/contracts/instance/treasury/TokenHandler.sol +0 -24
@@ -3,71 +3,23 @@
3
3
  "contractName": "IInstance",
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
5
  "abi": [
6
- {
7
- "inputs": [
8
- {
9
- "internalType": "NftId",
10
- "name": "nftId",
11
- "type": "uint96"
12
- },
13
- {
14
- "internalType": "ObjectType",
15
- "name": "objectType",
16
- "type": "uint8"
17
- },
18
- {
19
- "internalType": "StateId",
20
- "name": "fromStateId",
21
- "type": "uint8"
22
- },
23
- {
24
- "internalType": "StateId",
25
- "name": "toStateId",
26
- "type": "uint8"
27
- }
28
- ],
29
- "name": "ErrorInvalidStateTransition",
30
- "type": "error"
31
- },
32
- {
33
- "inputs": [
34
- {
35
- "internalType": "NftId",
36
- "name": "nftId",
37
- "type": "uint96"
38
- },
39
- {
40
- "internalType": "ObjectType",
41
- "name": "objectType",
42
- "type": "uint8"
43
- }
44
- ],
45
- "name": "ErrorNoLifecycle",
46
- "type": "error"
47
- },
48
6
  {
49
7
  "anonymous": false,
50
8
  "inputs": [
51
9
  {
52
10
  "indexed": false,
53
- "internalType": "NftId",
54
- "name": "nftId",
55
- "type": "uint96"
56
- },
57
- {
58
- "indexed": false,
59
- "internalType": "StateId",
60
- "name": "fromStateId",
61
- "type": "uint8"
11
+ "internalType": "RoleId",
12
+ "name": "role",
13
+ "type": "bytes8"
62
14
  },
63
15
  {
64
16
  "indexed": false,
65
- "internalType": "StateId",
66
- "name": "toStateId",
67
- "type": "uint8"
17
+ "internalType": "string",
18
+ "name": "roleName",
19
+ "type": "string"
68
20
  }
69
21
  ],
70
- "name": "LogBundleStateChanged",
22
+ "name": "LogAccessRoleCreated",
71
23
  "type": "event"
72
24
  },
73
25
  {
@@ -75,30 +27,24 @@
75
27
  "inputs": [
76
28
  {
77
29
  "indexed": false,
78
- "internalType": "NftId",
79
- "name": "nftId",
80
- "type": "uint96"
81
- },
82
- {
83
- "indexed": false,
84
- "internalType": "ObjectType",
85
- "name": "objectType",
86
- "type": "uint8"
30
+ "internalType": "RoleId",
31
+ "name": "role",
32
+ "type": "bytes8"
87
33
  },
88
34
  {
89
35
  "indexed": false,
90
- "internalType": "StateId",
91
- "name": "fromStateId",
92
- "type": "uint8"
36
+ "internalType": "address",
37
+ "name": "member",
38
+ "type": "address"
93
39
  },
94
40
  {
95
41
  "indexed": false,
96
- "internalType": "StateId",
97
- "name": "toStateId",
98
- "type": "uint8"
42
+ "internalType": "bool",
43
+ "name": "isMember",
44
+ "type": "bool"
99
45
  }
100
46
  ],
101
- "name": "LogComponentStateChanged",
47
+ "name": "LogAccessRoleGranted",
102
48
  "type": "event"
103
49
  },
104
50
  {
@@ -106,24 +52,18 @@
106
52
  "inputs": [
107
53
  {
108
54
  "indexed": false,
109
- "internalType": "uint256",
110
- "name": "idx",
111
- "type": "uint256"
112
- },
113
- {
114
- "indexed": false,
115
- "internalType": "address",
116
- "name": "module",
117
- "type": "address"
55
+ "internalType": "RoleId",
56
+ "name": "role",
57
+ "type": "bytes8"
118
58
  },
119
59
  {
120
60
  "indexed": false,
121
- "internalType": "string",
122
- "name": "comment",
123
- "type": "string"
61
+ "internalType": "bool",
62
+ "name": "active",
63
+ "type": "bool"
124
64
  }
125
65
  ],
126
- "name": "LogDebug",
66
+ "name": "LogAccessRoleStateSet",
127
67
  "type": "event"
128
68
  },
129
69
  {
@@ -131,74 +71,63 @@
131
71
  "inputs": [
132
72
  {
133
73
  "indexed": false,
134
- "internalType": "NftId",
135
- "name": "nftId",
136
- "type": "uint96"
74
+ "internalType": "Version",
75
+ "name": "version",
76
+ "type": "uint24"
137
77
  },
138
78
  {
139
79
  "indexed": false,
140
- "internalType": "StateId",
141
- "name": "fromStateId",
142
- "type": "uint8"
80
+ "internalType": "address",
81
+ "name": "implementation",
82
+ "type": "address"
143
83
  },
144
84
  {
145
85
  "indexed": false,
146
- "internalType": "StateId",
147
- "name": "toStateId",
148
- "type": "uint8"
86
+ "internalType": "address",
87
+ "name": "activatedBy",
88
+ "type": "address"
149
89
  }
150
90
  ],
151
- "name": "LogPolicyStateChanged",
91
+ "name": "LogVersionableActivated",
152
92
  "type": "event"
153
93
  },
154
94
  {
155
- "inputs": [],
156
- "name": "ORACLE_OWNER_ROLE",
157
- "outputs": [
158
- {
159
- "internalType": "bytes32",
160
- "name": "role",
161
- "type": "bytes32"
162
- }
163
- ],
164
- "stateMutability": "view",
165
- "type": "function"
166
- },
167
- {
168
- "inputs": [],
169
- "name": "POOL_OWNER_ROLE",
170
- "outputs": [
95
+ "inputs": [
171
96
  {
172
- "internalType": "bytes32",
173
- "name": "role",
174
- "type": "bytes32"
175
- }
176
- ],
177
- "stateMutability": "view",
178
- "type": "function"
179
- },
180
- {
181
- "inputs": [],
182
- "name": "PRODUCT_OWNER_ROLE",
183
- "outputs": [
97
+ "internalType": "address",
98
+ "name": "implementation",
99
+ "type": "address"
100
+ },
184
101
  {
185
- "internalType": "bytes32",
186
- "name": "role",
187
- "type": "bytes32"
102
+ "internalType": "address",
103
+ "name": "activatedBy",
104
+ "type": "address"
188
105
  }
189
106
  ],
190
- "stateMutability": "view",
107
+ "name": "activate",
108
+ "outputs": [],
109
+ "stateMutability": "nonpayable",
191
110
  "type": "function"
192
111
  },
193
112
  {
194
113
  "inputs": [
195
114
  {
196
115
  "internalType": "NftId",
197
- "name": "nftId",
116
+ "name": "bundleNftId",
198
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"
199
128
  }
200
129
  ],
201
- "name": "activate",
130
+ "name": "addBundleToPool",
202
131
  "outputs": [],
203
132
  "stateMutability": "nonpayable",
204
133
  "type": "function"
@@ -245,56 +174,39 @@
245
174
  "type": "function"
246
175
  },
247
176
  {
248
- "inputs": [],
249
- "name": "components",
250
- "outputs": [
177
+ "inputs": [
178
+ {
179
+ "internalType": "NftId",
180
+ "name": "bundleNftId",
181
+ "type": "uint96"
182
+ },
183
+ {
184
+ "internalType": "NftId",
185
+ "name": "policyNftId",
186
+ "type": "uint96"
187
+ },
251
188
  {
252
189
  "internalType": "uint256",
253
- "name": "numberOfCompnents",
190
+ "name": "amount",
254
191
  "type": "uint256"
255
192
  }
256
193
  ],
257
- "stateMutability": "view",
194
+ "name": "collateralizePolicy",
195
+ "outputs": [],
196
+ "stateMutability": "nonpayable",
258
197
  "type": "function"
259
198
  },
260
199
  {
261
200
  "inputs": [
262
201
  {
263
- "components": [
264
- {
265
- "internalType": "NftId",
266
- "name": "nftId",
267
- "type": "uint96"
268
- },
269
- {
270
- "internalType": "NftId",
271
- "name": "parentNftId",
272
- "type": "uint96"
273
- },
274
- {
275
- "internalType": "ObjectType",
276
- "name": "objectType",
277
- "type": "uint8"
278
- },
279
- {
280
- "internalType": "address",
281
- "name": "objectAddress",
282
- "type": "address"
283
- },
284
- {
285
- "internalType": "address",
286
- "name": "initialOwner",
287
- "type": "address"
288
- }
289
- ],
290
- "internalType": "struct IRegistry.RegistryInfo",
291
- "name": "productInfo",
292
- "type": "tuple"
202
+ "internalType": "NftId",
203
+ "name": "productNftId",
204
+ "type": "uint96"
293
205
  },
294
206
  {
295
- "internalType": "address",
296
- "name": "applicationOwner",
297
- "type": "address"
207
+ "internalType": "NftId",
208
+ "name": "policyNftId",
209
+ "type": "uint96"
298
210
  },
299
211
  {
300
212
  "internalType": "uint256",
@@ -318,13 +230,40 @@
318
230
  }
319
231
  ],
320
232
  "name": "createApplication",
321
- "outputs": [
233
+ "outputs": [],
234
+ "stateMutability": "nonpayable",
235
+ "type": "function"
236
+ },
237
+ {
238
+ "inputs": [
322
239
  {
323
240
  "internalType": "NftId",
324
- "name": "nftId",
241
+ "name": "bundleNftId",
325
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"
326
263
  }
327
264
  ],
265
+ "name": "createBundleInfo",
266
+ "outputs": [],
328
267
  "stateMutability": "nonpayable",
329
268
  "type": "function"
330
269
  },
@@ -339,9 +278,9 @@
339
278
  "name": "createRole",
340
279
  "outputs": [
341
280
  {
342
- "internalType": "bytes32",
281
+ "internalType": "RoleId",
343
282
  "name": "role",
344
- "type": "bytes32"
283
+ "type": "bytes8"
345
284
  }
346
285
  ],
347
286
  "stateMutability": "nonpayable",
@@ -350,42 +289,101 @@
350
289
  {
351
290
  "inputs": [
352
291
  {
353
- "internalType": "bytes32",
354
- "name": "role",
355
- "type": "bytes32"
292
+ "internalType": "NftId",
293
+ "name": "poolNftId",
294
+ "type": "uint96"
356
295
  }
357
296
  ],
358
- "name": "disableRole",
359
- "outputs": [],
360
- "stateMutability": "nonpayable",
297
+ "name": "getBundleCount",
298
+ "outputs": [
299
+ {
300
+ "internalType": "uint256",
301
+ "name": "bundleCount",
302
+ "type": "uint256"
303
+ }
304
+ ],
305
+ "stateMutability": "view",
361
306
  "type": "function"
362
307
  },
363
308
  {
364
309
  "inputs": [
365
310
  {
366
- "internalType": "bytes32",
367
- "name": "role",
368
- "type": "bytes32"
311
+ "internalType": "NftId",
312
+ "name": "bundleNftId",
313
+ "type": "uint96"
369
314
  }
370
315
  ],
371
- "name": "enableRole",
372
- "outputs": [],
373
- "stateMutability": "nonpayable",
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",
374
367
  "type": "function"
375
368
  },
376
369
  {
377
370
  "inputs": [
378
371
  {
379
372
  "internalType": "NftId",
380
- "name": "nftId",
373
+ "name": "poolNftId",
381
374
  "type": "uint96"
375
+ },
376
+ {
377
+ "internalType": "uint256",
378
+ "name": "index",
379
+ "type": "uint256"
382
380
  }
383
381
  ],
384
- "name": "getBundleNftForPolicy",
382
+ "name": "getBundleNftId",
385
383
  "outputs": [
386
384
  {
387
385
  "internalType": "NftId",
388
- "name": "bundleNft",
386
+ "name": "bundleNftId",
389
387
  "type": "uint96"
390
388
  }
391
389
  ],
@@ -393,19 +391,13 @@
393
391
  "type": "function"
394
392
  },
395
393
  {
396
- "inputs": [
397
- {
398
- "internalType": "address",
399
- "name": "componentAddress",
400
- "type": "address"
401
- }
402
- ],
403
- "name": "getComponentId",
394
+ "inputs": [],
395
+ "name": "getComponentCount",
404
396
  "outputs": [
405
397
  {
406
- "internalType": "NftId",
407
- "name": "nftId",
408
- "type": "uint96"
398
+ "internalType": "uint256",
399
+ "name": "numberOfCompnents",
400
+ "type": "uint256"
409
401
  }
410
402
  ],
411
403
  "stateMutability": "view",
@@ -493,32 +485,49 @@
493
485
  "type": "function"
494
486
  },
495
487
  {
496
- "inputs": [],
497
- "name": "getInitialOwner",
488
+ "inputs": [
489
+ {
490
+ "internalType": "UFixed",
491
+ "name": "fractionalFee",
492
+ "type": "uint256"
493
+ },
494
+ {
495
+ "internalType": "uint256",
496
+ "name": "fixedFee",
497
+ "type": "uint256"
498
+ }
499
+ ],
500
+ "name": "getFee",
498
501
  "outputs": [
499
502
  {
500
- "internalType": "address",
501
- "name": "initialOwner",
502
- "type": "address"
503
+ "components": [
504
+ {
505
+ "internalType": "UFixed",
506
+ "name": "fractionalFee",
507
+ "type": "uint256"
508
+ },
509
+ {
510
+ "internalType": "uint256",
511
+ "name": "fixedFee",
512
+ "type": "uint256"
513
+ }
514
+ ],
515
+ "internalType": "struct Fee",
516
+ "name": "fee",
517
+ "type": "tuple"
503
518
  }
504
519
  ],
505
- "stateMutability": "view",
520
+ "stateMutability": "pure",
506
521
  "type": "function"
507
522
  },
508
523
  {
509
- "inputs": [
510
- {
511
- "internalType": "ObjectType",
512
- "name": "objectType",
513
- "type": "uint8"
514
- }
515
- ],
516
- "name": "getInitialState",
524
+ "inputs": [],
525
+ "name": "getKeyValueStore",
517
526
  "outputs": [
518
527
  {
519
- "internalType": "StateId",
520
- "name": "",
521
- "type": "uint8"
528
+ "internalType": "contract IKeyValueStore",
529
+ "name": "keyValueStore",
530
+ "type": "address"
522
531
  }
523
532
  ],
524
533
  "stateMutability": "view",
@@ -556,7 +565,7 @@
556
565
  "outputs": [
557
566
  {
558
567
  "internalType": "NftId",
559
- "name": "parentNftId",
568
+ "name": "nftId",
560
569
  "type": "uint96"
561
570
  }
562
571
  ],
@@ -580,6 +589,21 @@
580
589
  "name": "nftId",
581
590
  "type": "uint96"
582
591
  },
592
+ {
593
+ "internalType": "NftId",
594
+ "name": "productNftId",
595
+ "type": "uint96"
596
+ },
597
+ {
598
+ "internalType": "NftId",
599
+ "name": "bundleNftId",
600
+ "type": "uint96"
601
+ },
602
+ {
603
+ "internalType": "address",
604
+ "name": "beneficiary",
605
+ "type": "address"
606
+ },
583
607
  {
584
608
  "internalType": "StateId",
585
609
  "name": "state",
@@ -606,29 +630,34 @@
606
630
  "type": "uint256"
607
631
  },
608
632
  {
609
- "internalType": "uint256",
610
- "name": "createdAt",
611
- "type": "uint256"
633
+ "internalType": "bytes",
634
+ "name": "data",
635
+ "type": "bytes"
612
636
  },
613
637
  {
614
- "internalType": "uint256",
615
- "name": "updatedAt",
616
- "type": "uint256"
638
+ "internalType": "Timestamp",
639
+ "name": "createdAt",
640
+ "type": "uint40"
617
641
  },
618
642
  {
619
- "internalType": "uint256",
643
+ "internalType": "Timestamp",
620
644
  "name": "activatedAt",
621
- "type": "uint256"
645
+ "type": "uint40"
622
646
  },
623
647
  {
624
- "internalType": "uint256",
648
+ "internalType": "Timestamp",
625
649
  "name": "expiredAt",
626
- "type": "uint256"
650
+ "type": "uint40"
627
651
  },
628
652
  {
629
- "internalType": "uint256",
653
+ "internalType": "Timestamp",
630
654
  "name": "closedAt",
631
- "type": "uint256"
655
+ "type": "uint40"
656
+ },
657
+ {
658
+ "internalType": "Blocknumber",
659
+ "name": "updatedIn",
660
+ "type": "uint32"
632
661
  }
633
662
  ],
634
663
  "internalType": "struct IPolicy.PolicyInfo",
@@ -657,13 +686,13 @@
657
686
  "type": "uint96"
658
687
  },
659
688
  {
660
- "internalType": "uint256",
661
- "name": "capital",
662
- "type": "uint256"
689
+ "internalType": "bool",
690
+ "name": "isVerifying",
691
+ "type": "bool"
663
692
  },
664
693
  {
665
- "internalType": "uint256",
666
- "name": "lockedCapital",
694
+ "internalType": "UFixed",
695
+ "name": "collateralizationLevel",
667
696
  "type": "uint256"
668
697
  }
669
698
  ],
@@ -675,6 +704,19 @@
675
704
  "stateMutability": "view",
676
705
  "type": "function"
677
706
  },
707
+ {
708
+ "inputs": [],
709
+ "name": "getPoolService",
710
+ "outputs": [
711
+ {
712
+ "internalType": "contract IPoolService",
713
+ "name": "",
714
+ "type": "address"
715
+ }
716
+ ],
717
+ "stateMutability": "view",
718
+ "type": "function"
719
+ },
678
720
  {
679
721
  "inputs": [
680
722
  {
@@ -732,7 +774,7 @@
732
774
  "type": "tuple"
733
775
  }
734
776
  ],
735
- "internalType": "struct ITreasuryModule.PoolSetup",
777
+ "internalType": "struct ITreasury.PoolSetup",
736
778
  "name": "setup",
737
779
  "type": "tuple"
738
780
  }
@@ -781,15 +823,10 @@
781
823
  "type": "uint96"
782
824
  },
783
825
  {
784
- "internalType": "contract IERC20",
826
+ "internalType": "contract IERC20Metadata",
785
827
  "name": "token",
786
828
  "type": "address"
787
829
  },
788
- {
789
- "internalType": "contract TokenHandler",
790
- "name": "tokenHandler",
791
- "type": "address"
792
- },
793
830
  {
794
831
  "internalType": "address",
795
832
  "name": "wallet",
@@ -830,7 +867,7 @@
830
867
  "type": "tuple"
831
868
  }
832
869
  ],
833
- "internalType": "struct ITreasuryModule.ProductSetup",
870
+ "internalType": "struct ITreasury.ProductSetup",
834
871
  "name": "setup",
835
872
  "type": "tuple"
836
873
  }
@@ -862,9 +899,9 @@
862
899
  "name": "getRole",
863
900
  "outputs": [
864
901
  {
865
- "internalType": "bytes32",
902
+ "internalType": "RoleId",
866
903
  "name": "role",
867
- "type": "bytes32"
904
+ "type": "bytes8"
868
905
  }
869
906
  ],
870
907
  "stateMutability": "view",
@@ -891,12 +928,12 @@
891
928
  "type": "string"
892
929
  }
893
930
  ],
894
- "name": "getRoleForName",
931
+ "name": "getRoleId",
895
932
  "outputs": [
896
933
  {
897
- "internalType": "bytes32",
934
+ "internalType": "RoleId",
898
935
  "name": "role",
899
- "type": "bytes32"
936
+ "type": "bytes8"
900
937
  }
901
938
  ],
902
939
  "stateMutability": "pure",
@@ -905,9 +942,9 @@
905
942
  {
906
943
  "inputs": [
907
944
  {
908
- "internalType": "bytes32",
945
+ "internalType": "RoleId",
909
946
  "name": "role",
910
- "type": "bytes32"
947
+ "type": "bytes8"
911
948
  }
912
949
  ],
913
950
  "name": "getRoleInfo",
@@ -915,9 +952,9 @@
915
952
  {
916
953
  "components": [
917
954
  {
918
- "internalType": "bytes32",
955
+ "internalType": "RoleId",
919
956
  "name": "id",
920
- "type": "bytes32"
957
+ "type": "bytes8"
921
958
  },
922
959
  {
923
960
  "internalType": "string",
@@ -941,9 +978,9 @@
941
978
  {
942
979
  "inputs": [
943
980
  {
944
- "internalType": "bytes32",
981
+ "internalType": "RoleId",
945
982
  "name": "role",
946
- "type": "bytes32"
983
+ "type": "bytes8"
947
984
  },
948
985
  {
949
986
  "internalType": "uint256",
@@ -955,7 +992,7 @@
955
992
  "outputs": [
956
993
  {
957
994
  "internalType": "address",
958
- "name": "roleMembers",
995
+ "name": "roleMember",
959
996
  "type": "address"
960
997
  }
961
998
  ],
@@ -965,9 +1002,9 @@
965
1002
  {
966
1003
  "inputs": [
967
1004
  {
968
- "internalType": "bytes32",
1005
+ "internalType": "RoleId",
969
1006
  "name": "role",
970
- "type": "bytes32"
1007
+ "type": "bytes8"
971
1008
  }
972
1009
  ],
973
1010
  "name": "getRoleMemberCount",
@@ -985,7 +1022,7 @@
985
1022
  "inputs": [
986
1023
  {
987
1024
  "internalType": "NftId",
988
- "name": "productNftId",
1025
+ "name": "componentNftId",
989
1026
  "type": "uint96"
990
1027
  }
991
1028
  ],
@@ -1010,72 +1047,92 @@
1010
1047
  "type": "uint8"
1011
1048
  }
1012
1049
  ],
1013
- "stateMutability": "view",
1050
+ "stateMutability": "pure",
1014
1051
  "type": "function"
1015
1052
  },
1016
1053
  {
1017
1054
  "inputs": [
1018
1055
  {
1019
- "internalType": "bytes32",
1020
- "name": "role",
1021
- "type": "bytes32"
1056
+ "internalType": "uint256",
1057
+ "name": "a",
1058
+ "type": "uint256"
1022
1059
  },
1023
1060
  {
1024
- "internalType": "address",
1025
- "name": "member",
1026
- "type": "address"
1061
+ "internalType": "int8",
1062
+ "name": "exp",
1063
+ "type": "int8"
1027
1064
  }
1028
1065
  ],
1029
- "name": "grantRole",
1030
- "outputs": [],
1031
- "stateMutability": "nonpayable",
1066
+ "name": "getUFixed",
1067
+ "outputs": [
1068
+ {
1069
+ "internalType": "UFixed",
1070
+ "name": "",
1071
+ "type": "uint256"
1072
+ }
1073
+ ],
1074
+ "stateMutability": "pure",
1032
1075
  "type": "function"
1033
1076
  },
1034
1077
  {
1035
1078
  "inputs": [
1036
1079
  {
1037
- "internalType": "bytes32",
1038
- "name": "role",
1039
- "type": "bytes32"
1040
- },
1041
- {
1042
- "internalType": "address",
1043
- "name": "member",
1044
- "type": "address"
1080
+ "internalType": "uint256",
1081
+ "name": "a",
1082
+ "type": "uint256"
1045
1083
  }
1046
1084
  ],
1047
- "name": "hasRole",
1085
+ "name": "getUFixed",
1048
1086
  "outputs": [
1049
1087
  {
1050
- "internalType": "bool",
1088
+ "internalType": "UFixed",
1051
1089
  "name": "",
1052
- "type": "bool"
1090
+ "type": "uint256"
1053
1091
  }
1054
1092
  ],
1055
- "stateMutability": "view",
1093
+ "stateMutability": "pure",
1056
1094
  "type": "function"
1057
1095
  },
1058
1096
  {
1059
1097
  "inputs": [],
1060
- "name": "isRegisterable",
1098
+ "name": "getVersion",
1061
1099
  "outputs": [
1062
1100
  {
1063
- "internalType": "bool",
1101
+ "internalType": "Version",
1064
1102
  "name": "",
1065
- "type": "bool"
1103
+ "type": "uint24"
1066
1104
  }
1067
1105
  ],
1068
1106
  "stateMutability": "pure",
1069
1107
  "type": "function"
1070
1108
  },
1109
+ {
1110
+ "inputs": [
1111
+ {
1112
+ "internalType": "uint256",
1113
+ "name": "index",
1114
+ "type": "uint256"
1115
+ }
1116
+ ],
1117
+ "name": "getVersion",
1118
+ "outputs": [
1119
+ {
1120
+ "internalType": "Version",
1121
+ "name": "version",
1122
+ "type": "uint24"
1123
+ }
1124
+ ],
1125
+ "stateMutability": "view",
1126
+ "type": "function"
1127
+ },
1071
1128
  {
1072
1129
  "inputs": [],
1073
- "name": "isRegistered",
1130
+ "name": "getVersionCount",
1074
1131
  "outputs": [
1075
1132
  {
1076
- "internalType": "bool",
1077
- "name": "",
1078
- "type": "bool"
1133
+ "internalType": "uint256",
1134
+ "name": "numberOfVersions",
1135
+ "type": "uint256"
1079
1136
  }
1080
1137
  ],
1081
1138
  "stateMutability": "view",
@@ -1084,85 +1141,138 @@
1084
1141
  {
1085
1142
  "inputs": [
1086
1143
  {
1087
- "internalType": "ObjectType",
1088
- "name": "objectType",
1089
- "type": "uint8"
1090
- },
1091
- {
1092
- "internalType": "StateId",
1093
- "name": "fromId",
1094
- "type": "uint8"
1095
- },
1096
- {
1097
- "internalType": "StateId",
1098
- "name": "toId",
1099
- "type": "uint8"
1144
+ "internalType": "Version",
1145
+ "name": "version",
1146
+ "type": "uint24"
1100
1147
  }
1101
1148
  ],
1102
- "name": "isValidTransition",
1149
+ "name": "getVersionInfo",
1103
1150
  "outputs": [
1104
1151
  {
1105
- "internalType": "bool",
1106
- "name": "",
1107
- "type": "bool"
1152
+ "components": [
1153
+ {
1154
+ "internalType": "Version",
1155
+ "name": "version",
1156
+ "type": "uint24"
1157
+ },
1158
+ {
1159
+ "internalType": "address",
1160
+ "name": "implementation",
1161
+ "type": "address"
1162
+ },
1163
+ {
1164
+ "internalType": "address",
1165
+ "name": "activatedBy",
1166
+ "type": "address"
1167
+ },
1168
+ {
1169
+ "internalType": "Timestamp",
1170
+ "name": "activatedAt",
1171
+ "type": "uint40"
1172
+ },
1173
+ {
1174
+ "internalType": "Blocknumber",
1175
+ "name": "activatedIn",
1176
+ "type": "uint32"
1177
+ }
1178
+ ],
1179
+ "internalType": "struct IVersionable.VersionInfo",
1180
+ "name": "versionInfo",
1181
+ "type": "tuple"
1108
1182
  }
1109
1183
  ],
1110
1184
  "stateMutability": "view",
1111
1185
  "type": "function"
1112
1186
  },
1113
1187
  {
1114
- "inputs": [
1188
+ "inputs": [],
1189
+ "name": "getZeroFee",
1190
+ "outputs": [
1115
1191
  {
1116
- "internalType": "NftId",
1117
- "name": "nftId",
1118
- "type": "uint96"
1192
+ "components": [
1193
+ {
1194
+ "internalType": "UFixed",
1195
+ "name": "fractionalFee",
1196
+ "type": "uint256"
1197
+ },
1198
+ {
1199
+ "internalType": "uint256",
1200
+ "name": "fixedFee",
1201
+ "type": "uint256"
1202
+ }
1203
+ ],
1204
+ "internalType": "struct Fee",
1205
+ "name": "fee",
1206
+ "type": "tuple"
1119
1207
  }
1120
1208
  ],
1121
- "name": "processPremium",
1122
- "outputs": [],
1123
- "stateMutability": "nonpayable",
1209
+ "stateMutability": "pure",
1124
1210
  "type": "function"
1125
1211
  },
1126
1212
  {
1127
1213
  "inputs": [
1128
1214
  {
1129
- "internalType": "NftId",
1130
- "name": "policyNftId",
1131
- "type": "uint96"
1215
+ "internalType": "RoleId",
1216
+ "name": "role",
1217
+ "type": "bytes8"
1132
1218
  },
1133
1219
  {
1134
- "internalType": "NftId",
1135
- "name": "productNftId",
1136
- "type": "uint96"
1220
+ "internalType": "address",
1221
+ "name": "member",
1222
+ "type": "address"
1137
1223
  }
1138
1224
  ],
1139
- "name": "processPremium",
1225
+ "name": "grantRole",
1140
1226
  "outputs": [],
1141
1227
  "stateMutability": "nonpayable",
1142
1228
  "type": "function"
1143
1229
  },
1144
1230
  {
1145
- "inputs": [],
1146
- "name": "register",
1231
+ "inputs": [
1232
+ {
1233
+ "internalType": "RoleId",
1234
+ "name": "role",
1235
+ "type": "bytes8"
1236
+ },
1237
+ {
1238
+ "internalType": "address",
1239
+ "name": "member",
1240
+ "type": "address"
1241
+ }
1242
+ ],
1243
+ "name": "hasRole",
1147
1244
  "outputs": [
1148
1245
  {
1149
- "internalType": "NftId",
1150
- "name": "nftId",
1151
- "type": "uint96"
1246
+ "internalType": "bool",
1247
+ "name": "hasRole",
1248
+ "type": "bool"
1152
1249
  }
1153
1250
  ],
1154
- "stateMutability": "nonpayable",
1251
+ "stateMutability": "view",
1155
1252
  "type": "function"
1156
1253
  },
1157
1254
  {
1158
1255
  "inputs": [
1159
1256
  {
1160
- "internalType": "contract IComponentContract",
1161
- "name": "component",
1162
- "type": "address"
1257
+ "internalType": "Version",
1258
+ "name": "version",
1259
+ "type": "uint24"
1163
1260
  }
1164
1261
  ],
1165
- "name": "registerComponent",
1262
+ "name": "isActivated",
1263
+ "outputs": [
1264
+ {
1265
+ "internalType": "bool",
1266
+ "name": "",
1267
+ "type": "bool"
1268
+ }
1269
+ ],
1270
+ "stateMutability": "view",
1271
+ "type": "function"
1272
+ },
1273
+ {
1274
+ "inputs": [],
1275
+ "name": "register",
1166
1276
  "outputs": [
1167
1277
  {
1168
1278
  "internalType": "NftId",
@@ -1179,9 +1289,19 @@
1179
1289
  "internalType": "NftId",
1180
1290
  "name": "nftId",
1181
1291
  "type": "uint96"
1292
+ },
1293
+ {
1294
+ "internalType": "ObjectType",
1295
+ "name": "objectType",
1296
+ "type": "uint8"
1297
+ },
1298
+ {
1299
+ "internalType": "contract IERC20Metadata",
1300
+ "name": "token",
1301
+ "type": "address"
1182
1302
  }
1183
1303
  ],
1184
- "name": "registerPool",
1304
+ "name": "registerComponent",
1185
1305
  "outputs": [],
1186
1306
  "stateMutability": "nonpayable",
1187
1307
  "type": "function"
@@ -1238,6 +1358,29 @@
1238
1358
  "stateMutability": "nonpayable",
1239
1359
  "type": "function"
1240
1360
  },
1361
+ {
1362
+ "inputs": [
1363
+ {
1364
+ "internalType": "NftId",
1365
+ "name": "poolNftId",
1366
+ "type": "uint96"
1367
+ },
1368
+ {
1369
+ "internalType": "bool",
1370
+ "name": "isVerifying",
1371
+ "type": "bool"
1372
+ },
1373
+ {
1374
+ "internalType": "UFixed",
1375
+ "name": "collateralizationLevel",
1376
+ "type": "uint256"
1377
+ }
1378
+ ],
1379
+ "name": "registerPool",
1380
+ "outputs": [],
1381
+ "stateMutability": "nonpayable",
1382
+ "type": "function"
1383
+ },
1241
1384
  {
1242
1385
  "inputs": [
1243
1386
  {
@@ -1256,7 +1399,7 @@
1256
1399
  "type": "uint96"
1257
1400
  },
1258
1401
  {
1259
- "internalType": "contract IERC20",
1402
+ "internalType": "contract IERC20Metadata",
1260
1403
  "name": "token",
1261
1404
  "type": "address"
1262
1405
  },
@@ -1308,9 +1451,33 @@
1308
1451
  {
1309
1452
  "inputs": [
1310
1453
  {
1311
- "internalType": "bytes32",
1454
+ "internalType": "NftId",
1455
+ "name": "bundleNftId",
1456
+ "type": "uint96"
1457
+ },
1458
+ {
1459
+ "internalType": "NftId",
1460
+ "name": "policyNftId",
1461
+ "type": "uint96"
1462
+ }
1463
+ ],
1464
+ "name": "releasePolicy",
1465
+ "outputs": [
1466
+ {
1467
+ "internalType": "uint256",
1468
+ "name": "collateralAmount",
1469
+ "type": "uint256"
1470
+ }
1471
+ ],
1472
+ "stateMutability": "nonpayable",
1473
+ "type": "function"
1474
+ },
1475
+ {
1476
+ "inputs": [
1477
+ {
1478
+ "internalType": "RoleId",
1312
1479
  "name": "role",
1313
- "type": "bytes32"
1480
+ "type": "bytes8"
1314
1481
  },
1315
1482
  {
1316
1483
  "internalType": "address",
@@ -1323,6 +1490,80 @@
1323
1490
  "stateMutability": "nonpayable",
1324
1491
  "type": "function"
1325
1492
  },
1493
+ {
1494
+ "inputs": [
1495
+ {
1496
+ "internalType": "RoleId",
1497
+ "name": "role",
1498
+ "type": "bytes8"
1499
+ }
1500
+ ],
1501
+ "name": "roleExists",
1502
+ "outputs": [
1503
+ {
1504
+ "internalType": "bool",
1505
+ "name": "",
1506
+ "type": "bool"
1507
+ }
1508
+ ],
1509
+ "stateMutability": "view",
1510
+ "type": "function"
1511
+ },
1512
+ {
1513
+ "inputs": [
1514
+ {
1515
+ "components": [
1516
+ {
1517
+ "internalType": "NftId",
1518
+ "name": "nftId",
1519
+ "type": "uint96"
1520
+ },
1521
+ {
1522
+ "internalType": "NftId",
1523
+ "name": "poolNftId",
1524
+ "type": "uint96"
1525
+ },
1526
+ {
1527
+ "internalType": "bytes",
1528
+ "name": "filter",
1529
+ "type": "bytes"
1530
+ },
1531
+ {
1532
+ "internalType": "uint256",
1533
+ "name": "capitalAmount",
1534
+ "type": "uint256"
1535
+ },
1536
+ {
1537
+ "internalType": "uint256",
1538
+ "name": "lockedAmount",
1539
+ "type": "uint256"
1540
+ },
1541
+ {
1542
+ "internalType": "uint256",
1543
+ "name": "balanceAmount",
1544
+ "type": "uint256"
1545
+ },
1546
+ {
1547
+ "internalType": "Timestamp",
1548
+ "name": "expiredAt",
1549
+ "type": "uint40"
1550
+ },
1551
+ {
1552
+ "internalType": "Timestamp",
1553
+ "name": "closedAt",
1554
+ "type": "uint40"
1555
+ }
1556
+ ],
1557
+ "internalType": "struct IBundle.BundleInfo",
1558
+ "name": "bundleInfo",
1559
+ "type": "tuple"
1560
+ }
1561
+ ],
1562
+ "name": "setBundleInfo",
1563
+ "outputs": [],
1564
+ "stateMutability": "nonpayable",
1565
+ "type": "function"
1566
+ },
1326
1567
  {
1327
1568
  "inputs": [
1328
1569
  {
@@ -1359,6 +1600,96 @@
1359
1600
  "stateMutability": "nonpayable",
1360
1601
  "type": "function"
1361
1602
  },
1603
+ {
1604
+ "inputs": [
1605
+ {
1606
+ "components": [
1607
+ {
1608
+ "internalType": "NftId",
1609
+ "name": "nftId",
1610
+ "type": "uint96"
1611
+ },
1612
+ {
1613
+ "internalType": "NftId",
1614
+ "name": "productNftId",
1615
+ "type": "uint96"
1616
+ },
1617
+ {
1618
+ "internalType": "NftId",
1619
+ "name": "bundleNftId",
1620
+ "type": "uint96"
1621
+ },
1622
+ {
1623
+ "internalType": "address",
1624
+ "name": "beneficiary",
1625
+ "type": "address"
1626
+ },
1627
+ {
1628
+ "internalType": "StateId",
1629
+ "name": "state",
1630
+ "type": "uint8"
1631
+ },
1632
+ {
1633
+ "internalType": "uint256",
1634
+ "name": "sumInsuredAmount",
1635
+ "type": "uint256"
1636
+ },
1637
+ {
1638
+ "internalType": "uint256",
1639
+ "name": "premiumAmount",
1640
+ "type": "uint256"
1641
+ },
1642
+ {
1643
+ "internalType": "uint256",
1644
+ "name": "premiumPaidAmount",
1645
+ "type": "uint256"
1646
+ },
1647
+ {
1648
+ "internalType": "uint256",
1649
+ "name": "lifetime",
1650
+ "type": "uint256"
1651
+ },
1652
+ {
1653
+ "internalType": "bytes",
1654
+ "name": "data",
1655
+ "type": "bytes"
1656
+ },
1657
+ {
1658
+ "internalType": "Timestamp",
1659
+ "name": "createdAt",
1660
+ "type": "uint40"
1661
+ },
1662
+ {
1663
+ "internalType": "Timestamp",
1664
+ "name": "activatedAt",
1665
+ "type": "uint40"
1666
+ },
1667
+ {
1668
+ "internalType": "Timestamp",
1669
+ "name": "expiredAt",
1670
+ "type": "uint40"
1671
+ },
1672
+ {
1673
+ "internalType": "Timestamp",
1674
+ "name": "closedAt",
1675
+ "type": "uint40"
1676
+ },
1677
+ {
1678
+ "internalType": "Blocknumber",
1679
+ "name": "updatedIn",
1680
+ "type": "uint32"
1681
+ }
1682
+ ],
1683
+ "internalType": "struct IPolicy.PolicyInfo",
1684
+ "name": "policyInfo",
1685
+ "type": "tuple"
1686
+ }
1687
+ ],
1688
+ "name": "setPolicyInfo",
1689
+ "outputs": [],
1690
+ "stateMutability": "nonpayable",
1691
+ "type": "function"
1692
+ },
1362
1693
  {
1363
1694
  "inputs": [
1364
1695
  {
@@ -1453,20 +1784,76 @@
1453
1784
  "stateMutability": "nonpayable",
1454
1785
  "type": "function"
1455
1786
  },
1787
+ {
1788
+ "inputs": [
1789
+ {
1790
+ "internalType": "RoleId",
1791
+ "name": "role",
1792
+ "type": "bytes8"
1793
+ },
1794
+ {
1795
+ "internalType": "bool",
1796
+ "name": "active",
1797
+ "type": "bool"
1798
+ }
1799
+ ],
1800
+ "name": "setRoleState",
1801
+ "outputs": [],
1802
+ "stateMutability": "nonpayable",
1803
+ "type": "function"
1804
+ },
1805
+ {
1806
+ "inputs": [
1807
+ {
1808
+ "internalType": "bytes4",
1809
+ "name": "interfaceId",
1810
+ "type": "bytes4"
1811
+ }
1812
+ ],
1813
+ "name": "supportsInterface",
1814
+ "outputs": [
1815
+ {
1816
+ "internalType": "bool",
1817
+ "name": "",
1818
+ "type": "bool"
1819
+ }
1820
+ ],
1821
+ "stateMutability": "view",
1822
+ "type": "function"
1823
+ },
1456
1824
  {
1457
1825
  "inputs": [
1458
1826
  {
1459
1827
  "internalType": "NftId",
1460
- "name": "policyNftId",
1828
+ "name": "bundleNftId",
1461
1829
  "type": "uint96"
1462
- },
1830
+ }
1831
+ ],
1832
+ "name": "toBundleKey32",
1833
+ "outputs": [
1834
+ {
1835
+ "internalType": "Key32",
1836
+ "name": "key32",
1837
+ "type": "bytes32"
1838
+ }
1839
+ ],
1840
+ "stateMutability": "view",
1841
+ "type": "function"
1842
+ },
1843
+ {
1844
+ "inputs": [
1463
1845
  {
1464
1846
  "internalType": "NftId",
1465
- "name": "productNftId",
1847
+ "name": "bundleNftId",
1466
1848
  "type": "uint96"
1849
+ },
1850
+ {
1851
+ "internalType": "StateId",
1852
+ "name": "state",
1853
+ "type": "uint8"
1467
1854
  }
1468
1855
  ],
1469
- "name": "underwrite",
1856
+ "name": "updateBundleState",
1470
1857
  "outputs": [],
1471
1858
  "stateMutability": "nonpayable",
1472
1859
  "type": "function"