mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
rename createNftErc20WithPool to createNftWithDatatokenWithPool
This commit is contained in:
parent
2adb54c4eb
commit
4d56ca2e9e
@ -620,14 +620,14 @@ export class NftFactory extends SmartContractWithAddress {
|
||||
}
|
||||
|
||||
/**
|
||||
* Estimate gas cost for createNftErc20WithPool method
|
||||
* Estimate gas cost for createNftWithDatatokenWithPool method
|
||||
* @param address Caller address
|
||||
* @param nftCreateData input data for NFT Creation
|
||||
* @param ercParams input data for Datatoken Creation
|
||||
* @param poolParams input data for Pool Creation
|
||||
* @return {Promise<TransactionReceipt>} transaction receipt
|
||||
*/
|
||||
public async estGasCreateNftErc20WithPool(
|
||||
public async estGasCreateNftWithDatatokenWithPool(
|
||||
address: string,
|
||||
nftCreateData: NftCreateData,
|
||||
ercParams: DatatokenCreateParams,
|
||||
@ -645,7 +645,7 @@ export class NftFactory extends SmartContractWithAddress {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev createNftErc20WithPool
|
||||
* @dev createNftWithDatatokenWithPool
|
||||
* Creates a new NFT, then a Datatoken, then a Pool, all in one call
|
||||
* Use this carefully, because if Pool creation fails, you are still going to pay a lot of gas
|
||||
* @param address Caller address
|
||||
@ -654,7 +654,7 @@ export class NftFactory extends SmartContractWithAddress {
|
||||
* @param poolParams input data for Pool Creation
|
||||
* @return {Promise<TransactionReceipt>} transaction receipt
|
||||
*/
|
||||
public async createNftErc20WithPool(
|
||||
public async createNftWithDatatokenWithPool(
|
||||
address: string,
|
||||
nftCreateData: NftCreateData,
|
||||
ercParams: DatatokenCreateParams,
|
||||
|
@ -291,7 +291,7 @@ describe('Marketplace flow tests', async () => {
|
||||
/// ```
|
||||
/// Now we can make the contract call
|
||||
/// ```Typescript
|
||||
const tx = await factory.createNftErc20WithPool(
|
||||
const tx = await factory.createNftWithDatatokenWithPool(
|
||||
publisherAccount,
|
||||
nftParams,
|
||||
datatokenParams,
|
||||
|
@ -133,7 +133,7 @@ describe('Publish tests', async () => {
|
||||
swapFeeMarketRunner: '0.001'
|
||||
}
|
||||
|
||||
const bundleNFT = await factory.createNftErc20WithPool(
|
||||
const bundleNFT = await factory.createNftWithDatatokenWithPool(
|
||||
publisherAccount,
|
||||
nftParams,
|
||||
datatokenParams,
|
||||
|
@ -164,7 +164,7 @@ describe('Nft Factory test', () => {
|
||||
poolParams.vestingAmount
|
||||
)
|
||||
|
||||
const txReceipt = await nftFactory.createNftErc20WithPool(
|
||||
const txReceipt = await nftFactory.createNftWithDatatokenWithPool(
|
||||
nftOwner,
|
||||
nftData,
|
||||
ercParams,
|
||||
|
@ -152,7 +152,7 @@ describe('Router unit test', () => {
|
||||
}
|
||||
|
||||
const nftFactory = new NftFactory(contracts.nftFactoryAddress, web3)
|
||||
const txReceipt = await nftFactory.createNftErc20WithPool(
|
||||
const txReceipt = await nftFactory.createNftWithDatatokenWithPool(
|
||||
factoryOwner,
|
||||
NFT_DATA,
|
||||
ERC_PARAMS,
|
||||
@ -163,7 +163,7 @@ describe('Router unit test', () => {
|
||||
const pool1 = txReceipt.events.NewPool.returnValues.poolAddress
|
||||
|
||||
// CREATE A SECOND POOL
|
||||
const txReceipt2 = await nftFactory.createNftErc20WithPool(
|
||||
const txReceipt2 = await nftFactory.createNftWithDatatokenWithPool(
|
||||
factoryOwner,
|
||||
NFT_DATA,
|
||||
ERC_PARAMS,
|
||||
|
@ -130,7 +130,7 @@ describe('Pool unit test', () => {
|
||||
|
||||
const nftFactory = new NftFactory(contracts.nftFactoryAddress, web3, 8996)
|
||||
|
||||
const txReceipt = await nftFactory.createNftErc20WithPool(
|
||||
const txReceipt = await nftFactory.createNftWithDatatokenWithPool(
|
||||
factoryOwner,
|
||||
nftData,
|
||||
ercParams,
|
||||
@ -517,7 +517,7 @@ describe('Pool unit test', () => {
|
||||
|
||||
const nftFactory = new NftFactory(contracts.nftFactoryAddress, web3, 8996)
|
||||
|
||||
const txReceipt = await nftFactory.createNftErc20WithPool(
|
||||
const txReceipt = await nftFactory.createNftWithDatatokenWithPool(
|
||||
factoryOwner,
|
||||
nftData,
|
||||
ercParams,
|
||||
|
@ -153,7 +153,7 @@ describe('SideStaking unit test', () => {
|
||||
swapFeeMarketRunner: '0.001'
|
||||
}
|
||||
|
||||
const txReceipt = await nftFactory.createNftErc20WithPool(
|
||||
const txReceipt = await nftFactory.createNftWithDatatokenWithPool(
|
||||
factoryOwner,
|
||||
nftData,
|
||||
ercParams,
|
||||
@ -375,7 +375,7 @@ describe('SideStaking unit test', () => {
|
||||
swapFeeMarketRunner: '0.001'
|
||||
}
|
||||
|
||||
const txReceipt = await nftFactory.createNftErc20WithPool(
|
||||
const txReceipt = await nftFactory.createNftWithDatatokenWithPool(
|
||||
factoryOwner,
|
||||
nftData,
|
||||
ercParams,
|
||||
|
Loading…
x
Reference in New Issue
Block a user