@tria-sdk/constants 1.0.27 → 1.0.29

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.js CHANGED
@@ -2,3 +2,4 @@ export * from "./src/config";
2
2
  export * from "./src/chains";
3
3
  export * from "./src/txn";
4
4
  export * from "./src/connect";
5
+ // export * from "./src/gasToken";
@@ -19,6 +19,7 @@ export type AMOY = "AMOY";
19
19
  export type VANGUARD_VANAR_TESTNET = "VANGUARD-VANAR-TESTNET";
20
20
  export declare const TESTNET_CHAINS: string[];
21
21
  export declare const SUPPORTED_EVM_CHAINS: string[];
22
+ export declare const GAS_ABS_ENABLED_CHAINS: string[];
22
23
  export declare const AA_SUPPORTED_EVM_CHAINS: string[];
23
24
  export declare const ALLCHAINS: string[];
24
25
  export declare const networks: {
@@ -11,6 +11,7 @@ export const sepolia = "SEPOLIA";
11
11
  export const polygonAmoy = "AMOY";
12
12
  export const vanarTestnet = "VANGUARD-VANAR-TESTNET";
13
13
  export const TESTNET_CHAINS = [
14
+ sepolia,
14
15
  "MUMBAI",
15
16
  "FUSESPARK",
16
17
  "MANTA-TESTNET",
@@ -34,6 +35,7 @@ export const SUPPORTED_EVM_CHAINS = [
34
35
  "FUSE",
35
36
  "FUSESPARK",
36
37
  "MUMBAI",
38
+ sepolia,
37
39
  "MANTA",
38
40
  "MANTA-TESTNET",
39
41
  "METIS",
@@ -48,9 +50,11 @@ export const SUPPORTED_EVM_CHAINS = [
48
50
  polygonAmoy,
49
51
  vanarTestnet,
50
52
  ];
53
+ export const GAS_ABS_ENABLED_CHAINS = [sepolia, "POLYGON"];
51
54
  export const AA_SUPPORTED_EVM_CHAINS = [
52
55
  // "ETH",
53
56
  "POLYGON",
57
+ sepolia,
54
58
  // "AVALANCHE",
55
59
  // "ARBITRUM",
56
60
  // "BINANCE",
@@ -75,6 +79,7 @@ export const ALLCHAINS = [
75
79
  "FUSE",
76
80
  "FUSESPARK",
77
81
  "MUMBAI",
82
+ sepolia,
78
83
  "MANTA",
79
84
  "MANTA-TESTNET",
80
85
  "METIS",
@@ -3,3 +3,4 @@ export declare const isEvmChain: (chainName: string) => boolean;
3
3
  export declare const isAaSupportedChain: (chainName: string) => boolean;
4
4
  export declare const isChainSupported: (chainName: string) => boolean;
5
5
  export declare const isTestnetChain: (chainName: string) => boolean;
6
+ export declare const isGasAbsEnabled: (chainName: string) => boolean;
@@ -1,4 +1,4 @@
1
- import { AA_SUPPORTED_EVM_CHAINS, ALLCHAINS, SUPPORTED_EVM_CHAINS, TESTNET_CHAINS, } from "./chains";
1
+ import { AA_SUPPORTED_EVM_CHAINS, ALLCHAINS, GAS_ABS_ENABLED_CHAINS, SUPPORTED_EVM_CHAINS, TESTNET_CHAINS, } from "./chains";
2
2
  export const prodApiUrl = "https://prod.tria.so";
3
3
  export const isEvmChain = (chainName) => {
4
4
  return SUPPORTED_EVM_CHAINS.includes(chainName);
@@ -12,3 +12,6 @@ export const isChainSupported = (chainName) => {
12
12
  export const isTestnetChain = (chainName) => {
13
13
  return TESTNET_CHAINS.includes(chainName);
14
14
  };
15
+ export const isGasAbsEnabled = (chainName) => {
16
+ return GAS_ABS_ENABLED_CHAINS.includes(chainName);
17
+ };
File without changes
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // import { polygonAmoy, sepolia } from "./chains";
3
+ // export const gasTokenAddresses = {
4
+ // [sepolia]: {
5
+ // USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
6
+ // USDT: "",
7
+ // TST: "0xe2fDF4b113552A7bFaD5492D7E68F7479D7DFaCF",
8
+ // },
9
+ // [polygonAmoy]: {
10
+ // USDC: "",
11
+ // USDT: "",
12
+ // },
13
+ // };
package/dist/src/txn.d.ts CHANGED
@@ -171,9 +171,9 @@ export declare const chainNameToChainId: {
171
171
  "MANTLE-TESTNET": number;
172
172
  };
173
173
  export declare const chainIdToChainName: {
174
+ 11155111: string;
174
175
  80001: string;
175
176
  80002: string;
176
- 11155111: string;
177
177
  137: string;
178
178
  1: string;
179
179
  43114: string;
package/dist/src/txn.js CHANGED
@@ -181,6 +181,7 @@ export const rpcUrls = {
181
181
  [polygonAmoy]: `https://polygon-amoy.g.alchemy.com/v2/${alchemyKey}`,
182
182
  [sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
183
183
  ETH: "https://eth.llamarpc.com",
184
+ [sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
184
185
  POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
185
186
  AVALANCHE: "https://avalanche-c-chain.publicnode.com",
186
187
  ARBITRUM: "https://arbitrum-one.publicnode.com",
@@ -227,9 +228,9 @@ export const chainNameToChainId = {
227
228
  [vanarTestnet]: 78600,
228
229
  };
229
230
  export const chainIdToChainName = {
231
+ 11155111: sepolia,
230
232
  80001: "MUMBAI",
231
233
  80002: polygonAmoy,
232
- 11155111: sepolia,
233
234
  137: "POLYGON",
234
235
  1: "ETH",
235
236
  43114: "AVALANCHE",
package/index.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./src/config";
2
2
  export * from "./src/chains";
3
3
  export * from "./src/txn";
4
4
  export * from "./src/connect";
5
+ // export * from "./src/gasToken";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tria-sdk/constants",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/chains.ts CHANGED
@@ -21,6 +21,7 @@ export type AMOY = "AMOY";
21
21
  export type VANGUARD_VANAR_TESTNET = "VANGUARD-VANAR-TESTNET";
22
22
 
23
23
  export const TESTNET_CHAINS = [
24
+ sepolia,
24
25
  "MUMBAI",
25
26
  "FUSESPARK",
26
27
  "MANTA-TESTNET",
@@ -45,6 +46,7 @@ export const SUPPORTED_EVM_CHAINS = [
45
46
  "FUSE",
46
47
  "FUSESPARK",
47
48
  "MUMBAI",
49
+ sepolia,
48
50
  "MANTA",
49
51
  "MANTA-TESTNET",
50
52
  "METIS",
@@ -60,9 +62,12 @@ export const SUPPORTED_EVM_CHAINS = [
60
62
  vanarTestnet,
61
63
  ];
62
64
 
65
+ export const GAS_ABS_ENABLED_CHAINS = [sepolia, "POLYGON"];
66
+
63
67
  export const AA_SUPPORTED_EVM_CHAINS = [
64
68
  // "ETH",
65
69
  "POLYGON",
70
+ sepolia,
66
71
  // "AVALANCHE",
67
72
  // "ARBITRUM",
68
73
  // "BINANCE",
@@ -88,6 +93,7 @@ export const ALLCHAINS = [
88
93
  "FUSE",
89
94
  "FUSESPARK",
90
95
  "MUMBAI",
96
+ sepolia,
91
97
  "MANTA",
92
98
  "MANTA-TESTNET",
93
99
  "METIS",
package/src/config.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  AA_SUPPORTED_EVM_CHAINS,
3
3
  ALLCHAINS,
4
+ GAS_ABS_ENABLED_CHAINS,
4
5
  SUPPORTED_EVM_CHAINS,
5
6
  TESTNET_CHAINS,
6
7
  } from "./chains";
@@ -22,3 +23,7 @@ export const isChainSupported = (chainName: string) => {
22
23
  export const isTestnetChain = (chainName: string) => {
23
24
  return TESTNET_CHAINS.includes(chainName);
24
25
  };
26
+
27
+ export const isGasAbsEnabled = (chainName: string) => {
28
+ return GAS_ABS_ENABLED_CHAINS.includes(chainName);
29
+ };
@@ -0,0 +1,13 @@
1
+ // import { polygonAmoy, sepolia } from "./chains";
2
+
3
+ // export const gasTokenAddresses = {
4
+ // [sepolia]: {
5
+ // USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
6
+ // USDT: "",
7
+ // TST: "0xe2fDF4b113552A7bFaD5492D7E68F7479D7DFaCF",
8
+ // },
9
+ // [polygonAmoy]: {
10
+ // USDC: "",
11
+ // USDT: "",
12
+ // },
13
+ // };
package/src/txn.ts CHANGED
@@ -204,6 +204,7 @@ export const rpcUrls = {
204
204
  [polygonAmoy]: `https://polygon-amoy.g.alchemy.com/v2/${alchemyKey}`,
205
205
  [sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
206
206
  ETH: "https://eth.llamarpc.com",
207
+ [sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
207
208
  POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
208
209
  AVALANCHE: "https://avalanche-c-chain.publicnode.com",
209
210
  ARBITRUM: "https://arbitrum-one.publicnode.com",
@@ -252,9 +253,9 @@ export const chainNameToChainId = {
252
253
  };
253
254
 
254
255
  export const chainIdToChainName = {
256
+ 11155111: sepolia,
255
257
  80001: "MUMBAI",
256
258
  80002: polygonAmoy,
257
- 11155111: sepolia,
258
259
  137: "POLYGON",
259
260
  1: "ETH",
260
261
  43114: "AVALANCHE",