@etherisc/gif-next 0.0.2-dc7e4cb-141 → 0.0.2-de220d6-949

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. package/README.md +5 -14
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  4. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  5. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  7. package/artifacts/contracts/components/Pool.sol/Pool.json +2 -2
  8. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  9. package/artifacts/contracts/components/Product.sol/Product.json +2 -2
  10. package/artifacts/contracts/experiment/errors/IncrementRevert.sol/IIncrementRevert.dbg.json +4 -0
  11. package/artifacts/contracts/experiment/errors/IncrementRevert.sol/IIncrementRevert.json +27 -0
  12. package/artifacts/contracts/experiment/errors/IncrementRevert.sol/IncrementRevert.dbg.json +4 -0
  13. package/artifacts/contracts/experiment/errors/IncrementRevert.sol/IncrementRevert.json +83 -0
  14. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/errors/Revert.sol/IRevert.dbg.json +4 -0
  16. package/artifacts/contracts/experiment/errors/Revert.sol/IRevert.json +75 -0
  17. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +34 -2
  19. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  29. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  33. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  35. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  37. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  38. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +54 -195
  39. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
  40. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  41. package/artifacts/contracts/instance/Instance.sol/Instance.json +202 -269
  42. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  43. package/artifacts/contracts/instance/{service → base}/ComponentServiceBase.sol/ComponentServiceBase.json +1 -1
  44. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  45. package/artifacts/contracts/instance/{IServiceLinked.sol/IServiceLinked.json → base/IInstanceBase.sol/IInstanceBase.json} +15 -2
  46. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  47. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +511 -0
  48. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  49. package/artifacts/contracts/instance/{module/lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  50. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
  51. package/artifacts/contracts/instance/{service → base}/IService.sol/IService.json +1 -1
  52. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  53. package/artifacts/contracts/instance/{InstanceBase.sol → base/InstanceBase.sol}/InstanceBase.json +14 -1
  54. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  55. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +692 -0
  56. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  57. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  58. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
  59. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.json +10 -0
  60. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
  61. package/artifacts/contracts/instance/{service → base}/ServiceBase.sol/ServiceBase.json +1 -1
  62. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
  65. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +50 -30
  67. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
  69. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +50 -30
  70. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +1 -1
  71. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +1 -1
  72. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +1 -1
  73. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
  74. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +1 -1
  75. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
  76. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
  78. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
  79. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +12 -2
  80. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
  81. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +12 -2
  82. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
  83. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
  84. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
  85. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
  86. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
  87. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
  88. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
  89. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
  90. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  91. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
  92. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +34 -2
  95. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  97. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  98. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +2 -2
  100. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +4 -4
  102. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  104. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  105. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  106. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  107. package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
  108. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  109. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
  110. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  111. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  112. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  113. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  114. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  115. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
  116. package/artifacts/contracts/test/TestPool.sol/TestPool.json +2 -2
  117. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
  118. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +2 -2
  119. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  120. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
  121. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  122. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +38 -4
  123. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  124. package/artifacts/contracts/test/TestService.sol/TestService.json +2 -2
  125. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  126. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  127. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  128. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  129. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  130. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  131. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  132. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  133. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  134. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
  135. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  136. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  137. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  138. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  139. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  140. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  141. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -0
  142. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  143. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  144. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  145. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
  146. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  147. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  148. package/contracts/components/BaseComponent.sol +0 -1
  149. package/contracts/experiment/errors/IncrementRevert.sol +43 -0
  150. package/contracts/experiment/errors/Revert.sol +13 -4
  151. package/contracts/instance/IInstance.sol +9 -10
  152. package/contracts/instance/Instance.sol +9 -7
  153. package/contracts/instance/{service → base}/ComponentServiceBase.sol +1 -0
  154. package/contracts/instance/base/IInstanceBase.sol +14 -0
  155. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  156. package/contracts/instance/base/ILifecycle.sol +30 -0
  157. package/contracts/instance/{InstanceBase.sol → base/InstanceBase.sol} +20 -11
  158. package/contracts/instance/base/KeyValueStore.sol +156 -0
  159. package/contracts/instance/{module/lifecycle/LifecycleModule.sol → base/Lifecycle.sol} +36 -30
  160. package/contracts/instance/base/ModuleBase.sol +52 -0
  161. package/contracts/instance/{service → base}/ServiceBase.sol +0 -2
  162. package/contracts/instance/module/access/Access.sol +3 -3
  163. package/contracts/instance/module/bundle/BundleModule.sol +24 -116
  164. package/contracts/instance/module/bundle/IBundle.sol +8 -3
  165. package/contracts/instance/module/component/ComponentModule.sol +10 -18
  166. package/contracts/instance/module/policy/IPolicy.sol +2 -1
  167. package/contracts/instance/module/policy/PolicyModule.sol +4 -11
  168. package/contracts/instance/service/ComponentOwnerService.sol +1 -2
  169. package/contracts/instance/service/IComponentOwnerService.sol +1 -1
  170. package/contracts/instance/service/IPoolService.sol +1 -1
  171. package/contracts/instance/service/IProductService.sol +1 -1
  172. package/contracts/instance/service/PoolService.sol +1 -1
  173. package/contracts/instance/service/ProductService.sol +2 -3
  174. package/contracts/registry/Registry.sol +1 -1
  175. package/contracts/test/TestRoleId.sol +2 -2
  176. package/contracts/test/TestService.sol +1 -1
  177. package/contracts/types/Key32.sol +45 -0
  178. package/contracts/types/NftId.sol +16 -1
  179. package/contracts/types/RoleId.sol +11 -9
  180. package/contracts/types/StateId.sol +7 -1
  181. package/package.json +1 -1
  182. package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.dbg.json +0 -4
  183. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  184. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  185. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  186. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  187. package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  188. package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  189. package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  190. package/artifacts/contracts/instance/service/IService.sol/IService.dbg.json +0 -4
  191. package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  192. package/contracts/instance/IServiceLinked.sol +0 -12
  193. package/contracts/instance/module/lifecycle/ILifecycle.sol +0 -47
  194. /package/contracts/instance/{service → base}/IService.sol +0 -0
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7f4061414c08959ccea0f1ff89c2ba75.json"
3
+ "buildInfo": "../../../../build-info/13c4329f81ddc934c5d7a5db64b32ef7.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7f4061414c08959ccea0f1ff89c2ba75.json"
3
+ "buildInfo": "../../../../build-info/13c4329f81ddc934c5d7a5db64b32ef7.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7f4061414c08959ccea0f1ff89c2ba75.json"
3
+ "buildInfo": "../../../../build-info/13c4329f81ddc934c5d7a5db64b32ef7.json"
4
4
  }
@@ -117,8 +117,8 @@
117
117
  "type": "function"
118
118
  }
119
119
  ],
120
- "bytecode": "0x608060405234801561001057600080fd5b50610200806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80631865c57d1461004657806357c26a351461006057806379412d2814610075575b600080fd5b60015460405160ff90911681526020015b60405180910390f35b61007361006e366004610175565b6100b5565b005b6100a5610083366004610197565b60ff918216600090815260208181526040808320938516835292905220541690565b6040519015158152602001610057565b60015460ff90811660009081526020818152604080832085851684529091529020541661010a57600154604051635d7cbd3d60e01b815260ff9182166004820152908216602482015260440160405180910390fd5b6001805460ff83811660ff1983168117909355604080519190921680825260208201939093527fddbd36f3979db212a01f1175ab2c9205f870d98acf5f28bac835ab5e83337812910160405180910390a15050565b803560ff8116811461017057600080fd5b919050565b60006020828403121561018757600080fd5b6101908261015f565b9392505050565b600080604083850312156101aa57600080fd5b6101b38361015f565b91506101c16020840161015f565b9050925092905056fea2646970667358221220689d90ebf8bd0edbb4b6e98914512a7457ce4e74ed299d5c15415c0b0bf53fa364736f6c63430008140033",
121
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80631865c57d1461004657806357c26a351461006057806379412d2814610075575b600080fd5b60015460405160ff90911681526020015b60405180910390f35b61007361006e366004610175565b6100b5565b005b6100a5610083366004610197565b60ff918216600090815260208181526040808320938516835292905220541690565b6040519015158152602001610057565b60015460ff90811660009081526020818152604080832085851684529091529020541661010a57600154604051635d7cbd3d60e01b815260ff9182166004820152908216602482015260440160405180910390fd5b6001805460ff83811660ff1983168117909355604080519190921680825260208201939093527fddbd36f3979db212a01f1175ab2c9205f870d98acf5f28bac835ab5e83337812910160405180910390a15050565b803560ff8116811461017057600080fd5b919050565b60006020828403121561018757600080fd5b6101908261015f565b9392505050565b600080604083850312156101aa57600080fd5b6101b38361015f565b91506101c16020840161015f565b9050925092905056fea2646970667358221220689d90ebf8bd0edbb4b6e98914512a7457ce4e74ed299d5c15415c0b0bf53fa364736f6c63430008140033",
120
+ "bytecode": "0x608060405234801561001057600080fd5b50610200806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80631865c57d1461004657806357c26a351461006057806379412d2814610075575b600080fd5b60015460405160ff90911681526020015b60405180910390f35b61007361006e366004610175565b6100b5565b005b6100a5610083366004610197565b60ff918216600090815260208181526040808320938516835292905220541690565b6040519015158152602001610057565b60015460ff90811660009081526020818152604080832085851684529091529020541661010a57600154604051635d7cbd3d60e01b815260ff9182166004820152908216602482015260440160405180910390fd5b6001805460ff83811660ff1983168117909355604080519190921680825260208201939093527fddbd36f3979db212a01f1175ab2c9205f870d98acf5f28bac835ab5e83337812910160405180910390a15050565b803560ff8116811461017057600080fd5b919050565b60006020828403121561018757600080fd5b6101908261015f565b9392505050565b600080604083850312156101aa57600080fd5b6101b38361015f565b91506101c16020840161015f565b9050925092905056fea26469706673582212201c5f5f2bdf63d2d0282552c1693600daeafd55168cb2d571aa4185889912dccb64736f6c63430008140033",
121
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80631865c57d1461004657806357c26a351461006057806379412d2814610075575b600080fd5b60015460405160ff90911681526020015b60405180910390f35b61007361006e366004610175565b6100b5565b005b6100a5610083366004610197565b60ff918216600090815260208181526040808320938516835292905220541690565b6040519015158152602001610057565b60015460ff90811660009081526020818152604080832085851684529091529020541661010a57600154604051635d7cbd3d60e01b815260ff9182166004820152908216602482015260440160405180910390fd5b6001805460ff83811660ff1983168117909355604080519190921680825260208201939093527fddbd36f3979db212a01f1175ab2c9205f870d98acf5f28bac835ab5e83337812910160405180910390a15050565b803560ff8116811461017057600080fd5b919050565b60006020828403121561018757600080fd5b6101908261015f565b9392505050565b600080604083850312156101aa57600080fd5b6101b38361015f565b91506101c16020840161015f565b9050925092905056fea26469706673582212201c5f5f2bdf63d2d0282552c1693600daeafd55168cb2d571aa4185889912dccb64736f6c63430008140033",
122
122
  "linkReferences": {},
123
123
  "deployedLinkReferences": {}
124
124
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7f4061414c08959ccea0f1ff89c2ba75.json"
3
+ "buildInfo": "../../../../build-info/13c4329f81ddc934c5d7a5db64b32ef7.json"
4
4
  }
@@ -200,8 +200,8 @@
200
200
  "type": "function"
201
201
  }
202
202
  ],
203
- "bytecode": "0x608060405234801561001057600080fd5b5061001d600a6014610044565b6100296014600a610044565b6100356014601e610044565b61003f600a6100c9565b610108565b6100568260005b60ff90811691161490565b156100745760405163b5f9d83760e01b815260040160405180910390fd5b61007f81600061004b565b1561009d5760405163e9c8e0f360e01b815260040160405180910390fd5b60ff9182166000908152602081815260408083209390941682529190915220805460ff19166001179055565b6100d481600061004b565b156100f25760405163251d7b3360e21b815260040160405180910390fd5b6001805460ff191660ff92909216919091179055565b610286806101176000396000f3fe608060405234801561001057600080fd5b50600436106100925760003560e01c806360cb89b91161006657806360cb89b9146100de57806379412d28146100e5578063a9aad58c14610125578063c80c07381461012c578063c90bd0471461013457600080fd5b80622f211a146100975780630c06bb31146100b65780631865c57d146100be57806357c26a35146100c9575b600080fd5b61009f601e81565b60405160ff90911681526020015b60405180910390f35b61009f601481565b60015460ff1661009f565b6100dc6100d73660046101fb565b61013b565b005b601e61009f565b6101156100f336600461021d565b60ff918216600090815260208181526040808320938516835292905220541690565b60405190151581526020016100ad565b601461009f565b61009f600a81565b600a61009f565b60015460ff90811660009081526020818152604080832085851684529091529020541661019057600154604051635d7cbd3d60e01b815260ff9182166004820152908216602482015260440160405180910390fd5b6001805460ff83811660ff1983168117909355604080519190921680825260208201939093527fddbd36f3979db212a01f1175ab2c9205f870d98acf5f28bac835ab5e83337812910160405180910390a15050565b803560ff811681146101f657600080fd5b919050565b60006020828403121561020d57600080fd5b610216826101e5565b9392505050565b6000806040838503121561023057600080fd5b610239836101e5565b9150610247602084016101e5565b9050925092905056fea2646970667358221220d520a37bcc603dec9c5d688fe3059431b84f657973f32a31eab5c6218947518864736f6c63430008140033",
204
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100925760003560e01c806360cb89b91161006657806360cb89b9146100de57806379412d28146100e5578063a9aad58c14610125578063c80c07381461012c578063c90bd0471461013457600080fd5b80622f211a146100975780630c06bb31146100b65780631865c57d146100be57806357c26a35146100c9575b600080fd5b61009f601e81565b60405160ff90911681526020015b60405180910390f35b61009f601481565b60015460ff1661009f565b6100dc6100d73660046101fb565b61013b565b005b601e61009f565b6101156100f336600461021d565b60ff918216600090815260208181526040808320938516835292905220541690565b60405190151581526020016100ad565b601461009f565b61009f600a81565b600a61009f565b60015460ff90811660009081526020818152604080832085851684529091529020541661019057600154604051635d7cbd3d60e01b815260ff9182166004820152908216602482015260440160405180910390fd5b6001805460ff83811660ff1983168117909355604080519190921680825260208201939093527fddbd36f3979db212a01f1175ab2c9205f870d98acf5f28bac835ab5e83337812910160405180910390a15050565b803560ff811681146101f657600080fd5b919050565b60006020828403121561020d57600080fd5b610216826101e5565b9392505050565b6000806040838503121561023057600080fd5b610239836101e5565b9150610247602084016101e5565b9050925092905056fea2646970667358221220d520a37bcc603dec9c5d688fe3059431b84f657973f32a31eab5c6218947518864736f6c63430008140033",
203
+ "bytecode": "0x608060405234801561001057600080fd5b5061001d600a6014610044565b6100296014600a610044565b6100356014601e610044565b61003f600a6100c9565b610108565b6100568260005b60ff90811691161490565b156100745760405163b5f9d83760e01b815260040160405180910390fd5b61007f81600061004b565b1561009d5760405163e9c8e0f360e01b815260040160405180910390fd5b60ff9182166000908152602081815260408083209390941682529190915220805460ff19166001179055565b6100d481600061004b565b156100f25760405163251d7b3360e21b815260040160405180910390fd5b6001805460ff191660ff92909216919091179055565b610286806101176000396000f3fe608060405234801561001057600080fd5b50600436106100925760003560e01c806360cb89b91161006657806360cb89b9146100de57806379412d28146100e5578063a9aad58c14610125578063c80c07381461012c578063c90bd0471461013457600080fd5b80622f211a146100975780630c06bb31146100b65780631865c57d146100be57806357c26a35146100c9575b600080fd5b61009f601e81565b60405160ff90911681526020015b60405180910390f35b61009f601481565b60015460ff1661009f565b6100dc6100d73660046101fb565b61013b565b005b601e61009f565b6101156100f336600461021d565b60ff918216600090815260208181526040808320938516835292905220541690565b60405190151581526020016100ad565b601461009f565b61009f600a81565b600a61009f565b60015460ff90811660009081526020818152604080832085851684529091529020541661019057600154604051635d7cbd3d60e01b815260ff9182166004820152908216602482015260440160405180910390fd5b6001805460ff83811660ff1983168117909355604080519190921680825260208201939093527fddbd36f3979db212a01f1175ab2c9205f870d98acf5f28bac835ab5e83337812910160405180910390a15050565b803560ff811681146101f657600080fd5b919050565b60006020828403121561020d57600080fd5b610216826101e5565b9392505050565b6000806040838503121561023057600080fd5b610239836101e5565b9150610247602084016101e5565b9050925092905056fea26469706673582212206dce6e3ccb4e7271d5c1a4e6c0e3cc1f223e07d92e41b7acd3d86bc509bde35264736f6c63430008140033",
204
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100925760003560e01c806360cb89b91161006657806360cb89b9146100de57806379412d28146100e5578063a9aad58c14610125578063c80c07381461012c578063c90bd0471461013457600080fd5b80622f211a146100975780630c06bb31146100b65780631865c57d146100be57806357c26a35146100c9575b600080fd5b61009f601e81565b60405160ff90911681526020015b60405180910390f35b61009f601481565b60015460ff1661009f565b6100dc6100d73660046101fb565b61013b565b005b601e61009f565b6101156100f336600461021d565b60ff918216600090815260208181526040808320938516835292905220541690565b60405190151581526020016100ad565b601461009f565b61009f600a81565b600a61009f565b60015460ff90811660009081526020818152604080832085851684529091529020541661019057600154604051635d7cbd3d60e01b815260ff9182166004820152908216602482015260440160405180910390fd5b6001805460ff83811660ff1983168117909355604080519190921680825260208201939093527fddbd36f3979db212a01f1175ab2c9205f870d98acf5f28bac835ab5e83337812910160405180910390a15050565b803560ff811681146101f657600080fd5b919050565b60006020828403121561020d57600080fd5b610216826101e5565b9392505050565b6000806040838503121561023057600080fd5b610239836101e5565b9150610247602084016101e5565b9050925092905056fea26469706673582212206dce6e3ccb4e7271d5c1a4e6c0e3cc1f223e07d92e41b7acd3d86bc509bde35264736f6c63430008140033",
205
205
  "linkReferences": {},
206
206
  "deployedLinkReferences": {}
207
207
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7f4061414c08959ccea0f1ff89c2ba75.json"
3
+ "buildInfo": "../../../../build-info/13c4329f81ddc934c5d7a5db64b32ef7.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7f4061414c08959ccea0f1ff89c2ba75.json"
3
+ "buildInfo": "../../../../build-info/13c4329f81ddc934c5d7a5db64b32ef7.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/7f4061414c08959ccea0f1ff89c2ba75.json"
3
+ "buildInfo": "../../../build-info/13c4329f81ddc934c5d7a5db64b32ef7.json"
4
4
  }
@@ -3,48 +3,6 @@
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": [
@@ -108,87 +66,6 @@
108
66
  "name": "LogAccessRoleStateSet",
109
67
  "type": "event"
110
68
  },
111
- {
112
- "anonymous": false,
113
- "inputs": [
114
- {
115
- "indexed": false,
116
- "internalType": "NftId",
117
- "name": "nftId",
118
- "type": "uint96"
119
- },
120
- {
121
- "indexed": false,
122
- "internalType": "StateId",
123
- "name": "fromStateId",
124
- "type": "uint8"
125
- },
126
- {
127
- "indexed": false,
128
- "internalType": "StateId",
129
- "name": "toStateId",
130
- "type": "uint8"
131
- }
132
- ],
133
- "name": "LogBundleStateChanged",
134
- "type": "event"
135
- },
136
- {
137
- "anonymous": false,
138
- "inputs": [
139
- {
140
- "indexed": false,
141
- "internalType": "NftId",
142
- "name": "nftId",
143
- "type": "uint96"
144
- },
145
- {
146
- "indexed": false,
147
- "internalType": "ObjectType",
148
- "name": "objectType",
149
- "type": "uint8"
150
- },
151
- {
152
- "indexed": false,
153
- "internalType": "StateId",
154
- "name": "fromStateId",
155
- "type": "uint8"
156
- },
157
- {
158
- "indexed": false,
159
- "internalType": "StateId",
160
- "name": "toStateId",
161
- "type": "uint8"
162
- }
163
- ],
164
- "name": "LogComponentStateChanged",
165
- "type": "event"
166
- },
167
- {
168
- "anonymous": false,
169
- "inputs": [
170
- {
171
- "indexed": false,
172
- "internalType": "NftId",
173
- "name": "nftId",
174
- "type": "uint96"
175
- },
176
- {
177
- "indexed": false,
178
- "internalType": "StateId",
179
- "name": "fromStateId",
180
- "type": "uint8"
181
- },
182
- {
183
- "indexed": false,
184
- "internalType": "StateId",
185
- "name": "toStateId",
186
- "type": "uint8"
187
- }
188
- ],
189
- "name": "LogPolicyStateChanged",
190
- "type": "event"
191
- },
192
69
  {
193
70
  "anonymous": false,
194
71
  "inputs": [
@@ -450,11 +327,6 @@
450
327
  "name": "poolNftId",
451
328
  "type": "uint96"
452
329
  },
453
- {
454
- "internalType": "StateId",
455
- "name": "state",
456
- "type": "uint8"
457
- },
458
330
  {
459
331
  "internalType": "bytes",
460
332
  "name": "filter",
@@ -475,11 +347,6 @@
475
347
  "name": "balanceAmount",
476
348
  "type": "uint256"
477
349
  },
478
- {
479
- "internalType": "Timestamp",
480
- "name": "createdAt",
481
- "type": "uint40"
482
- },
483
350
  {
484
351
  "internalType": "Timestamp",
485
352
  "name": "expiredAt",
@@ -489,11 +356,6 @@
489
356
  "internalType": "Timestamp",
490
357
  "name": "closedAt",
491
358
  "type": "uint40"
492
- },
493
- {
494
- "internalType": "Blocknumber",
495
- "name": "updatedIn",
496
- "type": "uint32"
497
359
  }
498
360
  ],
499
361
  "internalType": "struct IBundle.BundleInfo",
@@ -659,19 +521,13 @@
659
521
  "type": "function"
660
522
  },
661
523
  {
662
- "inputs": [
663
- {
664
- "internalType": "ObjectType",
665
- "name": "objectType",
666
- "type": "uint8"
667
- }
668
- ],
669
- "name": "getInitialState",
524
+ "inputs": [],
525
+ "name": "getKeyValueStore",
670
526
  "outputs": [
671
527
  {
672
- "internalType": "StateId",
673
- "name": "",
674
- "type": "uint8"
528
+ "internalType": "contract IKeyValueStore",
529
+ "name": "keyValueStore",
530
+ "type": "address"
675
531
  }
676
532
  ],
677
533
  "stateMutability": "view",
@@ -775,7 +631,12 @@
775
631
  },
776
632
  {
777
633
  "internalType": "bytes",
778
- "name": "data",
634
+ "name": "applicationData",
635
+ "type": "bytes"
636
+ },
637
+ {
638
+ "internalType": "bytes",
639
+ "name": "policyData",
779
640
  "type": "bytes"
780
641
  },
781
642
  {
@@ -1414,35 +1275,6 @@
1414
1275
  "stateMutability": "view",
1415
1276
  "type": "function"
1416
1277
  },
1417
- {
1418
- "inputs": [
1419
- {
1420
- "internalType": "ObjectType",
1421
- "name": "objectType",
1422
- "type": "uint8"
1423
- },
1424
- {
1425
- "internalType": "StateId",
1426
- "name": "fromId",
1427
- "type": "uint8"
1428
- },
1429
- {
1430
- "internalType": "StateId",
1431
- "name": "toId",
1432
- "type": "uint8"
1433
- }
1434
- ],
1435
- "name": "isValidTransition",
1436
- "outputs": [
1437
- {
1438
- "internalType": "bool",
1439
- "name": "",
1440
- "type": "bool"
1441
- }
1442
- ],
1443
- "stateMutability": "view",
1444
- "type": "function"
1445
- },
1446
1278
  {
1447
1279
  "inputs": [],
1448
1280
  "name": "register",
@@ -1696,11 +1528,6 @@
1696
1528
  "name": "poolNftId",
1697
1529
  "type": "uint96"
1698
1530
  },
1699
- {
1700
- "internalType": "StateId",
1701
- "name": "state",
1702
- "type": "uint8"
1703
- },
1704
1531
  {
1705
1532
  "internalType": "bytes",
1706
1533
  "name": "filter",
@@ -1721,11 +1548,6 @@
1721
1548
  "name": "balanceAmount",
1722
1549
  "type": "uint256"
1723
1550
  },
1724
- {
1725
- "internalType": "Timestamp",
1726
- "name": "createdAt",
1727
- "type": "uint40"
1728
- },
1729
1551
  {
1730
1552
  "internalType": "Timestamp",
1731
1553
  "name": "expiredAt",
@@ -1735,11 +1557,6 @@
1735
1557
  "internalType": "Timestamp",
1736
1558
  "name": "closedAt",
1737
1559
  "type": "uint40"
1738
- },
1739
- {
1740
- "internalType": "Blocknumber",
1741
- "name": "updatedIn",
1742
- "type": "uint32"
1743
1560
  }
1744
1561
  ],
1745
1562
  "internalType": "struct IBundle.BundleInfo",
@@ -1839,7 +1656,12 @@
1839
1656
  },
1840
1657
  {
1841
1658
  "internalType": "bytes",
1842
- "name": "data",
1659
+ "name": "applicationData",
1660
+ "type": "bytes"
1661
+ },
1662
+ {
1663
+ "internalType": "bytes",
1664
+ "name": "policyData",
1843
1665
  "type": "bytes"
1844
1666
  },
1845
1667
  {
@@ -2008,6 +1830,43 @@
2008
1830
  ],
2009
1831
  "stateMutability": "view",
2010
1832
  "type": "function"
1833
+ },
1834
+ {
1835
+ "inputs": [
1836
+ {
1837
+ "internalType": "NftId",
1838
+ "name": "bundleNftId",
1839
+ "type": "uint96"
1840
+ }
1841
+ ],
1842
+ "name": "toBundleKey32",
1843
+ "outputs": [
1844
+ {
1845
+ "internalType": "Key32",
1846
+ "name": "key32",
1847
+ "type": "bytes32"
1848
+ }
1849
+ ],
1850
+ "stateMutability": "view",
1851
+ "type": "function"
1852
+ },
1853
+ {
1854
+ "inputs": [
1855
+ {
1856
+ "internalType": "NftId",
1857
+ "name": "bundleNftId",
1858
+ "type": "uint96"
1859
+ },
1860
+ {
1861
+ "internalType": "StateId",
1862
+ "name": "state",
1863
+ "type": "uint8"
1864
+ }
1865
+ ],
1866
+ "name": "updateBundleState",
1867
+ "outputs": [],
1868
+ "stateMutability": "nonpayable",
1869
+ "type": "function"
2011
1870
  }
2012
1871
  ],
2013
1872
  "bytecode": "0x",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/7f4061414c08959ccea0f1ff89c2ba75.json"
3
+ "buildInfo": "../../../build-info/13c4329f81ddc934c5d7a5db64b32ef7.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/7f4061414c08959ccea0f1ff89c2ba75.json"
3
+ "buildInfo": "../../../build-info/13c4329f81ddc934c5d7a5db64b32ef7.json"
4
4
  }