lynx-client 0.0.25 → 0.0.26
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/cjs/lib/constants/pairIds.js +2 -0
- package/dist/cjs/lib/priceFeeds/pyth/pythFeedConstants.js +2 -0
- package/dist/esm/lib/constants/pairIds.d.ts +2 -1
- package/dist/esm/lib/constants/pairIds.d.ts.map +1 -1
- package/dist/esm/lib/constants/pairIds.js +2 -0
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.js +2 -0
- package/dist/types/lib/constants/pairIds.d.ts +2 -1
- package/dist/types/lib/constants/pairIds.d.ts.map +1 -1
- package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ exports.PAIR_CONFIGS_IDS = {
|
|
|
11
11
|
BNB_USD: 3,
|
|
12
12
|
FTM_USD: 4,
|
|
13
13
|
SOL_USD: 5,
|
|
14
|
+
XRP_USD: 6,
|
|
14
15
|
// CRYPTO -- Specific cases
|
|
15
16
|
FLR_USD: 1001,
|
|
16
17
|
// CRYPTO -- new version of previous pair
|
|
@@ -44,6 +45,7 @@ exports.PAIR_CONFIGS_IDENTIFIERS = {
|
|
|
44
45
|
BNB_USD: buildCryptoPairConfigsIdentifier(groupIds_1.GROUP_CONFIGS_IDS.basicCryptoGroup, exports.PAIR_CONFIGS_IDS.BNB_USD, "BNB", "USD"),
|
|
45
46
|
FTM_USD: buildCryptoPairConfigsIdentifier(groupIds_1.GROUP_CONFIGS_IDS.basicCryptoGroup, exports.PAIR_CONFIGS_IDS.FTM_USD, "FTM", "USD"),
|
|
46
47
|
SOL_USD: buildCryptoPairConfigsIdentifier(groupIds_1.GROUP_CONFIGS_IDS.basicCryptoGroup, exports.PAIR_CONFIGS_IDS.SOL_USD, "SOL", "USD"),
|
|
48
|
+
XRP_USD: buildCryptoPairConfigsIdentifier(groupIds_1.GROUP_CONFIGS_IDS.basicCryptoGroup, exports.PAIR_CONFIGS_IDS.XRP_USD, "XRP", "USD"),
|
|
47
49
|
// CRYPTO -- Specific cases
|
|
48
50
|
FLR_USD: buildCryptoPairConfigsIdentifier(groupIds_1.GROUP_CONFIGS_IDS.basicCryptoGroup, exports.PAIR_CONFIGS_IDS.FLR_USD, "FLR", "USD"),
|
|
49
51
|
// CRYPTO -- new version of previous pair
|
|
@@ -8,6 +8,7 @@ exports.PYTH_PRICE_KEYS = {
|
|
|
8
8
|
[pairIds_1.PAIR_CONFIGS_IDS.BNB_USD]: "Crypto.BNB/USD",
|
|
9
9
|
[pairIds_1.PAIR_CONFIGS_IDS.FTM_USD]: "Crypto.FTM/USD",
|
|
10
10
|
[pairIds_1.PAIR_CONFIGS_IDS.SOL_USD]: "Crypto.SOL/USD",
|
|
11
|
+
[pairIds_1.PAIR_CONFIGS_IDS.XRP_USD]: "Crypto.XRP/USD",
|
|
11
12
|
[pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "Crypto.FLR/USD",
|
|
12
13
|
[pairIds_1.PAIR_CONFIGS_IDS.S_USD]: "Crypto.S/USD",
|
|
13
14
|
// Forex
|
|
@@ -42,6 +43,7 @@ exports.PYTH_PAIRS_PRICE_FEED_IDS = {
|
|
|
42
43
|
// NOTE : Using S instead of deprecated FTM
|
|
43
44
|
[pairIds_1.PAIR_CONFIGS_IDS.FTM_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
|
|
44
45
|
[pairIds_1.PAIR_CONFIGS_IDS.SOL_USD]: "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d",
|
|
46
|
+
[pairIds_1.PAIR_CONFIGS_IDS.XRP_USD]: "0xec5d399846a9209f3fe5881d70aae9268c94339ff9817e8d18ff19fa05eea1c8",
|
|
45
47
|
[pairIds_1.PAIR_CONFIGS_IDS.S_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
|
|
46
48
|
[pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "0x035aa8d0a2d74e19438f2c1440edff9f3b95f915ca65f681a25ed0bad3dc228d",
|
|
47
49
|
[pairIds_1.PAIR_CONFIGS_IDS.EUR_USD]: "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b",
|
|
@@ -11,6 +11,7 @@ export declare const PAIR_CONFIGS_IDS: {
|
|
|
11
11
|
readonly BNB_USD: 3;
|
|
12
12
|
readonly FTM_USD: 4;
|
|
13
13
|
readonly SOL_USD: 5;
|
|
14
|
+
readonly XRP_USD: 6;
|
|
14
15
|
readonly FLR_USD: 1001;
|
|
15
16
|
readonly S_USD: 2004;
|
|
16
17
|
readonly EUR_USD: 8001;
|
|
@@ -29,7 +30,7 @@ export declare const PAIR_CONFIGS_IDS: {
|
|
|
29
30
|
readonly USD_CHF_CAT: 18102;
|
|
30
31
|
};
|
|
31
32
|
export type TPairIds = (typeof PAIR_CONFIGS_IDS)[TKeysOfConst<typeof PAIR_CONFIGS_IDS>];
|
|
32
|
-
export type TPairConfigsNames = "BTC_USD" | "ETH_USD" | "BNB_USD" | "FTM_USD" | "SOL_USD" | "FLR_USD" | "S_USD" | "EUR_USD" | "GBP_USD" | "AUD_USD" | "NZD_USD" | "USD_JPY" | "USD_CHF" | "BTC_USD_CAT" | "ETH_USD_CAT" | "EUR_USD_CAT" | "GBP_USD_CAT" | "AUD_USD_CAT" | "NZD_USD_CAT" | "USD_JPY_CAT" | "USD_CHF_CAT";
|
|
33
|
+
export type TPairConfigsNames = "BTC_USD" | "ETH_USD" | "BNB_USD" | "FTM_USD" | "SOL_USD" | "XRP_USD" | "FLR_USD" | "S_USD" | "EUR_USD" | "GBP_USD" | "AUD_USD" | "NZD_USD" | "USD_JPY" | "USD_CHF" | "BTC_USD_CAT" | "ETH_USD_CAT" | "EUR_USD_CAT" | "GBP_USD_CAT" | "AUD_USD_CAT" | "NZD_USD_CAT" | "USD_JPY_CAT" | "USD_CHF_CAT";
|
|
33
34
|
export declare const PAIR_CONFIGS_IDENTIFIERS: Record<TPairConfigsNames, TPairConfigsIdentifier>;
|
|
34
35
|
export declare function getPairConfigsIdentifierFromPairId(pairId: TPairIds): TPairConfigsIdentifier | undefined;
|
|
35
36
|
export type TPairFromTo = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pairIds.d.ts","sourceRoot":"","sources":["../../../../lib/constants/pairIds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"pairIds.d.ts","sourceRoot":"","sources":["../../../../lib/constants/pairIds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;CA2CnB,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,YAAY,CAC3D,OAAO,gBAAgB,CACxB,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,CAAC;AAElB,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,iBAAiB,EACjB,sBAAsB,CA0JvB,CAAC;AAwBF,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,QAAQ,GACf,sBAAsB,GAAG,SAAS,CAGpC;AAED,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAKtB,CAAC"}
|
|
@@ -11,6 +11,7 @@ exports.PAIR_CONFIGS_IDS = {
|
|
|
11
11
|
BNB_USD: 3,
|
|
12
12
|
FTM_USD: 4,
|
|
13
13
|
SOL_USD: 5,
|
|
14
|
+
XRP_USD: 6,
|
|
14
15
|
// CRYPTO -- Specific cases
|
|
15
16
|
FLR_USD: 1001,
|
|
16
17
|
// CRYPTO -- new version of previous pair
|
|
@@ -44,6 +45,7 @@ exports.PAIR_CONFIGS_IDENTIFIERS = {
|
|
|
44
45
|
BNB_USD: buildCryptoPairConfigsIdentifier(groupIds_1.GROUP_CONFIGS_IDS.basicCryptoGroup, exports.PAIR_CONFIGS_IDS.BNB_USD, "BNB", "USD"),
|
|
45
46
|
FTM_USD: buildCryptoPairConfigsIdentifier(groupIds_1.GROUP_CONFIGS_IDS.basicCryptoGroup, exports.PAIR_CONFIGS_IDS.FTM_USD, "FTM", "USD"),
|
|
46
47
|
SOL_USD: buildCryptoPairConfigsIdentifier(groupIds_1.GROUP_CONFIGS_IDS.basicCryptoGroup, exports.PAIR_CONFIGS_IDS.SOL_USD, "SOL", "USD"),
|
|
48
|
+
XRP_USD: buildCryptoPairConfigsIdentifier(groupIds_1.GROUP_CONFIGS_IDS.basicCryptoGroup, exports.PAIR_CONFIGS_IDS.XRP_USD, "XRP", "USD"),
|
|
47
49
|
// CRYPTO -- Specific cases
|
|
48
50
|
FLR_USD: buildCryptoPairConfigsIdentifier(groupIds_1.GROUP_CONFIGS_IDS.basicCryptoGroup, exports.PAIR_CONFIGS_IDS.FLR_USD, "FLR", "USD"),
|
|
49
51
|
// CRYPTO -- new version of previous pair
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pythFeedConstants.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pythFeedConstants.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAgCpD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAKjD,CAAC;AAGH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAyC9D,CAAC"}
|
|
@@ -8,6 +8,7 @@ exports.PYTH_PRICE_KEYS = {
|
|
|
8
8
|
[pairIds_1.PAIR_CONFIGS_IDS.BNB_USD]: "Crypto.BNB/USD",
|
|
9
9
|
[pairIds_1.PAIR_CONFIGS_IDS.FTM_USD]: "Crypto.FTM/USD",
|
|
10
10
|
[pairIds_1.PAIR_CONFIGS_IDS.SOL_USD]: "Crypto.SOL/USD",
|
|
11
|
+
[pairIds_1.PAIR_CONFIGS_IDS.XRP_USD]: "Crypto.XRP/USD",
|
|
11
12
|
[pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "Crypto.FLR/USD",
|
|
12
13
|
[pairIds_1.PAIR_CONFIGS_IDS.S_USD]: "Crypto.S/USD",
|
|
13
14
|
// Forex
|
|
@@ -42,6 +43,7 @@ exports.PYTH_PAIRS_PRICE_FEED_IDS = {
|
|
|
42
43
|
// NOTE : Using S instead of deprecated FTM
|
|
43
44
|
[pairIds_1.PAIR_CONFIGS_IDS.FTM_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
|
|
44
45
|
[pairIds_1.PAIR_CONFIGS_IDS.SOL_USD]: "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d",
|
|
46
|
+
[pairIds_1.PAIR_CONFIGS_IDS.XRP_USD]: "0xec5d399846a9209f3fe5881d70aae9268c94339ff9817e8d18ff19fa05eea1c8",
|
|
45
47
|
[pairIds_1.PAIR_CONFIGS_IDS.S_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
|
|
46
48
|
[pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "0x035aa8d0a2d74e19438f2c1440edff9f3b95f915ca65f681a25ed0bad3dc228d",
|
|
47
49
|
[pairIds_1.PAIR_CONFIGS_IDS.EUR_USD]: "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b",
|
|
@@ -11,6 +11,7 @@ export declare const PAIR_CONFIGS_IDS: {
|
|
|
11
11
|
readonly BNB_USD: 3;
|
|
12
12
|
readonly FTM_USD: 4;
|
|
13
13
|
readonly SOL_USD: 5;
|
|
14
|
+
readonly XRP_USD: 6;
|
|
14
15
|
readonly FLR_USD: 1001;
|
|
15
16
|
readonly S_USD: 2004;
|
|
16
17
|
readonly EUR_USD: 8001;
|
|
@@ -29,7 +30,7 @@ export declare const PAIR_CONFIGS_IDS: {
|
|
|
29
30
|
readonly USD_CHF_CAT: 18102;
|
|
30
31
|
};
|
|
31
32
|
export type TPairIds = (typeof PAIR_CONFIGS_IDS)[TKeysOfConst<typeof PAIR_CONFIGS_IDS>];
|
|
32
|
-
export type TPairConfigsNames = "BTC_USD" | "ETH_USD" | "BNB_USD" | "FTM_USD" | "SOL_USD" | "FLR_USD" | "S_USD" | "EUR_USD" | "GBP_USD" | "AUD_USD" | "NZD_USD" | "USD_JPY" | "USD_CHF" | "BTC_USD_CAT" | "ETH_USD_CAT" | "EUR_USD_CAT" | "GBP_USD_CAT" | "AUD_USD_CAT" | "NZD_USD_CAT" | "USD_JPY_CAT" | "USD_CHF_CAT";
|
|
33
|
+
export type TPairConfigsNames = "BTC_USD" | "ETH_USD" | "BNB_USD" | "FTM_USD" | "SOL_USD" | "XRP_USD" | "FLR_USD" | "S_USD" | "EUR_USD" | "GBP_USD" | "AUD_USD" | "NZD_USD" | "USD_JPY" | "USD_CHF" | "BTC_USD_CAT" | "ETH_USD_CAT" | "EUR_USD_CAT" | "GBP_USD_CAT" | "AUD_USD_CAT" | "NZD_USD_CAT" | "USD_JPY_CAT" | "USD_CHF_CAT";
|
|
33
34
|
export declare const PAIR_CONFIGS_IDENTIFIERS: Record<TPairConfigsNames, TPairConfigsIdentifier>;
|
|
34
35
|
export declare function getPairConfigsIdentifierFromPairId(pairId: TPairIds): TPairConfigsIdentifier | undefined;
|
|
35
36
|
export type TPairFromTo = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pairIds.d.ts","sourceRoot":"","sources":["../../../../lib/constants/pairIds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"pairIds.d.ts","sourceRoot":"","sources":["../../../../lib/constants/pairIds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;CA2CnB,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,YAAY,CAC3D,OAAO,gBAAgB,CACxB,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,CAAC;AAElB,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,iBAAiB,EACjB,sBAAsB,CA0JvB,CAAC;AAwBF,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,QAAQ,GACf,sBAAsB,GAAG,SAAS,CAGpC;AAED,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAKtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pythFeedConstants.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pythFeedConstants.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAgCpD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAKjD,CAAC;AAGH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAyC9D,CAAC"}
|