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:
parent
82b6b927bd
commit
f96f8fb59b
@ -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
|
||||||
|
}
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user