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

Move NFTFactory interface types to \@types

This commit is contained in:
Miquel A. Cabot 2022-06-06 09:03:18 +02:00
parent 733e70b686
commit 82b6b927bd
3 changed files with 27 additions and 24 deletions

23
src/@types/NFTFactory.ts Normal file
View File

@ -0,0 +1,23 @@
import { ConsumeMarketFee, ProviderFees } from '.'
export interface Template {
templateAddress: string
isActive: boolean
}
export interface TokenOrder {
tokenAddress: string
consumer: string
serviceIndex: number
_providerFee: ProviderFees
_consumeMarketFee: ConsumeMarketFee
}
export interface NftCreateData {
name: string
symbol: string
templateIndex: number
tokenURI: string
transferable: boolean
owner: string
}

View File

@ -11,6 +11,7 @@ export * from './Erc20'
export * from './Erc721'
export * from './FileMetadata'
export * from './FixedPrice'
export * from './NFTFactory'
export * from './Pool'
export * from './Provider'
export * from './Router'

View File

@ -16,36 +16,15 @@ import {
} from '../../utils'
import { Config, ConfigHelper } from '../../config'
import {
ProviderFees,
FreCreationParams,
Erc20CreateParams,
PoolCreationParams,
DispenserCreationParams,
ConsumeMarketFee
NftCreateData,
Template,
TokenOrder
} from '../../@types'
interface Template {
templateAddress: string
isActive: boolean
}
export interface TokenOrder {
tokenAddress: string
consumer: string
serviceIndex: number
_providerFee: ProviderFees
_consumeMarketFee: ConsumeMarketFee
}
export interface NftCreateData {
name: string
symbol: string
templateIndex: number
tokenURI: string
transferable: boolean
owner: string
}
/**
* Provides an interface for NFT Factory contract
*/