UNPKG

near-ca

Version:

An SDK for controlling Ethereum Accounts from a Near Account.

20 lines (19 loc) 778 B
import { Action } from "near-api-js/lib/transaction"; import { FunctionCallAction } from "./interfaces"; /** * Converts a FunctionCallTransaction to an array of Action. * * @typeParam T - The type of the function call action arguments * @param action - The function call transaction to convert * @returns An array of Action objects */ export declare function convertToAction<T>(action: FunctionCallAction<T>): Action; /** * Converts a structure `T` into `object | Uint8Array` * * @typeParam T - The type of the input structure * @param input - The input structure to convert * @returns The converted result as either an object or Uint8Array * @throws Error if conversion fails */ export declare function convertToCompatibleFormat<T>(input: T): object | Uint8Array;