1
0
mirror of https://github.com/oceanprotocol/react.git synced 2025-01-03 18:35:18 +01:00

ocean-lib update

This commit is contained in:
mihaisc 2020-09-01 16:32:52 +03:00
parent ede221142e
commit fbb5b04e56
5 changed files with 5979 additions and 4449 deletions

10405
example/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
"extends": "@oceanprotocol/react"
},
"browserslist": [
">0.2%",

14
package-lock.json generated
View File

@ -1293,17 +1293,17 @@
}
},
"@oceanprotocol/contracts": {
"version": "0.3.5",
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-0.3.5.tgz",
"integrity": "sha512-z7ziNbRwsPrJi+zGyokgUEKivD90a5/9jjV+WLj1q5U96g60rd5rxox4EKNPNGlHx/m5rWBJhHBV4rseJjtFjg=="
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-0.4.1.tgz",
"integrity": "sha512-gc6bCt3pq9cpk1mYDKfsZhLlaM+8yQDFmOjtmT1KGXRmnTBcvmwCQXMrL5VohFaFi7Iqio3FZtuhYyRaEjikCw=="
},
"@oceanprotocol/lib": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.1.16.tgz",
"integrity": "sha512-xiPB+O1YI+An7Mjokat1pLXM7Low2iY8oXfsslAomi+RW7l4tBBtc3zasglSxuhgkESBW2ECO8JdhaeFZOYJ5A==",
"version": "0.1.17",
"resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.1.17.tgz",
"integrity": "sha512-Efr8BWJ5ngmt09Oj/mE7JF3AXlcQzTXXWzu3C4+mUWt0stnwYzUI5u2wk290N5j/v9e1e+NTl5Ymt9KAw46j4g==",
"requires": {
"@ethereum-navigator/navigator": "^0.5.0",
"@oceanprotocol/contracts": "^0.3.5",
"@oceanprotocol/contracts": "^0.4.1",
"decimal.js": "^10.2.0",
"fs": "0.0.1-security",
"node-fetch": "^2.6.0",

View File

@ -25,7 +25,7 @@
"dist/"
],
"dependencies": {
"@oceanprotocol/lib": "^0.1.16",
"@oceanprotocol/lib": "^0.1.17",
"axios": "^0.20.0",
"decimal.js": "^10.2.0",
"web3": "^1.2.11",

View File

@ -58,9 +58,8 @@ function usePublish(): UsePublish {
setPublishError(undefined)
try {
setStep(0)
const data = { t: 1, url: config.metadataStoreUri }
const blob = JSON.stringify(data)
const dtAddress = await ocean.datatokens.create(blob, accountId)
const dtAddress = await ocean.datatokens.create(config.metadataStoreUri,"name",'DT',"1000", accountId)
Logger.log('datatoken created', dtAddress)
setStep(1)