@strkfarm/sdk 1.1.69 → 1.1.70
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.
|
@@ -53199,7 +53199,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
53199
53199
|
// e.g. ETH/USDC'
|
|
53200
53200
|
constructor(config3) {
|
|
53201
53201
|
this.config = config3;
|
|
53202
|
-
this.ENDPOINT = "https://
|
|
53202
|
+
this.ENDPOINT = "https://prod-api-quoter.ekubo.org/23448594291968334/{{AMOUNT}}/{{TOKEN_FROM_ADDRESS}}/{{TOKEN_TO_ADDRESS}}";
|
|
53203
53203
|
}
|
|
53204
53204
|
/**
|
|
53205
53205
|
*
|
|
@@ -53265,7 +53265,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
53265
53265
|
const staleTime = 6e4;
|
|
53266
53266
|
const allTokens = tokenMaps.map((map2) => [map2.lst, map2.underlying]).flat();
|
|
53267
53267
|
super(config3, allTokens, refreshInterval, staleTime);
|
|
53268
|
-
this.EKUBO_API = "https://
|
|
53268
|
+
this.EKUBO_API = "https://prod-api-quoter.ekubo.org/23448594291968334/{{AMOUNT}}/{{TOKEN_ADDRESS}}/{{UNDERLYING_ADDRESS}}";
|
|
53269
53269
|
this.tokenMaps = tokenMaps;
|
|
53270
53270
|
}
|
|
53271
53271
|
isUnderlying(token) {
|
package/dist/index.browser.mjs
CHANGED
|
@@ -2233,7 +2233,7 @@ var EkuboQuoter = class {
|
|
|
2233
2233
|
// e.g. ETH/USDC'
|
|
2234
2234
|
constructor(config) {
|
|
2235
2235
|
this.config = config;
|
|
2236
|
-
this.ENDPOINT = "https://
|
|
2236
|
+
this.ENDPOINT = "https://prod-api-quoter.ekubo.org/23448594291968334/{{AMOUNT}}/{{TOKEN_FROM_ADDRESS}}/{{TOKEN_TO_ADDRESS}}";
|
|
2237
2237
|
}
|
|
2238
2238
|
/**
|
|
2239
2239
|
*
|
|
@@ -2300,7 +2300,7 @@ var PricerLST = class extends Pricer {
|
|
|
2300
2300
|
const staleTime = 6e4;
|
|
2301
2301
|
const allTokens = tokenMaps.map((map) => [map.lst, map.underlying]).flat();
|
|
2302
2302
|
super(config, allTokens, refreshInterval, staleTime);
|
|
2303
|
-
this.EKUBO_API = "https://
|
|
2303
|
+
this.EKUBO_API = "https://prod-api-quoter.ekubo.org/23448594291968334/{{AMOUNT}}/{{TOKEN_ADDRESS}}/{{UNDERLYING_ADDRESS}}";
|
|
2304
2304
|
this.tokenMaps = tokenMaps;
|
|
2305
2305
|
}
|
|
2306
2306
|
isUnderlying(token) {
|
package/dist/index.js
CHANGED
|
@@ -2388,7 +2388,7 @@ var EkuboQuoter = class {
|
|
|
2388
2388
|
// e.g. ETH/USDC'
|
|
2389
2389
|
constructor(config) {
|
|
2390
2390
|
this.config = config;
|
|
2391
|
-
this.ENDPOINT = "https://
|
|
2391
|
+
this.ENDPOINT = "https://prod-api-quoter.ekubo.org/23448594291968334/{{AMOUNT}}/{{TOKEN_FROM_ADDRESS}}/{{TOKEN_TO_ADDRESS}}";
|
|
2392
2392
|
}
|
|
2393
2393
|
/**
|
|
2394
2394
|
*
|
|
@@ -31783,7 +31783,7 @@ var PricerLST2 = class extends Pricer {
|
|
|
31783
31783
|
const staleTime = 6e4;
|
|
31784
31784
|
const allTokens = tokenMaps.map((map) => [map.lst, map.underlying]).flat();
|
|
31785
31785
|
super(config, allTokens, refreshInterval, staleTime);
|
|
31786
|
-
this.EKUBO_API = "https://
|
|
31786
|
+
this.EKUBO_API = "https://prod-api-quoter.ekubo.org/23448594291968334/{{AMOUNT}}/{{TOKEN_ADDRESS}}/{{UNDERLYING_ADDRESS}}";
|
|
31787
31787
|
this.tokenMaps = tokenMaps;
|
|
31788
31788
|
}
|
|
31789
31789
|
isUnderlying(token) {
|
package/dist/index.mjs
CHANGED
|
@@ -2282,7 +2282,7 @@ var EkuboQuoter = class {
|
|
|
2282
2282
|
// e.g. ETH/USDC'
|
|
2283
2283
|
constructor(config) {
|
|
2284
2284
|
this.config = config;
|
|
2285
|
-
this.ENDPOINT = "https://
|
|
2285
|
+
this.ENDPOINT = "https://prod-api-quoter.ekubo.org/23448594291968334/{{AMOUNT}}/{{TOKEN_FROM_ADDRESS}}/{{TOKEN_TO_ADDRESS}}";
|
|
2286
2286
|
}
|
|
2287
2287
|
/**
|
|
2288
2288
|
*
|
|
@@ -31681,7 +31681,7 @@ var PricerLST2 = class extends Pricer {
|
|
|
31681
31681
|
const staleTime = 6e4;
|
|
31682
31682
|
const allTokens = tokenMaps.map((map) => [map.lst, map.underlying]).flat();
|
|
31683
31683
|
super(config, allTokens, refreshInterval, staleTime);
|
|
31684
|
-
this.EKUBO_API = "https://
|
|
31684
|
+
this.EKUBO_API = "https://prod-api-quoter.ekubo.org/23448594291968334/{{AMOUNT}}/{{TOKEN_ADDRESS}}/{{UNDERLYING_ADDRESS}}";
|
|
31685
31685
|
this.tokenMaps = tokenMaps;
|
|
31686
31686
|
}
|
|
31687
31687
|
isUnderlying(token) {
|
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@ export interface EkuboQuote {
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
export class EkuboQuoter {
|
|
31
|
-
ENDPOINT = 'https://
|
|
31
|
+
ENDPOINT = 'https://prod-api-quoter.ekubo.org/23448594291968334/{{AMOUNT}}/{{TOKEN_FROM_ADDRESS}}/{{TOKEN_TO_ADDRESS}}'; // e.g. ETH/USDC'
|
|
32
32
|
|
|
33
33
|
constructor(private readonly config: IConfig) {}
|
|
34
34
|
|
|
@@ -6,7 +6,7 @@ import axios from "axios";
|
|
|
6
6
|
|
|
7
7
|
export class PricerLST extends Pricer {
|
|
8
8
|
private tokenMaps: {lst: TokenInfo, underlying: TokenInfo}[];
|
|
9
|
-
protected EKUBO_API = 'https://
|
|
9
|
+
protected EKUBO_API = 'https://prod-api-quoter.ekubo.org/23448594291968334/{{AMOUNT}}/{{TOKEN_ADDRESS}}/{{UNDERLYING_ADDRESS}}'; // e.g. xSTRK/STRK
|
|
10
10
|
|
|
11
11
|
constructor(config: IConfig, tokenMaps: {lst: TokenInfo, underlying: TokenInfo}[]) {
|
|
12
12
|
const refreshInterval = 5000;
|