@rabby-wallet/rabby-swap 0.0.75 → 0.0.77-beta.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/abi.d.ts +287 -287
- package/dist/abi.js +1653 -1653
- package/dist/consts.d.ts +14 -14
- package/dist/consts.js +15 -15
- package/dist/dexs/0xapi.d.ts +5 -5
- package/dist/dexs/0xapi.js +46 -46
- package/dist/dexs/0xapi_v2.d.ts +5 -5
- package/dist/dexs/0xapi_v2.js +27 -27
- package/dist/dexs/1inch.d.ts +5 -5
- package/dist/dexs/1inch.js +48 -48
- package/dist/dexs/kyberswap.d.ts +5 -5
- package/dist/dexs/kyberswap.js +67 -67
- package/dist/dexs/magpie.d.ts +5 -5
- package/dist/dexs/magpie.js +39 -39
- package/dist/dexs/odos.d.ts +5 -5
- package/dist/dexs/odos.js +26 -26
- package/dist/dexs/openocean.d.ts +5 -5
- package/dist/dexs/openocean.js +113 -113
- package/dist/dexs/paraswap.d.ts +5 -5
- package/dist/dexs/paraswap.js +89 -89
- package/dist/dexs/paraswap_v6.d.ts +5 -5
- package/dist/dexs/paraswap_v6.js +110 -110
- package/dist/dexs/rabby.d.ts +5 -5
- package/dist/dexs/rabby.js +13 -13
- package/dist/dexs/uni.d.ts +6 -6
- package/dist/dexs/uni.js +41 -41
- package/dist/dexs/wrapToken.d.ts +4 -4
- package/dist/dexs/wrapToken.js +92 -92
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/list.d.ts +346 -346
- package/dist/list.js +434 -434
- package/dist/quote.d.ts +53 -53
- package/dist/quote.js +80 -80
- package/dist/utils.d.ts +10 -10
- package/dist/utils.js +61 -61
- package/package.json +51 -51
package/dist/abi.d.ts
CHANGED
|
@@ -1,287 +1,287 @@
|
|
|
1
|
-
export declare const OneInchABI: {
|
|
2
|
-
inputs: ({
|
|
3
|
-
internalType: string;
|
|
4
|
-
name: string;
|
|
5
|
-
type: string;
|
|
6
|
-
components?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
components: {
|
|
9
|
-
internalType: string;
|
|
10
|
-
name: string;
|
|
11
|
-
type: string;
|
|
12
|
-
}[];
|
|
13
|
-
internalType: string;
|
|
14
|
-
name: string;
|
|
15
|
-
type: string;
|
|
16
|
-
})[];
|
|
17
|
-
name: string;
|
|
18
|
-
outputs: {
|
|
19
|
-
internalType: string;
|
|
20
|
-
name: string;
|
|
21
|
-
type: string;
|
|
22
|
-
}[];
|
|
23
|
-
stateMutability: string;
|
|
24
|
-
type: string;
|
|
25
|
-
}[];
|
|
26
|
-
export declare const ZeroXABI: {
|
|
27
|
-
inputs: ({
|
|
28
|
-
name: string;
|
|
29
|
-
type: string;
|
|
30
|
-
components?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
name: string;
|
|
33
|
-
type: string;
|
|
34
|
-
components: {
|
|
35
|
-
name: string;
|
|
36
|
-
type: string;
|
|
37
|
-
}[];
|
|
38
|
-
})[];
|
|
39
|
-
name: string;
|
|
40
|
-
outputs: {
|
|
41
|
-
name: string;
|
|
42
|
-
type: string;
|
|
43
|
-
}[];
|
|
44
|
-
stateMutability: string;
|
|
45
|
-
type: string;
|
|
46
|
-
}[];
|
|
47
|
-
export declare const ParaSwapABI: {
|
|
48
|
-
inputs: {
|
|
49
|
-
components: ({
|
|
50
|
-
internalType: string;
|
|
51
|
-
name: string;
|
|
52
|
-
type: string;
|
|
53
|
-
components?: undefined;
|
|
54
|
-
} | {
|
|
55
|
-
components: ({
|
|
56
|
-
internalType: string;
|
|
57
|
-
name: string;
|
|
58
|
-
type: string;
|
|
59
|
-
components?: undefined;
|
|
60
|
-
} | {
|
|
61
|
-
components: ({
|
|
62
|
-
internalType: string;
|
|
63
|
-
name: string;
|
|
64
|
-
type: string;
|
|
65
|
-
components?: undefined;
|
|
66
|
-
} | {
|
|
67
|
-
components: ({
|
|
68
|
-
internalType: string;
|
|
69
|
-
name: string;
|
|
70
|
-
type: string;
|
|
71
|
-
components?: undefined;
|
|
72
|
-
} | {
|
|
73
|
-
components: {
|
|
74
|
-
internalType: string;
|
|
75
|
-
name: string;
|
|
76
|
-
type: string;
|
|
77
|
-
}[];
|
|
78
|
-
internalType: string;
|
|
79
|
-
name: string;
|
|
80
|
-
type: string;
|
|
81
|
-
})[];
|
|
82
|
-
internalType: string;
|
|
83
|
-
name: string;
|
|
84
|
-
type: string;
|
|
85
|
-
})[];
|
|
86
|
-
internalType: string;
|
|
87
|
-
name: string;
|
|
88
|
-
type: string;
|
|
89
|
-
})[];
|
|
90
|
-
internalType: string;
|
|
91
|
-
name: string;
|
|
92
|
-
type: string;
|
|
93
|
-
})[];
|
|
94
|
-
internalType: string;
|
|
95
|
-
name: string;
|
|
96
|
-
type: string;
|
|
97
|
-
}[];
|
|
98
|
-
name: string;
|
|
99
|
-
outputs: {
|
|
100
|
-
internalType: string;
|
|
101
|
-
name: string;
|
|
102
|
-
type: string;
|
|
103
|
-
}[];
|
|
104
|
-
stateMutability: string;
|
|
105
|
-
type: string;
|
|
106
|
-
}[];
|
|
107
|
-
export declare const OpenOceanABI: ({
|
|
108
|
-
anonymous: boolean;
|
|
109
|
-
inputs: {
|
|
110
|
-
indexed: boolean;
|
|
111
|
-
internalType: string;
|
|
112
|
-
name: string;
|
|
113
|
-
type: string;
|
|
114
|
-
}[];
|
|
115
|
-
name: string;
|
|
116
|
-
type: string;
|
|
117
|
-
outputs?: undefined;
|
|
118
|
-
stateMutability?: undefined;
|
|
119
|
-
} | {
|
|
120
|
-
inputs: ({
|
|
121
|
-
internalType: string;
|
|
122
|
-
name: string;
|
|
123
|
-
type: string;
|
|
124
|
-
components?: undefined;
|
|
125
|
-
} | {
|
|
126
|
-
components: {
|
|
127
|
-
internalType: string;
|
|
128
|
-
name: string;
|
|
129
|
-
type: string;
|
|
130
|
-
}[];
|
|
131
|
-
internalType: string;
|
|
132
|
-
name: string;
|
|
133
|
-
type: string;
|
|
134
|
-
})[];
|
|
135
|
-
name: string;
|
|
136
|
-
outputs: {
|
|
137
|
-
internalType: string;
|
|
138
|
-
name: string;
|
|
139
|
-
type: string;
|
|
140
|
-
}[];
|
|
141
|
-
stateMutability: string;
|
|
142
|
-
type: string;
|
|
143
|
-
anonymous?: undefined;
|
|
144
|
-
})[];
|
|
145
|
-
export declare const KyberswapABI: ({
|
|
146
|
-
inputs: {
|
|
147
|
-
internalType: string;
|
|
148
|
-
name: string;
|
|
149
|
-
type: string;
|
|
150
|
-
}[];
|
|
151
|
-
stateMutability: string;
|
|
152
|
-
type: string;
|
|
153
|
-
anonymous?: undefined;
|
|
154
|
-
name?: undefined;
|
|
155
|
-
outputs?: undefined;
|
|
156
|
-
} | {
|
|
157
|
-
anonymous: boolean;
|
|
158
|
-
inputs: {
|
|
159
|
-
indexed: boolean;
|
|
160
|
-
internalType: string;
|
|
161
|
-
name: string;
|
|
162
|
-
type: string;
|
|
163
|
-
}[];
|
|
164
|
-
name: string;
|
|
165
|
-
type: string;
|
|
166
|
-
stateMutability?: undefined;
|
|
167
|
-
outputs?: undefined;
|
|
168
|
-
} | {
|
|
169
|
-
inputs: {
|
|
170
|
-
components: ({
|
|
171
|
-
internalType: string;
|
|
172
|
-
name: string;
|
|
173
|
-
type: string;
|
|
174
|
-
components?: undefined;
|
|
175
|
-
} | {
|
|
176
|
-
components: {
|
|
177
|
-
internalType: string;
|
|
178
|
-
name: string;
|
|
179
|
-
type: string;
|
|
180
|
-
}[];
|
|
181
|
-
internalType: string;
|
|
182
|
-
name: string;
|
|
183
|
-
type: string;
|
|
184
|
-
})[];
|
|
185
|
-
internalType: string;
|
|
186
|
-
name: string;
|
|
187
|
-
type: string;
|
|
188
|
-
}[];
|
|
189
|
-
name: string;
|
|
190
|
-
outputs: {
|
|
191
|
-
internalType: string;
|
|
192
|
-
name: string;
|
|
193
|
-
type: string;
|
|
194
|
-
}[];
|
|
195
|
-
stateMutability: string;
|
|
196
|
-
type: string;
|
|
197
|
-
anonymous?: undefined;
|
|
198
|
-
} | {
|
|
199
|
-
inputs: ({
|
|
200
|
-
internalType: string;
|
|
201
|
-
name: string;
|
|
202
|
-
type: string;
|
|
203
|
-
components?: undefined;
|
|
204
|
-
} | {
|
|
205
|
-
components: {
|
|
206
|
-
internalType: string;
|
|
207
|
-
name: string;
|
|
208
|
-
type: string;
|
|
209
|
-
}[];
|
|
210
|
-
internalType: string;
|
|
211
|
-
name: string;
|
|
212
|
-
type: string;
|
|
213
|
-
})[];
|
|
214
|
-
name: string;
|
|
215
|
-
outputs: {
|
|
216
|
-
internalType: string;
|
|
217
|
-
name: string;
|
|
218
|
-
type: string;
|
|
219
|
-
}[];
|
|
220
|
-
stateMutability: string;
|
|
221
|
-
type: string;
|
|
222
|
-
anonymous?: undefined;
|
|
223
|
-
} | {
|
|
224
|
-
stateMutability: string;
|
|
225
|
-
type: string;
|
|
226
|
-
inputs?: undefined;
|
|
227
|
-
anonymous?: undefined;
|
|
228
|
-
name?: undefined;
|
|
229
|
-
outputs?: undefined;
|
|
230
|
-
})[];
|
|
231
|
-
export declare const ParaSwapV6ABI: ({
|
|
232
|
-
inputs: ({
|
|
233
|
-
components: ({
|
|
234
|
-
components: {
|
|
235
|
-
internalType: string;
|
|
236
|
-
name: string;
|
|
237
|
-
type: string;
|
|
238
|
-
}[];
|
|
239
|
-
internalType: string;
|
|
240
|
-
name: string;
|
|
241
|
-
type: string;
|
|
242
|
-
} | {
|
|
243
|
-
internalType: string;
|
|
244
|
-
name: string;
|
|
245
|
-
type: string;
|
|
246
|
-
components?: undefined;
|
|
247
|
-
})[];
|
|
248
|
-
internalType: string;
|
|
249
|
-
name: string;
|
|
250
|
-
type: string;
|
|
251
|
-
} | {
|
|
252
|
-
internalType: string;
|
|
253
|
-
name: string;
|
|
254
|
-
type: string;
|
|
255
|
-
components?: undefined;
|
|
256
|
-
})[];
|
|
257
|
-
name: string;
|
|
258
|
-
outputs: {
|
|
259
|
-
internalType: string;
|
|
260
|
-
name: string;
|
|
261
|
-
type: string;
|
|
262
|
-
}[];
|
|
263
|
-
stateMutability: string;
|
|
264
|
-
type: string;
|
|
265
|
-
} | {
|
|
266
|
-
stateMutability: string;
|
|
267
|
-
type: string;
|
|
268
|
-
inputs?: undefined;
|
|
269
|
-
name?: undefined;
|
|
270
|
-
outputs?: undefined;
|
|
271
|
-
})[];
|
|
272
|
-
export declare const ZeroXABIV2: ({
|
|
273
|
-
inputs: never[];
|
|
274
|
-
stateMutability: string;
|
|
275
|
-
type: string;
|
|
276
|
-
name?: undefined;
|
|
277
|
-
} | {
|
|
278
|
-
inputs: never[];
|
|
279
|
-
name: string;
|
|
280
|
-
type: string;
|
|
281
|
-
stateMutability?: undefined;
|
|
282
|
-
} | {
|
|
283
|
-
stateMutability: string;
|
|
284
|
-
type: string;
|
|
285
|
-
inputs?: undefined;
|
|
286
|
-
name?: undefined;
|
|
287
|
-
})[];
|
|
1
|
+
export declare const OneInchABI: {
|
|
2
|
+
inputs: ({
|
|
3
|
+
internalType: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
components?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
components: {
|
|
9
|
+
internalType: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}[];
|
|
13
|
+
internalType: string;
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
})[];
|
|
17
|
+
name: string;
|
|
18
|
+
outputs: {
|
|
19
|
+
internalType: string;
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
}[];
|
|
23
|
+
stateMutability: string;
|
|
24
|
+
type: string;
|
|
25
|
+
}[];
|
|
26
|
+
export declare const ZeroXABI: {
|
|
27
|
+
inputs: ({
|
|
28
|
+
name: string;
|
|
29
|
+
type: string;
|
|
30
|
+
components?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
components: {
|
|
35
|
+
name: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}[];
|
|
38
|
+
})[];
|
|
39
|
+
name: string;
|
|
40
|
+
outputs: {
|
|
41
|
+
name: string;
|
|
42
|
+
type: string;
|
|
43
|
+
}[];
|
|
44
|
+
stateMutability: string;
|
|
45
|
+
type: string;
|
|
46
|
+
}[];
|
|
47
|
+
export declare const ParaSwapABI: {
|
|
48
|
+
inputs: {
|
|
49
|
+
components: ({
|
|
50
|
+
internalType: string;
|
|
51
|
+
name: string;
|
|
52
|
+
type: string;
|
|
53
|
+
components?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
components: ({
|
|
56
|
+
internalType: string;
|
|
57
|
+
name: string;
|
|
58
|
+
type: string;
|
|
59
|
+
components?: undefined;
|
|
60
|
+
} | {
|
|
61
|
+
components: ({
|
|
62
|
+
internalType: string;
|
|
63
|
+
name: string;
|
|
64
|
+
type: string;
|
|
65
|
+
components?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
components: ({
|
|
68
|
+
internalType: string;
|
|
69
|
+
name: string;
|
|
70
|
+
type: string;
|
|
71
|
+
components?: undefined;
|
|
72
|
+
} | {
|
|
73
|
+
components: {
|
|
74
|
+
internalType: string;
|
|
75
|
+
name: string;
|
|
76
|
+
type: string;
|
|
77
|
+
}[];
|
|
78
|
+
internalType: string;
|
|
79
|
+
name: string;
|
|
80
|
+
type: string;
|
|
81
|
+
})[];
|
|
82
|
+
internalType: string;
|
|
83
|
+
name: string;
|
|
84
|
+
type: string;
|
|
85
|
+
})[];
|
|
86
|
+
internalType: string;
|
|
87
|
+
name: string;
|
|
88
|
+
type: string;
|
|
89
|
+
})[];
|
|
90
|
+
internalType: string;
|
|
91
|
+
name: string;
|
|
92
|
+
type: string;
|
|
93
|
+
})[];
|
|
94
|
+
internalType: string;
|
|
95
|
+
name: string;
|
|
96
|
+
type: string;
|
|
97
|
+
}[];
|
|
98
|
+
name: string;
|
|
99
|
+
outputs: {
|
|
100
|
+
internalType: string;
|
|
101
|
+
name: string;
|
|
102
|
+
type: string;
|
|
103
|
+
}[];
|
|
104
|
+
stateMutability: string;
|
|
105
|
+
type: string;
|
|
106
|
+
}[];
|
|
107
|
+
export declare const OpenOceanABI: ({
|
|
108
|
+
anonymous: boolean;
|
|
109
|
+
inputs: {
|
|
110
|
+
indexed: boolean;
|
|
111
|
+
internalType: string;
|
|
112
|
+
name: string;
|
|
113
|
+
type: string;
|
|
114
|
+
}[];
|
|
115
|
+
name: string;
|
|
116
|
+
type: string;
|
|
117
|
+
outputs?: undefined;
|
|
118
|
+
stateMutability?: undefined;
|
|
119
|
+
} | {
|
|
120
|
+
inputs: ({
|
|
121
|
+
internalType: string;
|
|
122
|
+
name: string;
|
|
123
|
+
type: string;
|
|
124
|
+
components?: undefined;
|
|
125
|
+
} | {
|
|
126
|
+
components: {
|
|
127
|
+
internalType: string;
|
|
128
|
+
name: string;
|
|
129
|
+
type: string;
|
|
130
|
+
}[];
|
|
131
|
+
internalType: string;
|
|
132
|
+
name: string;
|
|
133
|
+
type: string;
|
|
134
|
+
})[];
|
|
135
|
+
name: string;
|
|
136
|
+
outputs: {
|
|
137
|
+
internalType: string;
|
|
138
|
+
name: string;
|
|
139
|
+
type: string;
|
|
140
|
+
}[];
|
|
141
|
+
stateMutability: string;
|
|
142
|
+
type: string;
|
|
143
|
+
anonymous?: undefined;
|
|
144
|
+
})[];
|
|
145
|
+
export declare const KyberswapABI: ({
|
|
146
|
+
inputs: {
|
|
147
|
+
internalType: string;
|
|
148
|
+
name: string;
|
|
149
|
+
type: string;
|
|
150
|
+
}[];
|
|
151
|
+
stateMutability: string;
|
|
152
|
+
type: string;
|
|
153
|
+
anonymous?: undefined;
|
|
154
|
+
name?: undefined;
|
|
155
|
+
outputs?: undefined;
|
|
156
|
+
} | {
|
|
157
|
+
anonymous: boolean;
|
|
158
|
+
inputs: {
|
|
159
|
+
indexed: boolean;
|
|
160
|
+
internalType: string;
|
|
161
|
+
name: string;
|
|
162
|
+
type: string;
|
|
163
|
+
}[];
|
|
164
|
+
name: string;
|
|
165
|
+
type: string;
|
|
166
|
+
stateMutability?: undefined;
|
|
167
|
+
outputs?: undefined;
|
|
168
|
+
} | {
|
|
169
|
+
inputs: {
|
|
170
|
+
components: ({
|
|
171
|
+
internalType: string;
|
|
172
|
+
name: string;
|
|
173
|
+
type: string;
|
|
174
|
+
components?: undefined;
|
|
175
|
+
} | {
|
|
176
|
+
components: {
|
|
177
|
+
internalType: string;
|
|
178
|
+
name: string;
|
|
179
|
+
type: string;
|
|
180
|
+
}[];
|
|
181
|
+
internalType: string;
|
|
182
|
+
name: string;
|
|
183
|
+
type: string;
|
|
184
|
+
})[];
|
|
185
|
+
internalType: string;
|
|
186
|
+
name: string;
|
|
187
|
+
type: string;
|
|
188
|
+
}[];
|
|
189
|
+
name: string;
|
|
190
|
+
outputs: {
|
|
191
|
+
internalType: string;
|
|
192
|
+
name: string;
|
|
193
|
+
type: string;
|
|
194
|
+
}[];
|
|
195
|
+
stateMutability: string;
|
|
196
|
+
type: string;
|
|
197
|
+
anonymous?: undefined;
|
|
198
|
+
} | {
|
|
199
|
+
inputs: ({
|
|
200
|
+
internalType: string;
|
|
201
|
+
name: string;
|
|
202
|
+
type: string;
|
|
203
|
+
components?: undefined;
|
|
204
|
+
} | {
|
|
205
|
+
components: {
|
|
206
|
+
internalType: string;
|
|
207
|
+
name: string;
|
|
208
|
+
type: string;
|
|
209
|
+
}[];
|
|
210
|
+
internalType: string;
|
|
211
|
+
name: string;
|
|
212
|
+
type: string;
|
|
213
|
+
})[];
|
|
214
|
+
name: string;
|
|
215
|
+
outputs: {
|
|
216
|
+
internalType: string;
|
|
217
|
+
name: string;
|
|
218
|
+
type: string;
|
|
219
|
+
}[];
|
|
220
|
+
stateMutability: string;
|
|
221
|
+
type: string;
|
|
222
|
+
anonymous?: undefined;
|
|
223
|
+
} | {
|
|
224
|
+
stateMutability: string;
|
|
225
|
+
type: string;
|
|
226
|
+
inputs?: undefined;
|
|
227
|
+
anonymous?: undefined;
|
|
228
|
+
name?: undefined;
|
|
229
|
+
outputs?: undefined;
|
|
230
|
+
})[];
|
|
231
|
+
export declare const ParaSwapV6ABI: ({
|
|
232
|
+
inputs: ({
|
|
233
|
+
components: ({
|
|
234
|
+
components: {
|
|
235
|
+
internalType: string;
|
|
236
|
+
name: string;
|
|
237
|
+
type: string;
|
|
238
|
+
}[];
|
|
239
|
+
internalType: string;
|
|
240
|
+
name: string;
|
|
241
|
+
type: string;
|
|
242
|
+
} | {
|
|
243
|
+
internalType: string;
|
|
244
|
+
name: string;
|
|
245
|
+
type: string;
|
|
246
|
+
components?: undefined;
|
|
247
|
+
})[];
|
|
248
|
+
internalType: string;
|
|
249
|
+
name: string;
|
|
250
|
+
type: string;
|
|
251
|
+
} | {
|
|
252
|
+
internalType: string;
|
|
253
|
+
name: string;
|
|
254
|
+
type: string;
|
|
255
|
+
components?: undefined;
|
|
256
|
+
})[];
|
|
257
|
+
name: string;
|
|
258
|
+
outputs: {
|
|
259
|
+
internalType: string;
|
|
260
|
+
name: string;
|
|
261
|
+
type: string;
|
|
262
|
+
}[];
|
|
263
|
+
stateMutability: string;
|
|
264
|
+
type: string;
|
|
265
|
+
} | {
|
|
266
|
+
stateMutability: string;
|
|
267
|
+
type: string;
|
|
268
|
+
inputs?: undefined;
|
|
269
|
+
name?: undefined;
|
|
270
|
+
outputs?: undefined;
|
|
271
|
+
})[];
|
|
272
|
+
export declare const ZeroXABIV2: ({
|
|
273
|
+
inputs: never[];
|
|
274
|
+
stateMutability: string;
|
|
275
|
+
type: string;
|
|
276
|
+
name?: undefined;
|
|
277
|
+
} | {
|
|
278
|
+
inputs: never[];
|
|
279
|
+
name: string;
|
|
280
|
+
type: string;
|
|
281
|
+
stateMutability?: undefined;
|
|
282
|
+
} | {
|
|
283
|
+
stateMutability: string;
|
|
284
|
+
type: string;
|
|
285
|
+
inputs?: undefined;
|
|
286
|
+
name?: undefined;
|
|
287
|
+
})[];
|