@pontem/aptos-wallet-adapter
Version:
Wallet adapter with supporting Vue and React
54 lines • 1.86 kB
TypeScript
import { MaybeHexString, Types } from 'aptos';
import { AccountKeys, BaseWalletAdapter, NetworkInfo, WalletAdapterNetwork, WalletName, WalletReadyState } from './BaseAdapter';
export declare const HippoWalletName: WalletName<"Hippo Web">;
export interface HippoWalletAdapterConfig {
provider?: string;
timeout?: number;
}
export declare class HippoWalletAdapter extends BaseWalletAdapter {
name: WalletName<"Hippo Web">;
url: string;
icon: string;
protected _provider: string | undefined;
protected _network: WalletAdapterNetwork;
protected _chainId: string;
protected _api: string;
protected _timeout: number;
protected _readyState: WalletReadyState;
protected _connecting: boolean;
protected _wallet: any | null;
constructor({ timeout }?: HippoWalletAdapterConfig);
get publicAccount(): AccountKeys;
get network(): NetworkInfo;
get connecting(): boolean;
get connected(): boolean;
get readyState(): WalletReadyState;
handleMessage: (e: MessageEvent<{
id: number;
method: string;
address?: {
hexString: MaybeHexString;
};
publicKey?: {
hexString: MaybeHexString;
};
authKey?: {
hexString: MaybeHexString;
};
detail?: {
hash: MaybeHexString;
};
error?: string;
}>) => void;
connect(): Promise<void>;
disconnect(): Promise<void>;
signTransaction(transaction: Types.TransactionPayload): Promise<Uint8Array>;
signAndSubmitTransaction(transaction: Types.TransactionPayload): Promise<{
hash: Types.HexEncodedBytes;
}>;
signMessage(message: string): Promise<string>;
onAccountChange(): Promise<void>;
onNetworkChange(): Promise<void>;
private _beforeUnload;
}
//# sourceMappingURL=HippoWallet.d.ts.map