@swapkit/types 0.1.0 → 0.1.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,8 +1,10 @@
1
+ import { Chain, ChainId } from "./_enums";
1
2
  export declare const UTXOChainConfigs: readonly [{
2
3
  readonly baseDecimal: 8;
3
4
  readonly blockExplorerUrl: "https://blockchair.com/bitcoin";
4
- readonly chain: "BTC";
5
- readonly chainId: "bitcoin";
5
+ readonly blockTime: 600;
6
+ readonly chain: Chain.Bitcoin;
7
+ readonly chainId: ChainId.BTC;
6
8
  readonly explorerUrl: "https://blockchair.com/bitcoin";
7
9
  readonly name: "Bitcoin";
8
10
  readonly nativeCurrency: "BTC";
@@ -13,8 +15,9 @@ export declare const UTXOChainConfigs: readonly [{
13
15
  }, {
14
16
  readonly baseDecimal: 8;
15
17
  readonly blockExplorerUrl: "https://www.blockchair.com/bitcoin-cash";
16
- readonly chain: "BCH";
17
- readonly chainId: "bitcoincash";
18
+ readonly blockTime: 600;
19
+ readonly chain: Chain.BitcoinCash;
20
+ readonly chainId: ChainId.BCH;
18
21
  readonly explorerUrl: "https://www.blockchair.com/bitcoin-cash";
19
22
  readonly name: "BitcoinCash";
20
23
  readonly nativeCurrency: "BCH";
@@ -25,8 +28,9 @@ export declare const UTXOChainConfigs: readonly [{
25
28
  }, {
26
29
  readonly baseDecimal: 8;
27
30
  readonly blockExplorerUrl: "https://blockchair.com/litecoin";
28
- readonly chain: "LTC";
29
- readonly chainId: "litecoin";
31
+ readonly blockTime: 150;
32
+ readonly chain: Chain.Litecoin;
33
+ readonly chainId: ChainId.LTC;
30
34
  readonly explorerUrl: "https://blockchair.com/litecoin";
31
35
  readonly name: "Litecoin";
32
36
  readonly nativeCurrency: "LTC";
@@ -37,8 +41,9 @@ export declare const UTXOChainConfigs: readonly [{
37
41
  }, {
38
42
  readonly baseDecimal: 8;
39
43
  readonly blockExplorerUrl: "https://blockchair.com/dogecoin";
40
- readonly chain: "DOGE";
41
- readonly chainId: "dogecoin";
44
+ readonly blockTime: 600;
45
+ readonly chain: Chain.Dogecoin;
46
+ readonly chainId: ChainId.DOGE;
42
47
  readonly explorerUrl: "https://blockchair.com/dogecoin";
43
48
  readonly name: "Dogecoin";
44
49
  readonly nativeCurrency: "DOGE";
@@ -49,8 +54,9 @@ export declare const UTXOChainConfigs: readonly [{
49
54
  }, {
50
55
  readonly baseDecimal: 8;
51
56
  readonly blockExplorerUrl: "https://blockchair.com/dash";
52
- readonly chain: "DASH";
53
- readonly chainId: "dash";
57
+ readonly blockTime: 150;
58
+ readonly chain: Chain.Dash;
59
+ readonly chainId: ChainId.DASH;
54
60
  readonly explorerUrl: "https://blockchair.com/dash";
55
61
  readonly name: "Dash";
56
62
  readonly nativeCurrency: "DASH";
@@ -61,8 +67,9 @@ export declare const UTXOChainConfigs: readonly [{
61
67
  }, {
62
68
  readonly baseDecimal: 8;
63
69
  readonly blockExplorerUrl: "https://blockchair.com/zcash";
64
- readonly chain: "ZEC";
65
- readonly chainId: "zcash";
70
+ readonly blockTime: 150;
71
+ readonly chain: Chain.Zcash;
72
+ readonly chainId: ChainId.ZEC;
66
73
  readonly explorerUrl: "https://blockchair.com/zcash";
67
74
  readonly name: "Zcash";
68
75
  readonly nativeCurrency: "ZEC";
@@ -71,6 +78,6 @@ export declare const UTXOChainConfigs: readonly [{
71
78
  } & {
72
79
  chainIdHex: undefined;
73
80
  }];
74
- export declare const UTXOChains: ["BTC", "BCH", "LTC", "DOGE", "DASH", "ZEC"];
81
+ export declare const UTXOChains: readonly [Chain.Bitcoin, Chain.BitcoinCash, Chain.Dash, Chain.Dogecoin, Chain.Litecoin, Chain.Zcash];
75
82
  export type UTXOChain = (typeof UTXOChains)[number];
76
83
  //# sourceMappingURL=utxo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utxo.d.ts","sourceRoot":"","sources":["../../../src/chains/utxo.ts"],"names":[],"mappings":"AA0EA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4C,CAAC;AAC1E,eAAO,MAAM,UAAU,8CAA8B,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"utxo.d.ts","sourceRoot":"","sources":["../../../src/chains/utxo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAgF1C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4C,CAAC;AAC1E,eAAO,MAAM,UAAU,sGAOb,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "type-check:go": "tsgo"
18
18
  },
19
19
  "type": "module",
20
- "version": "0.1.0"
20
+ "version": "0.1.2"
21
21
  }