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

rename createNftErc20WithFixedRate to createNftWithDatatokenWithFixedRate

This commit is contained in:
Miquel A. Cabot 2022-06-10 11:30:22 +02:00
parent 4d56ca2e9e
commit 77fcfe94f5
5 changed files with 10 additions and 10 deletions

View File

@ -683,14 +683,14 @@ export class NftFactory extends SmartContractWithAddress {
return trxReceipt
}
/** Estimate gas cost for createNftErc20WithFixedRate method
/** Estimate gas cost for createNftWithDatatokenWithFixedRate method
* @param address Caller address
* @param nftCreateData input data for NFT Creation
* @param ercParams input data for Datatoken Creation
* @param freParams input data for FixedRate Creation
* @return {Promise<TransactionReceipt>} transaction receipt
*/
public async estGasCreateNftErc20WithFixedRate(
public async estGasCreateNftWithDatatokenWithFixedRate(
address: string,
nftCreateData: NftCreateData,
ercParams: DatatokenCreateParams,
@ -708,7 +708,7 @@ export class NftFactory extends SmartContractWithAddress {
}
/**
* @dev createNftErc20WithFixedRate
* @dev createNftWithDatatokenWithFixedRate
* Creates a new NFT, then a Datatoken, then a FixedRateExchange, all in one call
* Use this carefully, because if Fixed Rate creation fails, you are still going to pay a lot of gas
* @param address Caller address
@ -717,7 +717,7 @@ export class NftFactory extends SmartContractWithAddress {
* @param freParams input data for FixedRate Creation
* @return {Promise<TransactionReceipt>} transaction receipt
*/
public async createNftErc20WithFixedRate(
public async createNftWithDatatokenWithFixedRate(
address: string,
nftCreateData: NftCreateData,
ercParams: DatatokenCreateParams,
@ -746,7 +746,7 @@ export class NftFactory extends SmartContractWithAddress {
return trxReceipt
}
/** Estimate gas cost for createNftErc20WithFixedRate method
/** Estimate gas cost for createNftWithDatatokenWithFixedRate method
* @param address Caller address
* @param nftCreateData input data for NFT Creation
* @param ercParams input data for Datatoken Creation

View File

@ -549,7 +549,7 @@ describe('Marketplace flow tests', async () => {
withMint: false
}
const tx = await factory.createNftErc20WithFixedRate(
const tx = await factory.createNftWithDatatokenWithFixedRate(
publisherAccount,
nftParams,
datatokenParams,

View File

@ -214,7 +214,7 @@ describe('Publish tests', async () => {
withMint: false
}
const bundleNFT = await factory.createNftErc20WithFixedRate(
const bundleNFT = await factory.createNftWithDatatokenWithFixedRate(
publisherAccount,
nftParams,
datatokenParams,

View File

@ -192,7 +192,7 @@ describe('Nft Factory test', () => {
withMint: false
}
const txReceipt = await nftFactory.createNftErc20WithFixedRate(
const txReceipt = await nftFactory.createNftWithDatatokenWithFixedRate(
nftOwner,
nftData,
ercParams,

View File

@ -86,7 +86,7 @@ describe('Fixed Rate unit test', () => {
withMint: false
}
const txReceipt = await nftFactory.createNftErc20WithFixedRate(
const txReceipt = await nftFactory.createNftWithDatatokenWithFixedRate(
exchangeOwner,
nftData,
ercParams,
@ -395,7 +395,7 @@ describe('Fixed Rate unit test', () => {
withMint: false
}
const txReceipt = await nftFactory.createNftErc20WithFixedRate(
const txReceipt = await nftFactory.createNftWithDatatokenWithFixedRate(
exchangeOwner,
nftData,
ercParams,