1
0
mirror of https://github.com/oceanprotocol/react.git synced 2024-06-29 00:57:49 +02:00

update docs

This commit is contained in:
alexcos20 2020-10-14 11:41:34 -07:00
parent 678d9a0b80
commit faec8343bb

View File

@ -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 (