@injectivelabs/wallet-cosmostation 1.16.25-alpha.2 → 1.16.25-beta.0
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/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +22 -0
- package/dist/cjs/package.json +2 -2
- package/dist/cjs/strategy/strategy.d.ts +43 -0
- package/dist/cjs/strategy/strategy.js +205 -0
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.js +8 -0
- package/dist/cjs/wallet.d.ts +8 -0
- package/dist/cjs/wallet.js +44 -0
- package/dist/esm/index.d.ts +3 -57
- package/dist/esm/index.js +3 -255
- package/dist/esm/package.json +2 -2
- package/dist/esm/strategy/strategy.d.ts +43 -0
- package/dist/esm/strategy/strategy.js +201 -0
- package/dist/esm/utils/index.d.ts +1 -0
- package/dist/esm/utils/index.js +4 -0
- package/dist/esm/wallet.d.ts +8 -0
- package/dist/esm/wallet.js +40 -0
- package/package.json +18 -18
- package/dist/cjs/index.cjs +0 -257
- package/dist/cjs/index.d.cts +0 -57
package/dist/cjs/index.d.cts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as _cosmostation_extension_client_cosmos0 from "@cosmostation/extension-client/cosmos";
|
|
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_cosmos0>;
|
|
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 };
|