1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

add ropsten to network detection utilities (#294)

* add ropsten to network detection utilities

* mention ropsten in publish warning

* bump @oceanprotocol/lib
This commit is contained in:
Matthias Kretschmann 2020-12-11 18:30:51 +01:00 committed by GitHub
parent b2f1af6e87
commit de1bc11efe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 15 deletions

View File

@ -1,7 +1,7 @@
{ {
"title": "Publish", "title": "Publish",
"description": "Highlight the important features of your data set to make it more discoverable and catch the interest of data consumers.", "description": "Highlight the important features of your data set to make it more discoverable and catch the interest of data consumers.",
"warning": "Given the beta status, publishing on Rinkeby first is strongly recommended. Please familiarize yourself with [the market](https://oceanprotocol.com/technology/marketplaces), [the risks](https://blog.oceanprotocol.com/on-staking-on-data-in-ocean-market-3d8e09eb0a13), and the [Terms of Use](/terms).", "warning": "Given the beta status, publishing on Ropsten or Rinkeby first is strongly recommended. Please familiarize yourself with [the market](https://oceanprotocol.com/technology/marketplaces), [the risks](https://blog.oceanprotocol.com/on-staking-on-data-in-ocean-market-3d8e09eb0a13), and the [Terms of Use](/terms).",
"form": { "form": {
"title": "Publish", "title": "Publish",
"data": [ "data": [

26
package-lock.json generated
View File

@ -3648,17 +3648,17 @@
"integrity": "sha512-j4PEZSVtKSqxDYMVh/hd5vk088Bg6a6QkrUMTXN9Q6OIFAMfHM235f1AxaakNrEyK0FKMD908KuJEdfFLRn9Hw==" "integrity": "sha512-j4PEZSVtKSqxDYMVh/hd5vk088Bg6a6QkrUMTXN9Q6OIFAMfHM235f1AxaakNrEyK0FKMD908KuJEdfFLRn9Hw=="
}, },
"@oceanprotocol/contracts": { "@oceanprotocol/contracts": {
"version": "0.5.7", "version": "0.5.8",
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-0.5.7.tgz", "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-0.5.8.tgz",
"integrity": "sha512-p0oOHXr60hXZuLNsQ/PsOQtCfia79thm7MjPxTrnnBvD+csJoHzARYMB0IFj/KTw6U5vLXODgjJAn8x6QksLwg==" "integrity": "sha512-yoGk4kpTy9E06OWusd3Fa/W3yjmFNKND/I92YtmrMnX0i3gm/kom/Z7XrRiAHVC8JVnM9Q79FojGLd2eOL4opg=="
}, },
"@oceanprotocol/lib": { "@oceanprotocol/lib": {
"version": "0.9.18", "version": "0.9.19",
"resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.9.18.tgz", "resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.9.19.tgz",
"integrity": "sha512-RsP4CjAnauI2kDH0923LOO3NhdKNB1y8WwpAviVwIwz9sYqsIIcac6MKXIm5oDeLNhmCIhJXbwvQehf17wRL5Q==", "integrity": "sha512-HH+82dSOYO3hC4KkKdjpUMxagrAiO80gyHJ1PSHXi1w7bOgF/gOZkKfcqmnYT9Uu/lzFbarPBZg6crtTsYpatQ==",
"requires": { "requires": {
"@ethereum-navigator/navigator": "^0.5.0", "@ethereum-navigator/navigator": "^0.5.0",
"@oceanprotocol/contracts": "^0.5.7", "@oceanprotocol/contracts": "^0.5.8",
"decimal.js": "^10.2.0", "decimal.js": "^10.2.0",
"fs": "0.0.1-security", "fs": "0.0.1-security",
"lzma": "^2.3.2", "lzma": "^2.3.2",
@ -34577,9 +34577,9 @@
}, },
"dependencies": { "dependencies": {
"@types/node": { "@types/node": {
"version": "12.19.5", "version": "12.19.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.19.5.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.19.8.tgz",
"integrity": "sha512-Wgdl27uw/jUYUFyajUGKSjDNGxmJrZi9sjeG6UJImgUtKbJoO9aldx+1XODN1EpNDX9DirvbvHHmTsNlb8GwMA==" "integrity": "sha512-D4k2kNi0URNBxIRCb1khTnkWNHv8KSL1owPmS/K5e5t8B2GzMReY7AsJIY1BnP5KdlgC4rj9jk2IkDMasIE7xg=="
} }
} }
}, },
@ -34777,9 +34777,9 @@
}, },
"dependencies": { "dependencies": {
"@types/node": { "@types/node": {
"version": "12.19.5", "version": "12.19.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.19.5.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.19.8.tgz",
"integrity": "sha512-Wgdl27uw/jUYUFyajUGKSjDNGxmJrZi9sjeG6UJImgUtKbJoO9aldx+1XODN1EpNDX9DirvbvHHmTsNlb8GwMA==" "integrity": "sha512-D4k2kNi0URNBxIRCb1khTnkWNHv8KSL1owPmS/K5e5t8B2GzMReY7AsJIY1BnP5KdlgC4rj9jk2IkDMasIE7xg=="
} }
} }
}, },

View File

@ -24,7 +24,7 @@
"@coingecko/cryptoformat": "^0.4.2", "@coingecko/cryptoformat": "^0.4.2",
"@loadable/component": "^5.14.1", "@loadable/component": "^5.14.1",
"@oceanprotocol/art": "^3.0.0", "@oceanprotocol/art": "^3.0.0",
"@oceanprotocol/lib": "^0.9.18", "@oceanprotocol/lib": "^0.9.19",
"@oceanprotocol/react": "^0.4.0", "@oceanprotocol/react": "^0.4.0",
"@oceanprotocol/typographies": "^0.1.0", "@oceanprotocol/typographies": "^0.1.0",
"@sindresorhus/slugify": "^1.0.0", "@sindresorhus/slugify": "^1.0.0",

View File

@ -37,6 +37,8 @@ export function getNetworkId(network: string): number {
switch (network) { switch (network) {
case 'mainnet': case 'mainnet':
return 1 return 1
case 'ropsten':
return 3
case 'rinkeby': case 'rinkeby':
return 4 return 4
case 'kovan': case 'kovan':
@ -64,6 +66,8 @@ export function getNetworkName(networkId: number): string {
switch (networkId) { switch (networkId) {
case 1: case 1:
return 'Main' return 'Main'
case 3:
return 'Ropsten'
case 4: case 4:
return 'Rinkeby' return 'Rinkeby'
case 42: case 42: