@codex-data/sdk 0.6.2 → 0.6.3
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 +228 -12
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +2172 -483
- package/dist/resources/graphql.ts +255 -13
- package/dist/resources/schema.graphql +311 -14
- package/dist/sdk/generated/graphql.d.ts +228 -12
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -0
- package/dist/sdk/index.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/graphql.schema.json +2172 -483
- package/src/resources/graphql.ts +255 -13
- package/src/resources/schema.graphql +311 -14
- package/src/sdk/generated/graphql.ts +255 -13
- package/src/sdk/index.ts +1 -0
|
@@ -70,6 +70,26 @@ export type AddTokenLifecycleEventsOutput = {
|
|
|
70
70
|
id: Scalars['String']['output'];
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
+
export type AddTrackedWalletEventsOutput = {
|
|
74
|
+
__typename?: 'AddTrackedWalletEventsOutput';
|
|
75
|
+
userId: Scalars['String']['output'];
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** Response returned by `onUnconfirmedEventsCreated`. */
|
|
79
|
+
export type AddUnconfirmedEventsOutput = {
|
|
80
|
+
__typename?: 'AddUnconfirmedEventsOutput';
|
|
81
|
+
/** The contract address of the pair. */
|
|
82
|
+
address: Scalars['String']['output'];
|
|
83
|
+
/** A list of transactions for the token. */
|
|
84
|
+
events: Array<Maybe<UnconfirmedEvent>>;
|
|
85
|
+
/** The ID of the event (`address`:`networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
|
|
86
|
+
id: Scalars['String']['output'];
|
|
87
|
+
/** The network ID that the token is deployed on. */
|
|
88
|
+
networkId: Scalars['Int']['output'];
|
|
89
|
+
/** The token of interest within the pair. Can be `token0` or `token1`. */
|
|
90
|
+
quoteToken?: Maybe<QuoteToken>;
|
|
91
|
+
};
|
|
92
|
+
|
|
73
93
|
export enum AlertRecurrence {
|
|
74
94
|
Indefinite = 'INDEFINITE',
|
|
75
95
|
Once = 'ONCE'
|
|
@@ -349,7 +369,7 @@ export enum CostBasisMethod {
|
|
|
349
369
|
export type CreateApiTokensInput = {
|
|
350
370
|
/** Number of tokens to create, default is 1 */
|
|
351
371
|
count?: InputMaybe<Scalars['Int']['input']>;
|
|
352
|
-
/** Number of
|
|
372
|
+
/** Number of seconds until the token expires, defaults to 1 hour (3600) */
|
|
353
373
|
expiresIn?: InputMaybe<Scalars['Int']['input']>;
|
|
354
374
|
/** Number of requests allowed per token, represented as a string, default is 5000 */
|
|
355
375
|
requestLimit?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -361,6 +381,7 @@ export type CreateNftEventWebhookArgs = {
|
|
|
361
381
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
362
382
|
callbackUrl: Scalars['String']['input'];
|
|
363
383
|
conditions: NftEventWebhookConditionInput;
|
|
384
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
364
385
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
365
386
|
name: Scalars['String']['input'];
|
|
366
387
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -378,6 +399,7 @@ export type CreatePriceWebhookArgs = {
|
|
|
378
399
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
379
400
|
callbackUrl: Scalars['String']['input'];
|
|
380
401
|
conditions: PriceEventWebhookConditionInput;
|
|
402
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
381
403
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
382
404
|
name: Scalars['String']['input'];
|
|
383
405
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -395,6 +417,7 @@ export type CreateRawTransactionWebhookArgs = {
|
|
|
395
417
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
396
418
|
callbackUrl: Scalars['String']['input'];
|
|
397
419
|
conditions: RawTransactionWebhookConditionInput;
|
|
420
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
398
421
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
399
422
|
name: Scalars['String']['input'];
|
|
400
423
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -412,6 +435,7 @@ export type CreateTokenPairEventWebhookArgs = {
|
|
|
412
435
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
413
436
|
callbackUrl: Scalars['String']['input'];
|
|
414
437
|
conditions: TokenPairEventWebhookConditionInput;
|
|
438
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
415
439
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
416
440
|
name: Scalars['String']['input'];
|
|
417
441
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -1140,9 +1164,11 @@ export type FrontRunLabelData = {
|
|
|
1140
1164
|
|
|
1141
1165
|
export type GasEstimate = {
|
|
1142
1166
|
__typename?: 'GasEstimate';
|
|
1143
|
-
approveTxHash?: Maybe<Scalars['String']['output']>;
|
|
1144
1167
|
error?: Maybe<Scalars['String']['output']>;
|
|
1168
|
+
errorReason?: Maybe<Scalars['String']['output']>;
|
|
1145
1169
|
gasLimitEstimate?: Maybe<Scalars['String']['output']>;
|
|
1170
|
+
gasPrice?: Maybe<Scalars['String']['output']>;
|
|
1171
|
+
totalFee?: Maybe<Scalars['String']['output']>;
|
|
1146
1172
|
};
|
|
1147
1173
|
|
|
1148
1174
|
export type GasFee = {
|
|
@@ -1191,10 +1217,26 @@ export type GetGasEstimateInput = {
|
|
|
1191
1217
|
networkId: Scalars['Int']['input'];
|
|
1192
1218
|
outputTokenAddress: Scalars['String']['input'];
|
|
1193
1219
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1220
|
+
sendWithPrivateRpc?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1221
|
+
slippage?: InputMaybe<Scalars['Float']['input']>;
|
|
1194
1222
|
userId?: InputMaybe<Scalars['Int']['input']>;
|
|
1195
1223
|
walletId?: InputMaybe<Scalars['Int']['input']>;
|
|
1196
1224
|
};
|
|
1197
1225
|
|
|
1226
|
+
/** Response returned by `getNetworkStats`. */
|
|
1227
|
+
export type GetNetworkStatsResponse = {
|
|
1228
|
+
__typename?: 'GetNetworkStatsResponse';
|
|
1229
|
+
liquidity: Scalars['Float']['output'];
|
|
1230
|
+
transactions1: Scalars['Int']['output'];
|
|
1231
|
+
transactions4: Scalars['Int']['output'];
|
|
1232
|
+
transactions12: Scalars['Int']['output'];
|
|
1233
|
+
transactions24: Scalars['Int']['output'];
|
|
1234
|
+
volume1: Scalars['Float']['output'];
|
|
1235
|
+
volume4: Scalars['Float']['output'];
|
|
1236
|
+
volume12: Scalars['Float']['output'];
|
|
1237
|
+
volume24: Scalars['Float']['output'];
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1198
1240
|
/** Response returned by `getNftPoolCollectionsByExchange`. */
|
|
1199
1241
|
export type GetNftPoolCollectionsResponse = {
|
|
1200
1242
|
__typename?: 'GetNftPoolCollectionsResponse';
|
|
@@ -1236,6 +1278,7 @@ export type GetQuoteInput = {
|
|
|
1236
1278
|
networkId: Scalars['Int']['input'];
|
|
1237
1279
|
outputTokenAddress: Scalars['String']['input'];
|
|
1238
1280
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1281
|
+
slippage?: InputMaybe<Scalars['Float']['input']>;
|
|
1239
1282
|
userId?: InputMaybe<Scalars['Int']['input']>;
|
|
1240
1283
|
};
|
|
1241
1284
|
|
|
@@ -1628,6 +1671,24 @@ export type LockedLiquidityData = {
|
|
|
1628
1671
|
lockBreakdown: Array<Maybe<LockBreakdown>>;
|
|
1629
1672
|
};
|
|
1630
1673
|
|
|
1674
|
+
/** Response returned by `getTokenEventsForMaker`. */
|
|
1675
|
+
export type MakerEventConnection = {
|
|
1676
|
+
__typename?: 'MakerEventConnection';
|
|
1677
|
+
/** A cursor for use in pagination. */
|
|
1678
|
+
cursor?: Maybe<Scalars['String']['output']>;
|
|
1679
|
+
/** A list of transactions for a token's top pair. */
|
|
1680
|
+
items?: Maybe<Array<Maybe<Event>>>;
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
export type MakerEventsQueryInput = {
|
|
1684
|
+
/** The specific wallet address to filter by. */
|
|
1685
|
+
maker: Scalars['String']['input'];
|
|
1686
|
+
/** The network ID to filter by. */
|
|
1687
|
+
networkId: Scalars['Int']['input'];
|
|
1688
|
+
/** The token of interest. Can be `token0` or `token1`. */
|
|
1689
|
+
quoteToken?: InputMaybe<QuoteToken>;
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1631
1692
|
/** The status for a network supported on Defined. */
|
|
1632
1693
|
export type MetadataResponse = {
|
|
1633
1694
|
__typename?: 'MetadataResponse';
|
|
@@ -1641,6 +1702,18 @@ export type MetadataResponse = {
|
|
|
1641
1702
|
networkName: Scalars['String']['output'];
|
|
1642
1703
|
};
|
|
1643
1704
|
|
|
1705
|
+
export type MigrateTrackedWalletsInput = {
|
|
1706
|
+
fromUserId: Scalars['String']['input'];
|
|
1707
|
+
toUserId: Scalars['String']['input'];
|
|
1708
|
+
};
|
|
1709
|
+
|
|
1710
|
+
export type MigrateTrackedWalletsOutput = {
|
|
1711
|
+
__typename?: 'MigrateTrackedWalletsOutput';
|
|
1712
|
+
fromUserId: Scalars['String']['output'];
|
|
1713
|
+
status: Scalars['String']['output'];
|
|
1714
|
+
toUserId: Scalars['String']['output'];
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1644
1717
|
/** Event data for a token mint event. */
|
|
1645
1718
|
export type MintEventData = {
|
|
1646
1719
|
__typename?: 'MintEventData';
|
|
@@ -4284,12 +4357,47 @@ export type OnBarsUpdatedResponse = {
|
|
|
4284
4357
|
pairId: Scalars['String']['output'];
|
|
4285
4358
|
/** The quote token within the pair. */
|
|
4286
4359
|
quoteToken?: Maybe<QuoteToken>;
|
|
4360
|
+
/** The address of the token being quoted */
|
|
4361
|
+
quoteTokenAddress: Scalars['String']['output'];
|
|
4287
4362
|
/** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
|
|
4288
4363
|
statsType: TokenPairStatisticsType;
|
|
4289
4364
|
/** The unix timestamp for the new bar. */
|
|
4290
4365
|
timestamp: Scalars['Int']['output'];
|
|
4291
4366
|
};
|
|
4292
4367
|
|
|
4368
|
+
export type OnPricesUpdatedInput = {
|
|
4369
|
+
address: Scalars['String']['input'];
|
|
4370
|
+
networkId: Scalars['Int']['input'];
|
|
4371
|
+
};
|
|
4372
|
+
|
|
4373
|
+
/** Response returned by `onBarsUpdated`. */
|
|
4374
|
+
export type OnTokenBarsUpdatedResponse = {
|
|
4375
|
+
__typename?: 'OnTokenBarsUpdatedResponse';
|
|
4376
|
+
/** Price data broken down by resolution. */
|
|
4377
|
+
aggregates: ResolutionBarData;
|
|
4378
|
+
/**
|
|
4379
|
+
* The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
|
|
4380
|
+
* For example, `0000000016414564#00000224#00000413`.
|
|
4381
|
+
*/
|
|
4382
|
+
eventSortKey: Scalars['String']['output'];
|
|
4383
|
+
/** The network ID the pair is deployed on. */
|
|
4384
|
+
networkId: Scalars['Int']['output'];
|
|
4385
|
+
/** The contract address for the pair. */
|
|
4386
|
+
pairAddress: Scalars['String']['output'];
|
|
4387
|
+
/** The ID for the pair (`pairAddress`:`networkId`). */
|
|
4388
|
+
pairId: Scalars['String']['output'];
|
|
4389
|
+
/** The quote token within the pair. */
|
|
4390
|
+
quoteToken?: Maybe<QuoteToken>;
|
|
4391
|
+
/** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
|
|
4392
|
+
statsType: TokenPairStatisticsType;
|
|
4393
|
+
/** The unix timestamp for the new bar. */
|
|
4394
|
+
timestamp: Scalars['Int']['output'];
|
|
4395
|
+
/** The address of the token being quoted */
|
|
4396
|
+
tokenAddress: Scalars['String']['output'];
|
|
4397
|
+
/** The address of the token being quoted */
|
|
4398
|
+
tokenId: Scalars['String']['output'];
|
|
4399
|
+
};
|
|
4400
|
+
|
|
4293
4401
|
export type OnTokenEventsCreatedInput = {
|
|
4294
4402
|
networkId: Scalars['Int']['input'];
|
|
4295
4403
|
tokenAddress: Scalars['String']['input'];
|
|
@@ -5639,6 +5747,8 @@ export type Query = {
|
|
|
5639
5747
|
/** Returns new tokens listed over the last three days. */
|
|
5640
5748
|
getLatestPairs?: Maybe<LatestPairConnection>;
|
|
5641
5749
|
getLatestTokens?: Maybe<LatestTokenConnection>;
|
|
5750
|
+
/** Returns metadata for a given network. */
|
|
5751
|
+
getNetworkStats?: Maybe<GetNetworkStatsResponse>;
|
|
5642
5752
|
/** Returns the status of a list of networks supported on Defined. */
|
|
5643
5753
|
getNetworkStatus?: Maybe<Array<MetadataResponse>>;
|
|
5644
5754
|
/** Returns a list of all networks supported on Defined. */
|
|
@@ -5682,6 +5792,7 @@ export type Query = {
|
|
|
5682
5792
|
getTokenCount: Scalars['String']['output'];
|
|
5683
5793
|
/** Returns transactions for a pair. */
|
|
5684
5794
|
getTokenEvents?: Maybe<EventConnection>;
|
|
5795
|
+
getTokenEventsForMaker?: Maybe<MakerEventConnection>;
|
|
5685
5796
|
/** Returns metadata for a given token. */
|
|
5686
5797
|
getTokenInfo?: Maybe<TokenInfo>;
|
|
5687
5798
|
/** Returns real-time or historical prices for a list of tokens, fetched in batches. */
|
|
@@ -5810,6 +5921,7 @@ export type QueryFilterPairsArgs = {
|
|
|
5810
5921
|
|
|
5811
5922
|
|
|
5812
5923
|
export type QueryFilterTokensArgs = {
|
|
5924
|
+
excludeTokens?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
5813
5925
|
filters?: InputMaybe<TokenFilters>;
|
|
5814
5926
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
5815
5927
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5904,6 +6016,12 @@ export type QueryGetLatestTokensArgs = {
|
|
|
5904
6016
|
};
|
|
5905
6017
|
|
|
5906
6018
|
|
|
6019
|
+
export type QueryGetNetworkStatsArgs = {
|
|
6020
|
+
exchangeAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6021
|
+
networkId: Scalars['Int']['input'];
|
|
6022
|
+
};
|
|
6023
|
+
|
|
6024
|
+
|
|
5907
6025
|
export type QueryGetNetworkStatusArgs = {
|
|
5908
6026
|
networkIds: Array<Scalars['Int']['input']>;
|
|
5909
6027
|
};
|
|
@@ -5973,6 +6091,7 @@ export type QueryGetNftPoolEventsArgs = {
|
|
|
5973
6091
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
5974
6092
|
networkId: Scalars['Int']['input'];
|
|
5975
6093
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6094
|
+
timestamp?: InputMaybe<EventQueryTimestampInput>;
|
|
5976
6095
|
};
|
|
5977
6096
|
|
|
5978
6097
|
|
|
@@ -6072,6 +6191,14 @@ export type QueryGetTokenEventsArgs = {
|
|
|
6072
6191
|
};
|
|
6073
6192
|
|
|
6074
6193
|
|
|
6194
|
+
export type QueryGetTokenEventsForMakerArgs = {
|
|
6195
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
6196
|
+
direction?: InputMaybe<RankingDirection>;
|
|
6197
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
6198
|
+
query: MakerEventsQueryInput;
|
|
6199
|
+
};
|
|
6200
|
+
|
|
6201
|
+
|
|
6075
6202
|
export type QueryGetTokenInfoArgs = {
|
|
6076
6203
|
address: Scalars['String']['input'];
|
|
6077
6204
|
networkId: Scalars['Int']['input'];
|
|
@@ -6226,6 +6353,7 @@ export type QueryWalletNftCollectionsArgs = {
|
|
|
6226
6353
|
export type Quote = {
|
|
6227
6354
|
__typename?: 'Quote';
|
|
6228
6355
|
exchange: QuoteExchange;
|
|
6356
|
+
outputAmountMin?: Maybe<Scalars['String']['output']>;
|
|
6229
6357
|
poolFee?: Maybe<Scalars['String']['output']>;
|
|
6230
6358
|
poolFeeBps?: Maybe<Scalars['Float']['output']>;
|
|
6231
6359
|
quoteType: QuoteType;
|
|
@@ -6262,17 +6390,6 @@ export enum QuoteType {
|
|
|
6262
6390
|
Output = 'OUTPUT'
|
|
6263
6391
|
}
|
|
6264
6392
|
|
|
6265
|
-
export type QuoteV2 = {
|
|
6266
|
-
__typename?: 'QuoteV2';
|
|
6267
|
-
exchange: QuoteExchange;
|
|
6268
|
-
poolFee?: Maybe<Scalars['String']['output']>;
|
|
6269
|
-
poolFeeBps?: Maybe<Scalars['Float']['output']>;
|
|
6270
|
-
quoteType: QuoteType;
|
|
6271
|
-
quotedAmount: Scalars['String']['output'];
|
|
6272
|
-
tradeFee: Scalars['String']['output'];
|
|
6273
|
-
tradeFeeBps: Scalars['Float']['output'];
|
|
6274
|
-
};
|
|
6275
|
-
|
|
6276
6393
|
/** The order of ranking. */
|
|
6277
6394
|
export enum RankingDirection {
|
|
6278
6395
|
Asc = 'ASC',
|
|
@@ -6312,6 +6429,34 @@ export type RawTransactionWebhookConditionInput = {
|
|
|
6312
6429
|
toOrFrom?: InputMaybe<StringEqualsConditionInput>;
|
|
6313
6430
|
};
|
|
6314
6431
|
|
|
6432
|
+
export type ReferralEventData = ReferralsEventPayoutData | ReferralsEventRewardData;
|
|
6433
|
+
|
|
6434
|
+
export type ReferralsEventPayoutData = {
|
|
6435
|
+
__typename?: 'ReferralsEventPayoutData';
|
|
6436
|
+
payouts: Array<ReferralsPayoutData>;
|
|
6437
|
+
};
|
|
6438
|
+
|
|
6439
|
+
export type ReferralsEventRewardData = {
|
|
6440
|
+
__typename?: 'ReferralsEventRewardData';
|
|
6441
|
+
inputTokenAddress: Scalars['String']['output'];
|
|
6442
|
+
networkId: Scalars['Int']['output'];
|
|
6443
|
+
outputTokenAddress: Scalars['String']['output'];
|
|
6444
|
+
payoutPercent: Scalars['Float']['output'];
|
|
6445
|
+
referralUserId: Scalars['String']['output'];
|
|
6446
|
+
rewardTokenAddress?: Maybe<Scalars['String']['output']>;
|
|
6447
|
+
rewardTokenAmount?: Maybe<Scalars['String']['output']>;
|
|
6448
|
+
transactionFee: Scalars['String']['output'];
|
|
6449
|
+
transactionId: Scalars['String']['output'];
|
|
6450
|
+
transactionTokenAddress: Scalars['String']['output'];
|
|
6451
|
+
transactionTokenAmount: Scalars['String']['output'];
|
|
6452
|
+
};
|
|
6453
|
+
|
|
6454
|
+
export type ReferralsPayoutData = {
|
|
6455
|
+
__typename?: 'ReferralsPayoutData';
|
|
6456
|
+
tokenAddressNetworkIdPaid: Scalars['String']['output'];
|
|
6457
|
+
tokenAmountPaid: Scalars['String']['output'];
|
|
6458
|
+
};
|
|
6459
|
+
|
|
6315
6460
|
/** Price data for each supported resolution. */
|
|
6316
6461
|
export type ResolutionBarData = {
|
|
6317
6462
|
__typename?: 'ResolutionBarData';
|
|
@@ -6333,6 +6478,8 @@ export type ResolutionBarData = {
|
|
|
6333
6478
|
r15S?: Maybe<CurrencyBarData>;
|
|
6334
6479
|
/** 30 minute resolution. */
|
|
6335
6480
|
r30?: Maybe<CurrencyBarData>;
|
|
6481
|
+
/** 30 second resolution. */
|
|
6482
|
+
r30S?: Maybe<CurrencyBarData>;
|
|
6336
6483
|
/** 60 minute resolution. */
|
|
6337
6484
|
r60?: Maybe<CurrencyBarData>;
|
|
6338
6485
|
/** 4 hour resolution. */
|
|
@@ -6712,11 +6859,17 @@ export type Subscription = {
|
|
|
6712
6859
|
onPairMetadataUpdated?: Maybe<PairMetadata>;
|
|
6713
6860
|
/** Live-streamed price updates for a token. */
|
|
6714
6861
|
onPriceUpdated?: Maybe<Price>;
|
|
6862
|
+
/** Live-streamed price updates for multiple tokens. */
|
|
6863
|
+
onPricesUpdated: Price;
|
|
6715
6864
|
onSimulateTokenContract: SimulateTokenContractResult;
|
|
6865
|
+
/** Live-streamed bar chart data to track price changes over time for a token. */
|
|
6866
|
+
onTokenBarsUpdated?: Maybe<OnTokenBarsUpdatedResponse>;
|
|
6716
6867
|
/** Live streamed events for a given token across all it's pools */
|
|
6717
6868
|
onTokenEventsCreated: AddTokenEventsOutput;
|
|
6718
6869
|
/** Live-streamed token lifecycle events (mints and burns) */
|
|
6719
6870
|
onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
|
|
6871
|
+
/** Live-streamed unconfirmed transactions for a token. (Solana only) */
|
|
6872
|
+
onUnconfirmedEventsCreated?: Maybe<AddUnconfirmedEventsOutput>;
|
|
6720
6873
|
};
|
|
6721
6874
|
|
|
6722
6875
|
|
|
@@ -6793,6 +6946,11 @@ export type SubscriptionOnPriceUpdatedArgs = {
|
|
|
6793
6946
|
};
|
|
6794
6947
|
|
|
6795
6948
|
|
|
6949
|
+
export type SubscriptionOnPricesUpdatedArgs = {
|
|
6950
|
+
input: Array<OnPricesUpdatedInput>;
|
|
6951
|
+
};
|
|
6952
|
+
|
|
6953
|
+
|
|
6796
6954
|
export type SubscriptionOnSimulateTokenContractArgs = {
|
|
6797
6955
|
contractAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6798
6956
|
networkId: Scalars['Int']['input'];
|
|
@@ -6800,6 +6958,12 @@ export type SubscriptionOnSimulateTokenContractArgs = {
|
|
|
6800
6958
|
};
|
|
6801
6959
|
|
|
6802
6960
|
|
|
6961
|
+
export type SubscriptionOnTokenBarsUpdatedArgs = {
|
|
6962
|
+
statsType?: InputMaybe<TokenPairStatisticsType>;
|
|
6963
|
+
tokenId?: InputMaybe<Scalars['String']['input']>;
|
|
6964
|
+
};
|
|
6965
|
+
|
|
6966
|
+
|
|
6803
6967
|
export type SubscriptionOnTokenEventsCreatedArgs = {
|
|
6804
6968
|
input: OnTokenEventsCreatedInput;
|
|
6805
6969
|
};
|
|
@@ -6810,6 +6974,13 @@ export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
|
|
|
6810
6974
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
6811
6975
|
};
|
|
6812
6976
|
|
|
6977
|
+
|
|
6978
|
+
export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
|
|
6979
|
+
address?: InputMaybe<Scalars['String']['input']>;
|
|
6980
|
+
id?: InputMaybe<Scalars['String']['input']>;
|
|
6981
|
+
quoteToken?: InputMaybe<QuoteToken>;
|
|
6982
|
+
};
|
|
6983
|
+
|
|
6813
6984
|
/** Event data for a token swap event. */
|
|
6814
6985
|
export type SwapEventData = {
|
|
6815
6986
|
__typename?: 'SwapEventData';
|
|
@@ -7252,6 +7423,8 @@ export type TokenInfo = {
|
|
|
7252
7423
|
description?: Maybe<Scalars['String']['output']>;
|
|
7253
7424
|
/** Uniquely identifies the token. */
|
|
7254
7425
|
id: Scalars['String']['output'];
|
|
7426
|
+
/** The token banner URL. */
|
|
7427
|
+
imageBannerUrl?: Maybe<Scalars['String']['output']>;
|
|
7255
7428
|
/** The large token logo URL. */
|
|
7256
7429
|
imageLargeUrl?: Maybe<Scalars['String']['output']>;
|
|
7257
7430
|
/** The small token logo URL. */
|
|
@@ -7499,6 +7672,8 @@ export type TokenWithMetadata = {
|
|
|
7499
7672
|
exchanges: Array<Exchange>;
|
|
7500
7673
|
/** The ID of the token (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
|
|
7501
7674
|
id: Scalars['String']['output'];
|
|
7675
|
+
/** The token banner URL. */
|
|
7676
|
+
imageBannerUrl?: Maybe<Scalars['String']['output']>;
|
|
7502
7677
|
/** The token logo URL. */
|
|
7503
7678
|
imageLargeUrl?: Maybe<Scalars['String']['output']>;
|
|
7504
7679
|
/** The token logo URL. */
|
|
@@ -7565,6 +7740,73 @@ export type TokenWithMetadata = {
|
|
|
7565
7740
|
volume: Scalars['String']['output'];
|
|
7566
7741
|
};
|
|
7567
7742
|
|
|
7743
|
+
/** An unconfirmed token transaction. */
|
|
7744
|
+
export type UnconfirmedEvent = {
|
|
7745
|
+
__typename?: 'UnconfirmedEvent';
|
|
7746
|
+
/** The contract address of the token's top pair. */
|
|
7747
|
+
address: Scalars['String']['output'];
|
|
7748
|
+
/** The hash of the block where the transaction occurred. */
|
|
7749
|
+
blockHash: Scalars['String']['output'];
|
|
7750
|
+
/** The block number for the transaction. */
|
|
7751
|
+
blockNumber: Scalars['Int']['output'];
|
|
7752
|
+
/** The event-specific data for the transaction. */
|
|
7753
|
+
data?: Maybe<UnconfirmedEventData>;
|
|
7754
|
+
/** A more specific breakdown of `eventType`. Splits `Swap` into `Buy` or `Sell`. */
|
|
7755
|
+
eventDisplayType?: Maybe<EventDisplayType>;
|
|
7756
|
+
/** The type of transaction event. Can be `Burn`, `Mint`, `Swap`, `Sync`, `Collect`, or `CollectProtocol`. */
|
|
7757
|
+
eventType: EventType;
|
|
7758
|
+
/** The ID of the event (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
|
|
7759
|
+
id: Scalars['String']['output'];
|
|
7760
|
+
/** The index of the log in the block. */
|
|
7761
|
+
logIndex: Scalars['Int']['output'];
|
|
7762
|
+
/** The wallet address that performed the transaction. */
|
|
7763
|
+
maker?: Maybe<Scalars['String']['output']>;
|
|
7764
|
+
/** The network ID that the token is deployed on. */
|
|
7765
|
+
networkId: Scalars['Int']['output'];
|
|
7766
|
+
/** The token of interest within the token's top pair. Can be `token0` or `token1`. */
|
|
7767
|
+
quoteToken?: Maybe<QuoteToken>;
|
|
7768
|
+
/** A optional unique identifier of where the event is within the transaction. */
|
|
7769
|
+
supplementalIndex?: Maybe<Scalars['Int']['output']>;
|
|
7770
|
+
/** The unix timestamp for when the transaction occurred. */
|
|
7771
|
+
timestamp: Scalars['Int']['output'];
|
|
7772
|
+
/** The unique hash for the transaction. */
|
|
7773
|
+
transactionHash: Scalars['String']['output'];
|
|
7774
|
+
/** The index of the transaction within the block. */
|
|
7775
|
+
transactionIndex: Scalars['Int']['output'];
|
|
7776
|
+
};
|
|
7777
|
+
|
|
7778
|
+
export type UnconfirmedEventData = UnconfirmedLiquidityChangeEventData | UnconfirmedSwapEventData;
|
|
7779
|
+
|
|
7780
|
+
export type UnconfirmedLiquidityChangeEventData = {
|
|
7781
|
+
__typename?: 'UnconfirmedLiquidityChangeEventData';
|
|
7782
|
+
/** The amount of `token0` added or removed from the pair. */
|
|
7783
|
+
amount0?: Maybe<Scalars['String']['output']>;
|
|
7784
|
+
/** The amount of `token0` added or removed from the pair, adjusted by the number of decimals in the token. For example, if `amount0` is in WEI, `amount0Shifted` will be in ETH. */
|
|
7785
|
+
amount0Shifted?: Maybe<Scalars['String']['output']>;
|
|
7786
|
+
/** The amount of `token1` added or removed from the pair. */
|
|
7787
|
+
amount1?: Maybe<Scalars['String']['output']>;
|
|
7788
|
+
/** The amount of `token1` added or removed from the pair, adjusted by the number of decimals in the token. For example, USDC `amount1Shifted` will be by 6 decimals. */
|
|
7789
|
+
amount1Shifted?: Maybe<Scalars['String']['output']>;
|
|
7790
|
+
/** The type of token event, `Mint` or 'Burn'. */
|
|
7791
|
+
type: EventType;
|
|
7792
|
+
};
|
|
7793
|
+
|
|
7794
|
+
export type UnconfirmedSwapEventData = {
|
|
7795
|
+
__typename?: 'UnconfirmedSwapEventData';
|
|
7796
|
+
/** The amount of `quoteToken` involved in the swap. For example, if `quoteToken` is USDC for a USDC/WETH pair, `amountNonLiquidityToken` would be the amount of USDC involved in the swap. */
|
|
7797
|
+
amountNonLiquidityToken?: Maybe<Scalars['String']['output']>;
|
|
7798
|
+
/** The price per `quoteToken` at the time of the swap in the network's base token. For example, if `quoteToken` is USDC for a USDC/WETH pair on ETH network, `priceBaseToken` would the price of USDC in ETH. */
|
|
7799
|
+
priceBaseToken?: Maybe<Scalars['String']['output']>;
|
|
7800
|
+
/** The total amount of `quoteToken` involved in the swap in the network's base token (`amountNonLiquidityToken` x `priceBaseToken`). */
|
|
7801
|
+
priceBaseTokenTotal?: Maybe<Scalars['String']['output']>;
|
|
7802
|
+
/** The price per `quoteToken` at the time of the swap in USD. For example, if `quoteToken` is USDC for a USDC/WETH pair on ETH network, `priceBaseToken` would the price of USDC in USD ($1.00). */
|
|
7803
|
+
priceUsd?: Maybe<Scalars['String']['output']>;
|
|
7804
|
+
/** The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`). */
|
|
7805
|
+
priceUsdTotal?: Maybe<Scalars['String']['output']>;
|
|
7806
|
+
/** The type of token event, `Swap`. */
|
|
7807
|
+
type: EventType;
|
|
7808
|
+
};
|
|
7809
|
+
|
|
7568
7810
|
export type UniV3Tick = {
|
|
7569
7811
|
__typename?: 'UniV3Tick';
|
|
7570
7812
|
liquidityNet?: Maybe<Scalars['String']['output']>;
|