@swapkit/types 0.3.0 → 0.7.1

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,93 +0,0 @@
1
- import { createChain } from "./_createChain";
2
- import { Chain, ChainId } from "./_enums";
3
-
4
- const type = "utxo";
5
-
6
- const BTC = createChain({
7
- baseDecimal: 8,
8
- blockTime: 600,
9
- chain: Chain.Bitcoin,
10
- chainId: ChainId.Bitcoin,
11
- explorerUrl: "https://blockchair.com/bitcoin",
12
- name: "Bitcoin",
13
- nativeCurrency: "BTC",
14
- networkDerivationPath: [84, 0, 0, 0, 0] as [number, number, number, number, number?],
15
- rpcUrls: ["https://bitcoin-rpc.publicnode.com", "https://bitcoin.publicnode.com"],
16
- type,
17
- });
18
-
19
- const BCH = createChain({
20
- baseDecimal: 8,
21
- blockTime: 600,
22
- chain: Chain.BitcoinCash,
23
- chainId: ChainId.BitcoinCash,
24
- explorerUrl: "https://www.blockchair.com/bitcoin-cash",
25
- name: "BitcoinCash",
26
- nativeCurrency: "BCH",
27
- networkDerivationPath: [44, 145, 0, 0, 0],
28
- rpcUrls: ["https://bch-dataseed.binance.org", "https://bch.getblock.io/mainnet"],
29
- type,
30
- });
31
-
32
- const LTC = createChain({
33
- baseDecimal: 8,
34
- blockTime: 150,
35
- chain: Chain.Litecoin,
36
- chainId: ChainId.Litecoin,
37
- explorerUrl: "https://blockchair.com/litecoin",
38
- name: "Litecoin",
39
- nativeCurrency: "LTC",
40
- networkDerivationPath: [84, 2, 0, 0, 0],
41
- rpcUrls: ["https://ltc.getblock.io/mainnet", "https://litecoin.publicnode.com"],
42
- type,
43
- });
44
-
45
- const DOGE = createChain({
46
- baseDecimal: 8,
47
- blockTime: 60,
48
- chain: Chain.Dogecoin,
49
- chainId: ChainId.Dogecoin,
50
- explorerUrl: "https://blockchair.com/dogecoin",
51
- name: "Dogecoin",
52
- nativeCurrency: "DOGE",
53
- networkDerivationPath: [44, 3, 0, 0, 0],
54
- rpcUrls: ["https://doge.getblock.io/mainnet", "https://dogecoin.publicnode.com"],
55
- type,
56
- });
57
-
58
- const DASH = createChain({
59
- baseDecimal: 8,
60
- blockTime: 150,
61
- chain: Chain.Dash,
62
- chainId: ChainId.Dash,
63
- explorerUrl: "https://blockchair.com/dash",
64
- name: "Dash",
65
- nativeCurrency: "DASH",
66
- networkDerivationPath: [44, 5, 0, 0, 0],
67
- rpcUrls: ["https://dash-rpc.publicnode.com", "https://dash.getblock.io/mainnet"],
68
- type,
69
- });
70
-
71
- const ZEC = createChain({
72
- baseDecimal: 8,
73
- blockTime: 75,
74
- chain: Chain.Zcash,
75
- chainId: ChainId.Zcash,
76
- explorerUrl: "https://blockchair.com/zcash",
77
- name: "Zcash",
78
- nativeCurrency: "ZEC",
79
- networkDerivationPath: [44, 133, 0, 0, 0],
80
- rpcUrls: [],
81
- type,
82
- });
83
-
84
- export const UTXOChainConfigs = [BTC, BCH, LTC, DOGE, DASH, ZEC] as const;
85
- export const UTXOChains = [
86
- Chain.Bitcoin,
87
- Chain.BitcoinCash,
88
- Chain.Dash,
89
- Chain.Dogecoin,
90
- Chain.Litecoin,
91
- Chain.Zcash,
92
- ] as const;
93
- export type UTXOChain = (typeof UTXOChains)[number];
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./chains";