1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Move FixedRateExchange interface types to @types

This commit is contained in:
Miquel A. Cabot 2022-06-06 09:08:23 +02:00
parent c7bb045264
commit 970c2011ef
2 changed files with 27 additions and 40 deletions

View File

@ -25,3 +25,29 @@ export interface PriceAndFees {
marketFeeAmount: string
consumeMarketFeeAmount: string
}
export interface FixedPriceExchange {
active: boolean
exchangeOwner: string
datatoken: string
baseToken: string
fixedRate: string
dtDecimals: string
btDecimals: string
dtBalance: string
btBalance: string
dtSupply: string
btSupply: string
withMint: boolean
allowedSwapper: string
exchangeId?: string
}
export interface FeesInfo {
opcFee: string
marketFee: string
marketFeeCollector: string
marketFeeAvailable: string
oceanFeeAvailable: string
exchangeId: string
}

View File

@ -13,46 +13,7 @@ import {
ZERO_ADDRESS
} from '../../utils'
import { Config, ConfigHelper } from '../../config'
import { PriceAndFees } from '../../@types'
export interface FixedPriceExchange {
active: boolean
exchangeOwner: string
datatoken: string
baseToken: string
fixedRate: string
dtDecimals: string
btDecimals: string
dtBalance: string
btBalance: string
dtSupply: string
btSupply: string
withMint: boolean
allowedSwapper: string
exchangeId?: string
}
export interface FeesInfo {
opcFee: string
marketFee: string
marketFeeCollector: string
marketFeeAvailable: string
oceanFeeAvailable: string
exchangeId: string
}
export interface FixedPriceSwap {
exchangeId: string
caller: string
baseTokenAmount: string
datatokenAmount: string
}
/* eslint-disable no-unused-vars */
export enum FixedRateCreateProgressStep {
CreatingExchange,
ApprovingDatatoken
}
/* eslint-enable no-unused-vars */
import { PriceAndFees, FeesInfo, FixedPriceExchange } from '../../@types'
export class FixedRateExchange {
/** Ocean related functions */