Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mintbase-js/data

Package Overview
Dependencies
Maintainers
0
Versions
1320
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintbase-js/data - npm Package Compare versions

Comparing version 0.6.6-beta-prerelease.0 to 0.6.6-eth-wallet-9a252c1.0

6

lib/api/attributeRarity/attributeRarity.js

@@ -16,4 +16,4 @@ "use strict";

const attributeRarity_query_1 = require("./attributeRarity.query");
const attributeRarity = ({ contractId, attributeType, attributeValue, network, }) => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b, _c, _d;
const attributeRarity = (_a) => __awaiter(void 0, [_a], void 0, function* ({ contractId, attributeType, attributeValue, network, }) {
var _b, _c, _d, _e;
const { data, error } = yield (0, fetch_1.fetchGraphQl)(Object.assign({ query: attributeRarity_query_1.attributeRarityQuery, variables: {

@@ -25,3 +25,3 @@ contractId,

const errorMsg = error ? `Error fetching attribute rarity, ${error}` : '';
const rarity = `${(((_b = (_a = data === null || data === void 0 ? void 0 : data.amountValues) === null || _a === void 0 ? void 0 : _a.aggregate) === null || _b === void 0 ? void 0 : _b.count) / ((_d = (_c = data === null || data === void 0 ? void 0 : data.totalTypes) === null || _c === void 0 ? void 0 : _c.aggregate) === null || _d === void 0 ? void 0 : _d.count) * 100).toFixed(2)}%`;
const rarity = `${(((_c = (_b = data === null || data === void 0 ? void 0 : data.amountValues) === null || _b === void 0 ? void 0 : _b.aggregate) === null || _c === void 0 ? void 0 : _c.count) / ((_e = (_d = data === null || data === void 0 ? void 0 : data.totalTypes) === null || _d === void 0 ? void 0 : _d.aggregate) === null || _e === void 0 ? void 0 : _e.count) * 100).toFixed(2)}%`;
return (0, utils_1.parseData)(rarity, error, errorMsg);

@@ -28,0 +28,0 @@ });

@@ -17,3 +17,3 @@ "use strict";

// TODO: make isActive toggle optional, if not provided load all metadata
const dynamicNftMetadata = ({ contractAddress, internalMetadataId, isActive, network, }) => __awaiter(void 0, void 0, void 0, function* () {
const dynamicNftMetadata = (_a) => __awaiter(void 0, [_a], void 0, function* ({ contractAddress, internalMetadataId, isActive, network, }) {
const { data, error } = yield (0, fetch_1.fetchGraphQl)(Object.assign({ query: dynamicNftMetadata_query_1.dynamicNftMetadataQuery, variables: { contractAddress, internalMetadataId, isActive } }, (network && { network: network })));

@@ -20,0 +20,0 @@ const errorMsg = error ? `Error fetching metadata for dynamic NFT (metadata ID: ${internalMetadataId}): ${error}` : '';

@@ -18,3 +18,3 @@ "use strict";

DisplayType["longitude"] = "longitude";
})(DisplayType = exports.DisplayType || (exports.DisplayType = {}));
})(DisplayType || (exports.DisplayType = DisplayType = {}));
//# sourceMappingURL=metadataByMetadataId.types.js.map

@@ -16,4 +16,4 @@ "use strict";

const ownedNftsByStore_query_1 = require("./ownedNftsByStore.query");
const ownedNftsByStore = ({ ownerId, contractAddress, pagination, network, }) => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b;
const ownedNftsByStore = (_a) => __awaiter(void 0, [_a], void 0, function* ({ ownerId, contractAddress, pagination, network, }) {
var _b, _c;
const wrongParams = typeof (pagination === null || pagination === void 0 ? void 0 : pagination.limit) === 'undefined' || typeof ownerId === 'undefined' || (pagination === null || pagination === void 0 ? void 0 : pagination.limit) < 1 || typeof (pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== 'number';

@@ -27,4 +27,4 @@ if (wrongParams) {

contractAddress: contractAddress,
limit: (_a = pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== null && _a !== void 0 ? _a : 12,
offset: (_b = pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== null && _b !== void 0 ? _b : 0,
limit: (_b = pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== null && _b !== void 0 ? _b : 12,
offset: (_c = pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== null && _c !== void 0 ? _c : 0,
} }, (network && { network: network })));

@@ -31,0 +31,0 @@ const errorMsg = error ? `Error fetching nfts from ${ownerId}, ${error}` : '';

@@ -16,3 +16,3 @@ "use strict";

const utils_1 = require("../../utils");
const ownedTokens = ({ ownerId, pagination: { limit, offset = 0 }, network }) => __awaiter(void 0, void 0, void 0, function* () {
const ownedTokens = (_a) => __awaiter(void 0, [_a], void 0, function* ({ ownerId, pagination: { limit, offset = 0 }, network }) {
const { data, error } = yield (0, fetch_1.fetchGraphQl)(Object.assign({ query: ownedTokens_query_1.ownedTokensQuery, variables: {

@@ -19,0 +19,0 @@ ownerId,

@@ -16,8 +16,8 @@ "use strict";

const storeNfts_query_1 = require("./storeNfts.query");
const storeNfts = ({ contractAddress, showOnlyListed, pagination, network, }) => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b;
const storeNfts = (_a) => __awaiter(void 0, [_a], void 0, function* ({ contractAddress, showOnlyListed, pagination, network, }) {
var _b, _c;
const { data, error } = yield (0, fetch_1.fetchGraphQl)(Object.assign({ query: storeNfts_query_1.storeNftsQuery, variables: {
condition: Object.assign({ nft_contract_id: { _in: contractAddress } }, (showOnlyListed && { price: { _is_null: false } })),
limit: (_a = pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== null && _a !== void 0 ? _a : 12,
offset: (_b = pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== null && _b !== void 0 ? _b : 0,
limit: (_b = pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== null && _b !== void 0 ? _b : 12,
offset: (_c = pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== null && _c !== void 0 ? _c : 0,
} }, (network && { network: network })));

@@ -24,0 +24,0 @@ const errorMsg = error ? `Error fetching store nfts, ${error}` : '';

@@ -17,3 +17,3 @@ "use strict";

const tokenById_query_1 = require("./tokenById.query");
const tokenById = ({ tokenId, contractAddress, network, }) => __awaiter(void 0, void 0, void 0, function* () {
const tokenById = (_a) => __awaiter(void 0, [_a], void 0, function* ({ tokenId, contractAddress, network, }) {
const isValidTokenId = (0, utils_1.validTokenId)(tokenId);

@@ -20,0 +20,0 @@ const isValidContractAddress = (0, utils_1.validContractAddress)(contractAddress);

@@ -16,4 +16,4 @@ "use strict";

const tokenOwner_query_1 = require("./tokenOwner.query");
const tokenOwner = ({ tokenId, contractAddress, network, }) => __awaiter(void 0, void 0, void 0, function* () {
var _a;
const tokenOwner = (_a) => __awaiter(void 0, [_a], void 0, function* ({ tokenId, contractAddress, network, }) {
var _b;
const { data, error } = yield (0, fetch_1.fetchGraphQl)(Object.assign({ query: tokenOwner_query_1.tokenOwnerQuery, variables: {

@@ -24,5 +24,5 @@ tokenId,

const errorMsg = error ? `Error fetching token owner, ${error}` : '';
return (0, utils_1.parseData)((_a = data === null || data === void 0 ? void 0 : data.mb_views_nft_tokens[0]) === null || _a === void 0 ? void 0 : _a.owner, error, errorMsg);
return (0, utils_1.parseData)((_b = data === null || data === void 0 ? void 0 : data.mb_views_nft_tokens[0]) === null || _b === void 0 ? void 0 : _b.owner, error, errorMsg);
});
exports.tokenOwner = tokenOwner;
//# sourceMappingURL=tokenOwner.js.map

@@ -16,8 +16,8 @@ "use strict";

const tokenOwnersByMetadataId_query_1 = require("./tokenOwnersByMetadataId.query");
const tokenOwnersByMetadataId = ({ metadataId, pagination, network, }) => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b;
const tokenOwnersByMetadataId = (_a) => __awaiter(void 0, [_a], void 0, function* ({ metadataId, pagination, network, }) {
var _b, _c;
const { data, error } = yield (0, fetch_1.fetchGraphQl)(Object.assign({ query: tokenOwnersByMetadataId_query_1.tokenOwnersByMetadataIdQuery, variables: {
metadataId,
limit: (_a = pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== null && _a !== void 0 ? _a : 12,
offset: (_b = pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== null && _b !== void 0 ? _b : 0,
limit: (_b = pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== null && _b !== void 0 ? _b : 12,
offset: (_c = pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== null && _c !== void 0 ? _c : 0,
} }, (network && { network: network })));

@@ -24,0 +24,0 @@ const errorMsg = error ? `Error fetching token owners by metadata id, ${error}` : '';

@@ -17,4 +17,4 @@ "use strict";

const tokenProvenance_query_1 = require("./tokenProvenance.query");
const tokenProvenance = ({ tokenId, contractAddress, pagination, network, }) => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b;
const tokenProvenance = (_a) => __awaiter(void 0, [_a], void 0, function* ({ tokenId, contractAddress, pagination, network, }) {
var _b, _c;
const isValidTokenId = (0, utils_1.validTokenId)(tokenId);

@@ -35,4 +35,4 @@ const isValidContractAddress = (0, utils_1.validContractAddress)(contractAddress);

contractAddress,
limit: (_a = pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== null && _a !== void 0 ? _a : 12,
offset: (_b = pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== null && _b !== void 0 ? _b : 0,
limit: (_b = pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== null && _b !== void 0 ? _b : 12,
offset: (_c = pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== null && _c !== void 0 ? _c : 0,
} }, (network && { network: network })));

@@ -39,0 +39,0 @@ const errorMsg = error ? `Error fetching token provenance from ${error}` : '';

@@ -16,3 +16,3 @@ "use strict";

const utils_1 = require("../../utils");
const tokensByAttributes = ({ contractId, filters, network, }) => __awaiter(void 0, void 0, void 0, function* () {
const tokensByAttributes = (_a) => __awaiter(void 0, [_a], void 0, function* ({ contractId, filters, network, }) {
let data;

@@ -19,0 +19,0 @@ let error;

@@ -16,4 +16,4 @@ "use strict";

const tokensByStatus_query_1 = require("./tokensByStatus.query");
const tokensByStatus = ({ metadataId, ownedBy, network }) => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b, _c, _d;
const tokensByStatus = (_a) => __awaiter(void 0, [_a], void 0, function* ({ metadataId, ownedBy, network }) {
var _b, _c, _d, _e;
const { data, error } = yield (0, fetch_1.fetchGraphQl)(Object.assign({ query: tokensByStatus_query_1.tokensByStatusQuery, variables: {

@@ -24,7 +24,7 @@ metadataId,

const errorMsg = error ? `Error fetching token listing by status', ${error}` : '';
const unburnedTokens = (0, utils_1.getTokenArrayFromNodes)((_a = data === null || data === void 0 ? void 0 : data.unburnedTokens) === null || _a === void 0 ? void 0 : _a.nodes);
const listedTokens = (0, utils_1.getTokenArrayFromNodes)((_b = data === null || data === void 0 ? void 0 : data.listedTokens) === null || _b === void 0 ? void 0 : _b.nodes);
const unburnedTokens = (0, utils_1.getTokenArrayFromNodes)((_b = data === null || data === void 0 ? void 0 : data.unburnedTokens) === null || _b === void 0 ? void 0 : _b.nodes);
const listedTokens = (0, utils_1.getTokenArrayFromNodes)((_c = data === null || data === void 0 ? void 0 : data.listedTokens) === null || _c === void 0 ? void 0 : _c.nodes);
const finalData = {
listedTokens: (0, utils_1.getTokenArrayFromNodes)((_c = data === null || data === void 0 ? void 0 : data.listedTokens) === null || _c === void 0 ? void 0 : _c.nodes),
burnedTokens: (0, utils_1.getTokenArrayFromNodes)((_d = data === null || data === void 0 ? void 0 : data.burnedTokens) === null || _d === void 0 ? void 0 : _d.nodes),
listedTokens: (0, utils_1.getTokenArrayFromNodes)((_d = data === null || data === void 0 ? void 0 : data.listedTokens) === null || _d === void 0 ? void 0 : _d.nodes),
burnedTokens: (0, utils_1.getTokenArrayFromNodes)((_e = data === null || data === void 0 ? void 0 : data.burnedTokens) === null || _e === void 0 ? void 0 : _e.nodes),
unlistedTokens: unburnedTokens === null || unburnedTokens === void 0 ? void 0 : unburnedTokens.filter((el) => !listedTokens.includes(el)),

@@ -31,0 +31,0 @@ };

@@ -16,3 +16,3 @@ "use strict";

const utils_1 = require("../../utils");
const getUserMintedTokens = ({ accountId, filters, network, }) => __awaiter(void 0, void 0, void 0, function* () {
const getUserMintedTokens = (_a) => __awaiter(void 0, [_a], void 0, function* ({ accountId, filters, network, }) {
let data;

@@ -19,0 +19,0 @@ let error;

@@ -16,3 +16,3 @@ "use strict";

const utils_1 = require("../../utils");
const getUserOwnedTokens = ({ accountId, filters, network, }) => __awaiter(void 0, void 0, void 0, function* () {
const getUserOwnedTokens = (_a) => __awaiter(void 0, [_a], void 0, function* ({ accountId, filters, network, }) {
let data;

@@ -19,0 +19,0 @@ let error;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getErrorMessage = void 0;
exports.getErrorMessage = getErrorMessage;
function isErrorWithMessage(error) {

@@ -26,3 +26,2 @@ return (typeof error === 'object' &&

}
exports.getErrorMessage = getErrorMessage;
//# sourceMappingURL=errorHandling.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useFragment = void 0;
exports.useFragment = useFragment;
function useFragment(_documentNode, fragmentType) {
return fragmentType;
}
exports.useFragment = useFragment;
//# sourceMappingURL=fragment-masking.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.graphql = void 0;
exports.graphql = graphql;
const documents = [];

@@ -9,3 +9,2 @@ function graphql(source) {

}
exports.graphql = graphql;
//# sourceMappingURL=gql.js.map

@@ -15,3 +15,3 @@ "use strict";

AnalyticsTmpAffiliateEarningsMonthlySelectColumn["TotalEarned"] = "total_earned";
})(AnalyticsTmpAffiliateEarningsMonthlySelectColumn = exports.AnalyticsTmpAffiliateEarningsMonthlySelectColumn || (exports.AnalyticsTmpAffiliateEarningsMonthlySelectColumn = {}));
})(AnalyticsTmpAffiliateEarningsMonthlySelectColumn || (exports.AnalyticsTmpAffiliateEarningsMonthlySelectColumn = AnalyticsTmpAffiliateEarningsMonthlySelectColumn = {}));
/** select columns of table "analytics_tmp.affiliate_earnings_yearly" */

@@ -28,3 +28,3 @@ var AnalyticsTmpAffiliateEarningsYearlySelectColumn;

AnalyticsTmpAffiliateEarningsYearlySelectColumn["TotalEarned"] = "total_earned";
})(AnalyticsTmpAffiliateEarningsYearlySelectColumn = exports.AnalyticsTmpAffiliateEarningsYearlySelectColumn || (exports.AnalyticsTmpAffiliateEarningsYearlySelectColumn = {}));
})(AnalyticsTmpAffiliateEarningsYearlySelectColumn || (exports.AnalyticsTmpAffiliateEarningsYearlySelectColumn = AnalyticsTmpAffiliateEarningsYearlySelectColumn = {}));
/** select columns of table "blocks" */

@@ -35,3 +35,3 @@ var BlocksSelectColumn;

BlocksSelectColumn["SyncedHeight"] = "synced_height";
})(BlocksSelectColumn = exports.BlocksSelectColumn || (exports.BlocksSelectColumn = {}));
})(BlocksSelectColumn || (exports.BlocksSelectColumn = BlocksSelectColumn = {}));
/** ordering argument of a cursor */

@@ -44,3 +44,3 @@ var CursorOrdering;

CursorOrdering["Desc"] = "DESC";
})(CursorOrdering = exports.CursorOrdering || (exports.CursorOrdering = {}));
})(CursorOrdering || (exports.CursorOrdering = CursorOrdering = {}));
/** select columns of table "mb_store_minters" */

@@ -53,3 +53,3 @@ var MbStoreMintersSelectColumn;

MbStoreMintersSelectColumn["NftContractId"] = "nft_contract_id";
})(MbStoreMintersSelectColumn = exports.MbStoreMintersSelectColumn || (exports.MbStoreMintersSelectColumn = {}));
})(MbStoreMintersSelectColumn || (exports.MbStoreMintersSelectColumn = MbStoreMintersSelectColumn = {}));
/** select columns of table "mb_views.active_listings_by_contract" */

@@ -82,3 +82,3 @@ var MbViewsActiveListingsByContractSelectColumn;

MbViewsActiveListingsByContractSelectColumn["TotalListings"] = "total_listings";
})(MbViewsActiveListingsByContractSelectColumn = exports.MbViewsActiveListingsByContractSelectColumn || (exports.MbViewsActiveListingsByContractSelectColumn = {}));
})(MbViewsActiveListingsByContractSelectColumn || (exports.MbViewsActiveListingsByContractSelectColumn = MbViewsActiveListingsByContractSelectColumn = {}));
/** select columns of table "mb_views.active_listings_rollup" */

@@ -127,3 +127,3 @@ var MbViewsActiveListingsRollupSelectColumn;

MbViewsActiveListingsRollupSelectColumn["TokenId"] = "token_id";
})(MbViewsActiveListingsRollupSelectColumn = exports.MbViewsActiveListingsRollupSelectColumn || (exports.MbViewsActiveListingsRollupSelectColumn = {}));
})(MbViewsActiveListingsRollupSelectColumn || (exports.MbViewsActiveListingsRollupSelectColumn = MbViewsActiveListingsRollupSelectColumn = {}));
/** select columns of table "mb_views.active_listings" */

@@ -172,3 +172,3 @@ var MbViewsActiveListingsSelectColumn;

MbViewsActiveListingsSelectColumn["TokenId"] = "token_id";
})(MbViewsActiveListingsSelectColumn = exports.MbViewsActiveListingsSelectColumn || (exports.MbViewsActiveListingsSelectColumn = {}));
})(MbViewsActiveListingsSelectColumn || (exports.MbViewsActiveListingsSelectColumn = MbViewsActiveListingsSelectColumn = {}));
/** select columns of table "mb_views.auctions_with_offer" */

@@ -239,3 +239,3 @@ var MbViewsAuctionsWithOfferSelectColumn;

MbViewsAuctionsWithOfferSelectColumn["UnlistedAt"] = "unlisted_at";
})(MbViewsAuctionsWithOfferSelectColumn = exports.MbViewsAuctionsWithOfferSelectColumn || (exports.MbViewsAuctionsWithOfferSelectColumn = {}));
})(MbViewsAuctionsWithOfferSelectColumn || (exports.MbViewsAuctionsWithOfferSelectColumn = MbViewsAuctionsWithOfferSelectColumn = {}));
/** select columns of table "mb_views.nft_activities_rollup" */

@@ -282,3 +282,3 @@ var MbViewsNftActivitiesRollupSelectColumn;

MbViewsNftActivitiesRollupSelectColumn["TxSender"] = "tx_sender";
})(MbViewsNftActivitiesRollupSelectColumn = exports.MbViewsNftActivitiesRollupSelectColumn || (exports.MbViewsNftActivitiesRollupSelectColumn = {}));
})(MbViewsNftActivitiesRollupSelectColumn || (exports.MbViewsNftActivitiesRollupSelectColumn = MbViewsNftActivitiesRollupSelectColumn = {}));
/** select columns of table "mb_views.nft_activities" */

@@ -327,3 +327,3 @@ var MbViewsNftActivitiesSelectColumn;

MbViewsNftActivitiesSelectColumn["TxSender"] = "tx_sender";
})(MbViewsNftActivitiesSelectColumn = exports.MbViewsNftActivitiesSelectColumn || (exports.MbViewsNftActivitiesSelectColumn = {}));
})(MbViewsNftActivitiesSelectColumn || (exports.MbViewsNftActivitiesSelectColumn = MbViewsNftActivitiesSelectColumn = {}));
/** select columns of table "mb_views.nft_metadata" */

@@ -370,3 +370,3 @@ var MbViewsNftMetadataSelectColumn;

MbViewsNftMetadataSelectColumn["Title"] = "title";
})(MbViewsNftMetadataSelectColumn = exports.MbViewsNftMetadataSelectColumn || (exports.MbViewsNftMetadataSelectColumn = {}));
})(MbViewsNftMetadataSelectColumn || (exports.MbViewsNftMetadataSelectColumn = MbViewsNftMetadataSelectColumn = {}));
/** select columns of table "mb_views.nft_metadata_unburned" */

@@ -397,3 +397,3 @@ var MbViewsNftMetadataUnburnedSelectColumn;

MbViewsNftMetadataUnburnedSelectColumn["Title"] = "title";
})(MbViewsNftMetadataUnburnedSelectColumn = exports.MbViewsNftMetadataUnburnedSelectColumn || (exports.MbViewsNftMetadataUnburnedSelectColumn = {}));
})(MbViewsNftMetadataUnburnedSelectColumn || (exports.MbViewsNftMetadataUnburnedSelectColumn = MbViewsNftMetadataUnburnedSelectColumn = {}));
/** select columns of table "mb_views.nft_owned_tokens" */

@@ -488,3 +488,3 @@ var MbViewsNftOwnedTokensSelectColumn;

MbViewsNftOwnedTokensSelectColumn["UpdatedAt"] = "updated_at";
})(MbViewsNftOwnedTokensSelectColumn = exports.MbViewsNftOwnedTokensSelectColumn || (exports.MbViewsNftOwnedTokensSelectColumn = {}));
})(MbViewsNftOwnedTokensSelectColumn || (exports.MbViewsNftOwnedTokensSelectColumn = MbViewsNftOwnedTokensSelectColumn = {}));
/** select columns of table "mb_views.nft_tokens" */

@@ -571,3 +571,3 @@ var MbViewsNftTokensSelectColumn;

MbViewsNftTokensSelectColumn["UpdatedAt"] = "updated_at";
})(MbViewsNftTokensSelectColumn = exports.MbViewsNftTokensSelectColumn || (exports.MbViewsNftTokensSelectColumn = {}));
})(MbViewsNftTokensSelectColumn || (exports.MbViewsNftTokensSelectColumn = MbViewsNftTokensSelectColumn = {}));
/** select columns of table "mb_views.nft_tokens_with_listing" */

@@ -590,3 +590,3 @@ var MbViewsNftTokensWithListingSelectColumn;

MbViewsNftTokensWithListingSelectColumn["TokenId"] = "token_id";
})(MbViewsNftTokensWithListingSelectColumn = exports.MbViewsNftTokensWithListingSelectColumn || (exports.MbViewsNftTokensWithListingSelectColumn = {}));
})(MbViewsNftTokensWithListingSelectColumn || (exports.MbViewsNftTokensWithListingSelectColumn = MbViewsNftTokensWithListingSelectColumn = {}));
/** select columns of table "mb_views.nft_tokens_with_media_type" */

@@ -677,3 +677,3 @@ var MbViewsNftTokensWithMediaTypeSelectColumn;

MbViewsNftTokensWithMediaTypeSelectColumn["UpdatedAt"] = "updated_at";
})(MbViewsNftTokensWithMediaTypeSelectColumn = exports.MbViewsNftTokensWithMediaTypeSelectColumn || (exports.MbViewsNftTokensWithMediaTypeSelectColumn = {}));
})(MbViewsNftTokensWithMediaTypeSelectColumn || (exports.MbViewsNftTokensWithMediaTypeSelectColumn = MbViewsNftTokensWithMediaTypeSelectColumn = {}));
/** select columns of table "mb_views.top_stores" */

@@ -688,3 +688,3 @@ var MbViewsTopStoresSelectColumn;

MbViewsTopStoresSelectColumn["Total"] = "total";
})(MbViewsTopStoresSelectColumn = exports.MbViewsTopStoresSelectColumn || (exports.MbViewsTopStoresSelectColumn = {}));
})(MbViewsTopStoresSelectColumn || (exports.MbViewsTopStoresSelectColumn = MbViewsTopStoresSelectColumn = {}));
/** select columns of table "nft_activities" */

@@ -713,3 +713,3 @@ var NftActivitiesSelectColumn;

NftActivitiesSelectColumn["TxSender"] = "tx_sender";
})(NftActivitiesSelectColumn = exports.NftActivitiesSelectColumn || (exports.NftActivitiesSelectColumn = {}));
})(NftActivitiesSelectColumn || (exports.NftActivitiesSelectColumn = NftActivitiesSelectColumn = {}));
/** select columns of table "nft_attributes" */

@@ -728,3 +728,3 @@ var NftAttributesSelectColumn;

NftAttributesSelectColumn["NftMetadataId"] = "nft_metadata_id";
})(NftAttributesSelectColumn = exports.NftAttributesSelectColumn || (exports.NftAttributesSelectColumn = {}));
})(NftAttributesSelectColumn || (exports.NftAttributesSelectColumn = NftAttributesSelectColumn = {}));
/** select columns of table "nft_contracts" */

@@ -761,3 +761,3 @@ var NftContractsSelectColumn;

NftContractsSelectColumn["Symbol"] = "symbol";
})(NftContractsSelectColumn = exports.NftContractsSelectColumn || (exports.NftContractsSelectColumn = {}));
})(NftContractsSelectColumn || (exports.NftContractsSelectColumn = NftContractsSelectColumn = {}));
/** select "nft_contracts_aggregate_bool_exp_bool_and_arguments_columns" columns of table "nft_contracts" */

@@ -768,3 +768,3 @@ var NftContractsSelectColumnNftContractsAggregateBoolExpBoolAndArgumentsColumns;

NftContractsSelectColumnNftContractsAggregateBoolExpBoolAndArgumentsColumns["IsMintbase"] = "is_mintbase";
})(NftContractsSelectColumnNftContractsAggregateBoolExpBoolAndArgumentsColumns = exports.NftContractsSelectColumnNftContractsAggregateBoolExpBoolAndArgumentsColumns || (exports.NftContractsSelectColumnNftContractsAggregateBoolExpBoolAndArgumentsColumns = {}));
})(NftContractsSelectColumnNftContractsAggregateBoolExpBoolAndArgumentsColumns || (exports.NftContractsSelectColumnNftContractsAggregateBoolExpBoolAndArgumentsColumns = NftContractsSelectColumnNftContractsAggregateBoolExpBoolAndArgumentsColumns = {}));
/** select "nft_contracts_aggregate_bool_exp_bool_or_arguments_columns" columns of table "nft_contracts" */

@@ -775,3 +775,3 @@ var NftContractsSelectColumnNftContractsAggregateBoolExpBoolOrArgumentsColumns;

NftContractsSelectColumnNftContractsAggregateBoolExpBoolOrArgumentsColumns["IsMintbase"] = "is_mintbase";
})(NftContractsSelectColumnNftContractsAggregateBoolExpBoolOrArgumentsColumns = exports.NftContractsSelectColumnNftContractsAggregateBoolExpBoolOrArgumentsColumns || (exports.NftContractsSelectColumnNftContractsAggregateBoolExpBoolOrArgumentsColumns = {}));
})(NftContractsSelectColumnNftContractsAggregateBoolExpBoolOrArgumentsColumns || (exports.NftContractsSelectColumnNftContractsAggregateBoolExpBoolOrArgumentsColumns = NftContractsSelectColumnNftContractsAggregateBoolExpBoolOrArgumentsColumns = {}));
/** select columns of table "nft_earnings" */

@@ -806,3 +806,3 @@ var NftEarningsSelectColumn;

NftEarningsSelectColumn["TokenId"] = "token_id";
})(NftEarningsSelectColumn = exports.NftEarningsSelectColumn || (exports.NftEarningsSelectColumn = {}));
})(NftEarningsSelectColumn || (exports.NftEarningsSelectColumn = NftEarningsSelectColumn = {}));
/** select columns of table "nft_listings" */

@@ -841,3 +841,3 @@ var NftListingsSelectColumn;

NftListingsSelectColumn["UnlistedAt"] = "unlisted_at";
})(NftListingsSelectColumn = exports.NftListingsSelectColumn || (exports.NftListingsSelectColumn = {}));
})(NftListingsSelectColumn || (exports.NftListingsSelectColumn = NftListingsSelectColumn = {}));
/** select columns of table "nft_metadata" */

@@ -868,3 +868,3 @@ var NftMetadataSelectColumn;

NftMetadataSelectColumn["Title"] = "title";
})(NftMetadataSelectColumn = exports.NftMetadataSelectColumn || (exports.NftMetadataSelectColumn = {}));
})(NftMetadataSelectColumn || (exports.NftMetadataSelectColumn = NftMetadataSelectColumn = {}));
/** select columns of table "nft_offers" */

@@ -911,3 +911,3 @@ var NftOffersSelectColumn;

NftOffersSelectColumn["WithdrawnAt"] = "withdrawn_at";
})(NftOffersSelectColumn = exports.NftOffersSelectColumn || (exports.NftOffersSelectColumn = {}));
})(NftOffersSelectColumn || (exports.NftOffersSelectColumn = NftOffersSelectColumn = {}));
/** select columns of table "nft_tokens" */

@@ -960,3 +960,3 @@ var NftTokensSelectColumn;

NftTokensSelectColumn["UpdatedAt"] = "updated_at";
})(NftTokensSelectColumn = exports.NftTokensSelectColumn || (exports.NftTokensSelectColumn = {}));
})(NftTokensSelectColumn || (exports.NftTokensSelectColumn = NftTokensSelectColumn = {}));
/** column ordering options */

@@ -977,3 +977,3 @@ var OrderBy;

OrderBy["DescNullsLast"] = "desc_nulls_last";
})(OrderBy = exports.OrderBy || (exports.OrderBy = {}));
})(OrderBy || (exports.OrderBy = OrderBy = {}));
//# sourceMappingURL=graphql.js.map

@@ -17,7 +17,7 @@ "use strict";

const isValidNetwork = (network) => network === sdk_1.NEAR_NETWORKS.MAINNET || network === sdk_1.NEAR_NETWORKS.TESTNET;
const fetchGraphQl = ({ query, variables, network, }) => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b, _c;
const fetchGraphQl = (_a) => __awaiter(void 0, [_a], void 0, function* ({ query, variables, network, }) {
var _b, _c, _d;
let networkObj = network;
if (!network) {
networkObj = (_a = sdk_1.mbjs === null || sdk_1.mbjs === void 0 ? void 0 : sdk_1.mbjs.keys) === null || _a === void 0 ? void 0 : _a.network;
networkObj = (_b = sdk_1.mbjs === null || sdk_1.mbjs === void 0 ? void 0 : sdk_1.mbjs.keys) === null || _b === void 0 ? void 0 : _b.network;
}

@@ -31,3 +31,3 @@ if (networkObj && !isValidNetwork(networkObj)) {

const endpointReady = isValidNetwork(networkObj) && networkObj;
const graphqlEndpoint = (_b = sdk_1.GRAPHQL_ENDPOINTS[networkObj]) !== null && _b !== void 0 ? _b : (_c = sdk_1.mbjs === null || sdk_1.mbjs === void 0 ? void 0 : sdk_1.mbjs.keys) === null || _c === void 0 ? void 0 : _c.graphqlUrl;
const graphqlEndpoint = (_c = sdk_1.GRAPHQL_ENDPOINTS[networkObj]) !== null && _c !== void 0 ? _c : (_d = sdk_1.mbjs === null || sdk_1.mbjs === void 0 ? void 0 : sdk_1.mbjs.keys) === null || _d === void 0 ? void 0 : _d.graphqlUrl;
if (endpointReady && graphqlEndpoint) {

@@ -34,0 +34,0 @@ try {

@@ -10,3 +10,3 @@ "use strict";

OWNED_MINTED_ORDER_BY["PRICE_ASC"] = "price asc";
})(OWNED_MINTED_ORDER_BY = exports.OWNED_MINTED_ORDER_BY || (exports.OWNED_MINTED_ORDER_BY = {}));
})(OWNED_MINTED_ORDER_BY || (exports.OWNED_MINTED_ORDER_BY = OWNED_MINTED_ORDER_BY = {}));
//# sourceMappingURL=types.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validTokenId = exports.validContractAddress = exports.getTokenArrayFromNodes = exports.parseData = exports.objectWithCamelKeys = void 0;
exports.validTokenId = exports.validContractAddress = exports.parseData = exports.objectWithCamelKeys = void 0;
exports.getTokenArrayFromNodes = getTokenArrayFromNodes;
const toCamel = (s) => {

@@ -34,3 +35,2 @@ return s.replace(/([-_][a-z])/ig, ($1) => {

}
exports.getTokenArrayFromNodes = getTokenArrayFromNodes;
const validContractAddress = (contractAddress) => {

@@ -37,0 +37,0 @@ return contractAddress.endsWith('.near') || contractAddress.endsWith('.testnet');

{
"name": "@mintbase-js/data",
"version": "0.6.6-beta-prerelease.0",
"version": "0.6.6-eth-wallet-9a252c1.0",
"description": "Query wrappers for Mintbase JS SDK",

@@ -33,3 +33,3 @@ "main": "lib/index.js",

},
"gitHead": "ccaa6382eaf548e4a33d785e9943d55b6176df67"
"gitHead": "a982f0dabc465401b91cf4bb0fff8d2fa28b8480"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc