@atomiqlabs/sdk 6.0.1 → 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",
@@ -54,7 +54,7 @@ class SwapperFactory {
54
54
  chain: "SC",
55
55
  chainId: initializer.chainId,
56
56
  address: assetData.address,
57
- name: SmartChainAssets_1.SmartChainAssets[ticker].name,
57
+ name: SmartChainAssets_1.SmartChainAssets[ticker]?.name ?? ticker,
58
58
  decimals: assetData.decimals,
59
59
  displayDecimals: assetData.displayDecimals,
60
60
  ticker
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/sdk",
3
- "version": "6.0.1",
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",
@@ -130,7 +130,7 @@ export class SwapperFactory<T extends readonly ChainInitializer<any, any, any>[]
130
130
  chain: "SC",
131
131
  chainId: initializer.chainId,
132
132
  address: assetData.address,
133
- name: SmartChainAssets[ticker].name,
133
+ name: SmartChainAssets[ticker]?.name ?? ticker,
134
134
  decimals: assetData.decimals,
135
135
  displayDecimals: assetData.displayDecimals,
136
136
  ticker