@shapeshiftoss/contracts 1.0.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/abis/arbOutbox.d.ts +413 -0
- package/dist/abis/arbOutbox.js +226 -0
- package/dist/abis/arbProxy.d.ts +102 -0
- package/dist/abis/arbProxy.js +66 -0
- package/dist/abis/arbRetryableTx.d.ts +230 -0
- package/dist/abis/arbRetryableTx.js +113 -0
- package/dist/abis/arbSys.d.ts +278 -0
- package/dist/abis/arbSys.js +139 -0
- package/dist/abis/evergreenFarming.d.ts +517 -0
- package/dist/abis/evergreenFarming.js +652 -0
- package/dist/abis/farming.d.ts +361 -0
- package/dist/abis/farming.js +456 -0
- package/dist/abis/foxy.d.ts +519 -0
- package/dist/abis/foxy.js +675 -0
- package/dist/abis/foxyStaking.d.ts +556 -0
- package/dist/abis/foxyStaking.js +717 -0
- package/dist/abis/iBep20.d.ts +201 -0
- package/dist/abis/iBep20.js +125 -0
- package/dist/abis/iUniswapV2Pair.d.ts +560 -0
- package/dist/abis/iUniswapV2Pair.js +707 -0
- package/dist/abis/iUniswapV3Pool.d.ts +770 -0
- package/dist/abis/iUniswapV3Pool.js +983 -0
- package/dist/abis/index.d.ts +24 -0
- package/dist/abis/index.js +24 -0
- package/dist/abis/l1ArbitrumGateway.d.ts +494 -0
- package/dist/abis/l1ArbitrumGateway.js +256 -0
- package/dist/abis/l1OrbitCustomGateway.d.ts +769 -0
- package/dist/abis/l1OrbitCustomGateway.js +375 -0
- package/dist/abis/l2ArbitrumGateway.d.ts +308 -0
- package/dist/abis/l2ArbitrumGateway.js +169 -0
- package/dist/abis/liquidityReserve.d.ts +421 -0
- package/dist/abis/liquidityReserve.js +547 -0
- package/dist/abis/rfox.d.ts +680 -0
- package/dist/abis/rfox.js +555 -0
- package/dist/abis/thorchainRouter.d.ts +349 -0
- package/dist/abis/thorchainRouter.js +442 -0
- package/dist/abis/tokeManager.d.ts +774 -0
- package/dist/abis/tokeManager.js +508 -0
- package/dist/abis/tokePool.d.ts +502 -0
- package/dist/abis/tokePool.js +308 -0
- package/dist/abis/tokeRewardHash.d.ts +112 -0
- package/dist/abis/tokeRewardHash.js +71 -0
- package/dist/abis/uniV2StakingRewards.d.ts +316 -0
- package/dist/abis/uniV2StakingRewards.js +411 -0
- package/dist/abis/uniswapV2Router02.d.ts +737 -0
- package/dist/abis/uniswapV2Router02.js +953 -0
- package/dist/abis/uniswapV3Quoter.d.ts +147 -0
- package/dist/abis/uniswapV3Quoter.js +193 -0
- package/dist/abis/weth.d.ts +213 -0
- package/dist/abis/weth.js +279 -0
- package/dist/constants.d.ts +6640 -0
- package/dist/constants.js +105 -0
- package/dist/contractManager.d.ts +11 -0
- package/dist/contractManager.js +69 -0
- package/dist/ethersProviderSingleton.d.ts +6 -0
- package/dist/ethersProviderSingleton.js +69 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/types.d.ts +21 -0
- package/dist/types.js +6 -0
- package/dist/viemClient.d.ts +28338 -0
- package/dist/viemClient.js +107 -0
- package/package.json +25 -0
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
export const L1_ORBIT_CUSTOM_GATEWAY_ABI = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [
|
|
4
|
+
{ internalType: 'uint256', name: 'dataLength', type: 'uint256' },
|
|
5
|
+
{ internalType: 'uint256', name: 'maxDataLength', type: 'uint256' },
|
|
6
|
+
],
|
|
7
|
+
name: 'DataTooLarge',
|
|
8
|
+
type: 'error',
|
|
9
|
+
},
|
|
10
|
+
{ inputs: [], name: 'GasLimitTooLarge', type: 'error' },
|
|
11
|
+
{
|
|
12
|
+
inputs: [
|
|
13
|
+
{ internalType: 'uint256', name: 'expected', type: 'uint256' },
|
|
14
|
+
{ internalType: 'uint256', name: 'actual', type: 'uint256' },
|
|
15
|
+
],
|
|
16
|
+
name: 'InsufficientSubmissionCost',
|
|
17
|
+
type: 'error',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{ internalType: 'uint256', name: 'expected', type: 'uint256' },
|
|
22
|
+
{ internalType: 'uint256', name: 'actual', type: 'uint256' },
|
|
23
|
+
],
|
|
24
|
+
name: 'InsufficientValue',
|
|
25
|
+
type: 'error',
|
|
26
|
+
},
|
|
27
|
+
{ inputs: [], name: 'L1Forked', type: 'error' },
|
|
28
|
+
{
|
|
29
|
+
inputs: [{ internalType: 'address', name: 'origin', type: 'address' }],
|
|
30
|
+
name: 'NotAllowedOrigin',
|
|
31
|
+
type: 'error',
|
|
32
|
+
},
|
|
33
|
+
{ inputs: [], name: 'NotForked', type: 'error' },
|
|
34
|
+
{ inputs: [], name: 'NotOrigin', type: 'error' },
|
|
35
|
+
{
|
|
36
|
+
inputs: [
|
|
37
|
+
{ internalType: 'address', name: 'sender', type: 'address' },
|
|
38
|
+
{ internalType: 'address', name: 'owner', type: 'address' },
|
|
39
|
+
],
|
|
40
|
+
name: 'NotOwner',
|
|
41
|
+
type: 'error',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
inputs: [
|
|
45
|
+
{ internalType: 'address', name: 'sender', type: 'address' },
|
|
46
|
+
{ internalType: 'address', name: 'rollup', type: 'address' },
|
|
47
|
+
{ internalType: 'address', name: 'owner', type: 'address' },
|
|
48
|
+
],
|
|
49
|
+
name: 'NotRollupOrOwner',
|
|
50
|
+
type: 'error',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
inputs: [
|
|
54
|
+
{ internalType: 'address', name: 'from', type: 'address' },
|
|
55
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
56
|
+
{ internalType: 'uint256', name: 'l2CallValue', type: 'uint256' },
|
|
57
|
+
{ internalType: 'uint256', name: 'deposit', type: 'uint256' },
|
|
58
|
+
{ internalType: 'uint256', name: 'maxSubmissionCost', type: 'uint256' },
|
|
59
|
+
{ internalType: 'address', name: 'excessFeeRefundAddress', type: 'address' },
|
|
60
|
+
{ internalType: 'address', name: 'callValueRefundAddress', type: 'address' },
|
|
61
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
62
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
63
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
64
|
+
],
|
|
65
|
+
name: 'RetryableData',
|
|
66
|
+
type: 'error',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
anonymous: false,
|
|
70
|
+
inputs: [
|
|
71
|
+
{ indexed: true, internalType: 'address', name: 'user', type: 'address' },
|
|
72
|
+
{ indexed: false, internalType: 'bool', name: 'val', type: 'bool' },
|
|
73
|
+
],
|
|
74
|
+
name: 'AllowListAddressSet',
|
|
75
|
+
type: 'event',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
anonymous: false,
|
|
79
|
+
inputs: [{ indexed: false, internalType: 'bool', name: 'isEnabled', type: 'bool' }],
|
|
80
|
+
name: 'AllowListEnabledUpdated',
|
|
81
|
+
type: 'event',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
anonymous: false,
|
|
85
|
+
inputs: [
|
|
86
|
+
{ indexed: true, internalType: 'uint256', name: 'messageNum', type: 'uint256' },
|
|
87
|
+
{ indexed: false, internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
88
|
+
],
|
|
89
|
+
name: 'InboxMessageDelivered',
|
|
90
|
+
type: 'event',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
anonymous: false,
|
|
94
|
+
inputs: [{ indexed: true, internalType: 'uint256', name: 'messageNum', type: 'uint256' }],
|
|
95
|
+
name: 'InboxMessageDeliveredFromOrigin',
|
|
96
|
+
type: 'event',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
anonymous: false,
|
|
100
|
+
inputs: [{ indexed: false, internalType: 'address', name: 'account', type: 'address' }],
|
|
101
|
+
name: 'Paused',
|
|
102
|
+
type: 'event',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
anonymous: false,
|
|
106
|
+
inputs: [{ indexed: false, internalType: 'address', name: 'account', type: 'address' }],
|
|
107
|
+
name: 'Unpaused',
|
|
108
|
+
type: 'event',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
inputs: [],
|
|
112
|
+
name: 'allowListEnabled',
|
|
113
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
114
|
+
stateMutability: 'view',
|
|
115
|
+
type: 'function',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [],
|
|
119
|
+
name: 'bridge',
|
|
120
|
+
outputs: [{ internalType: 'contract IBridge', name: '', type: 'address' }],
|
|
121
|
+
stateMutability: 'view',
|
|
122
|
+
type: 'function',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
inputs: [
|
|
126
|
+
{ internalType: 'uint256', name: 'dataLength', type: 'uint256' },
|
|
127
|
+
{ internalType: 'uint256', name: 'baseFee', type: 'uint256' },
|
|
128
|
+
],
|
|
129
|
+
name: 'calculateRetryableSubmissionFee',
|
|
130
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
131
|
+
stateMutability: 'view',
|
|
132
|
+
type: 'function',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
inputs: [
|
|
136
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
137
|
+
{ internalType: 'uint256', name: 'l2CallValue', type: 'uint256' },
|
|
138
|
+
{ internalType: 'uint256', name: 'maxSubmissionCost', type: 'uint256' },
|
|
139
|
+
{ internalType: 'address', name: 'excessFeeRefundAddress', type: 'address' },
|
|
140
|
+
{ internalType: 'address', name: 'callValueRefundAddress', type: 'address' },
|
|
141
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
142
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
143
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
144
|
+
],
|
|
145
|
+
name: 'createRetryableTicket',
|
|
146
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
147
|
+
stateMutability: 'payable',
|
|
148
|
+
type: 'function',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
inputs: [
|
|
152
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
153
|
+
{ internalType: 'uint256', name: 'l2CallValue', type: 'uint256' },
|
|
154
|
+
{ internalType: 'uint256', name: 'maxSubmissionCost', type: 'uint256' },
|
|
155
|
+
{ internalType: 'address', name: 'excessFeeRefundAddress', type: 'address' },
|
|
156
|
+
{ internalType: 'address', name: 'callValueRefundAddress', type: 'address' },
|
|
157
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
158
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
159
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
160
|
+
],
|
|
161
|
+
name: 'createRetryableTicketNoRefundAliasRewrite',
|
|
162
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
163
|
+
stateMutability: 'payable',
|
|
164
|
+
type: 'function',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
168
|
+
name: 'depositEth',
|
|
169
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
170
|
+
stateMutability: 'payable',
|
|
171
|
+
type: 'function',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
inputs: [],
|
|
175
|
+
name: 'depositEth',
|
|
176
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
177
|
+
stateMutability: 'payable',
|
|
178
|
+
type: 'function',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
inputs: [
|
|
182
|
+
{ internalType: 'contract IBridge', name: '_bridge', type: 'address' },
|
|
183
|
+
{ internalType: 'contract ISequencerInbox', name: '_sequencerInbox', type: 'address' },
|
|
184
|
+
],
|
|
185
|
+
name: 'initialize',
|
|
186
|
+
outputs: [],
|
|
187
|
+
stateMutability: 'nonpayable',
|
|
188
|
+
type: 'function',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
inputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
192
|
+
name: 'isAllowed',
|
|
193
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
194
|
+
stateMutability: 'view',
|
|
195
|
+
type: 'function',
|
|
196
|
+
},
|
|
197
|
+
{ inputs: [], name: 'pause', outputs: [], stateMutability: 'nonpayable', type: 'function' },
|
|
198
|
+
{
|
|
199
|
+
inputs: [],
|
|
200
|
+
name: 'paused',
|
|
201
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
202
|
+
stateMutability: 'view',
|
|
203
|
+
type: 'function',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
inputs: [{ internalType: 'contract IBridge', name: '', type: 'address' }],
|
|
207
|
+
name: 'postUpgradeInit',
|
|
208
|
+
outputs: [],
|
|
209
|
+
stateMutability: 'nonpayable',
|
|
210
|
+
type: 'function',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
inputs: [
|
|
214
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
215
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
216
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
217
|
+
{ internalType: 'uint256', name: 'value', type: 'uint256' },
|
|
218
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
219
|
+
],
|
|
220
|
+
name: 'sendContractTransaction',
|
|
221
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
222
|
+
stateMutability: 'nonpayable',
|
|
223
|
+
type: 'function',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
inputs: [
|
|
227
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
228
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
229
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
230
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
231
|
+
],
|
|
232
|
+
name: 'sendL1FundedContractTransaction',
|
|
233
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
234
|
+
stateMutability: 'payable',
|
|
235
|
+
type: 'function',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
inputs: [
|
|
239
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
240
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
241
|
+
{ internalType: 'uint256', name: 'nonce', type: 'uint256' },
|
|
242
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
243
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
244
|
+
],
|
|
245
|
+
name: 'sendL1FundedUnsignedTransaction',
|
|
246
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
247
|
+
stateMutability: 'payable',
|
|
248
|
+
type: 'function',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
inputs: [
|
|
252
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
253
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
254
|
+
{ internalType: 'uint256', name: 'nonce', type: 'uint256' },
|
|
255
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
256
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
257
|
+
],
|
|
258
|
+
name: 'sendL1FundedUnsignedTransactionToFork',
|
|
259
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
260
|
+
stateMutability: 'payable',
|
|
261
|
+
type: 'function',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
inputs: [{ internalType: 'bytes', name: 'messageData', type: 'bytes' }],
|
|
265
|
+
name: 'sendL2Message',
|
|
266
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
267
|
+
stateMutability: 'nonpayable',
|
|
268
|
+
type: 'function',
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
inputs: [{ internalType: 'bytes', name: 'messageData', type: 'bytes' }],
|
|
272
|
+
name: 'sendL2MessageFromOrigin',
|
|
273
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
274
|
+
stateMutability: 'nonpayable',
|
|
275
|
+
type: 'function',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
inputs: [
|
|
279
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
280
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
281
|
+
{ internalType: 'uint256', name: 'nonce', type: 'uint256' },
|
|
282
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
283
|
+
{ internalType: 'uint256', name: 'value', type: 'uint256' },
|
|
284
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
285
|
+
],
|
|
286
|
+
name: 'sendUnsignedTransaction',
|
|
287
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
288
|
+
stateMutability: 'nonpayable',
|
|
289
|
+
type: 'function',
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
inputs: [
|
|
293
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
294
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
295
|
+
{ internalType: 'uint256', name: 'nonce', type: 'uint256' },
|
|
296
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
297
|
+
{ internalType: 'uint256', name: 'value', type: 'uint256' },
|
|
298
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
299
|
+
],
|
|
300
|
+
name: 'sendUnsignedTransactionToFork',
|
|
301
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
302
|
+
stateMutability: 'nonpayable',
|
|
303
|
+
type: 'function',
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
inputs: [
|
|
307
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
308
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
309
|
+
{ internalType: 'uint256', name: 'nonce', type: 'uint256' },
|
|
310
|
+
{ internalType: 'uint256', name: 'value', type: 'uint256' },
|
|
311
|
+
{ internalType: 'address', name: 'withdrawTo', type: 'address' },
|
|
312
|
+
],
|
|
313
|
+
name: 'sendWithdrawEthToFork',
|
|
314
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
315
|
+
stateMutability: 'nonpayable',
|
|
316
|
+
type: 'function',
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
inputs: [],
|
|
320
|
+
name: 'sequencerInbox',
|
|
321
|
+
outputs: [{ internalType: 'contract ISequencerInbox', name: '', type: 'address' }],
|
|
322
|
+
stateMutability: 'view',
|
|
323
|
+
type: 'function',
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
inputs: [
|
|
327
|
+
{ internalType: 'address[]', name: 'user', type: 'address[]' },
|
|
328
|
+
{ internalType: 'bool[]', name: 'val', type: 'bool[]' },
|
|
329
|
+
],
|
|
330
|
+
name: 'setAllowList',
|
|
331
|
+
outputs: [],
|
|
332
|
+
stateMutability: 'nonpayable',
|
|
333
|
+
type: 'function',
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
inputs: [{ internalType: 'bool', name: '_allowListEnabled', type: 'bool' }],
|
|
337
|
+
name: 'setAllowListEnabled',
|
|
338
|
+
outputs: [],
|
|
339
|
+
stateMutability: 'nonpayable',
|
|
340
|
+
type: 'function',
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
inputs: [
|
|
344
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
345
|
+
{ internalType: 'uint256', name: 'l2CallValue', type: 'uint256' },
|
|
346
|
+
{ internalType: 'uint256', name: 'maxSubmissionCost', type: 'uint256' },
|
|
347
|
+
{ internalType: 'address', name: 'excessFeeRefundAddress', type: 'address' },
|
|
348
|
+
{ internalType: 'address', name: 'callValueRefundAddress', type: 'address' },
|
|
349
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
350
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
351
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
352
|
+
],
|
|
353
|
+
name: 'uniswapCreateRetryableTicket',
|
|
354
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
355
|
+
stateMutability: 'payable',
|
|
356
|
+
type: 'function',
|
|
357
|
+
},
|
|
358
|
+
{ inputs: [], name: 'unpause', outputs: [], stateMutability: 'nonpayable', type: 'function' },
|
|
359
|
+
{
|
|
360
|
+
inputs: [
|
|
361
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
362
|
+
{ internalType: 'uint256', name: 'l2CallValue', type: 'uint256' },
|
|
363
|
+
{ internalType: 'uint256', name: 'maxSubmissionCost', type: 'uint256' },
|
|
364
|
+
{ internalType: 'address', name: 'excessFeeRefundAddress', type: 'address' },
|
|
365
|
+
{ internalType: 'address', name: 'callValueRefundAddress', type: 'address' },
|
|
366
|
+
{ internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
|
|
367
|
+
{ internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
|
|
368
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
369
|
+
],
|
|
370
|
+
name: 'unsafeCreateRetryableTicket',
|
|
371
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
372
|
+
stateMutability: 'payable',
|
|
373
|
+
type: 'function',
|
|
374
|
+
},
|
|
375
|
+
];
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
export declare const L2_ARBITRUM_GATEWAY_ABI: readonly [{
|
|
2
|
+
readonly anonymous: false;
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly indexed: false;
|
|
5
|
+
readonly internalType: "address";
|
|
6
|
+
readonly name: "newDefaultGateway";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
}];
|
|
9
|
+
readonly name: "DefaultGatewayUpdated";
|
|
10
|
+
readonly type: "event";
|
|
11
|
+
}, {
|
|
12
|
+
readonly anonymous: false;
|
|
13
|
+
readonly inputs: readonly [{
|
|
14
|
+
readonly indexed: true;
|
|
15
|
+
readonly internalType: "address";
|
|
16
|
+
readonly name: "l1Token";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
}, {
|
|
19
|
+
readonly indexed: true;
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "gateway";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
readonly name: "GatewaySet";
|
|
25
|
+
readonly type: "event";
|
|
26
|
+
}, {
|
|
27
|
+
readonly anonymous: false;
|
|
28
|
+
readonly inputs: readonly [{
|
|
29
|
+
readonly indexed: true;
|
|
30
|
+
readonly internalType: "address";
|
|
31
|
+
readonly name: "token";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
}, {
|
|
34
|
+
readonly indexed: true;
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
readonly name: "_userFrom";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly indexed: true;
|
|
40
|
+
readonly internalType: "address";
|
|
41
|
+
readonly name: "_userTo";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
}, {
|
|
44
|
+
readonly indexed: false;
|
|
45
|
+
readonly internalType: "address";
|
|
46
|
+
readonly name: "gateway";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}];
|
|
49
|
+
readonly name: "TransferRouted";
|
|
50
|
+
readonly type: "event";
|
|
51
|
+
}, {
|
|
52
|
+
readonly anonymous: false;
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly indexed: true;
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "_from";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}, {
|
|
59
|
+
readonly indexed: true;
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
readonly name: "_to";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
}, {
|
|
64
|
+
readonly indexed: true;
|
|
65
|
+
readonly internalType: "uint256";
|
|
66
|
+
readonly name: "_id";
|
|
67
|
+
readonly type: "uint256";
|
|
68
|
+
}, {
|
|
69
|
+
readonly indexed: false;
|
|
70
|
+
readonly internalType: "bytes";
|
|
71
|
+
readonly name: "_data";
|
|
72
|
+
readonly type: "bytes";
|
|
73
|
+
}];
|
|
74
|
+
readonly name: "TxToL1";
|
|
75
|
+
readonly type: "event";
|
|
76
|
+
}, {
|
|
77
|
+
readonly inputs: readonly [{
|
|
78
|
+
readonly internalType: "address";
|
|
79
|
+
readonly name: "l1ERC20";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
}];
|
|
82
|
+
readonly name: "calculateL2TokenAddress";
|
|
83
|
+
readonly outputs: readonly [{
|
|
84
|
+
readonly internalType: "address";
|
|
85
|
+
readonly name: "";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
}];
|
|
88
|
+
readonly stateMutability: "view";
|
|
89
|
+
readonly type: "function";
|
|
90
|
+
}, {
|
|
91
|
+
readonly inputs: readonly [];
|
|
92
|
+
readonly name: "counterpartGateway";
|
|
93
|
+
readonly outputs: readonly [{
|
|
94
|
+
readonly internalType: "address";
|
|
95
|
+
readonly name: "";
|
|
96
|
+
readonly type: "address";
|
|
97
|
+
}];
|
|
98
|
+
readonly stateMutability: "view";
|
|
99
|
+
readonly type: "function";
|
|
100
|
+
}, {
|
|
101
|
+
readonly inputs: readonly [];
|
|
102
|
+
readonly name: "defaultGateway";
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly internalType: "address";
|
|
105
|
+
readonly name: "";
|
|
106
|
+
readonly type: "address";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "view";
|
|
109
|
+
readonly type: "function";
|
|
110
|
+
}, {
|
|
111
|
+
readonly inputs: readonly [{
|
|
112
|
+
readonly internalType: "address";
|
|
113
|
+
readonly name: "";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
}, {
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
readonly name: "";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
}, {
|
|
120
|
+
readonly internalType: "address";
|
|
121
|
+
readonly name: "";
|
|
122
|
+
readonly type: "address";
|
|
123
|
+
}, {
|
|
124
|
+
readonly internalType: "uint256";
|
|
125
|
+
readonly name: "";
|
|
126
|
+
readonly type: "uint256";
|
|
127
|
+
}, {
|
|
128
|
+
readonly internalType: "bytes";
|
|
129
|
+
readonly name: "";
|
|
130
|
+
readonly type: "bytes";
|
|
131
|
+
}];
|
|
132
|
+
readonly name: "finalizeInboundTransfer";
|
|
133
|
+
readonly outputs: readonly [];
|
|
134
|
+
readonly stateMutability: "payable";
|
|
135
|
+
readonly type: "function";
|
|
136
|
+
}, {
|
|
137
|
+
readonly inputs: readonly [{
|
|
138
|
+
readonly internalType: "address";
|
|
139
|
+
readonly name: "_token";
|
|
140
|
+
readonly type: "address";
|
|
141
|
+
}];
|
|
142
|
+
readonly name: "getGateway";
|
|
143
|
+
readonly outputs: readonly [{
|
|
144
|
+
readonly internalType: "address";
|
|
145
|
+
readonly name: "gateway";
|
|
146
|
+
readonly type: "address";
|
|
147
|
+
}];
|
|
148
|
+
readonly stateMutability: "view";
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
}, {
|
|
151
|
+
readonly inputs: readonly [{
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
readonly name: "_token";
|
|
154
|
+
readonly type: "address";
|
|
155
|
+
}, {
|
|
156
|
+
readonly internalType: "address";
|
|
157
|
+
readonly name: "_from";
|
|
158
|
+
readonly type: "address";
|
|
159
|
+
}, {
|
|
160
|
+
readonly internalType: "address";
|
|
161
|
+
readonly name: "_to";
|
|
162
|
+
readonly type: "address";
|
|
163
|
+
}, {
|
|
164
|
+
readonly internalType: "uint256";
|
|
165
|
+
readonly name: "_amount";
|
|
166
|
+
readonly type: "uint256";
|
|
167
|
+
}, {
|
|
168
|
+
readonly internalType: "bytes";
|
|
169
|
+
readonly name: "_data";
|
|
170
|
+
readonly type: "bytes";
|
|
171
|
+
}];
|
|
172
|
+
readonly name: "getOutboundCalldata";
|
|
173
|
+
readonly outputs: readonly [{
|
|
174
|
+
readonly internalType: "bytes";
|
|
175
|
+
readonly name: "";
|
|
176
|
+
readonly type: "bytes";
|
|
177
|
+
}];
|
|
178
|
+
readonly stateMutability: "view";
|
|
179
|
+
readonly type: "function";
|
|
180
|
+
}, {
|
|
181
|
+
readonly inputs: readonly [{
|
|
182
|
+
readonly internalType: "address";
|
|
183
|
+
readonly name: "_counterpartGateway";
|
|
184
|
+
readonly type: "address";
|
|
185
|
+
}, {
|
|
186
|
+
readonly internalType: "address";
|
|
187
|
+
readonly name: "_defaultGateway";
|
|
188
|
+
readonly type: "address";
|
|
189
|
+
}];
|
|
190
|
+
readonly name: "initialize";
|
|
191
|
+
readonly outputs: readonly [];
|
|
192
|
+
readonly stateMutability: "nonpayable";
|
|
193
|
+
readonly type: "function";
|
|
194
|
+
}, {
|
|
195
|
+
readonly inputs: readonly [{
|
|
196
|
+
readonly internalType: "address";
|
|
197
|
+
readonly name: "";
|
|
198
|
+
readonly type: "address";
|
|
199
|
+
}];
|
|
200
|
+
readonly name: "l1TokenToGateway";
|
|
201
|
+
readonly outputs: readonly [{
|
|
202
|
+
readonly internalType: "address";
|
|
203
|
+
readonly name: "";
|
|
204
|
+
readonly type: "address";
|
|
205
|
+
}];
|
|
206
|
+
readonly stateMutability: "view";
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
}, {
|
|
209
|
+
readonly inputs: readonly [{
|
|
210
|
+
readonly internalType: "address";
|
|
211
|
+
readonly name: "_l1Token";
|
|
212
|
+
readonly type: "address";
|
|
213
|
+
}, {
|
|
214
|
+
readonly internalType: "address";
|
|
215
|
+
readonly name: "_to";
|
|
216
|
+
readonly type: "address";
|
|
217
|
+
}, {
|
|
218
|
+
readonly internalType: "uint256";
|
|
219
|
+
readonly name: "_amount";
|
|
220
|
+
readonly type: "uint256";
|
|
221
|
+
}, {
|
|
222
|
+
readonly internalType: "bytes";
|
|
223
|
+
readonly name: "_data";
|
|
224
|
+
readonly type: "bytes";
|
|
225
|
+
}];
|
|
226
|
+
readonly name: "outboundTransfer";
|
|
227
|
+
readonly outputs: readonly [{
|
|
228
|
+
readonly internalType: "bytes";
|
|
229
|
+
readonly name: "";
|
|
230
|
+
readonly type: "bytes";
|
|
231
|
+
}];
|
|
232
|
+
readonly stateMutability: "payable";
|
|
233
|
+
readonly type: "function";
|
|
234
|
+
}, {
|
|
235
|
+
readonly inputs: readonly [{
|
|
236
|
+
readonly internalType: "address";
|
|
237
|
+
readonly name: "_token";
|
|
238
|
+
readonly type: "address";
|
|
239
|
+
}, {
|
|
240
|
+
readonly internalType: "address";
|
|
241
|
+
readonly name: "_to";
|
|
242
|
+
readonly type: "address";
|
|
243
|
+
}, {
|
|
244
|
+
readonly internalType: "uint256";
|
|
245
|
+
readonly name: "_amount";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
}, {
|
|
248
|
+
readonly internalType: "uint256";
|
|
249
|
+
readonly name: "_maxGas";
|
|
250
|
+
readonly type: "uint256";
|
|
251
|
+
}, {
|
|
252
|
+
readonly internalType: "uint256";
|
|
253
|
+
readonly name: "_gasPriceBid";
|
|
254
|
+
readonly type: "uint256";
|
|
255
|
+
}, {
|
|
256
|
+
readonly internalType: "bytes";
|
|
257
|
+
readonly name: "_data";
|
|
258
|
+
readonly type: "bytes";
|
|
259
|
+
}];
|
|
260
|
+
readonly name: "outboundTransfer";
|
|
261
|
+
readonly outputs: readonly [{
|
|
262
|
+
readonly internalType: "bytes";
|
|
263
|
+
readonly name: "";
|
|
264
|
+
readonly type: "bytes";
|
|
265
|
+
}];
|
|
266
|
+
readonly stateMutability: "payable";
|
|
267
|
+
readonly type: "function";
|
|
268
|
+
}, {
|
|
269
|
+
readonly inputs: readonly [];
|
|
270
|
+
readonly name: "postUpgradeInit";
|
|
271
|
+
readonly outputs: readonly [];
|
|
272
|
+
readonly stateMutability: "nonpayable";
|
|
273
|
+
readonly type: "function";
|
|
274
|
+
}, {
|
|
275
|
+
readonly inputs: readonly [];
|
|
276
|
+
readonly name: "router";
|
|
277
|
+
readonly outputs: readonly [{
|
|
278
|
+
readonly internalType: "address";
|
|
279
|
+
readonly name: "";
|
|
280
|
+
readonly type: "address";
|
|
281
|
+
}];
|
|
282
|
+
readonly stateMutability: "view";
|
|
283
|
+
readonly type: "function";
|
|
284
|
+
}, {
|
|
285
|
+
readonly inputs: readonly [{
|
|
286
|
+
readonly internalType: "address";
|
|
287
|
+
readonly name: "newL2DefaultGateway";
|
|
288
|
+
readonly type: "address";
|
|
289
|
+
}];
|
|
290
|
+
readonly name: "setDefaultGateway";
|
|
291
|
+
readonly outputs: readonly [];
|
|
292
|
+
readonly stateMutability: "nonpayable";
|
|
293
|
+
readonly type: "function";
|
|
294
|
+
}, {
|
|
295
|
+
readonly inputs: readonly [{
|
|
296
|
+
readonly internalType: "address[]";
|
|
297
|
+
readonly name: "_l1Token";
|
|
298
|
+
readonly type: "address[]";
|
|
299
|
+
}, {
|
|
300
|
+
readonly internalType: "address[]";
|
|
301
|
+
readonly name: "_gateway";
|
|
302
|
+
readonly type: "address[]";
|
|
303
|
+
}];
|
|
304
|
+
readonly name: "setGateway";
|
|
305
|
+
readonly outputs: readonly [];
|
|
306
|
+
readonly stateMutability: "nonpayable";
|
|
307
|
+
readonly type: "function";
|
|
308
|
+
}];
|