@effectai/sdk
Version:
Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))
14 lines (13 loc) • 644 B
TypeScript
import { type AnyAction, type PermissionLevelType, type NameType } from "@wharfkit/antelope";
import type { Client } from "../../client";
export declare const swapDirection: {
EfxToUsdt: string;
UsdtToEfx: string;
};
export declare const buildSwapAction: (direction: string, actor: NameType, authorization: PermissionLevelType[], amount: number, tokenContract: string, efxPrice: number) => AnyAction;
export type SwapArgs = {
client: Client;
amount: number;
direction: "EfxToUsdt" | "UsdtToEfx";
};
export declare const swap: ({ client, amount, direction }: SwapArgs) => Promise<import("@wharfkit/session").TransactResult>;