@pontem/aptos-wallet-adapter
Version:
Wallet adapter with supporting Vue and React
37 lines • 1.56 kB
TypeScript
import { Web3ProviderType } from '@fewcha/web3';
import { AccountKeys, BaseWalletAdapter, NetworkInfo, SignMessagePayload, SignMessageResponse, WalletAdapterNetwork, WalletName, WalletReadyState } from './BaseAdapter';
import { Types } from 'aptos';
export declare const FewchaWalletName: WalletName<"Fewcha">;
export interface FewchaAdapterConfig {
provider?: string;
timeout?: number;
}
export declare class FewchaWalletAdapter extends BaseWalletAdapter {
name: WalletName<"Fewcha">;
url: string;
icon: string;
protected _provider: Web3ProviderType | 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 }?: FewchaAdapterConfig);
get publicAccount(): AccountKeys;
get network(): NetworkInfo;
get connecting(): boolean;
get connected(): boolean;
get readyState(): WalletReadyState;
connect(): Promise<void>;
disconnect(): Promise<void>;
signTransaction(transaction: Types.TransactionPayload, options?: any): Promise<Uint8Array>;
signAndSubmitTransaction(transaction: Types.TransactionPayload, options?: any): Promise<{
hash: Types.HexEncodedBytes;
}>;
signMessage(msgPayload: SignMessagePayload): Promise<SignMessageResponse>;
onAccountChange(): Promise<void>;
onNetworkChange(): Promise<void>;
}
//# sourceMappingURL=FewchaWallet.d.ts.map