@etherisc/gif-next 0.0.2-f0d86c2-077 → 0.0.2-f72939c-683

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/README.md +38 -11
  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 +72 -4
  8. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  9. package/artifacts/contracts/components/Product.sol/Product.json +46 -3
  10. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  11. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  12. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  13. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  14. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  16. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  22. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  28. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +540 -401
  30. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
  31. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  32. package/artifacts/contracts/instance/Instance.sol/Instance.json +640 -469
  33. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  34. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  35. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +18 -0
  36. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  37. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
  38. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  39. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
  40. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +18 -0
  42. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +41 -23
  44. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
  46. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
  48. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
  49. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +17 -48
  53. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +18 -49
  56. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +2 -2
  58. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +1 -1
  59. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +1 -1
  60. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
  61. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +36 -88
  62. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +36 -88
  65. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +65 -38
  68. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
  69. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +65 -38
  70. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
  71. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
  72. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -5
  73. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
  74. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -5
  75. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
  76. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +123 -1
  78. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
  79. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +145 -5
  80. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
  81. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
  82. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +166 -168
  83. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  84. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
  85. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
  86. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +167 -169
  87. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +21 -21
  89. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +71 -0
  93. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +6 -6
  95. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +97 -26
  97. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  98. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  99. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  100. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  101. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  102. package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
  103. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  104. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
  105. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  106. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  107. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  108. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  109. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  110. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
  111. package/artifacts/contracts/test/TestPool.sol/TestPool.json +72 -4
  112. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
  113. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +90 -4
  114. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  115. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
  116. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  117. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  118. package/artifacts/contracts/test/TestService.sol/TestService.json +2 -2
  119. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  120. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  121. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  122. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  123. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  124. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  125. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  126. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  127. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  128. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  129. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  130. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  131. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  132. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  133. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  134. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  135. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  136. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  137. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  138. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  139. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  140. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
  141. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  142. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  143. package/contracts/components/BaseComponent.sol +7 -1
  144. package/contracts/components/Pool.sol +20 -3
  145. package/contracts/components/Product.sol +69 -5
  146. package/contracts/instance/IInstance.sol +3 -4
  147. package/contracts/instance/Instance.sol +7 -4
  148. package/contracts/instance/base/IInstanceBase.sol +5 -0
  149. package/contracts/instance/base/IKeyValueStore.sol +4 -3
  150. package/contracts/instance/base/InstanceBase.sol +6 -2
  151. package/contracts/instance/base/KeyValueStore.sol +12 -7
  152. package/contracts/instance/base/Lifecycle.sol +15 -10
  153. package/contracts/instance/base/ModuleBase.sol +18 -17
  154. package/contracts/instance/module/bundle/BundleModule.sol +10 -11
  155. package/contracts/instance/module/bundle/IBundle.sol +4 -11
  156. package/contracts/instance/module/compensation/CompensationModule.sol +11 -2
  157. package/contracts/instance/module/component/ComponentModule.sol +39 -53
  158. package/contracts/instance/module/component/IComponent.sol +6 -30
  159. package/contracts/instance/module/policy/IPolicy.sol +11 -9
  160. package/contracts/instance/module/policy/PolicyModule.sol +35 -19
  161. package/contracts/instance/module/pool/IPoolModule.sol +0 -1
  162. package/contracts/instance/module/pool/PoolModule.sol +12 -9
  163. package/contracts/instance/module/risk/IRisk.sol +19 -2
  164. package/contracts/instance/module/risk/RiskModule.sol +64 -2
  165. package/contracts/instance/module/treasury/ITreasury.sol +35 -42
  166. package/contracts/instance/module/treasury/TreasuryModule.sol +96 -77
  167. package/contracts/instance/service/ComponentOwnerService.sol +19 -34
  168. package/contracts/instance/service/IProductService.sol +21 -1
  169. package/contracts/instance/service/PoolService.sol +10 -4
  170. package/contracts/instance/service/ProductService.sol +120 -68
  171. package/contracts/registry/Registry.sol +2 -2
  172. package/contracts/test/TestPool.sol +4 -2
  173. package/contracts/test/TestProduct.sol +25 -3
  174. package/contracts/types/ObjectType.sol +20 -8
  175. package/contracts/types/RiskId.sol +43 -0
  176. package/package.json +1 -1
@@ -71,11 +71,6 @@
71
71
  "outputs": [
72
72
  {
73
73
  "components": [
74
- {
75
- "internalType": "NftId",
76
- "name": "nftId",
77
- "type": "uint96"
78
- },
79
74
  {
80
75
  "internalType": "NftId",
81
76
  "name": "poolNftId",
@@ -121,13 +116,19 @@
121
116
  "type": "function"
122
117
  },
123
118
  {
124
- "inputs": [],
125
- "name": "getKeyValueStore",
119
+ "inputs": [
120
+ {
121
+ "internalType": "NftId",
122
+ "name": "bundleNftId",
123
+ "type": "uint96"
124
+ }
125
+ ],
126
+ "name": "getBundleState",
126
127
  "outputs": [
127
128
  {
128
- "internalType": "contract IKeyValueStore",
129
- "name": "keyValueStore",
130
- "type": "address"
129
+ "internalType": "StateId",
130
+ "name": "state",
131
+ "type": "uint8"
131
132
  }
132
133
  ],
133
134
  "stateMutability": "view",
@@ -159,19 +160,6 @@
159
160
  "stateMutability": "nonpayable",
160
161
  "type": "function"
161
162
  },
162
- {
163
- "inputs": [],
164
- "name": "getRegistry",
165
- "outputs": [
166
- {
167
- "internalType": "contract IRegistry",
168
- "name": "registry",
169
- "type": "address"
170
- }
171
- ],
172
- "stateMutability": "view",
173
- "type": "function"
174
- },
175
163
  {
176
164
  "inputs": [
177
165
  {
@@ -198,13 +186,13 @@
198
186
  },
199
187
  {
200
188
  "inputs": [
189
+ {
190
+ "internalType": "NftId",
191
+ "name": "bundleNftId",
192
+ "type": "uint96"
193
+ },
201
194
  {
202
195
  "components": [
203
- {
204
- "internalType": "NftId",
205
- "name": "nftId",
206
- "type": "uint96"
207
- },
208
196
  {
209
197
  "internalType": "NftId",
210
198
  "name": "poolNftId",
@@ -242,7 +230,7 @@
242
230
  }
243
231
  ],
244
232
  "internalType": "struct IBundle.BundleInfo",
245
- "name": "bundleInfo",
233
+ "name": "info",
246
234
  "type": "tuple"
247
235
  }
248
236
  ],
@@ -251,25 +239,6 @@
251
239
  "stateMutability": "nonpayable",
252
240
  "type": "function"
253
241
  },
254
- {
255
- "inputs": [
256
- {
257
- "internalType": "NftId",
258
- "name": "bundleNftId",
259
- "type": "uint96"
260
- }
261
- ],
262
- "name": "toBundleKey32",
263
- "outputs": [
264
- {
265
- "internalType": "Key32",
266
- "name": "key32",
267
- "type": "bytes32"
268
- }
269
- ],
270
- "stateMutability": "view",
271
- "type": "function"
272
- },
273
242
  {
274
243
  "inputs": [
275
244
  {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -63,7 +63,7 @@
63
63
  "inputs": [
64
64
  {
65
65
  "internalType": "NftId",
66
- "name": "bundleNftId",
66
+ "name": "nftId",
67
67
  "type": "uint96"
68
68
  }
69
69
  ],
@@ -71,11 +71,6 @@
71
71
  "outputs": [
72
72
  {
73
73
  "components": [
74
- {
75
- "internalType": "NftId",
76
- "name": "nftId",
77
- "type": "uint96"
78
- },
79
74
  {
80
75
  "internalType": "NftId",
81
76
  "name": "poolNftId",
@@ -121,13 +116,19 @@
121
116
  "type": "function"
122
117
  },
123
118
  {
124
- "inputs": [],
125
- "name": "getKeyValueStore",
119
+ "inputs": [
120
+ {
121
+ "internalType": "NftId",
122
+ "name": "nftId",
123
+ "type": "uint96"
124
+ }
125
+ ],
126
+ "name": "getBundleState",
126
127
  "outputs": [
127
128
  {
128
- "internalType": "contract IKeyValueStore",
129
- "name": "keyValueStore",
130
- "type": "address"
129
+ "internalType": "StateId",
130
+ "name": "state",
131
+ "type": "uint8"
131
132
  }
132
133
  ],
133
134
  "stateMutability": "view",
@@ -159,19 +160,6 @@
159
160
  "stateMutability": "nonpayable",
160
161
  "type": "function"
161
162
  },
162
- {
163
- "inputs": [],
164
- "name": "getRegistry",
165
- "outputs": [
166
- {
167
- "internalType": "contract IRegistry",
168
- "name": "registry",
169
- "type": "address"
170
- }
171
- ],
172
- "stateMutability": "view",
173
- "type": "function"
174
- },
175
163
  {
176
164
  "inputs": [
177
165
  {
@@ -198,13 +186,13 @@
198
186
  },
199
187
  {
200
188
  "inputs": [
189
+ {
190
+ "internalType": "NftId",
191
+ "name": "nftId",
192
+ "type": "uint96"
193
+ },
201
194
  {
202
195
  "components": [
203
- {
204
- "internalType": "NftId",
205
- "name": "nftId",
206
- "type": "uint96"
207
- },
208
196
  {
209
197
  "internalType": "NftId",
210
198
  "name": "poolNftId",
@@ -255,26 +243,7 @@
255
243
  "inputs": [
256
244
  {
257
245
  "internalType": "NftId",
258
- "name": "bundleNftId",
259
- "type": "uint96"
260
- }
261
- ],
262
- "name": "toBundleKey32",
263
- "outputs": [
264
- {
265
- "internalType": "Key32",
266
- "name": "key32",
267
- "type": "bytes32"
268
- }
269
- ],
270
- "stateMutability": "view",
271
- "type": "function"
272
- },
273
- {
274
- "inputs": [
275
- {
276
- "internalType": "NftId",
277
- "name": "bundleNftId",
246
+ "name": "nftId",
278
247
  "type": "uint96"
279
248
  },
280
249
  {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -3,8 +3,8 @@
3
3
  "contractName": "CompensationModule",
4
4
  "sourceName": "contracts/instance/module/compensation/CompensationModule.sol",
5
5
  "abi": [],
6
- "bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea2646970667358221220e083bd536daa38f4ab2da87a47489460180ca9e737890e3707e2279d6bddbb1d64736f6c63430008140033",
7
- "deployedBytecode": "0x6080604052600080fdfea2646970667358221220e083bd536daa38f4ab2da87a47489460180ca9e737890e3707e2279d6bddbb1d64736f6c63430008140033",
6
+ "bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea264697066735822122040436dc077f2612b70b9fb9a858648b801988ae64c8e5ff6c5b2c00785cca8e364736f6c63430008140033",
7
+ "deployedBytecode": "0x6080604052600080fdfea264697066735822122040436dc077f2612b70b9fb9a858648b801988ae64c8e5ff6c5b2c00785cca8e364736f6c63430008140033",
8
8
  "linkReferences": {},
9
9
  "deployedLinkReferences": {}
10
10
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -35,6 +35,19 @@
35
35
  "stateMutability": "view",
36
36
  "type": "function"
37
37
  },
38
+ {
39
+ "inputs": [],
40
+ "name": "getComponentOwnerService",
41
+ "outputs": [
42
+ {
43
+ "internalType": "contract IComponentOwnerService",
44
+ "name": "",
45
+ "type": "address"
46
+ }
47
+ ],
48
+ "stateMutability": "view",
49
+ "type": "function"
50
+ },
38
51
  {
39
52
  "inputs": [
40
53
  {
@@ -43,54 +56,30 @@
43
56
  "type": "uint96"
44
57
  }
45
58
  ],
46
- "name": "getComponentInfo",
59
+ "name": "getComponentState",
47
60
  "outputs": [
48
61
  {
49
- "components": [
50
- {
51
- "internalType": "NftId",
52
- "name": "nftId",
53
- "type": "uint96"
54
- },
55
- {
56
- "internalType": "StateId",
57
- "name": "state",
58
- "type": "uint8"
59
- },
60
- {
61
- "internalType": "contract IERC20Metadata",
62
- "name": "token",
63
- "type": "address"
64
- }
65
- ],
66
- "internalType": "struct IComponent.ComponentInfo",
67
- "name": "",
68
- "type": "tuple"
62
+ "internalType": "StateId",
63
+ "name": "state",
64
+ "type": "uint8"
69
65
  }
70
66
  ],
71
67
  "stateMutability": "view",
72
68
  "type": "function"
73
69
  },
74
70
  {
75
- "inputs": [],
76
- "name": "getComponentOwnerService",
77
- "outputs": [
71
+ "inputs": [
78
72
  {
79
- "internalType": "contract IComponentOwnerService",
80
- "name": "",
81
- "type": "address"
73
+ "internalType": "NftId",
74
+ "name": "nftId",
75
+ "type": "uint96"
82
76
  }
83
77
  ],
84
- "stateMutability": "view",
85
- "type": "function"
86
- },
87
- {
88
- "inputs": [],
89
- "name": "getRegistry",
78
+ "name": "getComponentToken",
90
79
  "outputs": [
91
80
  {
92
- "internalType": "contract IRegistry",
93
- "name": "registry",
81
+ "internalType": "contract IERC20Metadata",
82
+ "name": "token",
94
83
  "type": "address"
95
84
  }
96
85
  ],
@@ -100,22 +89,17 @@
100
89
  {
101
90
  "inputs": [
102
91
  {
103
- "internalType": "RoleId",
104
- "name": "role",
105
- "type": "bytes8"
106
- },
107
- {
108
- "internalType": "address",
109
- "name": "member",
110
- "type": "address"
92
+ "internalType": "NftId",
93
+ "name": "nftId",
94
+ "type": "uint96"
111
95
  }
112
96
  ],
113
- "name": "hasRole",
97
+ "name": "getComponentWallet",
114
98
  "outputs": [
115
99
  {
116
- "internalType": "bool",
117
- "name": "",
118
- "type": "bool"
100
+ "internalType": "address",
101
+ "name": "wallet",
102
+ "type": "address"
119
103
  }
120
104
  ],
121
105
  "stateMutability": "view",
@@ -128,57 +112,21 @@
128
112
  "name": "nftId",
129
113
  "type": "uint96"
130
114
  },
131
- {
132
- "internalType": "ObjectType",
133
- "name": "objectType",
134
- "type": "uint8"
135
- },
136
115
  {
137
116
  "internalType": "contract IERC20Metadata",
138
117
  "name": "token",
139
118
  "type": "address"
119
+ },
120
+ {
121
+ "internalType": "address",
122
+ "name": "wallet",
123
+ "type": "address"
140
124
  }
141
125
  ],
142
126
  "name": "registerComponent",
143
127
  "outputs": [],
144
128
  "stateMutability": "nonpayable",
145
129
  "type": "function"
146
- },
147
- {
148
- "inputs": [
149
- {
150
- "components": [
151
- {
152
- "internalType": "NftId",
153
- "name": "nftId",
154
- "type": "uint96"
155
- },
156
- {
157
- "internalType": "StateId",
158
- "name": "state",
159
- "type": "uint8"
160
- },
161
- {
162
- "internalType": "contract IERC20Metadata",
163
- "name": "token",
164
- "type": "address"
165
- }
166
- ],
167
- "internalType": "struct IComponent.ComponentInfo",
168
- "name": "info",
169
- "type": "tuple"
170
- }
171
- ],
172
- "name": "setComponentInfo",
173
- "outputs": [
174
- {
175
- "internalType": "NftId",
176
- "name": "nftId",
177
- "type": "uint96"
178
- }
179
- ],
180
- "stateMutability": "nonpayable",
181
- "type": "function"
182
130
  }
183
131
  ],
184
132
  "bytecode": "0x",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -35,6 +35,19 @@
35
35
  "stateMutability": "view",
36
36
  "type": "function"
37
37
  },
38
+ {
39
+ "inputs": [],
40
+ "name": "getComponentOwnerService",
41
+ "outputs": [
42
+ {
43
+ "internalType": "contract IComponentOwnerService",
44
+ "name": "",
45
+ "type": "address"
46
+ }
47
+ ],
48
+ "stateMutability": "view",
49
+ "type": "function"
50
+ },
38
51
  {
39
52
  "inputs": [
40
53
  {
@@ -43,54 +56,30 @@
43
56
  "type": "uint96"
44
57
  }
45
58
  ],
46
- "name": "getComponentInfo",
59
+ "name": "getComponentState",
47
60
  "outputs": [
48
61
  {
49
- "components": [
50
- {
51
- "internalType": "NftId",
52
- "name": "nftId",
53
- "type": "uint96"
54
- },
55
- {
56
- "internalType": "StateId",
57
- "name": "state",
58
- "type": "uint8"
59
- },
60
- {
61
- "internalType": "contract IERC20Metadata",
62
- "name": "token",
63
- "type": "address"
64
- }
65
- ],
66
- "internalType": "struct IComponent.ComponentInfo",
67
- "name": "info",
68
- "type": "tuple"
62
+ "internalType": "StateId",
63
+ "name": "state",
64
+ "type": "uint8"
69
65
  }
70
66
  ],
71
67
  "stateMutability": "view",
72
68
  "type": "function"
73
69
  },
74
70
  {
75
- "inputs": [],
76
- "name": "getComponentOwnerService",
77
- "outputs": [
71
+ "inputs": [
78
72
  {
79
- "internalType": "contract IComponentOwnerService",
80
- "name": "",
81
- "type": "address"
73
+ "internalType": "NftId",
74
+ "name": "nftId",
75
+ "type": "uint96"
82
76
  }
83
77
  ],
84
- "stateMutability": "view",
85
- "type": "function"
86
- },
87
- {
88
- "inputs": [],
89
- "name": "getRegistry",
78
+ "name": "getComponentToken",
90
79
  "outputs": [
91
80
  {
92
- "internalType": "contract IRegistry",
93
- "name": "registry",
81
+ "internalType": "contract IERC20Metadata",
82
+ "name": "token",
94
83
  "type": "address"
95
84
  }
96
85
  ],
@@ -100,22 +89,17 @@
100
89
  {
101
90
  "inputs": [
102
91
  {
103
- "internalType": "RoleId",
104
- "name": "role",
105
- "type": "bytes8"
106
- },
107
- {
108
- "internalType": "address",
109
- "name": "member",
110
- "type": "address"
92
+ "internalType": "NftId",
93
+ "name": "nftId",
94
+ "type": "uint96"
111
95
  }
112
96
  ],
113
- "name": "hasRole",
97
+ "name": "getComponentWallet",
114
98
  "outputs": [
115
99
  {
116
- "internalType": "bool",
117
- "name": "",
118
- "type": "bool"
100
+ "internalType": "address",
101
+ "name": "wallet",
102
+ "type": "address"
119
103
  }
120
104
  ],
121
105
  "stateMutability": "view",
@@ -128,57 +112,21 @@
128
112
  "name": "nftId",
129
113
  "type": "uint96"
130
114
  },
131
- {
132
- "internalType": "ObjectType",
133
- "name": "objectType",
134
- "type": "uint8"
135
- },
136
115
  {
137
116
  "internalType": "contract IERC20Metadata",
138
117
  "name": "token",
139
118
  "type": "address"
119
+ },
120
+ {
121
+ "internalType": "address",
122
+ "name": "wallet",
123
+ "type": "address"
140
124
  }
141
125
  ],
142
126
  "name": "registerComponent",
143
127
  "outputs": [],
144
128
  "stateMutability": "nonpayable",
145
129
  "type": "function"
146
- },
147
- {
148
- "inputs": [
149
- {
150
- "components": [
151
- {
152
- "internalType": "NftId",
153
- "name": "nftId",
154
- "type": "uint96"
155
- },
156
- {
157
- "internalType": "StateId",
158
- "name": "state",
159
- "type": "uint8"
160
- },
161
- {
162
- "internalType": "contract IERC20Metadata",
163
- "name": "token",
164
- "type": "address"
165
- }
166
- ],
167
- "internalType": "struct IComponent.ComponentInfo",
168
- "name": "info",
169
- "type": "tuple"
170
- }
171
- ],
172
- "name": "setComponentInfo",
173
- "outputs": [
174
- {
175
- "internalType": "NftId",
176
- "name": "componentNftId",
177
- "type": "uint96"
178
- }
179
- ],
180
- "stateMutability": "nonpayable",
181
- "type": "function"
182
130
  }
183
131
  ],
184
132
  "bytecode": "0x",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }