UNPKG

@unilogin/sdk

Version:

SDK is a JS library, that communicates with relayer. SDK allows managing contract, by creating basic contract-calling messages.

18 lines 944 B
import { providers, Contract } from 'ethers'; import { IWalletContractServiceStrategy } from './WalletContractService'; import { RelayerRequest } from '@unilogin/commons'; import { WalletEventType } from '../../core/models/events'; export declare class Beta2Service implements IWalletContractServiceStrategy { private provider; private contract?; constructor(provider: providers.Provider); getContractInstance(walletAddress: string): Contract; lastNonce(walletAddress: string): Promise<number>; keyExist(walletAddress: string, key: string): any; requiredSignatures(walletAddress: string): any; signMessage(privateKey: string, message: Uint8Array | string): string; encodeFunction(method: string, args?: any[]): string; getEventNameFor(event: string): WalletEventType; signRelayerRequest(privateKey: string, relayerRequest: RelayerRequest): RelayerRequest; } //# sourceMappingURL=Beta2Service.d.ts.map