@codex-data/sdk 1.0.8 → 1.0.9
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 +174 -5
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +8 -2
- package/dist/resources/graphql.js.map +1 -1
- package/dist/sdk/Query.d.ts +2 -2
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +1 -1
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +3 -1
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +20 -6
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +47 -29
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +13 -11
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +789 -71
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +23 -15
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/generated_queries/Balances.graphql +78 -0
- package/src/resources/generated_queries/GetTokenEvents.graphql +1 -0
- package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +1 -0
- package/src/resources/generated_queries/Holders.graphql +78 -0
- package/src/resources/generated_queries/LiquidityLocks.graphql +7 -1
- package/src/resources/generated_queries/LiquidityMetadataByToken.graphql +19 -0
- package/src/resources/generated_queries/PrimeHolders.graphql +78 -0
- package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +78 -0
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +3 -0
- package/src/resources/generated_subscriptions/OnEventsCreatedByMaker.graphql +92 -0
- package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +78 -0
- package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +1 -0
- package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreatedByMaker.graphql +41 -0
- package/src/resources/graphql.schema.json +1206 -128
- package/src/resources/graphql.ts +192 -5
- package/src/resources/schema.graphql +247 -5
- package/src/sdk/Query.ts +5 -4
- package/src/sdk/Subscribe.ts +36 -6
- package/src/sdk/generated/gql.ts +34 -24
- package/src/sdk/generated/graphql.ts +242 -38
- package/src/resources/generated_queries/ListTopTokens.graphql +0 -55
|
@@ -14,6 +14,15 @@ directive @join__unionMember(graph: join__Graph!, member: String!) repeatable on
|
|
|
14
14
|
|
|
15
15
|
directive @link(url: String, as: String, for: link__Purpose, import: [link__Import]) repeatable on SCHEMA
|
|
16
16
|
|
|
17
|
+
"""Response returned by `onEventsCreatedByMaker`."""
|
|
18
|
+
type AddEventsByMakerOutput {
|
|
19
|
+
"""The address of the maker."""
|
|
20
|
+
makerAddress: String!
|
|
21
|
+
|
|
22
|
+
"""A list of transactions for the maker."""
|
|
23
|
+
events: [Event!]!
|
|
24
|
+
}
|
|
25
|
+
|
|
17
26
|
"""Response returned by `onEventsCreated`."""
|
|
18
27
|
type AddEventsOutput {
|
|
19
28
|
"""The contract address of the pair."""
|
|
@@ -86,6 +95,14 @@ type AddTrackedWalletEventsOutput {
|
|
|
86
95
|
userId: String!
|
|
87
96
|
}
|
|
88
97
|
|
|
98
|
+
type AddUnconfirmedEventsByMakerOutput {
|
|
99
|
+
"""The wallet address of the maker."""
|
|
100
|
+
makerAddress: String!
|
|
101
|
+
|
|
102
|
+
"""A list of transactions for the maker."""
|
|
103
|
+
events: [UnconfirmedEvent!]!
|
|
104
|
+
}
|
|
105
|
+
|
|
89
106
|
"""Response returned by `onUnconfirmedEventsCreated`."""
|
|
90
107
|
type AddUnconfirmedEventsOutput {
|
|
91
108
|
"""The contract address of the pair."""
|
|
@@ -182,8 +199,17 @@ type Balance {
|
|
|
182
199
|
"""
|
|
183
200
|
shiftedBalance: Float!
|
|
184
201
|
|
|
202
|
+
"""The balance held by the wallet in USD."""
|
|
203
|
+
balanceUsd: String
|
|
204
|
+
|
|
205
|
+
"""The token price in USD."""
|
|
206
|
+
tokenPriceUsd: String
|
|
207
|
+
|
|
185
208
|
"""The time that this address first held a token."""
|
|
186
209
|
firstHeldTimestamp: Int
|
|
210
|
+
|
|
211
|
+
"""Metadata for the token."""
|
|
212
|
+
token: EnhancedToken
|
|
187
213
|
}
|
|
188
214
|
|
|
189
215
|
input BalancesInput {
|
|
@@ -211,6 +237,9 @@ input BalancesInput {
|
|
|
211
237
|
"""A cursor for use in pagination."""
|
|
212
238
|
cursor: String
|
|
213
239
|
|
|
240
|
+
"""Whether to remove scam tokens from the response."""
|
|
241
|
+
removeScams: Boolean
|
|
242
|
+
|
|
214
243
|
"""The ID of the wallet (`walletAddress:networkId`)."""
|
|
215
244
|
walletId: String @deprecated(reason: "Use walletAddress and networkId instead")
|
|
216
245
|
|
|
@@ -541,6 +570,62 @@ input CreateApiTokensInput {
|
|
|
541
570
|
expiresIn: Int
|
|
542
571
|
}
|
|
543
572
|
|
|
573
|
+
"""Input for creating a market cap webhook."""
|
|
574
|
+
input CreateMarketCapWebhookArgs {
|
|
575
|
+
"""The name of the webhook (max 128 characters)."""
|
|
576
|
+
name: String!
|
|
577
|
+
|
|
578
|
+
"""The url to which the webhook message should be sent."""
|
|
579
|
+
callbackUrl: String!
|
|
580
|
+
|
|
581
|
+
"""
|
|
582
|
+
A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security.
|
|
583
|
+
"""
|
|
584
|
+
securityToken: String!
|
|
585
|
+
|
|
586
|
+
"""The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
|
|
587
|
+
alertRecurrence: AlertRecurrence!
|
|
588
|
+
|
|
589
|
+
"""
|
|
590
|
+
A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook.
|
|
591
|
+
"""
|
|
592
|
+
groupId: String
|
|
593
|
+
|
|
594
|
+
"""
|
|
595
|
+
The conditions which must be met in order for the webhook to send a message.
|
|
596
|
+
"""
|
|
597
|
+
conditions: MarketCapEventWebhookConditionInput!
|
|
598
|
+
|
|
599
|
+
"""The settings for retrying failed webhook messages."""
|
|
600
|
+
retrySettings: RetrySettingsInput
|
|
601
|
+
|
|
602
|
+
"""
|
|
603
|
+
An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
|
|
604
|
+
"""
|
|
605
|
+
bucketId: String
|
|
606
|
+
|
|
607
|
+
"""
|
|
608
|
+
An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
|
|
609
|
+
"""
|
|
610
|
+
bucketSortkey: String
|
|
611
|
+
|
|
612
|
+
"""
|
|
613
|
+
The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
|
|
614
|
+
"""
|
|
615
|
+
publishingType: PublishingType
|
|
616
|
+
|
|
617
|
+
"""
|
|
618
|
+
If enabled, new webhooks won't be created if a webhook with the same parameters already exists. If callbackUrl, conditions, publishingType, and alertRecurrence all match, then we return the existing webhook.
|
|
619
|
+
"""
|
|
620
|
+
deduplicate: Boolean
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
"""Input for creating market cap webhooks."""
|
|
624
|
+
input CreateMarketCapWebhooksInput {
|
|
625
|
+
"""A list of market cap webhooks to create."""
|
|
626
|
+
webhooks: [CreateMarketCapWebhookArgs!]!
|
|
627
|
+
}
|
|
628
|
+
|
|
544
629
|
"""Input for creating an NFT event webhook."""
|
|
545
630
|
input CreateNftEventWebhookArgs {
|
|
546
631
|
"""The name of the webhook (max 128 characters)."""
|
|
@@ -778,6 +863,9 @@ input CreateWebhooksInput {
|
|
|
778
863
|
|
|
779
864
|
"""Input for creating raw transaction webhooks."""
|
|
780
865
|
rawTransactionWebhooksInput: CreateRawTransactionWebhooksInput
|
|
866
|
+
|
|
867
|
+
"""Input for creating market cap webhooks."""
|
|
868
|
+
marketCapWebhooksInput: CreateMarketCapWebhooksInput
|
|
781
869
|
}
|
|
782
870
|
|
|
783
871
|
"""Result returned by `createWebhooks`."""
|
|
@@ -793,6 +881,9 @@ type CreateWebhooksOutput {
|
|
|
793
881
|
|
|
794
882
|
"""The list of raw transaction webhooks that were created."""
|
|
795
883
|
rawTransactionWebhooks: [Webhook]!
|
|
884
|
+
|
|
885
|
+
"""The list of market cap event webhooks that were created."""
|
|
886
|
+
marketCapWebhooks: [Webhook]!
|
|
796
887
|
}
|
|
797
888
|
|
|
798
889
|
enum CreationContext {
|
|
@@ -1371,6 +1462,9 @@ type Event {
|
|
|
1371
1462
|
|
|
1372
1463
|
"""The age of the wallet in seconds."""
|
|
1373
1464
|
walletAge: Int
|
|
1465
|
+
|
|
1466
|
+
"""Labels attributed to the wallet."""
|
|
1467
|
+
walletLabels: [String!]
|
|
1374
1468
|
}
|
|
1375
1469
|
|
|
1376
1470
|
"""Response returned by `getTokenEvents`."""
|
|
@@ -1778,7 +1872,10 @@ input FilterTokenWalletsInput {
|
|
|
1778
1872
|
tokenId: String
|
|
1779
1873
|
|
|
1780
1874
|
"""The wallet address to filter wallets for"""
|
|
1781
|
-
walletAddress: String
|
|
1875
|
+
walletAddress: String @deprecated(reason: "Use wallets instead")
|
|
1876
|
+
|
|
1877
|
+
"""A list of wallet addresses to filter wallets for"""
|
|
1878
|
+
wallets: [String]
|
|
1782
1879
|
|
|
1783
1880
|
"""The network ID to filter wallets for"""
|
|
1784
1881
|
networkId: Int
|
|
@@ -2113,6 +2210,16 @@ type HoldersUpdate {
|
|
|
2113
2210
|
balances: [Balance!]!
|
|
2114
2211
|
}
|
|
2115
2212
|
|
|
2213
|
+
input IndexerStateInput {
|
|
2214
|
+
"""The network ID to check the state of."""
|
|
2215
|
+
networkId: Int!
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
enum IndexerStatus {
|
|
2219
|
+
Behind
|
|
2220
|
+
Normal
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2116
2223
|
"""Bar chart data."""
|
|
2117
2224
|
type IndividualBarData {
|
|
2118
2225
|
"""The opening price."""
|
|
@@ -2586,6 +2693,23 @@ type LiquidityLock {
|
|
|
2586
2693
|
liquidityNftData: LiquidityNftData
|
|
2587
2694
|
}
|
|
2588
2695
|
|
|
2696
|
+
"""A breakdown of how much and where liquidity is locked."""
|
|
2697
|
+
type LiquidityLockBreakdownForToken {
|
|
2698
|
+
"""The protocol with which the liquidity is locked."""
|
|
2699
|
+
lockProtocol: LiquidityLockProtocol!
|
|
2700
|
+
|
|
2701
|
+
"""The amount of liquidity locked in USD."""
|
|
2702
|
+
amountLockedUsd: String!
|
|
2703
|
+
|
|
2704
|
+
"""The amount of tokens locked in the protocol."""
|
|
2705
|
+
amountLockedTokens: String!
|
|
2706
|
+
|
|
2707
|
+
"""
|
|
2708
|
+
The amount of tokens locked in the protocol shifted by number of decimals the token has.
|
|
2709
|
+
"""
|
|
2710
|
+
amountLockedTokensShifted: String!
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2589
2713
|
type LiquidityLockConnection {
|
|
2590
2714
|
"""A list of liquidity locks."""
|
|
2591
2715
|
items: [LiquidityLock!]!
|
|
@@ -2612,6 +2736,45 @@ type LiquidityMetadata {
|
|
|
2612
2736
|
liquidity: LiquidityData!
|
|
2613
2737
|
}
|
|
2614
2738
|
|
|
2739
|
+
"""
|
|
2740
|
+
Metadata about a token's liquidity. Includes locked liquidity data for up to 100 pairs that the token is in.
|
|
2741
|
+
"""
|
|
2742
|
+
type LiquidityMetadataByToken {
|
|
2743
|
+
"""The address of the token."""
|
|
2744
|
+
tokenAddress: String!
|
|
2745
|
+
|
|
2746
|
+
"""The network ID the token is deployed on."""
|
|
2747
|
+
networkId: Int!
|
|
2748
|
+
|
|
2749
|
+
"""The total liquidity in USD."""
|
|
2750
|
+
totalLiquidityUsd: String!
|
|
2751
|
+
|
|
2752
|
+
"""The locked liquidity in USD."""
|
|
2753
|
+
lockedLiquidityUsd: String!
|
|
2754
|
+
|
|
2755
|
+
"""The total amount of tokens in pairs."""
|
|
2756
|
+
totalTokenLiquidity: String!
|
|
2757
|
+
|
|
2758
|
+
"""
|
|
2759
|
+
The total amount of tokens in pairs shifted by number of decimals the token has.
|
|
2760
|
+
"""
|
|
2761
|
+
totalTokenLiquidityShifted: String!
|
|
2762
|
+
|
|
2763
|
+
"""The locked amount of tokens in pairs."""
|
|
2764
|
+
lockedTokenLiquidity: String!
|
|
2765
|
+
|
|
2766
|
+
"""
|
|
2767
|
+
The locked amount of tokens in pairs shifted by number of decimals the token has.
|
|
2768
|
+
"""
|
|
2769
|
+
lockedTokenLiquidityShifted: String!
|
|
2770
|
+
|
|
2771
|
+
"""The percentage of liquidity that is locked."""
|
|
2772
|
+
lockedLiquidityPercentage: Float!
|
|
2773
|
+
|
|
2774
|
+
"""A breakdown of how much and where liquidity is locked."""
|
|
2775
|
+
lockBreakdown: [LiquidityLockBreakdownForToken]!
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2615
2778
|
"""Liquidity NFT position data"""
|
|
2616
2779
|
type LiquidityNftData {
|
|
2617
2780
|
"""The tokenId of the liquidity position nft."""
|
|
@@ -2718,6 +2881,46 @@ input MakerEventsQueryInput {
|
|
|
2718
2881
|
tokenAddress: String
|
|
2719
2882
|
}
|
|
2720
2883
|
|
|
2884
|
+
"""Webhook conditions for a market cap event."""
|
|
2885
|
+
type MarketCapEventWebhookCondition {
|
|
2886
|
+
"""The token contract address the webhook is listening for."""
|
|
2887
|
+
tokenAddress: StringEqualsCondition!
|
|
2888
|
+
|
|
2889
|
+
"""The network ID the webhook is listening on."""
|
|
2890
|
+
networkId: IntEqualsCondition!
|
|
2891
|
+
|
|
2892
|
+
"""
|
|
2893
|
+
The market cap condition that must be met in order for the webhook to send.
|
|
2894
|
+
"""
|
|
2895
|
+
fdvMarketCapUsd: ComparisonOperator
|
|
2896
|
+
|
|
2897
|
+
"""
|
|
2898
|
+
The circulating market cap condition that must be met in order for the webhook to send.
|
|
2899
|
+
"""
|
|
2900
|
+
circulatingMarketCapUsd: ComparisonOperator
|
|
2901
|
+
|
|
2902
|
+
"""The pair contract address the webhook is listening for."""
|
|
2903
|
+
pairAddress: StringEqualsCondition
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
"""Input conditions for a market cap event webhook."""
|
|
2907
|
+
input MarketCapEventWebhookConditionInput {
|
|
2908
|
+
"""The contract address of the token to listen for."""
|
|
2909
|
+
tokenAddress: StringEqualsConditionInput!
|
|
2910
|
+
|
|
2911
|
+
"""The network ID to listen on."""
|
|
2912
|
+
networkId: IntEqualsConditionInput!
|
|
2913
|
+
|
|
2914
|
+
"""The price conditions to listen for."""
|
|
2915
|
+
fdvMarketCapUsd: ComparisonOperatorInput
|
|
2916
|
+
|
|
2917
|
+
"""The circulating market cap conditions to listen for."""
|
|
2918
|
+
circulatingMarketCapUsd: ComparisonOperatorInput
|
|
2919
|
+
|
|
2920
|
+
"""The contract address of the pair to listen for."""
|
|
2921
|
+
pairAddress: StringEqualsConditionInput
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2721
2924
|
"""The status for a network supported on Defined."""
|
|
2722
2925
|
type MetadataResponse {
|
|
2723
2926
|
"""The last processed block on the network."""
|
|
@@ -6565,6 +6768,12 @@ input OneOfNumberConditionInput {
|
|
|
6565
6768
|
oneOf: [Int!]!
|
|
6566
6769
|
}
|
|
6567
6770
|
|
|
6771
|
+
"""Input for `onEventsCreatedByMaker`."""
|
|
6772
|
+
input OnEventsCreatedByMakerInput {
|
|
6773
|
+
"""The wallet address of the maker."""
|
|
6774
|
+
makerAddress: String!
|
|
6775
|
+
}
|
|
6776
|
+
|
|
6568
6777
|
"""Input for `onLaunchpadTokenEvent`."""
|
|
6569
6778
|
input OnLaunchpadTokenEventInput {
|
|
6570
6779
|
"""The protocol of the token."""
|
|
@@ -6627,7 +6836,10 @@ type OnTokenBarsUpdatedResponse {
|
|
|
6627
6836
|
}
|
|
6628
6837
|
|
|
6629
6838
|
input OnTokenEventsCreatedInput {
|
|
6839
|
+
"""The token address to filter by."""
|
|
6630
6840
|
tokenAddress: String
|
|
6841
|
+
|
|
6842
|
+
"""The network ID to filter by."""
|
|
6631
6843
|
networkId: Int!
|
|
6632
6844
|
}
|
|
6633
6845
|
|
|
@@ -6661,6 +6873,12 @@ type OnUnconfirmedBarsUpdated {
|
|
|
6661
6873
|
quoteTokenAddress: String!
|
|
6662
6874
|
}
|
|
6663
6875
|
|
|
6876
|
+
"""Input for `onUnconfirmedEventsCreatedByMaker`."""
|
|
6877
|
+
input OnUnconfirmedEventsCreatedByMakerInput {
|
|
6878
|
+
"""The wallet address of the maker."""
|
|
6879
|
+
makerAddress: String!
|
|
6880
|
+
}
|
|
6881
|
+
|
|
6664
6882
|
enum OrderState {
|
|
6665
6883
|
CREATED
|
|
6666
6884
|
PENDING
|
|
@@ -9192,7 +9410,7 @@ type Query {
|
|
|
9192
9410
|
The time frame for trending results. Can be `1`, `5`, `15`, `30`, `60`, `240`, `720`, or `1D`.
|
|
9193
9411
|
"""
|
|
9194
9412
|
resolution: String
|
|
9195
|
-
): [TokenWithMetadata!]
|
|
9413
|
+
): [TokenWithMetadata!] @deprecated(reason: "This query is no longer supported and will not return up to date data. Use `filterTokens` instead.")
|
|
9196
9414
|
|
|
9197
9415
|
"""
|
|
9198
9416
|
Returns charting metadata for a given pair. Used for implementing a Trading View datafeed.
|
|
@@ -9331,7 +9549,7 @@ type Query {
|
|
|
9331
9549
|
): TokenSearchResponse @deprecated(reason: "This query is no longer supported and will not return up to date data. Use `filterTokens` instead.")
|
|
9332
9550
|
|
|
9333
9551
|
"""
|
|
9334
|
-
Returns the percentage of a token
|
|
9552
|
+
Returns the percentage of a token's total supply held collectively by its top 10 holders.
|
|
9335
9553
|
"""
|
|
9336
9554
|
top10HoldersPercent(tokenId: String!): Float
|
|
9337
9555
|
|
|
@@ -9481,7 +9699,10 @@ type Query {
|
|
|
9481
9699
|
"""Returns liquidity locks for a given pair."""
|
|
9482
9700
|
liquidityLocks(
|
|
9483
9701
|
"""The address of the pair."""
|
|
9484
|
-
pairAddress: String
|
|
9702
|
+
pairAddress: String
|
|
9703
|
+
|
|
9704
|
+
"""The address of the token."""
|
|
9705
|
+
tokenAddress: String
|
|
9485
9706
|
|
|
9486
9707
|
"""The network id of the pair."""
|
|
9487
9708
|
networkId: Int!
|
|
@@ -9501,6 +9722,17 @@ type Query {
|
|
|
9501
9722
|
networkId: Int!
|
|
9502
9723
|
): LiquidityMetadata
|
|
9503
9724
|
|
|
9725
|
+
"""
|
|
9726
|
+
Returns liquidity metadata for a given token. Includes liquidity lock data for up to 100 pairs that the token is in.
|
|
9727
|
+
"""
|
|
9728
|
+
liquidityMetadataByToken(
|
|
9729
|
+
"""The address of the token."""
|
|
9730
|
+
tokenAddress: String!
|
|
9731
|
+
|
|
9732
|
+
"""The network id of the token."""
|
|
9733
|
+
networkId: Int!
|
|
9734
|
+
): LiquidityMetadataByToken!
|
|
9735
|
+
|
|
9504
9736
|
"""Returns a list of top traders for a given token."""
|
|
9505
9737
|
tokenTopTraders(input: TokenTopTradersInput!): TokenTopTradersConnection!
|
|
9506
9738
|
|
|
@@ -10279,8 +10511,14 @@ type Subscription {
|
|
|
10279
10511
|
|
|
10280
10512
|
"""The networkId to use when getting all events per network"""
|
|
10281
10513
|
networkId: Int
|
|
10514
|
+
|
|
10515
|
+
"""docs: hide"""
|
|
10516
|
+
maker: String
|
|
10282
10517
|
): AddEventsOutput
|
|
10283
10518
|
|
|
10519
|
+
"""Live-streamed transactions for a maker."""
|
|
10520
|
+
onEventsCreatedByMaker(input: OnEventsCreatedByMakerInput!): AddEventsByMakerOutput
|
|
10521
|
+
|
|
10284
10522
|
"""Live-streamed unconfirmed transactions for a token. (Solana only)"""
|
|
10285
10523
|
onUnconfirmedEventsCreated(
|
|
10286
10524
|
"""The pair contract address."""
|
|
@@ -10293,6 +10531,9 @@ type Subscription {
|
|
|
10293
10531
|
quoteToken: QuoteToken
|
|
10294
10532
|
): AddUnconfirmedEventsOutput
|
|
10295
10533
|
|
|
10534
|
+
"""Live-streamed unconfirmed transactions for a maker. (Solana only)"""
|
|
10535
|
+
onUnconfirmedEventsCreatedByMaker(input: OnUnconfirmedEventsCreatedByMakerInput!): AddUnconfirmedEventsByMakerOutput
|
|
10536
|
+
|
|
10296
10537
|
"""Live-streamed price updates for a token."""
|
|
10297
10538
|
onPriceUpdated(
|
|
10298
10539
|
"""The token contract address."""
|
|
@@ -13332,7 +13573,7 @@ type Webhook {
|
|
|
13332
13573
|
}
|
|
13333
13574
|
|
|
13334
13575
|
"""Webhook conditions that must be met for each webhook type."""
|
|
13335
|
-
union WebhookCondition = PriceEventWebhookCondition | TokenPairEventWebhookCondition | NftEventWebhookCondition | RawTransactionWebhookCondition
|
|
13576
|
+
union WebhookCondition = PriceEventWebhookCondition | MarketCapEventWebhookCondition | TokenPairEventWebhookCondition | NftEventWebhookCondition | RawTransactionWebhookCondition
|
|
13336
13577
|
|
|
13337
13578
|
"""NFT marketplace names."""
|
|
13338
13579
|
enum WebhookNftEventFillSource {
|
|
@@ -13366,6 +13607,7 @@ enum WebhookType {
|
|
|
13366
13607
|
NFT_EVENT
|
|
13367
13608
|
TOKEN_PAIR_EVENT
|
|
13368
13609
|
RAW_TRANSACTION
|
|
13610
|
+
MARKET_CAP_EVENT
|
|
13369
13611
|
}
|
|
13370
13612
|
|
|
13371
13613
|
"""Price stats for a pair over a time frame."""
|
package/src/sdk/Query.ts
CHANGED
|
@@ -94,14 +94,14 @@ import {
|
|
|
94
94
|
HoldersQueryVariables,
|
|
95
95
|
LiquidityLocksDocument,
|
|
96
96
|
LiquidityLocksQueryVariables,
|
|
97
|
+
LiquidityMetadataByTokenDocument,
|
|
98
|
+
LiquidityMetadataByTokenQueryVariables,
|
|
97
99
|
LiquidityMetadataDocument,
|
|
98
100
|
LiquidityMetadataQueryVariables,
|
|
99
101
|
ListPairsForTokenDocument,
|
|
100
102
|
ListPairsForTokenQueryVariables,
|
|
101
103
|
ListPairsWithMetadataForTokenDocument,
|
|
102
104
|
ListPairsWithMetadataForTokenQueryVariables,
|
|
103
|
-
ListTopTokensDocument,
|
|
104
|
-
ListTopTokensQueryVariables,
|
|
105
105
|
NftHoldersDocument,
|
|
106
106
|
NftHoldersQueryVariables,
|
|
107
107
|
PairMetadataDocument,
|
|
@@ -169,8 +169,6 @@ export class Query {
|
|
|
169
169
|
) => this.sdk.query(ListPairsWithMetadataForTokenDocument, vars);
|
|
170
170
|
searchNfts = async (vars: SearchNftsQueryVariables) =>
|
|
171
171
|
this.sdk.query(SearchNftsDocument, vars);
|
|
172
|
-
listTopTokens = async (vars: ListTopTokensQueryVariables) =>
|
|
173
|
-
this.sdk.query(ListTopTokensDocument, vars);
|
|
174
172
|
liquidityMetadata = async (vars: LiquidityMetadataQueryVariables) =>
|
|
175
173
|
this.sdk.query(LiquidityMetadataDocument, vars);
|
|
176
174
|
apiToken = async (vars: ApiTokenQueryVariables) =>
|
|
@@ -196,6 +194,9 @@ export class Query {
|
|
|
196
194
|
this.sdk.query(FilterExchangesDocument, vars);
|
|
197
195
|
walletNftCollections = async (vars: WalletNftCollectionsQueryVariables) =>
|
|
198
196
|
this.sdk.query(WalletNftCollectionsDocument, vars);
|
|
197
|
+
liquidityMetadataByToken = async (
|
|
198
|
+
vars: LiquidityMetadataByTokenQueryVariables,
|
|
199
|
+
) => this.sdk.query(LiquidityMetadataByTokenDocument, vars);
|
|
199
200
|
getNetworkStatus = async (vars: GetNetworkStatusQueryVariables) =>
|
|
200
201
|
this.sdk.query(GetNetworkStatusDocument, vars);
|
|
201
202
|
getTokenEvents = async (vars: GetTokenEventsQueryVariables) =>
|
package/src/sdk/Subscribe.ts
CHANGED
|
@@ -10,6 +10,8 @@ import {
|
|
|
10
10
|
OnDetailedStatsUpdatedSubscriptionVariables,
|
|
11
11
|
OnEventLabelCreatedSubscription,
|
|
12
12
|
OnEventLabelCreatedSubscriptionVariables,
|
|
13
|
+
OnEventsCreatedByMakerSubscription,
|
|
14
|
+
OnEventsCreatedByMakerSubscriptionVariables,
|
|
13
15
|
OnEventsCreatedSubscription,
|
|
14
16
|
OnEventsCreatedSubscriptionVariables,
|
|
15
17
|
OnHoldersUpdatedSubscription,
|
|
@@ -44,6 +46,8 @@ import {
|
|
|
44
46
|
OnTokenLifecycleEventsCreatedSubscriptionVariables,
|
|
45
47
|
OnUnconfirmedBarsUpdatedSubscription,
|
|
46
48
|
OnUnconfirmedBarsUpdatedSubscriptionVariables,
|
|
49
|
+
OnUnconfirmedEventsCreatedByMakerSubscription,
|
|
50
|
+
OnUnconfirmedEventsCreatedByMakerSubscriptionVariables,
|
|
47
51
|
OnUnconfirmedEventsCreatedSubscription,
|
|
48
52
|
OnUnconfirmedEventsCreatedSubscriptionVariables,
|
|
49
53
|
} from "./generated/graphql";
|
|
@@ -73,6 +77,19 @@ export class Subscribe {
|
|
|
73
77
|
onNftEventsCreated (address: $address, networkId: $networkId) {
|
|
74
78
|
address, events { aggregatorAddress, blockNumber, contractAddress, eventType, exchangeAddress, fillSource, id, individualPriceNetworkBaseToken, individualPriceUsd, individualTradePrice, logIndex, maker, networkId, numberOfTokens, orderDirection, paymentTokenAddress, poolAddress, priceError, sortKey, taker, timestamp, tokenId, totalPriceNetworkBaseToken, totalPriceUsd, totalTradePrice, tradeOffer { ... on NftEventNftTradeItem { address, amount, recipient, tokenId, type }, ... on NftEventTokenTradeItem { address, amount, individualPriceNetworkBaseToken, individualPriceUsd, individualTradePrice, isPrice, priceError, recipient, totalPriceNetworkBaseToken, totalPriceUsd, totalTradePrice, type } }, tradeReceived { ... on NftEventNftTradeItem { address, amount, recipient, tokenId, type }, ... on NftEventTokenTradeItem { address, amount, individualPriceNetworkBaseToken, individualPriceUsd, individualTradePrice, isPrice, priceError, recipient, totalPriceNetworkBaseToken, totalPriceUsd, totalTradePrice, type } }, transactionHash, transactionIndex }, id, networkId
|
|
75
79
|
}
|
|
80
|
+
}`,
|
|
81
|
+
vars,
|
|
82
|
+
sink,
|
|
83
|
+
);
|
|
84
|
+
onUnconfirmedEventsCreatedByMaker = async (
|
|
85
|
+
vars: OnUnconfirmedEventsCreatedByMakerSubscriptionVariables,
|
|
86
|
+
sink: Sink<ExecutionResult<OnUnconfirmedEventsCreatedByMakerSubscription>>,
|
|
87
|
+
) =>
|
|
88
|
+
this.sdk.subscribe(
|
|
89
|
+
`subscription OnUnconfirmedEventsCreatedByMaker($input: OnUnconfirmedEventsCreatedByMakerInput!) {
|
|
90
|
+
onUnconfirmedEventsCreatedByMaker (input: $input) {
|
|
91
|
+
events { address, blockHash, blockNumber, data { ... on UnconfirmedLiquidityChangeEventData { amount0, amount0Shifted, amount1, amount1Shifted, type }, ... on UnconfirmedSwapEventData { amountBaseToken, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, type } }, eventDisplayType, eventType, id, logIndex, maker, networkId, quoteToken, supplementalIndex, timestamp, transactionHash, transactionIndex }, makerAddress
|
|
92
|
+
}
|
|
76
93
|
}`,
|
|
77
94
|
vars,
|
|
78
95
|
sink,
|
|
@@ -230,9 +247,22 @@ export class Subscribe {
|
|
|
230
247
|
sink: Sink<ExecutionResult<OnEventsCreatedSubscription>>,
|
|
231
248
|
) =>
|
|
232
249
|
this.sdk.subscribe(
|
|
233
|
-
`subscription OnEventsCreated($address: String, $id: String, $networkId: Int, $quoteToken: QuoteToken) {
|
|
234
|
-
onEventsCreated (address: $address, id: $id, networkId: $networkId, quoteToken: $quoteToken) {
|
|
235
|
-
address, events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge }, id, networkId, quoteToken
|
|
250
|
+
`subscription OnEventsCreated($address: String, $id: String, $maker: String, $networkId: Int, $quoteToken: QuoteToken) {
|
|
251
|
+
onEventsCreated (address: $address, id: $id, maker: $maker, networkId: $networkId, quoteToken: $quoteToken) {
|
|
252
|
+
address, events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, id, networkId, quoteToken
|
|
253
|
+
}
|
|
254
|
+
}`,
|
|
255
|
+
vars,
|
|
256
|
+
sink,
|
|
257
|
+
);
|
|
258
|
+
onEventsCreatedByMaker = async (
|
|
259
|
+
vars: OnEventsCreatedByMakerSubscriptionVariables,
|
|
260
|
+
sink: Sink<ExecutionResult<OnEventsCreatedByMakerSubscription>>,
|
|
261
|
+
) =>
|
|
262
|
+
this.sdk.subscribe(
|
|
263
|
+
`subscription OnEventsCreatedByMaker($input: OnEventsCreatedByMakerInput!) {
|
|
264
|
+
onEventsCreatedByMaker (input: $input) {
|
|
265
|
+
events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, makerAddress
|
|
236
266
|
}
|
|
237
267
|
}`,
|
|
238
268
|
vars,
|
|
@@ -397,7 +427,7 @@ export class Subscribe {
|
|
|
397
427
|
this.sdk.subscribe(
|
|
398
428
|
`subscription OnHoldersUpdated($tokenId: String!) {
|
|
399
429
|
onHoldersUpdated (tokenId: $tokenId) {
|
|
400
|
-
balances { address, balance, firstHeldTimestamp, networkId, shiftedBalance, tokenAddress, tokenId, walletId }, holders, networkId, tokenAddress, tokenId
|
|
430
|
+
balances { address, balance, balanceUsd, firstHeldTimestamp, networkId, shiftedBalance, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, tokenAddress, tokenId, tokenPriceUsd, walletId }, holders, networkId, tokenAddress, tokenId
|
|
401
431
|
}
|
|
402
432
|
}`,
|
|
403
433
|
vars,
|
|
@@ -423,7 +453,7 @@ export class Subscribe {
|
|
|
423
453
|
this.sdk.subscribe(
|
|
424
454
|
`subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {
|
|
425
455
|
onTokenEventsCreated (input: $input) {
|
|
426
|
-
events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge }, id
|
|
456
|
+
events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, id
|
|
427
457
|
}
|
|
428
458
|
}`,
|
|
429
459
|
vars,
|
|
@@ -436,7 +466,7 @@ export class Subscribe {
|
|
|
436
466
|
this.sdk.subscribe(
|
|
437
467
|
`subscription OnBalanceUpdated($walletAddress: String!) {
|
|
438
468
|
onBalanceUpdated (walletAddress: $walletAddress) {
|
|
439
|
-
address, balance, firstHeldTimestamp, networkId, shiftedBalance, tokenAddress, tokenId, walletId
|
|
469
|
+
address, balance, balanceUsd, firstHeldTimestamp, networkId, shiftedBalance, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, tokenAddress, tokenId, tokenPriceUsd, walletId
|
|
440
470
|
}
|
|
441
471
|
}`,
|
|
442
472
|
vars,
|