@atomiqlabs/sdk 1.0.0-beta8 → 1.0.0-beta9

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.
@@ -32,8 +32,14 @@ export declare const Tokens: {
32
32
  };
33
33
  } & {
34
34
  BITCOIN: {
35
- BTC: BtcToken<false>;
36
- BTCLN: BtcToken<true>;
35
+ BTC: BtcToken<false> & {
36
+ name: "Bitcoin (on-chain)";
37
+ decimals: 8;
38
+ };
39
+ BTCLN: BtcToken<true> & {
40
+ name: "Bitcoin (lightning L2)";
41
+ decimals: 8;
42
+ };
37
43
  };
38
44
  };
39
45
  export declare const TokenResolver: {
@@ -51,11 +51,15 @@ exports.Tokens = Object.assign(Object.assign({}, (0, Utils_1.objectMap)(Chains,
51
51
  })), { BITCOIN: {
52
52
  BTC: {
53
53
  chain: "BTC",
54
- lightning: false
54
+ lightning: false,
55
+ decimals: 8,
56
+ name: "Bitcoin (on-chain)"
55
57
  },
56
58
  BTCLN: {
57
59
  chain: "BTC",
58
- lightning: true
60
+ lightning: true,
61
+ decimals: 8,
62
+ name: "Bitcoin (lightning L2)"
59
63
  }
60
64
  } });
61
65
  exports.TokenResolver = (0, Utils_1.objectMap)(Chains, (value, key) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/sdk",
3
- "version": "1.0.0-beta8",
3
+ "version": "1.0.0-beta9",
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",
@@ -82,8 +82,8 @@ export const Tokens: {
82
82
  }
83
83
  } & {
84
84
  BITCOIN: {
85
- BTC: BtcToken<false>,
86
- BTCLN: BtcToken<true>
85
+ BTC: BtcToken<false> & {name: "Bitcoin (on-chain)", decimals: 8},
86
+ BTCLN: BtcToken<true> & {name: "Bitcoin (lightning L2)", decimals: 8}
87
87
  }
88
88
  } = {
89
89
  ...objectMap(Chains, (value, key) => {
@@ -100,11 +100,15 @@ export const Tokens: {
100
100
  BITCOIN: {
101
101
  BTC: {
102
102
  chain: "BTC",
103
- lightning: false
103
+ lightning: false,
104
+ decimals: 8,
105
+ name: "Bitcoin (on-chain)"
104
106
  },
105
107
  BTCLN: {
106
108
  chain: "BTC",
107
- lightning: true
109
+ lightning: true,
110
+ decimals: 8,
111
+ name: "Bitcoin (lightning L2)"
108
112
  }
109
113
  }
110
114
  };