@injectivelabs/wallet-base 1.18.22 → 1.18.24

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.
@@ -140,6 +140,17 @@ const getEvmChainConfig = (chainId) => {
140
140
  } },
141
141
  testnet: true
142
142
  };
143
+ if (chainId === __injectivelabs_ts_types.EvmChainId.TestnetEvm) return {
144
+ id: __injectivelabs_ts_types.EvmChainId.TestnetEvm,
145
+ name: "Injective Testnet",
146
+ nativeCurrency: viem_chains.injective.nativeCurrency,
147
+ rpcUrls: { default: { http: ["https://k8s.testnet.json-rpc.injective.network"] } },
148
+ blockExplorers: { default: {
149
+ name: "Blockscout",
150
+ url: "https://testnet.blockscout.injective.network"
151
+ } },
152
+ testnet: true
153
+ };
143
154
  try {
144
155
  return (0, viem.extractChain)({
145
156
  id: chainId,
@@ -394,7 +394,7 @@ interface BrowserEip1993Provider extends EIP1193Provider {
394
394
  isOkxWallet: boolean;
395
395
  isTrustWallet: boolean;
396
396
  }
397
- interface WindowWithEip1193Provider extends Omit<Window, 'ethereum'> {
397
+ interface WindowWithEip1193Provider extends Omit<Window, 'ethereum' | 'keplr'> {
398
398
  rainbow: BrowserEip1993Provider;
399
399
  rabby: BrowserEip1993Provider;
400
400
  ethereum: BrowserEip1993Provider;
@@ -407,6 +407,9 @@ interface WindowWithEip1193Provider extends Omit<Window, 'ethereum'> {
407
407
  phantom?: {
408
408
  ethereum?: BrowserEip1993Provider;
409
409
  };
410
+ keplr?: {
411
+ ethereum?: BrowserEip1993Provider;
412
+ };
410
413
  }
411
414
  interface EIP6963ProviderInfo {
412
415
  rdns: string;
@@ -394,7 +394,7 @@ interface BrowserEip1993Provider extends EIP1193Provider {
394
394
  isOkxWallet: boolean;
395
395
  isTrustWallet: boolean;
396
396
  }
397
- interface WindowWithEip1193Provider extends Omit<Window, 'ethereum'> {
397
+ interface WindowWithEip1193Provider extends Omit<Window, 'ethereum' | 'keplr'> {
398
398
  rainbow: BrowserEip1993Provider;
399
399
  rabby: BrowserEip1993Provider;
400
400
  ethereum: BrowserEip1993Provider;
@@ -407,6 +407,9 @@ interface WindowWithEip1193Provider extends Omit<Window, 'ethereum'> {
407
407
  phantom?: {
408
408
  ethereum?: BrowserEip1993Provider;
409
409
  };
410
+ keplr?: {
411
+ ethereum?: BrowserEip1993Provider;
412
+ };
410
413
  }
411
414
  interface EIP6963ProviderInfo {
412
415
  rdns: string;
package/dist/esm/index.js CHANGED
@@ -113,6 +113,17 @@ const getEvmChainConfig = (chainId) => {
113
113
  } },
114
114
  testnet: true
115
115
  };
116
+ if (chainId === EvmChainId.TestnetEvm) return {
117
+ id: EvmChainId.TestnetEvm,
118
+ name: "Injective Testnet",
119
+ nativeCurrency: injective.nativeCurrency,
120
+ rpcUrls: { default: { http: ["https://k8s.testnet.json-rpc.injective.network"] } },
121
+ blockExplorers: { default: {
122
+ name: "Blockscout",
123
+ url: "https://testnet.blockscout.injective.network"
124
+ } },
125
+ testnet: true
126
+ };
116
127
  try {
117
128
  return extractChain({
118
129
  id: chainId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-base",
3
- "version": "1.18.22",
3
+ "version": "1.18.24",
4
4
  "description": "Base wallet strategy for use with @injectivelabs/wallet-core.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -44,9 +44,9 @@
44
44
  "dependencies": {
45
45
  "eip1193-provider": "^1.0.1",
46
46
  "viem": "^2.41.2",
47
- "@injectivelabs/exceptions": "1.18.22",
48
- "@injectivelabs/sdk-ts": "1.18.22",
49
- "@injectivelabs/ts-types": "1.18.22"
47
+ "@injectivelabs/exceptions": "1.18.24",
48
+ "@injectivelabs/ts-types": "1.18.24",
49
+ "@injectivelabs/sdk-ts": "1.18.24"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"