@katanaperps/katana-perps-sdk 1.0.0 → 1.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.
- package/README.md +1 -1
- package/dist/abis/ExchangeLayerZeroAdapter_v1.json +728 -0
- package/dist/abis/IVaultComposerSync.json +537 -0
- package/dist/abis/KatanaPerpsStargateForwarder_v1.json +563 -0
- package/dist/bridge/config.d.ts +46 -57
- package/dist/bridge/config.d.ts.map +1 -1
- package/dist/bridge/config.js +39 -48
- package/dist/bridge/deposit.d.ts +23 -3
- package/dist/bridge/deposit.d.ts.map +1 -1
- package/dist/bridge/deposit.js +114 -42
- package/dist/bridge/utils.d.ts +26 -32
- package/dist/bridge/utils.d.ts.map +1 -1
- package/dist/bridge/withdraw.d.ts +1 -1
- package/dist/bridge/withdraw.d.ts.map +1 -1
- package/dist/bridge/withdraw.js +13 -32
- package/dist/client/rest/authenticated.d.ts +1 -0
- package/dist/client/rest/authenticated.d.ts.map +1 -1
- package/dist/client/rest/authenticated.js +24 -13
- package/dist/client/rest/public.d.ts +23 -0
- package/dist/client/rest/public.d.ts.map +1 -1
- package/dist/client/rest/public.js +25 -0
- package/dist/typechain-types/{ExchangeLayerZeroAdapter_v3.d.ts → ExchangeLayerZeroAdapter_v1.d.ts} +32 -37
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v1.d.ts.map +1 -0
- package/dist/typechain-types/IVaultComposerSync.d.ts +247 -0
- package/dist/typechain-types/IVaultComposerSync.d.ts.map +1 -0
- package/dist/typechain-types/{KumaStargateForwarder_v2.d.ts → KatanaPerpsStargateForwarder_v1.d.ts} +38 -14
- package/dist/typechain-types/KatanaPerpsStargateForwarder_v1.d.ts.map +1 -0
- package/dist/typechain-types/factories/{ExchangeLayerZeroAdapter_v3__factory.d.ts → ExchangeLayerZeroAdapter_v1__factory.d.ts} +62 -36
- package/dist/typechain-types/factories/{ExchangeLayerZeroAdapter_v3__factory.d.ts.map → ExchangeLayerZeroAdapter_v1__factory.d.ts.map} +1 -1
- package/dist/typechain-types/factories/{ExchangeLayerZeroAdapter_v3__factory.js → ExchangeLayerZeroAdapter_v1__factory.js} +77 -42
- package/dist/typechain-types/factories/IVaultComposerSync__factory.d.ts +422 -0
- package/dist/typechain-types/factories/IVaultComposerSync__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/IVaultComposerSync__factory.js +554 -0
- package/dist/typechain-types/factories/{KumaStargateForwarder_v2__factory.d.ts → KatanaPerpsStargateForwarder_v1__factory.d.ts} +103 -31
- package/dist/typechain-types/factories/KatanaPerpsStargateForwarder_v1__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/{KumaStargateForwarder_v2__factory.js → KatanaPerpsStargateForwarder_v1__factory.js} +125 -31
- package/dist/typechain-types/factories/index.d.ts +3 -0
- package/dist/typechain-types/factories/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/index.js +7 -1
- package/dist/typechain-types/index.d.ts +6 -0
- package/dist/typechain-types/index.d.ts.map +1 -1
- package/dist/typechain-types/index.js +7 -1
- package/dist/types/enums/request.d.ts +2 -4
- package/dist/types/enums/request.d.ts.map +1 -1
- package/dist/types/enums/request.js +1 -2
- package/dist/types/rest/endpoints/GetExchange.d.ts +10 -0
- package/dist/types/rest/endpoints/GetExchange.d.ts.map +1 -1
- package/dist/types/rest/endpoints/GetFundingRateSamples.d.ts +40 -0
- package/dist/types/rest/endpoints/GetFundingRateSamples.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetGasFees.d.ts +2 -0
- package/dist/types/rest/endpoints/GetGasFees.d.ts.map +1 -1
- package/dist/types/rest/endpoints/index.d.ts +1 -0
- package/dist/types/rest/endpoints/index.d.ts.map +1 -1
- package/dist/types/rest/endpoints/index.js +1 -0
- package/package.json +1 -1
- package/dist/typechain-types/ExchangeLayerZeroAdapter.d.ts +0 -253
- package/dist/typechain-types/ExchangeLayerZeroAdapter.d.ts.map +0 -1
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.d.ts +0 -338
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.d.ts.map +0 -1
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.d.ts.map +0 -1
- package/dist/typechain-types/Exchange_v2.d.ts +0 -2148
- package/dist/typechain-types/Exchange_v2.d.ts.map +0 -1
- package/dist/typechain-types/KumaStargateForwarder_v1.d.ts +0 -252
- package/dist/typechain-types/KumaStargateForwarder_v1.d.ts.map +0 -1
- package/dist/typechain-types/KumaStargateForwarder_v1.js +0 -2
- package/dist/typechain-types/KumaStargateForwarder_v2.d.ts.map +0 -1
- package/dist/typechain-types/KumaStargateForwarder_v2.js +0 -2
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.d.ts +0 -359
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.js +0 -471
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.d.ts +0 -419
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.js +0 -545
- package/dist/typechain-types/factories/Exchange_v2__factory.d.ts +0 -2832
- package/dist/typechain-types/factories/Exchange_v2__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/Exchange_v2__factory.js +0 -3636
- package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.d.ts +0 -354
- package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.js +0 -464
- package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.d.ts.map +0 -1
- /package/dist/typechain-types/{ExchangeLayerZeroAdapter.js → ExchangeLayerZeroAdapter_v1.js} +0 -0
- /package/dist/typechain-types/{ExchangeLayerZeroAdapter_v2.js → IVaultComposerSync.js} +0 -0
- /package/dist/typechain-types/{ExchangeLayerZeroAdapter_v3.js → KatanaPerpsStargateForwarder_v1.js} +0 -0
- /package/dist/{typechain-types/Exchange_v2.js → types/rest/endpoints/GetFundingRateSamples.js} +0 -0
|
@@ -1,545 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Autogenerated file. Do not edit manually. */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ExchangeLayerZeroAdapter_v2__factory = void 0;
|
|
7
|
-
const ethers_1 = require("ethers");
|
|
8
|
-
const _abi = [
|
|
9
|
-
{
|
|
10
|
-
inputs: [
|
|
11
|
-
{
|
|
12
|
-
internalType: 'uint32',
|
|
13
|
-
name: 'berachainEndpointId_',
|
|
14
|
-
type: 'uint32',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
internalType: 'address',
|
|
18
|
-
name: 'exchange_',
|
|
19
|
-
type: 'address',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
internalType: 'address',
|
|
23
|
-
name: 'lzEndpoint_',
|
|
24
|
-
type: 'address',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
internalType: 'uint64',
|
|
28
|
-
name: 'minimumWithdrawQuantityMultiplier_',
|
|
29
|
-
type: 'uint64',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
internalType: 'address',
|
|
33
|
-
name: 'oft_',
|
|
34
|
-
type: 'address',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
internalType: 'address',
|
|
38
|
-
name: 'quoteAsset_',
|
|
39
|
-
type: 'address',
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
stateMutability: 'nonpayable',
|
|
43
|
-
type: 'constructor',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
anonymous: false,
|
|
47
|
-
inputs: [
|
|
48
|
-
{
|
|
49
|
-
indexed: false,
|
|
50
|
-
internalType: 'address',
|
|
51
|
-
name: 'destinationWallet',
|
|
52
|
-
type: 'address',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
indexed: false,
|
|
56
|
-
internalType: 'uint256',
|
|
57
|
-
name: 'quantity',
|
|
58
|
-
type: 'uint256',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
indexed: false,
|
|
62
|
-
internalType: 'bytes',
|
|
63
|
-
name: 'errorData',
|
|
64
|
-
type: 'bytes',
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
name: 'LzComposeFailed',
|
|
68
|
-
type: 'event',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
anonymous: false,
|
|
72
|
-
inputs: [
|
|
73
|
-
{
|
|
74
|
-
indexed: false,
|
|
75
|
-
internalType: 'uint32',
|
|
76
|
-
name: 'sourceEndpointId',
|
|
77
|
-
type: 'uint32',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
indexed: false,
|
|
81
|
-
internalType: 'address',
|
|
82
|
-
name: 'composeFrom',
|
|
83
|
-
type: 'address',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
indexed: false,
|
|
87
|
-
internalType: 'address',
|
|
88
|
-
name: 'destinationWallet',
|
|
89
|
-
type: 'address',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
indexed: false,
|
|
93
|
-
internalType: 'uint256',
|
|
94
|
-
name: 'quantity',
|
|
95
|
-
type: 'uint256',
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
name: 'LzComposeSucceeded',
|
|
99
|
-
type: 'event',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
anonymous: false,
|
|
103
|
-
inputs: [
|
|
104
|
-
{
|
|
105
|
-
indexed: true,
|
|
106
|
-
internalType: 'address',
|
|
107
|
-
name: 'previousOwner',
|
|
108
|
-
type: 'address',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
indexed: true,
|
|
112
|
-
internalType: 'address',
|
|
113
|
-
name: 'newOwner',
|
|
114
|
-
type: 'address',
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
name: 'OwnershipTransferStarted',
|
|
118
|
-
type: 'event',
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
anonymous: false,
|
|
122
|
-
inputs: [
|
|
123
|
-
{
|
|
124
|
-
indexed: true,
|
|
125
|
-
internalType: 'address',
|
|
126
|
-
name: 'previousOwner',
|
|
127
|
-
type: 'address',
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
indexed: true,
|
|
131
|
-
internalType: 'address',
|
|
132
|
-
name: 'newOwner',
|
|
133
|
-
type: 'address',
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
name: 'OwnershipTransferred',
|
|
137
|
-
type: 'event',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
anonymous: false,
|
|
141
|
-
inputs: [
|
|
142
|
-
{
|
|
143
|
-
indexed: false,
|
|
144
|
-
internalType: 'address',
|
|
145
|
-
name: 'destinationWallet',
|
|
146
|
-
type: 'address',
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
indexed: false,
|
|
150
|
-
internalType: 'uint256',
|
|
151
|
-
name: 'quantity',
|
|
152
|
-
type: 'uint256',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
indexed: false,
|
|
156
|
-
internalType: 'bytes',
|
|
157
|
-
name: 'payload',
|
|
158
|
-
type: 'bytes',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
indexed: false,
|
|
162
|
-
internalType: 'bytes',
|
|
163
|
-
name: 'errorData',
|
|
164
|
-
type: 'bytes',
|
|
165
|
-
},
|
|
166
|
-
],
|
|
167
|
-
name: 'WithdrawQuoteAssetFailed',
|
|
168
|
-
type: 'event',
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
inputs: [],
|
|
172
|
-
name: 'PIP_PRICE_MULTIPLIER',
|
|
173
|
-
outputs: [
|
|
174
|
-
{
|
|
175
|
-
internalType: 'uint64',
|
|
176
|
-
name: '',
|
|
177
|
-
type: 'uint64',
|
|
178
|
-
},
|
|
179
|
-
],
|
|
180
|
-
stateMutability: 'view',
|
|
181
|
-
type: 'function',
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
inputs: [],
|
|
185
|
-
name: 'acceptOwnership',
|
|
186
|
-
outputs: [],
|
|
187
|
-
stateMutability: 'nonpayable',
|
|
188
|
-
type: 'function',
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
inputs: [],
|
|
192
|
-
name: 'berachainEndpointId',
|
|
193
|
-
outputs: [
|
|
194
|
-
{
|
|
195
|
-
internalType: 'uint32',
|
|
196
|
-
name: '',
|
|
197
|
-
type: 'uint32',
|
|
198
|
-
},
|
|
199
|
-
],
|
|
200
|
-
stateMutability: 'view',
|
|
201
|
-
type: 'function',
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
inputs: [
|
|
205
|
-
{
|
|
206
|
-
internalType: 'uint32',
|
|
207
|
-
name: 'destinationEndpointId',
|
|
208
|
-
type: 'uint32',
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
internalType: 'uint64',
|
|
212
|
-
name: 'quantity',
|
|
213
|
-
type: 'uint64',
|
|
214
|
-
},
|
|
215
|
-
],
|
|
216
|
-
name: 'estimateWithdrawQuantityInAssetUnits',
|
|
217
|
-
outputs: [
|
|
218
|
-
{
|
|
219
|
-
internalType: 'uint256',
|
|
220
|
-
name: 'estimatedWithdrawQuantityInAssetUnits',
|
|
221
|
-
type: 'uint256',
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
internalType: 'uint256',
|
|
225
|
-
name: 'minimumWithdrawQuantityInAssetUnits',
|
|
226
|
-
type: 'uint256',
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
internalType: 'uint8',
|
|
230
|
-
name: 'poolDecimals',
|
|
231
|
-
type: 'uint8',
|
|
232
|
-
},
|
|
233
|
-
],
|
|
234
|
-
stateMutability: 'view',
|
|
235
|
-
type: 'function',
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
inputs: [],
|
|
239
|
-
name: 'exchange',
|
|
240
|
-
outputs: [
|
|
241
|
-
{
|
|
242
|
-
internalType: 'contract IExchange',
|
|
243
|
-
name: '',
|
|
244
|
-
type: 'address',
|
|
245
|
-
},
|
|
246
|
-
],
|
|
247
|
-
stateMutability: 'view',
|
|
248
|
-
type: 'function',
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
inputs: [],
|
|
252
|
-
name: 'isDepositEnabled',
|
|
253
|
-
outputs: [
|
|
254
|
-
{
|
|
255
|
-
internalType: 'bool',
|
|
256
|
-
name: '',
|
|
257
|
-
type: 'bool',
|
|
258
|
-
},
|
|
259
|
-
],
|
|
260
|
-
stateMutability: 'view',
|
|
261
|
-
type: 'function',
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
inputs: [],
|
|
265
|
-
name: 'isWithdrawEnabled',
|
|
266
|
-
outputs: [
|
|
267
|
-
{
|
|
268
|
-
internalType: 'bool',
|
|
269
|
-
name: '',
|
|
270
|
-
type: 'bool',
|
|
271
|
-
},
|
|
272
|
-
],
|
|
273
|
-
stateMutability: 'view',
|
|
274
|
-
type: 'function',
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
inputs: [],
|
|
278
|
-
name: 'loadBerachainWithdrawalGasFeesInAssetUnits',
|
|
279
|
-
outputs: [
|
|
280
|
-
{
|
|
281
|
-
internalType: 'uint256',
|
|
282
|
-
name: 'gasFeeWithoutForwardInAssetUnits',
|
|
283
|
-
type: 'uint256',
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
internalType: 'uint256',
|
|
287
|
-
name: 'gasFeeWithForwardInAssetUnits',
|
|
288
|
-
type: 'uint256',
|
|
289
|
-
},
|
|
290
|
-
],
|
|
291
|
-
stateMutability: 'view',
|
|
292
|
-
type: 'function',
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
inputs: [
|
|
296
|
-
{
|
|
297
|
-
internalType: 'address',
|
|
298
|
-
name: '_from',
|
|
299
|
-
type: 'address',
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
internalType: 'bytes32',
|
|
303
|
-
name: '',
|
|
304
|
-
type: 'bytes32',
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
internalType: 'bytes',
|
|
308
|
-
name: '_message',
|
|
309
|
-
type: 'bytes',
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
internalType: 'address',
|
|
313
|
-
name: '',
|
|
314
|
-
type: 'address',
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
internalType: 'bytes',
|
|
318
|
-
name: '',
|
|
319
|
-
type: 'bytes',
|
|
320
|
-
},
|
|
321
|
-
],
|
|
322
|
-
name: 'lzCompose',
|
|
323
|
-
outputs: [],
|
|
324
|
-
stateMutability: 'payable',
|
|
325
|
-
type: 'function',
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
inputs: [],
|
|
329
|
-
name: 'lzEndpoint',
|
|
330
|
-
outputs: [
|
|
331
|
-
{
|
|
332
|
-
internalType: 'address',
|
|
333
|
-
name: '',
|
|
334
|
-
type: 'address',
|
|
335
|
-
},
|
|
336
|
-
],
|
|
337
|
-
stateMutability: 'view',
|
|
338
|
-
type: 'function',
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
inputs: [],
|
|
342
|
-
name: 'minimumWithdrawQuantityMultiplier',
|
|
343
|
-
outputs: [
|
|
344
|
-
{
|
|
345
|
-
internalType: 'uint64',
|
|
346
|
-
name: '',
|
|
347
|
-
type: 'uint64',
|
|
348
|
-
},
|
|
349
|
-
],
|
|
350
|
-
stateMutability: 'view',
|
|
351
|
-
type: 'function',
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
inputs: [],
|
|
355
|
-
name: 'oft',
|
|
356
|
-
outputs: [
|
|
357
|
-
{
|
|
358
|
-
internalType: 'contract IOFT',
|
|
359
|
-
name: '',
|
|
360
|
-
type: 'address',
|
|
361
|
-
},
|
|
362
|
-
],
|
|
363
|
-
stateMutability: 'view',
|
|
364
|
-
type: 'function',
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
inputs: [],
|
|
368
|
-
name: 'owner',
|
|
369
|
-
outputs: [
|
|
370
|
-
{
|
|
371
|
-
internalType: 'address',
|
|
372
|
-
name: '',
|
|
373
|
-
type: 'address',
|
|
374
|
-
},
|
|
375
|
-
],
|
|
376
|
-
stateMutability: 'view',
|
|
377
|
-
type: 'function',
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
inputs: [],
|
|
381
|
-
name: 'pendingOwner',
|
|
382
|
-
outputs: [
|
|
383
|
-
{
|
|
384
|
-
internalType: 'address',
|
|
385
|
-
name: '',
|
|
386
|
-
type: 'address',
|
|
387
|
-
},
|
|
388
|
-
],
|
|
389
|
-
stateMutability: 'view',
|
|
390
|
-
type: 'function',
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
inputs: [],
|
|
394
|
-
name: 'quoteAsset',
|
|
395
|
-
outputs: [
|
|
396
|
-
{
|
|
397
|
-
internalType: 'contract IERC20',
|
|
398
|
-
name: '',
|
|
399
|
-
type: 'address',
|
|
400
|
-
},
|
|
401
|
-
],
|
|
402
|
-
stateMutability: 'view',
|
|
403
|
-
type: 'function',
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
inputs: [],
|
|
407
|
-
name: 'renounceOwnership',
|
|
408
|
-
outputs: [],
|
|
409
|
-
stateMutability: 'nonpayable',
|
|
410
|
-
type: 'function',
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
inputs: [
|
|
414
|
-
{
|
|
415
|
-
internalType: 'bool',
|
|
416
|
-
name: 'isEnabled',
|
|
417
|
-
type: 'bool',
|
|
418
|
-
},
|
|
419
|
-
],
|
|
420
|
-
name: 'setDepositEnabled',
|
|
421
|
-
outputs: [],
|
|
422
|
-
stateMutability: 'nonpayable',
|
|
423
|
-
type: 'function',
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
inputs: [
|
|
427
|
-
{
|
|
428
|
-
internalType: 'uint64',
|
|
429
|
-
name: 'newMinimumWithdrawQuantityMultiplier',
|
|
430
|
-
type: 'uint64',
|
|
431
|
-
},
|
|
432
|
-
],
|
|
433
|
-
name: 'setMinimumWithdrawQuantityMultiplier',
|
|
434
|
-
outputs: [],
|
|
435
|
-
stateMutability: 'nonpayable',
|
|
436
|
-
type: 'function',
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
inputs: [
|
|
440
|
-
{
|
|
441
|
-
internalType: 'address',
|
|
442
|
-
name: 'stargateForwarder_',
|
|
443
|
-
type: 'address',
|
|
444
|
-
},
|
|
445
|
-
],
|
|
446
|
-
name: 'setStargateForwarder',
|
|
447
|
-
outputs: [],
|
|
448
|
-
stateMutability: 'nonpayable',
|
|
449
|
-
type: 'function',
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
inputs: [
|
|
453
|
-
{
|
|
454
|
-
internalType: 'bool',
|
|
455
|
-
name: 'isEnabled',
|
|
456
|
-
type: 'bool',
|
|
457
|
-
},
|
|
458
|
-
],
|
|
459
|
-
name: 'setWithdrawEnabled',
|
|
460
|
-
outputs: [],
|
|
461
|
-
stateMutability: 'nonpayable',
|
|
462
|
-
type: 'function',
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
inputs: [],
|
|
466
|
-
name: 'stargateForwarder',
|
|
467
|
-
outputs: [
|
|
468
|
-
{
|
|
469
|
-
internalType: 'address',
|
|
470
|
-
name: '',
|
|
471
|
-
type: 'address',
|
|
472
|
-
},
|
|
473
|
-
],
|
|
474
|
-
stateMutability: 'view',
|
|
475
|
-
type: 'function',
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
inputs: [
|
|
479
|
-
{
|
|
480
|
-
internalType: 'address',
|
|
481
|
-
name: 'newOwner',
|
|
482
|
-
type: 'address',
|
|
483
|
-
},
|
|
484
|
-
],
|
|
485
|
-
name: 'transferOwnership',
|
|
486
|
-
outputs: [],
|
|
487
|
-
stateMutability: 'nonpayable',
|
|
488
|
-
type: 'function',
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
inputs: [
|
|
492
|
-
{
|
|
493
|
-
internalType: 'address payable',
|
|
494
|
-
name: 'destinationContractOrWallet',
|
|
495
|
-
type: 'address',
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
internalType: 'uint256',
|
|
499
|
-
name: 'quantity',
|
|
500
|
-
type: 'uint256',
|
|
501
|
-
},
|
|
502
|
-
],
|
|
503
|
-
name: 'withdrawNativeAsset',
|
|
504
|
-
outputs: [],
|
|
505
|
-
stateMutability: 'nonpayable',
|
|
506
|
-
type: 'function',
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
inputs: [
|
|
510
|
-
{
|
|
511
|
-
internalType: 'address',
|
|
512
|
-
name: 'destinationWallet',
|
|
513
|
-
type: 'address',
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
internalType: 'uint256',
|
|
517
|
-
name: 'quantity',
|
|
518
|
-
type: 'uint256',
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
internalType: 'bytes',
|
|
522
|
-
name: 'payload',
|
|
523
|
-
type: 'bytes',
|
|
524
|
-
},
|
|
525
|
-
],
|
|
526
|
-
name: 'withdrawQuoteAsset',
|
|
527
|
-
outputs: [],
|
|
528
|
-
stateMutability: 'nonpayable',
|
|
529
|
-
type: 'function',
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
stateMutability: 'payable',
|
|
533
|
-
type: 'receive',
|
|
534
|
-
},
|
|
535
|
-
];
|
|
536
|
-
class ExchangeLayerZeroAdapter_v2__factory {
|
|
537
|
-
static abi = _abi;
|
|
538
|
-
static createInterface() {
|
|
539
|
-
return new ethers_1.Interface(_abi);
|
|
540
|
-
}
|
|
541
|
-
static connect(address, runner) {
|
|
542
|
-
return new ethers_1.Contract(address, _abi, runner);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
exports.ExchangeLayerZeroAdapter_v2__factory = ExchangeLayerZeroAdapter_v2__factory;
|