mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
Set withMint default to true (#1693)
* make withMint default to true * fix lint
This commit is contained in:
parent
865618a376
commit
5306d75208
@ -39,6 +39,6 @@ export interface OrderParams {
|
|||||||
export interface DispenserParams {
|
export interface DispenserParams {
|
||||||
maxTokens: string
|
maxTokens: string
|
||||||
maxBalance: string
|
maxBalance: string
|
||||||
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, default true
|
||||||
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
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ export interface DispenserCreationParams {
|
|||||||
dispenserAddress: string
|
dispenserAddress: string
|
||||||
maxTokens: string // how many tokens cand be dispensed when someone requests . If maxTokens=2 then someone can't request 3 in one tx
|
maxTokens: string // how many tokens cand be dispensed when someone requests . If maxTokens=2 then someone can't request 3 in one tx
|
||||||
maxBalance: string // how many dt the user has in it's wallet before the dispenser will not dispense dt
|
maxBalance: string // how many dt the user has in it's wallet before the dispenser will not dispense dt
|
||||||
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, default true
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ export interface FreCreationParams {
|
|||||||
datatokenDecimals: number
|
datatokenDecimals: number
|
||||||
fixedRate: string
|
fixedRate: string
|
||||||
marketFee: string
|
marketFee: string
|
||||||
withMint?: boolean // add FixedPriced contract as minter if withMint == true
|
withMint?: boolean // adds FixedPriced contract as minter if withMint is not set to false
|
||||||
allowedConsumer?: string // only account that consume the exhchange
|
allowedConsumer?: string // only account that consume the exhchange
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ export class Datatoken extends SmartContract {
|
|||||||
}
|
}
|
||||||
if (!fixedRateParams.allowedConsumer) fixedRateParams.allowedConsumer = ZERO_ADDRESS
|
if (!fixedRateParams.allowedConsumer) fixedRateParams.allowedConsumer = ZERO_ADDRESS
|
||||||
|
|
||||||
const withMint = fixedRateParams.withMint ? 1 : 0
|
const withMint = fixedRateParams.withMint === false ? 0 : 1
|
||||||
|
|
||||||
// should check DatatokenDeployer role using NFT level ..
|
// should check DatatokenDeployer role using NFT level ..
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ export class Datatoken extends SmartContract {
|
|||||||
|
|
||||||
if (!dispenserParams.allowedSwapper) dispenserParams.allowedSwapper = ZERO_ADDRESS
|
if (!dispenserParams.allowedSwapper) dispenserParams.allowedSwapper = ZERO_ADDRESS
|
||||||
|
|
||||||
if (!dispenserParams.withMint) dispenserParams.withMint = false
|
dispenserParams.withMint = dispenserParams.withMint !== false
|
||||||
|
|
||||||
// should check DatatokenDeployer role using NFT level ..
|
// should check DatatokenDeployer role using NFT level ..
|
||||||
|
|
||||||
|
@ -594,7 +594,7 @@ export class NftFactory extends SmartContractWithAddress {
|
|||||||
|
|
||||||
private getFreCreationParams(freParams: FreCreationParams): any {
|
private getFreCreationParams(freParams: FreCreationParams): any {
|
||||||
if (!freParams.allowedConsumer) freParams.allowedConsumer = ZERO_ADDRESS
|
if (!freParams.allowedConsumer) freParams.allowedConsumer = ZERO_ADDRESS
|
||||||
const withMint = freParams.withMint ? 1 : 0
|
const withMint = freParams.withMint === false ? 0 : 1
|
||||||
|
|
||||||
return {
|
return {
|
||||||
fixedPriceAddress: freParams.fixedRateAddress,
|
fixedPriceAddress: freParams.fixedRateAddress,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user