mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
update url
This commit is contained in:
parent
497cdb9b43
commit
716f930906
@ -6,26 +6,13 @@ import {
|
|||||||
Config,
|
Config,
|
||||||
ProviderInstance,
|
ProviderInstance,
|
||||||
Aquarius,
|
Aquarius,
|
||||||
NftFactory,
|
|
||||||
NftCreateData,
|
|
||||||
Datatoken,
|
Datatoken,
|
||||||
getHash,
|
|
||||||
Nft,
|
|
||||||
downloadFile,
|
downloadFile,
|
||||||
ZERO_ADDRESS,
|
|
||||||
calculateEstimatedGas,
|
calculateEstimatedGas,
|
||||||
sendTx,
|
sendTx,
|
||||||
transfer
|
transfer
|
||||||
} from '../../src'
|
} from '../../src'
|
||||||
import {
|
import { ProviderFees, Files } from '../../src/@types'
|
||||||
ProviderFees,
|
|
||||||
DatatokenCreateParams,
|
|
||||||
DDO,
|
|
||||||
Files,
|
|
||||||
ProviderComputeInitialize,
|
|
||||||
ConsumeMarketFee,
|
|
||||||
Asset
|
|
||||||
} from '../../src/@types'
|
|
||||||
import { createAsset, updateAssetMetadata } from './utils'
|
import { createAsset, updateAssetMetadata } from './utils'
|
||||||
|
|
||||||
let config: Config
|
let config: Config
|
||||||
@ -35,8 +22,6 @@ let datatoken: Datatoken
|
|||||||
let providerUrl: string
|
let providerUrl: string
|
||||||
let consumerAccount: string
|
let consumerAccount: string
|
||||||
let publisherAccount: string
|
let publisherAccount: string
|
||||||
let providerInitializeComputeResults
|
|
||||||
let computeEnvs
|
|
||||||
let addresses: any
|
let addresses: any
|
||||||
let ddoWith5mTimeoutId
|
let ddoWith5mTimeoutId
|
||||||
let resolvedDdoWith5mTimeout
|
let resolvedDdoWith5mTimeout
|
||||||
@ -80,7 +65,7 @@ const ddoWithNoTimeout = {
|
|||||||
type: 'compute',
|
type: 'compute',
|
||||||
files: '',
|
files: '',
|
||||||
datatokenAddress: '0xa15024b732A8f2146423D14209eFd074e61964F3',
|
datatokenAddress: '0xa15024b732A8f2146423D14209eFd074e61964F3',
|
||||||
serviceEndpoint: 'http:/172.15.0.4:8030',
|
serviceEndpoint: 'http://172.15.0.4:8030',
|
||||||
timeout: 0,
|
timeout: 0,
|
||||||
compute: {
|
compute: {
|
||||||
publisherTrustedAlgorithmPublishers: [],
|
publisherTrustedAlgorithmPublishers: [],
|
||||||
@ -97,7 +82,7 @@ describe('Multichain Provider test', async () => {
|
|||||||
config = await getTestConfig(web3)
|
config = await getTestConfig(web3)
|
||||||
addresses = getAddresses()
|
addresses = getAddresses()
|
||||||
aquarius = new Aquarius(config.metadataCacheUri)
|
aquarius = new Aquarius(config.metadataCacheUri)
|
||||||
providerUrl = 'http:/172.15.0.4:8030'
|
providerUrl = 'http://172.15.0.4:8030'
|
||||||
datatoken = new Datatoken(web3)
|
datatoken = new Datatoken(web3)
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -230,7 +215,7 @@ describe('Multichain Provider test', async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('Should update metadata the asset metadata with second provider as serviceEndpoint', async () => {
|
it('Should update metadata the asset metadata with second provider as serviceEndpoint', async () => {
|
||||||
resolvedDdoWith5mTimeout.services[0].serviceEndpoint = 'http:/172.15.0.4:8030'
|
resolvedDdoWith5mTimeout.services[0].serviceEndpoint = 'http://172.15.0.4:8030'
|
||||||
const updateTx = await updateAssetMetadata(
|
const updateTx = await updateAssetMetadata(
|
||||||
publisherAccount,
|
publisherAccount,
|
||||||
resolvedDdoWith5mTimeout,
|
resolvedDdoWith5mTimeout,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user