Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codex-data/sdk",
"version": "2.0.0",
"version": "2.0.1",
"engines": {
"node": ">=17.5.0"
},
Expand Down
106 changes: 0 additions & 106 deletions src/sdk/Query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ import {
DetailedWalletStatsQueryVariables,
FilterExchangesDocument,
FilterExchangesQueryVariables,
FilterNftCollectionsDocument,
FilterNftCollectionsQueryVariables,
FilterNftParallelAssetsDocument,
FilterNftParallelAssetsQueryVariables,
FilterNftPoolCollectionsDocument,
FilterNftPoolCollectionsQueryVariables,
FilterNftPoolsDocument,
FilterNftPoolsQueryVariables,
FilterPairsDocument,
FilterPairsQueryVariables,
FilterTokensDocument,
Expand All @@ -34,8 +26,6 @@ import {
GetBarsQueryVariables,
GetCommunityNotesDocument,
GetCommunityNotesQueryVariables,
GetDetailedNftStatsDocument,
GetDetailedNftStatsQueryVariables,
GetDetailedPairsStatsDocument,
GetDetailedPairsStatsQueryVariables,
GetDetailedPairStatsDocument,
Expand All @@ -52,36 +42,6 @@ import {
GetNetworkStatsQueryVariables,
GetNetworkStatusDocument,
GetNetworkStatusQueryVariables,
GetNftAssetsDocument,
GetNftAssetsQueryVariables,
GetNftCollectionMetadataDocument,
GetNftCollectionMetadataQueryVariables,
GetNftContractsDocument,
GetNftContractsQueryVariables,
GetNftEventsDocument,
GetNftEventsQueryVariables,
GetNftPoolCollectionDocument,
GetNftPoolCollectionQueryVariables,
GetNftPoolCollectionsByExchangeDocument,
GetNftPoolCollectionsByExchangeQueryVariables,
GetNftPoolDocument,
GetNftPoolEventsDocument,
GetNftPoolEventsQueryVariables,
GetNftPoolQueryVariables,
GetNftPoolsByCollectionAndExchangeDocument,
GetNftPoolsByCollectionAndExchangeQueryVariables,
GetNftPoolsByOwnerDocument,
GetNftPoolsByOwnerQueryVariables,
GetNftPoolStatsDocument,
GetNftPoolStatsQueryVariables,
GetParallelCardChangesDocument,
GetParallelCardChangesQueryVariables,
GetPrimePoolAssetsDocument,
GetPrimePoolAssetsQueryVariables,
GetPrimePoolEventsDocument,
GetPrimePoolEventsQueryVariables,
GetPrimePoolsDocument,
GetPrimePoolsQueryVariables,
GetSymbolDocument,
GetSymbolQueryVariables,
GetTokenBarsDocument,
Expand All @@ -106,14 +66,8 @@ import {
ListPairsForTokenQueryVariables,
ListPairsWithMetadataForTokenDocument,
ListPairsWithMetadataForTokenQueryVariables,
NftHoldersDocument,
NftHoldersQueryVariables,
PairMetadataDocument,
PairMetadataQueryVariables,
PrimeHoldersDocument,
PrimeHoldersQueryVariables,
SearchNftsDocument,
SearchNftsQueryVariables,
TokenDocument,
TokenLifecycleEventsDocument,
TokenLifecycleEventsQueryVariables,
Expand All @@ -130,10 +84,6 @@ import {
WalletAggregateBackfillStateQueryVariables,
WalletChartDocument,
WalletChartQueryVariables,
WalletNftCollectionAssetsDocument,
WalletNftCollectionAssetsQueryVariables,
WalletNftCollectionsDocument,
WalletNftCollectionsQueryVariables,
} from "./generated/graphql";
import { Codex } from "./index";

Expand All @@ -153,16 +103,6 @@ export class Query {
this.sdk.query(DetailedWalletStatsDocument, vars);
filterExchanges = async (vars: FilterExchangesQueryVariables) =>
this.sdk.query(FilterExchangesDocument, vars);
filterNftCollections = async (vars: FilterNftCollectionsQueryVariables) =>
this.sdk.query(FilterNftCollectionsDocument, vars);
filterNftParallelAssets = async (
vars: FilterNftParallelAssetsQueryVariables,
) => this.sdk.query(FilterNftParallelAssetsDocument, vars);
filterNftPoolCollections = async (
vars: FilterNftPoolCollectionsQueryVariables,
) => this.sdk.query(FilterNftPoolCollectionsDocument, vars);
filterNftPools = async (vars: FilterNftPoolsQueryVariables) =>
this.sdk.query(FilterNftPoolsDocument, vars);
filterPairs = async (vars: FilterPairsQueryVariables) =>
this.sdk.query(FilterPairsDocument, vars);
filterTokenWallets = async (vars: FilterTokenWalletsQueryVariables) =>
Expand All @@ -175,8 +115,6 @@ export class Query {
this.sdk.query(GetBarsDocument, vars);
getCommunityNotes = async (vars: GetCommunityNotesQueryVariables) =>
this.sdk.query(GetCommunityNotesDocument, vars);
getDetailedNftStats = async (vars: GetDetailedNftStatsQueryVariables) =>
this.sdk.query(GetDetailedNftStatsDocument, vars);
getDetailedPairStats = async (vars: GetDetailedPairStatsQueryVariables) =>
this.sdk.query(GetDetailedPairStatsDocument, vars);
getDetailedPairsStats = async (vars: GetDetailedPairsStatsQueryVariables) =>
Expand All @@ -193,39 +131,6 @@ export class Query {
this.sdk.query(GetNetworkStatusDocument, vars);
getNetworks = async (vars: GetNetworksQueryVariables) =>
this.sdk.query(GetNetworksDocument, vars);
getNftAssets = async (vars: GetNftAssetsQueryVariables) =>
this.sdk.query(GetNftAssetsDocument, vars);
getNftCollectionMetadata = async (
vars: GetNftCollectionMetadataQueryVariables,
) => this.sdk.query(GetNftCollectionMetadataDocument, vars);
getNftContracts = async (vars: GetNftContractsQueryVariables) =>
this.sdk.query(GetNftContractsDocument, vars);
getNftEvents = async (vars: GetNftEventsQueryVariables) =>
this.sdk.query(GetNftEventsDocument, vars);
getNftPool = async (vars: GetNftPoolQueryVariables) =>
this.sdk.query(GetNftPoolDocument, vars);
getNftPoolCollection = async (vars: GetNftPoolCollectionQueryVariables) =>
this.sdk.query(GetNftPoolCollectionDocument, vars);
getNftPoolCollectionsByExchange = async (
vars: GetNftPoolCollectionsByExchangeQueryVariables,
) => this.sdk.query(GetNftPoolCollectionsByExchangeDocument, vars);
getNftPoolEvents = async (vars: GetNftPoolEventsQueryVariables) =>
this.sdk.query(GetNftPoolEventsDocument, vars);
getNftPoolStats = async (vars: GetNftPoolStatsQueryVariables) =>
this.sdk.query(GetNftPoolStatsDocument, vars);
getNftPoolsByCollectionAndExchange = async (
vars: GetNftPoolsByCollectionAndExchangeQueryVariables,
) => this.sdk.query(GetNftPoolsByCollectionAndExchangeDocument, vars);
getNftPoolsByOwner = async (vars: GetNftPoolsByOwnerQueryVariables) =>
this.sdk.query(GetNftPoolsByOwnerDocument, vars);
getParallelCardChanges = async (vars: GetParallelCardChangesQueryVariables) =>
this.sdk.query(GetParallelCardChangesDocument, vars);
getPrimePoolAssets = async (vars: GetPrimePoolAssetsQueryVariables) =>
this.sdk.query(GetPrimePoolAssetsDocument, vars);
getPrimePoolEvents = async (vars: GetPrimePoolEventsQueryVariables) =>
this.sdk.query(GetPrimePoolEventsDocument, vars);
getPrimePools = async (vars: GetPrimePoolsQueryVariables) =>
this.sdk.query(GetPrimePoolsDocument, vars);
getSymbol = async (vars: GetSymbolQueryVariables) =>
this.sdk.query(GetSymbolDocument, vars);
getTokenBars = async (vars: GetTokenBarsQueryVariables) =>
Expand All @@ -252,14 +157,8 @@ export class Query {
listPairsWithMetadataForToken = async (
vars: ListPairsWithMetadataForTokenQueryVariables,
) => this.sdk.query(ListPairsWithMetadataForTokenDocument, vars);
nftHolders = async (vars: NftHoldersQueryVariables) =>
this.sdk.query(NftHoldersDocument, vars);
pairMetadata = async (vars: PairMetadataQueryVariables) =>
this.sdk.query(PairMetadataDocument, vars);
primeHolders = async (vars: PrimeHoldersQueryVariables) =>
this.sdk.query(PrimeHoldersDocument, vars);
searchNfts = async (vars: SearchNftsQueryVariables) =>
this.sdk.query(SearchNftsDocument, vars);
token = async (vars: TokenQueryVariables) =>
this.sdk.query(TokenDocument, vars);
tokenLifecycleEvents = async (vars: TokenLifecycleEventsQueryVariables) =>
Expand All @@ -277,9 +176,4 @@ export class Query {
) => this.sdk.query(WalletAggregateBackfillStateDocument, vars);
walletChart = async (vars: WalletChartQueryVariables) =>
this.sdk.query(WalletChartDocument, vars);
walletNftCollectionAssets = async (
vars: WalletNftCollectionAssetsQueryVariables,
) => this.sdk.query(WalletNftCollectionAssetsDocument, vars);
walletNftCollections = async (vars: WalletNftCollectionsQueryVariables) =>
this.sdk.query(WalletNftCollectionsDocument, vars);
}
6 changes: 3 additions & 3 deletions src/sdk/Subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class Subscribe {
this.sdk.subscribe(
`subscription OnBalanceUpdated($walletAddress: String!) {
onBalanceUpdated (walletAddress: $walletAddress) {
address, balance, balanceUsd, firstHeldTimestamp, networkId, shiftedBalance, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, tokenAddress, tokenId, tokenPriceUsd, walletId
address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, networkId, shiftedBalance, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, tokenAddress, tokenId, tokenPriceUsd, walletId
}
}`,
vars,
Expand Down Expand Up @@ -156,7 +156,7 @@ export class Subscribe {
this.sdk.subscribe(
`subscription OnHoldersUpdated($tokenId: String!) {
onHoldersUpdated (tokenId: $tokenId) {
balances { address, balance, balanceUsd, firstHeldTimestamp, networkId, shiftedBalance, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, tokenAddress, tokenId, tokenPriceUsd, walletId }, holders, networkId, tokenAddress, tokenId
balances { address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, networkId, shiftedBalance, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, tokenAddress, tokenId, tokenPriceUsd, walletId }, holders, networkId, tokenAddress, tokenId
}
}`,
vars,
Expand Down Expand Up @@ -260,7 +260,7 @@ export class Subscribe {
this.sdk.subscribe(
`subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken, $useNonLiquidityTokenAsQuoteToken: Boolean) {
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
createdAt, enhancedToken0 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, enhancedToken1 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, exchangeId, fee, highPrice1, highPrice4, highPrice5m, highPrice12, highPrice24, id, liquidity, liquidityToken, lowPrice1, lowPrice4, lowPrice5m, lowPrice12, lowPrice24, networkId, nonLiquidityToken, pairAddress, price, priceChange1, priceChange4, priceChange5m, priceChange12, priceChange24, priceNonQuoteToken, quoteToken, statsType, tickSpacing, token0 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, token1 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, volume1, volume4, volume5m, volume12, volume24
createdAt, enhancedToken0 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, enhancedToken1 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, exchangeId, fee, highPrice1, highPrice4, highPrice5m, highPrice12, highPrice24, id, liquidity, liquidityToken, lowPrice1, lowPrice4, lowPrice5m, lowPrice12, lowPrice24, networkId, nonLiquidityToken, pairAddress, price, priceChange1, priceChange4, priceChange5m, priceChange12, priceChange24, priceNonQuoteToken, quoteToken, statsType, tickSpacing, token0 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, token1 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, volume1, volume4, volume5m, volume12, volume24, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
}
}`,
vars,
Expand Down
Loading
Loading