UNPKG

ulysses-sdk

Version:

An sdk for interacting with the Ulysses contracts

19 lines (18 loc) 863 B
import JSBI from 'jsbi'; import { IMulticallCall, IMultipleDepositParams, IPayableCall, ISingleDepositParams } from '../types'; /** * Checks if the single deposit params are valid. * @param depositParams */ export declare function singleDepositInvariantHelper(depositParams: ISingleDepositParams): void; /** * Checks if the multipledeposit params are valid. * @param depositParams */ export declare function multipleDepositInvariantHelper(depositParams: IMultipleDepositParams): void; /** * Invariant helper for the virtual account function that encodes multiple calls, either payable or not. * @param calls */ export declare function virtualAccountCallInvariantHelper(calls: Array<IPayableCall | IMulticallCall>): void; export declare function virtualAccountWithdrawInvariantHelper(token: string, amount?: JSBI, tokenId?: JSBI): void;