@swapkit/types 0.1.4 → 0.2.0

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,59 +1,71 @@
1
1
  import { Chain, ChainId } from "./_enums";
2
2
  export declare const OtherChainConfigs: readonly [{
3
3
  readonly baseDecimal: 24;
4
- readonly blockExplorerUrl: "https://nearblocks.io";
5
4
  readonly blockTime: 1;
6
5
  readonly chain: Chain.Near;
7
6
  readonly chainId: ChainId.Near;
8
7
  readonly explorerUrl: "https://nearblocks.io";
9
8
  readonly name: "Near";
10
9
  readonly nativeCurrency: "NEAR";
11
- readonly rpcUrl: "https://rpc.mainnet.near.org";
10
+ readonly networkDerivationPath: [44, 397, 0, 0, 0];
11
+ readonly rpcUrls: ["https://rpc.mainnet.near.org", "https://1rpc.io/near", "https://near.lava.build", "https://near-mainnet.infura.io/v3/3cbfcafa5e1e48b7bb0ea41f2fbc4abf"];
12
12
  readonly type: "others";
13
13
  } & {
14
14
  chainIdHex: undefined;
15
15
  }, {
16
16
  readonly baseDecimal: 18;
17
- readonly blockExplorerUrl: "https://dashboard.radixdlt.com";
18
17
  readonly blockTime: 5;
19
18
  readonly chain: Chain.Radix;
20
19
  readonly chainId: ChainId.Radix;
21
20
  readonly explorerUrl: "https://dashboard.radixdlt.com";
22
21
  readonly name: "Radix";
23
22
  readonly nativeCurrency: "XRD";
24
- readonly rpcUrl: "https://radix-mainnet.rpc.grove.city/v1/326002fc/core";
23
+ readonly networkDerivationPath: [0, 0, 0, 0, 0];
24
+ readonly rpcUrls: ["https://radix-mainnet.rpc.grove.city/v1/326002fc/core", "https://mainnet.radixdlt.com", "https://radix-mainnet.rpc.grove.city/v1"];
25
25
  readonly type: "others";
26
26
  } & {
27
27
  chainIdHex: undefined;
28
28
  }, {
29
29
  readonly baseDecimal: 6;
30
- readonly blockExplorerUrl: "https://livenet.xrpl.org/";
31
30
  readonly blockTime: 5;
32
31
  readonly chain: Chain.Ripple;
33
32
  readonly chainId: ChainId.Ripple;
34
33
  readonly explorerUrl: "https://livenet.xrpl.org/";
35
34
  readonly name: "Ripple";
36
35
  readonly nativeCurrency: "XRP";
37
- readonly rpcUrl: "wss://xrpl.ws/";
36
+ readonly networkDerivationPath: [44, 144, 0, 0, 0];
37
+ readonly rpcUrls: ["wss://xrpl.ws/", "wss://s1.ripple.com/", "wss://s2.ripple.com/"];
38
38
  readonly type: "others";
39
39
  } & {
40
40
  chainIdHex: undefined;
41
41
  }, {
42
42
  readonly baseDecimal: 9;
43
- readonly blockExplorerUrl: "https://solscan.io";
44
43
  readonly blockTime: 0.4;
45
44
  readonly chain: Chain.Solana;
46
45
  readonly chainId: ChainId.Solana;
47
46
  readonly explorerUrl: "https://solscan.io";
48
47
  readonly name: "Solana";
49
48
  readonly nativeCurrency: "SOL";
50
- readonly rpcUrl: "https://solana-rpc.publicnode.com";
49
+ readonly networkDerivationPath: [44, 501, 0, 0, 0];
50
+ readonly rpcUrls: ["https://solana-rpc.publicnode.com", "https://api.mainnet-beta.solana.com", "https://solana-mainnet.rpc.extrnode.com"];
51
+ readonly type: "others";
52
+ } & {
53
+ chainIdHex: undefined;
54
+ }, {
55
+ readonly baseDecimal: 9;
56
+ readonly blockTime: 5;
57
+ readonly chain: Chain.Ton;
58
+ readonly chainId: ChainId.Ton;
59
+ readonly explorerUrl: "https://tonscan.org";
60
+ readonly name: "Ton";
61
+ readonly nativeCurrency: "TON";
62
+ readonly networkDerivationPath: [44, 607, 0, 0, 0];
63
+ readonly rpcUrls: ["https://ton.api.onfinality.io/public", "https://ton.drpc.org/rest/", "https://toncenter.com/api/v2/jsonRPC"];
51
64
  readonly type: "others";
52
65
  } & {
53
66
  chainIdHex: undefined;
54
67
  }, {
55
68
  readonly baseDecimal: 6;
56
- readonly blockExplorerUrl: "https://tronscan.org";
57
69
  readonly blockTime: 3;
58
70
  readonly chain: Chain.Tron;
59
71
  readonly chainId: ChainId.Tron;
@@ -61,11 +73,38 @@ export declare const OtherChainConfigs: readonly [{
61
73
  readonly explorerUrl: "https://tronscan.org";
62
74
  readonly name: "Tron";
63
75
  readonly nativeCurrency: "TRX";
64
- readonly rpcUrl: "https://tron-rpc.publicnode.com";
76
+ readonly networkDerivationPath: [44, 195, 0, 0, 0];
77
+ readonly rpcUrls: ["https://tron-rpc.publicnode.com", "https://api.tronstack.io", "https://api.tron.network"];
65
78
  readonly type: "others";
66
79
  } & {
67
80
  chainIdHex: "0x2b6653dc";
81
+ }, {
82
+ readonly baseDecimal: 9;
83
+ readonly blockTime: 5;
84
+ readonly chain: Chain.Sui;
85
+ readonly chainId: ChainId.Sui;
86
+ readonly explorerUrl: "https://suiscan.xyz";
87
+ readonly name: "Sui";
88
+ readonly nativeCurrency: "SUI";
89
+ readonly networkDerivationPath: [44, 784, 0, 0, 0];
90
+ readonly rpcUrls: ["https://fullnode.mainnet.sui.io:443"];
91
+ readonly type: "others";
92
+ } & {
93
+ chainIdHex: undefined;
94
+ }, {
95
+ readonly baseDecimal: 6;
96
+ readonly blockTime: 600;
97
+ readonly chain: Chain.Cardano;
98
+ readonly chainId: ChainId.Cardano;
99
+ readonly explorerUrl: "https://cexplorer.io";
100
+ readonly name: "Cardano";
101
+ readonly nativeCurrency: "ADA";
102
+ readonly networkDerivationPath: [1852, 1815, 0, 0, 0];
103
+ readonly rpcUrls: ["https://api.koios.rest/api/v1", "https://cardano-mainnet.blockfrost.io/api/v0"];
104
+ readonly type: "others";
105
+ } & {
106
+ chainIdHex: undefined;
68
107
  }];
69
- export declare const OtherChains: (Chain.Near | Chain.Radix | Chain.Ripple | Chain.Solana | Chain.Tron)[];
108
+ export declare const OtherChains: (Chain.Cardano | Chain.Near | Chain.Radix | Chain.Ripple | Chain.Solana | Chain.Sui | Chain.Ton | Chain.Tron)[];
70
109
  export type OtherChain = (typeof OtherChains)[number];
71
110
  //# sourceMappingURL=others.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"others.d.ts","sourceRoot":"","sources":["../../../src/chains/others.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAsE1C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAC;AACtE,eAAO,MAAM,WAAW,yEAAkD,CAAC;AAC3E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"others.d.ts","sourceRoot":"","sources":["../../../src/chains/others.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AA8H1C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsD,CAAC;AACrF,eAAO,MAAM,WAAW,iHAAkD,CAAC;AAC3E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,27 +1,27 @@
1
1
  import { Chain, ChainId } from "./_enums";
2
2
  export declare const SubstrateChainConfigs: readonly [{
3
3
  readonly baseDecimal: 10;
4
- readonly blockExplorerUrl: "https://polkadot.subscan.io";
5
4
  readonly blockTime: 6;
6
5
  readonly chain: Chain.Polkadot;
7
6
  readonly chainId: ChainId.Polkadot;
8
7
  readonly explorerUrl: "https://polkadot.subscan.io";
9
8
  readonly name: "Polkadot";
10
9
  readonly nativeCurrency: "DOT";
11
- readonly rpcUrl: "wss://rpc.polkadot.io";
10
+ readonly networkDerivationPath: [0, 0, 0, 0, 0];
11
+ readonly rpcUrls: ["wss://rpc.polkadot.io", "wss://polkadot-rpc.dwellir.com", "wss://polkadot.api.onfinality.io/public-ws"];
12
12
  readonly type: "substrate";
13
13
  } & {
14
14
  chainIdHex: undefined;
15
15
  }, {
16
16
  readonly baseDecimal: 18;
17
- readonly blockExplorerUrl: "https://explorer.polkascan.io/polkadot";
18
17
  readonly blockTime: 5;
19
18
  readonly chain: Chain.Chainflip;
20
19
  readonly chainId: ChainId.Chainflip;
21
20
  readonly explorerUrl: "https://explorer.polkascan.io/polkadot";
22
21
  readonly name: "Chainflip";
23
22
  readonly nativeCurrency: "FLIP";
24
- readonly rpcUrl: "wss://mainnet-archive.chainflip.io";
23
+ readonly networkDerivationPath: [0, 0, 0, 0, 0];
24
+ readonly rpcUrls: ["wss://mainnet-archive.chainflip.io", "wss://archive-1.mainnet.chainflip.io", "wss://archive-2.mainnet.chainflip.io"];
25
25
  readonly type: "substrate";
26
26
  } & {
27
27
  chainIdHex: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"substrate.d.ts","sourceRoot":"","sources":["../../../src/chains/substrate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AA8B1C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuB,CAAC;AAC1D,eAAO,MAAM,eAAe,sCAAsD,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"substrate.d.ts","sourceRoot":"","sources":["../../../src/chains/substrate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AA+C1C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuB,CAAC;AAC1D,eAAO,MAAM,eAAe,sCAAsD,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,79 +1,79 @@
1
1
  import { Chain, ChainId } from "./_enums";
2
2
  export declare const UTXOChainConfigs: readonly [{
3
3
  readonly baseDecimal: 8;
4
- readonly blockExplorerUrl: "https://blockchair.com/bitcoin";
5
4
  readonly blockTime: 600;
6
5
  readonly chain: Chain.Bitcoin;
7
6
  readonly chainId: ChainId.Bitcoin;
8
7
  readonly explorerUrl: "https://blockchair.com/bitcoin";
9
8
  readonly name: "Bitcoin";
10
9
  readonly nativeCurrency: "BTC";
11
- readonly rpcUrl: "https://bitcoin-rpc.publicnode.com";
10
+ readonly networkDerivationPath: [number, number, number, number, number?];
11
+ readonly rpcUrls: ["https://bitcoin-rpc.publicnode.com", "https://bitcoin.publicnode.com"];
12
12
  readonly type: "utxo";
13
13
  } & {
14
14
  chainIdHex: undefined;
15
15
  }, {
16
16
  readonly baseDecimal: 8;
17
- readonly blockExplorerUrl: "https://www.blockchair.com/bitcoin-cash";
18
17
  readonly blockTime: 600;
19
18
  readonly chain: Chain.BitcoinCash;
20
19
  readonly chainId: ChainId.BitcoinCash;
21
20
  readonly explorerUrl: "https://www.blockchair.com/bitcoin-cash";
22
21
  readonly name: "BitcoinCash";
23
22
  readonly nativeCurrency: "BCH";
24
- readonly rpcUrl: "https://node-router.thorswap.net/bitcoin-cash";
23
+ readonly networkDerivationPath: [44, 145, 0, 0, 0];
24
+ readonly rpcUrls: ["https://bch-dataseed.binance.org", "https://bch.getblock.io/mainnet"];
25
25
  readonly type: "utxo";
26
26
  } & {
27
27
  chainIdHex: undefined;
28
28
  }, {
29
29
  readonly baseDecimal: 8;
30
- readonly blockExplorerUrl: "https://blockchair.com/litecoin";
31
30
  readonly blockTime: 150;
32
31
  readonly chain: Chain.Litecoin;
33
32
  readonly chainId: ChainId.Litecoin;
34
33
  readonly explorerUrl: "https://blockchair.com/litecoin";
35
34
  readonly name: "Litecoin";
36
35
  readonly nativeCurrency: "LTC";
37
- readonly rpcUrl: "https://node-router.thorswap.net/litecoin";
36
+ readonly networkDerivationPath: [84, 2, 0, 0, 0];
37
+ readonly rpcUrls: ["https://ltc.getblock.io/mainnet", "https://litecoin.publicnode.com"];
38
38
  readonly type: "utxo";
39
39
  } & {
40
40
  chainIdHex: undefined;
41
41
  }, {
42
42
  readonly baseDecimal: 8;
43
- readonly blockExplorerUrl: "https://blockchair.com/dogecoin";
44
43
  readonly blockTime: 60;
45
44
  readonly chain: Chain.Dogecoin;
46
45
  readonly chainId: ChainId.Dogecoin;
47
46
  readonly explorerUrl: "https://blockchair.com/dogecoin";
48
47
  readonly name: "Dogecoin";
49
48
  readonly nativeCurrency: "DOGE";
50
- readonly rpcUrl: "https://node-router.thorswap.net/dogecoin";
49
+ readonly networkDerivationPath: [44, 3, 0, 0, 0];
50
+ readonly rpcUrls: ["https://doge.getblock.io/mainnet", "https://dogecoin.publicnode.com"];
51
51
  readonly type: "utxo";
52
52
  } & {
53
53
  chainIdHex: undefined;
54
54
  }, {
55
55
  readonly baseDecimal: 8;
56
- readonly blockExplorerUrl: "https://blockchair.com/dash";
57
56
  readonly blockTime: 150;
58
57
  readonly chain: Chain.Dash;
59
58
  readonly chainId: ChainId.Dash;
60
59
  readonly explorerUrl: "https://blockchair.com/dash";
61
60
  readonly name: "Dash";
62
61
  readonly nativeCurrency: "DASH";
63
- readonly rpcUrl: "https://dash-rpc.publicnode.com";
62
+ readonly networkDerivationPath: [44, 5, 0, 0, 0];
63
+ readonly rpcUrls: ["https://dash-rpc.publicnode.com", "https://dash.getblock.io/mainnet"];
64
64
  readonly type: "utxo";
65
65
  } & {
66
66
  chainIdHex: undefined;
67
67
  }, {
68
68
  readonly baseDecimal: 8;
69
- readonly blockExplorerUrl: "https://blockchair.com/zcash";
70
69
  readonly blockTime: 75;
71
70
  readonly chain: Chain.Zcash;
72
71
  readonly chainId: ChainId.Zcash;
73
72
  readonly explorerUrl: "https://blockchair.com/zcash";
74
73
  readonly name: "Zcash";
75
74
  readonly nativeCurrency: "ZEC";
76
- readonly rpcUrl: "https://api.tatum.io/v3/blockchain/node/zcash-mainnet/t-6894a2ae7fc90cccfd3ce71b-2fce88aa7f4a41a5b1e93874";
75
+ readonly networkDerivationPath: [44, 133, 0, 0, 0];
76
+ readonly rpcUrls: [];
77
77
  readonly type: "utxo";
78
78
  } & {
79
79
  chainIdHex: undefined;
@@ -1 +1 @@
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"}
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;AAkF1C,eAAO,MAAM,gBAAgB;;;;;;;;oCAtEgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsEb,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.4"
20
+ "version": "0.2.0"
21
21
  }