@codex-data/sdk 1.0.13 → 1.0.15
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 +68 -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 +68 -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 +380 -6
- package/src/resources/graphql.ts +79 -7
- package/src/resources/schema.graphql +67 -8
- package/src/sdk/generated/graphql.ts +79 -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,8 +1804,10 @@ 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'];
|
|
1809
|
+
/** The liquidity of the token's top pair. */
|
|
1810
|
+
liquidity?: Maybe<Scalars['String']['output']>;
|
|
1801
1811
|
/** The market cap of the token. */
|
|
1802
1812
|
marketCap?: Maybe<Scalars['String']['output']>;
|
|
1803
1813
|
/** The network ID that the token is deployed on. */
|
|
@@ -1836,6 +1846,8 @@ export declare enum LaunchpadTokenEventType {
|
|
|
1836
1846
|
export declare enum LaunchpadTokenProtocol {
|
|
1837
1847
|
/** Protocol name for ArenaTrade. */
|
|
1838
1848
|
ArenaTrade = "ArenaTrade",
|
|
1849
|
+
/** Protocol name for Baseapp. */
|
|
1850
|
+
Baseapp = "Baseapp",
|
|
1839
1851
|
/** Protocol name for boop.fun. */
|
|
1840
1852
|
BoopFun = "BoopFun",
|
|
1841
1853
|
/** Protocol name for EgoTech. */
|
|
@@ -1853,7 +1865,11 @@ export declare enum LaunchpadTokenProtocol {
|
|
|
1853
1865
|
/** Protocol name for LaunchLab and Bonk. */
|
|
1854
1866
|
RaydiumLaunchpad = "RaydiumLaunchpad",
|
|
1855
1867
|
/** Protocol name for Vertigo. */
|
|
1856
|
-
Vertigo = "Vertigo"
|
|
1868
|
+
Vertigo = "Vertigo",
|
|
1869
|
+
/** Protocol name for ZoraCreator. */
|
|
1870
|
+
ZoraCreatorV4 = "ZoraCreatorV4",
|
|
1871
|
+
/** Protocol name for Zora. */
|
|
1872
|
+
ZoraV4 = "ZoraV4"
|
|
1857
1873
|
}
|
|
1858
1874
|
/** Data about liquidity in a pair. */
|
|
1859
1875
|
export type LiquidityData = {
|
|
@@ -2097,6 +2113,8 @@ export type MintEventData = {
|
|
|
2097
2113
|
};
|
|
2098
2114
|
export type Mutation = {
|
|
2099
2115
|
__typename?: 'Mutation';
|
|
2116
|
+
/** Backfill wallet aggregates (trading stats) for a given wallet. This is the data used in the filterWallet/filterTokenWallets and detailedWalletStats queries. */
|
|
2117
|
+
backfillWalletAggregates: WalletAggregateBackfillStateResponse;
|
|
2100
2118
|
/** Create a new set of short-lived api access tokens */
|
|
2101
2119
|
createApiTokens: Array<ApiToken>;
|
|
2102
2120
|
/** Create price, raw transaction, token/pair event, and NFT event webhooks. */
|
|
@@ -2106,6 +2124,9 @@ export type Mutation = {
|
|
|
2106
2124
|
/** Delete multiple webhooks. */
|
|
2107
2125
|
deleteWebhooks?: Maybe<DeleteWebhooksOutput>;
|
|
2108
2126
|
};
|
|
2127
|
+
export type MutationBackfillWalletAggregatesArgs = {
|
|
2128
|
+
input: WalletAggregateBackfillInput;
|
|
2129
|
+
};
|
|
2109
2130
|
export type MutationCreateApiTokensArgs = {
|
|
2110
2131
|
input: CreateApiTokensInput;
|
|
2111
2132
|
};
|
|
@@ -4798,7 +4819,7 @@ export type OnEventsCreatedByMakerInput = {
|
|
|
4798
4819
|
export type OnLaunchpadTokenEventBatchInput = {
|
|
4799
4820
|
/** The type of event. */
|
|
4800
4821
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
4801
|
-
/** The name of the launchpad. One of the following: Four.meme,
|
|
4822
|
+
/** 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
4823
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
4803
4824
|
/** The network ID that the token is deployed on. */
|
|
4804
4825
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4811,7 +4832,7 @@ export type OnLaunchpadTokenEventInput = {
|
|
|
4811
4832
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
4812
4833
|
/** The type of event. */
|
|
4813
4834
|
eventType?: InputMaybe<LaunchpadTokenEventType>;
|
|
4814
|
-
/** The name of the launchpad. One of the following: Four.meme,
|
|
4835
|
+
/** 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
4836
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
4816
4837
|
/** The network ID that the token is deployed on. */
|
|
4817
4838
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4906,6 +4927,13 @@ export type Pair = {
|
|
|
4906
4927
|
networkId: Scalars['Int']['output'];
|
|
4907
4928
|
/** The pooled amounts of each token in the pair. */
|
|
4908
4929
|
pooled?: Maybe<PooledTokenValues>;
|
|
4930
|
+
/**
|
|
4931
|
+
* The per-protocol data for the pair, if applicable
|
|
4932
|
+
* @deprecated Use protocolData instead
|
|
4933
|
+
*/
|
|
4934
|
+
protocolCustomData?: Maybe<PairProtocolCustomData>;
|
|
4935
|
+
/** Custom data for the pair, only certain protocols have this. (uniswapv4, arenatrade for example) */
|
|
4936
|
+
protocolData?: Maybe<ProtocolData>;
|
|
4909
4937
|
/** The amount of required tick separation. Only applicable for pairs on UniswapV3. */
|
|
4910
4938
|
tickSpacing?: Maybe<Scalars['Int']['output']>;
|
|
4911
4939
|
/** The contract address of `token0`. */
|
|
@@ -5130,6 +5158,8 @@ export type PairFilters = {
|
|
|
5130
5158
|
highPrice12?: InputMaybe<NumberFilter>;
|
|
5131
5159
|
/** The highest price in USD in the past 24 hours. */
|
|
5132
5160
|
highPrice24?: InputMaybe<NumberFilter>;
|
|
5161
|
+
/** The address of the hook contract for applicable protocols. */
|
|
5162
|
+
hookAddress?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
5133
5163
|
/** 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
5164
|
isTestnet?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5135
5165
|
/** The unix timestamp for the last transaction to happen on the pair. */
|
|
@@ -5334,6 +5364,11 @@ export type PairMetadataToken = {
|
|
|
5334
5364
|
price: Scalars['String']['output'];
|
|
5335
5365
|
symbol: Scalars['String']['output'];
|
|
5336
5366
|
};
|
|
5367
|
+
export type PairProtocolCustomData = {
|
|
5368
|
+
__typename?: 'PairProtocolCustomData';
|
|
5369
|
+
/** The address of the hook contract for Uniswap V4 pools. */
|
|
5370
|
+
uniswapV4HookAddress?: Maybe<Scalars['String']['output']>;
|
|
5371
|
+
};
|
|
5337
5372
|
/** Input type of `PairRanking`. */
|
|
5338
5373
|
export type PairRanking = {
|
|
5339
5374
|
/** The attribute to rank pairs by. */
|
|
@@ -6196,6 +6231,7 @@ export type PrimePoolWithdrawData = {
|
|
|
6196
6231
|
/** The amount of PRIME the user is not eligible for either from having already harvesting or from not caching in the past. */
|
|
6197
6232
|
userPrimeRewardDebt: Scalars['String']['output'];
|
|
6198
6233
|
};
|
|
6234
|
+
export type ProtocolData = ArenaTradeData | UniswapV4Data;
|
|
6199
6235
|
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
6200
6236
|
export declare enum PublishingType {
|
|
6201
6237
|
Batch = "BATCH",
|
|
@@ -6353,6 +6389,8 @@ export type Query = {
|
|
|
6353
6389
|
tokens: Array<Maybe<EnhancedToken>>;
|
|
6354
6390
|
/** Returns the percentage of a token's total supply held collectively by its top 10 holders. */
|
|
6355
6391
|
top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
|
|
6392
|
+
/** Once a wallet backfill has been triggered, this query can be used to check the status of the backfill. */
|
|
6393
|
+
walletAggregateBackfillState: WalletAggregateBackfillStateResponse;
|
|
6356
6394
|
/** Returns a chart of a wallet's activity. */
|
|
6357
6395
|
walletChart?: Maybe<WalletChartResponse>;
|
|
6358
6396
|
/** Returns list of NFT assets held by a given wallet for a single collection. */
|
|
@@ -6718,6 +6756,9 @@ export type QueryTokensArgs = {
|
|
|
6718
6756
|
export type QueryTop10HoldersPercentArgs = {
|
|
6719
6757
|
tokenId: Scalars['String']['input'];
|
|
6720
6758
|
};
|
|
6759
|
+
export type QueryWalletAggregateBackfillStateArgs = {
|
|
6760
|
+
input: WalletAggregateBackfillStateInput;
|
|
6761
|
+
};
|
|
6721
6762
|
export type QueryWalletChartArgs = {
|
|
6722
6763
|
input: WalletChartInput;
|
|
6723
6764
|
};
|
|
@@ -7544,7 +7585,7 @@ export type TokenFilters = {
|
|
|
7544
7585
|
launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7545
7586
|
/** The timestamp when the launchpad was migrated */
|
|
7546
7587
|
launchpadMigratedAt?: InputMaybe<NumberFilter>;
|
|
7547
|
-
/** The name of the launchpad. One of the following: Four.meme,
|
|
7588
|
+
/** 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
7589
|
launchpadName?: InputMaybe<Scalars['String']['input']>;
|
|
7549
7590
|
/** The launchpad protocol */
|
|
7550
7591
|
launchpadProtocol?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -8329,6 +8370,16 @@ export type UnconfirmedSwapEventData = {
|
|
|
8329
8370
|
/** The type of token event, `Swap`. */
|
|
8330
8371
|
type: EventType;
|
|
8331
8372
|
};
|
|
8373
|
+
export type UniswapV4Data = {
|
|
8374
|
+
__typename?: 'UniswapV4Data';
|
|
8375
|
+
type: Scalars['String']['output'];
|
|
8376
|
+
/** The address of the hook contract for Uniswap V4 pools. */
|
|
8377
|
+
uniswapV4HookAddress?: Maybe<Scalars['String']['output']>;
|
|
8378
|
+
};
|
|
8379
|
+
/** Input arguments for the `backfillWalletAggregates` mutation. */
|
|
8380
|
+
export type WalletAggregateBackfillInput = {
|
|
8381
|
+
walletAddress: Scalars['String']['input'];
|
|
8382
|
+
};
|
|
8332
8383
|
/** The state of the wallet backfill. */
|
|
8333
8384
|
export declare enum WalletAggregateBackfillState {
|
|
8334
8385
|
/** Historical stats calculations have been blocked for this wallet. It may have been flagged as a bot */
|
|
@@ -8344,6 +8395,16 @@ export declare enum WalletAggregateBackfillState {
|
|
|
8344
8395
|
/** Historical stats calculations for this wallet are queued and will be processed soon */
|
|
8345
8396
|
BackfillRequestReceived = "BackfillRequestReceived"
|
|
8346
8397
|
}
|
|
8398
|
+
/** Input arguments for the `walletAggregateBackfillState` mutation. */
|
|
8399
|
+
export type WalletAggregateBackfillStateInput = {
|
|
8400
|
+
walletAddress: Scalars['String']['input'];
|
|
8401
|
+
};
|
|
8402
|
+
/** The response for the `walletAggregateBackfillState` mutation. */
|
|
8403
|
+
export type WalletAggregateBackfillStateResponse = {
|
|
8404
|
+
__typename?: 'WalletAggregateBackfillStateResponse';
|
|
8405
|
+
status: WalletAggregateBackfillState;
|
|
8406
|
+
walletAddress: Scalars['String']['output'];
|
|
8407
|
+
};
|
|
8347
8408
|
/** The data for a chart of a wallet's activity. */
|
|
8348
8409
|
export type WalletChartData = {
|
|
8349
8410
|
__typename?: 'WalletChartData';
|