@dappykit/sdk
Version:
Web3 SDK for DApps
28 lines (27 loc) • 999 B
TypeScript
import { HttpClient } from '../http-client/http-client';
import { ISmartAccountInfoResponse, IVerifyResponse } from './verification/interface';
/**
* Methods for verification
*/
export declare class GatewayVerification {
readonly httpClient: HttpClient;
readonly version = "v1";
constructor(httpClient: HttpClient);
/**
* Gets smart account info by address of the EOA
* @param address Address of the EOA
*/
getSmartAccountInfo(address: string): Promise<ISmartAccountInfoResponse>;
/**
* Verifies Google data with the EOA signature
* @param data Google data
* @param eoaSignature EOA signature of the data
* @param smartAccountAddress Smart account address, can be empty
*/
verifyGoogle(data: string, eoaSignature: string, smartAccountAddress?: string): Promise<IVerifyResponse>;
/**
* Verifies Farcaster data
* @param clickData Click data
*/
verifyFarcaster(clickData: string): Promise<IVerifyResponse>;
}