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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codex-data/sdk",
"version": "2.3.0",
"version": "2.3.1",
"engines": {
"node": ">=17.5.0"
},
Expand Down
15 changes: 15 additions & 0 deletions src/sdk/Subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import {
OnEventsCreatedByMakerSubscriptionVariables,
OnEventsCreatedSubscription,
OnEventsCreatedSubscriptionVariables,
OnFilterTokenUpdatedSubscription,
OnFilterTokenUpdatedSubscriptionVariables,
OnHoldersUpdatedSubscription,
OnHoldersUpdatedSubscriptionVariables,
OnLatestPairUpdatedSubscription,
Expand Down Expand Up @@ -200,6 +202,19 @@ export class Subscribe {
onEventsCreatedByMaker (input: $input) {
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
}
}`,
vars,
sink,
);
onFilterTokenUpdated = (
vars: OnFilterTokenUpdatedSubscriptionVariables,
sink: Sink<ExecutionResult<OnFilterTokenUpdatedSubscription>>,
) =>
this.sdk.subscribe(
`subscription OnFilterTokenUpdated($excludeTokens: [String], $filters: TokenFilters, $limit: Int, $offset: Int, $phrase: String, $rankings: [TokenRanking], $statsType: TokenPairStatisticsType, $tokens: [String], $updatePeriod: Int, $useAggregatedStats: Boolean) {
onFilterTokenUpdated (excludeTokens: $excludeTokens, filters: $filters, limit: $limit, offset: $offset, phrase: $phrase, rankings: $rankings, statsType: $statsType, tokens: $tokens, updatePeriod: $updatePeriod, useAggregatedStats: $useAggregatedStats) {
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 }
}
}`,
vars,
sink,
Expand Down
Loading
Loading