@tria-sdk/constants 1.0.22 → 1.0.24

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.mjs ADDED
@@ -0,0 +1,35 @@
1
+ import { isAaSupportedChain as a, isChainSupported as n, isEvmChain as r, isTestnetChain as t, prodApiUrl as i } from "./src/config.mjs";
2
+ import { AA_SUPPORTED_EVM_CHAINS as s, ALLCHAINS as A, SUPPORTED_EVM_CHAINS as p, TESTNET_CHAINS as E, bitlayerTestnet as C, chainNameToLogo as h, chainNameToLogoBlack as l, neoxTestnet as L, networks as S, polygonAmoy as _, sepolia as m, zkLink as N, zkLinkTestnet as I } from "./src/chains.mjs";
3
+ import { chainIdToChainName as x, chainNameToChainId as U, explorerBaseUrls as c, nativeTokenDetails as d, rpcUrls as y, txnBaseUrl as H } from "./src/txn.mjs";
4
+ import { TRIA_WALLET_SELECTED_CHAIN as f, TRIA_WALLET_STORE as g, eventTypes as D, storageKeys as P, triaAuthUrl as u } from "./src/connect.mjs";
5
+ export {
6
+ s as AA_SUPPORTED_EVM_CHAINS,
7
+ A as ALLCHAINS,
8
+ p as SUPPORTED_EVM_CHAINS,
9
+ E as TESTNET_CHAINS,
10
+ f as TRIA_WALLET_SELECTED_CHAIN,
11
+ g as TRIA_WALLET_STORE,
12
+ C as bitlayerTestnet,
13
+ x as chainIdToChainName,
14
+ U as chainNameToChainId,
15
+ h as chainNameToLogo,
16
+ l as chainNameToLogoBlack,
17
+ D as eventTypes,
18
+ c as explorerBaseUrls,
19
+ a as isAaSupportedChain,
20
+ n as isChainSupported,
21
+ r as isEvmChain,
22
+ t as isTestnetChain,
23
+ d as nativeTokenDetails,
24
+ L as neoxTestnet,
25
+ S as networks,
26
+ _ as polygonAmoy,
27
+ i as prodApiUrl,
28
+ y as rpcUrls,
29
+ m as sepolia,
30
+ P as storageKeys,
31
+ u as triaAuthUrl,
32
+ H as txnBaseUrl,
33
+ N as zkLink,
34
+ I as zkLinkTestnet
35
+ };
@@ -1,15 +1,22 @@
1
+ export declare const mumbai = "MUMBAI";
2
+ export declare const polygon = "POLYGON";
3
+ export declare const ethereum = "ETH";
4
+ export declare const fuse = "FUSE";
5
+ export declare const fuseSpark = "FUSESPARK";
1
6
  export declare const zkLink: string;
2
7
  export declare const zkLinkTestnet: string;
3
8
  export declare const bitlayerTestnet: string;
4
9
  export declare const neoxTestnet: string;
5
10
  export declare const sepolia: string;
6
11
  export declare const polygonAmoy: string;
12
+ export declare const vanarTestnet: string;
7
13
  export type ZKLINK = "ZKLINK-NOVA";
8
14
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
9
15
  export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
10
16
  export type NEOX_TESTNET = "NEOX-TESTNET";
11
17
  export type SEPOLIA = "SEPOLIA";
12
18
  export type AMOY = "AMOY";
19
+ export type VANGUARD_VANAR_TESTNET = "VANGUARD-VANAR-TESTNET";
13
20
  export declare const TESTNET_CHAINS: string[];
14
21
  export declare const SUPPORTED_EVM_CHAINS: string[];
15
22
  export declare const AA_SUPPORTED_EVM_CHAINS: string[];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../src/chains.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,EAAE,MAAsB,CAAC;AAC5C,eAAO,MAAM,aAAa,EAAE,MAA8B,CAAC;AAC3D,eAAO,MAAM,eAAe,EAAE,MAA2B,CAAC;AAC1D,eAAO,MAAM,WAAW,EAAE,MAAuB,CAAC;AAClD,eAAO,MAAM,OAAO,EAAE,MAAkB,CAAC;AACzC,eAAO,MAAM,WAAW,EAAE,MAAe,CAAC;AAE1C,MAAM,MAAM,MAAM,GAAG,aAAa,CAAC;AACnC,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACnD,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAClD,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC;AAC1C,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC;AAChC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAE1B,eAAO,MAAM,cAAc,UAW1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAuBhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAWnC,CAAC;AAEF,eAAO,MAAM,SAAS,UAwBrB,CAAC;AAKF,eAAO,MAAM,QAAQ;;;;GAwHpB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAyB3B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;CAyBhC,CAAC"}
@@ -1,9 +1,15 @@
1
+ export const mumbai = "MUMBAI";
2
+ export const polygon = "POLYGON";
3
+ export const ethereum = "ETH";
4
+ export const fuse = "FUSE";
5
+ export const fuseSpark = "FUSESPARK";
1
6
  export const zkLink = "ZKLINK-NOVA";
2
7
  export const zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
3
8
  export const bitlayerTestnet = "BITLAYER-TESTNET";
4
9
  export const neoxTestnet = "NEOX-TESTNET";
5
10
  export const sepolia = "SEPOLIA";
6
11
  export const polygonAmoy = "AMOY";
12
+ export const vanarTestnet = "VANGUARD-VANAR-TESTNET";
7
13
  export const TESTNET_CHAINS = [
8
14
  "MUMBAI",
9
15
  "FUSESPARK",
@@ -15,6 +21,7 @@ export const TESTNET_CHAINS = [
15
21
  neoxTestnet,
16
22
  sepolia,
17
23
  polygonAmoy,
24
+ vanarTestnet,
18
25
  ];
19
26
  export const SUPPORTED_EVM_CHAINS = [
20
27
  "ETH",
@@ -39,6 +46,7 @@ export const SUPPORTED_EVM_CHAINS = [
39
46
  neoxTestnet,
40
47
  sepolia,
41
48
  polygonAmoy,
49
+ vanarTestnet,
42
50
  ];
43
51
  export const AA_SUPPORTED_EVM_CHAINS = [
44
52
  // "ETH",
@@ -76,6 +84,7 @@ export const ALLCHAINS = [
76
84
  neoxTestnet,
77
85
  sepolia,
78
86
  polygonAmoy,
87
+ vanarTestnet,
79
88
  ];
80
89
  const baseLogoUrl = "https://static.tria.so/chain-logo-w";
81
90
  const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
@@ -199,6 +208,11 @@ export const networks = [
199
208
  logo: `${baseLogoUrl}/Neo.webp`,
200
209
  type: "testnet",
201
210
  },
211
+ {
212
+ chainName: vanarTestnet,
213
+ logo: `${baseLogoUrl}/Vanguard.webp`,
214
+ type: "testnet",
215
+ },
202
216
  ];
203
217
  export const chainNameToLogo = {
204
218
  ETH: `${baseLogoUrl}/Ethereum.webp`,
@@ -225,6 +239,7 @@ export const chainNameToLogo = {
225
239
  [zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
226
240
  [bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
227
241
  [neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
242
+ [vanarTestnet]: `${baseLogoUrl}/Vanguard.webp`,
228
243
  };
229
244
  export const chainNameToLogoBlack = {
230
245
  ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
@@ -251,4 +266,5 @@ export const chainNameToLogoBlack = {
251
266
  [zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
252
267
  [bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
253
268
  [neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
269
+ [vanarTestnet]: `${baseLogoUrlBlack}/Vanguard.png`,
254
270
  };
@@ -0,0 +1,255 @@
1
+ const E = "ZKLINK-NOVA", T = "ZKLINK-NOVA-TESTNET", a = "BITLAYER-TESTNET", N = "NEOX-TESTNET", n = "SEPOLIA", o = "AMOY", A = [
2
+ "MUMBAI",
3
+ "FUSESPARK",
4
+ "MANTA-TESTNET",
5
+ "METIS-TESTNET",
6
+ "MANTLE-TESTNET",
7
+ T,
8
+ a,
9
+ N,
10
+ n,
11
+ o
12
+ ], p = [
13
+ "ETH",
14
+ "POLYGON",
15
+ "AVALANCHE",
16
+ "ARBITRUM",
17
+ "BINANCE",
18
+ "OPTIMISM",
19
+ "FANTOM",
20
+ "FUSE",
21
+ "FUSESPARK",
22
+ "MUMBAI",
23
+ "MANTA",
24
+ "MANTA-TESTNET",
25
+ "METIS",
26
+ "METIS-TESTNET",
27
+ "MANTLE",
28
+ "MANTLE-TESTNET",
29
+ E,
30
+ T,
31
+ a,
32
+ N,
33
+ n,
34
+ o
35
+ ], M = [
36
+ // "ETH",
37
+ "POLYGON",
38
+ // "AVALANCHE",
39
+ // "ARBITRUM",
40
+ // "BINANCE",
41
+ // "OPTIMISM",
42
+ "FUSE",
43
+ "MUMBAI",
44
+ // "MANTLE",
45
+ n
46
+ ], i = [
47
+ "ETH",
48
+ "POLYGON",
49
+ "AVALANCHE",
50
+ "ARBITRUM",
51
+ "BINANCE",
52
+ "OPTIMISM",
53
+ "FANTOM",
54
+ "FUSE",
55
+ "FUSESPARK",
56
+ "MUMBAI",
57
+ "MANTA",
58
+ "MANTA-TESTNET",
59
+ "METIS",
60
+ "METIS-TESTNET",
61
+ "MANTLE",
62
+ "MANTLE-TESTNET",
63
+ "SOLANA",
64
+ E,
65
+ T,
66
+ a,
67
+ N,
68
+ n,
69
+ o
70
+ ], e = "https://static.tria.so/chain-logo-w", t = "https://static.tria.so/chain-logo-b", b = [
71
+ {
72
+ chainName: "ETH",
73
+ logo: `${e}/Ethereum.webp`,
74
+ type: "mainnet"
75
+ },
76
+ {
77
+ chainName: n,
78
+ logo: `${e}/Ethereum.webp`,
79
+ type: "testnet"
80
+ },
81
+ {
82
+ chainName: "FANTOM",
83
+ logo: `${e}/Fantom.webp`,
84
+ type: "mainnet"
85
+ },
86
+ {
87
+ chainName: "POLYGON",
88
+ logo: `${e}/Polygon.svg`,
89
+ type: "mainnet"
90
+ },
91
+ {
92
+ chainName: o,
93
+ logo: `${e}/Polygon.svg`,
94
+ type: "testnet"
95
+ },
96
+ {
97
+ chainName: "AVALANCHE",
98
+ logo: `${e}/Avalanche.webp`,
99
+ type: "mainnet"
100
+ },
101
+ {
102
+ chainName: "OPTIMISM",
103
+ logo: `${e}/Optimism.webp`,
104
+ type: "mainnet"
105
+ },
106
+ {
107
+ chainName: "ARBITRUM",
108
+ logo: `${e}/Arbitrum.webp`,
109
+ type: "mainnet"
110
+ },
111
+ {
112
+ chainName: "FUSE",
113
+ logo: `${e}/Fuse.webp`,
114
+ type: "mainnet"
115
+ },
116
+ {
117
+ chainName: "FUSESPARK",
118
+ logo: `${e}/Fuse.webp`,
119
+ type: "testnet"
120
+ },
121
+ {
122
+ chainName: "MUMBAI",
123
+ logo: `${e}/Polygon.svg`,
124
+ type: "testnet"
125
+ },
126
+ {
127
+ chainName: "BINANCE",
128
+ logo: `${e}/Binance.svg`,
129
+ type: "mainnet"
130
+ },
131
+ // {
132
+ // chainName: 'LINEA',
133
+ // logo: `${baseLogoUrl}/Linea.svg`,
134
+ // },
135
+ {
136
+ chainName: "METIS",
137
+ logo: `${e}/Metis.webp`,
138
+ type: "mainnet"
139
+ },
140
+ {
141
+ chainName: "METIS-TESTNET",
142
+ logo: `${e}/Metis.webp`,
143
+ type: "testnet"
144
+ },
145
+ {
146
+ chainName: "MANTA",
147
+ logo: `${e}/Manta.webp`,
148
+ type: "mainnet"
149
+ },
150
+ {
151
+ chainName: "MANTA-TESTNET",
152
+ logo: `${e}/Manta.webp`,
153
+ type: "testnet"
154
+ },
155
+ {
156
+ chainName: "MANTLE",
157
+ logo: `${e}/Mantle.webp`,
158
+ type: "mainnet"
159
+ },
160
+ {
161
+ chainName: "MANTLE-TESTNET",
162
+ logo: `${e}/Mantle.webp`,
163
+ type: "testnet"
164
+ },
165
+ {
166
+ chainName: "SOLANA",
167
+ logo: `${e}/Solana.webp`,
168
+ type: "mainnet"
169
+ },
170
+ {
171
+ chainName: E,
172
+ logo: `${e}/zklink.webp`,
173
+ type: "mainnet"
174
+ },
175
+ {
176
+ chainName: T,
177
+ logo: `${e}/zklink.webp`,
178
+ type: "testnet"
179
+ },
180
+ {
181
+ chainName: a,
182
+ logo: `${e}/bitlayer.webp`,
183
+ type: "testnet"
184
+ },
185
+ {
186
+ chainName: N,
187
+ logo: `${e}/Neo.webp`,
188
+ type: "testnet"
189
+ }
190
+ ], $ = {
191
+ ETH: `${e}/Ethereum.webp`,
192
+ [n]: `${e}/Ethereum.webp`,
193
+ FANTOM: `${e}/Fantom.webp`,
194
+ POLYGON: `${e}/Polygon.webp`,
195
+ [o]: `${e}/Polygon.webp`,
196
+ AVALANCHE: `${e}/Avalanche.webp`,
197
+ OPTIMISM: `${e}/Optimism.webp`,
198
+ ARBITRUM: `${e}/Arbitrum.webp`,
199
+ LINEA: `${e}/Linea.webp`,
200
+ MUMBAI: `${e}/Polygon.webp`,
201
+ FUSE: `${e}/Fuse.webp`,
202
+ FUSESPARK: `${e}/Fuse.webp`,
203
+ BINANCE: `${e}/Binance.svg`,
204
+ MANTA: `${e}/Manta.webp`,
205
+ "MANTA-TESTNET": `${e}/Manta.webp`,
206
+ METIS: `${e}/Metis.webp`,
207
+ "METIS-TESTNET": `${e}/Metis.webp`,
208
+ MANTLE: `${e}/Mantle.webp`,
209
+ "MANTLE-TESTNET": `${e}/Mantle.webp`,
210
+ SOLANA: `${e}/Solana.webp`,
211
+ [E]: `${e}/zklink.webp`,
212
+ [T]: `${e}/zklink.webp`,
213
+ [a]: `${e}/bitlayer.webp`,
214
+ [N]: `${e}/Neo.webp`
215
+ }, S = {
216
+ ETH: `${t}/Ethereum.webp`,
217
+ [n]: `${t}/Ethereum.webp`,
218
+ BINANCE: `${t}/binance.webp`,
219
+ FANTOM: `${t}/Fantom.webp`,
220
+ POLYGON: `${t}/Polygon.webp`,
221
+ [o]: `${t}/Polygon.webp`,
222
+ AVALANCHE: `${t}/Avalanche.webp`,
223
+ OPTIMISM: `${t}/Optimism.webp`,
224
+ ARBITRUM: `${t}/Arbitrum.webp`,
225
+ LINEA: `${t}/Linea.webp`,
226
+ MUMBAI: `${t}/Polygon.webp`,
227
+ FUSE: `${t}/fuse.webp`,
228
+ FUSESPARK: `${t}/fuse.webp`,
229
+ MANTA: `${t}/Manta.webp`,
230
+ "MANTA-TESTNET": `${t}/Manta.webp`,
231
+ METIS: `${t}/Metis.webp`,
232
+ "METIS-TESTNET": `${t}/Metis.webp`,
233
+ MANTLE: `${t}/Mantle.webp`,
234
+ "MANTLE-TESTNET": `${t}/Mantle.webp`,
235
+ SOLANA: `${t}/Solana.webp`,
236
+ [E]: `${t}/zklink.webp`,
237
+ [T]: `${t}/zklink.webp`,
238
+ [a]: `${t}/bitlayer.webp`,
239
+ [N]: `${t}/Neo.png`
240
+ };
241
+ export {
242
+ M as AA_SUPPORTED_EVM_CHAINS,
243
+ i as ALLCHAINS,
244
+ p as SUPPORTED_EVM_CHAINS,
245
+ A as TESTNET_CHAINS,
246
+ a as bitlayerTestnet,
247
+ $ as chainNameToLogo,
248
+ S as chainNameToLogoBlack,
249
+ N as neoxTestnet,
250
+ b as networks,
251
+ o as polygonAmoy,
252
+ n as sepolia,
253
+ E as zkLink,
254
+ T as zkLinkTestnet
255
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU,yBAAyB,CAAC;AAEjD,eAAO,MAAM,UAAU,cAAe,MAAM,YAE3C,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,YAEnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,cAAe,MAAM,YAEjD,CAAC;AAEF,eAAO,MAAM,cAAc,cAAe,MAAM,YAE/C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { SUPPORTED_EVM_CHAINS as t, AA_SUPPORTED_EVM_CHAINS as r, ALLCHAINS as s, TESTNET_CHAINS as i } from "./chains.mjs";
2
+ const o = "https://prod.tria.so", p = (n) => t.includes(n), u = (n) => r.includes(n), c = (n) => s.includes(n), A = (n) => i.includes(n);
3
+ export {
4
+ u as isAaSupportedChain,
5
+ c as isChainSupported,
6
+ p as isEvmChain,
7
+ A as isTestnetChain,
8
+ o as prodApiUrl
9
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/connect.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAgBtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AACtE,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AACF,eAAO,MAAM,WAAW,yBAAyB,CAAC"}
@@ -0,0 +1,28 @@
1
+ const e = {
2
+ logIn: "Log in",
3
+ triaSignUp: "Tria Sign up",
4
+ emailPwSignUp: "Email Pwd Sign up",
5
+ socialSignUp: "Social Sign up",
6
+ signMessage: "Sign Message",
7
+ send: "Send",
8
+ disconnect: "Disconnect",
9
+ switchChain: "Switch chain",
10
+ detected: "Detected Logged in Tria account",
11
+ logout: "Logout",
12
+ passMessage: "Pass Message",
13
+ accessToken: "Access Token Pass",
14
+ idTokenPass: "Id Token Pass",
15
+ saveToAuth: "Save to Auth Iframe",
16
+ triaStoreSet: "triaStoreSet"
17
+ }, t = "tria.wallet.store", s = "tria.wallet.selectedChain", a = {
18
+ TRIA_WALLET_STORE: "tria.wallet.store",
19
+ TRIA_WALLET_SELECTED_CHAIN: "tria.wallet.selectedChain",
20
+ PERSIST_ROOT: "persist:root"
21
+ }, i = "https://auth.tria.so";
22
+ export {
23
+ s as TRIA_WALLET_SELECTED_CHAIN,
24
+ t as TRIA_WALLET_STORE,
25
+ e as eventTypes,
26
+ a as storageKeys,
27
+ i as triaAuthUrl
28
+ };
package/dist/src/txn.d.ts CHANGED
@@ -193,4 +193,5 @@ export declare const chainIdToChainName: {
193
193
  810182: string;
194
194
  200810: string;
195
195
  12227330: string;
196
+ 78600: string;
196
197
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"txn.d.ts","sourceRoot":"","sources":["../../src/txn.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;CA2B5B,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;CAuBtB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6H9B,CAAC;AAIF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAuBnB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;CAuB9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;CAuB9B,CAAC"}
package/dist/src/txn.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bitlayerTestnet, neoxTestnet, polygonAmoy, sepolia, zkLink, zkLinkTestnet, } from "./chains";
1
+ import { bitlayerTestnet, neoxTestnet, polygonAmoy, sepolia, zkLink, zkLinkTestnet, vanarTestnet, } from "./chains";
2
2
  export const explorerBaseUrls = {
3
3
  ETH: "https://etherscan.io",
4
4
  [sepolia]: "https://sepolia.etherscan.io",
@@ -26,6 +26,7 @@ export const explorerBaseUrls = {
26
26
  [zkLinkTestnet]: "https://goerli.explorer.zklink.io",
27
27
  [bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
28
28
  [neoxTestnet]: "https://xt2scan.ngd.network",
29
+ [vanarTestnet]: "https://explorer-vanguard.vanarchain.com",
29
30
  };
30
31
  export const txnBaseUrl = {
31
32
  ETH: `${explorerBaseUrls.ETH}/tx`, // /txHash
@@ -50,6 +51,7 @@ export const txnBaseUrl = {
50
51
  [zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
51
52
  [bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
52
53
  [neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
54
+ [vanarTestnet]: `${explorerBaseUrls[vanarTestnet]}/tx`,
53
55
  };
54
56
  export const nativeTokenDetails = {
55
57
  ETH: {
@@ -167,6 +169,11 @@ export const nativeTokenDetails = {
167
169
  symbol: "GAS",
168
170
  logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
169
171
  },
172
+ [vanarTestnet]: {
173
+ name: "Vanry",
174
+ symbol: "VANRY",
175
+ logoUrl: "https://explorer-vanguard.vanarchain.com/assets/network_icon_dark.svg",
176
+ },
170
177
  };
171
178
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
172
179
  export const rpcUrls = {
@@ -192,6 +199,7 @@ export const rpcUrls = {
192
199
  [zkLinkTestnet]: "https://goerli.rpc.zklink.io",
193
200
  [bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
194
201
  [neoxTestnet]: "https://neoxseed1.ngd.network",
202
+ [vanarTestnet]: "https://rpc-vanguard.vanarchain.com",
195
203
  };
196
204
  export const chainNameToChainId = {
197
205
  MUMBAI: 80001,
@@ -216,6 +224,7 @@ export const chainNameToChainId = {
216
224
  [zkLinkTestnet]: 810182,
217
225
  [bitlayerTestnet]: 200810,
218
226
  [neoxTestnet]: 12227330,
227
+ [vanarTestnet]: 78600,
219
228
  };
220
229
  export const chainIdToChainName = {
221
230
  80001: "MUMBAI",
@@ -240,4 +249,5 @@ export const chainIdToChainName = {
240
249
  810182: zkLinkTestnet,
241
250
  200810: bitlayerTestnet,
242
251
  12227330: neoxTestnet,
252
+ 78600: vanarTestnet,
243
253
  };
@@ -0,0 +1,248 @@
1
+ import { sepolia as o, polygonAmoy as s, zkLink as e, zkLinkTestnet as a, bitlayerTestnet as n, neoxTestnet as T } from "./chains.mjs";
2
+ const t = {
3
+ ETH: "https://etherscan.io",
4
+ [o]: "https://sepolia.etherscan.io",
5
+ POLYGON: "https://polygonscan.com",
6
+ [s]: "https://www.oklink.com/amoy",
7
+ AVALANCHE: "https://snowtrace.io",
8
+ ARBITRUM: "https://arbiscan.io",
9
+ BINANCE: "https://bscscan.com",
10
+ OPTIMISM: "https://optimistic.etherscan.io",
11
+ FANTOM: "https://ftmscan.com",
12
+ SOLANA: "https://solscan.io",
13
+ APTOS: "https://explorer.aptoslabs.com",
14
+ NEO: "https://neo3.neotube.io",
15
+ SUI: "https://suiexplorer.com/?network=mainnet",
16
+ FUSE: "https://explorer.fuse.io",
17
+ FUSESPARK: "https://explorer.fusespark.io",
18
+ MUMBAI: "https://mumbai.polygonscan.com",
19
+ METIS: "https://andromeda-explorer.metis.io",
20
+ "METIS-TESTNET": "https://sepolia.explorer.metisdevops.link",
21
+ MANTLE: "https://explorer.mantle.xyz",
22
+ "MANTLE-TESTNET": "https://explorer.testnet.mantle.xyz",
23
+ MANTA: "https://pacific-explorer.manta.network",
24
+ "MANTA-TESTNET": "https://manta-testnet.calderaexplorer.xyz",
25
+ [e]: "https://explorer.zklink.io",
26
+ [a]: "https://goerli.explorer.zklink.io",
27
+ [n]: "https://testnet-scan.bitlayer.org/en-us",
28
+ [T]: "https://xt2scan.ngd.network"
29
+ }, c = {
30
+ ETH: `${t.ETH}/tx`,
31
+ // /txHash
32
+ [o]: `${t[o]}/tx`,
33
+ POLYGON: `${t.POLYGON}/tx`,
34
+ [s]: `${t[s]}/tx`,
35
+ AVALANCHE: `${t.AVALANCHE}/tx`,
36
+ ARBITRUM: `${t.ARBITRUM}/tx`,
37
+ BINANCE: `${t.BINANCE}/tx`,
38
+ OPTIMISM: `${t.OPTIMISM}/tx`,
39
+ FANTOM: `${t.FANTOM}/tx`,
40
+ FUSE: `${t.FUSE}/tx`,
41
+ FUSESPARK: `${t.FUSESPARK}/tx`,
42
+ MUMBAI: `${t.MUMBAI}/tx`,
43
+ METIS: `${t.METIS}/tx`,
44
+ "METIS-TESTNET": `${t["METIS-TESTNET"]}/tx`,
45
+ MANTLE: `${t.MANTLE}/tx`,
46
+ "MANTLE-TESTNET": `${t["MANTLE-TESTNET"]}/tx`,
47
+ MANTA: `${t.MANTA}/tx`,
48
+ "MANTA-TESTNET": `${t["MANTA-TESTNET"]}/tx`,
49
+ [e]: `${t[e]}/tx`,
50
+ [a]: `${t[a]}/tx`,
51
+ [n]: `${t[n]}/tx`,
52
+ [T]: `${t[T]}/tx`
53
+ }, m = {
54
+ ETH: {
55
+ name: "Ether",
56
+ symbol: "ETH",
57
+ logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png"
58
+ },
59
+ [o]: {
60
+ name: "Ether",
61
+ symbol: "ETH",
62
+ logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png"
63
+ },
64
+ POLYGON: {
65
+ name: "Matic Token",
66
+ symbol: "MATIC",
67
+ logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png"
68
+ },
69
+ [s]: {
70
+ name: "Matic Token",
71
+ symbol: "MATIC",
72
+ logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png"
73
+ },
74
+ AVALANCHE: {
75
+ name: "Avalanche Coin",
76
+ symbol: "AVAX",
77
+ logoUrl: "https://www.datocms-assets.com/86369/1686152997-avalanche-colour.png"
78
+ },
79
+ ARBITRUM: {
80
+ name: "Arbitrum Mainnet Ether",
81
+ symbol: "ETH",
82
+ logoUrl: "https://www.datocms-assets.com/86369/1669925028-arbitrum.png"
83
+ },
84
+ BINANCE: {
85
+ name: "Binance Coin",
86
+ symbol: "BNB",
87
+ logoUrl: "https://www.datocms-assets.com/86369/1670003837-biance-smart-chain-colour.png"
88
+ },
89
+ OPTIMISM: {
90
+ name: "Ether",
91
+ symbol: "ETH",
92
+ logoUrl: "https://www.datocms-assets.com/86369/1670347461-optimisim-colour.png"
93
+ },
94
+ FANTOM: {
95
+ name: "Fantom",
96
+ symbol: "FTM",
97
+ logoUrl: "https://www.datocms-assets.com/86369/1669925359-fantom-1.png"
98
+ },
99
+ FUSE: {
100
+ name: "Fuse",
101
+ symbol: "FUSE",
102
+ logoUrl: "https://assets.coingecko.com/coins/images/10347/standard/fuse.png"
103
+ },
104
+ FUSESPARK: {
105
+ name: "Spark",
106
+ symbol: "SPARK",
107
+ logoUrl: "https://assets.coingecko.com/coins/images/10347/standard/fuse.png"
108
+ },
109
+ MUMBAI: {
110
+ name: "Matic Token",
111
+ symbol: "MATIC",
112
+ logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png"
113
+ },
114
+ METIS: {
115
+ name: "Metis Token",
116
+ symbol: "METIS",
117
+ logoUrl: "https://static.tria.so/chain-logo-w/Metis.webp"
118
+ },
119
+ "METIS-TESTNET": {
120
+ name: "Metis Token",
121
+ symbol: "METIS",
122
+ logoUrl: "https://static.tria.so/chain-logo-w/Metis.webp"
123
+ },
124
+ MANTLE: {
125
+ name: "Mantle",
126
+ symbol: "MNT",
127
+ logoUrl: "https://static.tria.so/chain-logo-w/Mantle.webp"
128
+ },
129
+ "MANTLE-TESTNET": {
130
+ name: "Mantle",
131
+ symbol: "MNT",
132
+ logoUrl: "https://static.tria.so/chain-logo-w/Mantle.webp"
133
+ },
134
+ MANTA: {
135
+ name: "Ether",
136
+ symbol: "ETH",
137
+ logoUrl: "https://static.tria.so/chain-logo-w/Manta.webp"
138
+ },
139
+ "MANTA-TESTNET": {
140
+ name: "Ether",
141
+ symbol: "ETH",
142
+ logoUrl: "https://static.tria.so/chain-logo-w/Manta.webp"
143
+ },
144
+ SOLANA: {
145
+ name: "Solana",
146
+ symbol: "SOL",
147
+ logoUrl: "https://static.tria.so/chain-logo-w/Solana.webp"
148
+ },
149
+ [e]: {
150
+ name: "Ether",
151
+ symbol: "ETH",
152
+ logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp"
153
+ },
154
+ [a]: {
155
+ name: "Ether",
156
+ symbol: "ETH",
157
+ logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp"
158
+ },
159
+ [n]: {
160
+ name: "Bitcoin",
161
+ symbol: "BTC",
162
+ logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp"
163
+ },
164
+ [T]: {
165
+ name: "Gas",
166
+ symbol: "GAS",
167
+ logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992"
168
+ }
169
+ }, l = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z", i = {
170
+ MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${l}`,
171
+ //'https://polygon-mumbai.blockpi.network/v1/rpc/public',
172
+ [s]: `https://polygon-amoy.g.alchemy.com/v2/${l}`,
173
+ [o]: `https://eth-sepolia.g.alchemy.com/v2/${l}`,
174
+ ETH: "https://eth.llamarpc.com",
175
+ POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${l}`,
176
+ // 'https://polygon.llamarpc.com',
177
+ AVALANCHE: "https://avalanche-c-chain.publicnode.com",
178
+ ARBITRUM: "https://arbitrum-one.publicnode.com",
179
+ BINANCE: "https://bsc.publicnode.com",
180
+ OPTIMISM: "https://optimism.meowrpc.com",
181
+ FANTOM: "https://fantom.publicnode.com",
182
+ FUSE: "https://rpc.fuse.io",
183
+ FUSESPARK: "https://rpc.fusespark.io",
184
+ MANTA: "https://1rpc.io/manta",
185
+ "MANTA-TESTNET": "https://manta-testnet.calderachain.xyz/http",
186
+ METIS: "https://metis-pokt.nodies.app",
187
+ "METIS-TESTNET": "https://goerli.gateway.metisdevops.link",
188
+ MANTLE: "https://rpc.mantle.xyz",
189
+ "MANTLE-TESTNET": "https://rpc.testnet.mantle.xyz",
190
+ [e]: "https://rpc.zklink.io",
191
+ [a]: "https://goerli.rpc.zklink.io",
192
+ [n]: "https://testnet-rpc.bitlayer.org",
193
+ [T]: "https://neoxseed1.ngd.network"
194
+ }, E = {
195
+ MUMBAI: 80001,
196
+ [s]: 80002,
197
+ [o]: 11155111,
198
+ POLYGON: 137,
199
+ ETH: 1,
200
+ AVALANCHE: 43114,
201
+ ARBITRUM: 42161,
202
+ BINANCE: 56,
203
+ OPTIMISM: 10,
204
+ FANTOM: 250,
205
+ FUSE: 122,
206
+ FUSESPARK: 123,
207
+ MANTA: 169,
208
+ "MANTA-TESTNET": 3441005,
209
+ METIS: 1088,
210
+ "METIS-TESTNET": 599,
211
+ MANTLE: 5e3,
212
+ "MANTLE-TESTNET": 5001,
213
+ [e]: 810180,
214
+ [a]: 810182,
215
+ [n]: 200810,
216
+ [T]: 12227330
217
+ }, r = {
218
+ 80001: "MUMBAI",
219
+ 80002: s,
220
+ 11155111: o,
221
+ 137: "POLYGON",
222
+ 1: "ETH",
223
+ 43114: "AVALANCHE",
224
+ 42161: "ARBITRUM",
225
+ 56: "BINANCE",
226
+ 10: "OPTIMISM",
227
+ 250: "FANTOM",
228
+ 122: "FUSE",
229
+ 123: "FUSESPARK",
230
+ 5e3: "MANTLE",
231
+ 5001: "MANTLE-TESTNET",
232
+ 1088: "METIS",
233
+ 599: "METIS-TESTNET",
234
+ 169: "MANTA",
235
+ 3441005: "MANTA-TESTNET",
236
+ 810180: e,
237
+ 810182: a,
238
+ 200810: n,
239
+ 12227330: T
240
+ };
241
+ export {
242
+ r as chainIdToChainName,
243
+ E as chainNameToChainId,
244
+ t as explorerBaseUrls,
245
+ m as nativeTokenDetails,
246
+ i as rpcUrls,
247
+ c as txnBaseUrl
248
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tria-sdk/constants",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/chains.ts CHANGED
@@ -1,9 +1,16 @@
1
+ export const mumbai = "MUMBAI";
2
+ export const polygon = "POLYGON";
3
+ export const ethereum = "ETH";
4
+ export const fuse = "FUSE";
5
+ export const fuseSpark = "FUSESPARK";
6
+
1
7
  export const zkLink: string = "ZKLINK-NOVA";
2
8
  export const zkLinkTestnet: string = "ZKLINK-NOVA-TESTNET";
3
9
  export const bitlayerTestnet: string = "BITLAYER-TESTNET";
4
10
  export const neoxTestnet: string = "NEOX-TESTNET";
5
11
  export const sepolia: string = "SEPOLIA";
6
12
  export const polygonAmoy: string = "AMOY";
13
+ export const vanarTestnet: string = "VANGUARD-VANAR-TESTNET";
7
14
 
8
15
  export type ZKLINK = "ZKLINK-NOVA";
9
16
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
@@ -11,6 +18,7 @@ export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
11
18
  export type NEOX_TESTNET = "NEOX-TESTNET";
12
19
  export type SEPOLIA = "SEPOLIA";
13
20
  export type AMOY = "AMOY";
21
+ export type VANGUARD_VANAR_TESTNET = "VANGUARD-VANAR-TESTNET";
14
22
 
15
23
  export const TESTNET_CHAINS = [
16
24
  "MUMBAI",
@@ -23,6 +31,7 @@ export const TESTNET_CHAINS = [
23
31
  neoxTestnet,
24
32
  sepolia,
25
33
  polygonAmoy,
34
+ vanarTestnet,
26
35
  ];
27
36
 
28
37
  export const SUPPORTED_EVM_CHAINS = [
@@ -48,6 +57,7 @@ export const SUPPORTED_EVM_CHAINS = [
48
57
  neoxTestnet,
49
58
  sepolia,
50
59
  polygonAmoy,
60
+ vanarTestnet,
51
61
  ];
52
62
 
53
63
  export const AA_SUPPORTED_EVM_CHAINS = [
@@ -87,6 +97,7 @@ export const ALLCHAINS = [
87
97
  neoxTestnet,
88
98
  sepolia,
89
99
  polygonAmoy,
100
+ vanarTestnet,
90
101
  ];
91
102
 
92
103
  const baseLogoUrl = "https://static.tria.so/chain-logo-w";
@@ -212,6 +223,11 @@ export const networks = [
212
223
  logo: `${baseLogoUrl}/Neo.webp`,
213
224
  type: "testnet",
214
225
  },
226
+ {
227
+ chainName: vanarTestnet,
228
+ logo: `${baseLogoUrl}/Vanguard.webp`,
229
+ type: "testnet",
230
+ },
215
231
  ];
216
232
 
217
233
  export const chainNameToLogo = {
@@ -239,6 +255,7 @@ export const chainNameToLogo = {
239
255
  [zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
240
256
  [bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
241
257
  [neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
258
+ [vanarTestnet]: `${baseLogoUrl}/Vanguard.webp`,
242
259
  };
243
260
 
244
261
  export const chainNameToLogoBlack = {
@@ -266,4 +283,5 @@ export const chainNameToLogoBlack = {
266
283
  [zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
267
284
  [bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
268
285
  [neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
286
+ [vanarTestnet]: `${baseLogoUrlBlack}/Vanguard.png`,
269
287
  };
package/src/txn.ts CHANGED
@@ -5,6 +5,7 @@ import {
5
5
  sepolia,
6
6
  zkLink,
7
7
  zkLinkTestnet,
8
+ vanarTestnet,
8
9
  } from "./chains";
9
10
 
10
11
  export const explorerBaseUrls = {
@@ -34,6 +35,7 @@ export const explorerBaseUrls = {
34
35
  [zkLinkTestnet]: "https://goerli.explorer.zklink.io",
35
36
  [bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
36
37
  [neoxTestnet]: "https://xt2scan.ngd.network",
38
+ [vanarTestnet]: "https://explorer-vanguard.vanarchain.com",
37
39
  };
38
40
 
39
41
  export const txnBaseUrl = {
@@ -59,6 +61,7 @@ export const txnBaseUrl = {
59
61
  [zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
60
62
  [bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
61
63
  [neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
64
+ [vanarTestnet]: `${explorerBaseUrls[vanarTestnet]}/tx`,
62
65
  };
63
66
 
64
67
  export const nativeTokenDetails = {
@@ -186,6 +189,12 @@ export const nativeTokenDetails = {
186
189
  logoUrl:
187
190
  "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
188
191
  },
192
+ [vanarTestnet]: {
193
+ name: "Vanry",
194
+ symbol: "VANRY",
195
+ logoUrl:
196
+ "https://explorer-vanguard.vanarchain.com/assets/network_icon_dark.svg",
197
+ },
189
198
  };
190
199
 
191
200
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
@@ -213,6 +222,7 @@ export const rpcUrls = {
213
222
  [zkLinkTestnet]: "https://goerli.rpc.zklink.io",
214
223
  [bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
215
224
  [neoxTestnet]: "https://neoxseed1.ngd.network",
225
+ [vanarTestnet]: "https://rpc-vanguard.vanarchain.com",
216
226
  };
217
227
 
218
228
  export const chainNameToChainId = {
@@ -238,6 +248,7 @@ export const chainNameToChainId = {
238
248
  [zkLinkTestnet]: 810182,
239
249
  [bitlayerTestnet]: 200810,
240
250
  [neoxTestnet]: 12227330,
251
+ [vanarTestnet]: 78600,
241
252
  };
242
253
 
243
254
  export const chainIdToChainName = {
@@ -263,4 +274,5 @@ export const chainIdToChainName = {
263
274
  810182: zkLinkTestnet,
264
275
  200810: bitlayerTestnet,
265
276
  12227330: neoxTestnet,
277
+ 78600: vanarTestnet,
266
278
  };