@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
|
@@ -68,6 +68,10 @@ type AddTokenLifecycleEventsOutput {
|
|
|
68
68
|
events: [TokenLifecycleEvent!]!
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
type AddTrackedWalletEventsOutput {
|
|
72
|
+
userId: String!
|
|
73
|
+
}
|
|
74
|
+
|
|
71
75
|
"""Response returned by `onUnconfirmedEventsCreated`."""
|
|
72
76
|
type AddUnconfirmedEventsOutput {
|
|
73
77
|
"""The contract address of the pair."""
|
|
@@ -439,9 +443,7 @@ input CreateApiTokensInput {
|
|
|
439
443
|
"""
|
|
440
444
|
requestLimit: String
|
|
441
445
|
|
|
442
|
-
"""
|
|
443
|
-
Number of milliseconds until the token expires, defaults to 1 hour (3600000)
|
|
444
|
-
"""
|
|
446
|
+
"""Number of seconds until the token expires, defaults to 1 hour (3600)"""
|
|
445
447
|
expiresIn: Int
|
|
446
448
|
}
|
|
447
449
|
|
|
@@ -456,6 +458,7 @@ input CreateNftEventWebhookArgs {
|
|
|
456
458
|
bucketId: String
|
|
457
459
|
bucketSortkey: String
|
|
458
460
|
publishingType: PublishingType
|
|
461
|
+
deduplicate: Boolean
|
|
459
462
|
}
|
|
460
463
|
|
|
461
464
|
input CreateNftEventWebhooksInput {
|
|
@@ -473,6 +476,7 @@ input CreatePriceWebhookArgs {
|
|
|
473
476
|
bucketId: String
|
|
474
477
|
bucketSortkey: String
|
|
475
478
|
publishingType: PublishingType
|
|
479
|
+
deduplicate: Boolean
|
|
476
480
|
}
|
|
477
481
|
|
|
478
482
|
input CreatePriceWebhooksInput {
|
|
@@ -490,6 +494,7 @@ input CreateRawTransactionWebhookArgs {
|
|
|
490
494
|
bucketId: String
|
|
491
495
|
bucketSortkey: String
|
|
492
496
|
publishingType: PublishingType
|
|
497
|
+
deduplicate: Boolean
|
|
493
498
|
}
|
|
494
499
|
|
|
495
500
|
input CreateRawTransactionWebhooksInput {
|
|
@@ -507,6 +512,7 @@ input CreateTokenPairEventWebhookArgs {
|
|
|
507
512
|
bucketId: String
|
|
508
513
|
bucketSortkey: String
|
|
509
514
|
publishingType: PublishingType
|
|
515
|
+
deduplicate: Boolean
|
|
510
516
|
}
|
|
511
517
|
|
|
512
518
|
input CreateTokenPairEventWebhooksInput {
|
|
@@ -1406,8 +1412,9 @@ type FrontRunLabelData {
|
|
|
1406
1412
|
|
|
1407
1413
|
type GasEstimate {
|
|
1408
1414
|
gasLimitEstimate: String
|
|
1415
|
+
gasPrice: String
|
|
1409
1416
|
error: String
|
|
1410
|
-
|
|
1417
|
+
errorReason: String
|
|
1411
1418
|
totalFee: String
|
|
1412
1419
|
}
|
|
1413
1420
|
|
|
@@ -1468,6 +1475,7 @@ input GetGasEstimateInput {
|
|
|
1468
1475
|
walletId: Int
|
|
1469
1476
|
customGas: String
|
|
1470
1477
|
sendWithPrivateRpc: Boolean
|
|
1478
|
+
slippage: Float
|
|
1471
1479
|
}
|
|
1472
1480
|
|
|
1473
1481
|
"""Response returned by `getNetworkStats`."""
|
|
@@ -1529,6 +1537,7 @@ input GetQuoteInput {
|
|
|
1529
1537
|
exchangeAddress: String
|
|
1530
1538
|
userId: Int
|
|
1531
1539
|
customGas: String
|
|
1540
|
+
slippage: Float
|
|
1532
1541
|
}
|
|
1533
1542
|
|
|
1534
1543
|
type GetSimulateTokenContractResultsConnection {
|
|
@@ -2055,6 +2064,26 @@ type LockedLiquidityData {
|
|
|
2055
2064
|
lockBreakdown: [LockBreakdown]!
|
|
2056
2065
|
}
|
|
2057
2066
|
|
|
2067
|
+
"""Response returned by `getTokenEventsForMaker`."""
|
|
2068
|
+
type MakerEventConnection {
|
|
2069
|
+
"""A list of transactions for a token's top pair."""
|
|
2070
|
+
items: [Event]
|
|
2071
|
+
|
|
2072
|
+
"""A cursor for use in pagination."""
|
|
2073
|
+
cursor: String
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
input MakerEventsQueryInput {
|
|
2077
|
+
"""The specific wallet address to filter by."""
|
|
2078
|
+
maker: String!
|
|
2079
|
+
|
|
2080
|
+
"""The network ID to filter by."""
|
|
2081
|
+
networkId: Int!
|
|
2082
|
+
|
|
2083
|
+
"""The token of interest. Can be `token0` or `token1`."""
|
|
2084
|
+
quoteToken: QuoteToken
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2058
2087
|
"""The status for a network supported on Defined."""
|
|
2059
2088
|
type MetadataResponse {
|
|
2060
2089
|
"""The last processed block on the network."""
|
|
@@ -2070,6 +2099,17 @@ type MetadataResponse {
|
|
|
2070
2099
|
networkName: String!
|
|
2071
2100
|
}
|
|
2072
2101
|
|
|
2102
|
+
input MigrateTrackedWalletsInput {
|
|
2103
|
+
fromUserId: String!
|
|
2104
|
+
toUserId: String!
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
type MigrateTrackedWalletsOutput {
|
|
2108
|
+
fromUserId: String!
|
|
2109
|
+
toUserId: String!
|
|
2110
|
+
status: String!
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2073
2113
|
"""Event data for a token mint event."""
|
|
2074
2114
|
type MintEventData {
|
|
2075
2115
|
"""The amount of `token0` added to the pair."""
|
|
@@ -5631,6 +5671,9 @@ type OnBarsUpdatedResponse {
|
|
|
5631
5671
|
|
|
5632
5672
|
"""The quote token within the pair."""
|
|
5633
5673
|
quoteToken: QuoteToken
|
|
5674
|
+
|
|
5675
|
+
"""The address of the token being quoted"""
|
|
5676
|
+
quoteTokenAddress: String!
|
|
5634
5677
|
}
|
|
5635
5678
|
|
|
5636
5679
|
type OneOfNumberCondition {
|
|
@@ -5646,6 +5689,42 @@ input OnPricesUpdatedInput {
|
|
|
5646
5689
|
networkId: Int!
|
|
5647
5690
|
}
|
|
5648
5691
|
|
|
5692
|
+
"""Response returned by `onBarsUpdated`."""
|
|
5693
|
+
type OnTokenBarsUpdatedResponse {
|
|
5694
|
+
"""The contract address for the pair."""
|
|
5695
|
+
pairAddress: String!
|
|
5696
|
+
|
|
5697
|
+
"""The network ID the pair is deployed on."""
|
|
5698
|
+
networkId: Int!
|
|
5699
|
+
|
|
5700
|
+
"""The ID for the pair (`pairAddress`:`networkId`)."""
|
|
5701
|
+
pairId: String!
|
|
5702
|
+
|
|
5703
|
+
"""The unix timestamp for the new bar."""
|
|
5704
|
+
timestamp: Int!
|
|
5705
|
+
|
|
5706
|
+
"""The type of statistics used. Can be `Filtered` or `Unfiltered`."""
|
|
5707
|
+
statsType: TokenPairStatisticsType!
|
|
5708
|
+
|
|
5709
|
+
"""
|
|
5710
|
+
The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
|
|
5711
|
+
For example, `0000000016414564#00000224#00000413`.
|
|
5712
|
+
"""
|
|
5713
|
+
eventSortKey: String!
|
|
5714
|
+
|
|
5715
|
+
"""Price data broken down by resolution."""
|
|
5716
|
+
aggregates: ResolutionBarData!
|
|
5717
|
+
|
|
5718
|
+
"""The quote token within the pair."""
|
|
5719
|
+
quoteToken: QuoteToken
|
|
5720
|
+
|
|
5721
|
+
"""The address of the token being quoted"""
|
|
5722
|
+
tokenAddress: String!
|
|
5723
|
+
|
|
5724
|
+
"""The address of the token being quoted"""
|
|
5725
|
+
tokenId: String!
|
|
5726
|
+
}
|
|
5727
|
+
|
|
5649
5728
|
input OnTokenEventsCreatedInput {
|
|
5650
5729
|
tokenAddress: String!
|
|
5651
5730
|
networkId: Int!
|
|
@@ -5846,6 +5925,18 @@ type PairFilterResult {
|
|
|
5846
5925
|
"""The percent price change in the past 24 hours. Decimal format."""
|
|
5847
5926
|
priceChange24: String
|
|
5848
5927
|
|
|
5928
|
+
"""The percent volume change in the past hour. Decimal format."""
|
|
5929
|
+
volumeChange1: String
|
|
5930
|
+
|
|
5931
|
+
"""The percent volume change in the past 4 hours. Decimal format."""
|
|
5932
|
+
volumeChange4: String
|
|
5933
|
+
|
|
5934
|
+
"""The percent volume change in the past 12 hours. Decimal format."""
|
|
5935
|
+
volumeChange12: String
|
|
5936
|
+
|
|
5937
|
+
"""The percent volume change in the past 24 hours. Decimal format."""
|
|
5938
|
+
volumeChange24: String
|
|
5939
|
+
|
|
5849
5940
|
"""The number of sells in the past hour."""
|
|
5850
5941
|
sellCount1: Int
|
|
5851
5942
|
|
|
@@ -5996,6 +6087,18 @@ input PairFilters {
|
|
|
5996
6087
|
"""The percent price change in the past 4 hours. Decimal format."""
|
|
5997
6088
|
priceChange4: NumberFilter
|
|
5998
6089
|
|
|
6090
|
+
"""The percent volume change in the past hour. Decimal format."""
|
|
6091
|
+
volumeChange1: NumberFilter
|
|
6092
|
+
|
|
6093
|
+
"""The percent volume change in the past 4 hours. Decimal format."""
|
|
6094
|
+
volumeChange4: NumberFilter
|
|
6095
|
+
|
|
6096
|
+
"""The percent volume change in the past 12 hours. Decimal format."""
|
|
6097
|
+
volumeChange12: NumberFilter
|
|
6098
|
+
|
|
6099
|
+
"""The percent volume change in the past 24 hours. Decimal format."""
|
|
6100
|
+
volumeChange24: NumberFilter
|
|
6101
|
+
|
|
5999
6102
|
"""The number of sells in the past hour."""
|
|
6000
6103
|
sellCount1: NumberFilter
|
|
6001
6104
|
|
|
@@ -6160,6 +6263,10 @@ enum PairRankingAttribute {
|
|
|
6160
6263
|
priceChange4
|
|
6161
6264
|
priceChange12
|
|
6162
6265
|
priceChange24
|
|
6266
|
+
volumeChange1
|
|
6267
|
+
volumeChange4
|
|
6268
|
+
volumeChange12
|
|
6269
|
+
volumeChange24
|
|
6163
6270
|
sellCount1
|
|
6164
6271
|
sellCount4
|
|
6165
6272
|
sellCount12
|
|
@@ -8027,11 +8134,13 @@ type Query {
|
|
|
8027
8134
|
"""
|
|
8028
8135
|
currencyCode: String
|
|
8029
8136
|
): SymbolResponse
|
|
8137
|
+
|
|
8138
|
+
"""Returns metadata for a given network."""
|
|
8030
8139
|
getNetworkStats(
|
|
8031
|
-
"""The network Id to filter by"""
|
|
8140
|
+
"""The network Id to filter by."""
|
|
8032
8141
|
networkId: Int!
|
|
8033
8142
|
|
|
8034
|
-
"""The
|
|
8143
|
+
"""The exchange address to filter by (optional)."""
|
|
8035
8144
|
exchangeAddress: String
|
|
8036
8145
|
): GetNetworkStatsResponse
|
|
8037
8146
|
|
|
@@ -8051,6 +8160,7 @@ type Query {
|
|
|
8051
8160
|
"""
|
|
8052
8161
|
direction: RankingDirection
|
|
8053
8162
|
): EventConnection
|
|
8163
|
+
getTokenEventsForMaker(limit: Int, query: MakerEventsQueryInput!, cursor: String, direction: RankingDirection): MakerEventConnection
|
|
8054
8164
|
|
|
8055
8165
|
"""
|
|
8056
8166
|
Returns real-time or historical prices for a list of tokens, fetched in batches.
|
|
@@ -8320,6 +8430,7 @@ type Quote {
|
|
|
8320
8430
|
poolFee: String
|
|
8321
8431
|
poolFeeBps: Float
|
|
8322
8432
|
quotedAmount: String!
|
|
8433
|
+
outputAmountMin: String
|
|
8323
8434
|
quoteType: QuoteType!
|
|
8324
8435
|
tradeFee: String!
|
|
8325
8436
|
tradeFeeBps: Float!
|
|
@@ -8353,16 +8464,6 @@ enum QuoteType {
|
|
|
8353
8464
|
OUTPUT
|
|
8354
8465
|
}
|
|
8355
8466
|
|
|
8356
|
-
type QuoteV2 {
|
|
8357
|
-
poolFee: String
|
|
8358
|
-
poolFeeBps: Float
|
|
8359
|
-
quotedAmount: String!
|
|
8360
|
-
quoteType: QuoteType!
|
|
8361
|
-
tradeFee: String!
|
|
8362
|
-
tradeFeeBps: Float!
|
|
8363
|
-
exchange: QuoteExchange!
|
|
8364
|
-
}
|
|
8365
|
-
|
|
8366
8467
|
"""The order of ranking."""
|
|
8367
8468
|
enum RankingDirection {
|
|
8368
8469
|
ASC
|
|
@@ -8447,6 +8548,9 @@ type ResolutionBarData {
|
|
|
8447
8548
|
"""15 second resolution."""
|
|
8448
8549
|
r15S: CurrencyBarData
|
|
8449
8550
|
|
|
8551
|
+
"""30 second resolution."""
|
|
8552
|
+
r30S: CurrencyBarData
|
|
8553
|
+
|
|
8450
8554
|
"""1 minute resolution."""
|
|
8451
8555
|
r1: CurrencyBarData
|
|
8452
8556
|
|
|
@@ -8915,6 +9019,17 @@ type Subscription {
|
|
|
8915
9019
|
statsType: TokenPairStatisticsType
|
|
8916
9020
|
): OnBarsUpdatedResponse
|
|
8917
9021
|
|
|
9022
|
+
"""
|
|
9023
|
+
Live-streamed bar chart data to track price changes over time for a token.
|
|
9024
|
+
"""
|
|
9025
|
+
onTokenBarsUpdated(
|
|
9026
|
+
"""The ID of the pair (`address`:`networkId`)."""
|
|
9027
|
+
tokenId: String
|
|
9028
|
+
|
|
9029
|
+
"""docs: hide"""
|
|
9030
|
+
statsType: TokenPairStatisticsType
|
|
9031
|
+
): OnTokenBarsUpdatedResponse
|
|
9032
|
+
|
|
8918
9033
|
"""Live-streamed transactions for a token."""
|
|
8919
9034
|
onEventsCreated(
|
|
8920
9035
|
"""The pair contract address."""
|
|
@@ -9383,6 +9498,18 @@ type TokenFilterResult {
|
|
|
9383
9498
|
"""The percent price change in the past 4 hours. Decimal format."""
|
|
9384
9499
|
change4: String
|
|
9385
9500
|
|
|
9501
|
+
"""The percent volume change in the past hour. Decimal format."""
|
|
9502
|
+
volumeChange1: String
|
|
9503
|
+
|
|
9504
|
+
"""The percent volume change in the past 4 hours. Decimal format."""
|
|
9505
|
+
volumeChange4: String
|
|
9506
|
+
|
|
9507
|
+
"""The percent volume change in the past 12 hours. Decimal format."""
|
|
9508
|
+
volumeChange12: String
|
|
9509
|
+
|
|
9510
|
+
"""The percent volume change in the past 24 hours. Decimal format."""
|
|
9511
|
+
volumeChange24: String
|
|
9512
|
+
|
|
9386
9513
|
"""The exchanges the token is listed on."""
|
|
9387
9514
|
exchanges: [Exchange]
|
|
9388
9515
|
fdv: String @deprecated(reason: "FDV isn't supported - use marketCap instead")
|
|
@@ -9543,6 +9670,18 @@ input TokenFilters {
|
|
|
9543
9670
|
"""The percent price change in the past 4 hours. Decimal format."""
|
|
9544
9671
|
change4: NumberFilter
|
|
9545
9672
|
|
|
9673
|
+
"""The percent volume change in the past hour. Decimal format."""
|
|
9674
|
+
volumeChange1: NumberFilter
|
|
9675
|
+
|
|
9676
|
+
"""The percent volume change in the past 4 hours. Decimal format."""
|
|
9677
|
+
volumeChange4: NumberFilter
|
|
9678
|
+
|
|
9679
|
+
"""The percent volume change in the past 12 hours. Decimal format."""
|
|
9680
|
+
volumeChange12: NumberFilter
|
|
9681
|
+
|
|
9682
|
+
"""The percent volume change in the past 24 hours. Decimal format."""
|
|
9683
|
+
volumeChange24: NumberFilter
|
|
9684
|
+
|
|
9546
9685
|
"""
|
|
9547
9686
|
The list of exchange contract IDs to filter by. Applied in conjunction with `network` filter using an OR condition. When used together, the query returns results that match either the specified exchanges or the specified network.
|
|
9548
9687
|
"""
|
|
@@ -9718,6 +9857,9 @@ type TokenInfo {
|
|
|
9718
9857
|
"""The large token logo URL."""
|
|
9719
9858
|
imageLargeUrl: String
|
|
9720
9859
|
|
|
9860
|
+
"""The token banner URL."""
|
|
9861
|
+
imageBannerUrl: String
|
|
9862
|
+
|
|
9721
9863
|
"""A description of the token."""
|
|
9722
9864
|
description: String
|
|
9723
9865
|
}
|
|
@@ -9883,6 +10025,10 @@ enum TokenRankingAttribute {
|
|
|
9883
10025
|
change4
|
|
9884
10026
|
change12
|
|
9885
10027
|
change24
|
|
10028
|
+
volumeChange1
|
|
10029
|
+
volumeChange4
|
|
10030
|
+
volumeChange12
|
|
10031
|
+
volumeChange24
|
|
9886
10032
|
high1
|
|
9887
10033
|
high4
|
|
9888
10034
|
high12
|
|
@@ -10071,6 +10217,9 @@ type TokenWithMetadata {
|
|
|
10071
10217
|
"""The token logo URL."""
|
|
10072
10218
|
imageLargeUrl: String
|
|
10073
10219
|
|
|
10220
|
+
"""The token banner URL."""
|
|
10221
|
+
imageBannerUrl: String
|
|
10222
|
+
|
|
10074
10223
|
"""The unix timestamp for the creation of the token's first pair."""
|
|
10075
10224
|
createdAt: Int
|
|
10076
10225
|
|
|
@@ -10165,6 +10314,26 @@ type UnconfirmedSwapEventData {
|
|
|
10165
10314
|
"""
|
|
10166
10315
|
amountNonLiquidityToken: String
|
|
10167
10316
|
|
|
10317
|
+
"""
|
|
10318
|
+
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.
|
|
10319
|
+
"""
|
|
10320
|
+
priceBaseToken: String
|
|
10321
|
+
|
|
10322
|
+
"""
|
|
10323
|
+
The total amount of `quoteToken` involved in the swap in the network's base token (`amountNonLiquidityToken` x `priceBaseToken`).
|
|
10324
|
+
"""
|
|
10325
|
+
priceBaseTokenTotal: String
|
|
10326
|
+
|
|
10327
|
+
"""
|
|
10328
|
+
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).
|
|
10329
|
+
"""
|
|
10330
|
+
priceUsd: String
|
|
10331
|
+
|
|
10332
|
+
"""
|
|
10333
|
+
The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`).
|
|
10334
|
+
"""
|
|
10335
|
+
priceUsdTotal: String
|
|
10336
|
+
|
|
10168
10337
|
"""The type of token event, `Swap`."""
|
|
10169
10338
|
type: EventType!
|
|
10170
10339
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
subscription OnEventLabelCreated($id: String) {
|
|
2
|
+
onEventLabelCreated(id: $id) {
|
|
3
|
+
data {
|
|
4
|
+
... on FrontRunLabelData {
|
|
5
|
+
index
|
|
6
|
+
token0DrainedAmount
|
|
7
|
+
token1DrainedAmount
|
|
8
|
+
}
|
|
9
|
+
... on SandwichedLabelData {
|
|
10
|
+
token0DrainedAmountSandwich: token0DrainedAmount
|
|
11
|
+
token1DrainedAmountSandwich: token1DrainedAmount
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
id
|
|
15
|
+
label
|
|
16
|
+
logIndex
|
|
17
|
+
networkId
|
|
18
|
+
timestamp
|
|
19
|
+
transactionHash
|
|
20
|
+
transactionIndex
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateGraphql.d.ts","sourceRoot":"","sources":["../../src/scripts/generateGraphql.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,yCAAyC,CAAC;AAItE,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EACA,UAAU,GACV,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,cAAc,GACd,MAAM,GACN,OAAO,GACP,SAAS,GACT,IAAI,CAAC;IACT,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;CACvB,CAAC;AAEF,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
|
|
@@ -44,17 +44,31 @@ function capitalize(str) {
|
|
|
44
44
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
45
45
|
}
|
|
46
46
|
const getLeafType = (type, allTypes, result, currentName, level = 0) => {
|
|
47
|
-
var _a;
|
|
48
|
-
if (level > 8 || !(type === null || type === void 0 ? void 0 : type.kind) || type.
|
|
47
|
+
var _a, _b;
|
|
48
|
+
if (level > 8 || !(type === null || type === void 0 ? void 0 : type.kind) || type.isDeprecated)
|
|
49
49
|
return result;
|
|
50
50
|
// If it's a scalar, return the name
|
|
51
51
|
if (type.kind === "SCALAR" || type.kind === "ENUM")
|
|
52
52
|
return [...result, currentName];
|
|
53
|
+
if (type.kind === "UNION") {
|
|
54
|
+
// Find all the possible types
|
|
55
|
+
const possibleTypes = (_a = allTypes.find((t) => t.name === type.name)) === null || _a === void 0 ? void 0 : _a.possibleTypes;
|
|
56
|
+
// For each of the possible types, treat it as a sub object with a set of fields
|
|
57
|
+
const possibleTypeLeaves = possibleTypes === null || possibleTypes === void 0 ? void 0 : possibleTypes.map((f) => {
|
|
58
|
+
const resolvedType = allTypes.find((t) => t.name === f.name);
|
|
59
|
+
return (0, exports.getLeafType)(resolvedType, allTypes, [], `... on ${f.name}`, level + 1);
|
|
60
|
+
}).flat();
|
|
61
|
+
if (!(possibleTypeLeaves === null || possibleTypeLeaves === void 0 ? void 0 : possibleTypeLeaves.length)) {
|
|
62
|
+
console.log("No possible types for union", type);
|
|
63
|
+
throw new Error(`No possible types for union type ${currentName}`);
|
|
64
|
+
}
|
|
65
|
+
return [...result, ...[{ [currentName]: possibleTypeLeaves }]];
|
|
66
|
+
}
|
|
53
67
|
// If it's an object resolve it.
|
|
54
68
|
if (type.kind === "OBJECT") {
|
|
55
69
|
// For each of the fields of the subtype, resolve them
|
|
56
70
|
const subType = allTypes.find((t) => t.name === type.name);
|
|
57
|
-
const subTypeLeaves = ((
|
|
71
|
+
const subTypeLeaves = ((_b = subType === null || subType === void 0 ? void 0 : subType.fields) !== null && _b !== void 0 ? _b : [])
|
|
58
72
|
.filter((t) => !t.isDeprecated)
|
|
59
73
|
.map((f) => (0, exports.getLeafType)(f.type, allTypes, [], f.name, level + 1))
|
|
60
74
|
.flat();
|
|
@@ -129,9 +143,16 @@ function run() {
|
|
|
129
143
|
console.log(`Writing mutation: ${field.name}.graphql`);
|
|
130
144
|
const mutationsFolderPath = path_1.default.join(__dirname, "..", "resources", "generated_mutations");
|
|
131
145
|
yield (0, mkdirp_1.mkdirp)(mutationsFolderPath);
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
146
|
+
const overridePath = path_1.default.join(__dirname, "..", "resources", "mutations_override");
|
|
147
|
+
const filename = `${capitalize(field.name)}.graphql`;
|
|
148
|
+
const filePath = path_1.default.join(mutationsFolderPath, filename);
|
|
149
|
+
// If we have an override, use it.
|
|
150
|
+
if (fs_1.default.existsSync(path_1.default.join(overridePath, filename)))
|
|
151
|
+
fs_1.default.copyFileSync(path_1.default.join(overridePath, filename), filePath);
|
|
152
|
+
else
|
|
153
|
+
fs_1.default.writeFileSync(filePath, `mutation ${capitalize(field.name)}${mutationBuilderObject.query
|
|
154
|
+
.toString()
|
|
155
|
+
.slice("mutation ".length)}`);
|
|
135
156
|
}
|
|
136
157
|
for (const field of subscriptionType.fields) {
|
|
137
158
|
const args = field.args;
|
|
@@ -147,10 +168,18 @@ function run() {
|
|
|
147
168
|
console.log(`Writing subscription: ${field.name}.graphql`);
|
|
148
169
|
const subscriptionsFolderPath = path_1.default.join(__dirname, "..", "resources", "generated_subscriptions");
|
|
149
170
|
yield (0, mkdirp_1.mkdirp)(subscriptionsFolderPath);
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
171
|
+
const overridePath = path_1.default.join(__dirname, "..", "resources", "subscriptions_override");
|
|
172
|
+
const filename = `${capitalize(field.name)}.graphql`;
|
|
173
|
+
const subPath = path_1.default.join(subscriptionsFolderPath, filename);
|
|
174
|
+
// If we have an override, use it.
|
|
175
|
+
if (fs_1.default.existsSync(path_1.default.join(overridePath, filename)))
|
|
176
|
+
fs_1.default.copyFileSync(path_1.default.join(overridePath, filename), subPath);
|
|
177
|
+
else
|
|
178
|
+
fs_1.default.writeFileSync(subPath, `subscription ${capitalize(field.name)}${subscriptionBuilderObject.query
|
|
179
|
+
.toString()
|
|
180
|
+
.slice("subscription ".length)}`);
|
|
153
181
|
}
|
|
182
|
+
// Write queries
|
|
154
183
|
for (const field of queryType.fields) {
|
|
155
184
|
if (field.isDeprecated) {
|
|
156
185
|
console.log("Skipping deprecated field", field.name);
|
|
@@ -169,9 +198,16 @@ function run() {
|
|
|
169
198
|
console.log(`Writing query: ${field.name}.graphql`);
|
|
170
199
|
const queriesFolderPath = path_1.default.join(__dirname, "..", "resources", "generated_queries");
|
|
171
200
|
yield (0, mkdirp_1.mkdirp)(queriesFolderPath);
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
201
|
+
const overridePath = path_1.default.join(__dirname, "..", "resources", "queries_override");
|
|
202
|
+
const queryFileName = `${capitalize(field.name)}.graphql`;
|
|
203
|
+
const queryPath = path_1.default.join(queriesFolderPath, queryFileName);
|
|
204
|
+
// If we have an override, use it.
|
|
205
|
+
if (fs_1.default.existsSync(path_1.default.join(overridePath, queryFileName)))
|
|
206
|
+
fs_1.default.copyFileSync(path_1.default.join(overridePath, queryFileName), queryPath);
|
|
207
|
+
else
|
|
208
|
+
fs_1.default.writeFileSync(queryPath, `query ${capitalize(field.name)}${queryBuilderObject.query
|
|
209
|
+
.toString()
|
|
210
|
+
.slice("query ".length)}`);
|
|
175
211
|
}
|
|
176
212
|
});
|
|
177
213
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateGraphql.js","sourceRoot":"","sources":["../../src/scripts/generateGraphql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,uDAAyC;AAEzC,mCAAgC;AAChC,gDAAwB;
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.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { Codex } from "./index";
|
|
|
3
3
|
export declare class Mutation {
|
|
4
4
|
private sdk;
|
|
5
5
|
constructor(sdk: Codex);
|
|
6
|
-
createWebhooks: (vars: CreateWebhooksMutationVariables) => Promise<import("./generated/graphql").CreateWebhooksMutation>;
|
|
7
6
|
deleteApiToken: (vars: DeleteApiTokenMutationVariables) => Promise<import("./generated/graphql").DeleteApiTokenMutation>;
|
|
7
|
+
createWebhooks: (vars: CreateWebhooksMutationVariables) => Promise<import("./generated/graphql").CreateWebhooksMutation>;
|
|
8
8
|
createApiTokens: (vars: CreateApiTokensMutationVariables) => Promise<import("./generated/graphql").CreateApiTokensMutation>;
|
|
9
9
|
deleteWebhooks: (vars: DeleteWebhooksMutationVariables) => Promise<import("./generated/graphql").DeleteWebhooksMutation>;
|
|
10
10
|
}
|
package/dist/sdk/Mutation.js
CHANGED
|
@@ -15,8 +15,8 @@ const graphql_1 = require("./generated/graphql");
|
|
|
15
15
|
class Mutation {
|
|
16
16
|
constructor(sdk) {
|
|
17
17
|
this.sdk = sdk;
|
|
18
|
-
this.createWebhooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.CreateWebhooksDocument, vars); });
|
|
19
18
|
this.deleteApiToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.DeleteApiTokenDocument, vars); });
|
|
19
|
+
this.createWebhooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.CreateWebhooksDocument, vars); });
|
|
20
20
|
this.createApiTokens = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.CreateApiTokensDocument, vars); });
|
|
21
21
|
this.deleteWebhooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.DeleteWebhooksDocument, vars); });
|
|
22
22
|
}
|