UNPKG

@mai3/phaser-sdk

Version:

A UI component library based on the Phaser game engine

26 lines 1.4 kB
import { ConnectEVMWalletButtonConfig } from "../types"; import { AppKit } from "@reown/appkit"; import { WagmiAdapter } from "@reown/appkit-adapter-wagmi"; export declare class EVMConnector { private static config; static wagmiAdapter: WagmiAdapter; static connector: AppKit; private static walletChanged?; private static onSigned?; static init(config: ConnectEVMWalletButtonConfig, walletChanged?: (wallet: unknown, address?: string) => void, onSigned?: (signMessage: string, signature: string, address?: string) => void): Promise<EVMConnector>; static getInstance(): Promise<EVMConnector>; static openModal(): Promise<void>; static disconnect(): Promise<void>; static getAccountAddress(): string | undefined; private static isSigning; static signMessage(str: string): Promise<{ signMessage: string; signature: `0x${string}`; } | undefined>; static deposit(contractAddress: string, amount: bigint): Promise<`0x${string}`>; static withdraw(contractAddress: string, withdrawNo: string, amount: bigint, signature: string): Promise<`0x${string}`>; static getToken(contractAddress: string): Promise<unknown>; static getTokenDecimals(tokenAddress: string): Promise<unknown>; static approveToken(tokenAddress: string, contractAddress: string, amount: bigint): Promise<void>; } //# sourceMappingURL=EVMConnetor.d.ts.map