@openocean.finance/wallet 1.5.30 → 1.5.31

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.
Files changed (44) hide show
  1. package/lib/Wallets/WalletConnect.js +2 -72
  2. package/package.json +1 -1
  3. /package/lib/assets/{.DS_Store → assets/.DS_Store} +0 -0
  4. /package/lib/assets/{approveErc20Abi.json → assets/approveErc20Abi.json} +0 -0
  5. /package/lib/assets/{argentx.svg → assets/argentx.svg} +0 -0
  6. /package/lib/assets/{bitget.svg → assets/bitget.svg} +0 -0
  7. /package/lib/assets/{blocto.svg → assets/blocto.svg} +0 -0
  8. /package/lib/assets/{braavos.svg → assets/braavos.svg} +0 -0
  9. /package/lib/assets/{brave.svg → assets/brave.svg} +0 -0
  10. /package/lib/assets/{bscwallet.svg → assets/bscwallet.svg} +0 -0
  11. /package/lib/assets/{clover.svg → assets/clover.svg} +0 -0
  12. /package/lib/assets/{coin98.svg → assets/coin98.svg} +0 -0
  13. /package/lib/assets/{coinbase.svg → assets/coinbase.svg} +0 -0
  14. /package/lib/assets/{cryptoCom.svg → assets/cryptoCom.svg} +0 -0
  15. /package/lib/assets/{cyano.svg → assets/cyano.svg} +0 -0
  16. /package/lib/assets/{erc20Abi.json → assets/erc20Abi.json} +0 -0
  17. /package/lib/assets/{imtoken.svg → assets/imtoken.svg} +0 -0
  18. /package/lib/assets/{keplr.png → assets/keplr.png} +0 -0
  19. /package/lib/assets/{ledger.svg → assets/ledger.svg} +0 -0
  20. /package/lib/assets/{martian.svg → assets/martian.svg} +0 -0
  21. /package/lib/assets/{math.svg → assets/math.svg} +0 -0
  22. /package/lib/assets/{metamask.svg → assets/metamask.svg} +0 -0
  23. /package/lib/assets/{meteor.svg → assets/meteor.svg} +0 -0
  24. /package/lib/assets/{mynear.svg → assets/mynear.svg} +0 -0
  25. /package/lib/assets/{near.svg → assets/near.svg} +0 -0
  26. /package/lib/assets/{okx.svg → assets/okx.svg} +0 -0
  27. /package/lib/assets/{onto.svg → assets/onto.svg} +0 -0
  28. /package/lib/assets/{petra.svg → assets/petra.svg} +0 -0
  29. /package/lib/assets/{phantom.svg → assets/phantom.svg} +0 -0
  30. /package/lib/assets/{plena.svg → assets/plena.svg} +0 -0
  31. /package/lib/assets/{pontem.svg → assets/pontem.svg} +0 -0
  32. /package/lib/assets/{rabby.svg → assets/rabby.svg} +0 -0
  33. /package/lib/assets/{safepal.svg → assets/safepal.svg} +0 -0
  34. /package/lib/assets/{sender.svg → assets/sender.svg} +0 -0
  35. /package/lib/assets/{slope.svg → assets/slope.svg} +0 -0
  36. /package/lib/assets/{solflare.svg → assets/solflare.svg} +0 -0
  37. /package/lib/assets/{sollet.svg → assets/sollet.svg} +0 -0
  38. /package/lib/assets/{terra.svg → assets/terra.svg} +0 -0
  39. /package/lib/assets/{tokenpocket.svg → assets/tokenpocket.svg} +0 -0
  40. /package/lib/assets/{tronlink.svg → assets/tronlink.svg} +0 -0
  41. /package/lib/assets/{trust.svg → assets/trust.svg} +0 -0
  42. /package/lib/assets/{unstoppabledomains.svg → assets/unstoppabledomains.svg} +0 -0
  43. /package/lib/assets/{walletconnect.svg → assets/walletconnect.svg} +0 -0
  44. /package/lib/assets/{xdefi.svg → assets/xdefi.svg} +0 -0
@@ -96,6 +96,8 @@ var WalletConnect = /** @class */ (function (_super) {
96
96
  types_1.EnumChains.Linea,
97
97
  types_1.EnumChains.PolygonzkEVM,
98
98
  types_1.EnumChains.Telos,
99
+ types_1.EnumChains.OpBNB,
100
+ types_1.EnumChains.Mantle,
99
101
  ];
100
102
  _this.type = types_1.EnumWalletType.WalletConnect;
101
103
  _this.sdk = null;
@@ -131,86 +133,14 @@ var WalletConnect = /** @class */ (function (_super) {
131
133
  case 1:
132
134
  provider = _a.sent();
133
135
  console.log('provider', provider);
134
- // const provider = new WalletConnectProvider({
135
- // infuraId: this.infuraId,
136
- // chainId: chainId,
137
- // rpc: {
138
- // 69: "https://kovan.optimism.io",
139
- // 10: "https://rpc.ankr.com/optimism",
140
- // 25: "https://evm.cronos.org",
141
- // 56: "https://bsc-dataseed1.binance.org",
142
- // 66: "https://exchainrpc.okex.org",
143
- // 100: "https://rpc.xdaichain.com",
144
- // 128: "https://http-mainnet.hecochain.com",
145
- // 137: "https://rpc-mainnet.maticvigil.com",
146
- // 250: "https://rpcapi.fantom.network",
147
- // 288: "https://mainnet.boba.network",
148
- // 324: "https://mainnet.era.zksync.io",
149
- // 420: "https://goerli.optimism.io",
150
- // 1285: "https://rpc.moonriver.moonbeam.network",
151
- // 1088: "https://andromeda.metis.io/?owner=1088",
152
- // 2222: "https://evm2.kava.io",
153
- // 8217: "https://public-node-api.klaytnapi.com/v1/cypress",
154
- // 42161: "https://arb1.arbitrum.io/rpc",
155
- // 42220: "https://1rpc.io/celo",
156
- // 421611: "https://rinkeby.arbitrum.io/rpc",
157
- // 43114: "https://api.avax.network/ext/bc/C/rpc",
158
- // 59140: "https://rpc.goerli.linea.build",
159
- // 1313161554: "https://mainnet.aurora.dev",
160
- // 1666600000: "https://api.s0.t.hmny.io",
161
- // },
162
- // ...config,
163
- // })
164
136
  return [4 /*yield*/, provider.enable()];
165
137
  case 2:
166
- // const provider = new WalletConnectProvider({
167
- // infuraId: this.infuraId,
168
- // chainId: chainId,
169
- // rpc: {
170
- // 69: "https://kovan.optimism.io",
171
- // 10: "https://rpc.ankr.com/optimism",
172
- // 25: "https://evm.cronos.org",
173
- // 56: "https://bsc-dataseed1.binance.org",
174
- // 66: "https://exchainrpc.okex.org",
175
- // 100: "https://rpc.xdaichain.com",
176
- // 128: "https://http-mainnet.hecochain.com",
177
- // 137: "https://rpc-mainnet.maticvigil.com",
178
- // 250: "https://rpcapi.fantom.network",
179
- // 288: "https://mainnet.boba.network",
180
- // 324: "https://mainnet.era.zksync.io",
181
- // 420: "https://goerli.optimism.io",
182
- // 1285: "https://rpc.moonriver.moonbeam.network",
183
- // 1088: "https://andromeda.metis.io/?owner=1088",
184
- // 2222: "https://evm2.kava.io",
185
- // 8217: "https://public-node-api.klaytnapi.com/v1/cypress",
186
- // 42161: "https://arb1.arbitrum.io/rpc",
187
- // 42220: "https://1rpc.io/celo",
188
- // 421611: "https://rinkeby.arbitrum.io/rpc",
189
- // 43114: "https://api.avax.network/ext/bc/C/rpc",
190
- // 59140: "https://rpc.goerli.linea.build",
191
- // 1313161554: "https://mainnet.aurora.dev",
192
- // 1666600000: "https://api.s0.t.hmny.io",
193
- // },
194
- // ...config,
195
- // })
196
138
  _a.sent();
197
139
  console.log('provider', provider);
198
140
  this.sdk = new web3_1.default(provider);
199
141
  return [4 /*yield*/, this.sdk.eth.getChainId()];
200
142
  case 3:
201
143
  currentChainId = _a.sent();
202
- // if (chainId && currentChainId != chainId) {
203
- // if (!config || !config.isSecond) {
204
- // await provider.disconnect()
205
- // await new Promise(r => {
206
- // setTimeout(r, 500);
207
- // })
208
- // return await this.requestConnect(chainId, {
209
- // isSecond: true,
210
- // ...config
211
- // })
212
- // }
213
- // }
214
144
  if (chainId && currentChainId != chainId) {
215
145
  throw new Error(types_1.EnumErrors.ChainIdNotMath);
216
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/wallet",
3
- "version": "1.5.30",
3
+ "version": "1.5.31",
4
4
  "description": "A multi-chain wallets manager",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes