@pushchain/core 5.1.18 → 6.0.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.
Files changed (57) hide show
  1. package/package.json +1 -1
  2. package/src/lib/constants/abi/cea.evm.d.ts +52 -0
  3. package/src/lib/constants/abi/cea.evm.js +66 -1
  4. package/src/lib/constants/abi/prc20.evm.d.ts +117 -11
  5. package/src/lib/constants/abi/prc20.evm.js +38 -11
  6. package/src/lib/constants/abi/uea.evm.js +41 -0
  7. package/src/lib/constants/abi/universalGatewayPC.evm.d.ts +118 -2
  8. package/src/lib/constants/abi/universalGatewayPC.evm.js +41 -2
  9. package/src/lib/constants/abi/universalGatewayV0.json +1 -1
  10. package/src/lib/constants/chain.d.ts +2 -0
  11. package/src/lib/constants/chain.js +18 -14
  12. package/src/lib/constants/index.d.ts +1 -1
  13. package/src/lib/constants/tokens.d.ts +10 -1
  14. package/src/lib/constants/tokens.js +5 -2
  15. package/src/lib/formatters.d.ts +6 -0
  16. package/src/lib/formatters.js +14 -0
  17. package/src/lib/index.d.ts +2 -0
  18. package/src/lib/index.js +7 -1
  19. package/src/lib/orchestrator/internals/cascade.d.ts +3 -1
  20. package/src/lib/orchestrator/internals/cascade.js +189 -103
  21. package/src/lib/orchestrator/internals/errors.js +1 -1
  22. package/src/lib/orchestrator/internals/execute-funds-only.js +3 -2
  23. package/src/lib/orchestrator/internals/execute-funds-payload.js +2 -1
  24. package/src/lib/orchestrator/internals/execute-standard.js +4 -4
  25. package/src/lib/orchestrator/internals/gas-calculator.d.ts +1 -0
  26. package/src/lib/orchestrator/internals/gas-calculator.js +13 -11
  27. package/src/lib/orchestrator/internals/helpers.js +2 -0
  28. package/src/lib/orchestrator/internals/inbound-tracker.js +4 -2
  29. package/src/lib/orchestrator/internals/outbound-sync.js +73 -60
  30. package/src/lib/orchestrator/internals/pc-usd-oracle.d.ts +1 -1
  31. package/src/lib/orchestrator/internals/pc-usd-oracle.js +4 -3
  32. package/src/lib/orchestrator/internals/preflight.d.ts +8 -5
  33. package/src/lib/orchestrator/internals/preflight.js +35 -21
  34. package/src/lib/orchestrator/internals/push-chain-tx.js +5 -1
  35. package/src/lib/orchestrator/internals/route-handlers.js +175 -202
  36. package/src/lib/orchestrator/internals/signing.js +7 -2
  37. package/src/lib/orchestrator/internals/svm-helpers.js +3 -3
  38. package/src/lib/orchestrator/internals/svm-rent.d.ts +42 -9
  39. package/src/lib/orchestrator/internals/svm-rent.js +157 -14
  40. package/src/lib/orchestrator/internals/tx-transformer.js +5 -2
  41. package/src/lib/orchestrator/max-pc-for-gas.d.ts +60 -0
  42. package/src/lib/orchestrator/max-pc-for-gas.js +66 -0
  43. package/src/lib/orchestrator/orchestrator.d.ts +6 -6
  44. package/src/lib/orchestrator/orchestrator.js +10 -3
  45. package/src/lib/orchestrator/orchestrator.types.d.ts +48 -10
  46. package/src/lib/orchestrator/payload-builders.d.ts +7 -6
  47. package/src/lib/orchestrator/payload-builders.js +19 -7
  48. package/src/lib/progress-hook/progress-hook.js +59 -27
  49. package/src/lib/progress-hook/progress-hook.types.d.ts +3 -3
  50. package/src/lib/progress-hook/progress-hook.types.js +4 -2
  51. package/src/lib/push-chain/push-chain.d.ts +10 -4
  52. package/src/lib/push-chain/push-chain.js +2 -2
  53. package/src/lib/universal-tx-detector/events.d.ts +3 -1
  54. package/src/lib/universal-tx-detector/events.js +3 -1
  55. package/src/lib/universal-tx-detector/svm-events.d.ts +1 -1
  56. package/src/lib/universal-tx-detector/svm-events.js +1 -1
  57. package/src/lib/utils.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushchain/core",
3
- "version": "5.1.18",
3
+ "version": "6.0.1",
4
4
  "homepage": "https://push.org",
5
5
  "keywords": [
6
6
  "pushchain",
@@ -20,4 +20,56 @@ export declare const CEA_EVM: readonly [{
20
20
  readonly outputs: readonly [];
21
21
  readonly stateMutability: "nonpayable";
22
22
  readonly type: "function";
23
+ }, {
24
+ readonly inputs: readonly [];
25
+ readonly name: "AlreadyInitialized";
26
+ readonly type: "error";
27
+ }, {
28
+ readonly inputs: readonly [];
29
+ readonly name: "ZeroAddress";
30
+ readonly type: "error";
31
+ }, {
32
+ readonly inputs: readonly [];
33
+ readonly name: "NotVault";
34
+ readonly type: "error";
35
+ }, {
36
+ readonly inputs: readonly [];
37
+ readonly name: "InvalidTarget";
38
+ readonly type: "error";
39
+ }, {
40
+ readonly inputs: readonly [];
41
+ readonly name: "InsufficientBalance";
42
+ readonly type: "error";
43
+ }, {
44
+ readonly inputs: readonly [];
45
+ readonly name: "PayloadExecuted";
46
+ readonly type: "error";
47
+ }, {
48
+ readonly inputs: readonly [];
49
+ readonly name: "InvalidUEA";
50
+ readonly type: "error";
51
+ }, {
52
+ readonly inputs: readonly [];
53
+ readonly name: "InvalidInput";
54
+ readonly type: "error";
55
+ }, {
56
+ readonly inputs: readonly [];
57
+ readonly name: "ExecutionFailed";
58
+ readonly type: "error";
59
+ }, {
60
+ readonly inputs: readonly [];
61
+ readonly name: "InvalidCall";
62
+ readonly type: "error";
63
+ }, {
64
+ readonly inputs: readonly [];
65
+ readonly name: "InvalidRecipient";
66
+ readonly type: "error";
67
+ }, {
68
+ readonly inputs: readonly [];
69
+ readonly name: "InvalidImplementation";
70
+ readonly type: "error";
71
+ }, {
72
+ readonly inputs: readonly [];
73
+ readonly name: "CEAAlreadyDeployed";
74
+ readonly type: "error";
23
75
  }];
@@ -29,6 +29,71 @@ exports.CEA_EVM = [
29
29
  "outputs": [],
30
30
  "stateMutability": "nonpayable",
31
31
  "type": "function"
32
- }
32
+ },
33
+ {
34
+ inputs: [],
35
+ name: 'AlreadyInitialized',
36
+ type: 'error',
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: 'ZeroAddress',
41
+ type: 'error',
42
+ },
43
+ {
44
+ inputs: [],
45
+ name: 'NotVault',
46
+ type: 'error',
47
+ },
48
+ {
49
+ inputs: [],
50
+ name: 'InvalidTarget',
51
+ type: 'error',
52
+ },
53
+ {
54
+ inputs: [],
55
+ name: 'InsufficientBalance',
56
+ type: 'error',
57
+ },
58
+ {
59
+ inputs: [],
60
+ name: 'PayloadExecuted',
61
+ type: 'error',
62
+ },
63
+ {
64
+ inputs: [],
65
+ name: 'InvalidUEA',
66
+ type: 'error',
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: 'InvalidInput',
71
+ type: 'error',
72
+ },
73
+ {
74
+ inputs: [],
75
+ name: 'ExecutionFailed',
76
+ type: 'error',
77
+ },
78
+ {
79
+ inputs: [],
80
+ name: 'InvalidCall',
81
+ type: 'error',
82
+ },
83
+ {
84
+ inputs: [],
85
+ name: 'InvalidRecipient',
86
+ type: 'error',
87
+ },
88
+ {
89
+ inputs: [],
90
+ name: 'InvalidImplementation',
91
+ type: 'error',
92
+ },
93
+ {
94
+ inputs: [],
95
+ name: 'CEAAlreadyDeployed',
96
+ type: 'error',
97
+ },
33
98
  ];
34
99
  //# sourceMappingURL=cea.evm.js.map
@@ -34,14 +34,8 @@ export declare const UNIVERSAL_CORE_EVM: readonly [{
34
34
  readonly name: "chainNamespace";
35
35
  readonly type: "string";
36
36
  readonly internalType: "string";
37
- }];
38
- readonly stateMutability: "view";
39
- }, {
40
- readonly type: "function";
41
- readonly name: "BASE_GAS_LIMIT";
42
- readonly inputs: readonly [];
43
- readonly outputs: readonly [{
44
- readonly name: "baseGasLimit";
37
+ }, {
38
+ readonly name: "gasLimitUsed";
45
39
  readonly type: "uint256";
46
40
  readonly internalType: "uint256";
47
41
  }];
@@ -125,20 +119,32 @@ export declare const UNIVERSAL_CORE_EVM: readonly [{
125
119
  readonly name: "gasToken";
126
120
  readonly type: "address";
127
121
  readonly internalType: "address";
122
+ }, {
123
+ readonly name: "fee";
124
+ readonly type: "uint24";
125
+ readonly internalType: "uint24";
128
126
  }, {
129
127
  readonly name: "gasFee";
130
128
  readonly type: "uint256";
131
129
  readonly internalType: "uint256";
132
130
  }, {
133
- readonly name: "protocolFee";
131
+ readonly name: "deadline";
134
132
  readonly type: "uint256";
135
133
  readonly internalType: "uint256";
136
134
  }, {
137
- readonly name: "vaultPC";
135
+ readonly name: "caller";
138
136
  readonly type: "address";
139
137
  readonly internalType: "address";
140
138
  }];
141
- readonly outputs: readonly [];
139
+ readonly outputs: readonly [{
140
+ readonly name: "gasTokenOut";
141
+ readonly type: "uint256";
142
+ readonly internalType: "uint256";
143
+ }, {
144
+ readonly name: "refund";
145
+ readonly type: "uint256";
146
+ readonly internalType: "uint256";
147
+ }];
142
148
  readonly stateMutability: "payable";
143
149
  }, {
144
150
  readonly type: "error";
@@ -152,4 +158,104 @@ export declare const UNIVERSAL_CORE_EVM: readonly [{
152
158
  readonly type: "uint256";
153
159
  readonly internalType: "uint256";
154
160
  }];
161
+ }, {
162
+ readonly type: "error";
163
+ readonly name: "CorePaused";
164
+ readonly inputs: readonly [];
165
+ }, {
166
+ readonly type: "error";
167
+ readonly name: "ZeroAmount";
168
+ readonly inputs: readonly [];
169
+ }, {
170
+ readonly type: "error";
171
+ readonly name: "ZeroAddress";
172
+ readonly inputs: readonly [];
173
+ }, {
174
+ readonly type: "error";
175
+ readonly name: "ZeroBaseGasLimit";
176
+ readonly inputs: readonly [];
177
+ }, {
178
+ readonly type: "error";
179
+ readonly name: "ZeroGasPrice";
180
+ readonly inputs: readonly [];
181
+ }, {
182
+ readonly type: "error";
183
+ readonly name: "ZeroRescueGasLimit";
184
+ readonly inputs: readonly [];
185
+ }, {
186
+ readonly type: "error";
187
+ readonly name: "StaleGasData";
188
+ readonly inputs: readonly [{
189
+ readonly name: "observedAt";
190
+ readonly type: "uint256";
191
+ readonly internalType: "uint256";
192
+ }, {
193
+ readonly name: "nowTimestamp";
194
+ readonly type: "uint256";
195
+ readonly internalType: "uint256";
196
+ }, {
197
+ readonly name: "maxAge";
198
+ readonly type: "uint256";
199
+ readonly internalType: "uint256";
200
+ }];
201
+ }, {
202
+ readonly type: "error";
203
+ readonly name: "DeadlineExpired";
204
+ readonly inputs: readonly [];
205
+ }, {
206
+ readonly type: "error";
207
+ readonly name: "PoolNotFound";
208
+ readonly inputs: readonly [];
209
+ }, {
210
+ readonly type: "error";
211
+ readonly name: "InvalidTarget";
212
+ readonly inputs: readonly [];
213
+ }, {
214
+ readonly type: "error";
215
+ readonly name: "InvalidFeeTier";
216
+ readonly inputs: readonly [];
217
+ }, {
218
+ readonly type: "error";
219
+ readonly name: "SlippageExceeded";
220
+ readonly inputs: readonly [];
221
+ }, {
222
+ readonly type: "error";
223
+ readonly name: "CallerIsNotUEModule";
224
+ readonly inputs: readonly [];
225
+ }, {
226
+ readonly type: "error";
227
+ readonly name: "CallerIsNotGatewayPC";
228
+ readonly inputs: readonly [];
229
+ }, {
230
+ readonly type: "error";
231
+ readonly name: "AutoSwapNotSupported";
232
+ readonly inputs: readonly [];
233
+ }, {
234
+ readonly type: "error";
235
+ readonly name: "MinPCOutRequired";
236
+ readonly inputs: readonly [];
237
+ }, {
238
+ readonly type: "error";
239
+ readonly name: "PRC20OperationFailed";
240
+ readonly inputs: readonly [];
241
+ }, {
242
+ readonly type: "error";
243
+ readonly name: "InsufficientBalance";
244
+ readonly inputs: readonly [];
245
+ }, {
246
+ readonly type: "error";
247
+ readonly name: "InsufficientAllowance";
248
+ readonly inputs: readonly [];
249
+ }, {
250
+ readonly type: "error";
251
+ readonly name: "TransferFailed";
252
+ readonly inputs: readonly [];
253
+ }, {
254
+ readonly type: "error";
255
+ readonly name: "EmptyString";
256
+ readonly inputs: readonly [];
257
+ }, {
258
+ readonly type: "error";
259
+ readonly name: "NonDigitCharacter";
260
+ readonly inputs: readonly [];
155
261
  }];
@@ -20,17 +20,10 @@ exports.UNIVERSAL_CORE_EVM = [
20
20
  { name: 'protocolFee', type: 'uint256', internalType: 'uint256' },
21
21
  { name: 'gasPrice', type: 'uint256', internalType: 'uint256' },
22
22
  { name: 'chainNamespace', type: 'string', internalType: 'string' },
23
+ { name: 'gasLimitUsed', type: 'uint256', internalType: 'uint256' },
23
24
  ],
24
25
  stateMutability: 'view',
25
26
  },
26
- // Base gas limit (legacy global — use baseGasLimitByChainNamespace for per-chain)
27
- {
28
- type: 'function',
29
- name: 'BASE_GAS_LIMIT',
30
- inputs: [],
31
- outputs: [{ name: 'baseGasLimit', type: 'uint256', internalType: 'uint256' }],
32
- stateMutability: 'view',
33
- },
34
27
  // Per-chain base gas limit
35
28
  {
36
29
  type: 'function',
@@ -77,11 +70,15 @@ exports.UNIVERSAL_CORE_EVM = [
77
70
  name: 'swapAndBurnGas',
78
71
  inputs: [
79
72
  { name: 'gasToken', type: 'address', internalType: 'address' },
73
+ { name: 'fee', type: 'uint24', internalType: 'uint24' },
80
74
  { name: 'gasFee', type: 'uint256', internalType: 'uint256' },
81
- { name: 'protocolFee', type: 'uint256', internalType: 'uint256' },
82
- { name: 'vaultPC', type: 'address', internalType: 'address' },
75
+ { name: 'deadline', type: 'uint256', internalType: 'uint256' },
76
+ { name: 'caller', type: 'address', internalType: 'address' },
77
+ ],
78
+ outputs: [
79
+ { name: 'gasTokenOut', type: 'uint256', internalType: 'uint256' },
80
+ { name: 'refund', type: 'uint256', internalType: 'uint256' },
83
81
  ],
84
- outputs: [],
85
82
  stateMutability: 'payable',
86
83
  },
87
84
  // Errors
@@ -93,5 +90,35 @@ exports.UNIVERSAL_CORE_EVM = [
93
90
  { name: 'minimum', type: 'uint256', internalType: 'uint256' },
94
91
  ],
95
92
  },
93
+ { type: 'error', name: 'CorePaused', inputs: [] },
94
+ { type: 'error', name: 'ZeroAmount', inputs: [] },
95
+ { type: 'error', name: 'ZeroAddress', inputs: [] },
96
+ { type: 'error', name: 'ZeroBaseGasLimit', inputs: [] },
97
+ { type: 'error', name: 'ZeroGasPrice', inputs: [] },
98
+ { type: 'error', name: 'ZeroRescueGasLimit', inputs: [] },
99
+ {
100
+ type: 'error',
101
+ name: 'StaleGasData',
102
+ inputs: [
103
+ { name: 'observedAt', type: 'uint256', internalType: 'uint256' },
104
+ { name: 'nowTimestamp', type: 'uint256', internalType: 'uint256' },
105
+ { name: 'maxAge', type: 'uint256', internalType: 'uint256' },
106
+ ],
107
+ },
108
+ { type: 'error', name: 'DeadlineExpired', inputs: [] },
109
+ { type: 'error', name: 'PoolNotFound', inputs: [] },
110
+ { type: 'error', name: 'InvalidTarget', inputs: [] },
111
+ { type: 'error', name: 'InvalidFeeTier', inputs: [] },
112
+ { type: 'error', name: 'SlippageExceeded', inputs: [] },
113
+ { type: 'error', name: 'CallerIsNotUEModule', inputs: [] },
114
+ { type: 'error', name: 'CallerIsNotGatewayPC', inputs: [] },
115
+ { type: 'error', name: 'AutoSwapNotSupported', inputs: [] },
116
+ { type: 'error', name: 'MinPCOutRequired', inputs: [] },
117
+ { type: 'error', name: 'PRC20OperationFailed', inputs: [] },
118
+ { type: 'error', name: 'InsufficientBalance', inputs: [] },
119
+ { type: 'error', name: 'InsufficientAllowance', inputs: [] },
120
+ { type: 'error', name: 'TransferFailed', inputs: [] },
121
+ { type: 'error', name: 'EmptyString', inputs: [] },
122
+ { type: 'error', name: 'NonDigitCharacter', inputs: [] },
96
123
  ];
97
124
  //# sourceMappingURL=prc20.evm.js.map
@@ -289,6 +289,47 @@ exports.UEA_EVM = [
289
289
  name: 'AccountAlreadyExists',
290
290
  inputs: [],
291
291
  },
292
+ {
293
+ type: 'error',
294
+ name: 'UEAAlreadyRegistered',
295
+ inputs: [],
296
+ },
297
+ {
298
+ type: 'error',
299
+ name: 'InvalidCall',
300
+ inputs: [],
301
+ },
302
+ {
303
+ type: 'error',
304
+ name: 'InvalidInputArgs',
305
+ inputs: [],
306
+ },
307
+ {
308
+ type: 'error',
309
+ name: 'InvalidSVMSignature',
310
+ inputs: [],
311
+ },
312
+ {
313
+ type: 'error',
314
+ name: 'NonceMismatch',
315
+ inputs: [
316
+ {
317
+ name: 'expected',
318
+ type: 'uint256',
319
+ internalType: 'uint256',
320
+ },
321
+ {
322
+ name: 'provided',
323
+ type: 'uint256',
324
+ internalType: 'uint256',
325
+ },
326
+ ],
327
+ },
328
+ {
329
+ type: 'error',
330
+ name: 'PrecompileCallFailed',
331
+ inputs: [],
332
+ },
292
333
  {
293
334
  type: 'error',
294
335
  name: 'ECDSAInvalidSignature',
@@ -96,7 +96,7 @@ export declare const UNIVERSAL_GATEWAY_PC: readonly [{
96
96
  readonly inputs: readonly [{
97
97
  readonly components: readonly [{
98
98
  readonly internalType: "bytes";
99
- readonly name: "target";
99
+ readonly name: "recipient";
100
100
  readonly type: "bytes";
101
101
  }, {
102
102
  readonly internalType: "address";
@@ -110,6 +110,14 @@ export declare const UNIVERSAL_GATEWAY_PC: readonly [{
110
110
  readonly internalType: "uint256";
111
111
  readonly name: "gasLimit";
112
112
  readonly type: "uint256";
113
+ }, {
114
+ readonly internalType: "uint256";
115
+ readonly name: "gasPrice";
116
+ readonly type: "uint256";
117
+ }, {
118
+ readonly internalType: "uint256";
119
+ readonly name: "maxPCForGas";
120
+ readonly type: "uint256";
113
121
  }, {
114
122
  readonly internalType: "bytes";
115
123
  readonly name: "payload";
@@ -129,7 +137,7 @@ export declare const UNIVERSAL_GATEWAY_PC: readonly [{
129
137
  readonly type: "function";
130
138
  }, {
131
139
  readonly inputs: readonly [];
132
- readonly name: "UNIVERSAL_CORE";
140
+ readonly name: "universalCore";
133
141
  readonly outputs: readonly [{
134
142
  readonly internalType: "address";
135
143
  readonly name: "";
@@ -196,4 +204,112 @@ export declare const UNIVERSAL_GATEWAY_PC: readonly [{
196
204
  }];
197
205
  readonly name: "RescueFundsOnSourceChain";
198
206
  readonly type: "event";
207
+ }, {
208
+ readonly type: "error";
209
+ readonly name: "ZeroAddress";
210
+ readonly inputs: readonly [];
211
+ }, {
212
+ readonly type: "error";
213
+ readonly name: "ZeroAmount";
214
+ readonly inputs: readonly [];
215
+ }, {
216
+ readonly type: "error";
217
+ readonly name: "InvalidData";
218
+ readonly inputs: readonly [];
219
+ }, {
220
+ readonly type: "error";
221
+ readonly name: "InvalidInput";
222
+ readonly inputs: readonly [];
223
+ }, {
224
+ readonly type: "error";
225
+ readonly name: "InvalidAmount";
226
+ readonly inputs: readonly [];
227
+ }, {
228
+ readonly type: "error";
229
+ readonly name: "InvalidTxType";
230
+ readonly inputs: readonly [];
231
+ }, {
232
+ readonly type: "error";
233
+ readonly name: "InvalidCapRange";
234
+ readonly inputs: readonly [];
235
+ }, {
236
+ readonly type: "error";
237
+ readonly name: "InvalidRecipient";
238
+ readonly inputs: readonly [];
239
+ }, {
240
+ readonly type: "error";
241
+ readonly name: "PayloadExecuted";
242
+ readonly inputs: readonly [];
243
+ }, {
244
+ readonly type: "error";
245
+ readonly name: "Unauthorized";
246
+ readonly inputs: readonly [];
247
+ }, {
248
+ readonly type: "error";
249
+ readonly name: "GatewayNotPaused";
250
+ readonly inputs: readonly [];
251
+ }, {
252
+ readonly type: "error";
253
+ readonly name: "EmptyTokenList";
254
+ readonly inputs: readonly [];
255
+ }, {
256
+ readonly type: "error";
257
+ readonly name: "NotSupported";
258
+ readonly inputs: readonly [];
259
+ }, {
260
+ readonly type: "error";
261
+ readonly name: "GasPriceBelowBase";
262
+ readonly inputs: readonly [];
263
+ }, {
264
+ readonly type: "error";
265
+ readonly name: "DepositFailed";
266
+ readonly inputs: readonly [];
267
+ }, {
268
+ readonly type: "error";
269
+ readonly name: "WithdrawFailed";
270
+ readonly inputs: readonly [];
271
+ }, {
272
+ readonly type: "error";
273
+ readonly name: "RateLimitExceeded";
274
+ readonly inputs: readonly [];
275
+ }, {
276
+ readonly type: "error";
277
+ readonly name: "BlockCapLimitExceeded";
278
+ readonly inputs: readonly [];
279
+ }, {
280
+ readonly type: "error";
281
+ readonly name: "SlippageExceededOrExpired";
282
+ readonly inputs: readonly [];
283
+ }, {
284
+ readonly type: "error";
285
+ readonly name: "InsufficientBalance";
286
+ readonly inputs: readonly [];
287
+ }, {
288
+ readonly type: "error";
289
+ readonly name: "InsufficientProtocolFee";
290
+ readonly inputs: readonly [];
291
+ }, {
292
+ readonly type: "error";
293
+ readonly name: "TokenBurnFailed";
294
+ readonly inputs: readonly [{
295
+ readonly name: "token";
296
+ readonly type: "address";
297
+ readonly internalType: "address";
298
+ }, {
299
+ readonly name: "amount";
300
+ readonly type: "uint256";
301
+ readonly internalType: "uint256";
302
+ }];
303
+ }, {
304
+ readonly type: "error";
305
+ readonly name: "TokenTransferFailed";
306
+ readonly inputs: readonly [{
307
+ readonly name: "token";
308
+ readonly type: "address";
309
+ readonly internalType: "address";
310
+ }, {
311
+ readonly name: "amount";
312
+ readonly type: "uint256";
313
+ readonly internalType: "uint256";
314
+ }];
199
315
  }];
@@ -42,10 +42,12 @@ exports.UNIVERSAL_GATEWAY_PC = [
42
42
  inputs: [
43
43
  {
44
44
  components: [
45
- { internalType: 'bytes', name: 'target', type: 'bytes' },
45
+ { internalType: 'bytes', name: 'recipient', type: 'bytes' },
46
46
  { internalType: 'address', name: 'token', type: 'address' },
47
47
  { internalType: 'uint256', name: 'amount', type: 'uint256' },
48
48
  { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
49
+ { internalType: 'uint256', name: 'gasPrice', type: 'uint256' },
50
+ { internalType: 'uint256', name: 'maxPCForGas', type: 'uint256' },
49
51
  { internalType: 'bytes', name: 'payload', type: 'bytes' },
50
52
  { internalType: 'address', name: 'revertRecipient', type: 'address' },
51
53
  ],
@@ -61,7 +63,7 @@ exports.UNIVERSAL_GATEWAY_PC = [
61
63
  },
62
64
  {
63
65
  inputs: [],
64
- name: 'UNIVERSAL_CORE',
66
+ name: 'universalCore',
65
67
  outputs: [{ internalType: 'address', name: '', type: 'address' }],
66
68
  stateMutability: 'view',
67
69
  type: 'function',
@@ -92,5 +94,42 @@ exports.UNIVERSAL_GATEWAY_PC = [
92
94
  name: 'RescueFundsOnSourceChain',
93
95
  type: 'event',
94
96
  },
97
+ { type: 'error', name: 'ZeroAddress', inputs: [] },
98
+ { type: 'error', name: 'ZeroAmount', inputs: [] },
99
+ { type: 'error', name: 'InvalidData', inputs: [] },
100
+ { type: 'error', name: 'InvalidInput', inputs: [] },
101
+ { type: 'error', name: 'InvalidAmount', inputs: [] },
102
+ { type: 'error', name: 'InvalidTxType', inputs: [] },
103
+ { type: 'error', name: 'InvalidCapRange', inputs: [] },
104
+ { type: 'error', name: 'InvalidRecipient', inputs: [] },
105
+ { type: 'error', name: 'PayloadExecuted', inputs: [] },
106
+ { type: 'error', name: 'Unauthorized', inputs: [] },
107
+ { type: 'error', name: 'GatewayNotPaused', inputs: [] },
108
+ { type: 'error', name: 'EmptyTokenList', inputs: [] },
109
+ { type: 'error', name: 'NotSupported', inputs: [] },
110
+ { type: 'error', name: 'GasPriceBelowBase', inputs: [] },
111
+ { type: 'error', name: 'DepositFailed', inputs: [] },
112
+ { type: 'error', name: 'WithdrawFailed', inputs: [] },
113
+ { type: 'error', name: 'RateLimitExceeded', inputs: [] },
114
+ { type: 'error', name: 'BlockCapLimitExceeded', inputs: [] },
115
+ { type: 'error', name: 'SlippageExceededOrExpired', inputs: [] },
116
+ { type: 'error', name: 'InsufficientBalance', inputs: [] },
117
+ { type: 'error', name: 'InsufficientProtocolFee', inputs: [] },
118
+ {
119
+ type: 'error',
120
+ name: 'TokenBurnFailed',
121
+ inputs: [
122
+ { name: 'token', type: 'address', internalType: 'address' },
123
+ { name: 'amount', type: 'uint256', internalType: 'uint256' },
124
+ ],
125
+ },
126
+ {
127
+ type: 'error',
128
+ name: 'TokenTransferFailed',
129
+ inputs: [
130
+ { name: 'token', type: 'address', internalType: 'address' },
131
+ { name: 'amount', type: 'uint256', internalType: 'uint256' },
132
+ ],
133
+ },
95
134
  ];
96
135
  //# sourceMappingURL=universalGatewayPC.evm.js.map