mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import { ProviderFees } from '.'
|
|
|
|
export interface DatatokenCreateParams {
|
|
templateIndex: number
|
|
minter: string
|
|
paymentCollector: string
|
|
mpFeeAddress: string
|
|
feeToken: string
|
|
feeAmount: string
|
|
cap: string
|
|
name?: string
|
|
symbol?: string
|
|
}
|
|
|
|
export interface ConsumeMarketFee {
|
|
consumeMarketFeeAddress: string
|
|
consumeMarketFeeToken: string // address of the token marketplace wants to add fee on top
|
|
consumeMarketFeeAmount: string
|
|
}
|
|
|
|
export interface PublishingMarketFee {
|
|
publishMarketFeeAddress: string
|
|
publishMarketFeeToken: string
|
|
publishMarketFeeAmount: string
|
|
}
|
|
|
|
export interface DatatokenRoles {
|
|
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, default true
|
|
allowedSwapper?: string // only account that can ask tokens. set address(0) if not required
|
|
}
|