mirror of
https://github.com/oceanprotocol/react.git
synced 2025-02-14 21:10:38 +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() {
|
export default function MyComponent() {
|
||||||
const { accountId } = useOcean()
|
const { accountId } = useOcean()
|
||||||
|
const dataTokenAddress = '0x00000'
|
||||||
// Publish helpers
|
// Publish helpers
|
||||||
const { createPricing, buyDT, sellDT } = usePricing()
|
const { createPricing, buyDT, sellDT } = usePricing()
|
||||||
|
|
||||||
@ -26,14 +26,14 @@ export default function MyComponent() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleCreatePricing() {
|
async function handleCreatePricing() {
|
||||||
const ddo = await createPricing(dataTokenAddress, priceOptions)
|
await createPricing(dataTokenAddress, priceOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleBuyDT() {
|
async function handleBuyDT() {
|
||||||
const ddo = await buyDT(dataTokenAddress, 1)
|
await buyDT(dataTokenAddress, 1)
|
||||||
}
|
}
|
||||||
async function handleSellDT() {
|
async function handleSellDT() {
|
||||||
const ddo = await sellDT(dataTokenAddress, 1)
|
await sellDT(dataTokenAddress, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user