@atomiqlabs/sdk 6.0.0 → 6.0.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.
@@ -1,4 +1,14 @@
1
1
  export declare const SmartChainAssets: {
2
+ readonly _TESTNET_WBTC_VESU: {
3
+ readonly pricing: {
4
+ readonly binancePair: "WBTCBTC";
5
+ readonly okxPair: "WBTC-BTC";
6
+ readonly coinGeckoCoinId: "wrapped-bitcoin";
7
+ readonly coinPaprikaCoinId: "wbtc-wrapped-bitcoin";
8
+ readonly krakenPair: "WBTCXBT";
9
+ };
10
+ readonly name: "Wrapped BTC (WBTC)";
11
+ };
2
12
  readonly WBTC: {
3
13
  readonly pricing: {
4
14
  readonly binancePair: "WBTCBTC";
@@ -2,6 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SmartChainAssets = void 0;
4
4
  exports.SmartChainAssets = {
5
+ _TESTNET_WBTC_VESU: {
6
+ pricing: {
7
+ binancePair: "WBTCBTC",
8
+ okxPair: "WBTC-BTC",
9
+ coinGeckoCoinId: "wrapped-bitcoin",
10
+ coinPaprikaCoinId: "wbtc-wrapped-bitcoin",
11
+ krakenPair: "WBTCXBT"
12
+ },
13
+ name: "Wrapped BTC (WBTC)"
14
+ },
5
15
  WBTC: {
6
16
  pricing: {
7
17
  binancePair: "WBTCBTC",
@@ -17,18 +17,21 @@ const trustedIntermediaries = {
17
17
  const mempoolUrls = {
18
18
  [base_1.BitcoinNetwork.MAINNET]: [
19
19
  "https://mempool.space/api/",
20
+ "https://mempool.holdings/api/",
20
21
  "https://mempool.fra.mempool.space/api/",
21
22
  "https://mempool.va1.mempool.space/api/",
22
23
  "https://mempool.tk7.mempool.space/api/"
23
24
  ],
24
25
  [base_1.BitcoinNetwork.TESTNET]: [
25
26
  "https://mempool.space/testnet/api/",
27
+ "https://mempool.holdings/testnet/api/",
26
28
  "https://mempool.fra.mempool.space/testnet/api/",
27
29
  "https://mempool.va1.mempool.space/testnet/api/",
28
30
  "https://mempool.tk7.mempool.space/testnet/api/"
29
31
  ],
30
32
  [base_1.BitcoinNetwork.TESTNET4]: [
31
33
  "https://mempool.space/testnet4/api/",
34
+ "https://mempool.holdings/testnet4/api/",
32
35
  "https://mempool.fra.mempool.space/testnet4/api/",
33
36
  "https://mempool.va1.mempool.space/testnet4/api/",
34
37
  "https://mempool.tk7.mempool.space/testnet4/api/"
@@ -51,7 +54,7 @@ class SwapperFactory {
51
54
  chain: "SC",
52
55
  chainId: initializer.chainId,
53
56
  address: assetData.address,
54
- name: SmartChainAssets_1.SmartChainAssets[ticker].name,
57
+ name: SmartChainAssets_1.SmartChainAssets[ticker]?.name ?? ticker,
55
58
  decimals: assetData.decimals,
56
59
  displayDecimals: assetData.displayDecimals,
57
60
  ticker
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/sdk",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "atomiq labs SDK for cross-chain swaps between smart chains and bitcoin",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -1,5 +1,15 @@
1
1
 
2
2
  export const SmartChainAssets = {
3
+ _TESTNET_WBTC_VESU: {
4
+ pricing: {
5
+ binancePair: "WBTCBTC",
6
+ okxPair: "WBTC-BTC",
7
+ coinGeckoCoinId: "wrapped-bitcoin",
8
+ coinPaprikaCoinId: "wbtc-wrapped-bitcoin",
9
+ krakenPair: "WBTCXBT"
10
+ },
11
+ name: "Wrapped BTC (WBTC)"
12
+ },
3
13
  WBTC: {
4
14
  pricing: {
5
15
  binancePair: "WBTCBTC",
@@ -84,18 +84,21 @@ const trustedIntermediaries = {
84
84
  const mempoolUrls = {
85
85
  [BitcoinNetwork.MAINNET]: [
86
86
  "https://mempool.space/api/",
87
+ "https://mempool.holdings/api/",
87
88
  "https://mempool.fra.mempool.space/api/",
88
89
  "https://mempool.va1.mempool.space/api/",
89
90
  "https://mempool.tk7.mempool.space/api/"
90
91
  ],
91
92
  [BitcoinNetwork.TESTNET]: [
92
93
  "https://mempool.space/testnet/api/",
94
+ "https://mempool.holdings/testnet/api/",
93
95
  "https://mempool.fra.mempool.space/testnet/api/",
94
96
  "https://mempool.va1.mempool.space/testnet/api/",
95
97
  "https://mempool.tk7.mempool.space/testnet/api/"
96
98
  ],
97
99
  [BitcoinNetwork.TESTNET4]: [
98
100
  "https://mempool.space/testnet4/api/",
101
+ "https://mempool.holdings/testnet4/api/",
99
102
  "https://mempool.fra.mempool.space/testnet4/api/",
100
103
  "https://mempool.va1.mempool.space/testnet4/api/",
101
104
  "https://mempool.tk7.mempool.space/testnet4/api/"
@@ -127,7 +130,7 @@ export class SwapperFactory<T extends readonly ChainInitializer<any, any, any>[]
127
130
  chain: "SC",
128
131
  chainId: initializer.chainId,
129
132
  address: assetData.address,
130
- name: SmartChainAssets[ticker].name,
133
+ name: SmartChainAssets[ticker]?.name ?? ticker,
131
134
  decimals: assetData.decimals,
132
135
  displayDecimals: assetData.displayDecimals,
133
136
  ticker