@injectivelabs/wallet-cosmostation 1.16.25-alpha.1 → 1.16.25

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.
@@ -1,57 +0,0 @@
1
- import * as _cosmostation_extension_client_cosmos_js0 from "@cosmostation/extension-client/cosmos.js";
2
- import { AccountAddress, ChainId, CosmosChainId, EvmChainId, TestnetCosmosChainId } from "@injectivelabs/ts-types";
3
- import { AminoSignResponse, CosmosTxV1Beta1TxPb, DirectSignResponse, TxResponse } from "@injectivelabs/sdk-ts";
4
- import { BaseConcreteStrategy, ConcreteWalletStrategy, StdSignDoc, WalletDeviceType } from "@injectivelabs/wallet-base";
5
- import { OfflineSigner } from "@cosmjs/proto-signing";
6
-
7
- //#region src/utils/index.d.ts
8
- declare const isCosmosStationWalletInstalled: () => boolean;
9
- //#endregion
10
- //#region src/wallet.d.ts
11
- declare class CosmostationWallet {
12
- private chainId;
13
- constructor(chainId: CosmosChainId | TestnetCosmosChainId | ChainId);
14
- static isChainIdSupported(chainId: CosmosChainId): Promise<boolean>;
15
- checkChainIdSupport(): Promise<boolean>;
16
- getCosmostationWallet(): Promise<typeof _cosmostation_extension_client_cosmos_js0>;
17
- }
18
- //#endregion
19
- //#region src/strategy/strategy.d.ts
20
- declare class Cosmostation extends BaseConcreteStrategy implements ConcreteWalletStrategy {
21
- private cosmostationWallet?;
22
- chainName: string;
23
- constructor(args: {
24
- chainId: ChainId | CosmosChainId;
25
- });
26
- getWalletDeviceType(): Promise<WalletDeviceType>;
27
- enable(): Promise<boolean>;
28
- getAddresses(): Promise<string[]>;
29
- getSessionOrConfirm(address?: AccountAddress): Promise<string>;
30
- sendEvmTransaction(_transaction: unknown, _options: {
31
- address: AccountAddress;
32
- evmChainId: EvmChainId;
33
- }): Promise<string>;
34
- sendTransaction(transaction: DirectSignResponse | CosmosTxV1Beta1TxPb.TxRaw, _options: {
35
- address: AccountAddress;
36
- chainId: ChainId;
37
- }): Promise<TxResponse>;
38
- signAminoCosmosTransaction(_transaction: {
39
- address: string;
40
- signDoc: StdSignDoc;
41
- }): Promise<AminoSignResponse>;
42
- signCosmosTransaction(transaction: {
43
- txRaw: CosmosTxV1Beta1TxPb.TxRaw;
44
- chainId: string;
45
- address: string;
46
- accountNumber: number;
47
- }): Promise<DirectSignResponse>;
48
- getPubKey(): Promise<string>;
49
- signEip712TypedData(_eip712TypedData: string, _address: AccountAddress): Promise<string>;
50
- signArbitrary(signer: string, data: string | Uint8Array): Promise<string>;
51
- getEthereumChainId(): Promise<string>;
52
- getEvmTransactionReceipt(_txHash: string): Promise<string>;
53
- getOfflineSigner(chainId: string): Promise<OfflineSigner>;
54
- private getCosmostationWallet;
55
- }
56
- //#endregion
57
- export { CosmostationWallet, Cosmostation as CosmostationWalletStrategy, isCosmosStationWalletInstalled };