@codex-data/sdk 1.0.6 → 1.0.7
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_queries/FilterPairs.graphql +20 -0
- package/dist/resources/generated_queries/FilterTokens.graphql +20 -0
- package/dist/resources/generated_queries/GetBars.graphql +4 -1
- package/dist/resources/generated_queries/GetCommunityNotes.graphql +2 -0
- package/dist/resources/generated_queries/GetDetailedPairStats.graphql +4 -0
- package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +4 -0
- package/dist/resources/generated_queries/GetTokenEvents.graphql +1 -0
- package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +1 -0
- package/dist/resources/generated_queries/ListPairsForToken.graphql +4 -0
- package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +8 -0
- package/dist/resources/generated_queries/PairMetadata.graphql +4 -0
- package/dist/resources/generated_queries/Token.graphql +2 -0
- package/dist/resources/generated_queries/Tokens.graphql +2 -0
- package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +1 -0
- package/dist/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +2 -0
- package/dist/resources/generated_subscriptions/OnLaunchpadTokenEventBatch.graphql +91 -0
- package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +4 -0
- package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +1 -0
- package/dist/resources/graphql.d.ts +167 -8
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +33 -0
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +918 -14
- package/dist/resources/graphql.ts +167 -8
- package/dist/resources/schema.graphql +250 -8
- package/dist/resources/subscriptions_override/OnLaunchpadTokenEventBatch.graphql +91 -0
- package/dist/scripts/generateGraphql.js +3 -4
- package/dist/scripts/generateGraphql.js.map +1 -1
- package/dist/sdk/Mutation.d.ts +1 -1
- package/dist/sdk/Mutation.d.ts.map +1 -1
- package/dist/sdk/Mutation.js +1 -1
- package/dist/sdk/Mutation.js.map +1 -1
- package/dist/sdk/Query.d.ts +49 -49
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +49 -49
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +17 -16
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +171 -77
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +41 -34
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +18 -17
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +355 -9
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +52 -18
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/generated_queries/FilterPairs.graphql +20 -0
- package/src/resources/generated_queries/FilterTokens.graphql +20 -0
- package/src/resources/generated_queries/GetBars.graphql +4 -1
- package/src/resources/generated_queries/GetCommunityNotes.graphql +2 -0
- package/src/resources/generated_queries/GetDetailedPairStats.graphql +4 -0
- package/src/resources/generated_queries/GetDetailedPairsStats.graphql +4 -0
- package/src/resources/generated_queries/GetTokenEvents.graphql +1 -0
- package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +1 -0
- package/src/resources/generated_queries/ListPairsForToken.graphql +4 -0
- package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +8 -0
- package/src/resources/generated_queries/PairMetadata.graphql +4 -0
- package/src/resources/generated_queries/Token.graphql +2 -0
- package/src/resources/generated_queries/Tokens.graphql +2 -0
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +1 -0
- package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +2 -0
- package/src/resources/generated_subscriptions/OnLaunchpadTokenEventBatch.graphql +91 -0
- package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +4 -0
- package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +1 -0
- package/src/resources/graphql.schema.json +918 -14
- package/src/resources/graphql.ts +167 -8
- package/src/resources/schema.graphql +250 -8
- package/src/resources/subscriptions_override/OnLaunchpadTokenEventBatch.graphql +91 -0
- package/src/scripts/generateGraphql.ts +2 -4
- package/src/sdk/Mutation.ts +2 -2
- package/src/sdk/Query.ts +103 -103
- package/src/sdk/Subscribe.ts +225 -123
- package/src/sdk/generated/gql.ts +39 -34
- package/src/sdk/generated/graphql.ts +207 -42
|
@@ -188,7 +188,7 @@ type Balance {
|
|
|
188
188
|
|
|
189
189
|
input BalancesInput {
|
|
190
190
|
"""The ID of the wallet (`walletAddress:networkId`)."""
|
|
191
|
-
walletId: String
|
|
191
|
+
walletId: String @deprecated(reason: "Use walletAddress and networkId instead")
|
|
192
192
|
|
|
193
193
|
"""The wallet address to filter by."""
|
|
194
194
|
walletAddress: String
|
|
@@ -196,8 +196,16 @@ input BalancesInput {
|
|
|
196
196
|
"""A cursor for use in pagination."""
|
|
197
197
|
cursor: String
|
|
198
198
|
|
|
199
|
-
"""
|
|
200
|
-
|
|
199
|
+
"""The network IDs to filter by."""
|
|
200
|
+
networks: [Int!]
|
|
201
|
+
|
|
202
|
+
"""
|
|
203
|
+
The token IDs (`address:networkId`) or addresses to request the balance for. Only applied when using `walletAddress` and `networks` (not `walletId`).
|
|
204
|
+
"""
|
|
205
|
+
tokens: [String!]
|
|
206
|
+
|
|
207
|
+
"""Optional token specifically request the balance for."""
|
|
208
|
+
filterToken: String @deprecated(reason: "Use tokens list instead")
|
|
201
209
|
|
|
202
210
|
"""
|
|
203
211
|
If set to true, native tokens in the response, they will have the id: native:<networkId>
|
|
@@ -231,7 +239,7 @@ type BarsResponse {
|
|
|
231
239
|
c: [Float]!
|
|
232
240
|
|
|
233
241
|
"""The volume."""
|
|
234
|
-
v: [Int]!
|
|
242
|
+
v: [Int]! @deprecated(reason: "Use volume field instead")
|
|
235
243
|
|
|
236
244
|
"""The timestamp for the bar."""
|
|
237
245
|
t: [Int!]!
|
|
@@ -1305,6 +1313,9 @@ type Event {
|
|
|
1305
1313
|
|
|
1306
1314
|
"""Labels attributed to the event."""
|
|
1307
1315
|
labels: LabelsForEvent
|
|
1316
|
+
|
|
1317
|
+
"""The age of the wallet in seconds."""
|
|
1318
|
+
walletAge: Int
|
|
1308
1319
|
}
|
|
1309
1320
|
|
|
1310
1321
|
"""Response returned by `getTokenEvents`."""
|
|
@@ -2256,6 +2267,9 @@ type LatestTokenSimResults {
|
|
|
2256
2267
|
}
|
|
2257
2268
|
|
|
2258
2269
|
type LaunchpadData {
|
|
2270
|
+
"""The name of the launchpad."""
|
|
2271
|
+
name: String
|
|
2272
|
+
|
|
2259
2273
|
"""The percentage of the pool that was sold to the public."""
|
|
2260
2274
|
graduationPercent: Float
|
|
2261
2275
|
|
|
@@ -2282,6 +2296,9 @@ type LaunchpadData {
|
|
|
2282
2296
|
|
|
2283
2297
|
"""The pool address after the launchpad was migrated."""
|
|
2284
2298
|
migratedPoolAddress: String
|
|
2299
|
+
|
|
2300
|
+
"""The launchpad protocol"""
|
|
2301
|
+
launchpadProtocol: String
|
|
2285
2302
|
}
|
|
2286
2303
|
|
|
2287
2304
|
"""Response returned by `onLaunchpadTokenEvent`."""
|
|
@@ -2327,9 +2344,19 @@ type LaunchpadTokenEventOutput {
|
|
|
2327
2344
|
The type of event. Note that associated statistics such as `buyCount1`, `price`, etc. are only available for `Updated` events.
|
|
2328
2345
|
"""
|
|
2329
2346
|
enum LaunchpadTokenEventType {
|
|
2330
|
-
|
|
2347
|
+
"""The token has been discovered"""
|
|
2348
|
+
Deployed
|
|
2349
|
+
|
|
2350
|
+
"""The token has been created with metadata"""
|
|
2331
2351
|
Created
|
|
2352
|
+
|
|
2353
|
+
"""The token's statistics have been updated"""
|
|
2354
|
+
Updated
|
|
2355
|
+
|
|
2356
|
+
"""The token has been completed"""
|
|
2332
2357
|
Completed
|
|
2358
|
+
|
|
2359
|
+
"""The token has been migrated"""
|
|
2333
2360
|
Migrated
|
|
2334
2361
|
}
|
|
2335
2362
|
|
|
@@ -2337,6 +2364,7 @@ enum LaunchpadTokenEventType {
|
|
|
2337
2364
|
enum LaunchpadTokenProtocol {
|
|
2338
2365
|
Pump
|
|
2339
2366
|
FourMeme
|
|
2367
|
+
RaydiumLaunchpad
|
|
2340
2368
|
}
|
|
2341
2369
|
|
|
2342
2370
|
scalar link__Import
|
|
@@ -6205,10 +6233,14 @@ input OnLaunchpadTokenEventInput {
|
|
|
6205
6233
|
"""The type of event."""
|
|
6206
6234
|
eventType: LaunchpadTokenEventType
|
|
6207
6235
|
|
|
6208
|
-
"""
|
|
6236
|
+
"""
|
|
6237
|
+
The contract address of the token. Required when `networkId` is provided.
|
|
6238
|
+
"""
|
|
6209
6239
|
address: String
|
|
6210
6240
|
|
|
6211
|
-
"""
|
|
6241
|
+
"""
|
|
6242
|
+
The network ID that the token is deployed on. Required when `address` is provided.
|
|
6243
|
+
"""
|
|
6212
6244
|
networkId: Int
|
|
6213
6245
|
}
|
|
6214
6246
|
|
|
@@ -6578,6 +6610,48 @@ type PairFilterResult {
|
|
|
6578
6610
|
|
|
6579
6611
|
"""The trade volume in USD in the past 24 hours."""
|
|
6580
6612
|
volumeUSD24: String
|
|
6613
|
+
|
|
6614
|
+
"""The buy volume in USD in the past hour."""
|
|
6615
|
+
buyVolumeUSD1: String
|
|
6616
|
+
|
|
6617
|
+
"""The buy volume in USD in the past 12 hours."""
|
|
6618
|
+
buyVolumeUSD12: String
|
|
6619
|
+
|
|
6620
|
+
"""The buy volume in USD in the past 24 hours."""
|
|
6621
|
+
buyVolumeUSD24: String
|
|
6622
|
+
|
|
6623
|
+
"""The buy volume in USD in the past 4 hours."""
|
|
6624
|
+
buyVolumeUSD4: String
|
|
6625
|
+
|
|
6626
|
+
"""The sell volume in USD in the past hour."""
|
|
6627
|
+
sellVolumeUSD1: String
|
|
6628
|
+
|
|
6629
|
+
"""The sell volume in USD in the past 12 hours."""
|
|
6630
|
+
sellVolumeUSD12: String
|
|
6631
|
+
|
|
6632
|
+
"""The sell volume in USD in the past 24 hours."""
|
|
6633
|
+
sellVolumeUSD24: String
|
|
6634
|
+
|
|
6635
|
+
"""The sell volume in USD in the past 4 hours."""
|
|
6636
|
+
sellVolumeUSD4: String
|
|
6637
|
+
|
|
6638
|
+
"""The average age of the wallets that traded in the last 24h"""
|
|
6639
|
+
walletAgeAvg: String
|
|
6640
|
+
|
|
6641
|
+
"""
|
|
6642
|
+
The standard deviation of age of the wallets that traded in the last 24h
|
|
6643
|
+
"""
|
|
6644
|
+
walletAgeStd: String
|
|
6645
|
+
|
|
6646
|
+
"""
|
|
6647
|
+
The percentage of wallets that are less than 1d old that have traded in the last 24h
|
|
6648
|
+
"""
|
|
6649
|
+
swapPct1dOldWallet: String
|
|
6650
|
+
|
|
6651
|
+
"""
|
|
6652
|
+
The percentage of wallets that are less than 7d old that have traded in the last 24h
|
|
6653
|
+
"""
|
|
6654
|
+
swapPct7dOldWallet: String
|
|
6581
6655
|
}
|
|
6582
6656
|
|
|
6583
6657
|
"""Input type of `PairFilters`."""
|
|
@@ -6738,6 +6812,30 @@ input PairFilters {
|
|
|
6738
6812
|
"""The trade volume in USD in the past 4 hours."""
|
|
6739
6813
|
volumeUSD4: NumberFilter
|
|
6740
6814
|
|
|
6815
|
+
"""The buy volume in USD in the past hour."""
|
|
6816
|
+
buyVolumeUSD1: NumberFilter
|
|
6817
|
+
|
|
6818
|
+
"""The buy volume in USD in the past 12 hours."""
|
|
6819
|
+
buyVolumeUSD12: NumberFilter
|
|
6820
|
+
|
|
6821
|
+
"""The buy volume in USD in the past 24 hours."""
|
|
6822
|
+
buyVolumeUSD24: NumberFilter
|
|
6823
|
+
|
|
6824
|
+
"""The buy volume in USD in the past 4 hours."""
|
|
6825
|
+
buyVolumeUSD4: NumberFilter
|
|
6826
|
+
|
|
6827
|
+
"""The sell volume in USD in the past hour."""
|
|
6828
|
+
sellVolumeUSD1: NumberFilter
|
|
6829
|
+
|
|
6830
|
+
"""The sell volume in USD in the past 12 hours."""
|
|
6831
|
+
sellVolumeUSD12: NumberFilter
|
|
6832
|
+
|
|
6833
|
+
"""The sell volume in USD in the past 24 hours."""
|
|
6834
|
+
sellVolumeUSD24: NumberFilter
|
|
6835
|
+
|
|
6836
|
+
"""The sell volume in USD in the past 4 hours."""
|
|
6837
|
+
sellVolumeUSD4: NumberFilter
|
|
6838
|
+
|
|
6741
6839
|
"""Filter potential Scams"""
|
|
6742
6840
|
potentialScam: Boolean
|
|
6743
6841
|
|
|
@@ -6748,6 +6846,24 @@ input PairFilters {
|
|
|
6748
6846
|
Whether to filter for pairs on testnet networks. Use `true` for testnet pairs only, `false` for mainnet pairs only and `undefined` (default) for both.
|
|
6749
6847
|
"""
|
|
6750
6848
|
isTestnet: Boolean
|
|
6849
|
+
|
|
6850
|
+
"""The average age of the wallets that traded in the last 24h"""
|
|
6851
|
+
walletAgeAvg: NumberFilter
|
|
6852
|
+
|
|
6853
|
+
"""
|
|
6854
|
+
The standard deviation of age of the wallets that traded in the last 24h
|
|
6855
|
+
"""
|
|
6856
|
+
walletAgeStd: NumberFilter
|
|
6857
|
+
|
|
6858
|
+
"""
|
|
6859
|
+
The percentage of wallets that are less than 1d old that have traded in the last 24h
|
|
6860
|
+
"""
|
|
6861
|
+
swapPct1dOldWallet: NumberFilter
|
|
6862
|
+
|
|
6863
|
+
"""
|
|
6864
|
+
The percentage of wallets that are less than 7d old that have traded in the last 24h
|
|
6865
|
+
"""
|
|
6866
|
+
swapPct7dOldWallet: NumberFilter
|
|
6751
6867
|
}
|
|
6752
6868
|
|
|
6753
6869
|
type PairMetadata {
|
|
@@ -6959,6 +7075,18 @@ enum PairRankingAttribute {
|
|
|
6959
7075
|
volumeUSD4
|
|
6960
7076
|
volumeUSD12
|
|
6961
7077
|
volumeUSD24
|
|
7078
|
+
buyVolumeUSD1
|
|
7079
|
+
buyVolumeUSD4
|
|
7080
|
+
buyVolumeUSD12
|
|
7081
|
+
buyVolumeUSD24
|
|
7082
|
+
sellVolumeUSD1
|
|
7083
|
+
sellVolumeUSD4
|
|
7084
|
+
sellVolumeUSD12
|
|
7085
|
+
sellVolumeUSD24
|
|
7086
|
+
walletAgeAvg
|
|
7087
|
+
walletAgeStd
|
|
7088
|
+
swapPct1dOldWallet
|
|
7089
|
+
swapPct7dOldWallet
|
|
6962
7090
|
}
|
|
6963
7091
|
|
|
6964
7092
|
"""Response returned by `filterNftParallelAssets`."""
|
|
@@ -8584,7 +8712,7 @@ type Query {
|
|
|
8584
8712
|
"""
|
|
8585
8713
|
tokens: [String]
|
|
8586
8714
|
|
|
8587
|
-
"""A list of token IDs to exclude from results
|
|
8715
|
+
"""A list of token IDs (`address:networkId`) to exclude from results"""
|
|
8588
8716
|
excludeTokens: [String]
|
|
8589
8717
|
|
|
8590
8718
|
"""A list of ranking attributes to apply."""
|
|
@@ -9884,6 +10012,7 @@ type Subscription {
|
|
|
9884
10012
|
"""The network ID the token is deployed on."""
|
|
9885
10013
|
networkId: Int
|
|
9886
10014
|
): AddTokenLifecycleEventsOutput!
|
|
10015
|
+
onLaunchpadTokenEventBatch: [LaunchpadTokenEventOutput!]!
|
|
9887
10016
|
onLaunchpadTokenEvent(input: OnLaunchpadTokenEventInput): LaunchpadTokenEventOutput!
|
|
9888
10017
|
}
|
|
9889
10018
|
|
|
@@ -10445,11 +10574,59 @@ type TokenFilterResult {
|
|
|
10445
10574
|
"""The trade volume in USD in the past 4 hours."""
|
|
10446
10575
|
volume4: String
|
|
10447
10576
|
|
|
10577
|
+
"""The buy volume in USD in the past hour."""
|
|
10578
|
+
buyVolume1: String
|
|
10579
|
+
|
|
10580
|
+
"""The buy volume in USD in the past 12 hours."""
|
|
10581
|
+
buyVolume12: String
|
|
10582
|
+
|
|
10583
|
+
"""The buy volume in USD in the past 24 hours."""
|
|
10584
|
+
buyVolume24: String
|
|
10585
|
+
|
|
10586
|
+
"""The buy volume in USD in the past 4 hours."""
|
|
10587
|
+
buyVolume4: String
|
|
10588
|
+
|
|
10589
|
+
"""The buy volume in USD in the past 5 minutes."""
|
|
10590
|
+
buyVolume5m: String
|
|
10591
|
+
|
|
10592
|
+
"""The sell volume in USD in the past hour."""
|
|
10593
|
+
sellVolume1: String
|
|
10594
|
+
|
|
10595
|
+
"""The sell volume in USD in the past 12 hours."""
|
|
10596
|
+
sellVolume12: String
|
|
10597
|
+
|
|
10598
|
+
"""The sell volume in USD in the past 24 hours."""
|
|
10599
|
+
sellVolume24: String
|
|
10600
|
+
|
|
10601
|
+
"""The sell volume in USD in the past 4 hours."""
|
|
10602
|
+
sellVolume4: String
|
|
10603
|
+
|
|
10604
|
+
"""The sell volume in USD in the past 5 minutes."""
|
|
10605
|
+
sellVolume5m: String
|
|
10606
|
+
|
|
10448
10607
|
"""Whether the token has been flagged as a scam."""
|
|
10449
10608
|
isScam: Boolean
|
|
10450
10609
|
|
|
10451
10610
|
"""The number of different wallets holding the token."""
|
|
10452
10611
|
holders: Int
|
|
10612
|
+
|
|
10613
|
+
"""The average age of the wallets that traded in the last 24h"""
|
|
10614
|
+
walletAgeAvg: String
|
|
10615
|
+
|
|
10616
|
+
"""
|
|
10617
|
+
The standard deviation of age of the wallets that traded in the last 24h
|
|
10618
|
+
"""
|
|
10619
|
+
walletAgeStd: String
|
|
10620
|
+
|
|
10621
|
+
"""
|
|
10622
|
+
The percentage of wallets that are less than 1d old that have traded in the last 24h
|
|
10623
|
+
"""
|
|
10624
|
+
swapPct1dOldWallet: String
|
|
10625
|
+
|
|
10626
|
+
"""
|
|
10627
|
+
The percentage of wallets that are less than 7d old that have traded in the last 24h
|
|
10628
|
+
"""
|
|
10629
|
+
swapPct7dOldWallet: String
|
|
10453
10630
|
}
|
|
10454
10631
|
|
|
10455
10632
|
"""Input type of `TokenFilters`."""
|
|
@@ -10655,6 +10832,36 @@ input TokenFilters {
|
|
|
10655
10832
|
"""The trade volume in USD in the past 5 minutes."""
|
|
10656
10833
|
volume5m: NumberFilter
|
|
10657
10834
|
|
|
10835
|
+
"""The buy volume in USD in the past hour."""
|
|
10836
|
+
buyVolume1: NumberFilter
|
|
10837
|
+
|
|
10838
|
+
"""The buy volume in USD in the past 12 hours."""
|
|
10839
|
+
buyVolume12: NumberFilter
|
|
10840
|
+
|
|
10841
|
+
"""The buy volume in USD in the past 24 hours."""
|
|
10842
|
+
buyVolume24: NumberFilter
|
|
10843
|
+
|
|
10844
|
+
"""The buy volume in USD in the past 4 hours."""
|
|
10845
|
+
buyVolume4: NumberFilter
|
|
10846
|
+
|
|
10847
|
+
"""The buy volume in USD in the past 5 minutes."""
|
|
10848
|
+
buyVolume5m: NumberFilter
|
|
10849
|
+
|
|
10850
|
+
"""The sell volume in USD in the past hour."""
|
|
10851
|
+
sellVolume1: NumberFilter
|
|
10852
|
+
|
|
10853
|
+
"""The sell volume in USD in the past 12 hours."""
|
|
10854
|
+
sellVolume12: NumberFilter
|
|
10855
|
+
|
|
10856
|
+
"""The sell volume in USD in the past 24 hours."""
|
|
10857
|
+
sellVolume24: NumberFilter
|
|
10858
|
+
|
|
10859
|
+
"""The sell volume in USD in the past 4 hours."""
|
|
10860
|
+
sellVolume4: NumberFilter
|
|
10861
|
+
|
|
10862
|
+
"""The sell volume in USD in the past 5 minutes."""
|
|
10863
|
+
sellVolume5m: NumberFilter
|
|
10864
|
+
|
|
10658
10865
|
"""
|
|
10659
10866
|
Whether to include tokens that have been flagged as scams. Default: false
|
|
10660
10867
|
"""
|
|
@@ -10677,6 +10884,9 @@ input TokenFilters {
|
|
|
10677
10884
|
"""The address of the creator of the token"""
|
|
10678
10885
|
creatorAddress: String
|
|
10679
10886
|
|
|
10887
|
+
"""The launchpad protocol"""
|
|
10888
|
+
launchpadProtocol: String
|
|
10889
|
+
|
|
10680
10890
|
"""Indicates if the launchpad is completed"""
|
|
10681
10891
|
launchpadCompleted: Boolean
|
|
10682
10892
|
|
|
@@ -10697,6 +10907,24 @@ input TokenFilters {
|
|
|
10697
10907
|
|
|
10698
10908
|
"""The token in mintable"""
|
|
10699
10909
|
mintable: Boolean
|
|
10910
|
+
|
|
10911
|
+
"""The average age of the wallets that traded in the last 24h"""
|
|
10912
|
+
walletAgeAvg: NumberFilter
|
|
10913
|
+
|
|
10914
|
+
"""
|
|
10915
|
+
The standard deviation of age of the wallets that traded in the last 24h
|
|
10916
|
+
"""
|
|
10917
|
+
walletAgeStd: NumberFilter
|
|
10918
|
+
|
|
10919
|
+
"""
|
|
10920
|
+
The percentage of wallets that are less than 1d old that have traded in the last 24h
|
|
10921
|
+
"""
|
|
10922
|
+
swapPct1dOldWallet: NumberFilter
|
|
10923
|
+
|
|
10924
|
+
"""
|
|
10925
|
+
The percentage of wallets that are less than 7d old that have traded in the last 24h
|
|
10926
|
+
"""
|
|
10927
|
+
swapPct7dOldWallet: NumberFilter
|
|
10700
10928
|
}
|
|
10701
10929
|
|
|
10702
10930
|
"""Metadata for a token."""
|
|
@@ -10999,9 +11227,23 @@ enum TokenRankingAttribute {
|
|
|
10999
11227
|
volume4
|
|
11000
11228
|
volume12
|
|
11001
11229
|
volume24
|
|
11230
|
+
buyVolume5m
|
|
11231
|
+
buyVolume1
|
|
11232
|
+
buyVolume4
|
|
11233
|
+
buyVolume12
|
|
11234
|
+
buyVolume24
|
|
11235
|
+
sellVolume5m
|
|
11236
|
+
sellVolume1
|
|
11237
|
+
sellVolume4
|
|
11238
|
+
sellVolume12
|
|
11239
|
+
sellVolume24
|
|
11002
11240
|
launchpadCompletedAt
|
|
11003
11241
|
launchpadMigratedAt
|
|
11004
11242
|
graduationPercent
|
|
11243
|
+
walletAgeAvg
|
|
11244
|
+
walletAgeStd
|
|
11245
|
+
swapPct1dOldWallet
|
|
11246
|
+
swapPct7dOldWallet
|
|
11005
11247
|
}
|
|
11006
11248
|
|
|
11007
11249
|
"""Response returned by `searchTokens`."""
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
subscription OnLaunchpadTokenEventBatch {
|
|
2
|
+
onLaunchpadTokenEventBatch {
|
|
3
|
+
address
|
|
4
|
+
buyCount1
|
|
5
|
+
eventType
|
|
6
|
+
holders
|
|
7
|
+
marketCap
|
|
8
|
+
networkId
|
|
9
|
+
price
|
|
10
|
+
protocol
|
|
11
|
+
sellCount1
|
|
12
|
+
token {
|
|
13
|
+
address
|
|
14
|
+
cmcId
|
|
15
|
+
createBlockNumber
|
|
16
|
+
createTransactionHash
|
|
17
|
+
createdAt
|
|
18
|
+
creatorAddress
|
|
19
|
+
decimals
|
|
20
|
+
exchanges {
|
|
21
|
+
address
|
|
22
|
+
color
|
|
23
|
+
exchangeVersion
|
|
24
|
+
iconUrl
|
|
25
|
+
id
|
|
26
|
+
name
|
|
27
|
+
networkId
|
|
28
|
+
tradeUrl
|
|
29
|
+
}
|
|
30
|
+
freezable
|
|
31
|
+
id
|
|
32
|
+
info {
|
|
33
|
+
address
|
|
34
|
+
circulatingSupply
|
|
35
|
+
cmcId
|
|
36
|
+
description
|
|
37
|
+
id
|
|
38
|
+
imageBannerUrl
|
|
39
|
+
imageLargeUrl
|
|
40
|
+
imageSmallUrl
|
|
41
|
+
imageThumbUrl
|
|
42
|
+
isScam
|
|
43
|
+
name
|
|
44
|
+
networkId
|
|
45
|
+
symbol
|
|
46
|
+
totalSupply
|
|
47
|
+
}
|
|
48
|
+
isScam
|
|
49
|
+
launchpad {
|
|
50
|
+
completed
|
|
51
|
+
completedAt
|
|
52
|
+
completedSlot
|
|
53
|
+
graduationPercent
|
|
54
|
+
launchpadProtocol
|
|
55
|
+
migrated
|
|
56
|
+
migratedAt
|
|
57
|
+
migratedPoolAddress
|
|
58
|
+
migratedSlot
|
|
59
|
+
name
|
|
60
|
+
poolAddress
|
|
61
|
+
}
|
|
62
|
+
mintable
|
|
63
|
+
name
|
|
64
|
+
networkId
|
|
65
|
+
socialLinks {
|
|
66
|
+
bitcointalk
|
|
67
|
+
blog
|
|
68
|
+
coingecko
|
|
69
|
+
coinmarketcap
|
|
70
|
+
discord
|
|
71
|
+
email
|
|
72
|
+
facebook
|
|
73
|
+
github
|
|
74
|
+
instagram
|
|
75
|
+
linkedin
|
|
76
|
+
reddit
|
|
77
|
+
slack
|
|
78
|
+
telegram
|
|
79
|
+
twitch
|
|
80
|
+
twitter
|
|
81
|
+
website
|
|
82
|
+
wechat
|
|
83
|
+
whitepaper
|
|
84
|
+
youtube
|
|
85
|
+
}
|
|
86
|
+
symbol
|
|
87
|
+
}
|
|
88
|
+
transactions1
|
|
89
|
+
volume1
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -215,14 +215,12 @@ async function run() {
|
|
|
215
215
|
|
|
216
216
|
for (const field of subscriptionType.fields) {
|
|
217
217
|
const args = field.args;
|
|
218
|
-
const parsedVariables = parseVariables(args);
|
|
218
|
+
const parsedVariables = parseVariables(args) ?? {};
|
|
219
219
|
const parsedFields = getLeafType(field.type, types, [], "").filter(Boolean);
|
|
220
220
|
|
|
221
221
|
const subscriptionBuilderObject = gql.subscription({
|
|
222
222
|
operation: field.name,
|
|
223
|
-
variables:
|
|
224
|
-
? parsedVariables
|
|
225
|
-
: undefined,
|
|
223
|
+
variables: parsedVariables,
|
|
226
224
|
fields: parsedFields.length ? parsedFields : undefined,
|
|
227
225
|
});
|
|
228
226
|
console.log(`Writing subscription: ${field.name}.graphql`);
|
package/src/sdk/Mutation.ts
CHANGED
|
@@ -13,12 +13,12 @@ import { Codex } from "./index";
|
|
|
13
13
|
|
|
14
14
|
export class Mutation {
|
|
15
15
|
constructor(private sdk: Codex) {}
|
|
16
|
-
createApiTokens = async (vars: CreateApiTokensMutationVariables) =>
|
|
17
|
-
this.sdk.mutation(CreateApiTokensDocument, vars);
|
|
18
16
|
deleteWebhooks = async (vars: DeleteWebhooksMutationVariables) =>
|
|
19
17
|
this.sdk.mutation(DeleteWebhooksDocument, vars);
|
|
20
18
|
createWebhooks = async (vars: CreateWebhooksMutationVariables) =>
|
|
21
19
|
this.sdk.mutation(CreateWebhooksDocument, vars);
|
|
20
|
+
createApiTokens = async (vars: CreateApiTokensMutationVariables) =>
|
|
21
|
+
this.sdk.mutation(CreateApiTokensDocument, vars);
|
|
22
22
|
deleteApiToken = async (vars: DeleteApiTokenMutationVariables) =>
|
|
23
23
|
this.sdk.mutation(DeleteApiTokenDocument, vars);
|
|
24
24
|
}
|