@etherisc/gif-next 0.0.2-ed4dd55 → 0.0.2-f74fcad-685
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +33 -0
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +35 -9
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +2 -2
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +84 -8
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +34 -152
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +146 -13
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +148 -15
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +4 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +105 -0
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +4 -0
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +105 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
- 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 +4 -0
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +714 -127
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +845 -129
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +1 -1
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +1 -1
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +31 -59
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +103 -6
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +34 -8
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +31 -59
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +50 -3
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +1 -1
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +134 -0
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.json +182 -0
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +221 -0
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +44 -21
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +44 -21
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +1 -1
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +23 -43
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +28 -35
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +1 -1
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +21 -8
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +1 -1
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +85 -14
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.json +10 -0
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.json +490 -0
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +45 -0
- package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.json +490 -0
- package/artifacts/contracts/mock/Dip.sol/DIP.dbg.json +4 -0
- package/artifacts/contracts/mock/Dip.sol/DIP.json +338 -0
- package/artifacts/contracts/mock/TestPool.sol/TestPool.dbg.json +4 -0
- package/artifacts/contracts/mock/TestPool.sol/TestPool.json +294 -0
- package/artifacts/contracts/mock/TestProduct.sol/TestProduct.dbg.json +4 -0
- package/artifacts/contracts/mock/TestProduct.sol/TestProduct.json +384 -0
- package/artifacts/contracts/mock/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/mock/Usdc.sol/USDC.json +338 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +8 -8
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +20 -111
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registerable.json +9 -9
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +66 -115
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +2 -2
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +85 -3
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +174 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +479 -0
- package/contracts/components/Component.sol +39 -24
- package/contracts/components/IPool.sol +9 -3
- package/contracts/components/IProduct.sol +11 -6
- package/contracts/components/Pool.sol +37 -14
- package/contracts/components/Product.sol +48 -24
- package/contracts/experiment/errors/Require.sol +38 -0
- package/contracts/experiment/errors/Revert.sol +44 -0
- package/contracts/experiment/inheritance/A.sol +8 -11
- package/contracts/experiment/inheritance/B.sol +10 -5
- package/contracts/experiment/inheritance/C.sol +11 -5
- package/contracts/experiment/inheritance/IA.sol +2 -7
- package/contracts/experiment/inheritance/IB.sol +3 -2
- package/contracts/experiment/inheritance/IC.sol +4 -3
- package/contracts/experiment/statemachine/Dummy.sol +27 -0
- package/contracts/experiment/statemachine/ISM.sol +25 -0
- package/contracts/experiment/statemachine/README.md +112 -0
- package/contracts/experiment/statemachine/SM.sol +57 -0
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
- package/contracts/experiment/types/TypeA.sol +14 -9
- package/contracts/experiment/types/TypeB.sol +14 -9
- package/contracts/instance/IInstance.sol +8 -3
- package/contracts/instance/Instance.sol +24 -15
- package/contracts/instance/access/Access.sol +63 -116
- package/contracts/instance/access/IAccess.sol +28 -48
- package/contracts/instance/component/ComponentModule.sol +162 -147
- package/contracts/instance/component/IComponent.sol +41 -61
- package/contracts/instance/lifecycle/ILifecycle.sol +47 -0
- package/contracts/instance/lifecycle/LifecycleModule.sol +88 -0
- package/contracts/instance/policy/IPolicy.sol +19 -35
- package/contracts/instance/policy/PolicyModule.sol +52 -44
- package/contracts/instance/pool/IPoolModule.sol +9 -26
- package/contracts/instance/pool/PoolModule.sol +43 -45
- package/contracts/instance/product/IProductService.sol +10 -19
- package/contracts/instance/product/ProductService.sol +86 -55
- package/contracts/instance/treasury/ITreasury.sol +91 -0
- package/contracts/instance/treasury/TokenHandler.sol +24 -0
- package/contracts/instance/treasury/TreasuryModule.sol +168 -0
- package/contracts/mock/Dip.sol +26 -0
- package/contracts/mock/TestPool.sol +16 -0
- package/contracts/mock/TestProduct.sol +39 -0
- package/contracts/mock/Usdc.sol +26 -0
- package/contracts/registry/ChainNft.sol +23 -61
- package/contracts/registry/IChainNft.sol +10 -7
- package/contracts/registry/IRegistry.sol +40 -41
- package/contracts/registry/Registry.sol +73 -67
- package/contracts/types/Blocknumber.sol +118 -0
- package/contracts/types/ChainId.sol +24 -10
- package/contracts/types/Fee.sol +32 -0
- package/contracts/types/NftId.sol +36 -10
- package/contracts/types/ObjectType.sol +107 -0
- package/contracts/types/StateId.sol +91 -0
- package/contracts/types/Timestamp.sol +102 -0
- package/contracts/types/UFixed.sol +210 -0
- package/package.json +14 -5
@@ -52,9 +52,9 @@
|
|
52
52
|
"name": "getComponentId",
|
53
53
|
"outputs": [
|
54
54
|
{
|
55
|
-
"internalType": "
|
56
|
-
"name": "
|
57
|
-
"type": "
|
55
|
+
"internalType": "NftId",
|
56
|
+
"name": "nftId",
|
57
|
+
"type": "uint96"
|
58
58
|
}
|
59
59
|
],
|
60
60
|
"stateMutability": "view",
|
@@ -71,9 +71,9 @@
|
|
71
71
|
"name": "getComponentId",
|
72
72
|
"outputs": [
|
73
73
|
{
|
74
|
-
"internalType": "
|
75
|
-
"name": "
|
76
|
-
"type": "
|
74
|
+
"internalType": "NftId",
|
75
|
+
"name": "nftId",
|
76
|
+
"type": "uint96"
|
77
77
|
}
|
78
78
|
],
|
79
79
|
"stateMutability": "view",
|
@@ -82,9 +82,9 @@
|
|
82
82
|
{
|
83
83
|
"inputs": [
|
84
84
|
{
|
85
|
-
"internalType": "
|
86
|
-
"name": "
|
87
|
-
"type": "
|
85
|
+
"internalType": "NftId",
|
86
|
+
"name": "nftId",
|
87
|
+
"type": "uint96"
|
88
88
|
}
|
89
89
|
],
|
90
90
|
"name": "getComponentInfo",
|
@@ -92,14 +92,19 @@
|
|
92
92
|
{
|
93
93
|
"components": [
|
94
94
|
{
|
95
|
-
"internalType": "
|
95
|
+
"internalType": "NftId",
|
96
96
|
"name": "nftId",
|
97
|
-
"type": "
|
97
|
+
"type": "uint96"
|
98
98
|
},
|
99
99
|
{
|
100
|
-
"internalType": "
|
100
|
+
"internalType": "StateId",
|
101
101
|
"name": "state",
|
102
102
|
"type": "uint8"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"internalType": "contract IERC20Metadata",
|
106
|
+
"name": "token",
|
107
|
+
"type": "address"
|
103
108
|
}
|
104
109
|
],
|
105
110
|
"internalType": "struct IComponent.ComponentInfo",
|
@@ -110,25 +115,6 @@
|
|
110
115
|
"stateMutability": "view",
|
111
116
|
"type": "function"
|
112
117
|
},
|
113
|
-
{
|
114
|
-
"inputs": [
|
115
|
-
{
|
116
|
-
"internalType": "uint256",
|
117
|
-
"name": "id",
|
118
|
-
"type": "uint256"
|
119
|
-
}
|
120
|
-
],
|
121
|
-
"name": "getComponentOwner",
|
122
|
-
"outputs": [
|
123
|
-
{
|
124
|
-
"internalType": "address",
|
125
|
-
"name": "owner",
|
126
|
-
"type": "address"
|
127
|
-
}
|
128
|
-
],
|
129
|
-
"stateMutability": "view",
|
130
|
-
"type": "function"
|
131
|
-
},
|
132
118
|
{
|
133
119
|
"inputs": [],
|
134
120
|
"name": "getComponentOwnerService",
|
@@ -155,25 +141,6 @@
|
|
155
141
|
"stateMutability": "view",
|
156
142
|
"type": "function"
|
157
143
|
},
|
158
|
-
{
|
159
|
-
"inputs": [
|
160
|
-
{
|
161
|
-
"internalType": "uint256",
|
162
|
-
"name": "productNftId",
|
163
|
-
"type": "uint256"
|
164
|
-
}
|
165
|
-
],
|
166
|
-
"name": "getPoolNftId",
|
167
|
-
"outputs": [
|
168
|
-
{
|
169
|
-
"internalType": "uint256",
|
170
|
-
"name": "poolNftId",
|
171
|
-
"type": "uint256"
|
172
|
-
}
|
173
|
-
],
|
174
|
-
"stateMutability": "view",
|
175
|
-
"type": "function"
|
176
|
-
},
|
177
144
|
{
|
178
145
|
"inputs": [],
|
179
146
|
"name": "getRegistry",
|
@@ -198,9 +165,9 @@
|
|
198
165
|
"name": "registerComponent",
|
199
166
|
"outputs": [
|
200
167
|
{
|
201
|
-
"internalType": "
|
202
|
-
"name": "
|
203
|
-
"type": "
|
168
|
+
"internalType": "NftId",
|
169
|
+
"name": "nftId",
|
170
|
+
"type": "uint96"
|
204
171
|
}
|
205
172
|
],
|
206
173
|
"stateMutability": "nonpayable",
|
@@ -211,14 +178,19 @@
|
|
211
178
|
{
|
212
179
|
"components": [
|
213
180
|
{
|
214
|
-
"internalType": "
|
181
|
+
"internalType": "NftId",
|
215
182
|
"name": "nftId",
|
216
|
-
"type": "
|
183
|
+
"type": "uint96"
|
217
184
|
},
|
218
185
|
{
|
219
|
-
"internalType": "
|
186
|
+
"internalType": "StateId",
|
220
187
|
"name": "state",
|
221
188
|
"type": "uint8"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"internalType": "contract IERC20Metadata",
|
192
|
+
"name": "token",
|
193
|
+
"type": "address"
|
222
194
|
}
|
223
195
|
],
|
224
196
|
"internalType": "struct IComponent.ComponentInfo",
|
@@ -229,9 +201,9 @@
|
|
229
201
|
"name": "setComponentInfo",
|
230
202
|
"outputs": [
|
231
203
|
{
|
232
|
-
"internalType": "
|
233
|
-
"name": "
|
234
|
-
"type": "
|
204
|
+
"internalType": "NftId",
|
205
|
+
"name": "componentNftId",
|
206
|
+
"type": "uint96"
|
235
207
|
}
|
236
208
|
],
|
237
209
|
"stateMutability": "nonpayable",
|
@@ -65,14 +65,61 @@
|
|
65
65
|
"name": "register",
|
66
66
|
"outputs": [
|
67
67
|
{
|
68
|
-
"internalType": "
|
69
|
-
"name": "
|
70
|
-
"type": "
|
68
|
+
"internalType": "NftId",
|
69
|
+
"name": "nftId",
|
70
|
+
"type": "uint96"
|
71
71
|
}
|
72
72
|
],
|
73
73
|
"stateMutability": "nonpayable",
|
74
74
|
"type": "function"
|
75
75
|
},
|
76
|
+
{
|
77
|
+
"inputs": [
|
78
|
+
{
|
79
|
+
"internalType": "contract IComponentContract",
|
80
|
+
"name": "product",
|
81
|
+
"type": "address"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"components": [
|
85
|
+
{
|
86
|
+
"internalType": "UFixed",
|
87
|
+
"name": "fractionalFee",
|
88
|
+
"type": "uint256"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"internalType": "uint256",
|
92
|
+
"name": "fixedFee",
|
93
|
+
"type": "uint256"
|
94
|
+
}
|
95
|
+
],
|
96
|
+
"internalType": "struct Fee",
|
97
|
+
"name": "policyFee",
|
98
|
+
"type": "tuple"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"components": [
|
102
|
+
{
|
103
|
+
"internalType": "UFixed",
|
104
|
+
"name": "fractionalFee",
|
105
|
+
"type": "uint256"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"internalType": "uint256",
|
109
|
+
"name": "fixedFee",
|
110
|
+
"type": "uint256"
|
111
|
+
}
|
112
|
+
],
|
113
|
+
"internalType": "struct Fee",
|
114
|
+
"name": "processingFee",
|
115
|
+
"type": "tuple"
|
116
|
+
}
|
117
|
+
],
|
118
|
+
"name": "setProductFees",
|
119
|
+
"outputs": [],
|
120
|
+
"stateMutability": "nonpayable",
|
121
|
+
"type": "function"
|
122
|
+
},
|
76
123
|
{
|
77
124
|
"inputs": [
|
78
125
|
{
|
@@ -0,0 +1,134 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "ILifecycle",
|
4
|
+
"sourceName": "contracts/instance/lifecycle/ILifecycle.sol",
|
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
|
+
{
|
49
|
+
"anonymous": false,
|
50
|
+
"inputs": [
|
51
|
+
{
|
52
|
+
"indexed": false,
|
53
|
+
"internalType": "NftId",
|
54
|
+
"name": "nftId",
|
55
|
+
"type": "uint96"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"indexed": false,
|
59
|
+
"internalType": "StateId",
|
60
|
+
"name": "fromStateId",
|
61
|
+
"type": "uint8"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"indexed": false,
|
65
|
+
"internalType": "StateId",
|
66
|
+
"name": "toStateId",
|
67
|
+
"type": "uint8"
|
68
|
+
}
|
69
|
+
],
|
70
|
+
"name": "LogBundleStateChanged",
|
71
|
+
"type": "event"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"anonymous": false,
|
75
|
+
"inputs": [
|
76
|
+
{
|
77
|
+
"indexed": false,
|
78
|
+
"internalType": "NftId",
|
79
|
+
"name": "nftId",
|
80
|
+
"type": "uint96"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"indexed": false,
|
84
|
+
"internalType": "ObjectType",
|
85
|
+
"name": "objectType",
|
86
|
+
"type": "uint8"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"indexed": false,
|
90
|
+
"internalType": "StateId",
|
91
|
+
"name": "fromStateId",
|
92
|
+
"type": "uint8"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"indexed": false,
|
96
|
+
"internalType": "StateId",
|
97
|
+
"name": "toStateId",
|
98
|
+
"type": "uint8"
|
99
|
+
}
|
100
|
+
],
|
101
|
+
"name": "LogComponentStateChanged",
|
102
|
+
"type": "event"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"anonymous": false,
|
106
|
+
"inputs": [
|
107
|
+
{
|
108
|
+
"indexed": false,
|
109
|
+
"internalType": "NftId",
|
110
|
+
"name": "nftId",
|
111
|
+
"type": "uint96"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"indexed": false,
|
115
|
+
"internalType": "StateId",
|
116
|
+
"name": "fromStateId",
|
117
|
+
"type": "uint8"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"indexed": false,
|
121
|
+
"internalType": "StateId",
|
122
|
+
"name": "toStateId",
|
123
|
+
"type": "uint8"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"name": "LogPolicyStateChanged",
|
127
|
+
"type": "event"
|
128
|
+
}
|
129
|
+
],
|
130
|
+
"bytecode": "0x",
|
131
|
+
"deployedBytecode": "0x",
|
132
|
+
"linkReferences": {},
|
133
|
+
"deployedLinkReferences": {}
|
134
|
+
}
|
@@ -0,0 +1,182 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "ILifecycleModule",
|
4
|
+
"sourceName": "contracts/instance/lifecycle/ILifecycle.sol",
|
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
|
+
{
|
49
|
+
"anonymous": false,
|
50
|
+
"inputs": [
|
51
|
+
{
|
52
|
+
"indexed": false,
|
53
|
+
"internalType": "NftId",
|
54
|
+
"name": "nftId",
|
55
|
+
"type": "uint96"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"indexed": false,
|
59
|
+
"internalType": "StateId",
|
60
|
+
"name": "fromStateId",
|
61
|
+
"type": "uint8"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"indexed": false,
|
65
|
+
"internalType": "StateId",
|
66
|
+
"name": "toStateId",
|
67
|
+
"type": "uint8"
|
68
|
+
}
|
69
|
+
],
|
70
|
+
"name": "LogBundleStateChanged",
|
71
|
+
"type": "event"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"anonymous": false,
|
75
|
+
"inputs": [
|
76
|
+
{
|
77
|
+
"indexed": false,
|
78
|
+
"internalType": "NftId",
|
79
|
+
"name": "nftId",
|
80
|
+
"type": "uint96"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"indexed": false,
|
84
|
+
"internalType": "ObjectType",
|
85
|
+
"name": "objectType",
|
86
|
+
"type": "uint8"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"indexed": false,
|
90
|
+
"internalType": "StateId",
|
91
|
+
"name": "fromStateId",
|
92
|
+
"type": "uint8"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"indexed": false,
|
96
|
+
"internalType": "StateId",
|
97
|
+
"name": "toStateId",
|
98
|
+
"type": "uint8"
|
99
|
+
}
|
100
|
+
],
|
101
|
+
"name": "LogComponentStateChanged",
|
102
|
+
"type": "event"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"anonymous": false,
|
106
|
+
"inputs": [
|
107
|
+
{
|
108
|
+
"indexed": false,
|
109
|
+
"internalType": "NftId",
|
110
|
+
"name": "nftId",
|
111
|
+
"type": "uint96"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"indexed": false,
|
115
|
+
"internalType": "StateId",
|
116
|
+
"name": "fromStateId",
|
117
|
+
"type": "uint8"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"indexed": false,
|
121
|
+
"internalType": "StateId",
|
122
|
+
"name": "toStateId",
|
123
|
+
"type": "uint8"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"name": "LogPolicyStateChanged",
|
127
|
+
"type": "event"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"inputs": [
|
131
|
+
{
|
132
|
+
"internalType": "ObjectType",
|
133
|
+
"name": "objectType",
|
134
|
+
"type": "uint8"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"name": "getInitialState",
|
138
|
+
"outputs": [
|
139
|
+
{
|
140
|
+
"internalType": "StateId",
|
141
|
+
"name": "",
|
142
|
+
"type": "uint8"
|
143
|
+
}
|
144
|
+
],
|
145
|
+
"stateMutability": "view",
|
146
|
+
"type": "function"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"inputs": [
|
150
|
+
{
|
151
|
+
"internalType": "ObjectType",
|
152
|
+
"name": "objectType",
|
153
|
+
"type": "uint8"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"internalType": "StateId",
|
157
|
+
"name": "fromId",
|
158
|
+
"type": "uint8"
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"internalType": "StateId",
|
162
|
+
"name": "toId",
|
163
|
+
"type": "uint8"
|
164
|
+
}
|
165
|
+
],
|
166
|
+
"name": "isValidTransition",
|
167
|
+
"outputs": [
|
168
|
+
{
|
169
|
+
"internalType": "bool",
|
170
|
+
"name": "",
|
171
|
+
"type": "bool"
|
172
|
+
}
|
173
|
+
],
|
174
|
+
"stateMutability": "view",
|
175
|
+
"type": "function"
|
176
|
+
}
|
177
|
+
],
|
178
|
+
"bytecode": "0x",
|
179
|
+
"deployedBytecode": "0x",
|
180
|
+
"linkReferences": {},
|
181
|
+
"deployedLinkReferences": {}
|
182
|
+
}
|