@strkfarm/sdk 1.0.33 → 1.0.34
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/cli.js +7 -7
- package/dist/cli.mjs +7 -7
- package/dist/index.browser.global.js +7 -7
- package/dist/index.browser.mjs +7 -7
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
- package/src/global.ts +7 -7
package/dist/cli.js
CHANGED
|
@@ -208,7 +208,7 @@ var FatalError = class extends Error {
|
|
|
208
208
|
var defaultTokens = [{
|
|
209
209
|
name: "Starknet",
|
|
210
210
|
symbol: "STRK",
|
|
211
|
-
logo: "https://assets.
|
|
211
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/strk.svg",
|
|
212
212
|
address: ContractAddr.from("0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
|
|
213
213
|
decimals: 18,
|
|
214
214
|
coingeckId: "starknet",
|
|
@@ -216,7 +216,7 @@ var defaultTokens = [{
|
|
|
216
216
|
}, {
|
|
217
217
|
name: "xSTRK",
|
|
218
218
|
symbol: "xSTRK",
|
|
219
|
-
logo: "https://
|
|
219
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/xstrk.svg",
|
|
220
220
|
address: ContractAddr.from("0x028d709c875c0ceac3dce7065bec5328186dc89fe254527084d1689910954b0a"),
|
|
221
221
|
decimals: 18,
|
|
222
222
|
coingeckId: void 0,
|
|
@@ -224,7 +224,7 @@ var defaultTokens = [{
|
|
|
224
224
|
}, {
|
|
225
225
|
name: "ETH",
|
|
226
226
|
symbol: "ETH",
|
|
227
|
-
logo: "https://
|
|
227
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/eth.svg",
|
|
228
228
|
address: ContractAddr.from("0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
|
|
229
229
|
decimals: 18,
|
|
230
230
|
coingeckId: void 0,
|
|
@@ -232,7 +232,7 @@ var defaultTokens = [{
|
|
|
232
232
|
}, {
|
|
233
233
|
name: "USDC",
|
|
234
234
|
symbol: "USDC",
|
|
235
|
-
logo: "https://
|
|
235
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
236
236
|
address: ContractAddr.from("0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"),
|
|
237
237
|
decimals: 6,
|
|
238
238
|
coingeckId: void 0,
|
|
@@ -240,7 +240,7 @@ var defaultTokens = [{
|
|
|
240
240
|
}, {
|
|
241
241
|
name: "USDT",
|
|
242
242
|
symbol: "USDT",
|
|
243
|
-
logo: "https://assets.
|
|
243
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
244
244
|
address: ContractAddr.from("0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8"),
|
|
245
245
|
decimals: 6,
|
|
246
246
|
coingeckId: void 0,
|
|
@@ -248,7 +248,7 @@ var defaultTokens = [{
|
|
|
248
248
|
}, {
|
|
249
249
|
name: "WBTC",
|
|
250
250
|
symbol: "WBTC",
|
|
251
|
-
logo: "https://
|
|
251
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/wbtc.svg",
|
|
252
252
|
address: ContractAddr.from("0x3fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
253
253
|
decimals: 8,
|
|
254
254
|
coingeckId: void 0,
|
|
@@ -272,7 +272,7 @@ var Global = class _Global {
|
|
|
272
272
|
}
|
|
273
273
|
static async getTokens() {
|
|
274
274
|
if (tokens.length) return tokens;
|
|
275
|
-
const data = await import_axios.default.get("https://
|
|
275
|
+
const data = await import_axios.default.get("https://assets.strkfarm.com/integrations/tokens.json");
|
|
276
276
|
const tokensData = data.data.content;
|
|
277
277
|
tokensData.forEach((token) => {
|
|
278
278
|
if (!token.tags.includes("AVNU") || !token.tags.includes("Verified")) {
|
package/dist/cli.mjs
CHANGED
|
@@ -185,7 +185,7 @@ var FatalError = class extends Error {
|
|
|
185
185
|
var defaultTokens = [{
|
|
186
186
|
name: "Starknet",
|
|
187
187
|
symbol: "STRK",
|
|
188
|
-
logo: "https://assets.
|
|
188
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/strk.svg",
|
|
189
189
|
address: ContractAddr.from("0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
|
|
190
190
|
decimals: 18,
|
|
191
191
|
coingeckId: "starknet",
|
|
@@ -193,7 +193,7 @@ var defaultTokens = [{
|
|
|
193
193
|
}, {
|
|
194
194
|
name: "xSTRK",
|
|
195
195
|
symbol: "xSTRK",
|
|
196
|
-
logo: "https://
|
|
196
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/xstrk.svg",
|
|
197
197
|
address: ContractAddr.from("0x028d709c875c0ceac3dce7065bec5328186dc89fe254527084d1689910954b0a"),
|
|
198
198
|
decimals: 18,
|
|
199
199
|
coingeckId: void 0,
|
|
@@ -201,7 +201,7 @@ var defaultTokens = [{
|
|
|
201
201
|
}, {
|
|
202
202
|
name: "ETH",
|
|
203
203
|
symbol: "ETH",
|
|
204
|
-
logo: "https://
|
|
204
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/eth.svg",
|
|
205
205
|
address: ContractAddr.from("0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
|
|
206
206
|
decimals: 18,
|
|
207
207
|
coingeckId: void 0,
|
|
@@ -209,7 +209,7 @@ var defaultTokens = [{
|
|
|
209
209
|
}, {
|
|
210
210
|
name: "USDC",
|
|
211
211
|
symbol: "USDC",
|
|
212
|
-
logo: "https://
|
|
212
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
213
213
|
address: ContractAddr.from("0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"),
|
|
214
214
|
decimals: 6,
|
|
215
215
|
coingeckId: void 0,
|
|
@@ -217,7 +217,7 @@ var defaultTokens = [{
|
|
|
217
217
|
}, {
|
|
218
218
|
name: "USDT",
|
|
219
219
|
symbol: "USDT",
|
|
220
|
-
logo: "https://assets.
|
|
220
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
221
221
|
address: ContractAddr.from("0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8"),
|
|
222
222
|
decimals: 6,
|
|
223
223
|
coingeckId: void 0,
|
|
@@ -225,7 +225,7 @@ var defaultTokens = [{
|
|
|
225
225
|
}, {
|
|
226
226
|
name: "WBTC",
|
|
227
227
|
symbol: "WBTC",
|
|
228
|
-
logo: "https://
|
|
228
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/wbtc.svg",
|
|
229
229
|
address: ContractAddr.from("0x3fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
230
230
|
decimals: 8,
|
|
231
231
|
coingeckId: void 0,
|
|
@@ -249,7 +249,7 @@ var Global = class _Global {
|
|
|
249
249
|
}
|
|
250
250
|
static async getTokens() {
|
|
251
251
|
if (tokens.length) return tokens;
|
|
252
|
-
const data = await axios.get("https://
|
|
252
|
+
const data = await axios.get("https://assets.strkfarm.com/integrations/tokens.json");
|
|
253
253
|
const tokensData = data.data.content;
|
|
254
254
|
tokensData.forEach((token) => {
|
|
255
255
|
if (!token.tags.includes("AVNU") || !token.tags.includes("Verified")) {
|
|
@@ -28448,7 +28448,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
28448
28448
|
var defaultTokens = [{
|
|
28449
28449
|
name: "Starknet",
|
|
28450
28450
|
symbol: "STRK",
|
|
28451
|
-
logo: "https://assets.
|
|
28451
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/strk.svg",
|
|
28452
28452
|
address: ContractAddr.from("0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
|
|
28453
28453
|
decimals: 18,
|
|
28454
28454
|
coingeckId: "starknet",
|
|
@@ -28456,7 +28456,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
28456
28456
|
}, {
|
|
28457
28457
|
name: "xSTRK",
|
|
28458
28458
|
symbol: "xSTRK",
|
|
28459
|
-
logo: "https://
|
|
28459
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/xstrk.svg",
|
|
28460
28460
|
address: ContractAddr.from("0x028d709c875c0ceac3dce7065bec5328186dc89fe254527084d1689910954b0a"),
|
|
28461
28461
|
decimals: 18,
|
|
28462
28462
|
coingeckId: void 0,
|
|
@@ -28464,7 +28464,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
28464
28464
|
}, {
|
|
28465
28465
|
name: "ETH",
|
|
28466
28466
|
symbol: "ETH",
|
|
28467
|
-
logo: "https://
|
|
28467
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/eth.svg",
|
|
28468
28468
|
address: ContractAddr.from("0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
|
|
28469
28469
|
decimals: 18,
|
|
28470
28470
|
coingeckId: void 0,
|
|
@@ -28472,7 +28472,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
28472
28472
|
}, {
|
|
28473
28473
|
name: "USDC",
|
|
28474
28474
|
symbol: "USDC",
|
|
28475
|
-
logo: "https://
|
|
28475
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
28476
28476
|
address: ContractAddr.from("0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"),
|
|
28477
28477
|
decimals: 6,
|
|
28478
28478
|
coingeckId: void 0,
|
|
@@ -28480,7 +28480,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
28480
28480
|
}, {
|
|
28481
28481
|
name: "USDT",
|
|
28482
28482
|
symbol: "USDT",
|
|
28483
|
-
logo: "https://assets.
|
|
28483
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
28484
28484
|
address: ContractAddr.from("0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8"),
|
|
28485
28485
|
decimals: 6,
|
|
28486
28486
|
coingeckId: void 0,
|
|
@@ -28488,7 +28488,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
28488
28488
|
}, {
|
|
28489
28489
|
name: "WBTC",
|
|
28490
28490
|
symbol: "WBTC",
|
|
28491
|
-
logo: "https://
|
|
28491
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/wbtc.svg",
|
|
28492
28492
|
address: ContractAddr.from("0x3fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
28493
28493
|
decimals: 8,
|
|
28494
28494
|
coingeckId: void 0,
|
|
@@ -28512,7 +28512,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
28512
28512
|
}
|
|
28513
28513
|
static async getTokens() {
|
|
28514
28514
|
if (tokens.length) return tokens;
|
|
28515
|
-
const data = await axios_default.get("https://
|
|
28515
|
+
const data = await axios_default.get("https://assets.strkfarm.com/integrations/tokens.json");
|
|
28516
28516
|
const tokensData = data.data.content;
|
|
28517
28517
|
tokensData.forEach((token) => {
|
|
28518
28518
|
if (!token.tags.includes("AVNU") || !token.tags.includes("Verified")) {
|
package/dist/index.browser.mjs
CHANGED
|
@@ -113,7 +113,7 @@ var FatalError = class extends Error {
|
|
|
113
113
|
var defaultTokens = [{
|
|
114
114
|
name: "Starknet",
|
|
115
115
|
symbol: "STRK",
|
|
116
|
-
logo: "https://assets.
|
|
116
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/strk.svg",
|
|
117
117
|
address: ContractAddr.from("0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
|
|
118
118
|
decimals: 18,
|
|
119
119
|
coingeckId: "starknet",
|
|
@@ -121,7 +121,7 @@ var defaultTokens = [{
|
|
|
121
121
|
}, {
|
|
122
122
|
name: "xSTRK",
|
|
123
123
|
symbol: "xSTRK",
|
|
124
|
-
logo: "https://
|
|
124
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/xstrk.svg",
|
|
125
125
|
address: ContractAddr.from("0x028d709c875c0ceac3dce7065bec5328186dc89fe254527084d1689910954b0a"),
|
|
126
126
|
decimals: 18,
|
|
127
127
|
coingeckId: void 0,
|
|
@@ -129,7 +129,7 @@ var defaultTokens = [{
|
|
|
129
129
|
}, {
|
|
130
130
|
name: "ETH",
|
|
131
131
|
symbol: "ETH",
|
|
132
|
-
logo: "https://
|
|
132
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/eth.svg",
|
|
133
133
|
address: ContractAddr.from("0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
|
|
134
134
|
decimals: 18,
|
|
135
135
|
coingeckId: void 0,
|
|
@@ -137,7 +137,7 @@ var defaultTokens = [{
|
|
|
137
137
|
}, {
|
|
138
138
|
name: "USDC",
|
|
139
139
|
symbol: "USDC",
|
|
140
|
-
logo: "https://
|
|
140
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
141
141
|
address: ContractAddr.from("0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"),
|
|
142
142
|
decimals: 6,
|
|
143
143
|
coingeckId: void 0,
|
|
@@ -145,7 +145,7 @@ var defaultTokens = [{
|
|
|
145
145
|
}, {
|
|
146
146
|
name: "USDT",
|
|
147
147
|
symbol: "USDT",
|
|
148
|
-
logo: "https://assets.
|
|
148
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
149
149
|
address: ContractAddr.from("0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8"),
|
|
150
150
|
decimals: 6,
|
|
151
151
|
coingeckId: void 0,
|
|
@@ -153,7 +153,7 @@ var defaultTokens = [{
|
|
|
153
153
|
}, {
|
|
154
154
|
name: "WBTC",
|
|
155
155
|
symbol: "WBTC",
|
|
156
|
-
logo: "https://
|
|
156
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/wbtc.svg",
|
|
157
157
|
address: ContractAddr.from("0x3fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
158
158
|
decimals: 8,
|
|
159
159
|
coingeckId: void 0,
|
|
@@ -177,7 +177,7 @@ var Global = class _Global {
|
|
|
177
177
|
}
|
|
178
178
|
static async getTokens() {
|
|
179
179
|
if (tokens.length) return tokens;
|
|
180
|
-
const data = await axios.get("https://
|
|
180
|
+
const data = await axios.get("https://assets.strkfarm.com/integrations/tokens.json");
|
|
181
181
|
const tokensData = data.data.content;
|
|
182
182
|
tokensData.forEach((token) => {
|
|
183
183
|
if (!token.tags.includes("AVNU") || !token.tags.includes("Verified")) {
|
package/dist/index.js
CHANGED
|
@@ -194,7 +194,7 @@ var FatalError = class extends Error {
|
|
|
194
194
|
var defaultTokens = [{
|
|
195
195
|
name: "Starknet",
|
|
196
196
|
symbol: "STRK",
|
|
197
|
-
logo: "https://assets.
|
|
197
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/strk.svg",
|
|
198
198
|
address: ContractAddr.from("0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
|
|
199
199
|
decimals: 18,
|
|
200
200
|
coingeckId: "starknet",
|
|
@@ -202,7 +202,7 @@ var defaultTokens = [{
|
|
|
202
202
|
}, {
|
|
203
203
|
name: "xSTRK",
|
|
204
204
|
symbol: "xSTRK",
|
|
205
|
-
logo: "https://
|
|
205
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/xstrk.svg",
|
|
206
206
|
address: ContractAddr.from("0x028d709c875c0ceac3dce7065bec5328186dc89fe254527084d1689910954b0a"),
|
|
207
207
|
decimals: 18,
|
|
208
208
|
coingeckId: void 0,
|
|
@@ -210,7 +210,7 @@ var defaultTokens = [{
|
|
|
210
210
|
}, {
|
|
211
211
|
name: "ETH",
|
|
212
212
|
symbol: "ETH",
|
|
213
|
-
logo: "https://
|
|
213
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/eth.svg",
|
|
214
214
|
address: ContractAddr.from("0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
|
|
215
215
|
decimals: 18,
|
|
216
216
|
coingeckId: void 0,
|
|
@@ -218,7 +218,7 @@ var defaultTokens = [{
|
|
|
218
218
|
}, {
|
|
219
219
|
name: "USDC",
|
|
220
220
|
symbol: "USDC",
|
|
221
|
-
logo: "https://
|
|
221
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
222
222
|
address: ContractAddr.from("0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"),
|
|
223
223
|
decimals: 6,
|
|
224
224
|
coingeckId: void 0,
|
|
@@ -226,7 +226,7 @@ var defaultTokens = [{
|
|
|
226
226
|
}, {
|
|
227
227
|
name: "USDT",
|
|
228
228
|
symbol: "USDT",
|
|
229
|
-
logo: "https://assets.
|
|
229
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
230
230
|
address: ContractAddr.from("0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8"),
|
|
231
231
|
decimals: 6,
|
|
232
232
|
coingeckId: void 0,
|
|
@@ -234,7 +234,7 @@ var defaultTokens = [{
|
|
|
234
234
|
}, {
|
|
235
235
|
name: "WBTC",
|
|
236
236
|
symbol: "WBTC",
|
|
237
|
-
logo: "https://
|
|
237
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/wbtc.svg",
|
|
238
238
|
address: ContractAddr.from("0x3fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
239
239
|
decimals: 8,
|
|
240
240
|
coingeckId: void 0,
|
|
@@ -258,7 +258,7 @@ var Global = class _Global {
|
|
|
258
258
|
}
|
|
259
259
|
static async getTokens() {
|
|
260
260
|
if (tokens.length) return tokens;
|
|
261
|
-
const data = await import_axios.default.get("https://
|
|
261
|
+
const data = await import_axios.default.get("https://assets.strkfarm.com/integrations/tokens.json");
|
|
262
262
|
const tokensData = data.data.content;
|
|
263
263
|
tokensData.forEach((token) => {
|
|
264
264
|
if (!token.tags.includes("AVNU") || !token.tags.includes("Verified")) {
|
package/dist/index.mjs
CHANGED
|
@@ -125,7 +125,7 @@ var FatalError = class extends Error {
|
|
|
125
125
|
var defaultTokens = [{
|
|
126
126
|
name: "Starknet",
|
|
127
127
|
symbol: "STRK",
|
|
128
|
-
logo: "https://assets.
|
|
128
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/strk.svg",
|
|
129
129
|
address: ContractAddr.from("0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
|
|
130
130
|
decimals: 18,
|
|
131
131
|
coingeckId: "starknet",
|
|
@@ -133,7 +133,7 @@ var defaultTokens = [{
|
|
|
133
133
|
}, {
|
|
134
134
|
name: "xSTRK",
|
|
135
135
|
symbol: "xSTRK",
|
|
136
|
-
logo: "https://
|
|
136
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/xstrk.svg",
|
|
137
137
|
address: ContractAddr.from("0x028d709c875c0ceac3dce7065bec5328186dc89fe254527084d1689910954b0a"),
|
|
138
138
|
decimals: 18,
|
|
139
139
|
coingeckId: void 0,
|
|
@@ -141,7 +141,7 @@ var defaultTokens = [{
|
|
|
141
141
|
}, {
|
|
142
142
|
name: "ETH",
|
|
143
143
|
symbol: "ETH",
|
|
144
|
-
logo: "https://
|
|
144
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/eth.svg",
|
|
145
145
|
address: ContractAddr.from("0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
|
|
146
146
|
decimals: 18,
|
|
147
147
|
coingeckId: void 0,
|
|
@@ -149,7 +149,7 @@ var defaultTokens = [{
|
|
|
149
149
|
}, {
|
|
150
150
|
name: "USDC",
|
|
151
151
|
symbol: "USDC",
|
|
152
|
-
logo: "https://
|
|
152
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
153
153
|
address: ContractAddr.from("0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"),
|
|
154
154
|
decimals: 6,
|
|
155
155
|
coingeckId: void 0,
|
|
@@ -157,7 +157,7 @@ var defaultTokens = [{
|
|
|
157
157
|
}, {
|
|
158
158
|
name: "USDT",
|
|
159
159
|
symbol: "USDT",
|
|
160
|
-
logo: "https://assets.
|
|
160
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/usdc.svg",
|
|
161
161
|
address: ContractAddr.from("0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8"),
|
|
162
162
|
decimals: 6,
|
|
163
163
|
coingeckId: void 0,
|
|
@@ -165,7 +165,7 @@ var defaultTokens = [{
|
|
|
165
165
|
}, {
|
|
166
166
|
name: "WBTC",
|
|
167
167
|
symbol: "WBTC",
|
|
168
|
-
logo: "https://
|
|
168
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/wbtc.svg",
|
|
169
169
|
address: ContractAddr.from("0x3fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
170
170
|
decimals: 8,
|
|
171
171
|
coingeckId: void 0,
|
|
@@ -189,7 +189,7 @@ var Global = class _Global {
|
|
|
189
189
|
}
|
|
190
190
|
static async getTokens() {
|
|
191
191
|
if (tokens.length) return tokens;
|
|
192
|
-
const data = await axios.get("https://
|
|
192
|
+
const data = await axios.get("https://assets.strkfarm.com/integrations/tokens.json");
|
|
193
193
|
const tokensData = data.data.content;
|
|
194
194
|
tokensData.forEach((token) => {
|
|
195
195
|
if (!token.tags.includes("AVNU") || !token.tags.includes("Verified")) {
|
package/package.json
CHANGED
package/src/global.ts
CHANGED
|
@@ -49,7 +49,7 @@ export class FatalError extends Error {
|
|
|
49
49
|
const defaultTokens: TokenInfo[] = [{
|
|
50
50
|
name: 'Starknet',
|
|
51
51
|
symbol: 'STRK',
|
|
52
|
-
logo: 'https://assets.
|
|
52
|
+
logo: 'https://assets.strkfarm.com/integrations/tokens/strk.svg',
|
|
53
53
|
address: ContractAddr.from('0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d'),
|
|
54
54
|
decimals: 18,
|
|
55
55
|
coingeckId: 'starknet',
|
|
@@ -57,7 +57,7 @@ const defaultTokens: TokenInfo[] = [{
|
|
|
57
57
|
}, {
|
|
58
58
|
name: 'xSTRK',
|
|
59
59
|
symbol: 'xSTRK',
|
|
60
|
-
logo: 'https://
|
|
60
|
+
logo: 'https://assets.strkfarm.com/integrations/tokens/xstrk.svg',
|
|
61
61
|
address: ContractAddr.from('0x028d709c875c0ceac3dce7065bec5328186dc89fe254527084d1689910954b0a'),
|
|
62
62
|
decimals: 18,
|
|
63
63
|
coingeckId: undefined,
|
|
@@ -65,7 +65,7 @@ const defaultTokens: TokenInfo[] = [{
|
|
|
65
65
|
}, {
|
|
66
66
|
name: 'ETH',
|
|
67
67
|
symbol: 'ETH',
|
|
68
|
-
logo: 'https://
|
|
68
|
+
logo: 'https://assets.strkfarm.com/integrations/tokens/eth.svg',
|
|
69
69
|
address: ContractAddr.from('0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7'),
|
|
70
70
|
decimals: 18,
|
|
71
71
|
coingeckId: undefined,
|
|
@@ -73,7 +73,7 @@ const defaultTokens: TokenInfo[] = [{
|
|
|
73
73
|
}, {
|
|
74
74
|
name: 'USDC',
|
|
75
75
|
symbol: 'USDC',
|
|
76
|
-
logo: 'https://
|
|
76
|
+
logo: 'https://assets.strkfarm.com/integrations/tokens/usdc.svg',
|
|
77
77
|
address: ContractAddr.from('0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8'),
|
|
78
78
|
decimals: 6,
|
|
79
79
|
coingeckId: undefined,
|
|
@@ -81,7 +81,7 @@ const defaultTokens: TokenInfo[] = [{
|
|
|
81
81
|
}, {
|
|
82
82
|
name: 'USDT',
|
|
83
83
|
symbol: 'USDT',
|
|
84
|
-
logo: 'https://assets.
|
|
84
|
+
logo: 'https://assets.strkfarm.com/integrations/tokens/usdc.svg',
|
|
85
85
|
address: ContractAddr.from('0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8'),
|
|
86
86
|
decimals: 6,
|
|
87
87
|
coingeckId: undefined,
|
|
@@ -89,7 +89,7 @@ const defaultTokens: TokenInfo[] = [{
|
|
|
89
89
|
}, {
|
|
90
90
|
name: 'WBTC',
|
|
91
91
|
symbol: 'WBTC',
|
|
92
|
-
logo: 'https://
|
|
92
|
+
logo: 'https://assets.strkfarm.com/integrations/tokens/wbtc.svg',
|
|
93
93
|
address: ContractAddr.from('0x3fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac'),
|
|
94
94
|
decimals: 8,
|
|
95
95
|
coingeckId: undefined,
|
|
@@ -122,7 +122,7 @@ export class Global {
|
|
|
122
122
|
if (tokens.length) return tokens;
|
|
123
123
|
|
|
124
124
|
// fetch from avnu API
|
|
125
|
-
const data = await axios.get('https://
|
|
125
|
+
const data = await axios.get('https://assets.strkfarm.com/integrations/tokens.json');
|
|
126
126
|
const tokensData = data.data.content;
|
|
127
127
|
|
|
128
128
|
// Array of the following is returned
|