@etherisc/gif-next 0.0.2-fc8b370-882 → 0.0.2-fe34d97-357
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +36 -0
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +72 -4
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +46 -3
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +540 -401
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +640 -469
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +18 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +18 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +41 -23
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +17 -48
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +18 -49
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +2 -2
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +1 -1
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +36 -88
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +36 -88
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +65 -38
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +65 -38
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -5
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -5
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +123 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +145 -5
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +166 -168
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +167 -169
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +21 -21
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +71 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +6 -6
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +97 -26
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +72 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +90 -4
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +2 -2
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/contracts/components/BaseComponent.sol +7 -1
- package/contracts/components/Pool.sol +20 -3
- package/contracts/components/Product.sol +69 -5
- package/contracts/instance/IInstance.sol +3 -4
- package/contracts/instance/Instance.sol +7 -4
- package/contracts/instance/base/IInstanceBase.sol +5 -0
- package/contracts/instance/base/IKeyValueStore.sol +4 -3
- package/contracts/instance/base/InstanceBase.sol +6 -2
- package/contracts/instance/base/KeyValueStore.sol +12 -7
- package/contracts/instance/base/Lifecycle.sol +15 -10
- package/contracts/instance/base/ModuleBase.sol +18 -17
- package/contracts/instance/module/bundle/BundleModule.sol +10 -11
- package/contracts/instance/module/bundle/IBundle.sol +4 -11
- package/contracts/instance/module/compensation/CompensationModule.sol +11 -2
- package/contracts/instance/module/component/ComponentModule.sol +39 -53
- package/contracts/instance/module/component/IComponent.sol +6 -30
- package/contracts/instance/module/policy/IPolicy.sol +11 -9
- package/contracts/instance/module/policy/PolicyModule.sol +35 -19
- package/contracts/instance/module/pool/IPoolModule.sol +0 -1
- package/contracts/instance/module/pool/PoolModule.sol +12 -9
- package/contracts/instance/module/risk/IRisk.sol +19 -2
- package/contracts/instance/module/risk/RiskModule.sol +64 -2
- package/contracts/instance/module/treasury/ITreasury.sol +35 -42
- package/contracts/instance/module/treasury/TreasuryModule.sol +96 -77
- package/contracts/instance/service/ComponentOwnerService.sol +19 -34
- package/contracts/instance/service/IProductService.sol +21 -1
- package/contracts/instance/service/PoolService.sol +10 -4
- package/contracts/instance/service/ProductService.sol +120 -68
- package/contracts/registry/Registry.sol +2 -2
- package/contracts/test/TestPool.sol +4 -2
- package/contracts/test/TestProduct.sol +25 -3
- package/contracts/types/ObjectType.sol +20 -8
- package/contracts/types/RiskId.sol +43 -0
- 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
|
-
|
119
|
+
"inputs": [
|
120
|
+
{
|
121
|
+
"internalType": "NftId",
|
122
|
+
"name": "bundleNftId",
|
123
|
+
"type": "uint96"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"name": "getBundleState",
|
126
127
|
"outputs": [
|
127
128
|
{
|
128
|
-
"internalType": "
|
129
|
-
"name": "
|
130
|
-
"type": "
|
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": "
|
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
|
{
|
@@ -63,7 +63,7 @@
|
|
63
63
|
"inputs": [
|
64
64
|
{
|
65
65
|
"internalType": "NftId",
|
66
|
-
"name": "
|
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
|
-
|
119
|
+
"inputs": [
|
120
|
+
{
|
121
|
+
"internalType": "NftId",
|
122
|
+
"name": "nftId",
|
123
|
+
"type": "uint96"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"name": "getBundleState",
|
126
127
|
"outputs": [
|
127
128
|
{
|
128
|
-
"internalType": "
|
129
|
-
"name": "
|
130
|
-
"type": "
|
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": "
|
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
|
{
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"contractName": "CompensationModule",
|
4
4
|
"sourceName": "contracts/instance/module/compensation/CompensationModule.sol",
|
5
5
|
"abi": [],
|
6
|
-
"bytecode": "
|
7
|
-
"deployedBytecode": "
|
6
|
+
"bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea264697066735822122040436dc077f2612b70b9fb9a858648b801988ae64c8e5ff6c5b2c00785cca8e364736f6c63430008140033",
|
7
|
+
"deployedBytecode": "0x6080604052600080fdfea264697066735822122040436dc077f2612b70b9fb9a858648b801988ae64c8e5ff6c5b2c00785cca8e364736f6c63430008140033",
|
8
8
|
"linkReferences": {},
|
9
9
|
"deployedLinkReferences": {}
|
10
10
|
}
|
package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json
CHANGED
@@ -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": "
|
59
|
+
"name": "getComponentState",
|
47
60
|
"outputs": [
|
48
61
|
{
|
49
|
-
"
|
50
|
-
|
51
|
-
|
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": "
|
80
|
-
"name": "",
|
81
|
-
"type": "
|
73
|
+
"internalType": "NftId",
|
74
|
+
"name": "nftId",
|
75
|
+
"type": "uint96"
|
82
76
|
}
|
83
77
|
],
|
84
|
-
"
|
85
|
-
"type": "function"
|
86
|
-
},
|
87
|
-
{
|
88
|
-
"inputs": [],
|
89
|
-
"name": "getRegistry",
|
78
|
+
"name": "getComponentToken",
|
90
79
|
"outputs": [
|
91
80
|
{
|
92
|
-
"internalType": "contract
|
93
|
-
"name": "
|
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": "
|
104
|
-
"name": "
|
105
|
-
"type": "
|
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": "
|
97
|
+
"name": "getComponentWallet",
|
114
98
|
"outputs": [
|
115
99
|
{
|
116
|
-
"internalType": "
|
117
|
-
"name": "",
|
118
|
-
"type": "
|
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",
|
@@ -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": "
|
59
|
+
"name": "getComponentState",
|
47
60
|
"outputs": [
|
48
61
|
{
|
49
|
-
"
|
50
|
-
|
51
|
-
|
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": "
|
80
|
-
"name": "",
|
81
|
-
"type": "
|
73
|
+
"internalType": "NftId",
|
74
|
+
"name": "nftId",
|
75
|
+
"type": "uint96"
|
82
76
|
}
|
83
77
|
],
|
84
|
-
"
|
85
|
-
"type": "function"
|
86
|
-
},
|
87
|
-
{
|
88
|
-
"inputs": [],
|
89
|
-
"name": "getRegistry",
|
78
|
+
"name": "getComponentToken",
|
90
79
|
"outputs": [
|
91
80
|
{
|
92
|
-
"internalType": "contract
|
93
|
-
"name": "
|
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": "
|
104
|
-
"name": "
|
105
|
-
"type": "
|
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": "
|
97
|
+
"name": "getComponentWallet",
|
114
98
|
"outputs": [
|
115
99
|
{
|
116
|
-
"internalType": "
|
117
|
-
"name": "",
|
118
|
-
"type": "
|
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",
|