@swapkit/types 0.4.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.
- package/dist/LICENSE +246 -0
- package/dist/index.cjs +1 -4
- package/dist/index.js +1 -4
- package/dist/types/chains/_createChain.d.ts +1 -0
- package/dist/types/chains/_createChain.d.ts.map +1 -1
- package/dist/types/chains/_enums.d.ts +10 -2
- package/dist/types/chains/_enums.d.ts.map +1 -1
- package/dist/types/chains/cosmos.d.ts +18 -0
- package/dist/types/chains/cosmos.d.ts.map +1 -1
- package/dist/types/chains/evm.d.ts +40 -5
- package/dist/types/chains/evm.d.ts.map +1 -1
- package/dist/types/chains/index.d.ts +108 -7
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/chains/others.d.ts +54 -4
- package/dist/types/chains/others.d.ts.map +1 -1
- package/dist/types/chains/substrate.d.ts +2 -0
- package/dist/types/chains/substrate.d.ts.map +1 -1
- package/dist/types/chains/utxo.d.ts +6 -0
- package/dist/types/chains/utxo.d.ts.map +1 -1
- package/package.json +6 -10
- package/dist/index.cjs.map +0 -17
- package/dist/index.js.map +0 -17
- package/src/chains/_createChain.ts +0 -22
- package/src/chains/_enums.ts +0 -105
- package/src/chains/cosmos.ts +0 -159
- package/src/chains/evm.ts +0 -346
- package/src/chains/index.ts +0 -149
- package/src/chains/others.ts +0 -130
- package/src/chains/substrate.ts +0 -51
- package/src/chains/utxo.ts +0 -93
- package/src/index.ts +0 -1
package/src/chains/utxo.ts
DELETED
|
@@ -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";
|