@codex-data/sdk 1.0.13 → 1.0.14
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/resources/graphql.d.ts +66 -7
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +6 -0
- package/dist/resources/graphql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +66 -7
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +6 -0
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/graphql.schema.json +368 -6
- package/src/resources/graphql.ts +77 -7
- package/src/resources/schema.graphql +65 -8
- package/src/sdk/generated/graphql.ts +77 -7
|
@@ -156,6 +156,12 @@ export type ApiToken = {
|
|
|
156
156
|
/** JWT to be passed into the Authorization header for API requests */
|
|
157
157
|
token: Scalars['String']['output'];
|
|
158
158
|
};
|
|
159
|
+
export type ArenaTradeData = {
|
|
160
|
+
__typename?: 'ArenaTradeData';
|
|
161
|
+
/** Protocol specific token ID */
|
|
162
|
+
tokenId?: Maybe<Scalars['String']['output']>;
|
|
163
|
+
type: Scalars['String']['output'];
|
|
164
|
+
};
|
|
159
165
|
/** Wallet balance of a token. */
|
|
160
166
|
export type Balance = {
|
|
161
167
|
__typename?: 'Balance';
|
|
@@ -1765,9 +1771,11 @@ export type LaunchpadData = {
|
|
|
1765
1771
|
completedSlot?: Maybe<Scalars['Int']['output']>;
|
|
1766
1772
|
/** The percentage of the pool that was sold to the public. */
|
|
1767
1773
|
graduationPercent?: Maybe<Scalars['Float']['output']>;
|
|
1768
|
-
/** The
|
|
1774
|
+
/** The icon URL of the launchpad. */
|
|
1775
|
+
launchpadIconUrl?: Maybe<Scalars['String']['output']>;
|
|
1776
|
+
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
1769
1777
|
launchpadName?: Maybe<Scalars['String']['output']>;
|
|
1770
|
-
/** The launchpad protocol */
|
|
1778
|
+
/** The launchpad protocol. */
|
|
1771
1779
|
launchpadProtocol?: Maybe<Scalars['String']['output']>;
|
|
1772
1780
|
/** Indicates if the launchpad was migrated. */
|
|
1773
1781
|
migrated?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -1796,7 +1804,7 @@ export type LaunchpadTokenEventOutput = {
|
|
|
1796
1804
|
eventType: LaunchpadTokenEventType;
|
|
1797
1805
|
/** The number of holders. */
|
|
1798
1806
|
holders?: Maybe<Scalars['Int']['output']>;
|
|
1799
|
-
/** The name of the launchpad. One of the following: Four.meme,
|
|
1807
|
+
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
1800
1808
|
launchpadName: Scalars['String']['output'];
|
|
1801
1809
|
/** The market cap of the token. */
|
|
1802
1810
|
marketCap?: Maybe<Scalars['String']['output']>;
|
|
@@ -1836,6 +1844,8 @@ export declare enum LaunchpadTokenEventType {
|
|
|
1836
1844
|
export declare enum LaunchpadTokenProtocol {
|
|
1837
1845
|
/** Protocol name for ArenaTrade. */
|
|
1838
1846
|
ArenaTrade = "ArenaTrade",
|
|
1847
|
+
/** Protocol name for Baseapp. */
|
|
1848
|
+
Baseapp = "Baseapp",
|
|
1839
1849
|
/** Protocol name for boop.fun. */
|
|
1840
1850
|
BoopFun = "BoopFun",
|
|
1841
1851
|
/** Protocol name for EgoTech. */
|
|
@@ -1853,7 +1863,11 @@ export declare enum LaunchpadTokenProtocol {
|
|
|
1853
1863
|
/** Protocol name for LaunchLab and Bonk. */
|
|
1854
1864
|
RaydiumLaunchpad = "RaydiumLaunchpad",
|
|
1855
1865
|
/** Protocol name for Vertigo. */
|
|
1856
|
-
Vertigo = "Vertigo"
|
|
1866
|
+
Vertigo = "Vertigo",
|
|
1867
|
+
/** Protocol name for ZoraCreator. */
|
|
1868
|
+
ZoraCreatorV4 = "ZoraCreatorV4",
|
|
1869
|
+
/** Protocol name for Zora. */
|
|
1870
|
+
ZoraV4 = "ZoraV4"
|
|
1857
1871
|
}
|
|
1858
1872
|
/** Data about liquidity in a pair. */
|
|
1859
1873
|
export type LiquidityData = {
|
|
@@ -2097,6 +2111,8 @@ export type MintEventData = {
|
|
|
2097
2111
|
};
|
|
2098
2112
|
export type Mutation = {
|
|
2099
2113
|
__typename?: 'Mutation';
|
|
2114
|
+
/** Backfill wallet aggregates (trading stats) for a given wallet. This is the data used in the filterWallet/filterTokenWallets and detailedWalletStats queries. */
|
|
2115
|
+
backfillWalletAggregates: WalletAggregateBackfillStateResponse;
|
|
2100
2116
|
/** Create a new set of short-lived api access tokens */
|
|
2101
2117
|
createApiTokens: Array<ApiToken>;
|
|
2102
2118
|
/** Create price, raw transaction, token/pair event, and NFT event webhooks. */
|
|
@@ -2106,6 +2122,9 @@ export type Mutation = {
|
|
|
2106
2122
|
/** Delete multiple webhooks. */
|
|
2107
2123
|
deleteWebhooks?: Maybe<DeleteWebhooksOutput>;
|
|
2108
2124
|
};
|
|
2125
|
+
export type MutationBackfillWalletAggregatesArgs = {
|
|
2126
|
+
input: WalletAggregateBackfillInput;
|
|
2127
|
+
};
|
|
2109
2128
|
export type MutationCreateApiTokensArgs = {
|
|
2110
2129
|
input: CreateApiTokensInput;
|
|
2111
2130
|
};
|
|
@@ -4798,7 +4817,7 @@ export type OnEventsCreatedByMakerInput = {
|
|
|
4798
4817
|
export type OnLaunchpadTokenEventBatchInput = {
|
|
4799
4818
|
/** The type of event. */
|
|
4800
4819
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
4801
|
-
/** The name of the launchpad. One of the following: Four.meme,
|
|
4820
|
+
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
4802
4821
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
4803
4822
|
/** The network ID that the token is deployed on. */
|
|
4804
4823
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4811,7 +4830,7 @@ export type OnLaunchpadTokenEventInput = {
|
|
|
4811
4830
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
4812
4831
|
/** The type of event. */
|
|
4813
4832
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
4814
|
-
/** The name of the launchpad. One of the following: Four.meme,
|
|
4833
|
+
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
4815
4834
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
4816
4835
|
/** The network ID that the token is deployed on. */
|
|
4817
4836
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4906,6 +4925,13 @@ export type Pair = {
|
|
|
4906
4925
|
networkId: Scalars['Int']['output'];
|
|
4907
4926
|
/** The pooled amounts of each token in the pair. */
|
|
4908
4927
|
pooled?: Maybe<PooledTokenValues>;
|
|
4928
|
+
/**
|
|
4929
|
+
* The per-protocol data for the pair, if applicable
|
|
4930
|
+
* @deprecated Use protocolData instead
|
|
4931
|
+
*/
|
|
4932
|
+
protocolCustomData?: Maybe<PairProtocolCustomData>;
|
|
4933
|
+
/** Custom data for the pair, only certain protocols have this. (uniswapv4, arenatrade for example) */
|
|
4934
|
+
protocolData?: Maybe<ProtocolData>;
|
|
4909
4935
|
/** The amount of required tick separation. Only applicable for pairs on UniswapV3. */
|
|
4910
4936
|
tickSpacing?: Maybe<Scalars['Int']['output']>;
|
|
4911
4937
|
/** The contract address of `token0`. */
|
|
@@ -5130,6 +5156,8 @@ export type PairFilters = {
|
|
|
5130
5156
|
highPrice12?: InputMaybe<NumberFilter>;
|
|
5131
5157
|
/** The highest price in USD in the past 24 hours. */
|
|
5132
5158
|
highPrice24?: InputMaybe<NumberFilter>;
|
|
5159
|
+
/** The address of the hook contract for applicable protocols. */
|
|
5160
|
+
hookAddress?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
5133
5161
|
/** Whether to filter for pairs on testnet networks. Use `true` for testnet pairs only, `false` for mainnet pairs only and `undefined` (default) for both. */
|
|
5134
5162
|
isTestnet?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5135
5163
|
/** The unix timestamp for the last transaction to happen on the pair. */
|
|
@@ -5334,6 +5362,11 @@ export type PairMetadataToken = {
|
|
|
5334
5362
|
price: Scalars['String']['output'];
|
|
5335
5363
|
symbol: Scalars['String']['output'];
|
|
5336
5364
|
};
|
|
5365
|
+
export type PairProtocolCustomData = {
|
|
5366
|
+
__typename?: 'PairProtocolCustomData';
|
|
5367
|
+
/** The address of the hook contract for Uniswap V4 pools. */
|
|
5368
|
+
uniswapV4HookAddress?: Maybe<Scalars['String']['output']>;
|
|
5369
|
+
};
|
|
5337
5370
|
/** Input type of `PairRanking`. */
|
|
5338
5371
|
export type PairRanking = {
|
|
5339
5372
|
/** The attribute to rank pairs by. */
|
|
@@ -6196,6 +6229,7 @@ export type PrimePoolWithdrawData = {
|
|
|
6196
6229
|
/** The amount of PRIME the user is not eligible for either from having already harvesting or from not caching in the past. */
|
|
6197
6230
|
userPrimeRewardDebt: Scalars['String']['output'];
|
|
6198
6231
|
};
|
|
6232
|
+
export type ProtocolData = ArenaTradeData | UniswapV4Data;
|
|
6199
6233
|
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
6200
6234
|
export declare enum PublishingType {
|
|
6201
6235
|
Batch = "BATCH",
|
|
@@ -6353,6 +6387,8 @@ export type Query = {
|
|
|
6353
6387
|
tokens: Array<Maybe<EnhancedToken>>;
|
|
6354
6388
|
/** Returns the percentage of a token's total supply held collectively by its top 10 holders. */
|
|
6355
6389
|
top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
|
|
6390
|
+
/** Once a wallet backfill has been triggered, this query can be used to check the status of the backfill. */
|
|
6391
|
+
walletAggregateBackfillState: WalletAggregateBackfillStateResponse;
|
|
6356
6392
|
/** Returns a chart of a wallet's activity. */
|
|
6357
6393
|
walletChart?: Maybe<WalletChartResponse>;
|
|
6358
6394
|
/** Returns list of NFT assets held by a given wallet for a single collection. */
|
|
@@ -6718,6 +6754,9 @@ export type QueryTokensArgs = {
|
|
|
6718
6754
|
export type QueryTop10HoldersPercentArgs = {
|
|
6719
6755
|
tokenId: Scalars['String']['input'];
|
|
6720
6756
|
};
|
|
6757
|
+
export type QueryWalletAggregateBackfillStateArgs = {
|
|
6758
|
+
input: WalletAggregateBackfillStateInput;
|
|
6759
|
+
};
|
|
6721
6760
|
export type QueryWalletChartArgs = {
|
|
6722
6761
|
input: WalletChartInput;
|
|
6723
6762
|
};
|
|
@@ -7544,7 +7583,7 @@ export type TokenFilters = {
|
|
|
7544
7583
|
launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7545
7584
|
/** The timestamp when the launchpad was migrated */
|
|
7546
7585
|
launchpadMigratedAt?: InputMaybe<NumberFilter>;
|
|
7547
|
-
/** The name of the launchpad. One of the following: Four.meme,
|
|
7586
|
+
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
7548
7587
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
7549
7588
|
/** The launchpad protocol */
|
|
7550
7589
|
launchpadProtocol?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -8329,6 +8368,16 @@ export type UnconfirmedSwapEventData = {
|
|
|
8329
8368
|
/** The type of token event, `Swap`. */
|
|
8330
8369
|
type: EventType;
|
|
8331
8370
|
};
|
|
8371
|
+
export type UniswapV4Data = {
|
|
8372
|
+
__typename?: 'UniswapV4Data';
|
|
8373
|
+
type: Scalars['String']['output'];
|
|
8374
|
+
/** The address of the hook contract for Uniswap V4 pools. */
|
|
8375
|
+
uniswapV4HookAddress?: Maybe<Scalars['String']['output']>;
|
|
8376
|
+
};
|
|
8377
|
+
/** Input arguments for the `backfillWalletAggregates` mutation. */
|
|
8378
|
+
export type WalletAggregateBackfillInput = {
|
|
8379
|
+
walletAddress: Scalars['String']['input'];
|
|
8380
|
+
};
|
|
8332
8381
|
/** The state of the wallet backfill. */
|
|
8333
8382
|
export declare enum WalletAggregateBackfillState {
|
|
8334
8383
|
/** Historical stats calculations have been blocked for this wallet. It may have been flagged as a bot */
|
|
@@ -8344,6 +8393,16 @@ export declare enum WalletAggregateBackfillState {
|
|
|
8344
8393
|
/** Historical stats calculations for this wallet are queued and will be processed soon */
|
|
8345
8394
|
BackfillRequestReceived = "BackfillRequestReceived"
|
|
8346
8395
|
}
|
|
8396
|
+
/** Input arguments for the `walletAggregateBackfillState` mutation. */
|
|
8397
|
+
export type WalletAggregateBackfillStateInput = {
|
|
8398
|
+
walletAddress: Scalars['String']['input'];
|
|
8399
|
+
};
|
|
8400
|
+
/** The response for the `walletAggregateBackfillState` mutation. */
|
|
8401
|
+
export type WalletAggregateBackfillStateResponse = {
|
|
8402
|
+
__typename?: 'WalletAggregateBackfillStateResponse';
|
|
8403
|
+
status: WalletAggregateBackfillState;
|
|
8404
|
+
walletAddress: Scalars['String']['output'];
|
|
8405
|
+
};
|
|
8347
8406
|
/** The data for a chart of a wallet's activity. */
|
|
8348
8407
|
export type WalletChartData = {
|
|
8349
8408
|
__typename?: 'WalletChartData';
|