@cartesi/cli 1.4.0 → 2.0.0-alpha.0
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/dist/baseCommand.d.ts +2 -0
- package/dist/baseCommand.d.ts.map +1 -1
- package/dist/baseCommand.js +10 -5
- package/dist/builder/directory.d.ts +3 -0
- package/dist/builder/directory.d.ts.map +1 -0
- package/dist/builder/directory.js +37 -0
- package/dist/builder/docker.d.ts +10 -0
- package/dist/builder/docker.d.ts.map +1 -0
- package/dist/builder/docker.js +103 -0
- package/dist/builder/empty.d.ts +3 -0
- package/dist/builder/empty.d.ts.map +1 -0
- package/dist/builder/empty.js +21 -0
- package/dist/builder/index.d.ts +6 -0
- package/dist/builder/index.d.ts.map +1 -0
- package/dist/builder/index.js +5 -0
- package/dist/builder/none.d.ts +3 -0
- package/dist/builder/none.d.ts.map +1 -0
- package/dist/builder/none.js +11 -0
- package/dist/builder/tar.d.ts +3 -0
- package/dist/builder/tar.d.ts.map +1 -0
- package/dist/builder/tar.js +30 -0
- package/dist/commands/build.d.ts +3 -15
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +53 -194
- package/dist/commands/shell.d.ts +2 -1
- package/dist/commands/shell.d.ts.map +1 -1
- package/dist/commands/shell.js +41 -41
- package/dist/config.d.ts +102 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +378 -0
- package/dist/contracts.d.ts +492 -1038
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +223 -498
- package/dist/exec/cartesi-machine.d.ts +9 -0
- package/dist/exec/cartesi-machine.d.ts.map +1 -0
- package/dist/exec/cartesi-machine.js +20 -0
- package/dist/exec/crane.d.ts +15 -0
- package/dist/exec/crane.d.ts.map +1 -0
- package/dist/exec/crane.js +17 -0
- package/dist/exec/genext2fs.d.ts +28 -0
- package/dist/exec/genext2fs.d.ts.map +1 -0
- package/dist/exec/genext2fs.js +44 -0
- package/dist/exec/index.d.ts +5 -0
- package/dist/exec/index.d.ts.map +1 -0
- package/dist/exec/index.js +4 -0
- package/dist/exec/mksquashfs.d.ts +21 -0
- package/dist/exec/mksquashfs.d.ts.map +1 -0
- package/dist/exec/mksquashfs.js +45 -0
- package/dist/exec/util.d.ts +36 -0
- package/dist/exec/util.d.ts.map +1 -0
- package/dist/exec/util.js +78 -0
- package/dist/machine.d.ts +6 -0
- package/dist/machine.d.ts.map +1 -0
- package/dist/machine.js +80 -0
- package/dist/node/docker-compose-anvil.yaml +4 -3
- package/dist/node/docker-compose-bundler.yaml +1 -1
- package/dist/node/docker-compose-paymaster.yaml +1 -1
- package/oclif.manifest.json +32 -95
- package/package.json +5 -5
- package/dist/commands/send/dapp-address.d.ts +0 -9
- package/dist/commands/send/dapp-address.d.ts.map +0 -1
- package/dist/commands/send/dapp-address.js +0 -20
package/dist/contracts.js
CHANGED
|
@@ -1,186 +1,71 @@
|
|
|
1
1
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2
|
-
//
|
|
2
|
+
// ApplicationFactory
|
|
3
3
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
|
-
export const
|
|
4
|
+
export const applicationFactoryAbi = [
|
|
5
5
|
{
|
|
6
6
|
type: 'event',
|
|
7
7
|
anonymous: false,
|
|
8
8
|
inputs: [
|
|
9
9
|
{
|
|
10
|
-
name: '
|
|
11
|
-
internalType: '
|
|
12
|
-
type: 'address',
|
|
13
|
-
indexed: false,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'authority',
|
|
17
|
-
internalType: 'contract Authority',
|
|
18
|
-
type: 'address',
|
|
19
|
-
indexed: false,
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
name: 'AuthorityCreated',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
type: 'function',
|
|
26
|
-
inputs: [
|
|
27
|
-
{
|
|
28
|
-
name: '_authorityOwner',
|
|
29
|
-
internalType: 'address',
|
|
30
|
-
type: 'address',
|
|
31
|
-
},
|
|
32
|
-
{ name: '_salt', internalType: 'bytes32', type: 'bytes32' },
|
|
33
|
-
],
|
|
34
|
-
name: 'calculateAuthorityAddress',
|
|
35
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
36
|
-
stateMutability: 'view',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
type: 'function',
|
|
40
|
-
inputs: [
|
|
41
|
-
{
|
|
42
|
-
name: '_authorityOwner',
|
|
43
|
-
internalType: 'address',
|
|
10
|
+
name: 'consensus',
|
|
11
|
+
internalType: 'contract IConsensus',
|
|
44
12
|
type: 'address',
|
|
13
|
+
indexed: true,
|
|
45
14
|
},
|
|
46
|
-
{ name: '_salt', internalType: 'bytes32', type: 'bytes32' },
|
|
47
|
-
],
|
|
48
|
-
name: 'newAuthority',
|
|
49
|
-
outputs: [
|
|
50
|
-
{ name: '', internalType: 'contract Authority', type: 'address' },
|
|
51
|
-
],
|
|
52
|
-
stateMutability: 'nonpayable',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
type: 'function',
|
|
56
|
-
inputs: [
|
|
57
15
|
{
|
|
58
|
-
name: '
|
|
16
|
+
name: 'appOwner',
|
|
59
17
|
internalType: 'address',
|
|
60
18
|
type: 'address',
|
|
61
|
-
|
|
62
|
-
],
|
|
63
|
-
name: 'newAuthority',
|
|
64
|
-
outputs: [
|
|
65
|
-
{ name: '', internalType: 'contract Authority', type: 'address' },
|
|
66
|
-
],
|
|
67
|
-
stateMutability: 'nonpayable',
|
|
68
|
-
},
|
|
69
|
-
];
|
|
70
|
-
export const authorityFactoryAddress = '0xf26a5b278C25D8D41A136d22Ad719EACEd9c3e63';
|
|
71
|
-
export const authorityFactoryConfig = {
|
|
72
|
-
address: authorityFactoryAddress,
|
|
73
|
-
abi: authorityFactoryAbi,
|
|
74
|
-
};
|
|
75
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
76
|
-
// AuthorityHistoryPairFactory
|
|
77
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
78
|
-
export const authorityHistoryPairFactoryAbi = [
|
|
79
|
-
{
|
|
80
|
-
type: 'constructor',
|
|
81
|
-
inputs: [
|
|
82
|
-
{
|
|
83
|
-
name: '_authorityFactory',
|
|
84
|
-
internalType: 'contract IAuthorityFactory',
|
|
85
|
-
type: 'address',
|
|
19
|
+
indexed: false,
|
|
86
20
|
},
|
|
87
21
|
{
|
|
88
|
-
name: '
|
|
89
|
-
internalType: '
|
|
90
|
-
type: '
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
stateMutability: 'nonpayable',
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
type: 'event',
|
|
97
|
-
anonymous: false,
|
|
98
|
-
inputs: [
|
|
99
|
-
{
|
|
100
|
-
name: 'authorityFactory',
|
|
101
|
-
internalType: 'contract IAuthorityFactory',
|
|
102
|
-
type: 'address',
|
|
22
|
+
name: 'templateHash',
|
|
23
|
+
internalType: 'bytes32',
|
|
24
|
+
type: 'bytes32',
|
|
103
25
|
indexed: false,
|
|
104
26
|
},
|
|
105
27
|
{
|
|
106
|
-
name: '
|
|
107
|
-
internalType: 'contract
|
|
28
|
+
name: 'appContract',
|
|
29
|
+
internalType: 'contract IApplication',
|
|
108
30
|
type: 'address',
|
|
109
31
|
indexed: false,
|
|
110
32
|
},
|
|
111
33
|
],
|
|
112
|
-
name: '
|
|
34
|
+
name: 'ApplicationCreated',
|
|
113
35
|
},
|
|
114
36
|
{
|
|
115
37
|
type: 'function',
|
|
116
38
|
inputs: [
|
|
117
39
|
{
|
|
118
|
-
name: '
|
|
119
|
-
internalType: '
|
|
120
|
-
type: 'address',
|
|
121
|
-
},
|
|
122
|
-
{ name: '_salt', internalType: 'bytes32', type: 'bytes32' },
|
|
123
|
-
],
|
|
124
|
-
name: 'calculateAuthorityHistoryAddressPair',
|
|
125
|
-
outputs: [
|
|
126
|
-
{
|
|
127
|
-
name: 'authorityAddress_',
|
|
128
|
-
internalType: 'address',
|
|
129
|
-
type: 'address',
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
name: 'historyAddress_',
|
|
133
|
-
internalType: 'address',
|
|
134
|
-
type: 'address',
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
stateMutability: 'view',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
type: 'function',
|
|
141
|
-
inputs: [],
|
|
142
|
-
name: 'getAuthorityFactory',
|
|
143
|
-
outputs: [
|
|
144
|
-
{
|
|
145
|
-
name: '',
|
|
146
|
-
internalType: 'contract IAuthorityFactory',
|
|
147
|
-
type: 'address',
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
stateMutability: 'view',
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
type: 'function',
|
|
154
|
-
inputs: [],
|
|
155
|
-
name: 'getHistoryFactory',
|
|
156
|
-
outputs: [
|
|
157
|
-
{
|
|
158
|
-
name: '',
|
|
159
|
-
internalType: 'contract IHistoryFactory',
|
|
40
|
+
name: 'consensus',
|
|
41
|
+
internalType: 'contract IConsensus',
|
|
160
42
|
type: 'address',
|
|
161
43
|
},
|
|
44
|
+
{ name: 'appOwner', internalType: 'address', type: 'address' },
|
|
45
|
+
{ name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
46
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
162
47
|
],
|
|
48
|
+
name: 'calculateApplicationAddress',
|
|
49
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
163
50
|
stateMutability: 'view',
|
|
164
51
|
},
|
|
165
52
|
{
|
|
166
53
|
type: 'function',
|
|
167
54
|
inputs: [
|
|
168
55
|
{
|
|
169
|
-
name: '
|
|
170
|
-
internalType: '
|
|
56
|
+
name: 'consensus',
|
|
57
|
+
internalType: 'contract IConsensus',
|
|
171
58
|
type: 'address',
|
|
172
59
|
},
|
|
60
|
+
{ name: 'appOwner', internalType: 'address', type: 'address' },
|
|
61
|
+
{ name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
62
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
173
63
|
],
|
|
174
|
-
name: '
|
|
64
|
+
name: 'newApplication',
|
|
175
65
|
outputs: [
|
|
176
66
|
{
|
|
177
|
-
name: '
|
|
178
|
-
internalType: 'contract
|
|
179
|
-
type: 'address',
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: 'history_',
|
|
183
|
-
internalType: 'contract History',
|
|
67
|
+
name: '',
|
|
68
|
+
internalType: 'contract IApplication',
|
|
184
69
|
type: 'address',
|
|
185
70
|
},
|
|
186
71
|
],
|
|
@@ -190,90 +75,58 @@ export const authorityHistoryPairFactoryAbi = [
|
|
|
190
75
|
type: 'function',
|
|
191
76
|
inputs: [
|
|
192
77
|
{
|
|
193
|
-
name: '
|
|
194
|
-
internalType: '
|
|
78
|
+
name: 'consensus',
|
|
79
|
+
internalType: 'contract IConsensus',
|
|
195
80
|
type: 'address',
|
|
196
81
|
},
|
|
197
|
-
{ name: '
|
|
82
|
+
{ name: 'appOwner', internalType: 'address', type: 'address' },
|
|
83
|
+
{ name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
198
84
|
],
|
|
199
|
-
name: '
|
|
85
|
+
name: 'newApplication',
|
|
200
86
|
outputs: [
|
|
201
87
|
{
|
|
202
|
-
name: '
|
|
203
|
-
internalType: 'contract
|
|
204
|
-
type: 'address',
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
name: 'history_',
|
|
208
|
-
internalType: 'contract History',
|
|
88
|
+
name: '',
|
|
89
|
+
internalType: 'contract IApplication',
|
|
209
90
|
type: 'address',
|
|
210
91
|
},
|
|
211
92
|
],
|
|
212
93
|
stateMutability: 'nonpayable',
|
|
213
94
|
},
|
|
214
95
|
];
|
|
215
|
-
export const
|
|
216
|
-
export const
|
|
217
|
-
address:
|
|
218
|
-
abi:
|
|
219
|
-
};
|
|
220
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
221
|
-
// Bitmask
|
|
222
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
223
|
-
export const bitmaskAbi = [];
|
|
224
|
-
export const bitmaskAddress = '0xF5B2d8c81cDE4D6238bBf20D3D77DB37df13f735';
|
|
225
|
-
export const bitmaskConfig = {
|
|
226
|
-
address: bitmaskAddress,
|
|
227
|
-
abi: bitmaskAbi,
|
|
96
|
+
export const applicationFactoryAddress = '0x1d4CfBD2622d802A07CeB4C3401Bbb455c9dbdC3';
|
|
97
|
+
export const applicationFactoryConfig = {
|
|
98
|
+
address: applicationFactoryAddress,
|
|
99
|
+
abi: applicationFactoryAbi,
|
|
228
100
|
};
|
|
229
101
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
230
|
-
//
|
|
102
|
+
// AuthorityFactory
|
|
231
103
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
232
|
-
export const
|
|
104
|
+
export const authorityFactoryAbi = [
|
|
233
105
|
{
|
|
234
106
|
type: 'event',
|
|
235
107
|
anonymous: false,
|
|
236
108
|
inputs: [
|
|
237
109
|
{
|
|
238
|
-
name: '
|
|
239
|
-
internalType: 'contract
|
|
240
|
-
type: 'address',
|
|
241
|
-
indexed: true,
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
name: 'dappOwner',
|
|
245
|
-
internalType: 'address',
|
|
246
|
-
type: 'address',
|
|
247
|
-
indexed: false,
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
name: 'templateHash',
|
|
251
|
-
internalType: 'bytes32',
|
|
252
|
-
type: 'bytes32',
|
|
253
|
-
indexed: false,
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
name: 'application',
|
|
257
|
-
internalType: 'contract CartesiDApp',
|
|
110
|
+
name: 'authority',
|
|
111
|
+
internalType: 'contract IAuthority',
|
|
258
112
|
type: 'address',
|
|
259
113
|
indexed: false,
|
|
260
114
|
},
|
|
261
115
|
],
|
|
262
|
-
name: '
|
|
116
|
+
name: 'AuthorityCreated',
|
|
263
117
|
},
|
|
264
118
|
{
|
|
265
119
|
type: 'function',
|
|
266
120
|
inputs: [
|
|
267
121
|
{
|
|
268
|
-
name: '
|
|
269
|
-
internalType: '
|
|
122
|
+
name: 'authorityOwner',
|
|
123
|
+
internalType: 'address',
|
|
270
124
|
type: 'address',
|
|
271
125
|
},
|
|
272
|
-
{ name: '
|
|
273
|
-
{ name: '
|
|
274
|
-
{ name: '_salt', internalType: 'bytes32', type: 'bytes32' },
|
|
126
|
+
{ name: 'epochLength', internalType: 'uint256', type: 'uint256' },
|
|
127
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
275
128
|
],
|
|
276
|
-
name: '
|
|
129
|
+
name: 'calculateAuthorityAddress',
|
|
277
130
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
278
131
|
stateMutability: 'view',
|
|
279
132
|
},
|
|
@@ -281,17 +134,15 @@ export const cartesiDAppFactoryAbi = [
|
|
|
281
134
|
type: 'function',
|
|
282
135
|
inputs: [
|
|
283
136
|
{
|
|
284
|
-
name: '
|
|
285
|
-
internalType: '
|
|
137
|
+
name: 'authorityOwner',
|
|
138
|
+
internalType: 'address',
|
|
286
139
|
type: 'address',
|
|
287
140
|
},
|
|
288
|
-
{ name: '
|
|
289
|
-
{ name: '_templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
290
|
-
{ name: '_salt', internalType: 'bytes32', type: 'bytes32' },
|
|
141
|
+
{ name: 'epochLength', internalType: 'uint256', type: 'uint256' },
|
|
291
142
|
],
|
|
292
|
-
name: '
|
|
143
|
+
name: 'newAuthority',
|
|
293
144
|
outputs: [
|
|
294
|
-
{ name: '', internalType: 'contract
|
|
145
|
+
{ name: '', internalType: 'contract IAuthority', type: 'address' },
|
|
295
146
|
],
|
|
296
147
|
stateMutability: 'nonpayable',
|
|
297
148
|
},
|
|
@@ -299,113 +150,24 @@ export const cartesiDAppFactoryAbi = [
|
|
|
299
150
|
type: 'function',
|
|
300
151
|
inputs: [
|
|
301
152
|
{
|
|
302
|
-
name: '
|
|
303
|
-
internalType: '
|
|
304
|
-
type: 'address',
|
|
305
|
-
},
|
|
306
|
-
{ name: '_dappOwner', internalType: 'address', type: 'address' },
|
|
307
|
-
{ name: '_templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
308
|
-
],
|
|
309
|
-
name: 'newApplication',
|
|
310
|
-
outputs: [
|
|
311
|
-
{ name: '', internalType: 'contract CartesiDApp', type: 'address' },
|
|
312
|
-
],
|
|
313
|
-
stateMutability: 'nonpayable',
|
|
314
|
-
},
|
|
315
|
-
];
|
|
316
|
-
export const cartesiDAppFactoryAddress = '0x7122cd1221C20892234186facfE8615e6743Ab02';
|
|
317
|
-
export const cartesiDAppFactoryConfig = {
|
|
318
|
-
address: cartesiDAppFactoryAddress,
|
|
319
|
-
abi: cartesiDAppFactoryAbi,
|
|
320
|
-
};
|
|
321
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
322
|
-
// CartesiMathV2
|
|
323
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
324
|
-
export const cartesiMathV2Abi = [
|
|
325
|
-
{
|
|
326
|
-
type: 'function',
|
|
327
|
-
inputs: [{ name: '_num', internalType: 'uint256', type: 'uint256' }],
|
|
328
|
-
name: 'clz',
|
|
329
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
330
|
-
stateMutability: 'pure',
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
type: 'function',
|
|
334
|
-
inputs: [{ name: '_num', internalType: 'uint256', type: 'uint256' }],
|
|
335
|
-
name: 'ctz',
|
|
336
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
337
|
-
stateMutability: 'pure',
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
type: 'function',
|
|
341
|
-
inputs: [{ name: '_num', internalType: 'uint256', type: 'uint256' }],
|
|
342
|
-
name: 'getLog2Floor',
|
|
343
|
-
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
344
|
-
stateMutability: 'pure',
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
type: 'function',
|
|
348
|
-
inputs: [{ name: '_num', internalType: 'uint256', type: 'uint256' }],
|
|
349
|
-
name: 'getLog2TableTimes1M',
|
|
350
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
351
|
-
stateMutability: 'pure',
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
type: 'function',
|
|
355
|
-
inputs: [{ name: '_num', internalType: 'uint256', type: 'uint256' }],
|
|
356
|
-
name: 'isPowerOf2',
|
|
357
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
358
|
-
stateMutability: 'pure',
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
type: 'function',
|
|
362
|
-
inputs: [{ name: '_num', internalType: 'uint256', type: 'uint256' }],
|
|
363
|
-
name: 'log2ApproxTimes1M',
|
|
364
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
365
|
-
stateMutability: 'pure',
|
|
366
|
-
},
|
|
367
|
-
];
|
|
368
|
-
export const cartesiMathV2Address = '0xB634F716BEd5Dd5A2b9a91C92474C499e50Cb27D';
|
|
369
|
-
export const cartesiMathV2Config = {
|
|
370
|
-
address: cartesiMathV2Address,
|
|
371
|
-
abi: cartesiMathV2Abi,
|
|
372
|
-
};
|
|
373
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
374
|
-
// DAppAddressRelay
|
|
375
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
376
|
-
export const dAppAddressRelayAbi = [
|
|
377
|
-
{
|
|
378
|
-
type: 'constructor',
|
|
379
|
-
inputs: [
|
|
380
|
-
{
|
|
381
|
-
name: '_inputBox',
|
|
382
|
-
internalType: 'contract IInputBox',
|
|
153
|
+
name: 'authorityOwner',
|
|
154
|
+
internalType: 'address',
|
|
383
155
|
type: 'address',
|
|
384
156
|
},
|
|
157
|
+
{ name: 'epochLength', internalType: 'uint256', type: 'uint256' },
|
|
158
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
385
159
|
],
|
|
386
|
-
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
type: 'function',
|
|
390
|
-
inputs: [],
|
|
391
|
-
name: 'getInputBox',
|
|
160
|
+
name: 'newAuthority',
|
|
392
161
|
outputs: [
|
|
393
|
-
{ name: '', internalType: 'contract
|
|
162
|
+
{ name: '', internalType: 'contract IAuthority', type: 'address' },
|
|
394
163
|
],
|
|
395
|
-
stateMutability: 'view',
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
type: 'function',
|
|
399
|
-
inputs: [{ name: '_dapp', internalType: 'address', type: 'address' }],
|
|
400
|
-
name: 'relayDAppAddress',
|
|
401
|
-
outputs: [],
|
|
402
164
|
stateMutability: 'nonpayable',
|
|
403
165
|
},
|
|
404
166
|
];
|
|
405
|
-
export const
|
|
406
|
-
export const
|
|
407
|
-
address:
|
|
408
|
-
abi:
|
|
167
|
+
export const authorityFactoryAddress = '0xB897F7Fe78f220aE34B7FA9493092701a873Ed45';
|
|
168
|
+
export const authorityFactoryConfig = {
|
|
169
|
+
address: authorityFactoryAddress,
|
|
170
|
+
abi: authorityFactoryAbi,
|
|
409
171
|
};
|
|
410
172
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
411
173
|
// ERC1155BatchPortal
|
|
@@ -415,7 +177,7 @@ export const erc1155BatchPortalAbi = [
|
|
|
415
177
|
type: 'constructor',
|
|
416
178
|
inputs: [
|
|
417
179
|
{
|
|
418
|
-
name: '
|
|
180
|
+
name: 'inputBox',
|
|
419
181
|
internalType: 'contract IInputBox',
|
|
420
182
|
type: 'address',
|
|
421
183
|
},
|
|
@@ -426,15 +188,15 @@ export const erc1155BatchPortalAbi = [
|
|
|
426
188
|
type: 'function',
|
|
427
189
|
inputs: [
|
|
428
190
|
{
|
|
429
|
-
name: '
|
|
191
|
+
name: 'token',
|
|
430
192
|
internalType: 'contract IERC1155',
|
|
431
193
|
type: 'address',
|
|
432
194
|
},
|
|
433
|
-
{ name: '
|
|
434
|
-
{ name: '
|
|
435
|
-
{ name: '
|
|
436
|
-
{ name: '
|
|
437
|
-
{ name: '
|
|
195
|
+
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
196
|
+
{ name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
|
|
197
|
+
{ name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
|
|
198
|
+
{ name: 'baseLayerData', internalType: 'bytes', type: 'bytes' },
|
|
199
|
+
{ name: 'execLayerData', internalType: 'bytes', type: 'bytes' },
|
|
438
200
|
],
|
|
439
201
|
name: 'depositBatchERC1155Token',
|
|
440
202
|
outputs: [],
|
|
@@ -450,7 +212,7 @@ export const erc1155BatchPortalAbi = [
|
|
|
450
212
|
stateMutability: 'view',
|
|
451
213
|
},
|
|
452
214
|
];
|
|
453
|
-
export const erc1155BatchPortalAddress = '
|
|
215
|
+
export const erc1155BatchPortalAddress = '0x4a218D331C0933d7E3EB496ac901669f28D94981';
|
|
454
216
|
export const erc1155BatchPortalConfig = {
|
|
455
217
|
address: erc1155BatchPortalAddress,
|
|
456
218
|
abi: erc1155BatchPortalAbi,
|
|
@@ -463,7 +225,7 @@ export const erc1155SinglePortalAbi = [
|
|
|
463
225
|
type: 'constructor',
|
|
464
226
|
inputs: [
|
|
465
227
|
{
|
|
466
|
-
name: '
|
|
228
|
+
name: 'inputBox',
|
|
467
229
|
internalType: 'contract IInputBox',
|
|
468
230
|
type: 'address',
|
|
469
231
|
},
|
|
@@ -474,15 +236,15 @@ export const erc1155SinglePortalAbi = [
|
|
|
474
236
|
type: 'function',
|
|
475
237
|
inputs: [
|
|
476
238
|
{
|
|
477
|
-
name: '
|
|
239
|
+
name: 'token',
|
|
478
240
|
internalType: 'contract IERC1155',
|
|
479
241
|
type: 'address',
|
|
480
242
|
},
|
|
481
|
-
{ name: '
|
|
482
|
-
{ name: '
|
|
483
|
-
{ name: '
|
|
484
|
-
{ name: '
|
|
485
|
-
{ name: '
|
|
243
|
+
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
244
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
245
|
+
{ name: 'value', internalType: 'uint256', type: 'uint256' },
|
|
246
|
+
{ name: 'baseLayerData', internalType: 'bytes', type: 'bytes' },
|
|
247
|
+
{ name: 'execLayerData', internalType: 'bytes', type: 'bytes' },
|
|
486
248
|
],
|
|
487
249
|
name: 'depositSingleERC1155Token',
|
|
488
250
|
outputs: [],
|
|
@@ -498,7 +260,7 @@ export const erc1155SinglePortalAbi = [
|
|
|
498
260
|
stateMutability: 'view',
|
|
499
261
|
},
|
|
500
262
|
];
|
|
501
|
-
export const erc1155SinglePortalAddress = '
|
|
263
|
+
export const erc1155SinglePortalAddress = '0x2f0D587DD6EcF67d25C558f2e9c3839c579e5e38';
|
|
502
264
|
export const erc1155SinglePortalConfig = {
|
|
503
265
|
address: erc1155SinglePortalAddress,
|
|
504
266
|
abi: erc1155SinglePortalAbi,
|
|
@@ -511,24 +273,21 @@ export const erc20PortalAbi = [
|
|
|
511
273
|
type: 'constructor',
|
|
512
274
|
inputs: [
|
|
513
275
|
{
|
|
514
|
-
name: '
|
|
276
|
+
name: 'inputBox',
|
|
515
277
|
internalType: 'contract IInputBox',
|
|
516
278
|
type: 'address',
|
|
517
279
|
},
|
|
518
280
|
],
|
|
519
281
|
stateMutability: 'nonpayable',
|
|
520
282
|
},
|
|
283
|
+
{ type: 'error', inputs: [], name: 'ERC20TransferFailed' },
|
|
521
284
|
{
|
|
522
285
|
type: 'function',
|
|
523
286
|
inputs: [
|
|
524
|
-
{
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
},
|
|
529
|
-
{ name: '_dapp', internalType: 'address', type: 'address' },
|
|
530
|
-
{ name: '_amount', internalType: 'uint256', type: 'uint256' },
|
|
531
|
-
{ name: '_execLayerData', internalType: 'bytes', type: 'bytes' },
|
|
287
|
+
{ name: 'token', internalType: 'contract IERC20', type: 'address' },
|
|
288
|
+
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
289
|
+
{ name: 'value', internalType: 'uint256', type: 'uint256' },
|
|
290
|
+
{ name: 'execLayerData', internalType: 'bytes', type: 'bytes' },
|
|
532
291
|
],
|
|
533
292
|
name: 'depositERC20Tokens',
|
|
534
293
|
outputs: [],
|
|
@@ -544,7 +303,7 @@ export const erc20PortalAbi = [
|
|
|
544
303
|
stateMutability: 'view',
|
|
545
304
|
},
|
|
546
305
|
];
|
|
547
|
-
export const erc20PortalAddress = '
|
|
306
|
+
export const erc20PortalAddress = '0xB0e28881FF7ee9CD5B1229d570540d74bce23D39';
|
|
548
307
|
export const erc20PortalConfig = {
|
|
549
308
|
address: erc20PortalAddress,
|
|
550
309
|
abi: erc20PortalAbi,
|
|
@@ -557,7 +316,7 @@ export const erc721PortalAbi = [
|
|
|
557
316
|
type: 'constructor',
|
|
558
317
|
inputs: [
|
|
559
318
|
{
|
|
560
|
-
name: '
|
|
319
|
+
name: 'inputBox',
|
|
561
320
|
internalType: 'contract IInputBox',
|
|
562
321
|
type: 'address',
|
|
563
322
|
},
|
|
@@ -568,14 +327,14 @@ export const erc721PortalAbi = [
|
|
|
568
327
|
type: 'function',
|
|
569
328
|
inputs: [
|
|
570
329
|
{
|
|
571
|
-
name: '
|
|
330
|
+
name: 'token',
|
|
572
331
|
internalType: 'contract IERC721',
|
|
573
332
|
type: 'address',
|
|
574
333
|
},
|
|
575
|
-
{ name: '
|
|
576
|
-
{ name: '
|
|
577
|
-
{ name: '
|
|
578
|
-
{ name: '
|
|
334
|
+
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
335
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
336
|
+
{ name: 'baseLayerData', internalType: 'bytes', type: 'bytes' },
|
|
337
|
+
{ name: 'execLayerData', internalType: 'bytes', type: 'bytes' },
|
|
579
338
|
],
|
|
580
339
|
name: 'depositERC721Token',
|
|
581
340
|
outputs: [],
|
|
@@ -591,7 +350,7 @@ export const erc721PortalAbi = [
|
|
|
591
350
|
stateMutability: 'view',
|
|
592
351
|
},
|
|
593
352
|
];
|
|
594
|
-
export const erc721PortalAddress = '
|
|
353
|
+
export const erc721PortalAddress = '0x874b3245ead7474Cb9f3b83cD1446dC522f6bd36';
|
|
595
354
|
export const erc721PortalConfig = {
|
|
596
355
|
address: erc721PortalAddress,
|
|
597
356
|
abi: erc721PortalAbi,
|
|
@@ -604,7 +363,7 @@ export const etherPortalAbi = [
|
|
|
604
363
|
type: 'constructor',
|
|
605
364
|
inputs: [
|
|
606
365
|
{
|
|
607
|
-
name: '
|
|
366
|
+
name: 'inputBox',
|
|
608
367
|
internalType: 'contract IInputBox',
|
|
609
368
|
type: 'address',
|
|
610
369
|
},
|
|
@@ -615,8 +374,8 @@ export const etherPortalAbi = [
|
|
|
615
374
|
{
|
|
616
375
|
type: 'function',
|
|
617
376
|
inputs: [
|
|
618
|
-
{ name: '
|
|
619
|
-
{ name: '
|
|
377
|
+
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
378
|
+
{ name: 'execLayerData', internalType: 'bytes', type: 'bytes' },
|
|
620
379
|
],
|
|
621
380
|
name: 'depositEther',
|
|
622
381
|
outputs: [],
|
|
@@ -632,100 +391,44 @@ export const etherPortalAbi = [
|
|
|
632
391
|
stateMutability: 'view',
|
|
633
392
|
},
|
|
634
393
|
];
|
|
635
|
-
export const etherPortalAddress = '
|
|
394
|
+
export const etherPortalAddress = '0xfa2292f6D85ea4e629B156A4f99219e30D12EE17';
|
|
636
395
|
export const etherPortalConfig = {
|
|
637
396
|
address: etherPortalAddress,
|
|
638
397
|
abi: etherPortalAbi,
|
|
639
398
|
};
|
|
640
399
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
641
|
-
//
|
|
400
|
+
// InputBox
|
|
642
401
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
643
|
-
export const
|
|
402
|
+
export const inputBoxAbi = [
|
|
644
403
|
{
|
|
645
|
-
type: '
|
|
646
|
-
anonymous: false,
|
|
404
|
+
type: 'error',
|
|
647
405
|
inputs: [
|
|
406
|
+
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
407
|
+
{ name: 'inputLength', internalType: 'uint256', type: 'uint256' },
|
|
648
408
|
{
|
|
649
|
-
name: '
|
|
650
|
-
internalType: '
|
|
651
|
-
type: '
|
|
652
|
-
indexed: false,
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
name: 'history',
|
|
656
|
-
internalType: 'contract History',
|
|
657
|
-
type: 'address',
|
|
658
|
-
indexed: false,
|
|
409
|
+
name: 'maxInputLength',
|
|
410
|
+
internalType: 'uint256',
|
|
411
|
+
type: 'uint256',
|
|
659
412
|
},
|
|
660
413
|
],
|
|
661
|
-
name: '
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
type: 'function',
|
|
665
|
-
inputs: [
|
|
666
|
-
{ name: '_historyOwner', internalType: 'address', type: 'address' },
|
|
667
|
-
{ name: '_salt', internalType: 'bytes32', type: 'bytes32' },
|
|
668
|
-
],
|
|
669
|
-
name: 'calculateHistoryAddress',
|
|
670
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
671
|
-
stateMutability: 'view',
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
type: 'function',
|
|
675
|
-
inputs: [
|
|
676
|
-
{ name: '_historyOwner', internalType: 'address', type: 'address' },
|
|
677
|
-
{ name: '_salt', internalType: 'bytes32', type: 'bytes32' },
|
|
678
|
-
],
|
|
679
|
-
name: 'newHistory',
|
|
680
|
-
outputs: [
|
|
681
|
-
{ name: '', internalType: 'contract History', type: 'address' },
|
|
682
|
-
],
|
|
683
|
-
stateMutability: 'nonpayable',
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
type: 'function',
|
|
687
|
-
inputs: [
|
|
688
|
-
{ name: '_historyOwner', internalType: 'address', type: 'address' },
|
|
689
|
-
],
|
|
690
|
-
name: 'newHistory',
|
|
691
|
-
outputs: [
|
|
692
|
-
{ name: '', internalType: 'contract History', type: 'address' },
|
|
693
|
-
],
|
|
694
|
-
stateMutability: 'nonpayable',
|
|
414
|
+
name: 'InputTooLarge',
|
|
695
415
|
},
|
|
696
|
-
];
|
|
697
|
-
export const historyFactoryAddress = '0x1f158b5320BBf677FdA89F9a438df99BbE560A26';
|
|
698
|
-
export const historyFactoryConfig = {
|
|
699
|
-
address: historyFactoryAddress,
|
|
700
|
-
abi: historyFactoryAbi,
|
|
701
|
-
};
|
|
702
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
703
|
-
// InputBox
|
|
704
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
705
|
-
export const inputBoxAbi = [
|
|
706
|
-
{ type: 'error', inputs: [], name: 'InputSizeExceedsLimit' },
|
|
707
416
|
{
|
|
708
417
|
type: 'event',
|
|
709
418
|
anonymous: false,
|
|
710
419
|
inputs: [
|
|
711
420
|
{
|
|
712
|
-
name: '
|
|
421
|
+
name: 'appContract',
|
|
713
422
|
internalType: 'address',
|
|
714
423
|
type: 'address',
|
|
715
424
|
indexed: true,
|
|
716
425
|
},
|
|
717
426
|
{
|
|
718
|
-
name: '
|
|
427
|
+
name: 'index',
|
|
719
428
|
internalType: 'uint256',
|
|
720
429
|
type: 'uint256',
|
|
721
430
|
indexed: true,
|
|
722
431
|
},
|
|
723
|
-
{
|
|
724
|
-
name: 'sender',
|
|
725
|
-
internalType: 'address',
|
|
726
|
-
type: 'address',
|
|
727
|
-
indexed: false,
|
|
728
|
-
},
|
|
729
432
|
{
|
|
730
433
|
name: 'input',
|
|
731
434
|
internalType: 'bytes',
|
|
@@ -738,8 +441,8 @@ export const inputBoxAbi = [
|
|
|
738
441
|
{
|
|
739
442
|
type: 'function',
|
|
740
443
|
inputs: [
|
|
741
|
-
{ name: '
|
|
742
|
-
{ name: '
|
|
444
|
+
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
445
|
+
{ name: 'payload', internalType: 'bytes', type: 'bytes' },
|
|
743
446
|
],
|
|
744
447
|
name: 'addInput',
|
|
745
448
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -748,8 +451,8 @@ export const inputBoxAbi = [
|
|
|
748
451
|
{
|
|
749
452
|
type: 'function',
|
|
750
453
|
inputs: [
|
|
751
|
-
{ name: '
|
|
752
|
-
{ name: '
|
|
454
|
+
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
455
|
+
{ name: 'index', internalType: 'uint256', type: 'uint256' },
|
|
753
456
|
],
|
|
754
457
|
name: 'getInputHash',
|
|
755
458
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -757,83 +460,126 @@ export const inputBoxAbi = [
|
|
|
757
460
|
},
|
|
758
461
|
{
|
|
759
462
|
type: 'function',
|
|
760
|
-
inputs: [
|
|
463
|
+
inputs: [
|
|
464
|
+
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
465
|
+
],
|
|
761
466
|
name: 'getNumberOfInputs',
|
|
762
467
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
763
468
|
stateMutability: 'view',
|
|
764
469
|
},
|
|
765
470
|
];
|
|
766
|
-
export const inputBoxAddress = '
|
|
471
|
+
export const inputBoxAddress = '0x593E5BCf894D6829Dd26D0810DA7F064406aebB6';
|
|
767
472
|
export const inputBoxConfig = {
|
|
768
473
|
address: inputBoxAddress,
|
|
769
474
|
abi: inputBoxAbi,
|
|
770
475
|
};
|
|
771
476
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
772
|
-
//
|
|
477
|
+
// QuorumFactory
|
|
773
478
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
774
|
-
export const
|
|
479
|
+
export const quorumFactoryAbi = [
|
|
775
480
|
{
|
|
776
|
-
type: '
|
|
481
|
+
type: 'event',
|
|
482
|
+
anonymous: false,
|
|
777
483
|
inputs: [
|
|
778
|
-
{
|
|
484
|
+
{
|
|
485
|
+
name: 'quorum',
|
|
486
|
+
internalType: 'contract IQuorum',
|
|
487
|
+
type: 'address',
|
|
488
|
+
indexed: false,
|
|
489
|
+
},
|
|
779
490
|
],
|
|
780
|
-
name: '
|
|
781
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
782
|
-
stateMutability: 'pure',
|
|
491
|
+
name: 'QuorumCreated',
|
|
783
492
|
},
|
|
784
493
|
{
|
|
785
494
|
type: 'function',
|
|
786
|
-
inputs: [
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
495
|
+
inputs: [
|
|
496
|
+
{
|
|
497
|
+
name: 'validators',
|
|
498
|
+
internalType: 'address[]',
|
|
499
|
+
type: 'address[]',
|
|
500
|
+
},
|
|
501
|
+
{ name: 'epochLength', internalType: 'uint256', type: 'uint256' },
|
|
502
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
503
|
+
],
|
|
504
|
+
name: 'calculateQuorumAddress',
|
|
505
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
506
|
+
stateMutability: 'view',
|
|
790
507
|
},
|
|
791
508
|
{
|
|
792
509
|
type: 'function',
|
|
793
510
|
inputs: [
|
|
794
|
-
{
|
|
795
|
-
|
|
511
|
+
{
|
|
512
|
+
name: 'validators',
|
|
513
|
+
internalType: 'address[]',
|
|
514
|
+
type: 'address[]',
|
|
515
|
+
},
|
|
516
|
+
{ name: 'epochLength', internalType: 'uint256', type: 'uint256' },
|
|
517
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
796
518
|
],
|
|
797
|
-
name: '
|
|
798
|
-
outputs: [
|
|
799
|
-
|
|
519
|
+
name: 'newQuorum',
|
|
520
|
+
outputs: [
|
|
521
|
+
{ name: '', internalType: 'contract IQuorum', type: 'address' },
|
|
522
|
+
],
|
|
523
|
+
stateMutability: 'nonpayable',
|
|
800
524
|
},
|
|
801
525
|
{
|
|
802
526
|
type: 'function',
|
|
803
527
|
inputs: [
|
|
804
|
-
{
|
|
805
|
-
|
|
528
|
+
{
|
|
529
|
+
name: 'validators',
|
|
530
|
+
internalType: 'address[]',
|
|
531
|
+
type: 'address[]',
|
|
532
|
+
},
|
|
533
|
+
{ name: 'epochLength', internalType: 'uint256', type: 'uint256' },
|
|
806
534
|
],
|
|
807
|
-
name: '
|
|
808
|
-
outputs: [
|
|
809
|
-
|
|
535
|
+
name: 'newQuorum',
|
|
536
|
+
outputs: [
|
|
537
|
+
{ name: '', internalType: 'contract IQuorum', type: 'address' },
|
|
538
|
+
],
|
|
539
|
+
stateMutability: 'nonpayable',
|
|
540
|
+
},
|
|
541
|
+
];
|
|
542
|
+
export const quorumFactoryAddress = '0x22AFD9162079c7Ac0aF874054298Bf46F29157F1';
|
|
543
|
+
export const quorumFactoryConfig = {
|
|
544
|
+
address: quorumFactoryAddress,
|
|
545
|
+
abi: quorumFactoryAbi,
|
|
546
|
+
};
|
|
547
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
548
|
+
// SafeERC20Transfer
|
|
549
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
550
|
+
export const safeErc20TransferAbi = [
|
|
551
|
+
{
|
|
552
|
+
type: 'error',
|
|
553
|
+
inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
|
|
554
|
+
name: 'AddressEmptyCode',
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
type: 'error',
|
|
558
|
+
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
559
|
+
name: 'AddressInsufficientBalance',
|
|
560
|
+
},
|
|
561
|
+
{ type: 'error', inputs: [], name: 'FailedInnerCall' },
|
|
562
|
+
{
|
|
563
|
+
type: 'error',
|
|
564
|
+
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
565
|
+
name: 'SafeERC20FailedOperation',
|
|
810
566
|
},
|
|
811
567
|
{
|
|
812
568
|
type: 'function',
|
|
813
569
|
inputs: [
|
|
814
|
-
{ name: '
|
|
815
|
-
{
|
|
816
|
-
|
|
817
|
-
internalType: 'uint256',
|
|
818
|
-
type: 'uint256',
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
name: '_logSizeOfFullDrive',
|
|
822
|
-
internalType: 'uint256',
|
|
823
|
-
type: 'uint256',
|
|
824
|
-
},
|
|
825
|
-
{ name: '_replacement', internalType: 'bytes32', type: 'bytes32' },
|
|
826
|
-
{ name: 'siblings', internalType: 'bytes32[]', type: 'bytes32[]' },
|
|
570
|
+
{ name: 'token', internalType: 'contract IERC20', type: 'address' },
|
|
571
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
572
|
+
{ name: 'value', internalType: 'uint256', type: 'uint256' },
|
|
827
573
|
],
|
|
828
|
-
name: '
|
|
829
|
-
outputs: [
|
|
830
|
-
stateMutability: '
|
|
574
|
+
name: 'safeTransfer',
|
|
575
|
+
outputs: [],
|
|
576
|
+
stateMutability: 'nonpayable',
|
|
831
577
|
},
|
|
832
578
|
];
|
|
833
|
-
export const
|
|
834
|
-
export const
|
|
835
|
-
address:
|
|
836
|
-
abi:
|
|
579
|
+
export const safeErc20TransferAddress = '0x817b126F242B5F184Fa685b4f2F91DC99D8115F9';
|
|
580
|
+
export const safeErc20TransferConfig = {
|
|
581
|
+
address: safeErc20TransferAddress,
|
|
582
|
+
abi: safeErc20TransferAbi,
|
|
837
583
|
};
|
|
838
584
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
839
585
|
// SelfHostedApplicationFactory
|
|
@@ -843,13 +589,13 @@ export const selfHostedApplicationFactoryAbi = [
|
|
|
843
589
|
type: 'constructor',
|
|
844
590
|
inputs: [
|
|
845
591
|
{
|
|
846
|
-
name: '
|
|
847
|
-
internalType: 'contract
|
|
592
|
+
name: 'authorityFactory',
|
|
593
|
+
internalType: 'contract IAuthorityFactory',
|
|
848
594
|
type: 'address',
|
|
849
595
|
},
|
|
850
596
|
{
|
|
851
|
-
name: '
|
|
852
|
-
internalType: 'contract
|
|
597
|
+
name: 'applicationFactory',
|
|
598
|
+
internalType: 'contract IApplicationFactory',
|
|
853
599
|
type: 'address',
|
|
854
600
|
},
|
|
855
601
|
],
|
|
@@ -859,19 +605,19 @@ export const selfHostedApplicationFactoryAbi = [
|
|
|
859
605
|
type: 'function',
|
|
860
606
|
inputs: [
|
|
861
607
|
{
|
|
862
|
-
name: '
|
|
608
|
+
name: 'authorityOwner',
|
|
863
609
|
internalType: 'address',
|
|
864
610
|
type: 'address',
|
|
865
611
|
},
|
|
866
|
-
{ name: '
|
|
867
|
-
{ name: '
|
|
868
|
-
{ name: '
|
|
612
|
+
{ name: 'epochLength', internalType: 'uint256', type: 'uint256' },
|
|
613
|
+
{ name: 'appOwner', internalType: 'address', type: 'address' },
|
|
614
|
+
{ name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
615
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
869
616
|
],
|
|
870
617
|
name: 'calculateAddresses',
|
|
871
618
|
outputs: [
|
|
872
|
-
{ name: '
|
|
873
|
-
{ name: '
|
|
874
|
-
{ name: 'history_', internalType: 'address', type: 'address' },
|
|
619
|
+
{ name: 'application', internalType: 'address', type: 'address' },
|
|
620
|
+
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
875
621
|
],
|
|
876
622
|
stateMutability: 'view',
|
|
877
623
|
},
|
|
@@ -879,29 +625,25 @@ export const selfHostedApplicationFactoryAbi = [
|
|
|
879
625
|
type: 'function',
|
|
880
626
|
inputs: [
|
|
881
627
|
{
|
|
882
|
-
name: '
|
|
628
|
+
name: 'authorityOwner',
|
|
883
629
|
internalType: 'address',
|
|
884
630
|
type: 'address',
|
|
885
631
|
},
|
|
886
|
-
{ name: '
|
|
887
|
-
{ name: '
|
|
888
|
-
{ name: '
|
|
632
|
+
{ name: 'epochLength', internalType: 'uint256', type: 'uint256' },
|
|
633
|
+
{ name: 'appOwner', internalType: 'address', type: 'address' },
|
|
634
|
+
{ name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
635
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
889
636
|
],
|
|
890
637
|
name: 'deployContracts',
|
|
891
638
|
outputs: [
|
|
892
639
|
{
|
|
893
|
-
name: '
|
|
894
|
-
internalType: 'contract
|
|
895
|
-
type: 'address',
|
|
896
|
-
},
|
|
897
|
-
{
|
|
898
|
-
name: 'authority_',
|
|
899
|
-
internalType: 'contract Authority',
|
|
640
|
+
name: 'application',
|
|
641
|
+
internalType: 'contract IApplication',
|
|
900
642
|
type: 'address',
|
|
901
643
|
},
|
|
902
644
|
{
|
|
903
|
-
name: '
|
|
904
|
-
internalType: 'contract
|
|
645
|
+
name: 'authority',
|
|
646
|
+
internalType: 'contract IAuthority',
|
|
905
647
|
type: 'address',
|
|
906
648
|
},
|
|
907
649
|
],
|
|
@@ -914,7 +656,7 @@ export const selfHostedApplicationFactoryAbi = [
|
|
|
914
656
|
outputs: [
|
|
915
657
|
{
|
|
916
658
|
name: '',
|
|
917
|
-
internalType: 'contract
|
|
659
|
+
internalType: 'contract IApplicationFactory',
|
|
918
660
|
type: 'address',
|
|
919
661
|
},
|
|
920
662
|
],
|
|
@@ -923,18 +665,18 @@ export const selfHostedApplicationFactoryAbi = [
|
|
|
923
665
|
{
|
|
924
666
|
type: 'function',
|
|
925
667
|
inputs: [],
|
|
926
|
-
name: '
|
|
668
|
+
name: 'getAuthorityFactory',
|
|
927
669
|
outputs: [
|
|
928
670
|
{
|
|
929
671
|
name: '',
|
|
930
|
-
internalType: 'contract
|
|
672
|
+
internalType: 'contract IAuthorityFactory',
|
|
931
673
|
type: 'address',
|
|
932
674
|
},
|
|
933
675
|
],
|
|
934
676
|
stateMutability: 'view',
|
|
935
677
|
},
|
|
936
678
|
];
|
|
937
|
-
export const selfHostedApplicationFactoryAddress = '
|
|
679
|
+
export const selfHostedApplicationFactoryAddress = '0x4C11C7F82D6D56a726f9B53dd99af031AFd86BB6';
|
|
938
680
|
export const selfHostedApplicationFactoryConfig = {
|
|
939
681
|
address: selfHostedApplicationFactoryAddress,
|
|
940
682
|
abi: selfHostedApplicationFactoryAbi,
|
|
@@ -2055,20 +1797,3 @@ export const testTokenConfig = {
|
|
|
2055
1797
|
address: testTokenAddress,
|
|
2056
1798
|
abi: testTokenAbi,
|
|
2057
1799
|
};
|
|
2058
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2059
|
-
// UnrolledCordic
|
|
2060
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2061
|
-
export const unrolledCordicAbi = [
|
|
2062
|
-
{
|
|
2063
|
-
type: 'function',
|
|
2064
|
-
inputs: [{ name: 'val', internalType: 'uint256', type: 'uint256' }],
|
|
2065
|
-
name: 'log2Times1e18',
|
|
2066
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2067
|
-
stateMutability: 'pure',
|
|
2068
|
-
},
|
|
2069
|
-
];
|
|
2070
|
-
export const unrolledCordicAddress = '0x3F8FdcD1B0F421D817BF58C96b7C91B98100B450';
|
|
2071
|
-
export const unrolledCordicConfig = {
|
|
2072
|
-
address: unrolledCordicAddress,
|
|
2073
|
-
abi: unrolledCordicAbi,
|
|
2074
|
-
};
|