@swapkit/types 0.1.1 → 0.1.3
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 +1 -1
- package/dist/types/chains/_createChain.d.ts.map +1 -1
- package/dist/types/chains/_enums.d.ts +11 -120
- package/dist/types/chains/_enums.d.ts.map +1 -1
- package/dist/types/chains/cosmos.d.ts +57 -16
- package/dist/types/chains/cosmos.d.ts.map +1 -1
- package/dist/types/chains/evm.d.ts +10 -10
- package/dist/types/chains/index.d.ts +53 -34
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/chains/others.d.ts +5 -5
- package/dist/types/chains/substrate.d.ts +2 -2
- package/dist/types/chains/utxo.d.ts +6 -6
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ export declare enum Chain {
|
|
|
12
12
|
Dogecoin = "DOGE",
|
|
13
13
|
Ethereum = "ETH",
|
|
14
14
|
Gnosis = "GNO",
|
|
15
|
+
Harbor = "HARBOR",
|
|
15
16
|
Kujira = "KUJI",
|
|
16
17
|
Litecoin = "LTC",
|
|
17
18
|
Maya = "MAYA",
|
|
@@ -29,159 +30,49 @@ export declare enum Chain {
|
|
|
29
30
|
Zcash = "ZEC"
|
|
30
31
|
}
|
|
31
32
|
export declare enum StagenetChain {
|
|
33
|
+
Harbor = "MAYA_HARBOR",
|
|
32
34
|
THORChain = "THOR_STAGENET",
|
|
33
35
|
Maya = "MAYA_STAGENET"
|
|
34
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* ChainId enum - chain identifiers for different networks
|
|
39
|
+
*
|
|
40
|
+
* Note: Full-name properties (e.g., Arbitrum, Avalanche) will be discontinued in future versions.
|
|
41
|
+
* Please use the short-handle properties (e.g., ARB, AVAX) instead.
|
|
42
|
+
* The network configuration will be migrated to a more streamlined approach with one object per chain.
|
|
43
|
+
*/
|
|
35
44
|
export declare enum ChainId {
|
|
36
|
-
ARB = "42161",
|
|
37
|
-
AURORA = "1313161554",
|
|
38
|
-
AVAX = "43114",
|
|
39
|
-
BASE = "8453",
|
|
40
|
-
BERA = "80094",
|
|
41
|
-
BSC = "56",
|
|
42
|
-
BTC = "bitcoin",
|
|
43
|
-
BCH = "bitcoincash",
|
|
44
|
-
FLIP = "chainflip",
|
|
45
|
-
GAIA = "cosmoshub-4",
|
|
46
|
-
DASH = "dash",
|
|
47
|
-
DOGE = "dogecoin",
|
|
48
|
-
ETH = "1",
|
|
49
|
-
GNO = "100",
|
|
50
|
-
KUJI = "kaiyo-1",
|
|
51
|
-
LTC = "litecoin",
|
|
52
|
-
MAYA = "mayachain-mainnet-v1",
|
|
53
|
-
NEAR = "near",
|
|
54
|
-
NOBLE = "noble-1",
|
|
55
|
-
OP = "10",
|
|
56
|
-
DOT = "polkadot",
|
|
57
|
-
POL = "137",
|
|
58
|
-
XRD = "radix-mainnet",
|
|
59
|
-
XRP = "ripple",
|
|
60
|
-
THOR = "thorchain-1",
|
|
61
|
-
SOL = "solana",
|
|
62
|
-
TRON = "728126428",
|
|
63
|
-
ZEC = "zcash",
|
|
64
|
-
THOR_STAGENET = "thorchain-stagenet-v2",
|
|
65
|
-
MAYA_STAGENET = "mayachain-stagenet-v1",
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated use ChainId.ARB
|
|
68
|
-
*/
|
|
69
45
|
Arbitrum = "42161",
|
|
70
|
-
/**
|
|
71
|
-
* @deprecated use ChainId.AURORA
|
|
72
|
-
*/
|
|
73
46
|
Aurora = "1313161554",
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated use ChainId.AVAX
|
|
76
|
-
*/
|
|
77
47
|
Avalanche = "43114",
|
|
78
|
-
/**
|
|
79
|
-
* @deprecated use ChainId.BASE
|
|
80
|
-
*/
|
|
81
48
|
Base = "8453",
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated use ChainId.BERA
|
|
84
|
-
*/
|
|
85
49
|
Berachain = "80094",
|
|
86
|
-
/**
|
|
87
|
-
* @deprecated use ChainId.BSC
|
|
88
|
-
*/
|
|
89
50
|
BinanceSmartChain = "56",
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated use ChainId.BTC
|
|
92
|
-
*/
|
|
93
51
|
Bitcoin = "bitcoin",
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated use ChainId.BCH
|
|
96
|
-
*/
|
|
97
52
|
BitcoinCash = "bitcoincash",
|
|
98
|
-
/**
|
|
99
|
-
* @deprecated use ChainId.FLIP
|
|
100
|
-
*/
|
|
101
53
|
Chainflip = "chainflip",
|
|
102
|
-
/**
|
|
103
|
-
* @deprecated use ChainId.COSMOS
|
|
104
|
-
*/
|
|
105
54
|
Cosmos = "cosmoshub-4",
|
|
106
|
-
/**
|
|
107
|
-
* @deprecated use ChainId.DASH
|
|
108
|
-
*/
|
|
109
55
|
Dash = "dash",
|
|
110
|
-
/**
|
|
111
|
-
* @deprecated use ChainId.DOGE
|
|
112
|
-
*/
|
|
113
56
|
Dogecoin = "dogecoin",
|
|
114
|
-
/**
|
|
115
|
-
* @deprecated use ChainId.ETH
|
|
116
|
-
*/
|
|
117
57
|
Ethereum = "1",
|
|
118
|
-
/**
|
|
119
|
-
* @deprecated use ChainId.GNO
|
|
120
|
-
*/
|
|
121
58
|
Gnosis = "100",
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
*/
|
|
59
|
+
Harbor = "harbor-1",
|
|
60
|
+
HarborStagenet = "harbor-stagenet-1",
|
|
125
61
|
Kujira = "kaiyo-1",
|
|
126
|
-
/**
|
|
127
|
-
* @deprecated use ChainId.LTC
|
|
128
|
-
*/
|
|
129
62
|
Litecoin = "litecoin",
|
|
130
|
-
/**
|
|
131
|
-
* @deprecated use ChainId.MAYA
|
|
132
|
-
*/
|
|
133
63
|
Maya = "mayachain-mainnet-v1",
|
|
134
|
-
/**
|
|
135
|
-
* @deprecated use ChainId.MAYA_STAGENET
|
|
136
|
-
*/
|
|
137
64
|
MayaStagenet = "mayachain-stagenet-v1",
|
|
138
|
-
/**
|
|
139
|
-
* @deprecated use ChainId.NEAR
|
|
140
|
-
*/
|
|
141
65
|
Near = "near",
|
|
142
|
-
/**
|
|
143
|
-
* @deprecated use ChainId.NOBLE
|
|
144
|
-
*/
|
|
145
66
|
Noble = "noble-1",
|
|
146
|
-
/**
|
|
147
|
-
* @deprecated use ChainId.OP
|
|
148
|
-
*/
|
|
149
67
|
Optimism = "10",
|
|
150
|
-
/**
|
|
151
|
-
* @deprecated use ChainId.DOT
|
|
152
|
-
*/
|
|
153
68
|
Polkadot = "polkadot",
|
|
154
|
-
/**
|
|
155
|
-
* @deprecated use ChainId.POL
|
|
156
|
-
*/
|
|
157
69
|
Polygon = "137",
|
|
158
|
-
/**
|
|
159
|
-
* @deprecated use ChainId.XRD
|
|
160
|
-
*/
|
|
161
70
|
Radix = "radix-mainnet",
|
|
162
|
-
/**
|
|
163
|
-
* @deprecated use ChainId.XRP
|
|
164
|
-
*/
|
|
165
71
|
Ripple = "ripple",
|
|
166
|
-
/**
|
|
167
|
-
* @deprecated use ChainId.THOR
|
|
168
|
-
*/
|
|
169
72
|
THORChain = "thorchain-1",
|
|
170
|
-
/**
|
|
171
|
-
* @deprecated use ChainId.THOR_STAGENET
|
|
172
|
-
*/
|
|
173
73
|
THORChainStagenet = "thorchain-stagenet-v2",
|
|
174
|
-
/**
|
|
175
|
-
* @deprecated use ChainId.SOL
|
|
176
|
-
*/
|
|
177
74
|
Solana = "solana",
|
|
178
|
-
/**
|
|
179
|
-
* @deprecated use ChainId.TRON
|
|
180
|
-
*/
|
|
181
75
|
Tron = "728126428",
|
|
182
|
-
/**
|
|
183
|
-
* @deprecated use ChainId.ZEC
|
|
184
|
-
*/
|
|
185
76
|
Zcash = "zcash"
|
|
186
77
|
}
|
|
187
78
|
//# sourceMappingURL=_enums.d.ts.map
|
|
@@ -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,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,SAAS,kBAAkB;IAC3B,IAAI,kBAAkB;CACvB;AAED,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;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;IAGjB,QAAQ,UAAU;IAClB,MAAM,eAAe;IACrB,SAAS,UAAU;IACnB,IAAI,SAAS;IACb,SAAS,UAAU;IACnB,iBAAiB,OAAO;IACxB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,MAAM,gBAAgB;IACtB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,MAAM;IACd,MAAM,QAAQ;IACd,MAAM,aAAa;IACnB,cAAc,sBAAsB;IACpC,MAAM,YAAY;IAClB,QAAQ,aAAa;IACrB,IAAI,yBAAyB;IAC7B,YAAY,0BAA0B;IACtC,IAAI,SAAS;IACb,KAAK,YAAY;IACjB,QAAQ,OAAO;IACf,QAAQ,aAAa;IACrB,OAAO,QAAQ;IACf,KAAK,kBAAkB;IACvB,MAAM,WAAW;IACjB,SAAS,gBAAgB;IACzB,iBAAiB,0BAA0B;IAC3C,MAAM,WAAW;IACjB,IAAI,cAAc;IAClB,KAAK,UAAU;CAChB"}
|
|
@@ -4,7 +4,7 @@ export declare const GAIAConfig: {
|
|
|
4
4
|
readonly blockExplorerUrl: "https://www.mintscan.io/cosmos";
|
|
5
5
|
readonly blockTime: 2;
|
|
6
6
|
readonly chain: Chain.Cosmos;
|
|
7
|
-
readonly chainId: ChainId.
|
|
7
|
+
readonly chainId: ChainId.Cosmos;
|
|
8
8
|
readonly explorerUrl: "https://www.mintscan.io/cosmos";
|
|
9
9
|
readonly name: "Cosmos";
|
|
10
10
|
readonly nativeCurrency: "ATOM";
|
|
@@ -18,7 +18,7 @@ export declare const THORConfig: {
|
|
|
18
18
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
19
19
|
readonly blockTime: 6;
|
|
20
20
|
readonly chain: Chain.THORChain;
|
|
21
|
-
readonly chainId: ChainId.
|
|
21
|
+
readonly chainId: ChainId.THORChain;
|
|
22
22
|
readonly explorerUrl: "https://runescan.io";
|
|
23
23
|
readonly name: "THORChain";
|
|
24
24
|
readonly nativeCurrency: "RUNE";
|
|
@@ -32,7 +32,7 @@ export declare const StagenetTHORConfig: {
|
|
|
32
32
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
33
33
|
readonly blockTime: 6;
|
|
34
34
|
readonly chain: Chain.THORChain;
|
|
35
|
-
readonly chainId: ChainId.
|
|
35
|
+
readonly chainId: ChainId.THORChainStagenet;
|
|
36
36
|
readonly explorerUrl: "https://runescan.io";
|
|
37
37
|
readonly name: "THORChain";
|
|
38
38
|
readonly nativeCurrency: "RUNE";
|
|
@@ -46,7 +46,7 @@ export declare const MAYAConfig: {
|
|
|
46
46
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
47
47
|
readonly blockTime: 6;
|
|
48
48
|
readonly chain: Chain.Maya;
|
|
49
|
-
readonly chainId: ChainId.
|
|
49
|
+
readonly chainId: ChainId.Maya;
|
|
50
50
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
51
51
|
readonly name: "Maya";
|
|
52
52
|
readonly nativeCurrency: "CACAO";
|
|
@@ -55,12 +55,40 @@ export declare const MAYAConfig: {
|
|
|
55
55
|
} & {
|
|
56
56
|
chainIdHex: undefined;
|
|
57
57
|
};
|
|
58
|
+
export declare const HARBORConfig: {
|
|
59
|
+
readonly baseDecimal: 8;
|
|
60
|
+
readonly blockExplorerUrl: "";
|
|
61
|
+
readonly blockTime: 6;
|
|
62
|
+
readonly chain: Chain.Harbor;
|
|
63
|
+
readonly chainId: ChainId.Harbor;
|
|
64
|
+
readonly explorerUrl: "";
|
|
65
|
+
readonly name: "Harbor";
|
|
66
|
+
readonly nativeCurrency: "HRB";
|
|
67
|
+
readonly rpcUrl: "https://xnode.harbor-dev.xyz/xnode";
|
|
68
|
+
readonly type: "cosmos";
|
|
69
|
+
} & {
|
|
70
|
+
chainIdHex: undefined;
|
|
71
|
+
};
|
|
72
|
+
export declare const StagenetHARBORConfig: {
|
|
73
|
+
readonly baseDecimal: 8;
|
|
74
|
+
readonly blockExplorerUrl: "";
|
|
75
|
+
readonly blockTime: 6;
|
|
76
|
+
readonly chain: Chain.Harbor;
|
|
77
|
+
readonly chainId: ChainId.HarborStagenet;
|
|
78
|
+
readonly explorerUrl: "";
|
|
79
|
+
readonly name: "Harbor";
|
|
80
|
+
readonly nativeCurrency: "HRB";
|
|
81
|
+
readonly rpcUrl: "https://xnode.harbor-dev.xyz/xnode";
|
|
82
|
+
readonly type: "cosmos";
|
|
83
|
+
} & {
|
|
84
|
+
chainIdHex: undefined;
|
|
85
|
+
};
|
|
58
86
|
export declare const StagenetMAYAConfig: {
|
|
59
87
|
readonly baseDecimal: 8;
|
|
60
88
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
61
89
|
readonly blockTime: 6;
|
|
62
90
|
readonly chain: Chain.Maya;
|
|
63
|
-
readonly chainId: ChainId.
|
|
91
|
+
readonly chainId: ChainId.MayaStagenet;
|
|
64
92
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
65
93
|
readonly name: "Maya";
|
|
66
94
|
readonly nativeCurrency: "CACAO";
|
|
@@ -74,7 +102,7 @@ export declare const KUJIConfig: {
|
|
|
74
102
|
readonly blockExplorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
75
103
|
readonly blockTime: 2.2;
|
|
76
104
|
readonly chain: Chain.Kujira;
|
|
77
|
-
readonly chainId: ChainId.
|
|
105
|
+
readonly chainId: ChainId.Kujira;
|
|
78
106
|
readonly explorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
79
107
|
readonly name: "Kujira";
|
|
80
108
|
readonly nativeCurrency: "KUJI";
|
|
@@ -88,7 +116,7 @@ export declare const NOBLEConfig: {
|
|
|
88
116
|
readonly blockExplorerUrl: "https://www.mintscan.io/noble";
|
|
89
117
|
readonly blockTime: 1.3;
|
|
90
118
|
readonly chain: Chain.Noble;
|
|
91
|
-
readonly chainId: ChainId.
|
|
119
|
+
readonly chainId: ChainId.Noble;
|
|
92
120
|
readonly explorerUrl: "https://www.mintscan.io/noble";
|
|
93
121
|
readonly name: "Noble";
|
|
94
122
|
readonly nativeCurrency: "USDC";
|
|
@@ -102,7 +130,7 @@ export declare const CosmosChainConfigs: readonly [{
|
|
|
102
130
|
readonly blockExplorerUrl: "https://www.mintscan.io/cosmos";
|
|
103
131
|
readonly blockTime: 2;
|
|
104
132
|
readonly chain: Chain.Cosmos;
|
|
105
|
-
readonly chainId: ChainId.
|
|
133
|
+
readonly chainId: ChainId.Cosmos;
|
|
106
134
|
readonly explorerUrl: "https://www.mintscan.io/cosmos";
|
|
107
135
|
readonly name: "Cosmos";
|
|
108
136
|
readonly nativeCurrency: "ATOM";
|
|
@@ -115,7 +143,7 @@ export declare const CosmosChainConfigs: readonly [{
|
|
|
115
143
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
116
144
|
readonly blockTime: 6;
|
|
117
145
|
readonly chain: Chain.THORChain;
|
|
118
|
-
readonly chainId: ChainId.
|
|
146
|
+
readonly chainId: ChainId.THORChain;
|
|
119
147
|
readonly explorerUrl: "https://runescan.io";
|
|
120
148
|
readonly name: "THORChain";
|
|
121
149
|
readonly nativeCurrency: "RUNE";
|
|
@@ -128,7 +156,7 @@ export declare const CosmosChainConfigs: readonly [{
|
|
|
128
156
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
129
157
|
readonly blockTime: 6;
|
|
130
158
|
readonly chain: Chain.Maya;
|
|
131
|
-
readonly chainId: ChainId.
|
|
159
|
+
readonly chainId: ChainId.Maya;
|
|
132
160
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
133
161
|
readonly name: "Maya";
|
|
134
162
|
readonly nativeCurrency: "CACAO";
|
|
@@ -141,7 +169,7 @@ export declare const CosmosChainConfigs: readonly [{
|
|
|
141
169
|
readonly blockExplorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
142
170
|
readonly blockTime: 2.2;
|
|
143
171
|
readonly chain: Chain.Kujira;
|
|
144
|
-
readonly chainId: ChainId.
|
|
172
|
+
readonly chainId: ChainId.Kujira;
|
|
145
173
|
readonly explorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
146
174
|
readonly name: "Kujira";
|
|
147
175
|
readonly nativeCurrency: "KUJI";
|
|
@@ -154,7 +182,7 @@ export declare const CosmosChainConfigs: readonly [{
|
|
|
154
182
|
readonly blockExplorerUrl: "https://www.mintscan.io/noble";
|
|
155
183
|
readonly blockTime: 1.3;
|
|
156
184
|
readonly chain: Chain.Noble;
|
|
157
|
-
readonly chainId: ChainId.
|
|
185
|
+
readonly chainId: ChainId.Noble;
|
|
158
186
|
readonly explorerUrl: "https://www.mintscan.io/noble";
|
|
159
187
|
readonly name: "Noble";
|
|
160
188
|
readonly nativeCurrency: "USDC";
|
|
@@ -162,15 +190,28 @@ export declare const CosmosChainConfigs: readonly [{
|
|
|
162
190
|
readonly type: "cosmos";
|
|
163
191
|
} & {
|
|
164
192
|
chainIdHex: undefined;
|
|
193
|
+
}, {
|
|
194
|
+
readonly baseDecimal: 8;
|
|
195
|
+
readonly blockExplorerUrl: "";
|
|
196
|
+
readonly blockTime: 6;
|
|
197
|
+
readonly chain: Chain.Harbor;
|
|
198
|
+
readonly chainId: ChainId.Harbor;
|
|
199
|
+
readonly explorerUrl: "";
|
|
200
|
+
readonly name: "Harbor";
|
|
201
|
+
readonly nativeCurrency: "HRB";
|
|
202
|
+
readonly rpcUrl: "https://xnode.harbor-dev.xyz/xnode";
|
|
203
|
+
readonly type: "cosmos";
|
|
204
|
+
} & {
|
|
205
|
+
chainIdHex: undefined;
|
|
165
206
|
}];
|
|
166
|
-
export declare const CosmosChains: readonly [Chain.Cosmos, Chain.Kujira, Chain.Maya, Chain.Noble, Chain.THORChain];
|
|
207
|
+
export declare const CosmosChains: readonly [Chain.Cosmos, Chain.Kujira, Chain.Maya, Chain.Noble, Chain.THORChain, Chain.Harbor];
|
|
167
208
|
export type CosmosChain = (typeof CosmosChains)[number];
|
|
168
209
|
export declare const StagenetCosmosChainConfigs: readonly [{
|
|
169
210
|
readonly baseDecimal: 8;
|
|
170
211
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
171
212
|
readonly blockTime: 6;
|
|
172
213
|
readonly chain: Chain.THORChain;
|
|
173
|
-
readonly chainId: ChainId.
|
|
214
|
+
readonly chainId: ChainId.THORChainStagenet;
|
|
174
215
|
readonly explorerUrl: "https://runescan.io";
|
|
175
216
|
readonly name: "THORChain";
|
|
176
217
|
readonly nativeCurrency: "RUNE";
|
|
@@ -183,7 +224,7 @@ export declare const StagenetCosmosChainConfigs: readonly [{
|
|
|
183
224
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
184
225
|
readonly blockTime: 6;
|
|
185
226
|
readonly chain: Chain.Maya;
|
|
186
|
-
readonly chainId: ChainId.
|
|
227
|
+
readonly chainId: ChainId.MayaStagenet;
|
|
187
228
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
188
229
|
readonly name: "Maya";
|
|
189
230
|
readonly nativeCurrency: "CACAO";
|
|
@@ -192,7 +233,7 @@ export declare const StagenetCosmosChainConfigs: readonly [{
|
|
|
192
233
|
} & {
|
|
193
234
|
chainIdHex: undefined;
|
|
194
235
|
}];
|
|
195
|
-
export declare const StagenetCosmosChains: readonly [StagenetChain.Maya, StagenetChain.THORChain];
|
|
236
|
+
export declare const StagenetCosmosChains: readonly [StagenetChain.Maya, StagenetChain.THORChain, StagenetChain.Harbor];
|
|
196
237
|
export type StagenetCosmosChain = (typeof StagenetCosmosChains)[number];
|
|
197
238
|
export declare const CosmosChainPrefixes: Record<CosmosChain, string>;
|
|
198
239
|
export declare const TCLikeChains: readonly [Chain.THORChain, Chain.Maya];
|
|
@@ -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;;;;;;;;;;;;;CAWrB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAWrB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAW7B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAWrB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAW7B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAWrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAWtB,CAAC;AAEH,eAAO,MAAM,kBAAkB
|
|
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;;;;;;;;;;;;;CAWrB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAWrB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAW7B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAWrB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAWvB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAW/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAW7B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAWrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAWtB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuF,CAAC;AACvH,eAAO,MAAM,YAAY,+FAOf,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoD,CAAC;AAC5F,eAAO,MAAM,oBAAoB,8EAA+E,CAAC;AACjH,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAO3D,CAAC;AAEF,eAAO,MAAM,YAAY,wCAAgD,CAAC;AAC1E,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -4,7 +4,7 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
4
4
|
readonly blockExplorerUrl: "https://etherscan.io";
|
|
5
5
|
readonly blockTime: 12.5;
|
|
6
6
|
readonly chain: Chain.Ethereum;
|
|
7
|
-
readonly chainId: ChainId.
|
|
7
|
+
readonly chainId: ChainId.Ethereum;
|
|
8
8
|
readonly chainIdHex: "0x1";
|
|
9
9
|
readonly explorerUrl: "https://etherscan.io";
|
|
10
10
|
readonly name: "Ethereum";
|
|
@@ -18,7 +18,7 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
18
18
|
readonly blockExplorerUrl: "https://bscscan.com";
|
|
19
19
|
readonly blockTime: 3;
|
|
20
20
|
readonly chain: Chain.BinanceSmartChain;
|
|
21
|
-
readonly chainId: ChainId.
|
|
21
|
+
readonly chainId: ChainId.BinanceSmartChain;
|
|
22
22
|
readonly chainIdHex: "0x38";
|
|
23
23
|
readonly explorerUrl: "https://bscscan.com";
|
|
24
24
|
readonly name: "BinanceSmartChain";
|
|
@@ -32,7 +32,7 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
32
32
|
readonly blockExplorerUrl: "https://snowtrace.io";
|
|
33
33
|
readonly blockTime: 3;
|
|
34
34
|
readonly chain: Chain.Avalanche;
|
|
35
|
-
readonly chainId: ChainId.
|
|
35
|
+
readonly chainId: ChainId.Avalanche;
|
|
36
36
|
readonly chainIdHex: "0xa86a";
|
|
37
37
|
readonly explorerUrl: "https://snowtrace.io";
|
|
38
38
|
readonly name: "Avalanche";
|
|
@@ -46,7 +46,7 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
46
46
|
readonly blockExplorerUrl: "https://polygonscan.com";
|
|
47
47
|
readonly blockTime: 2.1;
|
|
48
48
|
readonly chain: Chain.Polygon;
|
|
49
|
-
readonly chainId: ChainId.
|
|
49
|
+
readonly chainId: ChainId.Polygon;
|
|
50
50
|
readonly chainIdHex: "0x89";
|
|
51
51
|
readonly explorerUrl: "https://polygonscan.com";
|
|
52
52
|
readonly name: "Polygon";
|
|
@@ -60,7 +60,7 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
60
60
|
readonly blockExplorerUrl: "https://arbiscan.io";
|
|
61
61
|
readonly blockTime: 0.3;
|
|
62
62
|
readonly chain: Chain.Arbitrum;
|
|
63
|
-
readonly chainId: ChainId.
|
|
63
|
+
readonly chainId: ChainId.Arbitrum;
|
|
64
64
|
readonly chainIdHex: "0xa4b1";
|
|
65
65
|
readonly explorerUrl: "https://arbiscan.io";
|
|
66
66
|
readonly name: "Arbitrum";
|
|
@@ -74,7 +74,7 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
74
74
|
readonly blockExplorerUrl: "https://optimistic.etherscan.io";
|
|
75
75
|
readonly blockTime: 2;
|
|
76
76
|
readonly chain: Chain.Optimism;
|
|
77
|
-
readonly chainId: ChainId.
|
|
77
|
+
readonly chainId: ChainId.Optimism;
|
|
78
78
|
readonly chainIdHex: "0xa";
|
|
79
79
|
readonly explorerUrl: "https://optimistic.etherscan.io";
|
|
80
80
|
readonly name: "Optimism";
|
|
@@ -88,7 +88,7 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
88
88
|
readonly blockExplorerUrl: "https://basescan.org";
|
|
89
89
|
readonly blockTime: 2;
|
|
90
90
|
readonly chain: Chain.Base;
|
|
91
|
-
readonly chainId: ChainId.
|
|
91
|
+
readonly chainId: ChainId.Base;
|
|
92
92
|
readonly chainIdHex: "0x2105";
|
|
93
93
|
readonly explorerUrl: "https://basescan.org";
|
|
94
94
|
readonly name: "Base";
|
|
@@ -102,7 +102,7 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
102
102
|
readonly blockExplorerUrl: "https://gnosisscan.io";
|
|
103
103
|
readonly blockTime: 5.2;
|
|
104
104
|
readonly chain: Chain.Gnosis;
|
|
105
|
-
readonly chainId: ChainId.
|
|
105
|
+
readonly chainId: ChainId.Gnosis;
|
|
106
106
|
readonly chainIdHex: "0x64";
|
|
107
107
|
readonly explorerUrl: "https://gnosisscan.io";
|
|
108
108
|
readonly name: "Gnosis";
|
|
@@ -116,7 +116,7 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
116
116
|
readonly blockExplorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
117
117
|
readonly blockTime: 1;
|
|
118
118
|
readonly chain: Chain.Aurora;
|
|
119
|
-
readonly chainId: ChainId.
|
|
119
|
+
readonly chainId: ChainId.Aurora;
|
|
120
120
|
readonly chainIdHex: "0x4e454152";
|
|
121
121
|
readonly explorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
122
122
|
readonly name: "Aurora";
|
|
@@ -130,7 +130,7 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
130
130
|
readonly blockExplorerUrl: "https://berascan.com";
|
|
131
131
|
readonly blockTime: 2;
|
|
132
132
|
readonly chain: Chain.Berachain;
|
|
133
|
-
readonly chainId: ChainId.
|
|
133
|
+
readonly chainId: ChainId.Berachain;
|
|
134
134
|
readonly chainIdHex: "0x138de";
|
|
135
135
|
readonly explorerUrl: "https://berascan.com";
|
|
136
136
|
readonly name: "Berachain";
|