@codex-data/sdk 1.0.0-rc1 → 1.0.0-rc3
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/generated_mutations/CreateWebhooks.graphql +392 -0
- package/dist/resources/generated_queries/FilterPairs.graphql +8 -0
- package/dist/resources/generated_queries/FilterTokens.graphql +7 -0
- package/dist/resources/generated_queries/GetCommunityNotes.graphql +100 -0
- package/dist/resources/generated_queries/GetDetailedPairStats.graphql +2 -0
- package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +2 -0
- package/dist/resources/generated_queries/GetEventLabels.graphql +11 -0
- package/dist/resources/generated_queries/GetNftEvents.graphql +46 -0
- package/dist/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
- package/dist/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
- package/dist/resources/generated_queries/GetTokenEvents.graphql +49 -0
- package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +98 -0
- package/dist/resources/generated_queries/GetTokenInfo.graphql +1 -0
- package/dist/resources/generated_queries/GetTokensInfo.graphql +1 -0
- package/dist/resources/generated_queries/GetWebhooks.graphql +98 -0
- package/dist/resources/generated_queries/ListFavoriteTokens.graphql +1 -0
- package/dist/resources/generated_queries/ListPairsForToken.graphql +2 -0
- package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +4 -0
- package/dist/resources/generated_queries/ListTopTokens.graphql +1 -0
- package/dist/resources/generated_queries/Token.graphql +1 -0
- package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
- package/dist/resources/generated_queries/Tokens.graphql +1 -0
- package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
- package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
- package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
- package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
- package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
- package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
- package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
- package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
- package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
- package/dist/resources/graphql.d.ts +138 -13
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +8 -0
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +940 -122
- package/dist/resources/graphql.ts +148 -14
- package/dist/resources/mutations_override/CreateWebhooks.graphql +472 -0
- package/dist/resources/queries_override/GetEventLabels.graphql +35 -0
- package/dist/resources/queries_override/GetWebhooks.graphql +134 -0
- package/dist/resources/schema.graphql +185 -16
- package/dist/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
- package/dist/scripts/generateGraphql.d.ts +1 -0
- package/dist/scripts/generateGraphql.d.ts.map +1 -1
- package/dist/scripts/generateGraphql.js +48 -12
- package/dist/scripts/generateGraphql.js.map +1 -1
- package/dist/sdk/Mutation.d.ts +1 -1
- package/dist/sdk/Mutation.js +1 -1
- package/dist/sdk/Query.d.ts +55 -54
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +54 -53
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +12 -11
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +80 -55
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +76 -58
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +31 -29
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +2908 -90
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +41 -31
- 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/generated_mutations/CreateWebhooks.graphql +392 -0
- package/src/resources/generated_queries/FilterPairs.graphql +8 -0
- package/src/resources/generated_queries/FilterTokens.graphql +7 -0
- package/src/resources/generated_queries/GetCommunityNotes.graphql +100 -0
- package/src/resources/generated_queries/GetDetailedPairStats.graphql +2 -0
- package/src/resources/generated_queries/GetDetailedPairsStats.graphql +2 -0
- package/src/resources/generated_queries/GetEventLabels.graphql +11 -0
- package/src/resources/generated_queries/GetNftEvents.graphql +46 -0
- package/src/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
- package/src/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
- package/src/resources/generated_queries/GetTokenEvents.graphql +49 -0
- package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +98 -0
- package/src/resources/generated_queries/GetTokenInfo.graphql +1 -0
- package/src/resources/generated_queries/GetTokensInfo.graphql +1 -0
- package/src/resources/generated_queries/GetWebhooks.graphql +98 -0
- package/src/resources/generated_queries/ListFavoriteTokens.graphql +1 -0
- package/src/resources/generated_queries/ListPairsForToken.graphql +2 -0
- package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +4 -0
- package/src/resources/generated_queries/ListTopTokens.graphql +1 -0
- package/src/resources/generated_queries/Token.graphql +1 -0
- package/src/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
- package/src/resources/generated_queries/Tokens.graphql +1 -0
- package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
- package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
- package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
- package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
- package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
- package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
- package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
- package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
- package/src/resources/graphql.schema.json +940 -122
- package/src/resources/graphql.ts +148 -14
- package/src/resources/mutations_override/CreateWebhooks.graphql +472 -0
- package/src/resources/queries_override/GetEventLabels.graphql +35 -0
- package/src/resources/queries_override/GetWebhooks.graphql +134 -0
- package/src/resources/schema.graphql +185 -16
- package/src/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
- package/src/scripts/generateGraphql.ts +87 -17
- package/src/sdk/Mutation.ts +2 -2
- package/src/sdk/Query.ts +117 -113
- package/src/sdk/Subscribe.ts +118 -85
- package/src/sdk/generated/gql.ts +68 -58
- package/src/sdk/generated/graphql.ts +226 -72
- package/src/sdk/index.ts +1 -0
|
@@ -103,6 +103,10 @@ export type AddTokenLifecycleEventsOutput = {
|
|
|
103
103
|
events: Array<TokenLifecycleEvent>;
|
|
104
104
|
id: Scalars['String']['output'];
|
|
105
105
|
};
|
|
106
|
+
export type AddTrackedWalletEventsOutput = {
|
|
107
|
+
__typename?: 'AddTrackedWalletEventsOutput';
|
|
108
|
+
userId: Scalars['String']['output'];
|
|
109
|
+
};
|
|
106
110
|
/** Response returned by `onUnconfirmedEventsCreated`. */
|
|
107
111
|
export type AddUnconfirmedEventsOutput = {
|
|
108
112
|
__typename?: 'AddUnconfirmedEventsOutput';
|
|
@@ -371,7 +375,7 @@ export declare enum CostBasisMethod {
|
|
|
371
375
|
export type CreateApiTokensInput = {
|
|
372
376
|
/** Number of tokens to create, default is 1 */
|
|
373
377
|
count?: InputMaybe<Scalars['Int']['input']>;
|
|
374
|
-
/** Number of
|
|
378
|
+
/** Number of seconds until the token expires, defaults to 1 hour (3600) */
|
|
375
379
|
expiresIn?: InputMaybe<Scalars['Int']['input']>;
|
|
376
380
|
/** Number of requests allowed per token, represented as a string, default is 5000 */
|
|
377
381
|
requestLimit?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -382,6 +386,7 @@ export type CreateNftEventWebhookArgs = {
|
|
|
382
386
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
383
387
|
callbackUrl: Scalars['String']['input'];
|
|
384
388
|
conditions: NftEventWebhookConditionInput;
|
|
389
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
385
390
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
386
391
|
name: Scalars['String']['input'];
|
|
387
392
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -397,6 +402,7 @@ export type CreatePriceWebhookArgs = {
|
|
|
397
402
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
398
403
|
callbackUrl: Scalars['String']['input'];
|
|
399
404
|
conditions: PriceEventWebhookConditionInput;
|
|
405
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
400
406
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
401
407
|
name: Scalars['String']['input'];
|
|
402
408
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -412,6 +418,7 @@ export type CreateRawTransactionWebhookArgs = {
|
|
|
412
418
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
413
419
|
callbackUrl: Scalars['String']['input'];
|
|
414
420
|
conditions: RawTransactionWebhookConditionInput;
|
|
421
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
415
422
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
416
423
|
name: Scalars['String']['input'];
|
|
417
424
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -427,6 +434,7 @@ export type CreateTokenPairEventWebhookArgs = {
|
|
|
427
434
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
428
435
|
callbackUrl: Scalars['String']['input'];
|
|
429
436
|
conditions: TokenPairEventWebhookConditionInput;
|
|
437
|
+
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
430
438
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
431
439
|
name: Scalars['String']['input'];
|
|
432
440
|
publishingType?: InputMaybe<PublishingType>;
|
|
@@ -1107,9 +1115,10 @@ export type FrontRunLabelData = {
|
|
|
1107
1115
|
};
|
|
1108
1116
|
export type GasEstimate = {
|
|
1109
1117
|
__typename?: 'GasEstimate';
|
|
1110
|
-
approveTxHash?: Maybe<Scalars['String']['output']>;
|
|
1111
1118
|
error?: Maybe<Scalars['String']['output']>;
|
|
1119
|
+
errorReason?: Maybe<Scalars['String']['output']>;
|
|
1112
1120
|
gasLimitEstimate?: Maybe<Scalars['String']['output']>;
|
|
1121
|
+
gasPrice?: Maybe<Scalars['String']['output']>;
|
|
1113
1122
|
totalFee?: Maybe<Scalars['String']['output']>;
|
|
1114
1123
|
};
|
|
1115
1124
|
export type GasFee = {
|
|
@@ -1155,6 +1164,7 @@ export type GetGasEstimateInput = {
|
|
|
1155
1164
|
outputTokenAddress: Scalars['String']['input'];
|
|
1156
1165
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1157
1166
|
sendWithPrivateRpc?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1167
|
+
slippage?: InputMaybe<Scalars['Float']['input']>;
|
|
1158
1168
|
userId?: InputMaybe<Scalars['Int']['input']>;
|
|
1159
1169
|
walletId?: InputMaybe<Scalars['Int']['input']>;
|
|
1160
1170
|
};
|
|
@@ -1209,6 +1219,7 @@ export type GetQuoteInput = {
|
|
|
1209
1219
|
networkId: Scalars['Int']['input'];
|
|
1210
1220
|
outputTokenAddress: Scalars['String']['input'];
|
|
1211
1221
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1222
|
+
slippage?: InputMaybe<Scalars['Float']['input']>;
|
|
1212
1223
|
userId?: InputMaybe<Scalars['Int']['input']>;
|
|
1213
1224
|
};
|
|
1214
1225
|
export type GetSimulateTokenContractResultsConnection = {
|
|
@@ -1570,6 +1581,22 @@ export type LockedLiquidityData = {
|
|
|
1570
1581
|
/** A breakdown of how much and where liquidity is locked. */
|
|
1571
1582
|
lockBreakdown: Array<Maybe<LockBreakdown>>;
|
|
1572
1583
|
};
|
|
1584
|
+
/** Response returned by `getTokenEventsForMaker`. */
|
|
1585
|
+
export type MakerEventConnection = {
|
|
1586
|
+
__typename?: 'MakerEventConnection';
|
|
1587
|
+
/** A cursor for use in pagination. */
|
|
1588
|
+
cursor?: Maybe<Scalars['String']['output']>;
|
|
1589
|
+
/** A list of transactions for a token's top pair. */
|
|
1590
|
+
items?: Maybe<Array<Maybe<Event>>>;
|
|
1591
|
+
};
|
|
1592
|
+
export type MakerEventsQueryInput = {
|
|
1593
|
+
/** The specific wallet address to filter by. */
|
|
1594
|
+
maker: Scalars['String']['input'];
|
|
1595
|
+
/** The network ID to filter by. */
|
|
1596
|
+
networkId: Scalars['Int']['input'];
|
|
1597
|
+
/** The token of interest. Can be `token0` or `token1`. */
|
|
1598
|
+
quoteToken?: InputMaybe<QuoteToken>;
|
|
1599
|
+
};
|
|
1573
1600
|
/** The status for a network supported on Defined. */
|
|
1574
1601
|
export type MetadataResponse = {
|
|
1575
1602
|
__typename?: 'MetadataResponse';
|
|
@@ -1582,6 +1609,16 @@ export type MetadataResponse = {
|
|
|
1582
1609
|
/** The name of the network. */
|
|
1583
1610
|
networkName: Scalars['String']['output'];
|
|
1584
1611
|
};
|
|
1612
|
+
export type MigrateTrackedWalletsInput = {
|
|
1613
|
+
fromUserId: Scalars['String']['input'];
|
|
1614
|
+
toUserId: Scalars['String']['input'];
|
|
1615
|
+
};
|
|
1616
|
+
export type MigrateTrackedWalletsOutput = {
|
|
1617
|
+
__typename?: 'MigrateTrackedWalletsOutput';
|
|
1618
|
+
fromUserId: Scalars['String']['output'];
|
|
1619
|
+
status: Scalars['String']['output'];
|
|
1620
|
+
toUserId: Scalars['String']['output'];
|
|
1621
|
+
};
|
|
1585
1622
|
/** Event data for a token mint event. */
|
|
1586
1623
|
export type MintEventData = {
|
|
1587
1624
|
__typename?: 'MintEventData';
|
|
@@ -4122,6 +4159,8 @@ export type OnBarsUpdatedResponse = {
|
|
|
4122
4159
|
pairId: Scalars['String']['output'];
|
|
4123
4160
|
/** The quote token within the pair. */
|
|
4124
4161
|
quoteToken?: Maybe<QuoteToken>;
|
|
4162
|
+
/** The address of the token being quoted */
|
|
4163
|
+
quoteTokenAddress: Scalars['String']['output'];
|
|
4125
4164
|
/** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
|
|
4126
4165
|
statsType: TokenPairStatisticsType;
|
|
4127
4166
|
/** The unix timestamp for the new bar. */
|
|
@@ -4131,6 +4170,33 @@ export type OnPricesUpdatedInput = {
|
|
|
4131
4170
|
address: Scalars['String']['input'];
|
|
4132
4171
|
networkId: Scalars['Int']['input'];
|
|
4133
4172
|
};
|
|
4173
|
+
/** Response returned by `onBarsUpdated`. */
|
|
4174
|
+
export type OnTokenBarsUpdatedResponse = {
|
|
4175
|
+
__typename?: 'OnTokenBarsUpdatedResponse';
|
|
4176
|
+
/** Price data broken down by resolution. */
|
|
4177
|
+
aggregates: ResolutionBarData;
|
|
4178
|
+
/**
|
|
4179
|
+
* The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
|
|
4180
|
+
* For example, `0000000016414564#00000224#00000413`.
|
|
4181
|
+
*/
|
|
4182
|
+
eventSortKey: Scalars['String']['output'];
|
|
4183
|
+
/** The network ID the pair is deployed on. */
|
|
4184
|
+
networkId: Scalars['Int']['output'];
|
|
4185
|
+
/** The contract address for the pair. */
|
|
4186
|
+
pairAddress: Scalars['String']['output'];
|
|
4187
|
+
/** The ID for the pair (`pairAddress`:`networkId`). */
|
|
4188
|
+
pairId: Scalars['String']['output'];
|
|
4189
|
+
/** The quote token within the pair. */
|
|
4190
|
+
quoteToken?: Maybe<QuoteToken>;
|
|
4191
|
+
/** The type of statistics used. Can be `Filtered` or `Unfiltered`. */
|
|
4192
|
+
statsType: TokenPairStatisticsType;
|
|
4193
|
+
/** The unix timestamp for the new bar. */
|
|
4194
|
+
timestamp: Scalars['Int']['output'];
|
|
4195
|
+
/** The address of the token being quoted */
|
|
4196
|
+
tokenAddress: Scalars['String']['output'];
|
|
4197
|
+
/** The address of the token being quoted */
|
|
4198
|
+
tokenId: Scalars['String']['output'];
|
|
4199
|
+
};
|
|
4134
4200
|
export type OnTokenEventsCreatedInput = {
|
|
4135
4201
|
networkId: Scalars['Int']['input'];
|
|
4136
4202
|
tokenAddress: Scalars['String']['input'];
|
|
@@ -4321,6 +4387,14 @@ export type PairFilterResult = {
|
|
|
4321
4387
|
uniqueTransactions12?: Maybe<Scalars['Int']['output']>;
|
|
4322
4388
|
/** The unique number of transactions in the past 24 hours. */
|
|
4323
4389
|
uniqueTransactions24?: Maybe<Scalars['Int']['output']>;
|
|
4390
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
4391
|
+
volumeChange1?: Maybe<Scalars['String']['output']>;
|
|
4392
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
4393
|
+
volumeChange4?: Maybe<Scalars['String']['output']>;
|
|
4394
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
4395
|
+
volumeChange12?: Maybe<Scalars['String']['output']>;
|
|
4396
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
4397
|
+
volumeChange24?: Maybe<Scalars['String']['output']>;
|
|
4324
4398
|
/** The trade volume in USD in the past hour. */
|
|
4325
4399
|
volumeUSD1?: Maybe<Scalars['String']['output']>;
|
|
4326
4400
|
/** The trade volume in USD in the past 4 hours. */
|
|
@@ -4424,6 +4498,14 @@ export type PairFilters = {
|
|
|
4424
4498
|
uniqueTransactions12?: InputMaybe<NumberFilter>;
|
|
4425
4499
|
/** The unique number of transactions in the past 24 hours. */
|
|
4426
4500
|
uniqueTransactions24?: InputMaybe<NumberFilter>;
|
|
4501
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
4502
|
+
volumeChange1?: InputMaybe<NumberFilter>;
|
|
4503
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
4504
|
+
volumeChange4?: InputMaybe<NumberFilter>;
|
|
4505
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
4506
|
+
volumeChange12?: InputMaybe<NumberFilter>;
|
|
4507
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
4508
|
+
volumeChange24?: InputMaybe<NumberFilter>;
|
|
4427
4509
|
/** The trade volume in USD in the past hour. */
|
|
4428
4510
|
volumeUSD1?: InputMaybe<NumberFilter>;
|
|
4429
4511
|
/** The trade volume in USD in the past 4 hours. */
|
|
@@ -4538,6 +4620,10 @@ export declare enum PairRankingAttribute {
|
|
|
4538
4620
|
UniqueTransactions4 = "uniqueTransactions4",
|
|
4539
4621
|
UniqueTransactions12 = "uniqueTransactions12",
|
|
4540
4622
|
UniqueTransactions24 = "uniqueTransactions24",
|
|
4623
|
+
VolumeChange1 = "volumeChange1",
|
|
4624
|
+
VolumeChange4 = "volumeChange4",
|
|
4625
|
+
VolumeChange12 = "volumeChange12",
|
|
4626
|
+
VolumeChange24 = "volumeChange24",
|
|
4541
4627
|
VolumeUsd1 = "volumeUSD1",
|
|
4542
4628
|
VolumeUsd4 = "volumeUSD4",
|
|
4543
4629
|
VolumeUsd12 = "volumeUSD12",
|
|
@@ -5405,6 +5491,7 @@ export type Query = {
|
|
|
5405
5491
|
/** Returns new tokens listed over the last three days. */
|
|
5406
5492
|
getLatestPairs?: Maybe<LatestPairConnection>;
|
|
5407
5493
|
getLatestTokens?: Maybe<LatestTokenConnection>;
|
|
5494
|
+
/** Returns metadata for a given network. */
|
|
5408
5495
|
getNetworkStats?: Maybe<GetNetworkStatsResponse>;
|
|
5409
5496
|
/** Returns the status of a list of networks supported on Defined. */
|
|
5410
5497
|
getNetworkStatus?: Maybe<Array<MetadataResponse>>;
|
|
@@ -5449,6 +5536,7 @@ export type Query = {
|
|
|
5449
5536
|
getTokenCount: Scalars['String']['output'];
|
|
5450
5537
|
/** Returns transactions for a pair. */
|
|
5451
5538
|
getTokenEvents?: Maybe<EventConnection>;
|
|
5539
|
+
getTokenEventsForMaker?: Maybe<MakerEventConnection>;
|
|
5452
5540
|
/** Returns metadata for a given token. */
|
|
5453
5541
|
getTokenInfo?: Maybe<TokenInfo>;
|
|
5454
5542
|
/** Returns real-time or historical prices for a list of tokens, fetched in batches. */
|
|
@@ -5763,6 +5851,12 @@ export type QueryGetTokenEventsArgs = {
|
|
|
5763
5851
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
5764
5852
|
query: EventsQueryInput;
|
|
5765
5853
|
};
|
|
5854
|
+
export type QueryGetTokenEventsForMakerArgs = {
|
|
5855
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
5856
|
+
direction?: InputMaybe<RankingDirection>;
|
|
5857
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
5858
|
+
query: MakerEventsQueryInput;
|
|
5859
|
+
};
|
|
5766
5860
|
export type QueryGetTokenInfoArgs = {
|
|
5767
5861
|
address: Scalars['String']['input'];
|
|
5768
5862
|
networkId: Scalars['Int']['input'];
|
|
@@ -5870,6 +5964,7 @@ export type QueryWalletNftCollectionsArgs = {
|
|
|
5870
5964
|
export type Quote = {
|
|
5871
5965
|
__typename?: 'Quote';
|
|
5872
5966
|
exchange: QuoteExchange;
|
|
5967
|
+
outputAmountMin?: Maybe<Scalars['String']['output']>;
|
|
5873
5968
|
poolFee?: Maybe<Scalars['String']['output']>;
|
|
5874
5969
|
poolFeeBps?: Maybe<Scalars['Float']['output']>;
|
|
5875
5970
|
quoteType: QuoteType;
|
|
@@ -5901,16 +5996,6 @@ export declare enum QuoteType {
|
|
|
5901
5996
|
Input = "INPUT",
|
|
5902
5997
|
Output = "OUTPUT"
|
|
5903
5998
|
}
|
|
5904
|
-
export type QuoteV2 = {
|
|
5905
|
-
__typename?: 'QuoteV2';
|
|
5906
|
-
exchange: QuoteExchange;
|
|
5907
|
-
poolFee?: Maybe<Scalars['String']['output']>;
|
|
5908
|
-
poolFeeBps?: Maybe<Scalars['Float']['output']>;
|
|
5909
|
-
quoteType: QuoteType;
|
|
5910
|
-
quotedAmount: Scalars['String']['output'];
|
|
5911
|
-
tradeFee: Scalars['String']['output'];
|
|
5912
|
-
tradeFeeBps: Scalars['Float']['output'];
|
|
5913
|
-
};
|
|
5914
5999
|
/** The order of ranking. */
|
|
5915
6000
|
export declare enum RankingDirection {
|
|
5916
6001
|
Asc = "ASC",
|
|
@@ -5991,6 +6076,8 @@ export type ResolutionBarData = {
|
|
|
5991
6076
|
r15S?: Maybe<CurrencyBarData>;
|
|
5992
6077
|
/** 30 minute resolution. */
|
|
5993
6078
|
r30?: Maybe<CurrencyBarData>;
|
|
6079
|
+
/** 30 second resolution. */
|
|
6080
|
+
r30S?: Maybe<CurrencyBarData>;
|
|
5994
6081
|
/** 60 minute resolution. */
|
|
5995
6082
|
r60?: Maybe<CurrencyBarData>;
|
|
5996
6083
|
/** 4 hour resolution. */
|
|
@@ -6332,6 +6419,8 @@ export type Subscription = {
|
|
|
6332
6419
|
/** Live-streamed price updates for multiple tokens. */
|
|
6333
6420
|
onPricesUpdated: Price;
|
|
6334
6421
|
onSimulateTokenContract: SimulateTokenContractResult;
|
|
6422
|
+
/** Live-streamed bar chart data to track price changes over time for a token. */
|
|
6423
|
+
onTokenBarsUpdated?: Maybe<OnTokenBarsUpdatedResponse>;
|
|
6335
6424
|
/** Live streamed events for a given token across all it's pools */
|
|
6336
6425
|
onTokenEventsCreated: AddTokenEventsOutput;
|
|
6337
6426
|
/** Live-streamed token lifecycle events (mints and burns) */
|
|
@@ -6398,6 +6487,10 @@ export type SubscriptionOnSimulateTokenContractArgs = {
|
|
|
6398
6487
|
networkId: Scalars['Int']['input'];
|
|
6399
6488
|
simulationId?: InputMaybe<Scalars['String']['input']>;
|
|
6400
6489
|
};
|
|
6490
|
+
export type SubscriptionOnTokenBarsUpdatedArgs = {
|
|
6491
|
+
statsType?: InputMaybe<TokenPairStatisticsType>;
|
|
6492
|
+
tokenId?: InputMaybe<Scalars['String']['input']>;
|
|
6493
|
+
};
|
|
6401
6494
|
export type SubscriptionOnTokenEventsCreatedArgs = {
|
|
6402
6495
|
input: OnTokenEventsCreatedInput;
|
|
6403
6496
|
};
|
|
@@ -6715,6 +6808,14 @@ export type TokenFilterResult = {
|
|
|
6715
6808
|
volume12?: Maybe<Scalars['String']['output']>;
|
|
6716
6809
|
/** The trade volume in USD in the past 24 hours. */
|
|
6717
6810
|
volume24?: Maybe<Scalars['String']['output']>;
|
|
6811
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
6812
|
+
volumeChange1?: Maybe<Scalars['String']['output']>;
|
|
6813
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
6814
|
+
volumeChange4?: Maybe<Scalars['String']['output']>;
|
|
6815
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
6816
|
+
volumeChange12?: Maybe<Scalars['String']['output']>;
|
|
6817
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
6818
|
+
volumeChange24?: Maybe<Scalars['String']['output']>;
|
|
6718
6819
|
};
|
|
6719
6820
|
/** Input type of `TokenFilters`. */
|
|
6720
6821
|
export type TokenFilters = {
|
|
@@ -6828,6 +6929,14 @@ export type TokenFilters = {
|
|
|
6828
6929
|
volume12?: InputMaybe<NumberFilter>;
|
|
6829
6930
|
/** The trade volume in USD in the past 24 hours. */
|
|
6830
6931
|
volume24?: InputMaybe<NumberFilter>;
|
|
6932
|
+
/** The percent volume change in the past hour. Decimal format. */
|
|
6933
|
+
volumeChange1?: InputMaybe<NumberFilter>;
|
|
6934
|
+
/** The percent volume change in the past 4 hours. Decimal format. */
|
|
6935
|
+
volumeChange4?: InputMaybe<NumberFilter>;
|
|
6936
|
+
/** The percent volume change in the past 12 hours. Decimal format. */
|
|
6937
|
+
volumeChange12?: InputMaybe<NumberFilter>;
|
|
6938
|
+
/** The percent volume change in the past 24 hours. Decimal format. */
|
|
6939
|
+
volumeChange24?: InputMaybe<NumberFilter>;
|
|
6831
6940
|
};
|
|
6832
6941
|
/** Metadata for a token. */
|
|
6833
6942
|
export type TokenInfo = {
|
|
@@ -6842,6 +6951,8 @@ export type TokenInfo = {
|
|
|
6842
6951
|
description?: Maybe<Scalars['String']['output']>;
|
|
6843
6952
|
/** Uniquely identifies the token. */
|
|
6844
6953
|
id: Scalars['String']['output'];
|
|
6954
|
+
/** The token banner URL. */
|
|
6955
|
+
imageBannerUrl?: Maybe<Scalars['String']['output']>;
|
|
6845
6956
|
/** The large token logo URL. */
|
|
6846
6957
|
imageLargeUrl?: Maybe<Scalars['String']['output']>;
|
|
6847
6958
|
/** The small token logo URL. */
|
|
@@ -7031,7 +7142,11 @@ export declare enum TokenRankingAttribute {
|
|
|
7031
7142
|
Volume1 = "volume1",
|
|
7032
7143
|
Volume4 = "volume4",
|
|
7033
7144
|
Volume12 = "volume12",
|
|
7034
|
-
Volume24 = "volume24"
|
|
7145
|
+
Volume24 = "volume24",
|
|
7146
|
+
VolumeChange1 = "volumeChange1",
|
|
7147
|
+
VolumeChange4 = "volumeChange4",
|
|
7148
|
+
VolumeChange12 = "volumeChange12",
|
|
7149
|
+
VolumeChange24 = "volumeChange24"
|
|
7035
7150
|
}
|
|
7036
7151
|
/** Response returned by `searchTokens`. */
|
|
7037
7152
|
export type TokenSearchResponse = {
|
|
@@ -7069,6 +7184,8 @@ export type TokenWithMetadata = {
|
|
|
7069
7184
|
exchanges: Array<Exchange>;
|
|
7070
7185
|
/** The ID of the token (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
|
|
7071
7186
|
id: Scalars['String']['output'];
|
|
7187
|
+
/** The token banner URL. */
|
|
7188
|
+
imageBannerUrl?: Maybe<Scalars['String']['output']>;
|
|
7072
7189
|
/** The token logo URL. */
|
|
7073
7190
|
imageLargeUrl?: Maybe<Scalars['String']['output']>;
|
|
7074
7191
|
/** The token logo URL. */
|
|
@@ -7186,6 +7303,14 @@ export type UnconfirmedSwapEventData = {
|
|
|
7186
7303
|
__typename?: 'UnconfirmedSwapEventData';
|
|
7187
7304
|
/** 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. */
|
|
7188
7305
|
amountNonLiquidityToken?: Maybe<Scalars['String']['output']>;
|
|
7306
|
+
/** 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. */
|
|
7307
|
+
priceBaseToken?: Maybe<Scalars['String']['output']>;
|
|
7308
|
+
/** The total amount of `quoteToken` involved in the swap in the network's base token (`amountNonLiquidityToken` x `priceBaseToken`). */
|
|
7309
|
+
priceBaseTokenTotal?: Maybe<Scalars['String']['output']>;
|
|
7310
|
+
/** 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). */
|
|
7311
|
+
priceUsd?: Maybe<Scalars['String']['output']>;
|
|
7312
|
+
/** The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`). */
|
|
7313
|
+
priceUsdTotal?: Maybe<Scalars['String']['output']>;
|
|
7189
7314
|
/** The type of token event, `Swap`. */
|
|
7190
7315
|
type: EventType;
|
|
7191
7316
|
};
|