@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
17 lines (16 loc) • 1.04 kB
TypeScript
import { Contracts } from '../lib/Contracts';
import { AccountInfo, address, ContractCallOptions, ContractConstantCallOptions, Integer, TxResult } from '../types';
export declare class Expiry {
private contracts;
constructor(contracts: Contracts);
get address(): string;
getExpiry(accountOwner: address, accountNumber: Integer, marketId: Integer, options?: ContractConstantCallOptions): Promise<Integer>;
getApproval(approver: address, sender: address, options?: ContractConstantCallOptions): Promise<Integer>;
getPrices(liquidAccount: AccountInfo, heldMarketId: Integer, owedMarketId: Integer, expiryTimestamp: Integer, options?: ContractConstantCallOptions): Promise<{
heldPrice: Integer;
owedPrice: Integer;
}>;
getRampTime(options?: ContractConstantCallOptions): Promise<Integer>;
setApproval(sender: address, minTimeDelta: Integer, options?: ContractCallOptions): Promise<TxResult>;
setExpiryRampTime(newExpiryRampTime: Integer, options?: ContractCallOptions): Promise<TxResult>;
}