near-ca-test
Version:
An SDK for controlling Ethereum Accounts from a Near Account.
15 lines (14 loc) • 693 B
TypeScript
import { Hex, Signature } from "viem";
import { NearEncodedSignRequest } from "./types";
import { NearEthAdapter } from "./chains/ethereum";
import { Web3WalletTypes } from "@walletconnect/web3wallet";
/**
* Features currently underdevelopment that will be migrated into the adapter class once refined.
* These features are accessible through the adapter class as `adapter.beta.methodName(...)`
*/
export declare class Beta {
adapter: NearEthAdapter;
constructor(adapter: NearEthAdapter);
handleSessionRequest(request: Partial<Web3WalletTypes.SessionRequest>): Promise<NearEncodedSignRequest>;
respondSessionRequest(signature: Signature, transaction?: Hex): Promise<Hex>;
}