@cofhe/mock-contracts 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/TestBed.ts CHANGED
@@ -1,286 +1,288 @@
1
1
  // This file is auto-generated by build-artifacts.ts
2
- import { type MocksArtifact } from './index';
2
+ import { type MockArtifact } from './types';
3
3
 
4
4
  export const TestBedArtifact = {
5
- "contractName": "TestBed",
6
- "fixedAddress": "0x0000000000000000000000000000000000000300",
7
- "abi": [
5
+ contractName: 'TestBed',
6
+ isFixed: true,
7
+ fixedAddress: '0x0000000000000000000000000000000000005003',
8
+ abi: [
8
9
  {
9
- "type": "function",
10
- "name": "add",
11
- "inputs": [
10
+ type: 'function',
11
+ name: 'add',
12
+ inputs: [
12
13
  {
13
- "name": "inNumber",
14
- "type": "tuple",
15
- "internalType": "struct InEuint32",
16
- "components": [
14
+ name: 'inNumber',
15
+ type: 'tuple',
16
+ internalType: 'struct InEuint32',
17
+ components: [
17
18
  {
18
- "name": "ctHash",
19
- "type": "uint256",
20
- "internalType": "uint256"
19
+ name: 'ctHash',
20
+ type: 'uint256',
21
+ internalType: 'uint256',
21
22
  },
22
23
  {
23
- "name": "securityZone",
24
- "type": "uint8",
25
- "internalType": "uint8"
24
+ name: 'securityZone',
25
+ type: 'uint8',
26
+ internalType: 'uint8',
26
27
  },
27
28
  {
28
- "name": "utype",
29
- "type": "uint8",
30
- "internalType": "uint8"
29
+ name: 'utype',
30
+ type: 'uint8',
31
+ internalType: 'uint8',
31
32
  },
32
33
  {
33
- "name": "signature",
34
- "type": "bytes",
35
- "internalType": "bytes"
36
- }
37
- ]
38
- }
34
+ name: 'signature',
35
+ type: 'bytes',
36
+ internalType: 'bytes',
37
+ },
38
+ ],
39
+ },
39
40
  ],
40
- "outputs": [],
41
- "stateMutability": "nonpayable"
41
+ outputs: [],
42
+ stateMutability: 'nonpayable',
42
43
  },
43
44
  {
44
- "type": "function",
45
- "name": "decrypt",
46
- "inputs": [],
47
- "outputs": [],
48
- "stateMutability": "nonpayable"
45
+ type: 'function',
46
+ name: 'decrypt',
47
+ inputs: [],
48
+ outputs: [],
49
+ stateMutability: 'nonpayable',
49
50
  },
50
51
  {
51
- "type": "function",
52
- "name": "eNumber",
53
- "inputs": [],
54
- "outputs": [
52
+ type: 'function',
53
+ name: 'eNumber',
54
+ inputs: [],
55
+ outputs: [
55
56
  {
56
- "name": "",
57
- "type": "uint256",
58
- "internalType": "euint32"
59
- }
57
+ name: '',
58
+ type: 'uint256',
59
+ internalType: 'euint32',
60
+ },
60
61
  ],
61
- "stateMutability": "view"
62
+ stateMutability: 'view',
62
63
  },
63
64
  {
64
- "type": "function",
65
- "name": "exists",
66
- "inputs": [],
67
- "outputs": [
65
+ type: 'function',
66
+ name: 'exists',
67
+ inputs: [],
68
+ outputs: [
68
69
  {
69
- "name": "",
70
- "type": "bool",
71
- "internalType": "bool"
72
- }
70
+ name: '',
71
+ type: 'bool',
72
+ internalType: 'bool',
73
+ },
73
74
  ],
74
- "stateMutability": "pure"
75
+ stateMutability: 'pure',
75
76
  },
76
77
  {
77
- "type": "function",
78
- "name": "getDecryptResult",
79
- "inputs": [
78
+ type: 'function',
79
+ name: 'getDecryptResult',
80
+ inputs: [
80
81
  {
81
- "name": "input1",
82
- "type": "uint256",
83
- "internalType": "euint32"
84
- }
82
+ name: 'input1',
83
+ type: 'uint256',
84
+ internalType: 'euint32',
85
+ },
85
86
  ],
86
- "outputs": [
87
+ outputs: [
87
88
  {
88
- "name": "",
89
- "type": "uint32",
90
- "internalType": "uint32"
91
- }
89
+ name: '',
90
+ type: 'uint32',
91
+ internalType: 'uint32',
92
+ },
92
93
  ],
93
- "stateMutability": "view"
94
+ stateMutability: 'view',
94
95
  },
95
96
  {
96
- "type": "function",
97
- "name": "getDecryptResultSafe",
98
- "inputs": [
97
+ type: 'function',
98
+ name: 'getDecryptResultSafe',
99
+ inputs: [
99
100
  {
100
- "name": "input1",
101
- "type": "uint256",
102
- "internalType": "euint32"
103
- }
101
+ name: 'input1',
102
+ type: 'uint256',
103
+ internalType: 'euint32',
104
+ },
104
105
  ],
105
- "outputs": [
106
+ outputs: [
106
107
  {
107
- "name": "value",
108
- "type": "uint32",
109
- "internalType": "uint32"
108
+ name: 'value',
109
+ type: 'uint32',
110
+ internalType: 'uint32',
110
111
  },
111
112
  {
112
- "name": "decrypted",
113
- "type": "bool",
114
- "internalType": "bool"
115
- }
113
+ name: 'decrypted',
114
+ type: 'bool',
115
+ internalType: 'bool',
116
+ },
116
117
  ],
117
- "stateMutability": "view"
118
+ stateMutability: 'view',
118
119
  },
119
120
  {
120
- "type": "function",
121
- "name": "increment",
122
- "inputs": [],
123
- "outputs": [],
124
- "stateMutability": "nonpayable"
121
+ type: 'function',
122
+ name: 'increment',
123
+ inputs: [],
124
+ outputs: [],
125
+ stateMutability: 'nonpayable',
125
126
  },
126
127
  {
127
- "type": "function",
128
- "name": "mul",
129
- "inputs": [
128
+ type: 'function',
129
+ name: 'mul',
130
+ inputs: [
130
131
  {
131
- "name": "inNumber",
132
- "type": "tuple",
133
- "internalType": "struct InEuint32",
134
- "components": [
132
+ name: 'inNumber',
133
+ type: 'tuple',
134
+ internalType: 'struct InEuint32',
135
+ components: [
135
136
  {
136
- "name": "ctHash",
137
- "type": "uint256",
138
- "internalType": "uint256"
137
+ name: 'ctHash',
138
+ type: 'uint256',
139
+ internalType: 'uint256',
139
140
  },
140
141
  {
141
- "name": "securityZone",
142
- "type": "uint8",
143
- "internalType": "uint8"
142
+ name: 'securityZone',
143
+ type: 'uint8',
144
+ internalType: 'uint8',
144
145
  },
145
146
  {
146
- "name": "utype",
147
- "type": "uint8",
148
- "internalType": "uint8"
147
+ name: 'utype',
148
+ type: 'uint8',
149
+ internalType: 'uint8',
149
150
  },
150
151
  {
151
- "name": "signature",
152
- "type": "bytes",
153
- "internalType": "bytes"
154
- }
155
- ]
156
- }
152
+ name: 'signature',
153
+ type: 'bytes',
154
+ internalType: 'bytes',
155
+ },
156
+ ],
157
+ },
157
158
  ],
158
- "outputs": [],
159
- "stateMutability": "nonpayable"
159
+ outputs: [],
160
+ stateMutability: 'nonpayable',
160
161
  },
161
162
  {
162
- "type": "function",
163
- "name": "numberHash",
164
- "inputs": [],
165
- "outputs": [
163
+ type: 'function',
164
+ name: 'numberHash',
165
+ inputs: [],
166
+ outputs: [
166
167
  {
167
- "name": "",
168
- "type": "uint256",
169
- "internalType": "uint256"
170
- }
168
+ name: '',
169
+ type: 'uint256',
170
+ internalType: 'uint256',
171
+ },
171
172
  ],
172
- "stateMutability": "view"
173
+ stateMutability: 'view',
173
174
  },
174
175
  {
175
- "type": "function",
176
- "name": "setNumber",
177
- "inputs": [
176
+ type: 'function',
177
+ name: 'setNumber',
178
+ inputs: [
178
179
  {
179
- "name": "inNumber",
180
- "type": "tuple",
181
- "internalType": "struct InEuint32",
182
- "components": [
180
+ name: 'inNumber',
181
+ type: 'tuple',
182
+ internalType: 'struct InEuint32',
183
+ components: [
183
184
  {
184
- "name": "ctHash",
185
- "type": "uint256",
186
- "internalType": "uint256"
185
+ name: 'ctHash',
186
+ type: 'uint256',
187
+ internalType: 'uint256',
187
188
  },
188
189
  {
189
- "name": "securityZone",
190
- "type": "uint8",
191
- "internalType": "uint8"
190
+ name: 'securityZone',
191
+ type: 'uint8',
192
+ internalType: 'uint8',
192
193
  },
193
194
  {
194
- "name": "utype",
195
- "type": "uint8",
196
- "internalType": "uint8"
195
+ name: 'utype',
196
+ type: 'uint8',
197
+ internalType: 'uint8',
197
198
  },
198
199
  {
199
- "name": "signature",
200
- "type": "bytes",
201
- "internalType": "bytes"
202
- }
203
- ]
204
- }
200
+ name: 'signature',
201
+ type: 'bytes',
202
+ internalType: 'bytes',
203
+ },
204
+ ],
205
+ },
205
206
  ],
206
- "outputs": [],
207
- "stateMutability": "nonpayable"
207
+ outputs: [],
208
+ stateMutability: 'nonpayable',
208
209
  },
209
210
  {
210
- "type": "function",
211
- "name": "setNumberTrivial",
212
- "inputs": [
211
+ type: 'function',
212
+ name: 'setNumberTrivial',
213
+ inputs: [
213
214
  {
214
- "name": "inNumber",
215
- "type": "uint256",
216
- "internalType": "uint256"
217
- }
215
+ name: 'inNumber',
216
+ type: 'uint256',
217
+ internalType: 'uint256',
218
+ },
218
219
  ],
219
- "outputs": [],
220
- "stateMutability": "nonpayable"
220
+ outputs: [],
221
+ stateMutability: 'nonpayable',
221
222
  },
222
223
  {
223
- "type": "function",
224
- "name": "sub",
225
- "inputs": [
224
+ type: 'function',
225
+ name: 'sub',
226
+ inputs: [
226
227
  {
227
- "name": "inNumber",
228
- "type": "tuple",
229
- "internalType": "struct InEuint32",
230
- "components": [
228
+ name: 'inNumber',
229
+ type: 'tuple',
230
+ internalType: 'struct InEuint32',
231
+ components: [
231
232
  {
232
- "name": "ctHash",
233
- "type": "uint256",
234
- "internalType": "uint256"
233
+ name: 'ctHash',
234
+ type: 'uint256',
235
+ internalType: 'uint256',
235
236
  },
236
237
  {
237
- "name": "securityZone",
238
- "type": "uint8",
239
- "internalType": "uint8"
238
+ name: 'securityZone',
239
+ type: 'uint8',
240
+ internalType: 'uint8',
240
241
  },
241
242
  {
242
- "name": "utype",
243
- "type": "uint8",
244
- "internalType": "uint8"
243
+ name: 'utype',
244
+ type: 'uint8',
245
+ internalType: 'uint8',
245
246
  },
246
247
  {
247
- "name": "signature",
248
- "type": "bytes",
249
- "internalType": "bytes"
250
- }
251
- ]
252
- }
248
+ name: 'signature',
249
+ type: 'bytes',
250
+ internalType: 'bytes',
251
+ },
252
+ ],
253
+ },
253
254
  ],
254
- "outputs": [],
255
- "stateMutability": "nonpayable"
255
+ outputs: [],
256
+ stateMutability: 'nonpayable',
256
257
  },
257
258
  {
258
- "type": "error",
259
- "name": "InvalidEncryptedInput",
260
- "inputs": [
259
+ type: 'error',
260
+ name: 'InvalidEncryptedInput',
261
+ inputs: [
261
262
  {
262
- "name": "got",
263
- "type": "uint8",
264
- "internalType": "uint8"
263
+ name: 'got',
264
+ type: 'uint8',
265
+ internalType: 'uint8',
265
266
  },
266
267
  {
267
- "name": "expected",
268
- "type": "uint8",
269
- "internalType": "uint8"
270
- }
271
- ]
268
+ name: 'expected',
269
+ type: 'uint8',
270
+ internalType: 'uint8',
271
+ },
272
+ ],
272
273
  },
273
274
  {
274
- "type": "error",
275
- "name": "SecurityZoneOutOfBounds",
276
- "inputs": [
275
+ type: 'error',
276
+ name: 'SecurityZoneOutOfBounds',
277
+ inputs: [
277
278
  {
278
- "name": "value",
279
- "type": "int32",
280
- "internalType": "int32"
281
- }
282
- ]
283
- }
279
+ name: 'value',
280
+ type: 'int32',
281
+ internalType: 'int32',
282
+ },
283
+ ],
284
+ },
284
285
  ],
285
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b50600436106100b2575f3560e01c806384f091db1161006f57806384f091db1461016757806384ff25c614610183578063b5872e8c1461019f578063d09de08a146101bb578063d7a0faa2146101c5578063f6bc7f3f146101e1576100b2565b806319d8a05b146100b6578063267c4ae4146100d45780633983d430146100f2578063458693c9146100fc578063647096091461012d57806367c6517414610149575b5f5ffd5b6100be610211565b6040516100cb9190610eef565b60405180910390f35b6100dc610216565b6040516100e99190610f22565b60405180910390f35b6100fa61021e565b005b61011660048036038101906101119190610f76565b61022a565b604051610124929190610fbf565b60405180910390f35b6101476004803603810190610142919061121b565b61023e565b005b610151610293565b60405161015e9190611271565b60405180910390f35b610181600480360381019061017c919061121b565b610299565b005b61019d6004803603810190610198919061121b565b6102c8565b005b6101b960048036038101906101b4919061121b565b6102f7565b005b6101c3610324565b005b6101df60048036038101906101da919061128a565b610353565b005b6101fb60048036038101906101f69190610f76565b610380565b60405161020891906112b5565b60405180910390f35b5f5481565b5f6001905090565b6102285f54610391565b565b5f5f610235836103b7565b91509150915091565b5f610248826103d5565b90505f610268610259835f54610448565b836102635f610491565b6104a3565b90506102755f5482610505565b5f819055506102845f5461054e565b61028e5f546105cd565b505050565b60015481565b6102ac5f546102a7836103d5565b61064c565b5f819055506102bb5f5461054e565b6102c55f546105cd565b50565b6102db5f546102d6836103d5565b610695565b5f819055506102ea5f5461054e565b6102f45f546105cd565b50565b610300816103d5565b5f819055505f546001819055506103175f5461054e565b6103215f546105cd565b50565b6103385f546103336001610491565b610695565b5f819055506103475f5461054e565b6103515f546105cd565b565b61035c81610491565b5f819055505f546001819055506103735f5461054e565b61037d5f546105cd565b50565b5f61038a826106de565b9050919050565b61039a816106ef565b6103aa576103a75f610491565b90505b6103b381610700565b5050565b5f5f5f5f6103c485610785565b915091508181935093505050915091565b5f5f600490508060ff16836040015160ff161461042f578260400151816040517f67cf30710000000000000000000000000000000000000000000000000000000081526004016104269291906112dd565b60405180910390fd5b61044061043b8461081b565b61085d565b915050919050565b5f610452836106ef565b6104625761045f5f610491565b92505b61046b826106ef565b61047b576104785f610491565b91505b6104896004848460136108f4565b905092915050565b5f61049c825f6109e3565b9050919050565b5f6104ad846109fd565b6104bd576104ba5f610a0e565b93505b6104c6836106ef565b6104d6576104d35f610491565b92505b6104df826106ef565b6104ef576104ec5f610491565b91505b6104fc6004858585610a20565b90509392505050565b5f61050f836106ef565b61051f5761051c5f610491565b92505b610528826106ef565b610538576105355f610491565b91505b6105466004848460076108f4565b905092915050565b73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff166365d0509c82306040518363ffffffff1660e01b815260040161059d929190611343565b5f604051808303815f87803b1580156105b4575f5ffd5b505af11580156105c6573d5f5f3e3d5ffd5b5050505050565b73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff166365d0509c82336040518363ffffffff1660e01b815260040161061c929190611343565b5f604051808303815f87803b158015610633575f5ffd5b505af1158015610645573d5f5f3e3d5ffd5b5050505050565b5f610656836106ef565b610666576106635f610491565b92505b61066f826106ef565b61067f5761067c5f610491565b91505b61068d60048484600f6108f4565b905092915050565b5f61069f836106ef565b6106af576106ac5f610491565b92505b6106b8826106ef565b6106c8576106c55f610491565b91505b6106d66004848460086108f4565b905092915050565b5f6106e882610b11565b9050919050565b5f6106f982610ba5565b9050919050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff16630828982783336040518363ffffffff1660e01b8152600401610750929190611343565b5f604051808303815f87803b158015610767575f5ffd5b505af1158015610779573d5f5f3e3d5ffd5b50505050819050919050565b5f5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff1663458693c9846040518263ffffffff1660e01b81526004016107d49190611271565b6040805180830381865afa1580156107ee573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081291906113a8565b91509150915091565b610823610e82565b6040518060800160405280835f01518152602001836020015160ff168152602001600460ff16815260200183606001518152509050919050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff166327f9c76283336040518363ffffffff1660e01b81526004016108ad9291906114c4565b6020604051808303815f875af11580156108c9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108ed91906114f2565b9050919050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff16631888debd86846109318888610bb1565b5f67ffffffffffffffff81111561094b5761094a610ffa565b5b6040519080825280602002602001820160405280156109795781602001602082028036833780820191505090505b506040518563ffffffff1660e01b81526004016109999493929190611638565b6020604051808303815f875af11580156109b5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109d991906114f2565b9050949350505050565b5f5f6109f184600485610c4b565b90508091505092915050565b5f610a0782610ba5565b9050919050565b5f610a19825f610d46565b9050919050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff16631888debd866004610a5f888888610d6f565b5f67ffffffffffffffff811115610a7957610a78610ffa565b5b604051908082528060200260200182016040528015610aa75781602001602082028036833780820191505090505b506040518563ffffffff1660e01b8152600401610ac79493929190611638565b6020604051808303815f875af1158015610ae3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b0791906114f2565b9050949350505050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff1663f6bc7f3f836040518263ffffffff1660e01b8152600401610b5f9190611271565b602060405180830381865afa158015610b7a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b9e91906114f2565b9050919050565b5f5f8214159050919050565b60605f600267ffffffffffffffff811115610bcf57610bce610ffa565b5b604051908082528060200260200182016040528015610bfd5781602001602082028036833780820191505090505b50905083815f81518110610c1457610c13611689565b5b6020026020010181815250508281600181518110610c3557610c34611689565b5b6020026020010181815250508091505092915050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff16631888debd84601a5f67ffffffffffffffff811115610c9957610c98610ffa565b5b604051908082528060200260200182016040528015610cc75781602001602082028036833780820191505090505b50610cde898960ff16610cd98a610e2b565b610d6f565b6040518563ffffffff1660e01b8152600401610cfd9493929190611638565b6020604051808303815f875af1158015610d19573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d3d91906114f2565b90509392505050565b5f5f5f90508315610d5657600190505b5f610d62825f86610c4b565b9050809250505092915050565b60605f600367ffffffffffffffff811115610d8d57610d8c610ffa565b5b604051908082528060200260200182016040528015610dbb5781602001602082028036833780820191505090505b50905084815f81518110610dd257610dd1611689565b5b6020026020010181815250508381600181518110610df357610df2611689565b5b6020026020010181815250508281600281518110610e1457610e13611689565b5b602002602001018181525050809150509392505050565b5f5f8260030b1215610e7457816040517f8f568bf8000000000000000000000000000000000000000000000000000000008152600401610e6b91906116d1565b60405180910390fd5b8163ffffffff169050919050565b60405180608001604052805f81526020015f60ff1681526020015f60ff168152602001606081525090565b5f819050919050565b5f819050919050565b5f610ed9610ed4610ecf84610ead565b610eb6565b610ead565b9050919050565b610ee981610ebf565b82525050565b5f602082019050610f025f830184610ee0565b92915050565b5f8115159050919050565b610f1c81610f08565b82525050565b5f602082019050610f355f830184610f13565b92915050565b5f604051905090565b5f5ffd5b5f5ffd5b610f5581610ead565b8114610f5f575f5ffd5b50565b5f81359050610f7081610f4c565b92915050565b5f60208284031215610f8b57610f8a610f44565b5b5f610f9884828501610f62565b91505092915050565b5f63ffffffff82169050919050565b610fb981610fa1565b82525050565b5f604082019050610fd25f830185610fb0565b610fdf6020830184610f13565b9392505050565b5f5ffd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61103082610fea565b810181811067ffffffffffffffff8211171561104f5761104e610ffa565b5b80604052505050565b5f611061610f3b565b905061106d8282611027565b919050565b5f5ffd5b61107f81610ead565b8114611089575f5ffd5b50565b5f8135905061109a81611076565b92915050565b5f60ff82169050919050565b6110b5816110a0565b81146110bf575f5ffd5b50565b5f813590506110d0816110ac565b92915050565b5f5ffd5b5f5ffd5b5f67ffffffffffffffff8211156110f8576110f7610ffa565b5b61110182610fea565b9050602081019050919050565b828183375f83830152505050565b5f61112e611129846110de565b611058565b90508281526020810184848401111561114a576111496110da565b5b61115584828561110e565b509392505050565b5f82601f830112611171576111706110d6565b5b813561118184826020860161111c565b91505092915050565b5f6080828403121561119f5761119e610fe6565b5b6111a96080611058565b90505f6111b88482850161108c565b5f8301525060206111cb848285016110c2565b60208301525060406111df848285016110c2565b604083015250606082013567ffffffffffffffff81111561120357611202611072565b5b61120f8482850161115d565b60608301525092915050565b5f602082840312156112305761122f610f44565b5b5f82013567ffffffffffffffff81111561124d5761124c610f48565b5b6112598482850161118a565b91505092915050565b61126b81610ead565b82525050565b5f6020820190506112845f830184611262565b92915050565b5f6020828403121561129f5761129e610f44565b5b5f6112ac8482850161108c565b91505092915050565b5f6020820190506112c85f830184610fb0565b92915050565b6112d7816110a0565b82525050565b5f6040820190506112f05f8301856112ce565b6112fd60208301846112ce565b9392505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61132d82611304565b9050919050565b61133d81611323565b82525050565b5f6040820190506113565f830185611262565b6113636020830184611334565b9392505050565b5f8151905061137881611076565b92915050565b61138781610f08565b8114611391575f5ffd5b50565b5f815190506113a28161137e565b92915050565b5f5f604083850312156113be576113bd610f44565b5b5f6113cb8582860161136a565b92505060206113dc85828601611394565b9150509250929050565b6113ef81610ead565b82525050565b6113fe816110a0565b82525050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f61143682611404565b611440818561140e565b935061145081856020860161141e565b61145981610fea565b840191505092915050565b5f608083015f8301516114795f8601826113e6565b50602083015161148c60208601826113f5565b50604083015161149f60408601826113f5565b50606083015184820360608601526114b7828261142c565b9150508091505092915050565b5f6040820190508181035f8301526114dc8185611464565b90506114eb6020830184611334565b9392505050565b5f6020828403121561150757611506610f44565b5b5f6115148482850161136a565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6020811061155b5761155a61151d565b5b50565b5f81905061156b8261154a565b919050565b5f61157a8261155e565b9050919050565b61158a81611570565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f6115c483836113e6565b60208301905092915050565b5f602082019050919050565b5f6115e682611590565b6115f0818561159a565b93506115fb836115aa565b805f5b8381101561162b57815161161288826115b9565b975061161d836115d0565b9250506001810190506115fe565b5085935050505092915050565b5f60808201905061164b5f8301876112ce565b6116586020830186611581565b818103604083015261166a81856115dc565b9050818103606083015261167e81846115dc565b905095945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f8160030b9050919050565b6116cb816116b6565b82525050565b5f6020820190506116e45f8301846116c2565b9291505056fea2646970667358221220a686ade386d6e9fea71d8a014f568d024361e50b703915f304236ac5ca6d620964736f6c634300081e0033"
286
- } satisfies MocksArtifact;
286
+ deployedBytecode:
287
+ '0x608060405234801561000f575f5ffd5b50600436106100b2575f3560e01c806384f091db1161006f57806384f091db1461016757806384ff25c614610183578063b5872e8c1461019f578063d09de08a146101bb578063d7a0faa2146101c5578063f6bc7f3f146101e1576100b2565b806319d8a05b146100b6578063267c4ae4146100d45780633983d430146100f2578063458693c9146100fc578063647096091461012d57806367c6517414610149575b5f5ffd5b6100be610211565b6040516100cb9190610eef565b60405180910390f35b6100dc610216565b6040516100e99190610f22565b60405180910390f35b6100fa61021e565b005b61011660048036038101906101119190610f76565b61022a565b604051610124929190610fbf565b60405180910390f35b6101476004803603810190610142919061121b565b61023e565b005b610151610293565b60405161015e9190611271565b60405180910390f35b610181600480360381019061017c919061121b565b610299565b005b61019d6004803603810190610198919061121b565b6102c8565b005b6101b960048036038101906101b4919061121b565b6102f7565b005b6101c3610324565b005b6101df60048036038101906101da919061128a565b610353565b005b6101fb60048036038101906101f69190610f76565b610380565b60405161020891906112b5565b60405180910390f35b5f5481565b5f6001905090565b6102285f54610391565b565b5f5f610235836103b7565b91509150915091565b5f610248826103d5565b90505f610268610259835f54610448565b836102635f610491565b6104a3565b90506102755f5482610505565b5f819055506102845f5461054e565b61028e5f546105cd565b505050565b60015481565b6102ac5f546102a7836103d5565b61064c565b5f819055506102bb5f5461054e565b6102c55f546105cd565b50565b6102db5f546102d6836103d5565b610695565b5f819055506102ea5f5461054e565b6102f45f546105cd565b50565b610300816103d5565b5f819055505f546001819055506103175f5461054e565b6103215f546105cd565b50565b6103385f546103336001610491565b610695565b5f819055506103475f5461054e565b6103515f546105cd565b565b61035c81610491565b5f819055505f546001819055506103735f5461054e565b61037d5f546105cd565b50565b5f61038a826106de565b9050919050565b61039a816106ef565b6103aa576103a75f610491565b90505b6103b381610700565b5050565b5f5f5f5f6103c485610785565b915091508181935093505050915091565b5f5f600490508060ff16836040015160ff161461042f578260400151816040517f67cf30710000000000000000000000000000000000000000000000000000000081526004016104269291906112dd565b60405180910390fd5b61044061043b8461081b565b61085d565b915050919050565b5f610452836106ef565b6104625761045f5f610491565b92505b61046b826106ef565b61047b576104785f610491565b91505b6104896004848460136108f4565b905092915050565b5f61049c825f6109e3565b9050919050565b5f6104ad846109fd565b6104bd576104ba5f610a0e565b93505b6104c6836106ef565b6104d6576104d35f610491565b92505b6104df826106ef565b6104ef576104ec5f610491565b91505b6104fc6004858585610a20565b90509392505050565b5f61050f836106ef565b61051f5761051c5f610491565b92505b610528826106ef565b610538576105355f610491565b91505b6105466004848460076108f4565b905092915050565b73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff166365d0509c82306040518363ffffffff1660e01b815260040161059d929190611343565b5f604051808303815f87803b1580156105b4575f5ffd5b505af11580156105c6573d5f5f3e3d5ffd5b5050505050565b73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff166365d0509c82336040518363ffffffff1660e01b815260040161061c929190611343565b5f604051808303815f87803b158015610633575f5ffd5b505af1158015610645573d5f5f3e3d5ffd5b5050505050565b5f610656836106ef565b610666576106635f610491565b92505b61066f826106ef565b61067f5761067c5f610491565b91505b61068d60048484600f6108f4565b905092915050565b5f61069f836106ef565b6106af576106ac5f610491565b92505b6106b8826106ef565b6106c8576106c55f610491565b91505b6106d66004848460086108f4565b905092915050565b5f6106e882610b11565b9050919050565b5f6106f982610ba5565b9050919050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff16630828982783336040518363ffffffff1660e01b8152600401610750929190611343565b5f604051808303815f87803b158015610767575f5ffd5b505af1158015610779573d5f5f3e3d5ffd5b50505050819050919050565b5f5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff1663458693c9846040518263ffffffff1660e01b81526004016107d49190611271565b6040805180830381865afa1580156107ee573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081291906113a8565b91509150915091565b610823610e82565b6040518060800160405280835f01518152602001836020015160ff168152602001600460ff16815260200183606001518152509050919050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff166327f9c76283336040518363ffffffff1660e01b81526004016108ad9291906114c4565b6020604051808303815f875af11580156108c9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108ed91906114f2565b9050919050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff16631888debd86846109318888610bb1565b5f67ffffffffffffffff81111561094b5761094a610ffa565b5b6040519080825280602002602001820160405280156109795781602001602082028036833780820191505090505b506040518563ffffffff1660e01b81526004016109999493929190611638565b6020604051808303815f875af11580156109b5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109d991906114f2565b9050949350505050565b5f5f6109f184600485610c4b565b90508091505092915050565b5f610a0782610ba5565b9050919050565b5f610a19825f610d46565b9050919050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff16631888debd866004610a5f888888610d6f565b5f67ffffffffffffffff811115610a7957610a78610ffa565b5b604051908082528060200260200182016040528015610aa75781602001602082028036833780820191505090505b506040518563ffffffff1660e01b8152600401610ac79493929190611638565b6020604051808303815f875af1158015610ae3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b0791906114f2565b9050949350505050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff1663f6bc7f3f836040518263ffffffff1660e01b8152600401610b5f9190611271565b602060405180830381865afa158015610b7a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b9e91906114f2565b9050919050565b5f5f8214159050919050565b60605f600267ffffffffffffffff811115610bcf57610bce610ffa565b5b604051908082528060200260200182016040528015610bfd5781602001602082028036833780820191505090505b50905083815f81518110610c1457610c13611689565b5b6020026020010181815250508281600181518110610c3557610c34611689565b5b6020026020010181815250508091505092915050565b5f73ea30c4b8b44078bbf8a6ef5b9f1ec1626c7848d973ffffffffffffffffffffffffffffffffffffffff16631888debd84601a5f67ffffffffffffffff811115610c9957610c98610ffa565b5b604051908082528060200260200182016040528015610cc75781602001602082028036833780820191505090505b50610cde898960ff16610cd98a610e2b565b610d6f565b6040518563ffffffff1660e01b8152600401610cfd9493929190611638565b6020604051808303815f875af1158015610d19573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d3d91906114f2565b90509392505050565b5f5f5f90508315610d5657600190505b5f610d62825f86610c4b565b9050809250505092915050565b60605f600367ffffffffffffffff811115610d8d57610d8c610ffa565b5b604051908082528060200260200182016040528015610dbb5781602001602082028036833780820191505090505b50905084815f81518110610dd257610dd1611689565b5b6020026020010181815250508381600181518110610df357610df2611689565b5b6020026020010181815250508281600281518110610e1457610e13611689565b5b602002602001018181525050809150509392505050565b5f5f8260030b1215610e7457816040517f8f568bf8000000000000000000000000000000000000000000000000000000008152600401610e6b91906116d1565b60405180910390fd5b8163ffffffff169050919050565b60405180608001604052805f81526020015f60ff1681526020015f60ff168152602001606081525090565b5f819050919050565b5f819050919050565b5f610ed9610ed4610ecf84610ead565b610eb6565b610ead565b9050919050565b610ee981610ebf565b82525050565b5f602082019050610f025f830184610ee0565b92915050565b5f8115159050919050565b610f1c81610f08565b82525050565b5f602082019050610f355f830184610f13565b92915050565b5f604051905090565b5f5ffd5b5f5ffd5b610f5581610ead565b8114610f5f575f5ffd5b50565b5f81359050610f7081610f4c565b92915050565b5f60208284031215610f8b57610f8a610f44565b5b5f610f9884828501610f62565b91505092915050565b5f63ffffffff82169050919050565b610fb981610fa1565b82525050565b5f604082019050610fd25f830185610fb0565b610fdf6020830184610f13565b9392505050565b5f5ffd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61103082610fea565b810181811067ffffffffffffffff8211171561104f5761104e610ffa565b5b80604052505050565b5f611061610f3b565b905061106d8282611027565b919050565b5f5ffd5b61107f81610ead565b8114611089575f5ffd5b50565b5f8135905061109a81611076565b92915050565b5f60ff82169050919050565b6110b5816110a0565b81146110bf575f5ffd5b50565b5f813590506110d0816110ac565b92915050565b5f5ffd5b5f5ffd5b5f67ffffffffffffffff8211156110f8576110f7610ffa565b5b61110182610fea565b9050602081019050919050565b828183375f83830152505050565b5f61112e611129846110de565b611058565b90508281526020810184848401111561114a576111496110da565b5b61115584828561110e565b509392505050565b5f82601f830112611171576111706110d6565b5b813561118184826020860161111c565b91505092915050565b5f6080828403121561119f5761119e610fe6565b5b6111a96080611058565b90505f6111b88482850161108c565b5f8301525060206111cb848285016110c2565b60208301525060406111df848285016110c2565b604083015250606082013567ffffffffffffffff81111561120357611202611072565b5b61120f8482850161115d565b60608301525092915050565b5f602082840312156112305761122f610f44565b5b5f82013567ffffffffffffffff81111561124d5761124c610f48565b5b6112598482850161118a565b91505092915050565b61126b81610ead565b82525050565b5f6020820190506112845f830184611262565b92915050565b5f6020828403121561129f5761129e610f44565b5b5f6112ac8482850161108c565b91505092915050565b5f6020820190506112c85f830184610fb0565b92915050565b6112d7816110a0565b82525050565b5f6040820190506112f05f8301856112ce565b6112fd60208301846112ce565b9392505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61132d82611304565b9050919050565b61133d81611323565b82525050565b5f6040820190506113565f830185611262565b6113636020830184611334565b9392505050565b5f8151905061137881611076565b92915050565b61138781610f08565b8114611391575f5ffd5b50565b5f815190506113a28161137e565b92915050565b5f5f604083850312156113be576113bd610f44565b5b5f6113cb8582860161136a565b92505060206113dc85828601611394565b9150509250929050565b6113ef81610ead565b82525050565b6113fe816110a0565b82525050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f61143682611404565b611440818561140e565b935061145081856020860161141e565b61145981610fea565b840191505092915050565b5f608083015f8301516114795f8601826113e6565b50602083015161148c60208601826113f5565b50604083015161149f60408601826113f5565b50606083015184820360608601526114b7828261142c565b9150508091505092915050565b5f6040820190508181035f8301526114dc8185611464565b90506114eb6020830184611334565b9392505050565b5f6020828403121561150757611506610f44565b5b5f6115148482850161136a565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6020811061155b5761155a61151d565b5b50565b5f81905061156b8261154a565b919050565b5f61157a8261155e565b9050919050565b61158a81611570565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f6115c483836113e6565b60208301905092915050565b5f602082019050919050565b5f6115e682611590565b6115f0818561159a565b93506115fb836115aa565b805f5b8381101561162b57815161161288826115b9565b975061161d836115d0565b9250506001810190506115fe565b5085935050505092915050565b5f60808201905061164b5f8301876112ce565b6116586020830186611581565b818103604083015261166a81856115dc565b9050818103606083015261167e81846115dc565b905095945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f8160030b9050919050565b6116cb816116b6565b82525050565b5f6020820190506116e45f8301846116c2565b9291505056fea2646970667358221220758d6ba5fabe26207a9eeb269ab2354286adbb7560142c08897a08e8c702793f64736f6c63430008210033',
288
+ } satisfies MockArtifact;
package/src/types.ts CHANGED
@@ -1,6 +1,14 @@
1
- export type MocksArtifact = {
1
+ export type MockArtifact = {
2
2
  contractName: string;
3
- fixedAddress: string;
4
3
  abi: any;
5
- deployedBytecode: string;
6
- };
4
+ } & (
5
+ | {
6
+ isFixed: true;
7
+ fixedAddress: string;
8
+ deployedBytecode: string;
9
+ }
10
+ | {
11
+ isFixed: false;
12
+ bytecode: string;
13
+ }
14
+ );