@sodax/wallet-sdk-react 0.0.1-rc.2 → 0.0.1-rc.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/dist/index.cjs CHANGED
@@ -9,8 +9,8 @@ var iconSdkJs = require('icon-sdk-js');
9
9
  var networks = require('@injectivelabs/networks');
10
10
  var sdkTs = require('@injectivelabs/sdk-ts');
11
11
  var tsTypes = require('@injectivelabs/ts-types');
12
- var walletEvm = require('@injectivelabs/wallet-evm');
13
12
  var walletCore = require('@injectivelabs/wallet-core');
13
+ var walletStrategy = require('@injectivelabs/wallet-strategy');
14
14
  var walletBase = require('@injectivelabs/wallet-base');
15
15
  var walletCosmos = require('@injectivelabs/wallet-cosmos');
16
16
  var web3_js = require('@solana/web3.js');
@@ -565,21 +565,12 @@ var InjectiveXService = class _InjectiveXService extends XService {
565
565
  constructor() {
566
566
  super("INJECTIVE");
567
567
  const endpoints = networks.getNetworkEndpoints(networks.Network.Mainnet);
568
- this.walletStrategy = new walletCore.BaseWalletStrategy({
568
+ this.walletStrategy = new walletStrategy.WalletStrategy({
569
569
  chainId: tsTypes.ChainId.Mainnet,
570
- strategies: {
571
- [walletBase.Wallet.Metamask]: new walletEvm.EvmWalletStrategy({
572
- chainId: tsTypes.ChainId.Mainnet,
573
- wallet: walletBase.Wallet.Metamask,
574
- evmOptions: {
575
- evmChainId: tsTypes.EvmChainId.Mainnet,
576
- rpcUrl: chains.mainnet.rpcUrls.default.http[0]
577
- }
578
- })
579
- // [Wallet.Keplr]: new CosmosWalletStrategy({
580
- // chainId: InjectiveChainId.Mainnet,
581
- // wallet: Wallet.Keplr,
582
- // }),
570
+ strategies: {},
571
+ evmOptions: {
572
+ evmChainId: chains.mainnet.id,
573
+ rpcUrl: chains.mainnet.rpcUrls.default.http[0]
583
574
  }
584
575
  });
585
576
  this.indexerGrpcAccountPortfolioApi = new sdkTs.IndexerGrpcAccountPortfolioApi(endpoints.indexer);
@@ -1003,7 +994,7 @@ var initXServices = (config) => {
1003
994
  break;
1004
995
  case "INJECTIVE":
1005
996
  xServices[xChainType] = InjectiveXService.getInstance();
1006
- xServices[xChainType].setXConnectors([new InjectiveMetamaskXConnector()]);
997
+ xServices[xChainType].setXConnectors([new InjectiveMetamaskXConnector(), new InjectiveKelprXConnector()]);
1007
998
  break;
1008
999
  case "STELLAR":
1009
1000
  xServices[xChainType] = StellarXService.getInstance();