Skip to content

Commit

Permalink
Update Aquarius name to Metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizgar91 committed May 18, 2020
1 parent b22ea61 commit b6ea02c
Show file tree
Hide file tree
Showing 19 changed files with 683 additions and 134 deletions.
6 changes: 3 additions & 3 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ old:
"service": [
{
"serviceDefinitionId": "0",
"serviceEndpoint": "http://localhost:5000/api/v1/aquarius/assets/ddo/{did}",
"serviceEndpoint": "http://localhost:5000/api/v1/metadata/assets/ddo/{did}",
"type": "Metadata",
"metadata": {
"base": {
Expand Down Expand Up @@ -68,7 +68,7 @@ NEW. Where `main` now holds the non-changable attributes only, everything else h
"service": [
{
"index": 0,
"serviceEndpoint": "http://localhost:5000/api/v1/aquarius/assets/ddo/{did}",
"serviceEndpoint": "http://localhost:5000/api/v1/metadata/assets/ddo/{did}",
"type": "metadata",
"attributes": {
"main": {
Expand Down Expand Up @@ -105,7 +105,7 @@ NEW. Where `main` now holds the non-changable attributes only, everything else h

Those changes require updates to your code whenever you fetch or create a new DDO as outlined below.

Likewise, you have to migrate the DDOs of existing registered assets to the new structure. For this you can run our migration script on your respective Aquarius instance.
Likewise, you have to migrate the DDOs of existing registered assets to the new structure. For this you can run our migration script on your respective Metadata instance.

- [script: CHANGEME](https://github.com/oceanprotocol/CHANGEME)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ You can then connect to the [Smart Contracts](https://github.com/keyko-io/neverm
const ocean: Ocean = await Ocean.getInstance({
// the node of the blockchain to connect to, could also be infura
nodeUri: 'http://localhost:8545',
// the uri of aquarius
aquariusUri: 'http://localhost:5000',
// the uri of metadata
metadataUri: 'http://localhost:5000',
// the uri of brizo
brizoUri: 'http://localhost:8030',
// address that brizo uses
Expand Down
8 changes: 4 additions & 4 deletions integration/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HDWalletProvider from '@truffle/hdwallet-provider'

const configJson: Config = {
nodeUri: 'http://localhost:8545',
aquariusUri: 'http://nevermined-metadata:5000',
metadataUri: 'http://nevermined-metadata:5000',
brizoUri: 'http://localhost:8030',
secretStoreUri: 'http://localhost:12001',
brizoAddress: '0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0',
Expand All @@ -13,7 +13,7 @@ const configJson: Config = {
if (process.env.NETWORK_NAME === 'pacific') {
Object.assign(configJson, {
nodeUri: 'https://pacific.oceanprotocol.com',
aquariusUri: 'https://metadata.commons.oceanprotocol.com',
metadataUri: 'https://metadata.commons.oceanprotocol.com',
brizoUri: 'https://brizo.commons.oceanprotocol.com',
secretStoreUri: 'https://secret-store.oceanprotocol.com',
brizoAddress: '0x008c25ed3594e094db4592f4115d5fa74c4f41ea'
Expand All @@ -23,7 +23,7 @@ if (process.env.NETWORK_NAME === 'pacific') {
if (process.env.NETWORK_NAME === 'nile') {
Object.assign(configJson, {
nodeUri: 'https://nile.dev-ocean.com',
aquariusUri: 'https://metadata.nile.dev-ocean.com',
metadataUri: 'https://metadata.nile.dev-ocean.com',
brizoUri: 'https://brizo.nile.dev-ocean.com',
secretStoreUri: 'https://secret-store.nile.dev-ocean.com',
brizoAddress: '0x413c9ba0a05b8a600899b41b0c62dd661e689354'
Expand All @@ -33,7 +33,7 @@ if (process.env.NETWORK_NAME === 'nile') {
if (process.env.NETWORK_NAME === 'duero') {
Object.assign(configJson, {
nodeUri: 'https://duero.dev-ocean.com',
aquariusUri: 'https://metadata.duero.dev-ocean.com',
metadataUri: 'https://metadata.duero.dev-ocean.com',
brizoUri: 'https://brizo.duero.dev-ocean.com',
secretStoreUri: 'https://secret-store.duero.dev-ocean.com',
brizoAddress: '0x9d4ed58293f71122ad6a733c1603927a150735d0'
Expand Down
2 changes: 1 addition & 1 deletion integration/ocean/Versions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Versions', () => {
xit('should return the versions', async () => {
const versions = await ocean.versions.get()

assert.equal(versions.aquarius.status, OceanPlatformTechStatus.Working)
assert.equal(versions.metadata.status, OceanPlatformTechStatus.Working)
assert.equal(versions.brizo.status, OceanPlatformTechStatus.Working)
assert.equal(versions.squid.status, OceanPlatformTechStatus.Working)

Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": "~0.7.2"
},
{
"name": "aquarius",
"name": "metadata",
"version": "~1.0.5"
},
{
Expand Down
Loading

0 comments on commit b6ea02c

Please sign in to comment.