1
0
mirror of https://github.com/oceanprotocol/react.git synced 2025-02-14 21:10:38 +01:00

lib bump, publish update (#263)

* lib bump, publish update

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* force

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* package-lock

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
mihaisc 2021-03-18 14:44:29 +02:00 committed by GitHub
parent a021976add
commit 68dafd3aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

6
package-lock.json generated
View File

@ -2592,9 +2592,9 @@
"integrity": "sha512-6GrBk1jy+zxjDjh2SPra06etrqdp8CB6RaZaTq2OQpK8dA2Dq91hqCbj+6eb21MlU8bDY3/atnxax9rgPgsxkA==" "integrity": "sha512-6GrBk1jy+zxjDjh2SPra06etrqdp8CB6RaZaTq2OQpK8dA2Dq91hqCbj+6eb21MlU8bDY3/atnxax9rgPgsxkA=="
}, },
"@oceanprotocol/lib": { "@oceanprotocol/lib": {
"version": "0.11.4", "version": "0.12.0",
"resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.11.4.tgz", "resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.12.0.tgz",
"integrity": "sha512-sYfbgsOmiF6RrSjeGCvKEXoLl2Q41wKuoWT5gAqy7IoyVjwDerx96kLdTZp33etMoQ0/MJRud0ZGL0sZwqfVWw==", "integrity": "sha512-bREJhiyQ1LlFdLY0WoZbelfH27R7PLi0pY+c3TiX3fYvDShfp5NCYkq0B8Wf4FjxUxd4BMJREwRNdOS416RYVA==",
"requires": { "requires": {
"@ethereum-navigator/navigator": "^0.5.2", "@ethereum-navigator/navigator": "^0.5.2",
"@oceanprotocol/contracts": "^0.5.10", "@oceanprotocol/contracts": "^0.5.10",

View File

@ -25,7 +25,7 @@
"dist/" "dist/"
], ],
"dependencies": { "dependencies": {
"@oceanprotocol/lib": "^0.11.4", "@oceanprotocol/lib": "^0.12.0",
"axios": "^0.21.1", "axios": "^0.21.1",
"decimal.js": "^10.2.1", "decimal.js": "^10.2.1",
"web3": "1.3.4", "web3": "1.3.4",

View File

@ -25,7 +25,7 @@ interface UsePublish {
} }
function usePublish(): UsePublish { function usePublish(): UsePublish {
const { ocean, status, account } = useOcean() const { ocean, status, account, accountId } = useOcean()
const [isLoading, setIsLoading] = useState(false) const [isLoading, setIsLoading] = useState(false)
const [publishStep, setPublishStep] = useState<number | undefined>() const [publishStep, setPublishStep] = useState<number | undefined>()
const [publishStepText, setPublishStepText] = useState<string | undefined>() const [publishStepText, setPublishStepText] = useState<string | undefined>()
@ -140,6 +140,8 @@ function usePublish(): UsePublish {
providerUri providerUri
) )
.next(setStep) .next(setStep)
await ocean.assets.publishDdo(ddo, accountId)
Logger.log('ddo created', ddo) Logger.log('ddo created', ddo)
await sleep(20000) await sleep(20000)
setStep(7) setStep(7)