@pushchain/core 5.1.4-alpha.1 → 5.1.4-alpha.3
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/package.json +3 -4
- package/src/lib/constants/abi/factoryV1.d.ts +59 -76
- package/src/lib/constants/abi/factoryV1.js +0 -517
- package/src/lib/constants/abi/feeLocker.evm.d.ts +15 -50
- package/src/lib/constants/abi/feeLocker.evm.js +0 -385
- package/src/lib/constants/abi/index.d.ts +1 -1
- package/src/lib/constants/abi/index.js +1 -2
- package/src/lib/constants/abi/prc20.evm.d.ts +0 -53
- package/src/lib/constants/abi/prc20.evm.js +1 -42
- package/src/lib/constants/abi/uea.svm.d.ts +21 -99
- package/src/lib/constants/abi/uea.svm.js +0 -299
- package/src/lib/constants/abi/universalGatewayV0.evm.d.ts +45 -104
- package/src/lib/constants/abi/universalGatewayV0.evm.js +0 -2149
- package/src/lib/orchestrator/internals/route-handlers.js +10 -14
- package/src/lib/orchestrator/orchestrator.js +1 -11
- package/src/lib/push-chain/push-chain.js +1 -0
- package/src/lib/universal/account/account.d.ts +16 -8
- package/src/lib/universal/account/account.js +86 -74
|
@@ -1,50 +1,15 @@
|
|
|
1
|
-
export declare const FEE_LOCKER_EVM:
|
|
2
|
-
type:
|
|
3
|
-
name:
|
|
4
|
-
inputs:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
name:
|
|
11
|
-
type:
|
|
12
|
-
internalType:
|
|
13
|
-
}
|
|
14
|
-
stateMutability:
|
|
15
|
-
|
|
16
|
-
} | {
|
|
17
|
-
type: string;
|
|
18
|
-
name: string;
|
|
19
|
-
inputs: ({
|
|
20
|
-
name: string;
|
|
21
|
-
type: string;
|
|
22
|
-
indexed: boolean;
|
|
23
|
-
internalType: string;
|
|
24
|
-
components?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
name: string;
|
|
27
|
-
type: string;
|
|
28
|
-
indexed: boolean;
|
|
29
|
-
internalType: string;
|
|
30
|
-
components: {
|
|
31
|
-
name: string;
|
|
32
|
-
type: string;
|
|
33
|
-
internalType: string;
|
|
34
|
-
}[];
|
|
35
|
-
})[];
|
|
36
|
-
anonymous: boolean;
|
|
37
|
-
outputs?: undefined;
|
|
38
|
-
stateMutability?: undefined;
|
|
39
|
-
} | {
|
|
40
|
-
type: string;
|
|
41
|
-
name: string;
|
|
42
|
-
inputs: {
|
|
43
|
-
name: string;
|
|
44
|
-
type: string;
|
|
45
|
-
internalType: string;
|
|
46
|
-
}[];
|
|
47
|
-
outputs?: undefined;
|
|
48
|
-
stateMutability?: undefined;
|
|
49
|
-
anonymous?: undefined;
|
|
50
|
-
})[];
|
|
1
|
+
export declare const FEE_LOCKER_EVM: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "getEthUsdPrice";
|
|
4
|
+
readonly inputs: readonly [];
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "uint256";
|
|
8
|
+
readonly internalType: "uint256";
|
|
9
|
+
}, {
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly type: "uint8";
|
|
12
|
+
readonly internalType: "uint8";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
}];
|
|
@@ -2,67 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FEE_LOCKER_EVM = void 0;
|
|
4
4
|
exports.FEE_LOCKER_EVM = [
|
|
5
|
-
{
|
|
6
|
-
type: 'function',
|
|
7
|
-
name: 'DEFAULT_ADMIN_ROLE',
|
|
8
|
-
inputs: [],
|
|
9
|
-
outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
|
|
10
|
-
stateMutability: 'view',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
type: 'function',
|
|
14
|
-
name: 'UNISWAP_ROUTER',
|
|
15
|
-
inputs: [],
|
|
16
|
-
outputs: [{ name: '', type: 'address', internalType: 'address' }],
|
|
17
|
-
stateMutability: 'view',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
type: 'function',
|
|
21
|
-
name: 'UPGRADE_INTERFACE_VERSION',
|
|
22
|
-
inputs: [],
|
|
23
|
-
outputs: [{ name: '', type: 'string', internalType: 'string' }],
|
|
24
|
-
stateMutability: 'view',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
type: 'function',
|
|
28
|
-
name: 'USDT',
|
|
29
|
-
inputs: [],
|
|
30
|
-
outputs: [{ name: '', type: 'address', internalType: 'address' }],
|
|
31
|
-
stateMutability: 'view',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
type: 'function',
|
|
35
|
-
name: 'WETH',
|
|
36
|
-
inputs: [],
|
|
37
|
-
outputs: [{ name: '', type: 'address', internalType: 'address' }],
|
|
38
|
-
stateMutability: 'view',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
type: 'function',
|
|
42
|
-
name: 'addFunds',
|
|
43
|
-
inputs: [
|
|
44
|
-
{
|
|
45
|
-
name: '_transactionHash',
|
|
46
|
-
type: 'bytes32',
|
|
47
|
-
internalType: 'bytes32',
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
outputs: [],
|
|
51
|
-
stateMutability: 'payable',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
type: 'function',
|
|
55
|
-
name: 'ethUsdPriceFeed',
|
|
56
|
-
inputs: [],
|
|
57
|
-
outputs: [
|
|
58
|
-
{
|
|
59
|
-
name: '',
|
|
60
|
-
type: 'address',
|
|
61
|
-
internalType: 'contract AggregatorV3Interface',
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
stateMutability: 'view',
|
|
65
|
-
},
|
|
66
5
|
{
|
|
67
6
|
type: 'function',
|
|
68
7
|
name: 'getEthUsdPrice',
|
|
@@ -73,329 +12,5 @@ exports.FEE_LOCKER_EVM = [
|
|
|
73
12
|
],
|
|
74
13
|
stateMutability: 'view',
|
|
75
14
|
},
|
|
76
|
-
{
|
|
77
|
-
type: 'function',
|
|
78
|
-
name: 'getEthUsdPrice_old',
|
|
79
|
-
inputs: [],
|
|
80
|
-
outputs: [
|
|
81
|
-
{ name: '', type: 'uint256', internalType: 'uint256' },
|
|
82
|
-
{ name: '', type: 'uint8', internalType: 'uint8' },
|
|
83
|
-
],
|
|
84
|
-
stateMutability: 'view',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
type: 'function',
|
|
88
|
-
name: 'getRoleAdmin',
|
|
89
|
-
inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
|
|
90
|
-
outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
|
|
91
|
-
stateMutability: 'view',
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
type: 'function',
|
|
95
|
-
name: 'grantRole',
|
|
96
|
-
inputs: [
|
|
97
|
-
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
98
|
-
{ name: 'account', type: 'address', internalType: 'address' },
|
|
99
|
-
],
|
|
100
|
-
outputs: [],
|
|
101
|
-
stateMutability: 'nonpayable',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
type: 'function',
|
|
105
|
-
name: 'hasRole',
|
|
106
|
-
inputs: [
|
|
107
|
-
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
108
|
-
{ name: 'account', type: 'address', internalType: 'address' },
|
|
109
|
-
],
|
|
110
|
-
outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
|
|
111
|
-
stateMutability: 'view',
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
type: 'function',
|
|
115
|
-
name: 'initialize',
|
|
116
|
-
inputs: [
|
|
117
|
-
{ name: '_admin', type: 'address', internalType: 'address' },
|
|
118
|
-
{ name: '_weth', type: 'address', internalType: 'address' },
|
|
119
|
-
{ name: '_usdt', type: 'address', internalType: 'address' },
|
|
120
|
-
{ name: '_router', type: 'address', internalType: 'address' },
|
|
121
|
-
{ name: '_priceFeed', type: 'address', internalType: 'address' },
|
|
122
|
-
{
|
|
123
|
-
name: '_usdtPriceFeed',
|
|
124
|
-
type: 'address',
|
|
125
|
-
internalType: 'address',
|
|
126
|
-
},
|
|
127
|
-
],
|
|
128
|
-
outputs: [],
|
|
129
|
-
stateMutability: 'nonpayable',
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
type: 'function',
|
|
133
|
-
name: 'proxiableUUID',
|
|
134
|
-
inputs: [],
|
|
135
|
-
outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
|
|
136
|
-
stateMutability: 'view',
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
type: 'function',
|
|
140
|
-
name: 'recoverToken',
|
|
141
|
-
inputs: [
|
|
142
|
-
{ name: '_recipient', type: 'address', internalType: 'address' },
|
|
143
|
-
{ name: 'amount', type: 'uint256', internalType: 'uint256' },
|
|
144
|
-
],
|
|
145
|
-
outputs: [],
|
|
146
|
-
stateMutability: 'nonpayable',
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
type: 'function',
|
|
150
|
-
name: 'renounceRole',
|
|
151
|
-
inputs: [
|
|
152
|
-
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
153
|
-
{
|
|
154
|
-
name: 'callerConfirmation',
|
|
155
|
-
type: 'address',
|
|
156
|
-
internalType: 'address',
|
|
157
|
-
},
|
|
158
|
-
],
|
|
159
|
-
outputs: [],
|
|
160
|
-
stateMutability: 'nonpayable',
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
type: 'function',
|
|
164
|
-
name: 'revokeRole',
|
|
165
|
-
inputs: [
|
|
166
|
-
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
167
|
-
{ name: 'account', type: 'address', internalType: 'address' },
|
|
168
|
-
],
|
|
169
|
-
outputs: [],
|
|
170
|
-
stateMutability: 'nonpayable',
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
type: 'function',
|
|
174
|
-
name: 'supportsInterface',
|
|
175
|
-
inputs: [{ name: 'interfaceId', type: 'bytes4', internalType: 'bytes4' }],
|
|
176
|
-
outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
|
|
177
|
-
stateMutability: 'view',
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
type: 'function',
|
|
181
|
-
name: 'upgradeToAndCall',
|
|
182
|
-
inputs: [
|
|
183
|
-
{
|
|
184
|
-
name: 'newImplementation',
|
|
185
|
-
type: 'address',
|
|
186
|
-
internalType: 'address',
|
|
187
|
-
},
|
|
188
|
-
{ name: 'data', type: 'bytes', internalType: 'bytes' },
|
|
189
|
-
],
|
|
190
|
-
outputs: [],
|
|
191
|
-
stateMutability: 'payable',
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
type: 'function',
|
|
195
|
-
name: 'usdtUsdPriceFeed',
|
|
196
|
-
inputs: [],
|
|
197
|
-
outputs: [
|
|
198
|
-
{
|
|
199
|
-
name: '',
|
|
200
|
-
type: 'address',
|
|
201
|
-
internalType: 'contract AggregatorV3Interface',
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
stateMutability: 'view',
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
type: 'event',
|
|
208
|
-
name: 'FundsAdded',
|
|
209
|
-
inputs: [
|
|
210
|
-
{
|
|
211
|
-
name: 'user',
|
|
212
|
-
type: 'address',
|
|
213
|
-
indexed: true,
|
|
214
|
-
internalType: 'address',
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: 'transactionHash',
|
|
218
|
-
type: 'bytes32',
|
|
219
|
-
indexed: true,
|
|
220
|
-
internalType: 'bytes32',
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
name: 'AmountInUSD',
|
|
224
|
-
type: 'tuple',
|
|
225
|
-
indexed: false,
|
|
226
|
-
internalType: 'struct UniversalGateway.AmountInUSD',
|
|
227
|
-
components: [
|
|
228
|
-
{
|
|
229
|
-
name: 'amountInUSD',
|
|
230
|
-
type: 'uint256',
|
|
231
|
-
internalType: 'uint256',
|
|
232
|
-
},
|
|
233
|
-
{ name: 'decimals', type: 'uint8', internalType: 'uint8' },
|
|
234
|
-
],
|
|
235
|
-
},
|
|
236
|
-
],
|
|
237
|
-
anonymous: false,
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
type: 'event',
|
|
241
|
-
name: 'Initialized',
|
|
242
|
-
inputs: [
|
|
243
|
-
{
|
|
244
|
-
name: 'version',
|
|
245
|
-
type: 'uint64',
|
|
246
|
-
indexed: false,
|
|
247
|
-
internalType: 'uint64',
|
|
248
|
-
},
|
|
249
|
-
],
|
|
250
|
-
anonymous: false,
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
type: 'event',
|
|
254
|
-
name: 'RoleAdminChanged',
|
|
255
|
-
inputs: [
|
|
256
|
-
{
|
|
257
|
-
name: 'role',
|
|
258
|
-
type: 'bytes32',
|
|
259
|
-
indexed: true,
|
|
260
|
-
internalType: 'bytes32',
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
name: 'previousAdminRole',
|
|
264
|
-
type: 'bytes32',
|
|
265
|
-
indexed: true,
|
|
266
|
-
internalType: 'bytes32',
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
name: 'newAdminRole',
|
|
270
|
-
type: 'bytes32',
|
|
271
|
-
indexed: true,
|
|
272
|
-
internalType: 'bytes32',
|
|
273
|
-
},
|
|
274
|
-
],
|
|
275
|
-
anonymous: false,
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
type: 'event',
|
|
279
|
-
name: 'RoleGranted',
|
|
280
|
-
inputs: [
|
|
281
|
-
{
|
|
282
|
-
name: 'role',
|
|
283
|
-
type: 'bytes32',
|
|
284
|
-
indexed: true,
|
|
285
|
-
internalType: 'bytes32',
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
name: 'account',
|
|
289
|
-
type: 'address',
|
|
290
|
-
indexed: true,
|
|
291
|
-
internalType: 'address',
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
name: 'sender',
|
|
295
|
-
type: 'address',
|
|
296
|
-
indexed: true,
|
|
297
|
-
internalType: 'address',
|
|
298
|
-
},
|
|
299
|
-
],
|
|
300
|
-
anonymous: false,
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
type: 'event',
|
|
304
|
-
name: 'RoleRevoked',
|
|
305
|
-
inputs: [
|
|
306
|
-
{
|
|
307
|
-
name: 'role',
|
|
308
|
-
type: 'bytes32',
|
|
309
|
-
indexed: true,
|
|
310
|
-
internalType: 'bytes32',
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
name: 'account',
|
|
314
|
-
type: 'address',
|
|
315
|
-
indexed: true,
|
|
316
|
-
internalType: 'address',
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
name: 'sender',
|
|
320
|
-
type: 'address',
|
|
321
|
-
indexed: true,
|
|
322
|
-
internalType: 'address',
|
|
323
|
-
},
|
|
324
|
-
],
|
|
325
|
-
anonymous: false,
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
type: 'event',
|
|
329
|
-
name: 'TokenRecovered',
|
|
330
|
-
inputs: [
|
|
331
|
-
{
|
|
332
|
-
name: 'admin',
|
|
333
|
-
type: 'address',
|
|
334
|
-
indexed: true,
|
|
335
|
-
internalType: 'address',
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
name: 'amount',
|
|
339
|
-
type: 'uint256',
|
|
340
|
-
indexed: true,
|
|
341
|
-
internalType: 'uint256',
|
|
342
|
-
},
|
|
343
|
-
],
|
|
344
|
-
anonymous: false,
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
type: 'event',
|
|
348
|
-
name: 'Upgraded',
|
|
349
|
-
inputs: [
|
|
350
|
-
{
|
|
351
|
-
name: 'implementation',
|
|
352
|
-
type: 'address',
|
|
353
|
-
indexed: true,
|
|
354
|
-
internalType: 'address',
|
|
355
|
-
},
|
|
356
|
-
],
|
|
357
|
-
anonymous: false,
|
|
358
|
-
},
|
|
359
|
-
{ type: 'error', name: 'AccessControlBadConfirmation', inputs: [] },
|
|
360
|
-
{
|
|
361
|
-
type: 'error',
|
|
362
|
-
name: 'AccessControlUnauthorizedAccount',
|
|
363
|
-
inputs: [
|
|
364
|
-
{ name: 'account', type: 'address', internalType: 'address' },
|
|
365
|
-
{ name: 'neededRole', type: 'bytes32', internalType: 'bytes32' },
|
|
366
|
-
],
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
type: 'error',
|
|
370
|
-
name: 'AddressEmptyCode',
|
|
371
|
-
inputs: [{ name: 'target', type: 'address', internalType: 'address' }],
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
type: 'error',
|
|
375
|
-
name: 'ERC1967InvalidImplementation',
|
|
376
|
-
inputs: [
|
|
377
|
-
{
|
|
378
|
-
name: 'implementation',
|
|
379
|
-
type: 'address',
|
|
380
|
-
internalType: 'address',
|
|
381
|
-
},
|
|
382
|
-
],
|
|
383
|
-
},
|
|
384
|
-
{ type: 'error', name: 'ERC1967NonPayable', inputs: [] },
|
|
385
|
-
{ type: 'error', name: 'FailedCall', inputs: [] },
|
|
386
|
-
{ type: 'error', name: 'InvalidInitialization', inputs: [] },
|
|
387
|
-
{ type: 'error', name: 'NotInitializing', inputs: [] },
|
|
388
|
-
{ type: 'error', name: 'ReentrancyGuardReentrantCall', inputs: [] },
|
|
389
|
-
{
|
|
390
|
-
type: 'error',
|
|
391
|
-
name: 'SafeERC20FailedOperation',
|
|
392
|
-
inputs: [{ name: 'token', type: 'address', internalType: 'address' }],
|
|
393
|
-
},
|
|
394
|
-
{ type: 'error', name: 'UUPSUnauthorizedCallContext', inputs: [] },
|
|
395
|
-
{
|
|
396
|
-
type: 'error',
|
|
397
|
-
name: 'UUPSUnsupportedProxiableUUID',
|
|
398
|
-
inputs: [{ name: 'slot', type: 'bytes32', internalType: 'bytes32' }],
|
|
399
|
-
},
|
|
400
15
|
];
|
|
401
16
|
//# sourceMappingURL=feeLocker.evm.js.map
|
|
@@ -10,5 +10,5 @@ export { default as SVM_GATEWAY_IDL } from './universalGatewayV0.json';
|
|
|
10
10
|
export { CEA_EVM } from './cea.evm';
|
|
11
11
|
export { CEA_FACTORY_EVM } from './ceaFactory.evm';
|
|
12
12
|
export { UNIVERSAL_GATEWAY_PC } from './universalGatewayPC.evm';
|
|
13
|
-
export {
|
|
13
|
+
export { UNIVERSAL_CORE_EVM } from './prc20.evm';
|
|
14
14
|
export { UEA_FACTORY_ABI } from './uea-factory';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UEA_FACTORY_ABI = exports.UNIVERSAL_CORE_EVM = exports.
|
|
3
|
+
exports.UEA_FACTORY_ABI = exports.UNIVERSAL_CORE_EVM = exports.UNIVERSAL_GATEWAY_PC = exports.CEA_FACTORY_EVM = exports.CEA_EVM = exports.SVM_GATEWAY_IDL = exports.ERC20_EVM = exports.UNIVERSAL_GATEWAY_V1_SEND = exports.UNIVERSAL_GATEWAY_V0 = exports.UEA_SVM = exports.UEA_EVM = exports.FACTORY_V1 = exports.FEE_LOCKER_SVM = exports.FEE_LOCKER_EVM = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var feeLocker_evm_1 = require("./feeLocker.evm");
|
|
6
6
|
Object.defineProperty(exports, "FEE_LOCKER_EVM", { enumerable: true, get: function () { return feeLocker_evm_1.FEE_LOCKER_EVM; } });
|
|
@@ -28,7 +28,6 @@ Object.defineProperty(exports, "CEA_FACTORY_EVM", { enumerable: true, get: funct
|
|
|
28
28
|
var universalGatewayPC_evm_1 = require("./universalGatewayPC.evm");
|
|
29
29
|
Object.defineProperty(exports, "UNIVERSAL_GATEWAY_PC", { enumerable: true, get: function () { return universalGatewayPC_evm_1.UNIVERSAL_GATEWAY_PC; } });
|
|
30
30
|
var prc20_evm_1 = require("./prc20.evm");
|
|
31
|
-
Object.defineProperty(exports, "PRC20_EVM", { enumerable: true, get: function () { return prc20_evm_1.PRC20_EVM; } });
|
|
32
31
|
Object.defineProperty(exports, "UNIVERSAL_CORE_EVM", { enumerable: true, get: function () { return prc20_evm_1.UNIVERSAL_CORE_EVM; } });
|
|
33
32
|
var uea_factory_1 = require("./uea-factory");
|
|
34
33
|
Object.defineProperty(exports, "UEA_FACTORY_ABI", { enumerable: true, get: function () { return uea_factory_1.UEA_FACTORY_ABI; } });
|
|
@@ -1,56 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PRC20 ABI
|
|
3
|
-
* Push Chain's PRC-20 token interface
|
|
4
|
-
*/
|
|
5
|
-
export declare const PRC20_EVM: readonly [{
|
|
6
|
-
readonly type: "function";
|
|
7
|
-
readonly name: "withdrawGasFeeWithGasLimit";
|
|
8
|
-
readonly inputs: readonly [{
|
|
9
|
-
readonly name: "gasLimit";
|
|
10
|
-
readonly type: "uint256";
|
|
11
|
-
readonly internalType: "uint256";
|
|
12
|
-
}];
|
|
13
|
-
readonly outputs: readonly [{
|
|
14
|
-
readonly name: "gasToken";
|
|
15
|
-
readonly type: "address";
|
|
16
|
-
readonly internalType: "address";
|
|
17
|
-
}, {
|
|
18
|
-
readonly name: "gasFee";
|
|
19
|
-
readonly type: "uint256";
|
|
20
|
-
readonly internalType: "uint256";
|
|
21
|
-
}];
|
|
22
|
-
readonly stateMutability: "view";
|
|
23
|
-
}, {
|
|
24
|
-
readonly type: "function";
|
|
25
|
-
readonly name: "GAS_LIMIT";
|
|
26
|
-
readonly inputs: readonly [];
|
|
27
|
-
readonly outputs: readonly [{
|
|
28
|
-
readonly name: "";
|
|
29
|
-
readonly type: "uint256";
|
|
30
|
-
readonly internalType: "uint256";
|
|
31
|
-
}];
|
|
32
|
-
readonly stateMutability: "view";
|
|
33
|
-
}, {
|
|
34
|
-
readonly type: "function";
|
|
35
|
-
readonly name: "PC_PROTOCOL_FEE";
|
|
36
|
-
readonly inputs: readonly [];
|
|
37
|
-
readonly outputs: readonly [{
|
|
38
|
-
readonly name: "";
|
|
39
|
-
readonly type: "uint256";
|
|
40
|
-
readonly internalType: "uint256";
|
|
41
|
-
}];
|
|
42
|
-
readonly stateMutability: "view";
|
|
43
|
-
}, {
|
|
44
|
-
readonly type: "function";
|
|
45
|
-
readonly name: "SOURCE_CHAIN_NAMESPACE";
|
|
46
|
-
readonly inputs: readonly [];
|
|
47
|
-
readonly outputs: readonly [{
|
|
48
|
-
readonly name: "";
|
|
49
|
-
readonly type: "string";
|
|
50
|
-
readonly internalType: "string";
|
|
51
|
-
}];
|
|
52
|
-
readonly stateMutability: "view";
|
|
53
|
-
}];
|
|
54
1
|
/**
|
|
55
2
|
* UniversalCore ABI
|
|
56
3
|
* Push Chain's UniversalCore precompile interface for gas fee estimation
|
|
@@ -1,47 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UNIVERSAL_CORE_EVM =
|
|
4
|
-
/**
|
|
5
|
-
* PRC20 ABI
|
|
6
|
-
* Push Chain's PRC-20 token interface
|
|
7
|
-
*/
|
|
8
|
-
exports.PRC20_EVM = [
|
|
9
|
-
// Gas fee estimation (single param - uses default gas limit)
|
|
10
|
-
{
|
|
11
|
-
type: 'function',
|
|
12
|
-
name: 'withdrawGasFeeWithGasLimit',
|
|
13
|
-
inputs: [{ name: 'gasLimit', type: 'uint256', internalType: 'uint256' }],
|
|
14
|
-
outputs: [
|
|
15
|
-
{ name: 'gasToken', type: 'address', internalType: 'address' },
|
|
16
|
-
{ name: 'gasFee', type: 'uint256', internalType: 'uint256' },
|
|
17
|
-
],
|
|
18
|
-
stateMutability: 'view',
|
|
19
|
-
},
|
|
20
|
-
// Default gas limit
|
|
21
|
-
{
|
|
22
|
-
type: 'function',
|
|
23
|
-
name: 'GAS_LIMIT',
|
|
24
|
-
inputs: [],
|
|
25
|
-
outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
|
|
26
|
-
stateMutability: 'view',
|
|
27
|
-
},
|
|
28
|
-
// Protocol fee
|
|
29
|
-
{
|
|
30
|
-
type: 'function',
|
|
31
|
-
name: 'PC_PROTOCOL_FEE',
|
|
32
|
-
inputs: [],
|
|
33
|
-
outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
|
|
34
|
-
stateMutability: 'view',
|
|
35
|
-
},
|
|
36
|
-
// Source chain namespace
|
|
37
|
-
{
|
|
38
|
-
type: 'function',
|
|
39
|
-
name: 'SOURCE_CHAIN_NAMESPACE',
|
|
40
|
-
inputs: [],
|
|
41
|
-
outputs: [{ name: '', type: 'string', internalType: 'string' }],
|
|
42
|
-
stateMutability: 'view',
|
|
43
|
-
},
|
|
44
|
-
];
|
|
3
|
+
exports.UNIVERSAL_CORE_EVM = void 0;
|
|
45
4
|
/**
|
|
46
5
|
* UniversalCore ABI
|
|
47
6
|
* Push Chain's UniversalCore precompile interface for gas fee estimation
|