1
0
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:
Bogdan Fazakas 2023-02-07 23:27:40 +02:00 committed by GitHub
parent 865618a376
commit 5306d75208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -39,6 +39,6 @@ export interface OrderParams {
export interface DispenserParams {
maxTokens: 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
}

View File

@ -2,7 +2,7 @@ export interface DispenserCreationParams {
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
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
}

View File

@ -7,7 +7,7 @@ export interface FreCreationParams {
datatokenDecimals: number
fixedRate: 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
}

View File

@ -102,7 +102,7 @@ export class Datatoken extends SmartContract {
}
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 ..
@ -173,7 +173,7 @@ export class Datatoken extends SmartContract {
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 ..

View File

@ -594,7 +594,7 @@ export class NftFactory extends SmartContractWithAddress {
private getFreCreationParams(freParams: FreCreationParams): any {
if (!freParams.allowedConsumer) freParams.allowedConsumer = ZERO_ADDRESS
const withMint = freParams.withMint ? 1 : 0
const withMint = freParams.withMint === false ? 0 : 1
return {
fixedPriceAddress: freParams.fixedRateAddress,