@openocean.finance/wallet 1.9.2 → 1.9.4

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/lib/Chains.js CHANGED
@@ -23,8 +23,17 @@ var chainObj = {
23
23
  },
24
24
  "solana": {
25
25
  compiler: 'SOL',
26
- chainName: "Solana Mainnet", blockExplorerUrl: "https://solscan.io/tx/", popularToken: ["SOL", "SNY", "USDT", "USDC", "RAY", "STEP"],
27
- rpcUrls: null
26
+ chainName: "Solana Mainnet",
27
+ blockExplorerUrl: "https://solscan.io/tx/",
28
+ popularToken: ["SOL", "SNY", "USDT", "USDC", "RAY", "STEP"],
29
+ rpcUrls: null,
30
+ nativeCurrency: {
31
+ symbol: "SOL",
32
+ id: "solana",
33
+ address: "So11111111111111111111111111111111111111112",
34
+ decimals: 9,
35
+ gasAmount: 1000000000000000
36
+ }
28
37
  },
29
38
  "starknet": {
30
39
  compiler: 'STARKNET',
@@ -35,31 +44,37 @@ var chainObj = {
35
44
  "flow": {
36
45
  compiler: 'FLOW',
37
46
  chainName: "Flow Mainnet", blockExplorerUrl: "https://flowscan.org/transaction/", popularToken: ["SOL", "SNY", "USDT", "USDC", "RAY", "STEP"],
38
- rpcUrls: null
47
+ rpcUrls: null,
48
+ nativeCurrency: {}
39
49
  },
40
50
  "polygon": {
41
51
  compiler: 'EVM',
42
- chainName: "Polygon Mainnet", chainId: 137, blockExplorerUrl: "https://polygonscan.com/tx/", popularToken: ["USDT", "USDC", "MATIC", "AAVE", "DINO", "ADDY", "MIMATIC"], nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18, address: "0x0000000000000000000000000000000000001010" },
52
+ chainName: "Polygon Mainnet", chainId: 137, blockExplorerUrl: "https://polygonscan.com/tx/", popularToken: ["USDT", "USDC", "MATIC", "AAVE", "DINO", "ADDY", "MIMATIC"],
53
+ nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18, address: "0x0000000000000000000000000000000000001010" },
43
54
  rpcUrls: ["https://polygon.llamarpc.com"]
44
55
  },
45
56
  "polygon_zkevm": {
46
57
  compiler: 'EVM',
47
- chainName: "Polygon zkEVM", chainId: 1101, blockExplorerUrl: "https://zkevm.polygonscan.com/tx/", popularToken: ["USDT", "USDC", "MATIC", "AAVE", "DINO", "ADDY", "MIMATIC"], nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
58
+ chainName: "Polygon zkEVM", chainId: 1101, blockExplorerUrl: "https://zkevm.polygonscan.com/tx/", popularToken: ["USDT", "USDC", "MATIC", "AAVE", "DINO", "ADDY", "MIMATIC"],
59
+ nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
48
60
  rpcUrls: ["https://rpc.ankr.com/polygon_zkevm"]
49
61
  },
50
62
  "avax": {
51
63
  compiler: 'EVM',
52
- chainName: "Avalanche", chainId: 43114, blockExplorerUrl: "https://cchain.explorer.avax.network/tx/", popularToken: ["AVAX", "PNG", "DAI.E", "ETH", "WAVAX", "JOE", "QI", "USDC.E"], nativeCurrency: { name: "AVAX", symbol: "AVAX", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
64
+ chainName: "Avalanche", chainId: 43114, blockExplorerUrl: "https://cchain.explorer.avax.network/tx/", popularToken: ["AVAX", "PNG", "DAI.E", "ETH", "WAVAX", "JOE", "QI", "USDC.E"],
65
+ nativeCurrency: { name: "AVAX", symbol: "AVAX", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
53
66
  rpcUrls: ["https://api.avax.network/ext/bc/C/rpc"]
54
67
  },
55
68
  "fantom": {
56
69
  compiler: 'EVM',
57
- chainName: "Fantom", chainId: 250, blockExplorerUrl: "https://ftmscan.com/tx/", popularToken: ["ETH", "USDT", "USDC", "SPIRIT", "1INCH", "C98", "FTM", "fUSDT", "MIM", "BOO"], nativeCurrency: { name: "FTM", symbol: "FTM", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
70
+ chainName: "Fantom", chainId: 250, blockExplorerUrl: "https://ftmscan.com/tx/", popularToken: ["ETH", "USDT", "USDC", "SPIRIT", "1INCH", "C98", "FTM", "fUSDT", "MIM", "BOO"],
71
+ nativeCurrency: { name: "FTM", symbol: "FTM", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
58
72
  rpcUrls: ["https://rpcapi.fantom.network"]
59
73
  },
60
74
  "arbitrum": {
61
75
  compiler: 'EVM',
62
- chainName: "Arbitrum", chainId: 42161, blockExplorerUrl: "https://arbiscan.io/tx/", nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
76
+ chainName: "Arbitrum", chainId: 42161, blockExplorerUrl: "https://arbiscan.io/tx/",
77
+ nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
63
78
  rpcUrls: ["https://arb1.arbitrum.io/rpc"]
64
79
  },
65
80
  "xdai": {
@@ -72,22 +87,33 @@ var chainObj = {
72
87
  },
73
88
  "boba": {
74
89
  compiler: 'EVM',
75
- chainName: "Boba Mainnet", chainId: 288, blockExplorerUrl: "https://blockexplorer.boba.network/tx/", nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
90
+ chainName: "Boba Mainnet", chainId: 288, blockExplorerUrl: "https://blockexplorer.boba.network/tx/",
91
+ nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
76
92
  rpcUrls: ["https://mainnet.boba.network"]
77
93
  },
78
94
  "ont": {
79
95
  compiler: 'ONT',
80
- chainName: "Ontology Mainnet", blockExplorerUrl: "https://explorer.ont.io/transaction/", popularToken: [],
96
+ chainName: "Ontology Mainnet", blockExplorerUrl: "https://explorer.ont.io/transaction/",
97
+ popularToken: [],
98
+ nativeCurrency: {
99
+ symbol: "ONG",
100
+ id: "ong",
101
+ address: "0x0000000000000000000000000000000000000000",
102
+ decimals: 18,
103
+ gasAmount: 1000000000000000
104
+ },
81
105
  rpcUrls: null
82
106
  },
83
107
  "ontevm": {
84
108
  compiler: 'EVM',
85
- chainName: "Ontology Evm", chainId: 58, blockExplorerUrl: "https://explorer.ont.io/transaction/", nativeCurrency: { name: "ONG", symbol: "ONG", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
109
+ chainName: "Ontology Evm", chainId: 58, blockExplorerUrl: "https://explorer.ont.io/transaction/",
110
+ nativeCurrency: { name: "ONG", symbol: "ONG", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
86
111
  rpcUrls: ["https://dappnode10.ont.io:10339"]
87
112
  },
88
113
  "metis": {
89
114
  compiler: 'EVM',
90
- chainName: "Andromeda (Metis)", chainId: 1088, blockExplorerUrl: "https://andromeda-explorer.metis.io/tx/", nativeCurrency: { name: "METIS", symbol: "METIS", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
115
+ chainName: "Andromeda (Metis)", chainId: 1088, blockExplorerUrl: "https://andromeda-explorer.metis.io/tx/",
116
+ nativeCurrency: { name: "METIS", symbol: "METIS", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
91
117
  rpcUrls: ["https://andromeda.metis.io/?owner=1088"]
92
118
  },
93
119
  "tron": {
@@ -95,6 +121,13 @@ var chainObj = {
95
121
  chainName: "Tron Mainnet",
96
122
  blockExplorerUrl: "https://tronscan.io/#/transaction/",
97
123
  popularToken: ["TRX", "WTRX", "ETH", "BTC", "USDT", "USDJ", "JST"],
124
+ nativeCurrency: {
125
+ symbol: "TRX",
126
+ id: "tron",
127
+ address: "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
128
+ decimals: 6,
129
+ gasAmount: 1000000000000000
130
+ },
98
131
  rpcUrls: null
99
132
  },
100
133
  "heco": {
@@ -108,7 +141,9 @@ var chainObj = {
108
141
  },
109
142
  "okex": {
110
143
  compiler: 'EVM',
111
- chainName: "OEC Mainnet", chainId: 66, blockExplorerUrl: "https://www.oklink.com/okexchain/", popularToken: ["OKT", "OKB", "USDT", "USDC", "BUSD", "BNB", "CHE"], nativeCurrency: { name: "OKT", symbol: "OKT", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
144
+ chainName: "OEC Mainnet", chainId: 66, blockExplorerUrl: "https://www.oklink.com/okexchain/",
145
+ popularToken: ["OKT", "OKB", "USDT", "USDC", "BUSD", "BNB", "CHE"],
146
+ nativeCurrency: { name: "OKT", symbol: "OKT", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
112
147
  rpcUrls: ["https://exchainrpc.okex.org"]
113
148
  },
114
149
  "optimism": {
@@ -130,11 +165,13 @@ var chainObj = {
130
165
  },
131
166
  "dot": {
132
167
  compiler: 'EVM',
133
- chainName: "Polkadot", blockExplorerUrl: "", popularToken: ["ETH", "USDT", "USDC", "BUSD", "1INCH", "C98"]
168
+ chainName: "Polkadot", blockExplorerUrl: "", popularToken: ["ETH", "USDT", "USDC", "BUSD", "1INCH", "C98"],
169
+ nativeCurrency: {}
134
170
  },
135
171
  "neo": {
136
172
  compiler: 'EVM',
137
- chainName: "Neo", blockExplorerUrl: "", popularToken: ["ETH", "USDT", "USDC", "BUSD", "1INCH", "C98"]
173
+ chainName: "Neo", blockExplorerUrl: "",
174
+ popularToken: ["ETH", "USDT", "USDC", "BUSD", "1INCH", "C98"]
138
175
  },
139
176
  "aurora": {
140
177
  chainName: "Aurora Mainnet",
@@ -215,6 +252,13 @@ var chainObj = {
215
252
  ],
216
253
  blockExplorerUrl: '',
217
254
  compiler: 'COSMOS',
255
+ nativeCurrency: {
256
+ symbol: "ATOM",
257
+ id: "cosmos",
258
+ address: "",
259
+ decimals: 18,
260
+ gasAmount: 1000000000000000
261
+ }
218
262
  },
219
263
  osmosis: {
220
264
  chainId: 'osmosis-1',
@@ -465,6 +509,14 @@ var chainObj = {
465
509
  popularToken: ["BTC"],
466
510
  rpcUrls: []
467
511
  },
512
+ "arbitrum_sepolia": {
513
+ compiler: 'EVM',
514
+ chainName: "Arbitrum Sepolia",
515
+ chainId: 421614,
516
+ blockExplorerUrl: "https://sepolia-explorer.arbitrum.io/tx/",
517
+ nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
518
+ rpcUrls: ["https://arbitrum-sepolia.blockpi.network/v1/rpc/public"]
519
+ },
468
520
  };
469
521
  var Chains = /** @class */ (function () {
470
522
  function Chains() {
@@ -8,7 +8,6 @@ interface ReqConnectWalletVo {
8
8
  noSwitch?: boolean;
9
9
  provider?: any;
10
10
  projectId?: string;
11
- rpcUrl?: string;
12
11
  }
13
12
  interface Wallet extends BaseWallet {
14
13
  }
@@ -152,7 +152,7 @@ function link(reqConnectWalletVo, chain) {
152
152
  // https://solana-api.projectserum.com
153
153
  // https://mercuria-fronten-1cd8.mainnet.rpcpool.com/
154
154
  // "https://rpc.ankr.com/solana/ad9d7bb3250b29d691330e63e3b46778099aca307af8f5e49b2ebc0a470dd848"
155
- wallet.connection = new web3_js_1.Connection(reqConnectWalletVo.localRpcUrl || "https://solana-mainnet.rpc.grove.city/v1/3db25afe"
155
+ wallet.connection = new web3_js_1.Connection(reqConnectWalletVo.localRpcUrl || "https://solana-mainnet.g.alchemy.com/v2/O2uK_K8FGzQeuRZyI2msw2EgwIGqNoHP"
156
156
  // "https://few-silent-choice.solana-mainnet.quiknode.pro/b37eb00eb03a5a5e0ae9d9b7cf535b0b9c0dd6a9/"
157
157
  );
158
158
  if (res) {
@@ -89,7 +89,8 @@ var CoinbaseWallet = /** @class */ (function (_super) {
89
89
  types_1.EnumChains.Manta,
90
90
  types_1.EnumChains.Mode,
91
91
  types_1.EnumChains.Rootstock,
92
- types_1.EnumChains.Sei
92
+ types_1.EnumChains.Sei,
93
+ types_1.EnumChains.ArbitrumSepolia,
93
94
  ];
94
95
  _this.type = types_1.EnumWalletType.Extension;
95
96
  _this.sdk = null;
@@ -81,7 +81,8 @@ var CompassWallet = /** @class */ (function (_super) {
81
81
  types_1.EnumChains.Arbitrum,
82
82
  types_1.EnumChains.Optimism,
83
83
  types_1.EnumChains.Metis,
84
- types_1.EnumChains.Sei
84
+ types_1.EnumChains.Sei,
85
+ types_1.EnumChains.ArbitrumSepolia,
85
86
  ];
86
87
  _this.type = types_1.EnumWalletType.Extension;
87
88
  _this.sdk = null;
@@ -111,7 +111,8 @@ var MetaMask = /** @class */ (function (_super) {
111
111
  types_1.EnumChains.PulseChain,
112
112
  types_1.EnumChains.MerlinChain,
113
113
  types_1.EnumChains.Rootstock,
114
- types_1.EnumChains.Sei
114
+ types_1.EnumChains.Sei,
115
+ types_1.EnumChains.ArbitrumSepolia,
115
116
  ];
116
117
  _this.type = types_1.EnumWalletType.Extension;
117
118
  _this.sdk = null;
@@ -92,7 +92,8 @@ var OKXWallet = /** @class */ (function (_super) {
92
92
  types_1.EnumChains.X1,
93
93
  types_1.EnumChains.Mode,
94
94
  types_1.EnumChains.Rootstock,
95
- types_1.EnumChains.Sei
95
+ types_1.EnumChains.Sei,
96
+ types_1.EnumChains.ArbitrumSepolia,
96
97
  ];
97
98
  _this.type = types_1.EnumWalletType.Extension;
98
99
  _this.sdk = null;
@@ -107,7 +107,8 @@ var WalletConnect = /** @class */ (function (_super) {
107
107
  types_1.EnumChains.PulseChain,
108
108
  types_1.EnumChains.MerlinChain,
109
109
  types_1.EnumChains.Rootstock,
110
- types_1.EnumChains.Sei
110
+ types_1.EnumChains.Sei,
111
+ types_1.EnumChains.ArbitrumSepolia,
111
112
  ];
112
113
  _this.type = types_1.EnumWalletType.WalletConnect;
113
114
  _this.sdk = null;
package/lib/types.d.ts CHANGED
@@ -59,7 +59,8 @@ export declare enum EnumChains {
59
59
  MerlinChain = "merlin",
60
60
  Rootstock = "rootstock",
61
61
  Sei = "sei",
62
- Btc = "btc"
62
+ Btc = "btc",
63
+ ArbitrumSepolia = "arbitrum_sepolia"
63
64
  }
64
65
  export declare enum EnumWalletType {
65
66
  Extension = "Extension",
package/lib/types.js CHANGED
@@ -60,6 +60,7 @@ var EnumChains;
60
60
  EnumChains["Rootstock"] = "rootstock";
61
61
  EnumChains["Sei"] = "sei";
62
62
  EnumChains["Btc"] = "btc";
63
+ EnumChains["ArbitrumSepolia"] = "arbitrum_sepolia";
63
64
  })(EnumChains = exports.EnumChains || (exports.EnumChains = {}));
64
65
  var EnumWalletType;
65
66
  (function (EnumWalletType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/wallet",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "description": "A multi-chain wallets manager",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {