Closed Abrom8 closed 1 year ago
Nautilus Version: 0.3.0-alpha4
0.3.0-alpha4
Error:
ReferenceError: _interrupt is not defined
Does not work for any tested dataset AND algorithm. Same problem with OCEAN token and EUROe Tested FileType URL in combinations:
Code:
async function main() { Nautilus.setLogLevel(LogLevel.Verbose) const nautilus = await Nautilus.create(web3, genx_config ) await publishDataset(nautilus) } async function publishDataset(nautilus) { const pricingConfig: PricingConfigWithoutOwner = { type: 'free' } // const pricingConfig: PricingConfigWithoutOwner = { // type: 'fixed', // freCreationParams: { // fixedRateAddress: genx_config.fixedRateExchangeAddress, // baseTokenAddress: '0xe974c4894996E012399dEDbda0bE7314a73BBff1', // baseTokenDecimals: 6, // datatokenDecimals: 18, // fixedRate: '1', // marketFee: '0', // marketFeeCollector: '0x0000000000000000000000000000000000000000' // } // } // Create a new 'access' type service serving 'url' files const serviceBuilder = new ServiceBuilder(ServiceTypes.ACCESS, FileTypes.URL) const urlFile: UrlFile = { type: 'url', url: 'https://bitcoin.org/bitcoin.pdf', method: 'GET' } const name = 'My Datatoken Name' const symbol = 'SYMBOL' const service = serviceBuilder .setServiceEndpoint(genx_config.providerUri) .setTimeout(0) .addFile(urlFile) .setPricing(pricingConfig) .setDatatokenNameAndSymbol(name, symbol) .build() const assetBuilder = new AssetBuilder() const asset = assetBuilder .setType('dataset') .setName('My New Asset') .setDescription('A publish asset building test') .setAuthor('testAuthor') .setLicense('MIT') .addService(service) .setOwner(web3.defaultAccount) .build() const result = await nautilus.publish(asset) console.log(result) }
Nautilus Version:
0.3.0-alpha4
Error:
Does not work for any tested dataset AND algorithm. Same problem with OCEAN token and EUROe Tested FileType URL in combinations:
Code: