Skip to content

Commit

Permalink
clean test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Oct 2, 2024
1 parent c657547 commit ea7562f
Showing 1 changed file with 1 addition and 87 deletions.
88 changes: 1 addition & 87 deletions test/integration/PublishFlows.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,93 +215,7 @@ describe('Publish tests', async () => {
aquarius
)

console.log('Published asset, ddo id:', asset)

// const nftParams: NftCreateData = {
// name: 'testNftFre',
// symbol: 'TSTF',
// templateIndex: 1,
// tokenURI: '',
// transferable: true,
// owner: await publisherAccount.getAddress()
// }

// const datatokenParams: DatatokenCreateParams = {
// templateIndex: 1,
// cap: '100000',
// feeAmount: '0',
// paymentCollector: ZERO_ADDRESS,
// feeToken: ZERO_ADDRESS,
// minter: await publisherAccount.getAddress(),
// mpFeeAddress: ZERO_ADDRESS
// }

// const fixedPriceParams: FreCreationParams = {
// fixedRateAddress: addresses.FixedPrice,
// baseTokenAddress: addresses.MockDAI,
// owner: await publisherAccount.getAddress(),
// marketFeeCollector: await publisherAccount.getAddress(),
// baseTokenDecimals: 18,
// datatokenDecimals: 18,
// fixedRate: '1',
// marketFee: '0',
// allowedConsumer: await publisherAccount.getAddress(),
// withMint: true
// }

// const bundleNFT = await factory.createNftWithDatatokenWithFixedRate(
// nftParams,
// datatokenParams,
// fixedPriceParams
// )
// const trxReceipt = await bundleNFT.wait()
// // events have been emitted
// const nftCreatedEvent = getEventFromTx(trxReceipt, 'NFTCreated')
// const tokenCreatedEvent = getEventFromTx(trxReceipt, 'TokenCreated')
// expect(nftCreatedEvent.event === 'NFTCreated')
// expect(tokenCreatedEvent.event === 'TokenCreated')

// const nftAddress = nftCreatedEvent.args.newTokenAddress
// const datatokenAddress = tokenCreatedEvent.args.newTokenAddress
// assetUrl.datatokenAddress = datatokenAddress
// assetUrl.nftAddress = nftAddress

// fixedPriceDdo.services[0].files = await ProviderInstance.encrypt(
// assetUrl,
// config.chainId,
// providerUrl
// )

// fixedPriceDdo.metadata.name = 'test-dataset-fixedPrice'
// fixedPriceDdo.services[0].datatokenAddress = datatokenAddress

// fixedPriceDdo.nftAddress = nftAddress

// fixedPriceDdo.chainId = config.chainId
// fixedPriceDdo.id =
// 'did:op:' +
// SHA256(ethers.utils.getAddress(nftAddress) + config.chainId.toString(10))

// fixedPricedDID = fixedPriceDdo.id
// const isAssetValid: ValidateMetadata = await aquarius.validate(fixedPriceDdo)
// assert(isAssetValid.valid === true, 'Published asset is not valid')
// const encryptedResponse = await ProviderInstance.encrypt(
// fixedPriceDdo,
// config.chainId,
// providerUrl
// )

// await nft.setMetadata(
// nftAddress,
// await publisherAccount.getAddress(),
// 0,
// providerUrl,
// '0x123',
// '0x02',
// encryptedResponse,
// isAssetValid.hash,
// []
// )
assert(asset !== null, 'Could not publish asset!')
})

it('should resolve the fixed price dataset', async () => {
Expand Down

0 comments on commit ea7562f

Please sign in to comment.