@openocean.finance/wallet 1.4.1 → 1.4.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/lib/Chains.js +12 -1
- package/lib/Wallets/BitKeepWallet.js +1 -0
- package/lib/Wallets/ImTokenWallet.js +1 -0
- package/lib/Wallets/MetaMask.js +1 -0
- package/lib/Wallets/SafePalWallet.js +1 -0
- package/lib/Wallets/TrustWallet.js +1 -0
- package/lib/Wallets/WalletConnect.js +2 -0
- package/lib/types.d.ts +2 -1
- package/lib/types.js +2 -1
- package/package.json +1 -1
package/lib/Chains.js
CHANGED
|
@@ -60,7 +60,7 @@ var chainObj = {
|
|
|
60
60
|
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" },
|
|
61
61
|
rpcUrls: ["https://rpc-mainnet.maticvigil.com"]
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"polygon_zkevm": {
|
|
64
64
|
compiler: 'EVM',
|
|
65
65
|
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" },
|
|
66
66
|
rpcUrls: ["https://rpc.ankr.com/polygon_zkevm"]
|
|
@@ -306,6 +306,17 @@ var chainObj = {
|
|
|
306
306
|
"https://mainnet.era.zksync.io"
|
|
307
307
|
],
|
|
308
308
|
compiler: 'EVM'
|
|
309
|
+
},
|
|
310
|
+
"linea": {
|
|
311
|
+
chainName: "Linea Testnet",
|
|
312
|
+
chainId: 59140,
|
|
313
|
+
blockExplorerUrl: "https://explorer.goerli.linea.build/tx/",
|
|
314
|
+
nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
|
|
315
|
+
popularToken: [],
|
|
316
|
+
rpcUrls: [
|
|
317
|
+
"https://rpc.goerli.linea.build"
|
|
318
|
+
],
|
|
319
|
+
compiler: 'EVM'
|
|
309
320
|
}
|
|
310
321
|
};
|
|
311
322
|
var Chains = /** @class */ (function () {
|
|
@@ -83,6 +83,7 @@ var BitKeepWallet = /** @class */ (function (_super) {
|
|
|
83
83
|
types_1.EnumChains.Arbitrum,
|
|
84
84
|
types_1.EnumChains.Optimism,
|
|
85
85
|
types_1.EnumChains.ZKSYNC,
|
|
86
|
+
types_1.EnumChains.Linea,
|
|
86
87
|
types_1.EnumChains.PolygonzkEVM
|
|
87
88
|
// EnumChains.Boba,
|
|
88
89
|
// EnumChains.Moonriver,
|
|
@@ -81,6 +81,7 @@ var ImTokenWallet = /** @class */ (function (_super) {
|
|
|
81
81
|
types_1.EnumChains.Fantom,
|
|
82
82
|
types_1.EnumChains.Avalanche,
|
|
83
83
|
types_1.EnumChains.ZKSYNC,
|
|
84
|
+
types_1.EnumChains.Linea,
|
|
84
85
|
types_1.EnumChains.PolygonzkEVM
|
|
85
86
|
];
|
|
86
87
|
_this.type = types_1.EnumWalletType.Mobile;
|
package/lib/Wallets/MetaMask.js
CHANGED
|
@@ -96,6 +96,7 @@ var MetaMask = /** @class */ (function (_super) {
|
|
|
96
96
|
types_1.EnumChains.Celo,
|
|
97
97
|
types_1.EnumChains.Klaytn,
|
|
98
98
|
types_1.EnumChains.ZKSYNC,
|
|
99
|
+
types_1.EnumChains.Linea,
|
|
99
100
|
types_1.EnumChains.PolygonzkEVM
|
|
100
101
|
];
|
|
101
102
|
_this.type = types_1.EnumWalletType.Extension;
|
|
@@ -91,6 +91,7 @@ var SafePalWallet = /** @class */ (function (_super) {
|
|
|
91
91
|
types_1.EnumChains.Celo,
|
|
92
92
|
types_1.EnumChains.Klaytn,
|
|
93
93
|
types_1.EnumChains.ZKSYNC,
|
|
94
|
+
types_1.EnumChains.Linea,
|
|
94
95
|
types_1.EnumChains.PolygonzkEVM
|
|
95
96
|
];
|
|
96
97
|
_this.type = types_1.EnumWalletType.Extension;
|
|
@@ -104,6 +104,7 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
104
104
|
types_1.EnumChains.Celo,
|
|
105
105
|
types_1.EnumChains.Klaytn,
|
|
106
106
|
types_1.EnumChains.ZKSYNC,
|
|
107
|
+
types_1.EnumChains.Linea,
|
|
107
108
|
types_1.EnumChains.PolygonzkEVM
|
|
108
109
|
];
|
|
109
110
|
_this.type = types_1.EnumWalletType.WalletConnect;
|
|
@@ -146,6 +147,7 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
146
147
|
42220: "https://1rpc.io/celo",
|
|
147
148
|
421611: "https://rinkeby.arbitrum.io/rpc",
|
|
148
149
|
43114: "https://api.avax.network/ext/bc/C/rpc",
|
|
150
|
+
59140: "https://rpc.goerli.linea.build",
|
|
149
151
|
1313161554: "https://mainnet.aurora.dev",
|
|
150
152
|
1666600000: "https://api.s0.t.hmny.io",
|
|
151
153
|
} }, config));
|
package/lib/types.d.ts
CHANGED
package/lib/types.js
CHANGED
|
@@ -42,7 +42,8 @@ var EnumChains;
|
|
|
42
42
|
EnumChains["Celo"] = "celo";
|
|
43
43
|
EnumChains["Klaytn"] = "klaytn";
|
|
44
44
|
EnumChains["ZKSYNC"] = "zksync";
|
|
45
|
-
EnumChains["PolygonzkEVM"] = "
|
|
45
|
+
EnumChains["PolygonzkEVM"] = "polygon_zkevm";
|
|
46
|
+
EnumChains["Linea"] = "linea";
|
|
46
47
|
})(EnumChains = exports.EnumChains || (exports.EnumChains = {}));
|
|
47
48
|
var EnumWalletType;
|
|
48
49
|
(function (EnumWalletType) {
|