@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.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +10 -10
- package/dist/index.js +2 -2
- package/dist/index.js.map +10 -10
- package/dist/types/chains/_createChain.d.ts +4 -10
- package/dist/types/chains/_createChain.d.ts.map +1 -1
- package/dist/types/chains/_enums.d.ts +6 -0
- package/dist/types/chains/_enums.d.ts.map +1 -1
- package/dist/types/chains/cosmos.d.ts +60 -39
- package/dist/types/chains/cosmos.d.ts.map +1 -1
- package/dist/types/chains/evm.d.ts +22 -22
- package/dist/types/chains/evm.d.ts.map +1 -1
- package/dist/types/chains/index.d.ts +128 -71
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/chains/others.d.ts +50 -11
- package/dist/types/chains/others.d.ts.map +1 -1
- package/dist/types/chains/substrate.d.ts +4 -4
- package/dist/types/chains/substrate.d.ts.map +1 -1
- package/dist/types/chains/utxo.d.ts +12 -12
- package/dist/types/chains/utxo.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import type { Chain, ChainId } from "./_enums";
|
|
1
|
+
import type { Chain, ChainId, StagenetChain } from "./_enums";
|
|
2
2
|
type ChainIdHexType<T> = T extends {
|
|
3
3
|
chainIdHex: infer U;
|
|
4
4
|
} ? (U extends string ? U : undefined) : undefined;
|
|
5
|
-
type ExtractChains<T extends readonly any[]> = T extends readonly [...infer Items] ? {
|
|
6
|
-
[K in keyof Items]: Items[K] extends {
|
|
7
|
-
chain: infer C;
|
|
8
|
-
} ? C : never;
|
|
9
|
-
} : never;
|
|
10
5
|
export declare function createChain<const Name extends string, const Type extends "utxo" | "evm" | "cosmos" | "substrate" | "others", const Params extends {
|
|
11
6
|
baseDecimal: number;
|
|
12
7
|
blockTime: number;
|
|
13
|
-
|
|
14
|
-
chain: Chain;
|
|
8
|
+
chain: Chain | StagenetChain;
|
|
15
9
|
chainId: ChainId;
|
|
16
10
|
explorerUrl: string;
|
|
17
11
|
name: Name;
|
|
18
12
|
nativeCurrency: string;
|
|
19
|
-
|
|
13
|
+
networkDerivationPath: [number, number, number, number, number?];
|
|
14
|
+
rpcUrls: string[];
|
|
20
15
|
type: Type;
|
|
21
16
|
} & ({
|
|
22
17
|
chainIdHex: string;
|
|
@@ -25,6 +20,5 @@ export declare function createChain<const Name extends string, const Type extend
|
|
|
25
20
|
})>(params: Params): Params & {
|
|
26
21
|
chainIdHex: ChainIdHexType<Params>;
|
|
27
22
|
};
|
|
28
|
-
export declare function mapChains<T extends readonly any[]>(chains: T): ExtractChains<T>;
|
|
29
23
|
export {};
|
|
30
24
|
//# sourceMappingURL=_createChain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_createChain.d.ts","sourceRoot":"","sources":["../../../src/chains/_createChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"_createChain.d.ts","sourceRoot":"","sources":["../../../src/chains/_createChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9D,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,UAAU,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC;AAE5G,wBAAgB,WAAW,CACzB,KAAK,CAAC,IAAI,SAAS,MAAM,EACzB,KAAK,CAAC,IAAI,SAAS,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,EACrE,KAAK,CAAC,MAAM,SAAS;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,aAAa,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,IAAI,CAAC;CACZ,GAAG,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,UAAU,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,EACrD,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG;IAAE,UAAU,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;CAAE,CAEjE"}
|
|
@@ -5,6 +5,7 @@ export declare enum Chain {
|
|
|
5
5
|
Base = "BASE",
|
|
6
6
|
Berachain = "BERA",
|
|
7
7
|
BinanceSmartChain = "BSC",
|
|
8
|
+
Cardano = "ADA",
|
|
8
9
|
Bitcoin = "BTC",
|
|
9
10
|
BitcoinCash = "BCH",
|
|
10
11
|
Cosmos = "GAIA",
|
|
@@ -26,6 +27,8 @@ export declare enum Chain {
|
|
|
26
27
|
Ripple = "XRP",
|
|
27
28
|
THORChain = "THOR",
|
|
28
29
|
Solana = "SOL",
|
|
30
|
+
Sui = "SUI",
|
|
31
|
+
Ton = "TON",
|
|
29
32
|
Tron = "TRON",
|
|
30
33
|
Zcash = "ZEC"
|
|
31
34
|
}
|
|
@@ -50,6 +53,7 @@ export declare enum ChainId {
|
|
|
50
53
|
BinanceSmartChain = "56",
|
|
51
54
|
Bitcoin = "bitcoin",
|
|
52
55
|
BitcoinCash = "bitcoincash",
|
|
56
|
+
Cardano = "cardano",
|
|
53
57
|
Chainflip = "chainflip",
|
|
54
58
|
Cosmos = "cosmoshub-4",
|
|
55
59
|
Dash = "dash",
|
|
@@ -72,6 +76,8 @@ export declare enum ChainId {
|
|
|
72
76
|
THORChain = "thorchain-1",
|
|
73
77
|
THORChainStagenet = "thorchain-stagenet-v2",
|
|
74
78
|
Solana = "solana",
|
|
79
|
+
Sui = "sui",
|
|
80
|
+
Ton = "ton",
|
|
75
81
|
Tron = "728126428",
|
|
76
82
|
Zcash = "zcash"
|
|
77
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_enums.d.ts","sourceRoot":"","sources":["../../../src/chains/_enums.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,QAAQ,QAAQ;IAChB,MAAM,WAAW;IACjB,SAAS,SAAS;IAClB,IAAI,SAAS;IACb,SAAS,SAAS;IAClB,iBAAiB,QAAQ;IACzB,OAAO,QAAQ;IACf,WAAW,QAAQ;IACnB,MAAM,SAAS;IACf,IAAI,SAAS;IACb,QAAQ,SAAS;IACjB,QAAQ,QAAQ;IAChB,MAAM,QAAQ;IACd,MAAM,WAAW;IACjB,MAAM,SAAS;IACf,QAAQ,QAAQ;IAChB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,OAAO;IACf,QAAQ,QAAQ;IAChB,SAAS,SAAS;IAClB,OAAO,QAAQ;IACf,KAAK,QAAQ;IACb,MAAM,QAAQ;IACd,SAAS,SAAS;IAClB,MAAM,QAAQ;IACd,IAAI,SAAS;IACb,KAAK,QAAQ;CACd;AAED,oBAAY,aAAa;IACvB,MAAM,gBAAgB;IACtB,SAAS,kBAAkB;IAC3B,IAAI,kBAAkB;CACvB;AAED;;;;;;GAMG;AACH,oBAAY,OAAO;
|
|
1
|
+
{"version":3,"file":"_enums.d.ts","sourceRoot":"","sources":["../../../src/chains/_enums.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,QAAQ,QAAQ;IAChB,MAAM,WAAW;IACjB,SAAS,SAAS;IAClB,IAAI,SAAS;IACb,SAAS,SAAS;IAClB,iBAAiB,QAAQ;IAC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cAAc;IAClB,KAAK,UAAU;CAChB"}
|
|
@@ -1,205 +1,211 @@
|
|
|
1
1
|
import { Chain, ChainId, StagenetChain } from "./_enums";
|
|
2
2
|
export declare const GAIAConfig: {
|
|
3
3
|
readonly baseDecimal: 6;
|
|
4
|
-
readonly blockExplorerUrl: "https://www.mintscan.io/cosmos";
|
|
5
4
|
readonly blockTime: 2;
|
|
6
5
|
readonly chain: Chain.Cosmos;
|
|
7
6
|
readonly chainId: ChainId.Cosmos;
|
|
8
7
|
readonly explorerUrl: "https://www.mintscan.io/cosmos";
|
|
9
8
|
readonly name: "Cosmos";
|
|
10
9
|
readonly nativeCurrency: "ATOM";
|
|
11
|
-
readonly
|
|
10
|
+
readonly networkDerivationPath: [44, 118, 0, 0, 0];
|
|
11
|
+
readonly rpcUrls: ["https://cosmos-rpc.publicnode.com:443", "https://cosmos-rpc.publicnode.com"];
|
|
12
12
|
readonly type: "cosmos";
|
|
13
13
|
} & {
|
|
14
14
|
chainIdHex: undefined;
|
|
15
15
|
};
|
|
16
16
|
export declare const THORConfig: {
|
|
17
17
|
readonly baseDecimal: 8;
|
|
18
|
-
readonly blockExplorerUrl: "https://runescan.io";
|
|
19
18
|
readonly blockTime: 6;
|
|
20
19
|
readonly chain: Chain.THORChain;
|
|
21
20
|
readonly chainId: ChainId.THORChain;
|
|
22
21
|
readonly explorerUrl: "https://runescan.io";
|
|
23
22
|
readonly name: "THORChain";
|
|
24
23
|
readonly nativeCurrency: "RUNE";
|
|
25
|
-
readonly
|
|
24
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
25
|
+
readonly nodeUrl: "https://thornode.ninerealms.com";
|
|
26
|
+
readonly rpcUrls: ["https://rpc.ninerealms.com", "https://thornode.ninerealms.com"];
|
|
26
27
|
readonly type: "cosmos";
|
|
27
28
|
} & {
|
|
28
29
|
chainIdHex: undefined;
|
|
29
30
|
};
|
|
30
31
|
export declare const StagenetTHORConfig: {
|
|
31
32
|
readonly baseDecimal: 8;
|
|
32
|
-
readonly blockExplorerUrl: "https://runescan.io";
|
|
33
33
|
readonly blockTime: 6;
|
|
34
|
-
readonly chain:
|
|
34
|
+
readonly chain: StagenetChain.THORChain;
|
|
35
35
|
readonly chainId: ChainId.THORChainStagenet;
|
|
36
36
|
readonly explorerUrl: "https://runescan.io";
|
|
37
37
|
readonly name: "THORChain";
|
|
38
38
|
readonly nativeCurrency: "RUNE";
|
|
39
|
-
readonly
|
|
39
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
40
|
+
readonly nodeUrl: "https://stagenet-thornode.ninerealms.com";
|
|
41
|
+
readonly rpcUrls: ["https://stagenet-rpc.ninerealms.com", "https://stagenet-thornode.ninerealms.com"];
|
|
40
42
|
readonly type: "cosmos";
|
|
41
43
|
} & {
|
|
42
44
|
chainIdHex: undefined;
|
|
43
45
|
};
|
|
44
46
|
export declare const MAYAConfig: {
|
|
45
47
|
readonly baseDecimal: 8;
|
|
46
|
-
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
47
48
|
readonly blockTime: 6;
|
|
48
49
|
readonly chain: Chain.Maya;
|
|
49
50
|
readonly chainId: ChainId.Maya;
|
|
50
51
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
51
52
|
readonly name: "Maya";
|
|
52
53
|
readonly nativeCurrency: "CACAO";
|
|
53
|
-
readonly
|
|
54
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
55
|
+
readonly nodeUrl: "https://mayanode.mayachain.info";
|
|
56
|
+
readonly rpcUrls: ["https://tendermint.mayachain.info", "https://maya-tendermint.publicnode.com", "https://mayanode.mayachain.info"];
|
|
54
57
|
readonly type: "cosmos";
|
|
55
58
|
} & {
|
|
56
59
|
chainIdHex: undefined;
|
|
57
60
|
};
|
|
58
61
|
export declare const HARBORConfig: {
|
|
59
62
|
readonly baseDecimal: 8;
|
|
60
|
-
readonly blockExplorerUrl: "";
|
|
61
63
|
readonly blockTime: 6;
|
|
62
64
|
readonly chain: Chain.Harbor;
|
|
63
65
|
readonly chainId: ChainId.Harbor;
|
|
64
66
|
readonly explorerUrl: "";
|
|
65
67
|
readonly name: "Harbor";
|
|
66
68
|
readonly nativeCurrency: "HRB";
|
|
67
|
-
readonly
|
|
69
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
70
|
+
readonly rpcUrls: ["https://xnode.harbor-dev.xyz/xnode"];
|
|
68
71
|
readonly type: "cosmos";
|
|
69
72
|
} & {
|
|
70
73
|
chainIdHex: undefined;
|
|
71
74
|
};
|
|
72
75
|
export declare const StagenetHARBORConfig: {
|
|
73
76
|
readonly baseDecimal: 8;
|
|
74
|
-
readonly blockExplorerUrl: "";
|
|
75
77
|
readonly blockTime: 6;
|
|
76
|
-
readonly chain:
|
|
78
|
+
readonly chain: StagenetChain.Harbor;
|
|
77
79
|
readonly chainId: ChainId.HarborStagenet;
|
|
78
80
|
readonly explorerUrl: "";
|
|
79
81
|
readonly name: "Harbor";
|
|
80
82
|
readonly nativeCurrency: "HRB";
|
|
81
|
-
readonly
|
|
83
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
84
|
+
readonly rpcUrls: ["https://xnode.harbor-dev.xyz/xnode"];
|
|
82
85
|
readonly type: "cosmos";
|
|
83
86
|
} & {
|
|
84
87
|
chainIdHex: undefined;
|
|
85
88
|
};
|
|
86
89
|
export declare const StagenetMAYAConfig: {
|
|
87
90
|
readonly baseDecimal: 8;
|
|
88
|
-
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
89
91
|
readonly blockTime: 6;
|
|
90
|
-
readonly chain:
|
|
92
|
+
readonly chain: StagenetChain.Maya;
|
|
91
93
|
readonly chainId: ChainId.MayaStagenet;
|
|
92
94
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
93
95
|
readonly name: "Maya";
|
|
94
96
|
readonly nativeCurrency: "CACAO";
|
|
95
|
-
readonly
|
|
97
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
98
|
+
readonly nodeUrl: "https://stagenet.mayanode.mayachain.info";
|
|
99
|
+
readonly rpcUrls: ["https://stagenet.mayanode.mayachain.info"];
|
|
96
100
|
readonly type: "cosmos";
|
|
97
101
|
} & {
|
|
98
102
|
chainIdHex: undefined;
|
|
99
103
|
};
|
|
100
104
|
export declare const KUJIConfig: {
|
|
101
105
|
readonly baseDecimal: 6;
|
|
102
|
-
readonly blockExplorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
103
106
|
readonly blockTime: 2.2;
|
|
104
107
|
readonly chain: Chain.Kujira;
|
|
105
108
|
readonly chainId: ChainId.Kujira;
|
|
106
109
|
readonly explorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
107
110
|
readonly name: "Kujira";
|
|
108
111
|
readonly nativeCurrency: "KUJI";
|
|
109
|
-
readonly
|
|
112
|
+
readonly networkDerivationPath: [44, 118, 0, 0, 0];
|
|
113
|
+
readonly rpcUrls: ["https://kujira-rpc.ibs.team", "https://kujira-rpc.polkachu.com", "https://rpc-kujira.synergynodes.com/"];
|
|
110
114
|
readonly type: "cosmos";
|
|
111
115
|
} & {
|
|
112
116
|
chainIdHex: undefined;
|
|
113
117
|
};
|
|
114
118
|
export declare const NOBLEConfig: {
|
|
115
119
|
readonly baseDecimal: 6;
|
|
116
|
-
readonly blockExplorerUrl: "https://www.mintscan.io/noble";
|
|
117
120
|
readonly blockTime: 1.3;
|
|
118
121
|
readonly chain: Chain.Noble;
|
|
119
122
|
readonly chainId: ChainId.Noble;
|
|
120
123
|
readonly explorerUrl: "https://www.mintscan.io/noble";
|
|
121
124
|
readonly name: "Noble";
|
|
122
125
|
readonly nativeCurrency: "USDC";
|
|
123
|
-
readonly
|
|
126
|
+
readonly networkDerivationPath: [44, 118, 0, 0, 0];
|
|
127
|
+
readonly rpcUrls: ["https://noble-rpc.polkachu.com", "https://rpc.noble.xyz", "https://rpc.cosmos.directory/noble"];
|
|
124
128
|
readonly type: "cosmos";
|
|
125
129
|
} & {
|
|
126
130
|
chainIdHex: undefined;
|
|
127
131
|
};
|
|
128
132
|
export declare const CosmosChainConfigs: readonly [{
|
|
129
133
|
readonly baseDecimal: 6;
|
|
130
|
-
readonly blockExplorerUrl: "https://www.mintscan.io/cosmos";
|
|
131
134
|
readonly blockTime: 2;
|
|
132
135
|
readonly chain: Chain.Cosmos;
|
|
133
136
|
readonly chainId: ChainId.Cosmos;
|
|
134
137
|
readonly explorerUrl: "https://www.mintscan.io/cosmos";
|
|
135
138
|
readonly name: "Cosmos";
|
|
136
139
|
readonly nativeCurrency: "ATOM";
|
|
137
|
-
readonly
|
|
140
|
+
readonly networkDerivationPath: [44, 118, 0, 0, 0];
|
|
141
|
+
readonly rpcUrls: ["https://cosmos-rpc.publicnode.com:443", "https://cosmos-rpc.publicnode.com"];
|
|
138
142
|
readonly type: "cosmos";
|
|
139
143
|
} & {
|
|
140
144
|
chainIdHex: undefined;
|
|
141
145
|
}, {
|
|
142
146
|
readonly baseDecimal: 8;
|
|
143
|
-
readonly blockExplorerUrl: "https://runescan.io";
|
|
144
147
|
readonly blockTime: 6;
|
|
145
148
|
readonly chain: Chain.THORChain;
|
|
146
149
|
readonly chainId: ChainId.THORChain;
|
|
147
150
|
readonly explorerUrl: "https://runescan.io";
|
|
148
151
|
readonly name: "THORChain";
|
|
149
152
|
readonly nativeCurrency: "RUNE";
|
|
150
|
-
readonly
|
|
153
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
154
|
+
readonly nodeUrl: "https://thornode.ninerealms.com";
|
|
155
|
+
readonly rpcUrls: ["https://rpc.ninerealms.com", "https://thornode.ninerealms.com"];
|
|
151
156
|
readonly type: "cosmos";
|
|
152
157
|
} & {
|
|
153
158
|
chainIdHex: undefined;
|
|
154
159
|
}, {
|
|
155
160
|
readonly baseDecimal: 8;
|
|
156
|
-
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
157
161
|
readonly blockTime: 6;
|
|
158
162
|
readonly chain: Chain.Maya;
|
|
159
163
|
readonly chainId: ChainId.Maya;
|
|
160
164
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
161
165
|
readonly name: "Maya";
|
|
162
166
|
readonly nativeCurrency: "CACAO";
|
|
163
|
-
readonly
|
|
167
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
168
|
+
readonly nodeUrl: "https://mayanode.mayachain.info";
|
|
169
|
+
readonly rpcUrls: ["https://tendermint.mayachain.info", "https://maya-tendermint.publicnode.com", "https://mayanode.mayachain.info"];
|
|
164
170
|
readonly type: "cosmos";
|
|
165
171
|
} & {
|
|
166
172
|
chainIdHex: undefined;
|
|
167
173
|
}, {
|
|
168
174
|
readonly baseDecimal: 6;
|
|
169
|
-
readonly blockExplorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
170
175
|
readonly blockTime: 2.2;
|
|
171
176
|
readonly chain: Chain.Kujira;
|
|
172
177
|
readonly chainId: ChainId.Kujira;
|
|
173
178
|
readonly explorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
174
179
|
readonly name: "Kujira";
|
|
175
180
|
readonly nativeCurrency: "KUJI";
|
|
176
|
-
readonly
|
|
181
|
+
readonly networkDerivationPath: [44, 118, 0, 0, 0];
|
|
182
|
+
readonly rpcUrls: ["https://kujira-rpc.ibs.team", "https://kujira-rpc.polkachu.com", "https://rpc-kujira.synergynodes.com/"];
|
|
177
183
|
readonly type: "cosmos";
|
|
178
184
|
} & {
|
|
179
185
|
chainIdHex: undefined;
|
|
180
186
|
}, {
|
|
181
187
|
readonly baseDecimal: 6;
|
|
182
|
-
readonly blockExplorerUrl: "https://www.mintscan.io/noble";
|
|
183
188
|
readonly blockTime: 1.3;
|
|
184
189
|
readonly chain: Chain.Noble;
|
|
185
190
|
readonly chainId: ChainId.Noble;
|
|
186
191
|
readonly explorerUrl: "https://www.mintscan.io/noble";
|
|
187
192
|
readonly name: "Noble";
|
|
188
193
|
readonly nativeCurrency: "USDC";
|
|
189
|
-
readonly
|
|
194
|
+
readonly networkDerivationPath: [44, 118, 0, 0, 0];
|
|
195
|
+
readonly rpcUrls: ["https://noble-rpc.polkachu.com", "https://rpc.noble.xyz", "https://rpc.cosmos.directory/noble"];
|
|
190
196
|
readonly type: "cosmos";
|
|
191
197
|
} & {
|
|
192
198
|
chainIdHex: undefined;
|
|
193
199
|
}, {
|
|
194
200
|
readonly baseDecimal: 8;
|
|
195
|
-
readonly blockExplorerUrl: "";
|
|
196
201
|
readonly blockTime: 6;
|
|
197
202
|
readonly chain: Chain.Harbor;
|
|
198
203
|
readonly chainId: ChainId.Harbor;
|
|
199
204
|
readonly explorerUrl: "";
|
|
200
205
|
readonly name: "Harbor";
|
|
201
206
|
readonly nativeCurrency: "HRB";
|
|
202
|
-
readonly
|
|
207
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
208
|
+
readonly rpcUrls: ["https://xnode.harbor-dev.xyz/xnode"];
|
|
203
209
|
readonly type: "cosmos";
|
|
204
210
|
} & {
|
|
205
211
|
chainIdHex: undefined;
|
|
@@ -208,27 +214,42 @@ export declare const CosmosChains: readonly [Chain.Cosmos, Chain.Kujira, Chain.M
|
|
|
208
214
|
export type CosmosChain = (typeof CosmosChains)[number];
|
|
209
215
|
export declare const StagenetCosmosChainConfigs: readonly [{
|
|
210
216
|
readonly baseDecimal: 8;
|
|
211
|
-
readonly blockExplorerUrl: "https://runescan.io";
|
|
212
217
|
readonly blockTime: 6;
|
|
213
|
-
readonly chain:
|
|
218
|
+
readonly chain: StagenetChain.THORChain;
|
|
214
219
|
readonly chainId: ChainId.THORChainStagenet;
|
|
215
220
|
readonly explorerUrl: "https://runescan.io";
|
|
216
221
|
readonly name: "THORChain";
|
|
217
222
|
readonly nativeCurrency: "RUNE";
|
|
218
|
-
readonly
|
|
223
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
224
|
+
readonly nodeUrl: "https://stagenet-thornode.ninerealms.com";
|
|
225
|
+
readonly rpcUrls: ["https://stagenet-rpc.ninerealms.com", "https://stagenet-thornode.ninerealms.com"];
|
|
219
226
|
readonly type: "cosmos";
|
|
220
227
|
} & {
|
|
221
228
|
chainIdHex: undefined;
|
|
222
229
|
}, {
|
|
223
230
|
readonly baseDecimal: 8;
|
|
224
|
-
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
225
231
|
readonly blockTime: 6;
|
|
226
|
-
readonly chain:
|
|
232
|
+
readonly chain: StagenetChain.Maya;
|
|
227
233
|
readonly chainId: ChainId.MayaStagenet;
|
|
228
234
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
229
235
|
readonly name: "Maya";
|
|
230
236
|
readonly nativeCurrency: "CACAO";
|
|
231
|
-
readonly
|
|
237
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
238
|
+
readonly nodeUrl: "https://stagenet.mayanode.mayachain.info";
|
|
239
|
+
readonly rpcUrls: ["https://stagenet.mayanode.mayachain.info"];
|
|
240
|
+
readonly type: "cosmos";
|
|
241
|
+
} & {
|
|
242
|
+
chainIdHex: undefined;
|
|
243
|
+
}, {
|
|
244
|
+
readonly baseDecimal: 8;
|
|
245
|
+
readonly blockTime: 6;
|
|
246
|
+
readonly chain: StagenetChain.Harbor;
|
|
247
|
+
readonly chainId: ChainId.HarborStagenet;
|
|
248
|
+
readonly explorerUrl: "";
|
|
249
|
+
readonly name: "Harbor";
|
|
250
|
+
readonly nativeCurrency: "HRB";
|
|
251
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
252
|
+
readonly rpcUrls: ["https://xnode.harbor-dev.xyz/xnode"];
|
|
232
253
|
readonly type: "cosmos";
|
|
233
254
|
} & {
|
|
234
255
|
chainIdHex: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["../../../src/chains/cosmos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIzD,eAAO,MAAM,UAAU;;;;;;;;;;;;;C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,wCAAgD,CAAC;AAC1E,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Chain, ChainId } from "./_enums";
|
|
2
2
|
export declare const EVMChainConfigs: readonly [{
|
|
3
3
|
readonly baseDecimal: 18;
|
|
4
|
-
readonly blockExplorerUrl: "https://etherscan.io";
|
|
5
4
|
readonly blockTime: 12.5;
|
|
6
5
|
readonly chain: Chain.Ethereum;
|
|
7
6
|
readonly chainId: ChainId.Ethereum;
|
|
@@ -9,41 +8,41 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
9
8
|
readonly explorerUrl: "https://etherscan.io";
|
|
10
9
|
readonly name: "Ethereum";
|
|
11
10
|
readonly nativeCurrency: "ETH";
|
|
12
|
-
readonly
|
|
11
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
12
|
+
readonly rpcUrls: ["https://ethereum-rpc.publicnode.com", "https://eth.llamarpc.com", "https://cloudflare-eth.com"];
|
|
13
13
|
readonly type: "evm";
|
|
14
14
|
} & {
|
|
15
15
|
chainIdHex: "0x1";
|
|
16
16
|
}, {
|
|
17
17
|
readonly baseDecimal: 18;
|
|
18
|
-
readonly
|
|
19
|
-
readonly blockTime: 3;
|
|
18
|
+
readonly blockTime: 1;
|
|
20
19
|
readonly chain: Chain.BinanceSmartChain;
|
|
21
20
|
readonly chainId: ChainId.BinanceSmartChain;
|
|
22
21
|
readonly chainIdHex: "0x38";
|
|
23
22
|
readonly explorerUrl: "https://bscscan.com";
|
|
24
23
|
readonly name: "BinanceSmartChain";
|
|
25
24
|
readonly nativeCurrency: "BNB";
|
|
26
|
-
readonly
|
|
25
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
26
|
+
readonly rpcUrls: ["https://bsc-dataseed.binance.org", "https://bsc-rpc.gateway.pokt.network", "https://bsc-dataseed2.binance.org"];
|
|
27
27
|
readonly type: "evm";
|
|
28
28
|
} & {
|
|
29
29
|
chainIdHex: "0x38";
|
|
30
30
|
}, {
|
|
31
31
|
readonly baseDecimal: 18;
|
|
32
|
-
readonly
|
|
33
|
-
readonly blockTime: 3;
|
|
32
|
+
readonly blockTime: 2;
|
|
34
33
|
readonly chain: Chain.Avalanche;
|
|
35
34
|
readonly chainId: ChainId.Avalanche;
|
|
36
35
|
readonly chainIdHex: "0xa86a";
|
|
37
36
|
readonly explorerUrl: "https://snowtrace.io";
|
|
38
37
|
readonly name: "Avalanche";
|
|
39
38
|
readonly nativeCurrency: "AVAX";
|
|
40
|
-
readonly
|
|
39
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
40
|
+
readonly rpcUrls: ["https://api.avax.network/ext/bc/C/rpc", "https://api.avax.network/ext/bc/C/rpc", "https://avalanche-c-chain-rpc.publicnode.com"];
|
|
41
41
|
readonly type: "evm";
|
|
42
42
|
} & {
|
|
43
43
|
chainIdHex: "0xa86a";
|
|
44
44
|
}, {
|
|
45
45
|
readonly baseDecimal: 18;
|
|
46
|
-
readonly blockExplorerUrl: "https://polygonscan.com";
|
|
47
46
|
readonly blockTime: 2.1;
|
|
48
47
|
readonly chain: Chain.Polygon;
|
|
49
48
|
readonly chainId: ChainId.Polygon;
|
|
@@ -51,13 +50,13 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
51
50
|
readonly explorerUrl: "https://polygonscan.com";
|
|
52
51
|
readonly name: "Polygon";
|
|
53
52
|
readonly nativeCurrency: "POL";
|
|
54
|
-
readonly
|
|
53
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
54
|
+
readonly rpcUrls: ["https://polygon-rpc.com", "https://polygon.llamarpc.com", "https://polygon-bor-rpc.publicnode.com"];
|
|
55
55
|
readonly type: "evm";
|
|
56
56
|
} & {
|
|
57
57
|
chainIdHex: "0x89";
|
|
58
58
|
}, {
|
|
59
59
|
readonly baseDecimal: 18;
|
|
60
|
-
readonly blockExplorerUrl: "https://arbiscan.io";
|
|
61
60
|
readonly blockTime: 0.3;
|
|
62
61
|
readonly chain: Chain.Arbitrum;
|
|
63
62
|
readonly chainId: ChainId.Arbitrum;
|
|
@@ -65,13 +64,13 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
65
64
|
readonly explorerUrl: "https://arbiscan.io";
|
|
66
65
|
readonly name: "Arbitrum";
|
|
67
66
|
readonly nativeCurrency: "ETH";
|
|
68
|
-
readonly
|
|
67
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
68
|
+
readonly rpcUrls: ["https://arb1.arbitrum.io/rpc", "https://arb-mainnet.g.alchemy.com/v2/demo", "https://arbitrum.blockpi.network/v1/rpc/public"];
|
|
69
69
|
readonly type: "evm";
|
|
70
70
|
} & {
|
|
71
71
|
chainIdHex: "0xa4b1";
|
|
72
72
|
}, {
|
|
73
73
|
readonly baseDecimal: 18;
|
|
74
|
-
readonly blockExplorerUrl: "https://optimistic.etherscan.io";
|
|
75
74
|
readonly blockTime: 2;
|
|
76
75
|
readonly chain: Chain.Optimism;
|
|
77
76
|
readonly chainId: ChainId.Optimism;
|
|
@@ -79,13 +78,13 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
79
78
|
readonly explorerUrl: "https://optimistic.etherscan.io";
|
|
80
79
|
readonly name: "Optimism";
|
|
81
80
|
readonly nativeCurrency: "ETH";
|
|
82
|
-
readonly
|
|
81
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
82
|
+
readonly rpcUrls: ["https://mainnet.optimism.io", "https://optimism.llamarpc.com", "https://1rpc.io/op"];
|
|
83
83
|
readonly type: "evm";
|
|
84
84
|
} & {
|
|
85
85
|
chainIdHex: "0xa";
|
|
86
86
|
}, {
|
|
87
87
|
readonly baseDecimal: 18;
|
|
88
|
-
readonly blockExplorerUrl: "https://basescan.org";
|
|
89
88
|
readonly blockTime: 2;
|
|
90
89
|
readonly chain: Chain.Base;
|
|
91
90
|
readonly chainId: ChainId.Base;
|
|
@@ -93,13 +92,13 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
93
92
|
readonly explorerUrl: "https://basescan.org";
|
|
94
93
|
readonly name: "Base";
|
|
95
94
|
readonly nativeCurrency: "ETH";
|
|
96
|
-
readonly
|
|
95
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
96
|
+
readonly rpcUrls: ["https://base-rpc.publicnode.com", "https://base.blockpi.network/v1/rpc/public", "https://1rpc.io/base"];
|
|
97
97
|
readonly type: "evm";
|
|
98
98
|
} & {
|
|
99
99
|
chainIdHex: "0x2105";
|
|
100
100
|
}, {
|
|
101
101
|
readonly baseDecimal: 18;
|
|
102
|
-
readonly blockExplorerUrl: "https://gnosisscan.io";
|
|
103
102
|
readonly blockTime: 5.2;
|
|
104
103
|
readonly chain: Chain.Gnosis;
|
|
105
104
|
readonly chainId: ChainId.Gnosis;
|
|
@@ -107,13 +106,13 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
107
106
|
readonly explorerUrl: "https://gnosisscan.io";
|
|
108
107
|
readonly name: "Gnosis";
|
|
109
108
|
readonly nativeCurrency: "xDAI";
|
|
110
|
-
readonly
|
|
109
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
110
|
+
readonly rpcUrls: ["https://gnosis-rpc.publicnode.com", "https://gnosis.drpc.org", "https://rpc.ankr.com/gnosis"];
|
|
111
111
|
readonly type: "evm";
|
|
112
112
|
} & {
|
|
113
113
|
chainIdHex: "0x64";
|
|
114
114
|
}, {
|
|
115
115
|
readonly baseDecimal: 18;
|
|
116
|
-
readonly blockExplorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
117
116
|
readonly blockTime: 1;
|
|
118
117
|
readonly chain: Chain.Aurora;
|
|
119
118
|
readonly chainId: ChainId.Aurora;
|
|
@@ -121,13 +120,13 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
121
120
|
readonly explorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
122
121
|
readonly name: "Aurora";
|
|
123
122
|
readonly nativeCurrency: "ETH";
|
|
124
|
-
readonly
|
|
123
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
124
|
+
readonly rpcUrls: ["https://aurora-rpc.publicnode.com", "https://1rpc.io/aurora", "https://mainnet.aurora.dev"];
|
|
125
125
|
readonly type: "evm";
|
|
126
126
|
} & {
|
|
127
127
|
chainIdHex: "0x4e454152";
|
|
128
128
|
}, {
|
|
129
129
|
readonly baseDecimal: 18;
|
|
130
|
-
readonly blockExplorerUrl: "https://berascan.com";
|
|
131
130
|
readonly blockTime: 2;
|
|
132
131
|
readonly chain: Chain.Berachain;
|
|
133
132
|
readonly chainId: ChainId.Berachain;
|
|
@@ -135,7 +134,8 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
135
134
|
readonly explorerUrl: "https://berascan.com";
|
|
136
135
|
readonly name: "Berachain";
|
|
137
136
|
readonly nativeCurrency: "BERA";
|
|
138
|
-
readonly
|
|
137
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
138
|
+
readonly rpcUrls: ["https://berachain-rpc.publicnode.com", "https://rpc.berachain.com", "https://berachain.drpc.org"];
|
|
139
139
|
readonly type: "evm";
|
|
140
140
|
} & {
|
|
141
141
|
chainIdHex: "0x138de";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../src/chains/evm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../src/chains/evm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AA6J1C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWlB,CAAC;AACX,eAAO,MAAM,SAAS,6KAWZ,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC"}
|