mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
Move Datatoken interface types to @types
This commit is contained in:
parent
ff3e509944
commit
433878c54c
@ -1,3 +1,5 @@
|
||||
import { ProviderFees } from '.'
|
||||
|
||||
export interface Erc20CreateParams {
|
||||
templateIndex: number
|
||||
minter: string
|
||||
@ -21,3 +23,22 @@ export interface PublishingMarketFee {
|
||||
publishMarketFeeToken: string
|
||||
publishMarketFeeAmount: string
|
||||
}
|
||||
|
||||
export interface Roles {
|
||||
minter: boolean
|
||||
paymentManager: boolean
|
||||
}
|
||||
|
||||
export interface OrderParams {
|
||||
consumer: string
|
||||
serviceIndex: number
|
||||
_providerFee: ProviderFees
|
||||
_consumeMarketFee: ConsumeMarketFee
|
||||
}
|
||||
|
||||
export interface DispenserParams {
|
||||
maxTokens: string
|
||||
maxBalance: string
|
||||
withMint?: boolean // true if we want to allow the dispenser to be a minter
|
||||
allowedSwapper?: string // only account that can ask tokens. set address(0) if not required
|
||||
}
|
||||
|
@ -18,33 +18,14 @@ import {
|
||||
FreOrderParams,
|
||||
FreCreationParams,
|
||||
ProviderFees,
|
||||
PublishingMarketFee
|
||||
PublishingMarketFee,
|
||||
DispenserParams,
|
||||
OrderParams,
|
||||
Roles
|
||||
} from '../../@types'
|
||||
import { Nft } from './NFT'
|
||||
import { Config, ConfigHelper } from '../../config'
|
||||
|
||||
/**
|
||||
* ERC20 ROLES
|
||||
*/
|
||||
interface Roles {
|
||||
minter: boolean
|
||||
paymentManager: boolean
|
||||
}
|
||||
|
||||
export interface OrderParams {
|
||||
consumer: string
|
||||
serviceIndex: number
|
||||
_providerFee: ProviderFees
|
||||
_consumeMarketFee: ConsumeMarketFee
|
||||
}
|
||||
|
||||
export interface DispenserParams {
|
||||
maxTokens: string
|
||||
maxBalance: string
|
||||
withMint?: boolean // true if we want to allow the dispenser to be a minter
|
||||
allowedSwapper?: string // only account that can ask tokens. set address(0) if not required
|
||||
}
|
||||
|
||||
export class Datatoken {
|
||||
public factoryAddress: string
|
||||
public factoryABI: AbiItem | AbiItem[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user