@hashgraph/hedera-wallet-connect
Version:
A library to facilitate integrating Hedera with WalletConnect
34 lines (33 loc) • 1.19 kB
TypeScript
import { EventEmitter } from 'events';
import { SessionTypes } from '@walletconnect/types';
import { IProvider, SessionNamespace, RpcProvidersMap, RequestParams, Namespace } from '@walletconnect/universal-provider';
declare class EIP155Provider implements IProvider {
name: string;
client: IProvider['client'];
chainId: number;
namespace: SessionNamespace;
httpProviders: RpcProvidersMap;
events: EventEmitter;
private logger;
constructor({ client, events, namespace, }: {
client: IProvider['client'];
events: EventEmitter;
namespace: Namespace;
});
request<T = unknown>(args: RequestParams): Promise<T>;
updateNamespace(namespace: SessionTypes.Namespace): void;
setDefaultChain(chainId: string, rpcUrl?: string | undefined): void;
requestAccounts(): string[];
getDefaultChain(): string;
private createHttpProvider;
private setHttpProvider;
private createHttpProviders;
private getAccounts;
private getHttpProvider;
private switchChain;
private isChainApproved;
private getCallStatus;
private getUserOperationReceipt;
private getBundlerUrl;
}
export default EIP155Provider;