@codex-data/sdk 2.4.8 → 2.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ApiTokenQueryVariables, ApiTokensQueryVariables, BalancesQueryVariables, BlocksQueryVariables, CategoriesQueryVariables, CategoryQueryVariables, CategoryTokensQueryVariables, ChartUrlsQueryVariables, DetailedPredictionEventStatsQueryVariables, DetailedPredictionMarketStatsQueryVariables, DetailedPredictionTraderStatsQueryVariables, DetailedWalletStatsQueryVariables, EventScopedFilterPredictionMarketsQueryVariables, FilterExchangesQueryVariables, FilterLaunchpadsQueryVariables, FilterNetworksQueryVariables, FilterPairsQueryVariables, FilterPredictionEventsQueryVariables, FilterPredictionMarketsQueryVariables, FilterPredictionTraderMarketsQueryVariables, FilterPredictionTradersQueryVariables, FilterTokensQueryVariables, FilterTokenWalletsQueryVariables, FilterWalletsQueryVariables, GetBarsQueryVariables, GetCommunityNotesQueryVariables, GetDetailedPairsStatsQueryVariables, GetDetailedPairStatsQueryVariables, GetDetailedTokenStatsQueryVariables, GetEventLabelsQueryVariables, GetExchangesQueryVariables, GetNetworkConfigsQueryVariables, GetNetworksQueryVariables, GetNetworkStatsQueryVariables, GetNetworkStatusQueryVariables, GetSimulateTokenContractResultsQueryVariables, GetSymbolQueryVariables, GetTokenBarsQueryVariables, GetTokenEventsForMakerQueryVariables, GetTokenEventsQueryVariables, GetTokenPricesQueryVariables, GetWebhooksQueryVariables, HoldersQueryVariables, LiquidityLocksV2QueryVariables, LiquidityMetadataByTokenQueryVariables, LiquidityMetadataQueryVariables, ListPairsForTokenQueryVariables, ListPairsWithMetadataForTokenQueryVariables, PairMetadataQueryVariables, PredictionCategoriesQueryVariables, PredictionEventBarsQueryVariables, PredictionEventTopMarketsBarsQueryVariables, PredictionMarketBarsQueryVariables, PredictionMarketPriceQueryVariables, PredictionMarketsQueryVariables, PredictionOutcomeOrderBooksQueryVariables, PredictionTokenHoldersQueryVariables, PredictionTraderBarsQueryVariables, PredictionTraderHoldingsQueryVariables, PredictionTraderMarketsStatsQueryVariables, PredictionTradersQueryVariables, PredictionTradesQueryVariables, TokenQueryVariables, TokenSparklinesQueryVariables, TokensQueryVariables, TokenTopTradersQueryVariables, TokenWalletStatsQueryVariables, Top10HoldersPercentQueryVariables, WalletAggregateBackfillStateQueryVariables, WalletChartQueryVariables, WalletLabelTypesQueryVariables } from "./generated/graphql";
1
+ import { ApiTokenQueryVariables, ApiTokensQueryVariables, BalancesQueryVariables, BlocksQueryVariables, CategoriesQueryVariables, CategoryQueryVariables, CategoryTokensQueryVariables, ChartUrlsQueryVariables, DetailedPredictionEventStatsQueryVariables, DetailedPredictionMarketStatsQueryVariables, DetailedPredictionTraderStatsQueryVariables, DetailedWalletStatsQueryVariables, EventScopedFilterPredictionMarketsQueryVariables, FilterExchangesQueryVariables, FilterLaunchpadsQueryVariables, FilterNetworksQueryVariables, FilterPairsQueryVariables, FilterPredictionEventsQueryVariables, FilterPredictionMarketsQueryVariables, FilterPredictionTraderMarketsQueryVariables, FilterPredictionTradersQueryVariables, FilterTokensQueryVariables, FilterTokenWalletsQueryVariables, FilterWalletsQueryVariables, GetBarsQueryVariables, GetCommunityNotesQueryVariables, GetDetailedPairsStatsQueryVariables, GetDetailedPairStatsQueryVariables, GetDetailedTokenStatsQueryVariables, GetEventLabelsQueryVariables, GetExchangesQueryVariables, GetNetworkConfigsQueryVariables, GetNetworksQueryVariables, GetNetworkStatsQueryVariables, GetNetworkStatusQueryVariables, GetSimulateTokenContractResultsQueryVariables, GetSymbolQueryVariables, GetTokenBarsQueryVariables, GetTokenEventsForMakerQueryVariables, GetTokenEventsQueryVariables, GetTokenPricesQueryVariables, GetWebhooksQueryVariables, HoldersQueryVariables, LiquidityLocksV2QueryVariables, LiquidityMetadataByTokenQueryVariables, LiquidityMetadataQueryVariables, ListPairsForTokenQueryVariables, ListPairsWithMetadataForTokenQueryVariables, PairMetadataQueryVariables, PairsQueryVariables, PredictionCategoriesQueryVariables, PredictionEventBarsQueryVariables, PredictionEventTopMarketsBarsQueryVariables, PredictionMarketBarsQueryVariables, PredictionMarketPriceQueryVariables, PredictionMarketsQueryVariables, PredictionOutcomeOrderBooksQueryVariables, PredictionTokenHoldersQueryVariables, PredictionTraderBarsQueryVariables, PredictionTraderHoldingsQueryVariables, PredictionTraderMarketsStatsQueryVariables, PredictionTradersQueryVariables, PredictionTradesQueryVariables, TokenQueryVariables, TokenSparklinesQueryVariables, TokensQueryVariables, TokenTopTradersQueryVariables, TokenWalletStatsQueryVariables, Top10HoldersPercentQueryVariables, WalletAggregateBackfillStateQueryVariables, WalletChartQueryVariables, WalletLabelTypesQueryVariables } from "./generated/graphql";
2
2
  import { Codex } from "./index";
3
3
  export declare class Query {
4
4
  private sdk;
@@ -52,6 +52,7 @@ export declare class Query {
52
52
  listPairsForToken: (vars: ListPairsForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsForTokenQuery>;
53
53
  listPairsWithMetadataForToken: (vars: ListPairsWithMetadataForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsWithMetadataForTokenQuery>;
54
54
  pairMetadata: (vars: PairMetadataQueryVariables) => Promise<import("./generated/graphql").PairMetadataQuery>;
55
+ pairs: (vars: PairsQueryVariables) => Promise<import("./generated/graphql").PairsQuery>;
55
56
  predictionCategories: (vars: PredictionCategoriesQueryVariables) => Promise<import("./generated/graphql").PredictionCategoriesQuery>;
56
57
  predictionEventBars: (vars: PredictionEventBarsQueryVariables) => Promise<import("./generated/graphql").PredictionEventBarsQuery>;
57
58
  predictionEventTopMarketsBars: (vars: PredictionEventTopMarketsBarsQueryVariables) => Promise<import("./generated/graphql").PredictionEventTopMarketsBarsQuery>;
package/dist/sdk/Query.js CHANGED
@@ -64,6 +64,7 @@ class Query {
64
64
  this.listPairsForToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.ListPairsForTokenDocument, vars); });
65
65
  this.listPairsWithMetadataForToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.ListPairsWithMetadataForTokenDocument, vars); });
66
66
  this.pairMetadata = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PairMetadataDocument, vars); });
67
+ this.pairs = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PairsDocument, vars); });
67
68
  this.predictionCategories = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionCategoriesDocument, vars); });
68
69
  this.predictionEventBars = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionEventBarsDocument, vars); });
69
70
  this.predictionEventTopMarketsBars = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionEventTopMarketsBarsDocument, vars); });
@@ -1,5 +1,5 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
2
- import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, CategoriesDocument, CategoryDocument, CategoryTokensDocument, ChartUrlsDocument, DetailedPredictionEventStatsDocument, DetailedPredictionMarketStatsDocument, DetailedPredictionTraderStatsDocument, DetailedWalletStatsDocument, EventScopedFilterPredictionMarketsDocument, FilterExchangesDocument, FilterLaunchpadsDocument, FilterNetworksDocument, FilterPairsDocument, FilterPredictionEventsDocument, FilterPredictionMarketsDocument, FilterPredictionTraderMarketsDocument, FilterPredictionTradersDocument, FilterTokensDocument, FilterTokenWalletsDocument, FilterWalletsDocument, GetBarsDocument, GetCommunityNotesDocument, GetDetailedPairsStatsDocument, GetDetailedPairStatsDocument, GetDetailedTokenStatsDocument, GetEventLabelsDocument, GetExchangesDocument, GetNetworkConfigsDocument, GetNetworksDocument, GetNetworkStatsDocument, GetNetworkStatusDocument, GetSimulateTokenContractResultsDocument, GetSymbolDocument, GetTokenBarsDocument, GetTokenEventsDocument, GetTokenEventsForMakerDocument, GetTokenPricesDocument, GetWebhooksDocument, HoldersDocument, LiquidityLocksV2Document, LiquidityMetadataByTokenDocument, LiquidityMetadataDocument, ListPairsForTokenDocument, ListPairsWithMetadataForTokenDocument, PairMetadataDocument, PredictionCategoriesDocument, PredictionEventBarsDocument, PredictionEventTopMarketsBarsDocument, PredictionMarketBarsDocument, PredictionMarketPriceDocument, PredictionMarketsDocument, PredictionOutcomeOrderBooksDocument, PredictionTokenHoldersDocument, PredictionTraderBarsDocument, PredictionTraderHoldingsDocument, PredictionTraderMarketsStatsDocument, PredictionTradersDocument, PredictionTradesDocument, TokenDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, TokenWalletStatsDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, WalletLabelTypesDocument, } from "./generated/graphql";
2
+ import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, CategoriesDocument, CategoryDocument, CategoryTokensDocument, ChartUrlsDocument, DetailedPredictionEventStatsDocument, DetailedPredictionMarketStatsDocument, DetailedPredictionTraderStatsDocument, DetailedWalletStatsDocument, EventScopedFilterPredictionMarketsDocument, FilterExchangesDocument, FilterLaunchpadsDocument, FilterNetworksDocument, FilterPairsDocument, FilterPredictionEventsDocument, FilterPredictionMarketsDocument, FilterPredictionTraderMarketsDocument, FilterPredictionTradersDocument, FilterTokensDocument, FilterTokenWalletsDocument, FilterWalletsDocument, GetBarsDocument, GetCommunityNotesDocument, GetDetailedPairsStatsDocument, GetDetailedPairStatsDocument, GetDetailedTokenStatsDocument, GetEventLabelsDocument, GetExchangesDocument, GetNetworkConfigsDocument, GetNetworksDocument, GetNetworkStatsDocument, GetNetworkStatusDocument, GetSimulateTokenContractResultsDocument, GetSymbolDocument, GetTokenBarsDocument, GetTokenEventsDocument, GetTokenEventsForMakerDocument, GetTokenPricesDocument, GetWebhooksDocument, HoldersDocument, LiquidityLocksV2Document, LiquidityMetadataByTokenDocument, LiquidityMetadataDocument, ListPairsForTokenDocument, ListPairsWithMetadataForTokenDocument, PairMetadataDocument, PairsDocument, PredictionCategoriesDocument, PredictionEventBarsDocument, PredictionEventTopMarketsBarsDocument, PredictionMarketBarsDocument, PredictionMarketPriceDocument, PredictionMarketsDocument, PredictionOutcomeOrderBooksDocument, PredictionTokenHoldersDocument, PredictionTraderBarsDocument, PredictionTraderHoldingsDocument, PredictionTraderMarketsStatsDocument, PredictionTradersDocument, PredictionTradesDocument, TokenDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, TokenWalletStatsDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, WalletLabelTypesDocument, } from "./generated/graphql";
3
3
  export class Query {
4
4
  constructor(sdk) {
5
5
  this.sdk = sdk;
@@ -52,6 +52,7 @@ export class Query {
52
52
  this.listPairsForToken = async (vars) => this.sdk.query(ListPairsForTokenDocument, vars);
53
53
  this.listPairsWithMetadataForToken = async (vars) => this.sdk.query(ListPairsWithMetadataForTokenDocument, vars);
54
54
  this.pairMetadata = async (vars) => this.sdk.query(PairMetadataDocument, vars);
55
+ this.pairs = async (vars) => this.sdk.query(PairsDocument, vars);
55
56
  this.predictionCategories = async (vars) => this.sdk.query(PredictionCategoriesDocument, vars);
56
57
  this.predictionEventBars = async (vars) => this.sdk.query(PredictionEventBarsDocument, vars);
57
58
  this.predictionEventTopMarketsBars = async (vars) => this.sdk.query(PredictionEventTopMarketsBarsDocument, vars);
@@ -4,8 +4,8 @@ exports.Subscribe = void 0;
4
4
  class Subscribe {
5
5
  constructor(sdk) {
6
6
  this.sdk = sdk;
7
- this.onBalanceUpdated = (vars, sink, options) => this.sdk.subscribe(`subscription OnBalanceUpdated($walletAddress: String!) {
8
- onBalanceUpdated (walletAddress: $walletAddress) {
7
+ this.onBalanceUpdated = (vars, sink, options) => this.sdk.subscribe(`subscription OnBalanceUpdated($excludeTokens: [String!], $networks: [Int!], $walletAddress: String!) {
8
+ onBalanceUpdated (excludeTokens: $excludeTokens, networks: $networks, walletAddress: $walletAddress) {
9
9
  address, assetId, balance, balanceDecimals, balanceUsd, firstHeldTimestamp, isBalanceAlias, liquidityUsd, networkId, shiftedBalance, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, creatorBalanceNBT, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, categories { description, id, memberCount, name, parentId, shortName, slug, status, type }, cmcId, coinCommunity { createdAt, id, lastPostAt, likeCount, memberCount, postCount }, createBlockNumber, createTransactionHash, createdAt, creator { address, avatarUrl, category, description, discordId, discordUsername, displayName, ethosLevel, ethosScore, ethosVerified, farcasterId, farcasterUsername, firstFunding { amount, fundedAt, fundedByAddress, fundedByLabel, networkId, tokenAddress, transactionHash }, firstSeenTimestamp, githubId, githubUsername, identityLabels, identitySource, identityUpdatedAt, polymarket { displayName, displayUsernamePublic, fetchedAt, profileImageUrl, proxyWallet, pseudonym, verifiedBadge, xUsername }, telegramId, telegramUsername, tokensCreatedCount, tokensMigratedCount, tradeSourceIds, twitterId, twitterUsername, website }, creatorAddress, creatorBalanceNBT, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extensions { b20 { multiplier, multiplierObservedAt, pausedBurn, pausedMint, pausedTransfer, supplyCap }, robinhoodStockToken { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt, oraclePaused, uid }, token2022 { scaledUiAmountConfig { authority, multiplier, newMultiplier, newMultiplierEffectiveTimestamp }, transferFeeConfig { transferFeeConfigAuthority } }, xStock { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt } }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, issuer { displayName, id }, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, risk { analyzedAt, buyTax, coverage, flaggedAt, reasons, score, sellTax, verdict }, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, tokenStandardCustomData { collaborators, featuredImage, type }, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, categories { description, id, memberCount, name, parentId, shortName, slug, status, type }, cmcId, coinCommunity { createdAt, id, lastPostAt, likeCount, memberCount, postCount }, createBlockNumber, createTransactionHash, createdAt, creator { address, avatarUrl, category, description, discordId, discordUsername, displayName, ethosLevel, ethosScore, ethosVerified, farcasterId, farcasterUsername, firstFunding { amount, fundedAt, fundedByAddress, fundedByLabel, networkId, tokenAddress, transactionHash }, firstSeenTimestamp, githubId, githubUsername, identityLabels, identitySource, identityUpdatedAt, polymarket { displayName, displayUsernamePublic, fetchedAt, profileImageUrl, proxyWallet, pseudonym, verifiedBadge, xUsername }, telegramId, telegramUsername, tokensCreatedCount, tokensMigratedCount, tradeSourceIds, twitterId, twitterUsername, website }, creatorAddress, creatorBalanceNBT, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extensions { b20 { multiplier, multiplierObservedAt, pausedBurn, pausedMint, pausedTransfer, supplyCap }, robinhoodStockToken { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt, oraclePaused, uid }, token2022 { scaledUiAmountConfig { authority, multiplier, newMultiplier, newMultiplierEffectiveTimestamp }, transferFeeConfig { newerTransferFee { epoch, maximumFee, transferFeeBasisPoints }, olderTransferFee { epoch, maximumFee, transferFeeBasisPoints }, transferFeeConfigAuthority } }, xStock { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt } }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, issuer { displayName, id }, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, categories { description, id, memberCount, name, parentId, shortName, slug, status, type }, cmcId, coinCommunity { createdAt, id, lastPostAt, likeCount, memberCount, postCount }, createBlockNumber, createTransactionHash, createdAt, creator { address, avatarUrl, category, description, discordId, discordUsername, displayName, ethosLevel, ethosScore, ethosVerified, farcasterId, farcasterUsername, firstFunding { amount, fundedAt, fundedByAddress, fundedByLabel, networkId, tokenAddress, transactionHash }, firstSeenTimestamp, githubId, githubUsername, identityLabels, identitySource, identityUpdatedAt, polymarket { displayName, displayUsernamePublic, fetchedAt, profileImageUrl, proxyWallet, pseudonym, verifiedBadge, xUsername }, telegramId, telegramUsername, tokensCreatedCount, tokensMigratedCount, tradeSourceIds, twitterId, twitterUsername, website }, creatorAddress, creatorBalanceNBT, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extensions { b20 { multiplier, multiplierObservedAt, pausedBurn, pausedMint, pausedTransfer, supplyCap }, robinhoodStockToken { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt, oraclePaused, uid }, xStock { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt } }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, issuer { displayName, id }, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, risk { analyzedAt, buyTax, coverage, flaggedAt, reasons, score, sellTax, verdict }, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, tokenStandardCustomData { collaborators, featuredImage, type }, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, risk { analyzedAt, buyTax, coverage, flaggedAt, reasons, score, sellTax, verdict }, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, tokenStandardCustomData { collaborators, featuredImage, type }, top10HoldersPercent }, tokenAddress, tokenId, tokenLastTradedTimestamp, tokenPriceUsd, uiBalance, updatedAtBlock, wallet { address, avatarUrl, category, description, discordId, discordUsername, displayName, ethosLevel, ethosScore, ethosVerified, farcasterId, farcasterUsername, firstFunding { amount, fundedAt, fundedByAddress, fundedByLabel, networkId, tokenAddress, transactionHash }, firstSeenTimestamp, githubId, githubUsername, identityLabels, identitySource, identityUpdatedAt, polymarket { displayName, displayUsernamePublic, fetchedAt, profileImageUrl, proxyWallet, pseudonym, verifiedBadge, xUsername }, telegramId, telegramUsername, tokensCreatedCount, tokensMigratedCount, tradeSourceIds, twitterId, twitterUsername, website }, walletId
10
10
  }
11
11
  }`, vars, sink, options);
@@ -1,8 +1,8 @@
1
1
  export class Subscribe {
2
2
  constructor(sdk) {
3
3
  this.sdk = sdk;
4
- this.onBalanceUpdated = (vars, sink, options) => this.sdk.subscribe(`subscription OnBalanceUpdated($walletAddress: String!) {
5
- onBalanceUpdated (walletAddress: $walletAddress) {
4
+ this.onBalanceUpdated = (vars, sink, options) => this.sdk.subscribe(`subscription OnBalanceUpdated($excludeTokens: [String!], $networks: [Int!], $walletAddress: String!) {
5
+ onBalanceUpdated (excludeTokens: $excludeTokens, networks: $networks, walletAddress: $walletAddress) {
6
6
  address, assetId, balance, balanceDecimals, balanceUsd, firstHeldTimestamp, isBalanceAlias, liquidityUsd, networkId, shiftedBalance, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, creatorBalanceNBT, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, categories { description, id, memberCount, name, parentId, shortName, slug, status, type }, cmcId, coinCommunity { createdAt, id, lastPostAt, likeCount, memberCount, postCount }, createBlockNumber, createTransactionHash, createdAt, creator { address, avatarUrl, category, description, discordId, discordUsername, displayName, ethosLevel, ethosScore, ethosVerified, farcasterId, farcasterUsername, firstFunding { amount, fundedAt, fundedByAddress, fundedByLabel, networkId, tokenAddress, transactionHash }, firstSeenTimestamp, githubId, githubUsername, identityLabels, identitySource, identityUpdatedAt, polymarket { displayName, displayUsernamePublic, fetchedAt, profileImageUrl, proxyWallet, pseudonym, verifiedBadge, xUsername }, telegramId, telegramUsername, tokensCreatedCount, tokensMigratedCount, tradeSourceIds, twitterId, twitterUsername, website }, creatorAddress, creatorBalanceNBT, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extensions { b20 { multiplier, multiplierObservedAt, pausedBurn, pausedMint, pausedTransfer, supplyCap }, robinhoodStockToken { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt, oraclePaused, uid }, token2022 { scaledUiAmountConfig { authority, multiplier, newMultiplier, newMultiplierEffectiveTimestamp }, transferFeeConfig { transferFeeConfigAuthority } }, xStock { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt } }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, issuer { displayName, id }, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, risk { analyzedAt, buyTax, coverage, flaggedAt, reasons, score, sellTax, verdict }, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, tokenStandardCustomData { collaborators, featuredImage, type }, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, categories { description, id, memberCount, name, parentId, shortName, slug, status, type }, cmcId, coinCommunity { createdAt, id, lastPostAt, likeCount, memberCount, postCount }, createBlockNumber, createTransactionHash, createdAt, creator { address, avatarUrl, category, description, discordId, discordUsername, displayName, ethosLevel, ethosScore, ethosVerified, farcasterId, farcasterUsername, firstFunding { amount, fundedAt, fundedByAddress, fundedByLabel, networkId, tokenAddress, transactionHash }, firstSeenTimestamp, githubId, githubUsername, identityLabels, identitySource, identityUpdatedAt, polymarket { displayName, displayUsernamePublic, fetchedAt, profileImageUrl, proxyWallet, pseudonym, verifiedBadge, xUsername }, telegramId, telegramUsername, tokensCreatedCount, tokensMigratedCount, tradeSourceIds, twitterId, twitterUsername, website }, creatorAddress, creatorBalanceNBT, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extensions { b20 { multiplier, multiplierObservedAt, pausedBurn, pausedMint, pausedTransfer, supplyCap }, robinhoodStockToken { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt, oraclePaused, uid }, token2022 { scaledUiAmountConfig { authority, multiplier, newMultiplier, newMultiplierEffectiveTimestamp }, transferFeeConfig { newerTransferFee { epoch, maximumFee, transferFeeBasisPoints }, olderTransferFee { epoch, maximumFee, transferFeeBasisPoints }, transferFeeConfigAuthority } }, xStock { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt } }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, issuer { displayName, id }, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, categories { description, id, memberCount, name, parentId, shortName, slug, status, type }, cmcId, coinCommunity { createdAt, id, lastPostAt, likeCount, memberCount, postCount }, createBlockNumber, createTransactionHash, createdAt, creator { address, avatarUrl, category, description, discordId, discordUsername, displayName, ethosLevel, ethosScore, ethosVerified, farcasterId, farcasterUsername, firstFunding { amount, fundedAt, fundedByAddress, fundedByLabel, networkId, tokenAddress, transactionHash }, firstSeenTimestamp, githubId, githubUsername, identityLabels, identitySource, identityUpdatedAt, polymarket { displayName, displayUsernamePublic, fetchedAt, profileImageUrl, proxyWallet, pseudonym, verifiedBadge, xUsername }, telegramId, telegramUsername, tokensCreatedCount, tokensMigratedCount, tradeSourceIds, twitterId, twitterUsername, website }, creatorAddress, creatorBalanceNBT, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extensions { b20 { multiplier, multiplierObservedAt, pausedBurn, pausedMint, pausedTransfer, supplyCap }, robinhoodStockToken { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt, oraclePaused, uid }, xStock { multiplier, multiplierObservedAt, newMultiplier, newMultiplierEffectiveAt } }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, issuer { displayName, id }, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, risk { analyzedAt, buyTax, coverage, flaggedAt, reasons, score, sellTax, verdict }, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, tokenStandardCustomData { collaborators, featuredImage, type }, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, risk { analyzedAt, buyTax, coverage, flaggedAt, reasons, score, sellTax, verdict }, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, tokenStandardCustomData { collaborators, featuredImage, type }, top10HoldersPercent }, tokenAddress, tokenId, tokenLastTradedTimestamp, tokenPriceUsd, uiBalance, updatedAtBlock, wallet { address, avatarUrl, category, description, discordId, discordUsername, displayName, ethosLevel, ethosScore, ethosVerified, farcasterId, farcasterUsername, firstFunding { amount, fundedAt, fundedByAddress, fundedByLabel, networkId, tokenAddress, transactionHash }, firstSeenTimestamp, githubId, githubUsername, identityLabels, identitySource, identityUpdatedAt, polymarket { displayName, displayUsernamePublic, fetchedAt, profileImageUrl, proxyWallet, pseudonym, verifiedBadge, xUsername }, telegramId, telegramUsername, tokensCreatedCount, tokensMigratedCount, tradeSourceIds, twitterId, twitterUsername, website }, walletId
7
7
  }
8
8
  }`, vars, sink, options);