@rabby-wallet/rabby-swap 0.0.19 → 0.0.21
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 +144 -0
- package/dist/abi.js +766 -0
- package/dist/consts.d.ts +96 -0
- package/dist/consts.js +127 -0
- package/dist/dexs/0xapi.d.ts +5 -0
- package/dist/dexs/0xapi.js +124 -0
- package/dist/dexs/1inch.d.ts +5 -0
- package/dist/dexs/1inch.js +112 -0
- package/dist/dexs/openocean.d.ts +5 -0
- package/dist/dexs/openocean.js +165 -0
- package/dist/dexs/paraswap.d.ts +5 -0
- package/dist/dexs/paraswap.js +180 -0
- package/dist/dexs/wrapToken.d.ts +4 -0
- package/dist/dexs/wrapToken.js +71 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/quote.d.ts +45 -0
- package/dist/quote.js +44 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +5 -0
- package/package.json +47 -44
- package/__tests__/decodeCalldata.ts +0 -338
- package/babel.config.json +0 -3
- package/jest.config.ts +0 -10
- package/src/abi.ts +0 -769
- package/src/consts.ts +0 -132
- package/src/dexs/0xapi.ts +0 -158
- package/src/dexs/1inch.ts +0 -165
- package/src/dexs/openocean.ts +0 -217
- package/src/dexs/paraswap.ts +0 -280
- package/src/dexs/wrapToken.ts +0 -74
- package/src/index.ts +0 -17
- package/src/quote.ts +0 -85
- package/src/utils.ts +0 -4
- package/svgTransform.js +0 -11
- package/tsconfig.json +0 -14
package/dist/abi.d.ts
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
})[];
|