@keplr-wallet/types 0.13.12 → 0.13.14

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.
@@ -43,6 +43,9 @@ export interface ChainInfo {
43
43
  readonly hideInUI?: boolean;
44
44
  readonly evm?: EVMInfo;
45
45
  readonly isTestnet?: boolean;
46
+ readonly explorers?: {
47
+ readonly txPage: string;
48
+ };
46
49
  }
47
50
  export type ChainInfoWithoutEndpoints = Omit<ChainInfo, "rest" | "rpc" | "nodeProvider" | "evm"> & {
48
51
  readonly rest: undefined;
@@ -183,6 +183,15 @@ export interface Keplr {
183
183
  }>>;
184
184
  signPsbt(chainId: string, psbtHex: string, options?: SignPsbtOptions): Promise<string>;
185
185
  signPsbts(chainId: string, psbtsHexes: string[], options?: SignPsbtOptions): Promise<string[]>;
186
+ getAllWallets(): Promise<{
187
+ id: string;
188
+ name: string;
189
+ isSelected: boolean;
190
+ addresses: {
191
+ [chainId: string]: string;
192
+ };
193
+ }[]>;
194
+ switchAccount(id: string): Promise<void>;
186
195
  readonly ethereum: IEthereumProvider;
187
196
  readonly starknet: IStarknetProvider;
188
197
  readonly bitcoin: IBitcoinProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keplr-wallet/types",
3
- "version": "0.13.12",
3
+ "version": "0.13.14",
4
4
  "main": "build/index.js",
5
5
  "author": "chainapsis",
6
6
  "license": "Apache-2.0",
@@ -26,5 +26,5 @@
26
26
  "peerDependencies": {
27
27
  "starknet": "^8"
28
28
  },
29
- "gitHead": "e6b3153ab63d69546dd5fd066b55f5632266ed4d"
29
+ "gitHead": "e7c4ee733db51470836ace5851b430eb771ad56e"
30
30
  }
package/src/chain-info.ts CHANGED
@@ -51,6 +51,10 @@ export interface ChainInfo {
51
51
  readonly evm?: EVMInfo;
52
52
 
53
53
  readonly isTestnet?: boolean;
54
+
55
+ readonly explorers?: {
56
+ readonly txPage: string;
57
+ };
54
58
  }
55
59
 
56
60
  export type ChainInfoWithoutEndpoints = Omit<
@@ -337,6 +337,18 @@ export interface Keplr {
337
337
  psbtsHexes: string[],
338
338
  options?: SignPsbtOptions
339
339
  ): Promise<string[]>;
340
+
341
+ getAllWallets(): Promise<
342
+ {
343
+ id: string;
344
+ name: string;
345
+ isSelected: boolean;
346
+ addresses: { [chainId: string]: string };
347
+ }[]
348
+ >;
349
+
350
+ switchAccount(id: string): Promise<void>;
351
+
340
352
  readonly ethereum: IEthereumProvider;
341
353
 
342
354
  readonly starknet: IStarknetProvider;