@yodlpay/tokenlists 0.8.32 → 0.9.0-alpha.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.
@@ -672,6 +672,10 @@ export declare const yodlRouterAbiV09: readonly [{
672
672
  readonly internalType: "uint256";
673
673
  readonly name: "amount";
674
674
  readonly type: "uint256";
675
+ }, {
676
+ readonly internalType: "uint256";
677
+ readonly name: "invoiceAmount";
678
+ readonly type: "uint256";
675
679
  }, {
676
680
  readonly components: readonly [{
677
681
  readonly internalType: "address";
@@ -1,152 +1,107 @@
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,
11
3
  "name": "Australian Dollar",
12
- "symbol": "$"
4
+ "symbol": "AUD",
5
+ "sign": "$"
13
6
  },
14
7
  {
15
- "code": "BRL",
16
- "decimals": 2,
17
8
  "name": "Brazilian Real",
18
- "symbol": "R$"
9
+ "symbol": "BRL",
10
+ "sign": "R$"
19
11
  },
20
12
  {
21
- "code": "CAD",
22
- "decimals": 2,
23
13
  "name": "Canadian Dollar",
24
- "symbol": "$"
14
+ "symbol": "CAD",
15
+ "sign": "$"
25
16
  },
26
17
  {
27
- "code": "CHF",
28
- "decimals": 2,
29
18
  "name": "Swiss Franc",
30
- "symbol": "Fr"
19
+ "symbol": "CHF",
20
+ "sign": "Fr"
31
21
  },
32
22
  {
33
- "code": "CNY",
34
- "decimals": 2,
35
23
  "name": "Chinese Yuan",
36
- "symbol": "¥"
24
+ "symbol": "CNY",
25
+ "sign": "¥"
37
26
  },
38
27
  {
39
- "code": "EUR",
40
- "decimals": 2,
41
28
  "name": "Euro",
42
- "symbol": ""
29
+ "symbol": "EUR",
30
+ "sign": "€"
43
31
  },
44
32
  {
45
- "code": "GBP",
46
- "decimals": 2,
47
33
  "name": "Pound Sterling",
48
- "symbol": "£"
49
- },
50
- {
51
- "code": "HKD",
52
- "decimals": 2,
53
- "name": "Hong Kong Dollar",
54
- "symbol": "$"
34
+ "symbol": "GBP",
35
+ "sign": "£"
55
36
  },
56
37
  {
57
- "code": "IDR",
58
- "decimals": 0,
59
38
  "name": "Indonesian Rupiah",
60
- "symbol": "Rp"
39
+ "symbol": "IDR",
40
+ "sign": "Rp"
61
41
  },
62
42
  {
63
- "code": "ILS",
64
- "decimals": 2,
65
43
  "name": "Israeli New Shekel",
66
- "symbol": ""
44
+ "symbol": "ILS",
45
+ "sign": "₪"
67
46
  },
68
47
  {
69
- "code": "INR",
70
- "decimals": 2,
71
48
  "name": "Indian Rupee",
72
- "symbol": ""
49
+ "symbol": "INR",
50
+ "sign": "₹"
73
51
  },
74
52
  {
75
- "code": "JPY",
76
- "decimals": 0,
77
53
  "name": "Japanese Yen",
78
- "symbol": "¥"
54
+ "symbol": "JPY",
55
+ "sign": "¥"
79
56
  },
80
57
  {
81
- "code": "KRW",
82
- "decimals": 0,
83
58
  "name": "South Korean Won",
84
- "symbol": ""
59
+ "symbol": "KRW",
60
+ "sign": "₩"
85
61
  },
86
62
  {
87
- "code": "MXN",
88
- "decimals": 2,
89
63
  "name": "Mexican Peso",
90
- "symbol": "$"
64
+ "symbol": "MXN",
65
+ "sign": "$"
91
66
  },
92
67
  {
93
- "code": "NZD",
94
- "decimals": 2,
95
68
  "name": "New Zealand Dollar",
96
- "symbol": "$"
69
+ "symbol": "NZD",
70
+ "sign": "$"
97
71
  },
98
72
  {
99
- "code": "PHP",
100
- "decimals": 2,
101
73
  "name": "Philippine Peso",
102
- "symbol": ""
74
+ "symbol": "PHP",
75
+ "sign": "₱"
103
76
  },
104
77
  {
105
- "code": "PLN",
106
- "decimals": 2,
107
78
  "name": "Polish Złoty",
108
- "symbol": ""
79
+ "symbol": "PLN",
80
+ "sign": "zł"
109
81
  },
110
82
  {
111
- "code": "SEK",
112
- "decimals": 2,
113
83
  "name": "Swedish Krona",
114
- "symbol": "kr"
84
+ "symbol": "SEK",
85
+ "sign": "kr"
115
86
  },
116
87
  {
117
- "code": "SGD",
118
- "decimals": 2,
119
88
  "name": "Singapore Dollar",
120
- "symbol": "S$"
89
+ "symbol": "SGD",
90
+ "sign": "S$"
121
91
  },
122
92
  {
123
- "code": "THB",
124
- "decimals": 2,
125
93
  "name": "Thai Baht",
126
- "symbol": "฿"
94
+ "symbol": "THB",
95
+ "sign": "฿"
127
96
  },
128
97
  {
129
- "code": "TRY",
130
- "decimals": 2,
131
98
  "name": "Turkish Lira",
132
- "symbol": ""
99
+ "symbol": "TRY",
100
+ "sign": "₺"
133
101
  },
134
102
  {
135
- "code": "ZAR",
136
- "decimals": 2,
137
103
  "name": "South African Rand",
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": "$"
104
+ "symbol": "ZAR",
105
+ "sign": "R"
151
106
  }
152
107
  ]
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { AbiVersion } from './abis';
2
1
  import { ChainInfo, RouterInfo, TokenInfo } from './types';
2
+ import { AbiVersion } from './abis';
3
3
  export * from './abis';
4
- export * from './diffTokenLists';
5
- export * from './getVersionUpgrade';
4
+ export * from './types';
6
5
  export * from './isVersionUpdate';
6
+ export * from './getVersionUpgrade';
7
+ export * from './diffTokenLists';
7
8
  export * from './minVersionBump';
8
9
  export * from './nextVersion';
9
- export * from './types';
10
10
  export * from './versionComparator';
11
11
  export declare const tokenlist: ({
12
12
  chainId: number;
@@ -54,28 +54,6 @@ 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;
79
57
  } | {
80
58
  decimals: number;
81
59
  chainId: number;
@@ -99,28 +77,6 @@ export declare function getTokenFeeds(chainId: number): ({
99
77
  output: string;
100
78
  type: string;
101
79
  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;
124
80
  } | {
125
81
  decimals: number;
126
82
  chainId: number;
@@ -144,28 +100,6 @@ export declare function getFiatFeeds(chainId: number): ({
144
100
  output: string;
145
101
  type: string;
146
102
  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;
169
103
  } | {
170
104
  decimals: number;
171
105
  chainId: number;
@@ -178,17 +112,15 @@ export declare function getFiatFeeds(chainId: number): ({
178
112
  assetName?: undefined;
179
113
  input?: undefined;
180
114
  })[];
181
- export declare function getFiatCurrency(code: string): {
182
- code: string;
183
- decimals: number;
115
+ export declare function getFiatCurrency(symbol: string): {
184
116
  name: string;
185
117
  symbol: string;
118
+ sign: string;
186
119
  } | undefined;
187
120
  export declare function getFiatCurrencies(): {
188
- code: string;
189
- decimals: number;
190
121
  name: string;
191
122
  symbol: string;
123
+ sign: string;
192
124
  }[];
193
125
  export declare function getPriceFeed(chainId: number, baseSymbol: string, quoteSymbol?: string): {
194
126
  decimals: number;
@@ -201,28 +133,6 @@ export declare function getPriceFeed(chainId: number, baseSymbol: string, quoteS
201
133
  output: string;
202
134
  type: string;
203
135
  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;
226
136
  } | {
227
137
  decimals: number;
228
138
  chainId: number;
@@ -5183,6 +5093,10 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
5183
5093
  readonly internalType: "uint256";
5184
5094
  readonly name: "amount";
5185
5095
  readonly type: "uint256";
5096
+ }, {
5097
+ readonly internalType: "uint256";
5098
+ readonly name: "invoiceAmount";
5099
+ readonly type: "uint256";
5186
5100
  }, {
5187
5101
  readonly components: readonly [{
5188
5102
  readonly internalType: "address";