UNPKG

@basex-fi/sdk-core

Version:

An SDK for building applications on top of BaseX

25 lines (24 loc) 782 B
import JSBI from "jsbi"; import { Interface } from "@ethersproject/abi"; import { Percent, Token } from "./entities"; export interface FeeOptions { /** * The percent of the output that will be taken as a fee. */ fee: Percent; /** * The recipient of the fee. */ recipient: string; } export declare abstract class Payments { static INTERFACE: Interface; /** * Cannot be constructed. */ private constructor(); private static encodeFeeBips; static encodeUnwrapWETH9(amountMinimum: JSBI, recipient: string, feeOptions?: FeeOptions): string; static encodeSweepToken(token: Token, amountMinimum: JSBI, recipient: string, feeOptions?: FeeOptions): string; static encodeRefundETH(): string; }