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:
parent
c7bb045264
commit
970c2011ef
@ -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
|
||||
}
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user