@codex-data/sdk 2.3.1 → 2.3.2
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.
- package/dist/sdk/Subscribe.d.ts +2 -2
- package/dist/sdk/Subscribe.js +12 -12
- package/dist/sdk/Subscribe.mjs +12 -12
- package/dist/sdk/generated/gql.d.ts +50 -50
- package/dist/sdk/generated/gql.js +25 -25
- package/dist/sdk/generated/gql.mjs +25 -25
- package/dist/sdk/generated/graphql.d.ts +378 -14
- package/dist/sdk/generated/graphql.js +80 -28
- package/dist/sdk/generated/graphql.mjs +77 -25
- package/package.json +1 -1
package/dist/sdk/Subscribe.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExecutionResult, Sink } from "graphql-ws";
|
|
2
|
-
import { OnBalanceUpdatedSubscription, OnBalanceUpdatedSubscriptionVariables, OnBarsUpdatedSubscription, OnBarsUpdatedSubscriptionVariables, OnDetailedPredictionEventStatsUpdatedSubscription, OnDetailedPredictionEventStatsUpdatedSubscriptionVariables, OnDetailedPredictionMarketStatsUpdatedSubscription, OnDetailedPredictionMarketStatsUpdatedSubscriptionVariables, OnDetailedStatsUpdatedSubscription, OnDetailedStatsUpdatedSubscriptionVariables, OnDetailedTokenStatsUpdatedSubscription, OnDetailedTokenStatsUpdatedSubscriptionVariables, OnEventLabelCreatedSubscription, OnEventLabelCreatedSubscriptionVariables, OnEventsCreatedByMakerSubscription, OnEventsCreatedByMakerSubscriptionVariables, OnEventsCreatedSubscription, OnEventsCreatedSubscriptionVariables,
|
|
2
|
+
import { OnBalanceUpdatedSubscription, OnBalanceUpdatedSubscriptionVariables, OnBarsUpdatedSubscription, OnBarsUpdatedSubscriptionVariables, OnDetailedPredictionEventStatsUpdatedSubscription, OnDetailedPredictionEventStatsUpdatedSubscriptionVariables, OnDetailedPredictionMarketStatsUpdatedSubscription, OnDetailedPredictionMarketStatsUpdatedSubscriptionVariables, OnDetailedStatsUpdatedSubscription, OnDetailedStatsUpdatedSubscriptionVariables, OnDetailedTokenStatsUpdatedSubscription, OnDetailedTokenStatsUpdatedSubscriptionVariables, OnEventLabelCreatedSubscription, OnEventLabelCreatedSubscriptionVariables, OnEventsCreatedByMakerSubscription, OnEventsCreatedByMakerSubscriptionVariables, OnEventsCreatedSubscription, OnEventsCreatedSubscriptionVariables, OnFilterTokensUpdatedSubscription, OnFilterTokensUpdatedSubscriptionVariables, OnHoldersUpdatedSubscription, OnHoldersUpdatedSubscriptionVariables, OnLatestPairUpdatedSubscription, OnLatestPairUpdatedSubscriptionVariables, OnLatestTokensSubscription, OnLatestTokensSubscriptionVariables, OnLaunchpadTokenEventBatchSubscription, OnLaunchpadTokenEventBatchSubscriptionVariables, OnLaunchpadTokenEventSubscription, OnLaunchpadTokenEventSubscriptionVariables, OnNftAssetsCreatedSubscription, OnNftAssetsCreatedSubscriptionVariables, OnNftEventsCreatedSubscription, OnNftEventsCreatedSubscriptionVariables, OnNftPoolEventsCreatedSubscription, OnNftPoolEventsCreatedSubscriptionVariables, OnPairMetadataUpdatedSubscription, OnPairMetadataUpdatedSubscriptionVariables, OnPredictionEventBarsUpdatedSubscription, OnPredictionEventBarsUpdatedSubscriptionVariables, OnPredictionMarketBarsUpdatedSubscription, OnPredictionMarketBarsUpdatedSubscriptionVariables, OnPredictionTradesCreatedSubscription, OnPredictionTradesCreatedSubscriptionVariables, OnPricesUpdatedSubscription, OnPricesUpdatedSubscriptionVariables, OnPriceUpdatedSubscription, OnPriceUpdatedSubscriptionVariables, OnTokenBarsUpdatedSubscription, OnTokenBarsUpdatedSubscriptionVariables, OnTokenEventsCreatedSubscription, OnTokenEventsCreatedSubscriptionVariables, OnTokenLifecycleEventsCreatedSubscription, OnTokenLifecycleEventsCreatedSubscriptionVariables, OnUnconfirmedBarsUpdatedSubscription, OnUnconfirmedBarsUpdatedSubscriptionVariables, OnUnconfirmedEventsCreatedByMakerSubscription, OnUnconfirmedEventsCreatedByMakerSubscriptionVariables, OnUnconfirmedEventsCreatedSubscription, OnUnconfirmedEventsCreatedSubscriptionVariables } from "./generated/graphql";
|
|
3
3
|
import { Codex } from "./index";
|
|
4
4
|
export declare class Subscribe {
|
|
5
5
|
private sdk;
|
|
@@ -13,7 +13,7 @@ export declare class Subscribe {
|
|
|
13
13
|
onEventLabelCreated: (vars: OnEventLabelCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription>>) => import("./index").CleanupFunction;
|
|
14
14
|
onEventsCreated: (vars: OnEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedSubscription>>) => import("./index").CleanupFunction;
|
|
15
15
|
onEventsCreatedByMaker: (vars: OnEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedByMakerSubscription>>) => import("./index").CleanupFunction;
|
|
16
|
-
|
|
16
|
+
onFilterTokensUpdated: (vars: OnFilterTokensUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnFilterTokensUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
17
17
|
onHoldersUpdated: (vars: OnHoldersUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnHoldersUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
18
18
|
onLatestPairUpdated: (vars: OnLatestPairUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnLatestPairUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
19
19
|
onLatestTokens: (vars: OnLatestTokensSubscriptionVariables, sink: Sink<ExecutionResult<OnLatestTokensSubscription>>) => import("./index").CleanupFunction;
|
package/dist/sdk/Subscribe.js
CHANGED
|
@@ -6,7 +6,7 @@ class Subscribe {
|
|
|
6
6
|
this.sdk = sdk;
|
|
7
7
|
this.onBalanceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnBalanceUpdated($walletAddress: String!) {
|
|
8
8
|
onBalanceUpdated (walletAddress: $walletAddress) {
|
|
9
|
-
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, isCashbackEnabled, 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, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId
|
|
9
|
+
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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId
|
|
10
10
|
}
|
|
11
11
|
}`, vars, sink);
|
|
12
12
|
this.onBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnBarsUpdated($pairId: String, $quoteToken: QuoteToken) {
|
|
@@ -67,14 +67,14 @@ class Subscribe {
|
|
|
67
67
|
events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, feeData { baseFeeNativeUnit, builderTipNativeUnit, dynamicFee, estimatedPoolFee, gasUsed, l1DataFeeNativeUnit, poolFeeAmountRaw, poolFeeBps, poolFeeRateRaw, priorityFeeNativeUnit, supplementalFeeData { ... on PumpAmmCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type }, ... on PumpCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type } }, txEventCount }, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, makerAddress
|
|
68
68
|
}
|
|
69
69
|
}`, vars, sink);
|
|
70
|
-
this.
|
|
71
|
-
|
|
72
|
-
updates { bundlerCount, bundlerHeldPercentage, buyCount1, buyCount4, buyCount5m, buyCount12, buyCount24, buyVolume1, buyVolume4, buyVolume5m, buyVolume12, buyVolume24, change1, change4, change5m, change12, change24, circulatingMarketCap, createdAt, devHeldPercentage, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, high1, high4, high5m, high12, high24, holders, insiderCount, insiderHeldPercentage, isScam, lastTransaction, liquidPair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { 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, isCashbackEnabled, 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, top10HoldersPercent }, token1, token1Data { 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, isCashbackEnabled, 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, top10HoldersPercent }, virtualPooled { token0, token1 } }, liquidPairLiquidity, liquidPairPriceUSD, liquidity, low1, low4, low5m, low12, low24, marketCap, pair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { 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, isCashbackEnabled, 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, top10HoldersPercent }, token1, token1Data { 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, isCashbackEnabled, 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, top10HoldersPercent }, virtualPooled { token0, token1 } }, potentialScamReasons, priceUSD, quoteToken, sellCount1, sellCount4, sellCount5m, sellCount12, sellCount24, sellVolume1, sellVolume4, sellVolume5m, sellVolume12, sellVolume24, sniperCount, sniperHeldPercentage, swapPct1dOldWallet, swapPct7dOldWallet, 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, isCashbackEnabled, 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, top10HoldersPercent }, top10HoldersPercent, trendingScore, txnCount1, txnCount4, txnCount5m, txnCount12, txnCount24, uniqueBuys1, uniqueBuys4, uniqueBuys5m, uniqueBuys12, uniqueBuys24, uniqueSells1, uniqueSells4, uniqueSells5m, uniqueSells12, uniqueSells24, uniqueTransactions1, uniqueTransactions4, uniqueTransactions5m, uniqueTransactions12, uniqueTransactions24, volume1, volume4, volume5m, volume12, volume24, volumeChange1, volumeChange4, volumeChange5m, volumeChange12, volumeChange24, walletAgeAvg, walletAgeStd }
|
|
70
|
+
this.onFilterTokensUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnFilterTokensUpdated($excludeTokens: [String], $filters: TokenFilters, $limit: Int, $offset: Int, $phrase: String, $rankings: [TokenRanking], $statsType: TokenPairStatisticsType, $tokens: [String], $updatePeriod: Int, $useAggregatedStats: Boolean) {
|
|
71
|
+
onFilterTokensUpdated (excludeTokens: $excludeTokens, filters: $filters, limit: $limit, offset: $offset, phrase: $phrase, rankings: $rankings, statsType: $statsType, tokens: $tokens, updatePeriod: $updatePeriod, useAggregatedStats: $useAggregatedStats) {
|
|
72
|
+
updates { baseFees1, baseFees4, baseFees5m, baseFees12, baseFees24, builderTips1, builderTips4, builderTips5m, builderTips12, builderTips24, bundlerCount, bundlerHeldPercentage, buyCount1, buyCount4, buyCount5m, buyCount12, buyCount24, buyVolume1, buyVolume4, buyVolume5m, buyVolume12, buyVolume24, change1, change4, change5m, change12, change24, circulatingMarketCap, createdAt, devHeldPercentage, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, feeToVolumeRatio1, feeToVolumeRatio4, feeToVolumeRatio5m, feeToVolumeRatio12, feeToVolumeRatio24, high1, high4, high5m, high12, high24, holders, insiderCount, insiderHeldPercentage, isScam, l1DataFees1, l1DataFees4, l1DataFees5m, l1DataFees12, l1DataFees24, lastTransaction, liquidPair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, token1, token1Data { 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, virtualPooled { token0, token1 } }, liquidPairLiquidity, liquidPairPriceUSD, liquidity, low1, low4, low5m, low12, low24, marketCap, pair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, token1, token1Data { 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, virtualPooled { token0, token1 } }, poolFees1, poolFees4, poolFees5m, poolFees12, poolFees24, potentialScamReasons, priceUSD, priorityFees1, priorityFees4, priorityFees5m, priorityFees12, priorityFees24, quoteToken, sellCount1, sellCount4, sellCount5m, sellCount12, sellCount24, sellVolume1, sellVolume4, sellVolume5m, sellVolume12, sellVolume24, sniperCount, sniperHeldPercentage, swapPct1dOldWallet, swapPct7dOldWallet, 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, top10HoldersPercent, totalFees1, totalFees4, totalFees5m, totalFees12, totalFees24, trendingScore, txnCount1, txnCount4, txnCount5m, txnCount12, txnCount24, uniqueBuys1, uniqueBuys4, uniqueBuys5m, uniqueBuys12, uniqueBuys24, uniqueSells1, uniqueSells4, uniqueSells5m, uniqueSells12, uniqueSells24, uniqueTransactions1, uniqueTransactions4, uniqueTransactions5m, uniqueTransactions12, uniqueTransactions24, volume1, volume4, volume5m, volume12, volume24, volumeChange1, volumeChange4, volumeChange5m, volumeChange12, volumeChange24, walletAgeAvg, walletAgeStd }
|
|
73
73
|
}
|
|
74
74
|
}`, vars, sink);
|
|
75
75
|
this.onHoldersUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnHoldersUpdated($tokenId: String!) {
|
|
76
76
|
onHoldersUpdated (tokenId: $tokenId) {
|
|
77
|
-
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, isCashbackEnabled, 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, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId }, holders, networkId, tokenAddress, tokenId
|
|
77
|
+
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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId }, holders, networkId, tokenAddress, tokenId
|
|
78
78
|
}
|
|
79
79
|
}`, vars, sink);
|
|
80
80
|
this.onLatestPairUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnLatestPairUpdated($id: String, $networkId: Int) {
|
|
@@ -89,12 +89,12 @@ class Subscribe {
|
|
|
89
89
|
}`, vars, sink);
|
|
90
90
|
this.onLaunchpadTokenEvent = (vars, sink) => this.sdk.subscribe(`subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
|
|
91
91
|
onLaunchpadTokenEvent (input: $input) {
|
|
92
|
-
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, isCashbackEnabled, 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, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
92
|
+
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
93
93
|
}
|
|
94
94
|
}`, vars, sink);
|
|
95
95
|
this.onLaunchpadTokenEventBatch = (vars, sink) => this.sdk.subscribe(`subscription OnLaunchpadTokenEventBatch($input: OnLaunchpadTokenEventBatchInput) {
|
|
96
96
|
onLaunchpadTokenEventBatch (input: $input) {
|
|
97
|
-
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, isCashbackEnabled, 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, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
97
|
+
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
98
98
|
}
|
|
99
99
|
}`, vars, sink);
|
|
100
100
|
this.onNftAssetsCreated = (vars, sink) => this.sdk.subscribe(`subscription OnNftAssetsCreated($address: String, $networkId: Int, $tokenId: String) {
|
|
@@ -114,7 +114,7 @@ class Subscribe {
|
|
|
114
114
|
}`, vars, sink);
|
|
115
115
|
this.onPairMetadataUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken, $useNonLiquidityTokenAsQuoteToken: Boolean) {
|
|
116
116
|
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
|
|
117
|
-
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, isCashbackEnabled, 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, top10HoldersPercent }, 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, isCashbackEnabled, 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, top10HoldersPercent }, 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 }, top10HoldersPercent, volume1, volume4, volume5m, volume12, volume24, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
|
|
117
|
+
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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, 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 }, top10HoldersPercent, volume1, volume4, volume5m, volume12, volume24, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
|
|
118
118
|
}
|
|
119
119
|
}`, vars, sink);
|
|
120
120
|
this.onPredictionEventBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionEventBarsUpdated($eventId: String!) {
|
|
@@ -132,13 +132,13 @@ class Subscribe {
|
|
|
132
132
|
eventId, marketId, trades { amount, amountCollateral, amountUsd, blockNumber, exchangeAddress, maker, marketId, networkId, outcomeId, outcomeIndex, outcomeLabel, predictionMarket { categories { name, slug, subcategories { name, slug, subcategories { name, slug } } }, closesAt, createdAt, eventId, eventLabel, exchangeAddress, id, imageLargeUrl, imageSmallUrl, imageThumbUrl, label, networkId, observedAt, opensAt, outcomeIds, outcomeLabels, protocol, question, resolution { result, source }, resolvedAt, resolvesAt, rules, rules2, updatedAt, venueEventId, venueMarketId, venueMarketSlug, venueOutcomeIds, winningOutcomeId }, priceCollateral, priceUsd, protocol, sortKey, timestamp, tradeType, traderId, transactionHash, transactionId }
|
|
133
133
|
}
|
|
134
134
|
}`, vars, sink);
|
|
135
|
-
this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
|
|
136
|
-
onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress) {
|
|
135
|
+
this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String, $useWeightedPrices: Boolean) {
|
|
136
|
+
onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress, useWeightedPrices: $useWeightedPrices) {
|
|
137
137
|
address, blockNumber, networkId, priceUsd, timestamp
|
|
138
138
|
}
|
|
139
139
|
}`, vars, sink);
|
|
140
|
-
this.onPricesUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]
|
|
141
|
-
onPricesUpdated (input: $input) {
|
|
140
|
+
this.onPricesUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!, $useWeightedPrices: Boolean) {
|
|
141
|
+
onPricesUpdated (input: $input, useWeightedPrices: $useWeightedPrices) {
|
|
142
142
|
address, blockNumber, networkId, priceUsd, timestamp
|
|
143
143
|
}
|
|
144
144
|
}`, vars, sink);
|
package/dist/sdk/Subscribe.mjs
CHANGED
|
@@ -3,7 +3,7 @@ export class Subscribe {
|
|
|
3
3
|
this.sdk = sdk;
|
|
4
4
|
this.onBalanceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnBalanceUpdated($walletAddress: String!) {
|
|
5
5
|
onBalanceUpdated (walletAddress: $walletAddress) {
|
|
6
|
-
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, isCashbackEnabled, 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, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId
|
|
6
|
+
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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId
|
|
7
7
|
}
|
|
8
8
|
}`, vars, sink);
|
|
9
9
|
this.onBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnBarsUpdated($pairId: String, $quoteToken: QuoteToken) {
|
|
@@ -64,14 +64,14 @@ export class Subscribe {
|
|
|
64
64
|
events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, feeData { baseFeeNativeUnit, builderTipNativeUnit, dynamicFee, estimatedPoolFee, gasUsed, l1DataFeeNativeUnit, poolFeeAmountRaw, poolFeeBps, poolFeeRateRaw, priorityFeeNativeUnit, supplementalFeeData { ... on PumpAmmCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type }, ... on PumpCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type } }, txEventCount }, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, makerAddress
|
|
65
65
|
}
|
|
66
66
|
}`, vars, sink);
|
|
67
|
-
this.
|
|
68
|
-
|
|
69
|
-
updates { bundlerCount, bundlerHeldPercentage, buyCount1, buyCount4, buyCount5m, buyCount12, buyCount24, buyVolume1, buyVolume4, buyVolume5m, buyVolume12, buyVolume24, change1, change4, change5m, change12, change24, circulatingMarketCap, createdAt, devHeldPercentage, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, high1, high4, high5m, high12, high24, holders, insiderCount, insiderHeldPercentage, isScam, lastTransaction, liquidPair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { 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, isCashbackEnabled, 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, top10HoldersPercent }, token1, token1Data { 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, isCashbackEnabled, 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, top10HoldersPercent }, virtualPooled { token0, token1 } }, liquidPairLiquidity, liquidPairPriceUSD, liquidity, low1, low4, low5m, low12, low24, marketCap, pair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { 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, isCashbackEnabled, 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, top10HoldersPercent }, token1, token1Data { 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, isCashbackEnabled, 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, top10HoldersPercent }, virtualPooled { token0, token1 } }, potentialScamReasons, priceUSD, quoteToken, sellCount1, sellCount4, sellCount5m, sellCount12, sellCount24, sellVolume1, sellVolume4, sellVolume5m, sellVolume12, sellVolume24, sniperCount, sniperHeldPercentage, swapPct1dOldWallet, swapPct7dOldWallet, 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, isCashbackEnabled, 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, top10HoldersPercent }, top10HoldersPercent, trendingScore, txnCount1, txnCount4, txnCount5m, txnCount12, txnCount24, uniqueBuys1, uniqueBuys4, uniqueBuys5m, uniqueBuys12, uniqueBuys24, uniqueSells1, uniqueSells4, uniqueSells5m, uniqueSells12, uniqueSells24, uniqueTransactions1, uniqueTransactions4, uniqueTransactions5m, uniqueTransactions12, uniqueTransactions24, volume1, volume4, volume5m, volume12, volume24, volumeChange1, volumeChange4, volumeChange5m, volumeChange12, volumeChange24, walletAgeAvg, walletAgeStd }
|
|
67
|
+
this.onFilterTokensUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnFilterTokensUpdated($excludeTokens: [String], $filters: TokenFilters, $limit: Int, $offset: Int, $phrase: String, $rankings: [TokenRanking], $statsType: TokenPairStatisticsType, $tokens: [String], $updatePeriod: Int, $useAggregatedStats: Boolean) {
|
|
68
|
+
onFilterTokensUpdated (excludeTokens: $excludeTokens, filters: $filters, limit: $limit, offset: $offset, phrase: $phrase, rankings: $rankings, statsType: $statsType, tokens: $tokens, updatePeriod: $updatePeriod, useAggregatedStats: $useAggregatedStats) {
|
|
69
|
+
updates { baseFees1, baseFees4, baseFees5m, baseFees12, baseFees24, builderTips1, builderTips4, builderTips5m, builderTips12, builderTips24, bundlerCount, bundlerHeldPercentage, buyCount1, buyCount4, buyCount5m, buyCount12, buyCount24, buyVolume1, buyVolume4, buyVolume5m, buyVolume12, buyVolume24, change1, change4, change5m, change12, change24, circulatingMarketCap, createdAt, devHeldPercentage, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, feeToVolumeRatio1, feeToVolumeRatio4, feeToVolumeRatio5m, feeToVolumeRatio12, feeToVolumeRatio24, high1, high4, high5m, high12, high24, holders, insiderCount, insiderHeldPercentage, isScam, l1DataFees1, l1DataFees4, l1DataFees5m, l1DataFees12, l1DataFees24, lastTransaction, liquidPair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, token1, token1Data { 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, virtualPooled { token0, token1 } }, liquidPairLiquidity, liquidPairPriceUSD, liquidity, low1, low4, low5m, low12, low24, marketCap, pair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, token1, token1Data { 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, virtualPooled { token0, token1 } }, poolFees1, poolFees4, poolFees5m, poolFees12, poolFees24, potentialScamReasons, priceUSD, priorityFees1, priorityFees4, priorityFees5m, priorityFees12, priorityFees24, quoteToken, sellCount1, sellCount4, sellCount5m, sellCount12, sellCount24, sellVolume1, sellVolume4, sellVolume5m, sellVolume12, sellVolume24, sniperCount, sniperHeldPercentage, swapPct1dOldWallet, swapPct7dOldWallet, 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, top10HoldersPercent, totalFees1, totalFees4, totalFees5m, totalFees12, totalFees24, trendingScore, txnCount1, txnCount4, txnCount5m, txnCount12, txnCount24, uniqueBuys1, uniqueBuys4, uniqueBuys5m, uniqueBuys12, uniqueBuys24, uniqueSells1, uniqueSells4, uniqueSells5m, uniqueSells12, uniqueSells24, uniqueTransactions1, uniqueTransactions4, uniqueTransactions5m, uniqueTransactions12, uniqueTransactions24, volume1, volume4, volume5m, volume12, volume24, volumeChange1, volumeChange4, volumeChange5m, volumeChange12, volumeChange24, walletAgeAvg, walletAgeStd }
|
|
70
70
|
}
|
|
71
71
|
}`, vars, sink);
|
|
72
72
|
this.onHoldersUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnHoldersUpdated($tokenId: String!) {
|
|
73
73
|
onHoldersUpdated (tokenId: $tokenId) {
|
|
74
|
-
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, isCashbackEnabled, 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, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId }, holders, networkId, tokenAddress, tokenId
|
|
74
|
+
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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId }, holders, networkId, tokenAddress, tokenId
|
|
75
75
|
}
|
|
76
76
|
}`, vars, sink);
|
|
77
77
|
this.onLatestPairUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnLatestPairUpdated($id: String, $networkId: Int) {
|
|
@@ -86,12 +86,12 @@ export class Subscribe {
|
|
|
86
86
|
}`, vars, sink);
|
|
87
87
|
this.onLaunchpadTokenEvent = (vars, sink) => this.sdk.subscribe(`subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
|
|
88
88
|
onLaunchpadTokenEvent (input: $input) {
|
|
89
|
-
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, isCashbackEnabled, 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, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
89
|
+
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
90
90
|
}
|
|
91
91
|
}`, vars, sink);
|
|
92
92
|
this.onLaunchpadTokenEventBatch = (vars, sink) => this.sdk.subscribe(`subscription OnLaunchpadTokenEventBatch($input: OnLaunchpadTokenEventBatchInput) {
|
|
93
93
|
onLaunchpadTokenEventBatch (input: $input) {
|
|
94
|
-
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, isCashbackEnabled, 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, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
94
|
+
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
95
95
|
}
|
|
96
96
|
}`, vars, sink);
|
|
97
97
|
this.onNftAssetsCreated = (vars, sink) => this.sdk.subscribe(`subscription OnNftAssetsCreated($address: String, $networkId: Int, $tokenId: String) {
|
|
@@ -111,7 +111,7 @@ export class Subscribe {
|
|
|
111
111
|
}`, vars, sink);
|
|
112
112
|
this.onPairMetadataUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken, $useNonLiquidityTokenAsQuoteToken: Boolean) {
|
|
113
113
|
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
|
|
114
|
-
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, isCashbackEnabled, 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, top10HoldersPercent }, 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, isCashbackEnabled, 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, top10HoldersPercent }, 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 }, top10HoldersPercent, volume1, volume4, volume5m, volume12, volume24, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
|
|
114
|
+
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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, 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, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, 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 }, top10HoldersPercent, volume1, volume4, volume5m, volume12, volume24, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
|
|
115
115
|
}
|
|
116
116
|
}`, vars, sink);
|
|
117
117
|
this.onPredictionEventBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionEventBarsUpdated($eventId: String!) {
|
|
@@ -129,13 +129,13 @@ export class Subscribe {
|
|
|
129
129
|
eventId, marketId, trades { amount, amountCollateral, amountUsd, blockNumber, exchangeAddress, maker, marketId, networkId, outcomeId, outcomeIndex, outcomeLabel, predictionMarket { categories { name, slug, subcategories { name, slug, subcategories { name, slug } } }, closesAt, createdAt, eventId, eventLabel, exchangeAddress, id, imageLargeUrl, imageSmallUrl, imageThumbUrl, label, networkId, observedAt, opensAt, outcomeIds, outcomeLabels, protocol, question, resolution { result, source }, resolvedAt, resolvesAt, rules, rules2, updatedAt, venueEventId, venueMarketId, venueMarketSlug, venueOutcomeIds, winningOutcomeId }, priceCollateral, priceUsd, protocol, sortKey, timestamp, tradeType, traderId, transactionHash, transactionId }
|
|
130
130
|
}
|
|
131
131
|
}`, vars, sink);
|
|
132
|
-
this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
|
|
133
|
-
onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress) {
|
|
132
|
+
this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String, $useWeightedPrices: Boolean) {
|
|
133
|
+
onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress, useWeightedPrices: $useWeightedPrices) {
|
|
134
134
|
address, blockNumber, networkId, priceUsd, timestamp
|
|
135
135
|
}
|
|
136
136
|
}`, vars, sink);
|
|
137
|
-
this.onPricesUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]
|
|
138
|
-
onPricesUpdated (input: $input) {
|
|
137
|
+
this.onPricesUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!, $useWeightedPrices: Boolean) {
|
|
138
|
+
onPricesUpdated (input: $input, useWeightedPrices: $useWeightedPrices) {
|
|
139
139
|
address, blockNumber, networkId, priceUsd, timestamp
|
|
140
140
|
}
|
|
141
141
|
}`, vars, sink);
|