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:
parent
ede221142e
commit
fbb5b04e56
10405
example/package-lock.json
generated
10405
example/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -25,7 +25,7 @@
|
|||||||
"eject": "react-scripts eject"
|
"eject": "react-scripts eject"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": "react-app"
|
"extends": "@oceanprotocol/react"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
">0.2%",
|
">0.2%",
|
||||||
|
14
package-lock.json
generated
14
package-lock.json
generated
@ -1293,17 +1293,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@oceanprotocol/contracts": {
|
"@oceanprotocol/contracts": {
|
||||||
"version": "0.3.5",
|
"version": "0.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-0.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-0.4.1.tgz",
|
||||||
"integrity": "sha512-z7ziNbRwsPrJi+zGyokgUEKivD90a5/9jjV+WLj1q5U96g60rd5rxox4EKNPNGlHx/m5rWBJhHBV4rseJjtFjg=="
|
"integrity": "sha512-gc6bCt3pq9cpk1mYDKfsZhLlaM+8yQDFmOjtmT1KGXRmnTBcvmwCQXMrL5VohFaFi7Iqio3FZtuhYyRaEjikCw=="
|
||||||
},
|
},
|
||||||
"@oceanprotocol/lib": {
|
"@oceanprotocol/lib": {
|
||||||
"version": "0.1.16",
|
"version": "0.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.1.17.tgz",
|
||||||
"integrity": "sha512-xiPB+O1YI+An7Mjokat1pLXM7Low2iY8oXfsslAomi+RW7l4tBBtc3zasglSxuhgkESBW2ECO8JdhaeFZOYJ5A==",
|
"integrity": "sha512-Efr8BWJ5ngmt09Oj/mE7JF3AXlcQzTXXWzu3C4+mUWt0stnwYzUI5u2wk290N5j/v9e1e+NTl5Ymt9KAw46j4g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@ethereum-navigator/navigator": "^0.5.0",
|
"@ethereum-navigator/navigator": "^0.5.0",
|
||||||
"@oceanprotocol/contracts": "^0.3.5",
|
"@oceanprotocol/contracts": "^0.4.1",
|
||||||
"decimal.js": "^10.2.0",
|
"decimal.js": "^10.2.0",
|
||||||
"fs": "0.0.1-security",
|
"fs": "0.0.1-security",
|
||||||
"node-fetch": "^2.6.0",
|
"node-fetch": "^2.6.0",
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
"dist/"
|
"dist/"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@oceanprotocol/lib": "^0.1.16",
|
"@oceanprotocol/lib": "^0.1.17",
|
||||||
"axios": "^0.20.0",
|
"axios": "^0.20.0",
|
||||||
"decimal.js": "^10.2.0",
|
"decimal.js": "^10.2.0",
|
||||||
"web3": "^1.2.11",
|
"web3": "^1.2.11",
|
||||||
|
@ -58,9 +58,8 @@ function usePublish(): UsePublish {
|
|||||||
setPublishError(undefined)
|
setPublishError(undefined)
|
||||||
try {
|
try {
|
||||||
setStep(0)
|
setStep(0)
|
||||||
const data = { t: 1, url: config.metadataStoreUri }
|
|
||||||
const blob = JSON.stringify(data)
|
const dtAddress = await ocean.datatokens.create(config.metadataStoreUri,"name",'DT',"1000", accountId)
|
||||||
const dtAddress = await ocean.datatokens.create(blob, accountId)
|
|
||||||
Logger.log('datatoken created', dtAddress)
|
Logger.log('datatoken created', dtAddress)
|
||||||
|
|
||||||
setStep(1)
|
setStep(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user