mirror of
https://github.com/oceanprotocol/react.git
synced 2025-02-03 23:57:29 +01:00
update docs
This commit is contained in:
parent
678d9a0b80
commit
faec8343bb
@ -13,7 +13,7 @@ import { Metadata } from '@oceanprotocol/lib'
|
||||
|
||||
export default function MyComponent() {
|
||||
const { accountId } = useOcean()
|
||||
|
||||
const dataTokenAddress = '0x00000'
|
||||
// Publish helpers
|
||||
const { createPricing, buyDT, sellDT } = usePricing()
|
||||
|
||||
@ -26,14 +26,14 @@ export default function MyComponent() {
|
||||
}
|
||||
|
||||
async function handleCreatePricing() {
|
||||
const ddo = await createPricing(dataTokenAddress, priceOptions)
|
||||
await createPricing(dataTokenAddress, priceOptions)
|
||||
}
|
||||
|
||||
async function handleBuyDT() {
|
||||
const ddo = await buyDT(dataTokenAddress, 1)
|
||||
await buyDT(dataTokenAddress, 1)
|
||||
}
|
||||
async function handleSellDT() {
|
||||
const ddo = await sellDT(dataTokenAddress, 1)
|
||||
await sellDT(dataTokenAddress, 1)
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user