UNPKG

@cross-nft-marketplace/auction-house-nft-hooks

Version:

Generic react hooks for fetching cross-nft-marketplace auctions, nfts, and data on arbitary 721s. Powers nft-components.

22 lines (21 loc) 521 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GET_TOKEN_VALUES_QUERY = void 0; const graphql_request_1 = require("graphql-request"); exports.GET_TOKEN_VALUES_QUERY = graphql_request_1.gql ` fragment TokenShort on Token { id symbol name decimals derivedETH } query getTokenPrices($currencyContracts: [ID!]) { bundle(id: "1") { ethPrice } tokens(where: { id_in: $currencyContracts }) { ...TokenShort } } `;