@codex-data/sdk 2.5.5 → 2.5.8
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.js +7 -7
- package/dist/sdk/Subscribe.mjs +7 -7
- 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 +528 -136
- package/dist/sdk/generated/graphql.js +43 -30
- package/dist/sdk/generated/graphql.mjs +38 -25
- package/package.json +1 -1
- package/schema.graphql +135 -9
package/package.json
CHANGED
package/schema.graphql
CHANGED
|
@@ -7967,6 +7967,10 @@ type PredictionTrade {
|
|
|
7967
7967
|
networkId: Int
|
|
7968
7968
|
"""The exchange contract address."""
|
|
7969
7969
|
exchangeAddress: String
|
|
7970
|
+
"""The exchange contract the trade executed on. Differs from `exchangeAddress` when a Polymarket market migrated to a newer exchange."""
|
|
7971
|
+
exchangeTradedOnAddress: String
|
|
7972
|
+
"""The contract address of the collateral token the trade settled in."""
|
|
7973
|
+
collateralTokenAddress: String
|
|
7970
7974
|
"""The transaction id."""
|
|
7971
7975
|
transactionId: String
|
|
7972
7976
|
"""The prediction market."""
|
|
@@ -11505,6 +11509,16 @@ type ExplorerTokenData {
|
|
|
11505
11509
|
tokenType: String
|
|
11506
11510
|
}
|
|
11507
11511
|
|
|
11512
|
+
"""Where a launchpad token's creator fees go."""
|
|
11513
|
+
enum FeeMode {
|
|
11514
|
+
"""Creator fees go to the token's creator."""
|
|
11515
|
+
CREATOR_FEE
|
|
11516
|
+
"""Creator fees are paid back to traders as cashback."""
|
|
11517
|
+
CASHBACK
|
|
11518
|
+
"""Creator fees are paid to the token's holders."""
|
|
11519
|
+
HOLDER_REWARDS
|
|
11520
|
+
}
|
|
11521
|
+
|
|
11508
11522
|
type LaunchpadData {
|
|
11509
11523
|
"""The name of the launchpad."""
|
|
11510
11524
|
name: String @deprecated(reason: "Use launchpadName instead")
|
|
@@ -11533,7 +11547,13 @@ type LaunchpadData {
|
|
|
11533
11547
|
"""The icon URL of the launchpad."""
|
|
11534
11548
|
launchpadIconUrl: String
|
|
11535
11549
|
"""Whether cashback is enabled for this launchpad token (Pump V1/V2 only)."""
|
|
11536
|
-
isCashbackEnabled: Boolean
|
|
11550
|
+
isCashbackEnabled: Boolean @deprecated(reason: "Use feeModes instead; CASHBACK is in feeModes when cashback is enabled")
|
|
11551
|
+
"""Where this launchpad token's creator fees go (Pump and PumpAmm only). Pump tokens have exactly one mode. Not set for Pump tokens whose curve predates the cashback fields."""
|
|
11552
|
+
feeModes: [FeeMode!]
|
|
11553
|
+
"""The holder-reward fee rate in basis points. Null when the launchpad's default fee schedule applies. Read when the token's metadata was fetched; may be stale if the creator can edit the fee."""
|
|
11554
|
+
holderRewardFeeBps: Int
|
|
11555
|
+
"""The mint of the token holder rewards are paid in."""
|
|
11556
|
+
holderRewardQuoteMint: String
|
|
11537
11557
|
"""The token category assigned by the launchpad. Populated by launchpads that publish a category taxonomy (e.g. Scale/Creator, Eitherway). Values include platform, meme, utility, etc."""
|
|
11538
11558
|
category: String
|
|
11539
11559
|
}
|
|
@@ -12744,9 +12764,9 @@ type PairFilterResult {
|
|
|
12744
12764
|
riskCoverage: RiskAnalysisCoverage
|
|
12745
12765
|
"""The reason codes behind `riskVerdict`, unordered. New codes are added over time, so do not assume this list is exhaustive."""
|
|
12746
12766
|
riskReasons: [RiskReasonCode!]
|
|
12747
|
-
"""Buy tax of the pair's token of interest, measured by the latest decisive contract analysis, as a fraction (0.05 means 5%). Null when no decisive analysis
|
|
12767
|
+
"""Buy tax of the pair's token of interest, measured on a simulated buy alone by the latest decisive contract analysis, as a fraction (0.05 means 5%). Pool, hook and launchpad platform fees are not included. Null when no decisive analysis could measure the buy on its own."""
|
|
12748
12768
|
riskBuyTax: Float
|
|
12749
|
-
"""Sell tax of the pair's token of interest, measured by the latest decisive contract analysis, as a fraction (0.05 means 5%). Null when no decisive analysis
|
|
12769
|
+
"""Sell tax of the pair's token of interest, measured on a simulated sell alone by the latest decisive contract analysis, as a fraction (0.05 means 5%). Pool, hook and launchpad platform fees are not included. Null when no decisive analysis could measure the sell on its own, including when that analysis found a honeypot: its test sale failed, so no sell tax was measured."""
|
|
12750
12770
|
riskSellTax: Float
|
|
12751
12771
|
}
|
|
12752
12772
|
|
|
@@ -13191,6 +13211,8 @@ input TokenFilters {
|
|
|
13191
13211
|
launchpadProtocol: [String!]
|
|
13192
13212
|
"""A list of launchpad names. Any of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, bow.fun, Sushi Launch, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Trench, Flap, NOXA Fun, hood.fun, moto.fun, pons, Genius, Peach, LONG, Feel.cash, EasyA Kickstart, Doppler, o1.exchange, minara.fun, UniswapCCA, tren.ch, StonkFun, Tolly, Launchfair, send.fun, hostile.xyz, Argus, Faze, Lift, meme.fun, Flywheel, Realm, c8ntinuum Pledge, c8ntinuum Launchpad."""
|
|
13193
13213
|
launchpadName: [String!]
|
|
13214
|
+
"""A list of launchpad fee modes. Matches tokens whose fee modes include any of them (Pump and PumpAmm only)."""
|
|
13215
|
+
feeModes: [FeeMode!]
|
|
13194
13216
|
"""Indicates if the launchpad is completed."""
|
|
13195
13217
|
launchpadCompleted: Boolean
|
|
13196
13218
|
"""Indicates if the launchpad has migrated."""
|
|
@@ -13460,9 +13482,9 @@ type TokenRisk {
|
|
|
13460
13482
|
coverage: RiskAnalysisCoverage
|
|
13461
13483
|
"""The reason codes behind the verdict, unordered. Empty when nothing fired; null when unassessed. New codes are added over time, so do not assume this list is exhaustive or that a familiar set is the whole picture."""
|
|
13462
13484
|
reasons: [RiskReasonCode!]
|
|
13463
|
-
"""Buy tax measured by the latest decisive contract analysis, as a fraction (0.05 means 5%). Can be newer than `verdict`, which updates on the next assessment. Null when no decisive analysis
|
|
13485
|
+
"""Buy tax measured on a simulated buy alone by the latest decisive contract analysis, as a fraction (0.05 means 5%). Pool, hook and launchpad platform fees are not included. Can be newer than `verdict`, which updates on the next assessment. Null when no decisive analysis could measure the buy on its own."""
|
|
13464
13486
|
buyTax: Float
|
|
13465
|
-
"""Sell tax measured by the latest decisive contract analysis, as a fraction (0.05 means 5%). Can be newer than `verdict`, which updates on the next assessment. Null when no decisive analysis
|
|
13487
|
+
"""Sell tax measured on a simulated sell alone by the latest decisive contract analysis, as a fraction (0.05 means 5%). Pool, hook and launchpad platform fees are not included. Can be newer than `verdict`, which updates on the next assessment. Null when no decisive analysis could measure the sell on its own, including when that analysis found a honeypot: its test sale failed, so no sell tax was measured."""
|
|
13466
13488
|
sellTax: Float
|
|
13467
13489
|
}
|
|
13468
13490
|
|
|
@@ -13499,9 +13521,9 @@ enum RiskReasonCode {
|
|
|
13499
13521
|
PROOF_HONEYPOT_SIM
|
|
13500
13522
|
PROOF_NON_TRANSFERABLE
|
|
13501
13523
|
PROOF_TRANSFER_FEE_100
|
|
13502
|
-
PROOF_PAUSED
|
|
13524
|
+
PROOF_PAUSED @deprecated(reason: "Never emitted. An engaged pause is reported as TAX_PAUSED, a scored reason rather than proof, because a pause can be lifted. Use TAX_PAUSED instead.")
|
|
13503
13525
|
PROOF_DEFAULT_FROZEN
|
|
13504
|
-
PROOF_RUG_OCCURRED
|
|
13526
|
+
PROOF_RUG_OCCURRED @deprecated(reason: "Never emitted. A rug never forces SCAM. It will be reported as LIQ_RUG_OCCURRED, an informational liquidity reason that adds no points.")
|
|
13505
13527
|
PROOF_POOL_TRAP_SIM
|
|
13506
13528
|
AUTH_MINT
|
|
13507
13529
|
AUTH_FREEZE
|
|
@@ -13539,6 +13561,7 @@ enum RiskReasonCode {
|
|
|
13539
13561
|
REP_SCAMMER_FUNDED
|
|
13540
13562
|
REP_IMITATOR_SYMBOL
|
|
13541
13563
|
REP_IMITATOR_NAME
|
|
13564
|
+
REP_IMITATOR_IMAGE
|
|
13542
13565
|
LABEL_MANUAL_SCAM
|
|
13543
13566
|
LABEL_VERIFIED
|
|
13544
13567
|
}
|
|
@@ -14889,7 +14912,7 @@ type SimulateTransferErrorsType {
|
|
|
14889
14912
|
type SimulateSwapType {
|
|
14890
14913
|
"""Buy outcome inferred from recorded errors. Do not use this flag alone: pending or incomplete records may have no errors. Inspect verdict and status."""
|
|
14891
14914
|
buySuccess: Boolean
|
|
14892
|
-
"""Current analyzer: buy
|
|
14915
|
+
"""Current analyzer: tax on the simulated buy alone, excluding pool fees, as a decimal fraction encoded as a string (0.05 means 5%). Legacy simulation rows used percentage values and a different sign convention; values are returned without normalization. Null when the buy could not be measured on its own."""
|
|
14893
14916
|
buyTax: String
|
|
14894
14917
|
"""Gas units consumed by the simulated buy, encoded as an integer string. Null when not recorded."""
|
|
14895
14918
|
buyGasUsed: String
|
|
@@ -14897,7 +14920,7 @@ type SimulateSwapType {
|
|
|
14897
14920
|
maxBuyAmount: String
|
|
14898
14921
|
"""Sell outcome inferred from recorded errors. Do not use this flag alone: pending or incomplete records may have no errors. Inspect verdict and status."""
|
|
14899
14922
|
sellSuccess: Boolean
|
|
14900
|
-
"""Current analyzer: sell
|
|
14923
|
+
"""Current analyzer: tax on the simulated sell alone, excluding pool fees, as a decimal fraction encoded as a string (0.05 means 5%). Null when the sell could not be measured on its own, or when the sale failed by reverting or returning almost nothing; a sell cap stores the tax measured on the smaller sale that went through. Older records can instead hold an estimate from the whole buy-and-sell round trip, or `1` for a failed sell; `TokenRisk.sellTax` returns measured values only. Legacy simulation rows used percentage values and a different sign convention; values are returned without normalization."""
|
|
14901
14924
|
sellTax: String
|
|
14902
14925
|
"""Gas units consumed by the simulated sell, encoded as an integer string. Null when not recorded."""
|
|
14903
14926
|
sellGasUsed: String
|
|
@@ -17819,3 +17842,106 @@ type Event {
|
|
|
17819
17842
|
currencyUnits: CurrencyUnits
|
|
17820
17843
|
}
|
|
17821
17844
|
|
|
17845
|
+
type TokenFilterEventWebhookCondition {
|
|
17846
|
+
"""Seconds a token must wait after it stops matching before it can fire again."""
|
|
17847
|
+
cooldownSeconds: Int!
|
|
17848
|
+
"""The token contract address. Requires exactly one `networkId`."""
|
|
17849
|
+
tokenAddress: StringEqualsCondition
|
|
17850
|
+
"""The network IDs to listen on."""
|
|
17851
|
+
networkId: OneOfNumberCondition
|
|
17852
|
+
"""Include tokens flagged as scams. Scams are excluded by default."""
|
|
17853
|
+
includeScams: Boolean
|
|
17854
|
+
"""Match only tokens whose potential scam flag equals this value."""
|
|
17855
|
+
potentialScam: Boolean
|
|
17856
|
+
"""The token creator's wallet address."""
|
|
17857
|
+
creatorAddress: StringEqualsCondition
|
|
17858
|
+
"""The launchpad names to match, case-insensitive."""
|
|
17859
|
+
launchpadName: OneOfStringCondition
|
|
17860
|
+
"""Match only tokens whose launchpad completion equals this value."""
|
|
17861
|
+
launchpadCompleted: Boolean
|
|
17862
|
+
"""Match only tokens whose launchpad migration equals this value."""
|
|
17863
|
+
launchpadMigrated: Boolean
|
|
17864
|
+
"""The launchpad graduation percent."""
|
|
17865
|
+
launchpadGraduationPercent: ComparisonOperator
|
|
17866
|
+
"""The price in USD."""
|
|
17867
|
+
priceUsd: ComparisonOperator
|
|
17868
|
+
"""The liquidity in USD."""
|
|
17869
|
+
liquidityUsd: ComparisonOperator
|
|
17870
|
+
"""The fully diluted market cap in USD."""
|
|
17871
|
+
fdvMarketCapUsd: ComparisonOperator
|
|
17872
|
+
"""The circulating market cap in USD."""
|
|
17873
|
+
circulatingMarketCapUsd: ComparisonOperator
|
|
17874
|
+
"""The number of holders."""
|
|
17875
|
+
holders: ComparisonOperator
|
|
17876
|
+
"""Seconds since the token's first pair was created."""
|
|
17877
|
+
ageSeconds: ComparisonOperator
|
|
17878
|
+
"""The number of sniper wallets."""
|
|
17879
|
+
sniperCount: ComparisonOperator
|
|
17880
|
+
"""The percentage of supply held by snipers."""
|
|
17881
|
+
sniperHeldPercentage: ComparisonOperator
|
|
17882
|
+
"""The number of bundler wallets."""
|
|
17883
|
+
bundlerCount: ComparisonOperator
|
|
17884
|
+
"""The percentage of supply held by bundlers."""
|
|
17885
|
+
bundlerHeldPercentage: ComparisonOperator
|
|
17886
|
+
"""The number of insider wallets."""
|
|
17887
|
+
insiderCount: ComparisonOperator
|
|
17888
|
+
"""The percentage of supply held by insiders."""
|
|
17889
|
+
insiderHeldPercentage: ComparisonOperator
|
|
17890
|
+
"""The percentage of supply held by the developer."""
|
|
17891
|
+
devHeldPercentage: ComparisonOperator
|
|
17892
|
+
"""The percentage of supply held by the top 10 holders."""
|
|
17893
|
+
top10HoldersPercent: ComparisonOperator
|
|
17894
|
+
"""Conditions for the 5-minute window."""
|
|
17895
|
+
min5: WindowedTokenFilterEventWebhookCondition
|
|
17896
|
+
"""Conditions for the 1-hour window."""
|
|
17897
|
+
hour1: WindowedTokenFilterEventWebhookCondition
|
|
17898
|
+
"""Conditions for the 4-hour window."""
|
|
17899
|
+
hour4: WindowedTokenFilterEventWebhookCondition
|
|
17900
|
+
"""Conditions for the 12-hour window."""
|
|
17901
|
+
hour12: WindowedTokenFilterEventWebhookCondition
|
|
17902
|
+
"""Conditions for the 1-day window."""
|
|
17903
|
+
day1: WindowedTokenFilterEventWebhookCondition
|
|
17904
|
+
}
|
|
17905
|
+
|
|
17906
|
+
type WindowedTokenFilterEventWebhookCondition {
|
|
17907
|
+
"""The price change over the window, as a fraction: 0.25 is 25%."""
|
|
17908
|
+
priceChange: TokenFilterEventChangeCondition
|
|
17909
|
+
"""The volume change against the previous window, as a fraction."""
|
|
17910
|
+
volumeChange: TokenFilterEventChangeCondition
|
|
17911
|
+
"""The volume in USD."""
|
|
17912
|
+
volumeUsd: ComparisonOperator
|
|
17913
|
+
"""The buy volume in USD."""
|
|
17914
|
+
buyVolumeUsd: ComparisonOperator
|
|
17915
|
+
"""The sell volume in USD."""
|
|
17916
|
+
sellVolumeUsd: ComparisonOperator
|
|
17917
|
+
"""The number of buys."""
|
|
17918
|
+
buys: ComparisonOperator
|
|
17919
|
+
"""The number of sells."""
|
|
17920
|
+
sells: ComparisonOperator
|
|
17921
|
+
"""The number of transactions."""
|
|
17922
|
+
transactions: ComparisonOperator
|
|
17923
|
+
"""The number of unique buyers."""
|
|
17924
|
+
uniqueBuys: ComparisonOperator
|
|
17925
|
+
"""The number of unique sellers."""
|
|
17926
|
+
uniqueSells: ComparisonOperator
|
|
17927
|
+
"""The number of unique traders."""
|
|
17928
|
+
uniqueTransactions: ComparisonOperator
|
|
17929
|
+
"""The trending score."""
|
|
17930
|
+
trendingScore: ComparisonOperator
|
|
17931
|
+
}
|
|
17932
|
+
|
|
17933
|
+
type TokenFilterEventChangeCondition {
|
|
17934
|
+
"""Greater than."""
|
|
17935
|
+
gt: String
|
|
17936
|
+
"""Greater than or equal to."""
|
|
17937
|
+
gte: String
|
|
17938
|
+
"""Less than."""
|
|
17939
|
+
lt: String
|
|
17940
|
+
"""Less than or equal to."""
|
|
17941
|
+
lte: String
|
|
17942
|
+
"""Equal to."""
|
|
17943
|
+
eq: String
|
|
17944
|
+
"""Compare the size of the change, ignoring whether it went up or down."""
|
|
17945
|
+
absolute: Boolean
|
|
17946
|
+
}
|
|
17947
|
+
|