soroswap-utils
Version:
Utilities for interacting with Soroswap, the decentralized exchange (DEX) on Soroban, which is the smart contracts platform of the Stellar network.
14 lines (10 loc) • 477 B
text/typescript
/* eslint-disable @typescript-eslint/naming-convention */
type SoroswapFactoryContract = "SoroswapFactory" | "factory";
type SoroswapRouterContract = "SoroswapRouter" | "router";
type SoroswapPairContract =
| { readonly pair: readonly string[]; readonly SoroswapPair?: never }
| { readonly pair?: never; readonly SoroswapPair: readonly string[] };
export type SoroswapContract =
| SoroswapFactoryContract
| SoroswapRouterContract
| SoroswapPairContract;