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:
parent
4d56ca2e9e
commit
77fcfe94f5
@ -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
|
||||
|
@ -549,7 +549,7 @@ describe('Marketplace flow tests', async () => {
|
||||
withMint: false
|
||||
}
|
||||
|
||||
const tx = await factory.createNftErc20WithFixedRate(
|
||||
const tx = await factory.createNftWithDatatokenWithFixedRate(
|
||||
publisherAccount,
|
||||
nftParams,
|
||||
datatokenParams,
|
||||
|
@ -214,7 +214,7 @@ describe('Publish tests', async () => {
|
||||
withMint: false
|
||||
}
|
||||
|
||||
const bundleNFT = await factory.createNftErc20WithFixedRate(
|
||||
const bundleNFT = await factory.createNftWithDatatokenWithFixedRate(
|
||||
publisherAccount,
|
||||
nftParams,
|
||||
datatokenParams,
|
||||
|
@ -192,7 +192,7 @@ describe('Nft Factory test', () => {
|
||||
withMint: false
|
||||
}
|
||||
|
||||
const txReceipt = await nftFactory.createNftErc20WithFixedRate(
|
||||
const txReceipt = await nftFactory.createNftWithDatatokenWithFixedRate(
|
||||
nftOwner,
|
||||
nftData,
|
||||
ercParams,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user