mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Fix previous order tx (#1197)
* rename nft update query Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro> * fix previous order Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
parent
8aa6b3997a
commit
a0abe7e17c
@ -23,7 +23,7 @@ const TokensPriceQuery = gql`
|
||||
symbol
|
||||
name
|
||||
orders(
|
||||
where: { consumer: $account }
|
||||
where: { payer: $account }
|
||||
orderBy: createdTimestamp
|
||||
orderDirection: desc
|
||||
) {
|
||||
@ -84,7 +84,7 @@ const TokenPriceQuery = gql`
|
||||
symbol
|
||||
name
|
||||
orders(
|
||||
where: { consumer: $account }
|
||||
where: { payer: $account }
|
||||
orderBy: createdTimestamp
|
||||
orderDirection: desc
|
||||
) {
|
||||
@ -223,7 +223,7 @@ function getAccessDetailsFromTokenPrice(
|
||||
}
|
||||
|
||||
/**
|
||||
* This will be used to get price including feed before ordering
|
||||
* This will be used to get price including fees before ordering
|
||||
* @param {AssetExtended} asset
|
||||
* @return {Promise<OrdePriceAndFee>}
|
||||
*/
|
||||
|
@ -181,7 +181,7 @@ export default function Compute({
|
||||
)
|
||||
const datasetPriceAndFees = await getOrderPriceAndFees(
|
||||
asset,
|
||||
ZERO_ADDRESS,
|
||||
accountId,
|
||||
computeEnv?.id,
|
||||
validUntil
|
||||
)
|
||||
|
@ -3,12 +3,12 @@ import { useAsset } from '@context/Asset'
|
||||
import ExplorerLink from '@shared/ExplorerLink'
|
||||
import Time from '@shared/atoms/Time'
|
||||
import { gql, OperationContext, useQuery } from 'urql'
|
||||
import { ReceiptData_nftUpdates as ReceiptData } from '../../../@types/subgraph/ReceiptData'
|
||||
import { NftUpdate_nftUpdates as NftUpdate } from '../../../@types/subgraph/NftUpdate'
|
||||
import { getQueryContext } from '@utils/subgraph'
|
||||
import styles from './EditHistory.module.css'
|
||||
|
||||
const getReceipts = gql`
|
||||
query ReceiptData($address: String!) {
|
||||
query NftUpdate($address: String!) {
|
||||
nftUpdates(
|
||||
where: { nft: $address }
|
||||
orderBy: timestamp
|
||||
@ -66,7 +66,7 @@ export default function EditHistory(): ReactElement {
|
||||
//
|
||||
// 2. Construct display data based on fetched data.
|
||||
//
|
||||
const [receipts, setReceipts] = useState<ReceiptData[]>()
|
||||
const [receipts, setReceipts] = useState<NftUpdate[]>()
|
||||
|
||||
useEffect(() => {
|
||||
if (!data || data.nftUpdates.length === 0) return
|
||||
|
Loading…
Reference in New Issue
Block a user