@yodlpay/tokenlists 0.9.0-alpha.1 → 0.9.0-alpha.2
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-ts/YodlRouterV0.9.abi.d.ts +12 -2
- package/dist/fiatCurrencies.json +87 -42
- package/dist/index.d.ts +109 -9
- package/dist/pricefeeds.json +12224 -2333
- package/dist/tokenlist-featured.json +12 -0
- package/dist/tokenlist-generated.json +1346 -511
- package/dist/tokenlists.cjs.development.js +22360 -11559
- package/dist/tokenlists.cjs.development.js.map +1 -1
- package/dist/tokenlists.cjs.production.min.js +1 -1
- package/dist/tokenlists.cjs.production.min.js.map +1 -1
- package/dist/tokenlists.esm.js +22361 -11560
- package/dist/tokenlists.esm.js.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/update.d.ts +27 -1
- package/package.json +1 -1
|
@@ -151,6 +151,16 @@ export declare const yodlRouterAbiV09: readonly [{
|
|
|
151
151
|
}];
|
|
152
152
|
readonly stateMutability: "view";
|
|
153
153
|
readonly type: "function";
|
|
154
|
+
}, {
|
|
155
|
+
readonly inputs: readonly [];
|
|
156
|
+
readonly name: "MAX_CONVENIENCE_FEE_BPS";
|
|
157
|
+
readonly outputs: readonly [{
|
|
158
|
+
readonly internalType: "uint256";
|
|
159
|
+
readonly name: "";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
}];
|
|
162
|
+
readonly stateMutability: "view";
|
|
163
|
+
readonly type: "function";
|
|
154
164
|
}, {
|
|
155
165
|
readonly inputs: readonly [];
|
|
156
166
|
readonly name: "MAX_EXTRA_FEE_BPS";
|
|
@@ -670,7 +680,7 @@ export declare const yodlRouterAbiV09: readonly [{
|
|
|
670
680
|
readonly type: "bytes32";
|
|
671
681
|
}, {
|
|
672
682
|
readonly internalType: "uint256";
|
|
673
|
-
readonly name: "
|
|
683
|
+
readonly name: "outAmountGross";
|
|
674
684
|
readonly type: "uint256";
|
|
675
685
|
}, {
|
|
676
686
|
readonly internalType: "uint256";
|
|
@@ -760,7 +770,7 @@ export declare const yodlRouterAbiV09: readonly [{
|
|
|
760
770
|
readonly name: "params";
|
|
761
771
|
readonly type: "tuple";
|
|
762
772
|
}];
|
|
763
|
-
readonly name: "
|
|
773
|
+
readonly name: "yodlWithExternal";
|
|
764
774
|
readonly outputs: readonly [{
|
|
765
775
|
readonly internalType: "uint256";
|
|
766
776
|
readonly name: "";
|
package/dist/fiatCurrencies.json
CHANGED
|
@@ -1,107 +1,152 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
+
"code": "USD",
|
|
4
|
+
"decimals": 2,
|
|
5
|
+
"name": "United States Dollar",
|
|
6
|
+
"symbol": "$"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"code": "AUD",
|
|
10
|
+
"decimals": 2,
|
|
3
11
|
"name": "Australian Dollar",
|
|
4
|
-
"symbol": "
|
|
5
|
-
"sign": "$"
|
|
12
|
+
"symbol": "$"
|
|
6
13
|
},
|
|
7
14
|
{
|
|
15
|
+
"code": "BRL",
|
|
16
|
+
"decimals": 2,
|
|
8
17
|
"name": "Brazilian Real",
|
|
9
|
-
"symbol": "
|
|
10
|
-
"sign": "R$"
|
|
18
|
+
"symbol": "R$"
|
|
11
19
|
},
|
|
12
20
|
{
|
|
21
|
+
"code": "CAD",
|
|
22
|
+
"decimals": 2,
|
|
13
23
|
"name": "Canadian Dollar",
|
|
14
|
-
"symbol": "
|
|
15
|
-
"sign": "$"
|
|
24
|
+
"symbol": "$"
|
|
16
25
|
},
|
|
17
26
|
{
|
|
27
|
+
"code": "CHF",
|
|
28
|
+
"decimals": 2,
|
|
18
29
|
"name": "Swiss Franc",
|
|
19
|
-
"symbol": "
|
|
20
|
-
"sign": "Fr"
|
|
30
|
+
"symbol": "Fr"
|
|
21
31
|
},
|
|
22
32
|
{
|
|
33
|
+
"code": "CNY",
|
|
34
|
+
"decimals": 2,
|
|
23
35
|
"name": "Chinese Yuan",
|
|
24
|
-
"symbol": "
|
|
25
|
-
"sign": "¥"
|
|
36
|
+
"symbol": "¥"
|
|
26
37
|
},
|
|
27
38
|
{
|
|
39
|
+
"code": "EUR",
|
|
40
|
+
"decimals": 2,
|
|
28
41
|
"name": "Euro",
|
|
29
|
-
"symbol": "
|
|
30
|
-
"sign": "€"
|
|
42
|
+
"symbol": "€"
|
|
31
43
|
},
|
|
32
44
|
{
|
|
45
|
+
"code": "GBP",
|
|
46
|
+
"decimals": 2,
|
|
33
47
|
"name": "Pound Sterling",
|
|
34
|
-
"symbol": "
|
|
35
|
-
|
|
48
|
+
"symbol": "£"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "HKD",
|
|
52
|
+
"decimals": 2,
|
|
53
|
+
"name": "Hong Kong Dollar",
|
|
54
|
+
"symbol": "$"
|
|
36
55
|
},
|
|
37
56
|
{
|
|
57
|
+
"code": "IDR",
|
|
58
|
+
"decimals": 0,
|
|
38
59
|
"name": "Indonesian Rupiah",
|
|
39
|
-
"symbol": "
|
|
40
|
-
"sign": "Rp"
|
|
60
|
+
"symbol": "Rp"
|
|
41
61
|
},
|
|
42
62
|
{
|
|
63
|
+
"code": "ILS",
|
|
64
|
+
"decimals": 2,
|
|
43
65
|
"name": "Israeli New Shekel",
|
|
44
|
-
"symbol": "
|
|
45
|
-
"sign": "₪"
|
|
66
|
+
"symbol": "₪"
|
|
46
67
|
},
|
|
47
68
|
{
|
|
69
|
+
"code": "INR",
|
|
70
|
+
"decimals": 2,
|
|
48
71
|
"name": "Indian Rupee",
|
|
49
|
-
"symbol": "
|
|
50
|
-
"sign": "₹"
|
|
72
|
+
"symbol": "₹"
|
|
51
73
|
},
|
|
52
74
|
{
|
|
75
|
+
"code": "JPY",
|
|
76
|
+
"decimals": 0,
|
|
53
77
|
"name": "Japanese Yen",
|
|
54
|
-
"symbol": "
|
|
55
|
-
"sign": "¥"
|
|
78
|
+
"symbol": "¥"
|
|
56
79
|
},
|
|
57
80
|
{
|
|
81
|
+
"code": "KRW",
|
|
82
|
+
"decimals": 0,
|
|
58
83
|
"name": "South Korean Won",
|
|
59
|
-
"symbol": "
|
|
60
|
-
"sign": "₩"
|
|
84
|
+
"symbol": "₩"
|
|
61
85
|
},
|
|
62
86
|
{
|
|
87
|
+
"code": "MXN",
|
|
88
|
+
"decimals": 2,
|
|
63
89
|
"name": "Mexican Peso",
|
|
64
|
-
"symbol": "
|
|
65
|
-
"sign": "$"
|
|
90
|
+
"symbol": "$"
|
|
66
91
|
},
|
|
67
92
|
{
|
|
93
|
+
"code": "NZD",
|
|
94
|
+
"decimals": 2,
|
|
68
95
|
"name": "New Zealand Dollar",
|
|
69
|
-
"symbol": "
|
|
70
|
-
"sign": "$"
|
|
96
|
+
"symbol": "$"
|
|
71
97
|
},
|
|
72
98
|
{
|
|
99
|
+
"code": "PHP",
|
|
100
|
+
"decimals": 2,
|
|
73
101
|
"name": "Philippine Peso",
|
|
74
|
-
"symbol": "
|
|
75
|
-
"sign": "₱"
|
|
102
|
+
"symbol": "₱"
|
|
76
103
|
},
|
|
77
104
|
{
|
|
105
|
+
"code": "PLN",
|
|
106
|
+
"decimals": 2,
|
|
78
107
|
"name": "Polish Złoty",
|
|
79
|
-
"symbol": "
|
|
80
|
-
"sign": "zł"
|
|
108
|
+
"symbol": "zł"
|
|
81
109
|
},
|
|
82
110
|
{
|
|
111
|
+
"code": "SEK",
|
|
112
|
+
"decimals": 2,
|
|
83
113
|
"name": "Swedish Krona",
|
|
84
|
-
"symbol": "
|
|
85
|
-
"sign": "kr"
|
|
114
|
+
"symbol": "kr"
|
|
86
115
|
},
|
|
87
116
|
{
|
|
117
|
+
"code": "SGD",
|
|
118
|
+
"decimals": 2,
|
|
88
119
|
"name": "Singapore Dollar",
|
|
89
|
-
"symbol": "
|
|
90
|
-
"sign": "S$"
|
|
120
|
+
"symbol": "S$"
|
|
91
121
|
},
|
|
92
122
|
{
|
|
123
|
+
"code": "THB",
|
|
124
|
+
"decimals": 2,
|
|
93
125
|
"name": "Thai Baht",
|
|
94
|
-
"symbol": "
|
|
95
|
-
"sign": "฿"
|
|
126
|
+
"symbol": "฿"
|
|
96
127
|
},
|
|
97
128
|
{
|
|
129
|
+
"code": "TRY",
|
|
130
|
+
"decimals": 2,
|
|
98
131
|
"name": "Turkish Lira",
|
|
99
|
-
"symbol": "
|
|
100
|
-
"sign": "₺"
|
|
132
|
+
"symbol": "₺"
|
|
101
133
|
},
|
|
102
134
|
{
|
|
135
|
+
"code": "ZAR",
|
|
136
|
+
"decimals": 2,
|
|
103
137
|
"name": "South African Rand",
|
|
104
|
-
"symbol": "
|
|
105
|
-
|
|
138
|
+
"symbol": "R"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"code": "NGN",
|
|
142
|
+
"decimals": 2,
|
|
143
|
+
"name": "Nigerian Naira",
|
|
144
|
+
"symbol": "₦"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"code": "COP",
|
|
148
|
+
"decimals": 2,
|
|
149
|
+
"name": "Colombian Peso",
|
|
150
|
+
"symbol": "$"
|
|
106
151
|
}
|
|
107
152
|
]
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ChainInfo, RouterInfo, TokenInfo } from './types';
|
|
2
1
|
import { AbiVersion } from './abis';
|
|
2
|
+
import { ChainInfo, RouterInfo, TokenInfo } from './types';
|
|
3
3
|
export * from './abis';
|
|
4
|
-
export * from './types';
|
|
5
|
-
export * from './isVersionUpdate';
|
|
6
|
-
export * from './getVersionUpgrade';
|
|
7
4
|
export * from './diffTokenLists';
|
|
5
|
+
export * from './getVersionUpgrade';
|
|
6
|
+
export * from './isVersionUpdate';
|
|
8
7
|
export * from './minVersionBump';
|
|
9
8
|
export * from './nextVersion';
|
|
9
|
+
export * from './types';
|
|
10
10
|
export * from './versionComparator';
|
|
11
11
|
export declare const tokenlist: ({
|
|
12
12
|
chainId: number;
|
|
@@ -54,6 +54,28 @@ export declare function getPriceFeeds(chainId: number): ({
|
|
|
54
54
|
output: string;
|
|
55
55
|
type: string;
|
|
56
56
|
updateInterval: number;
|
|
57
|
+
} | {
|
|
58
|
+
decimals: number;
|
|
59
|
+
chainId: number;
|
|
60
|
+
name: string;
|
|
61
|
+
assetName: string;
|
|
62
|
+
address: string;
|
|
63
|
+
path: string;
|
|
64
|
+
input: string;
|
|
65
|
+
type: string;
|
|
66
|
+
updateInterval: number;
|
|
67
|
+
output?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
decimals: number;
|
|
70
|
+
chainId: number;
|
|
71
|
+
name: string;
|
|
72
|
+
address: string;
|
|
73
|
+
path: string;
|
|
74
|
+
type: string;
|
|
75
|
+
updateInterval: number;
|
|
76
|
+
assetName?: undefined;
|
|
77
|
+
input?: undefined;
|
|
78
|
+
output?: undefined;
|
|
57
79
|
} | {
|
|
58
80
|
decimals: number;
|
|
59
81
|
chainId: number;
|
|
@@ -77,6 +99,28 @@ export declare function getTokenFeeds(chainId: number): ({
|
|
|
77
99
|
output: string;
|
|
78
100
|
type: string;
|
|
79
101
|
updateInterval: number;
|
|
102
|
+
} | {
|
|
103
|
+
decimals: number;
|
|
104
|
+
chainId: number;
|
|
105
|
+
name: string;
|
|
106
|
+
assetName: string;
|
|
107
|
+
address: string;
|
|
108
|
+
path: string;
|
|
109
|
+
input: string;
|
|
110
|
+
type: string;
|
|
111
|
+
updateInterval: number;
|
|
112
|
+
output?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
decimals: number;
|
|
115
|
+
chainId: number;
|
|
116
|
+
name: string;
|
|
117
|
+
address: string;
|
|
118
|
+
path: string;
|
|
119
|
+
type: string;
|
|
120
|
+
updateInterval: number;
|
|
121
|
+
assetName?: undefined;
|
|
122
|
+
input?: undefined;
|
|
123
|
+
output?: undefined;
|
|
80
124
|
} | {
|
|
81
125
|
decimals: number;
|
|
82
126
|
chainId: number;
|
|
@@ -100,6 +144,28 @@ export declare function getFiatFeeds(chainId: number): ({
|
|
|
100
144
|
output: string;
|
|
101
145
|
type: string;
|
|
102
146
|
updateInterval: number;
|
|
147
|
+
} | {
|
|
148
|
+
decimals: number;
|
|
149
|
+
chainId: number;
|
|
150
|
+
name: string;
|
|
151
|
+
assetName: string;
|
|
152
|
+
address: string;
|
|
153
|
+
path: string;
|
|
154
|
+
input: string;
|
|
155
|
+
type: string;
|
|
156
|
+
updateInterval: number;
|
|
157
|
+
output?: undefined;
|
|
158
|
+
} | {
|
|
159
|
+
decimals: number;
|
|
160
|
+
chainId: number;
|
|
161
|
+
name: string;
|
|
162
|
+
address: string;
|
|
163
|
+
path: string;
|
|
164
|
+
type: string;
|
|
165
|
+
updateInterval: number;
|
|
166
|
+
assetName?: undefined;
|
|
167
|
+
input?: undefined;
|
|
168
|
+
output?: undefined;
|
|
103
169
|
} | {
|
|
104
170
|
decimals: number;
|
|
105
171
|
chainId: number;
|
|
@@ -112,15 +178,17 @@ export declare function getFiatFeeds(chainId: number): ({
|
|
|
112
178
|
assetName?: undefined;
|
|
113
179
|
input?: undefined;
|
|
114
180
|
})[];
|
|
115
|
-
export declare function getFiatCurrency(
|
|
181
|
+
export declare function getFiatCurrency(code: string): {
|
|
182
|
+
code: string;
|
|
183
|
+
decimals: number;
|
|
116
184
|
name: string;
|
|
117
185
|
symbol: string;
|
|
118
|
-
sign: string;
|
|
119
186
|
} | undefined;
|
|
120
187
|
export declare function getFiatCurrencies(): {
|
|
188
|
+
code: string;
|
|
189
|
+
decimals: number;
|
|
121
190
|
name: string;
|
|
122
191
|
symbol: string;
|
|
123
|
-
sign: string;
|
|
124
192
|
}[];
|
|
125
193
|
export declare function getPriceFeed(chainId: number, baseSymbol: string, quoteSymbol?: string): {
|
|
126
194
|
decimals: number;
|
|
@@ -133,6 +201,28 @@ export declare function getPriceFeed(chainId: number, baseSymbol: string, quoteS
|
|
|
133
201
|
output: string;
|
|
134
202
|
type: string;
|
|
135
203
|
updateInterval: number;
|
|
204
|
+
} | {
|
|
205
|
+
decimals: number;
|
|
206
|
+
chainId: number;
|
|
207
|
+
name: string;
|
|
208
|
+
assetName: string;
|
|
209
|
+
address: string;
|
|
210
|
+
path: string;
|
|
211
|
+
input: string;
|
|
212
|
+
type: string;
|
|
213
|
+
updateInterval: number;
|
|
214
|
+
output?: undefined;
|
|
215
|
+
} | {
|
|
216
|
+
decimals: number;
|
|
217
|
+
chainId: number;
|
|
218
|
+
name: string;
|
|
219
|
+
address: string;
|
|
220
|
+
path: string;
|
|
221
|
+
type: string;
|
|
222
|
+
updateInterval: number;
|
|
223
|
+
assetName?: undefined;
|
|
224
|
+
input?: undefined;
|
|
225
|
+
output?: undefined;
|
|
136
226
|
} | {
|
|
137
227
|
decimals: number;
|
|
138
228
|
chainId: number;
|
|
@@ -4572,6 +4662,16 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
4572
4662
|
}];
|
|
4573
4663
|
readonly stateMutability: "view";
|
|
4574
4664
|
readonly type: "function";
|
|
4665
|
+
}, {
|
|
4666
|
+
readonly inputs: readonly [];
|
|
4667
|
+
readonly name: "MAX_CONVENIENCE_FEE_BPS";
|
|
4668
|
+
readonly outputs: readonly [{
|
|
4669
|
+
readonly internalType: "uint256";
|
|
4670
|
+
readonly name: "";
|
|
4671
|
+
readonly type: "uint256";
|
|
4672
|
+
}];
|
|
4673
|
+
readonly stateMutability: "view";
|
|
4674
|
+
readonly type: "function";
|
|
4575
4675
|
}, {
|
|
4576
4676
|
readonly inputs: readonly [];
|
|
4577
4677
|
readonly name: "MAX_EXTRA_FEE_BPS";
|
|
@@ -5091,7 +5191,7 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
5091
5191
|
readonly type: "bytes32";
|
|
5092
5192
|
}, {
|
|
5093
5193
|
readonly internalType: "uint256";
|
|
5094
|
-
readonly name: "
|
|
5194
|
+
readonly name: "outAmountGross";
|
|
5095
5195
|
readonly type: "uint256";
|
|
5096
5196
|
}, {
|
|
5097
5197
|
readonly internalType: "uint256";
|
|
@@ -5181,7 +5281,7 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
5181
5281
|
readonly name: "params";
|
|
5182
5282
|
readonly type: "tuple";
|
|
5183
5283
|
}];
|
|
5184
|
-
readonly name: "
|
|
5284
|
+
readonly name: "yodlWithExternal";
|
|
5185
5285
|
readonly outputs: readonly [{
|
|
5186
5286
|
readonly internalType: "uint256";
|
|
5187
5287
|
readonly name: "";
|