barterjs-sdk
Version:
Barter Network SDK
31 lines (30 loc) • 794 B
TypeScript
import { BaseCurrency } from '../entities';
import { PromiEvent, TransactionReceipt } from 'web3-core';
export interface BarterTransactionReceipt {
to: string;
from: string;
gasUsed: string;
transactionHash: string;
blockHash?: string;
blockNumber?: number;
success?: boolean;
}
export interface BarterTransactionResponse {
hash?: string;
wait?: () => Promise<BarterTransactionReceipt>;
promiReceipt?: PromiEvent<TransactionReceipt>;
}
export interface BarterFee {
feeToken: BaseCurrency;
amount: string;
feeDistribution?: BarterFeeDistribution;
}
export declare type BarterFeeDistribution = {
protocol: number;
compensation: number;
lp?: number;
};
export interface VaultBalance {
token: BaseCurrency;
balance: string;
}