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