UNPKG

@pushchain/ui-kit

Version:

Push Chain is a true universal L1 that is 100% EVM compatible. It allows developers to deploy once and make their apps instantly compatible with users from all other L1s (Ethereum, Solana, etc) with zero on-chain code change.

20 lines (19 loc) 940 B
import type { SignAuthorizationParams, SignedAuthorization } from '@pushchain/core'; import { BaseWalletProvider } from '../BaseWalletProvider'; import { ChainType, ITypedData } from '../../../types/wallet.types'; export declare class ZerionProvider extends BaseWalletProvider { constructor(); isInstalled: () => Promise<boolean>; private getProvider; getSigner: () => Promise<import("ethers").JsonRpcSigner>; getChainId: () => Promise<number>; connect: (chainType: ChainType) => Promise<{ caipAddress: string; }>; switchNetwork: (chainName: ChainType) => Promise<void>; signAndSendTransaction: (txn: Uint8Array) => Promise<Uint8Array>; signMessage: (message: Uint8Array) => Promise<Uint8Array>; signTypedData: (typedData: ITypedData) => Promise<Uint8Array>; signAuthorization: (params: SignAuthorizationParams) => Promise<SignedAuthorization>; disconnect: () => Promise<void>; }