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

Move Dispenser interface types to @types

This commit is contained in:
Miquel A. Cabot 2022-06-06 09:05:35 +02:00
parent 82b6b927bd
commit f96f8fb59b
2 changed files with 11 additions and 10 deletions

View File

@ -5,3 +5,13 @@ export interface DispenserCreationParams {
withMint?: boolean // true if we want to allow the dispenser to be a minter 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 allowedSwapper?: string // only account that can ask tokens. set address(0) if not required
} }
export interface DispenserToken {
active: boolean
owner: string
maxTokens: string
maxBalance: string
balance: string
isMinter: boolean
allowedSwapper: string
}

View File

@ -12,16 +12,7 @@ import {
} from '../../utils/' } from '../../utils/'
import { Datatoken } from '..' import { Datatoken } from '..'
import { Config, ConfigHelper } from '../../config' import { Config, ConfigHelper } from '../../config'
import { DispenserToken } from '../../@types'
export interface DispenserToken {
active: boolean
owner: string
maxTokens: string
maxBalance: string
balance: string
isMinter: boolean
allowedSwapper: string
}
export class Dispenser { export class Dispenser {
public web3: Web3 = null public web3: Web3 = null