@codex-data/sdk 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/resources/generated_queries/BackfillWalletState.graphql +3 -0
  2. package/dist/resources/generated_queries/GetTokenEvents.graphql +2 -0
  3. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
  4. package/dist/resources/generated_queries/Holders.graphql +1 -0
  5. package/dist/resources/generated_queries/PairMetadata.graphql +126 -0
  6. package/dist/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
  7. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
  8. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
  9. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
  10. package/dist/resources/graphql.d.ts +52 -2
  11. package/dist/resources/graphql.d.ts.map +1 -1
  12. package/dist/resources/graphql.js +9 -2
  13. package/dist/resources/graphql.js.map +1 -1
  14. package/dist/resources/graphql.schema.json +485 -13
  15. package/dist/resources/graphql.ts +56 -2
  16. package/dist/resources/schema.graphql +77 -3
  17. package/dist/sdk/Query.d.ts +3 -1
  18. package/dist/sdk/Query.d.ts.map +1 -1
  19. package/dist/sdk/Query.js +2 -0
  20. package/dist/sdk/Query.js.map +1 -1
  21. package/dist/sdk/Subscribe.js +3 -3
  22. package/dist/sdk/generated/gql.d.ts +28 -14
  23. package/dist/sdk/generated/gql.d.ts.map +1 -1
  24. package/dist/sdk/generated/gql.js +9 -7
  25. package/dist/sdk/generated/gql.js.map +1 -1
  26. package/dist/sdk/generated/graphql.d.ts +349 -2
  27. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  28. package/dist/sdk/generated/graphql.js +20 -11
  29. package/dist/sdk/generated/graphql.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/resources/generated_queries/BackfillWalletState.graphql +3 -0
  32. package/src/resources/generated_queries/GetTokenEvents.graphql +2 -0
  33. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
  34. package/src/resources/generated_queries/Holders.graphql +1 -0
  35. package/src/resources/generated_queries/PairMetadata.graphql +126 -0
  36. package/src/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
  37. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
  38. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
  39. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
  40. package/src/resources/graphql.schema.json +485 -13
  41. package/src/resources/graphql.ts +56 -2
  42. package/src/resources/schema.graphql +77 -3
  43. package/src/sdk/Query.ts +8 -0
  44. package/src/sdk/Subscribe.ts +3 -3
  45. package/src/sdk/generated/gql.ts +24 -14
  46. package/src/sdk/generated/graphql.ts +84 -16
@@ -562,6 +562,36 @@
562
562
  "enumValues": null,
563
563
  "possibleTypes": null
564
564
  },
565
+ {
566
+ "kind": "ENUM",
567
+ "name": "AddressType",
568
+ "description": null,
569
+ "isOneOf": null,
570
+ "fields": null,
571
+ "inputFields": null,
572
+ "interfaces": null,
573
+ "enumValues": [
574
+ {
575
+ "name": "EVM",
576
+ "description": null,
577
+ "isDeprecated": false,
578
+ "deprecationReason": null
579
+ },
580
+ {
581
+ "name": "SOL",
582
+ "description": null,
583
+ "isDeprecated": false,
584
+ "deprecationReason": null
585
+ },
586
+ {
587
+ "name": "TRON",
588
+ "description": null,
589
+ "isDeprecated": false,
590
+ "deprecationReason": null
591
+ }
592
+ ],
593
+ "possibleTypes": null
594
+ },
565
595
  {
566
596
  "kind": "ENUM",
567
597
  "name": "AlertRecurrence",
@@ -5337,6 +5367,18 @@
5337
5367
  "isDeprecated": false,
5338
5368
  "deprecationReason": null
5339
5369
  },
5370
+ {
5371
+ "name": "token0Address",
5372
+ "description": "The address of the event's token0.",
5373
+ "args": [],
5374
+ "type": {
5375
+ "kind": "SCALAR",
5376
+ "name": "String",
5377
+ "ofType": null
5378
+ },
5379
+ "isDeprecated": false,
5380
+ "deprecationReason": null
5381
+ },
5340
5382
  {
5341
5383
  "name": "token0PoolValueUsd",
5342
5384
  "description": "The updated price of `token0` in USD, calculated after the transaction.",
@@ -5373,6 +5415,18 @@
5373
5415
  "isDeprecated": false,
5374
5416
  "deprecationReason": null
5375
5417
  },
5418
+ {
5419
+ "name": "token1Address",
5420
+ "description": "The address of the event's token1.",
5421
+ "args": [],
5422
+ "type": {
5423
+ "kind": "SCALAR",
5424
+ "name": "String",
5425
+ "ofType": null
5426
+ },
5427
+ "isDeprecated": false,
5428
+ "deprecationReason": null
5429
+ },
5376
5430
  {
5377
5431
  "name": "token1PoolValueUsd",
5378
5432
  "description": "The updated price of `token1` in USD, calculated after the transaction.",
@@ -8391,6 +8445,18 @@
8391
8445
  },
8392
8446
  "isDeprecated": false,
8393
8447
  "deprecationReason": null
8448
+ },
8449
+ {
8450
+ "name": "top10HoldersPercent",
8451
+ "description": "What percentage of the total supply do the top 10 holders hold",
8452
+ "args": [],
8453
+ "type": {
8454
+ "kind": "SCALAR",
8455
+ "name": "Float",
8456
+ "ofType": null
8457
+ },
8458
+ "isDeprecated": false,
8459
+ "deprecationReason": null
8394
8460
  }
8395
8461
  ],
8396
8462
  "inputFields": null,
@@ -8446,6 +8512,17 @@
8446
8512
  ],
8447
8513
  "possibleTypes": null
8448
8514
  },
8515
+ {
8516
+ "kind": "SCALAR",
8517
+ "name": "ID",
8518
+ "description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID.",
8519
+ "isOneOf": null,
8520
+ "fields": null,
8521
+ "inputFields": null,
8522
+ "interfaces": null,
8523
+ "enumValues": null,
8524
+ "possibleTypes": null
8525
+ },
8449
8526
  {
8450
8527
  "kind": "OBJECT",
8451
8528
  "name": "IndividualBarData",
@@ -10559,6 +10636,18 @@
10559
10636
  "isOneOf": false,
10560
10637
  "fields": null,
10561
10638
  "inputFields": [
10639
+ {
10640
+ "name": "eventType",
10641
+ "description": "The specific event type to filter by.",
10642
+ "type": {
10643
+ "kind": "ENUM",
10644
+ "name": "EventType",
10645
+ "ofType": null
10646
+ },
10647
+ "defaultValue": null,
10648
+ "isDeprecated": false,
10649
+ "deprecationReason": null
10650
+ },
10562
10651
  {
10563
10652
  "name": "maker",
10564
10653
  "description": "The specific wallet address to filter by.",
@@ -10579,13 +10668,21 @@
10579
10668
  "name": "networkId",
10580
10669
  "description": "The network ID to filter by.",
10581
10670
  "type": {
10582
- "kind": "NON_NULL",
10583
- "name": null,
10584
- "ofType": {
10585
- "kind": "SCALAR",
10586
- "name": "Int",
10587
- "ofType": null
10588
- }
10671
+ "kind": "SCALAR",
10672
+ "name": "Int",
10673
+ "ofType": null
10674
+ },
10675
+ "defaultValue": null,
10676
+ "isDeprecated": false,
10677
+ "deprecationReason": null
10678
+ },
10679
+ {
10680
+ "name": "priceUsdTotal",
10681
+ "description": "The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`).",
10682
+ "type": {
10683
+ "kind": "INPUT_OBJECT",
10684
+ "name": "NumberFilter",
10685
+ "ofType": null
10589
10686
  },
10590
10687
  "defaultValue": null,
10591
10688
  "isDeprecated": false,
@@ -10593,7 +10690,7 @@
10593
10690
  },
10594
10691
  {
10595
10692
  "name": "quoteToken",
10596
- "description": "The token of interest. Can be `token0` or `token1`.",
10693
+ "description": "docs: hide",
10597
10694
  "type": {
10598
10695
  "kind": "ENUM",
10599
10696
  "name": "QuoteToken",
@@ -10602,6 +10699,30 @@
10602
10699
  "defaultValue": null,
10603
10700
  "isDeprecated": false,
10604
10701
  "deprecationReason": null
10702
+ },
10703
+ {
10704
+ "name": "timestamp",
10705
+ "description": "The time range to filter by.",
10706
+ "type": {
10707
+ "kind": "INPUT_OBJECT",
10708
+ "name": "EventQueryTimestampInput",
10709
+ "ofType": null
10710
+ },
10711
+ "defaultValue": null,
10712
+ "isDeprecated": false,
10713
+ "deprecationReason": null
10714
+ },
10715
+ {
10716
+ "name": "tokenAddress",
10717
+ "description": "The token involved in the event.",
10718
+ "type": {
10719
+ "kind": "SCALAR",
10720
+ "name": "String",
10721
+ "ofType": null
10722
+ },
10723
+ "defaultValue": null,
10724
+ "isDeprecated": false,
10725
+ "deprecationReason": null
10605
10726
  }
10606
10727
  ],
10607
10728
  "interfaces": null,
@@ -28797,6 +28918,30 @@
28797
28918
  "description": null,
28798
28919
  "isOneOf": null,
28799
28920
  "fields": [
28921
+ {
28922
+ "name": "enhancedToken0",
28923
+ "description": null,
28924
+ "args": [],
28925
+ "type": {
28926
+ "kind": "OBJECT",
28927
+ "name": "EnhancedToken",
28928
+ "ofType": null
28929
+ },
28930
+ "isDeprecated": false,
28931
+ "deprecationReason": null
28932
+ },
28933
+ {
28934
+ "name": "enhancedToken1",
28935
+ "description": null,
28936
+ "args": [],
28937
+ "type": {
28938
+ "kind": "OBJECT",
28939
+ "name": "EnhancedToken",
28940
+ "ofType": null
28941
+ },
28942
+ "isDeprecated": false,
28943
+ "deprecationReason": null
28944
+ },
28800
28945
  {
28801
28946
  "name": "exchangeId",
28802
28947
  "description": null,
@@ -34969,6 +35114,22 @@
34969
35114
  "isDeprecated": false,
34970
35115
  "deprecationReason": null
34971
35116
  },
35117
+ {
35118
+ "name": "backfillWalletState",
35119
+ "description": null,
35120
+ "args": [],
35121
+ "type": {
35122
+ "kind": "NON_NULL",
35123
+ "name": null,
35124
+ "ofType": {
35125
+ "kind": "SCALAR",
35126
+ "name": "Boolean",
35127
+ "ofType": null
35128
+ }
35129
+ },
35130
+ "isDeprecated": false,
35131
+ "deprecationReason": null
35132
+ },
34972
35133
  {
34973
35134
  "name": "balances",
34974
35135
  "description": "Returns list of token balances that a wallet has",
@@ -38031,11 +38192,11 @@
38031
38192
  },
38032
38193
  {
38033
38194
  "name": "getTokenEventsForMaker",
38034
- "description": null,
38195
+ "description": "Returns a list of token events for a given maker.",
38035
38196
  "args": [
38036
38197
  {
38037
38198
  "name": "cursor",
38038
- "description": null,
38199
+ "description": "The cursor to use for pagination.",
38039
38200
  "type": {
38040
38201
  "kind": "SCALAR",
38041
38202
  "name": "String",
@@ -38047,7 +38208,7 @@
38047
38208
  },
38048
38209
  {
38049
38210
  "name": "direction",
38050
- "description": null,
38211
+ "description": "The order to receive the token events. Can be `DESC` (default) or `ASC`.",
38051
38212
  "type": {
38052
38213
  "kind": "ENUM",
38053
38214
  "name": "RankingDirection",
@@ -38059,7 +38220,7 @@
38059
38220
  },
38060
38221
  {
38061
38222
  "name": "limit",
38062
- "description": null,
38223
+ "description": "The maximum number of events to return.",
38063
38224
  "type": {
38064
38225
  "kind": "SCALAR",
38065
38226
  "name": "Int",
@@ -38071,7 +38232,7 @@
38071
38232
  },
38072
38233
  {
38073
38234
  "name": "query",
38074
- "description": null,
38235
+ "description": "The query filters to apply to the results.",
38075
38236
  "type": {
38076
38237
  "kind": "NON_NULL",
38077
38238
  "name": null,
@@ -39264,6 +39425,35 @@
39264
39425
  "isDeprecated": false,
39265
39426
  "deprecationReason": null
39266
39427
  },
39428
+ {
39429
+ "name": "top10HoldersPercent",
39430
+ "description": "What percent of the total supply do the top 10 holders of a token hold",
39431
+ "args": [
39432
+ {
39433
+ "name": "tokenId",
39434
+ "description": null,
39435
+ "type": {
39436
+ "kind": "NON_NULL",
39437
+ "name": null,
39438
+ "ofType": {
39439
+ "kind": "SCALAR",
39440
+ "name": "String",
39441
+ "ofType": null
39442
+ }
39443
+ },
39444
+ "defaultValue": null,
39445
+ "isDeprecated": false,
39446
+ "deprecationReason": null
39447
+ }
39448
+ ],
39449
+ "type": {
39450
+ "kind": "SCALAR",
39451
+ "name": "Float",
39452
+ "ofType": null
39453
+ },
39454
+ "isDeprecated": false,
39455
+ "deprecationReason": null
39456
+ },
39267
39457
  {
39268
39458
  "name": "walletNftCollectionAssets",
39269
39459
  "description": "Returns list of NFT assets held by a given wallet for a single collection.",
@@ -43905,6 +44095,270 @@
43905
44095
  "enumValues": null,
43906
44096
  "possibleTypes": null
43907
44097
  },
44098
+ {
44099
+ "kind": "OBJECT",
44100
+ "name": "SuiNetworkConfig",
44101
+ "description": null,
44102
+ "isOneOf": null,
44103
+ "fields": [
44104
+ {
44105
+ "name": "baseTokenAddress",
44106
+ "description": null,
44107
+ "args": [],
44108
+ "type": {
44109
+ "kind": "NON_NULL",
44110
+ "name": null,
44111
+ "ofType": {
44112
+ "kind": "SCALAR",
44113
+ "name": "String",
44114
+ "ofType": null
44115
+ }
44116
+ },
44117
+ "isDeprecated": false,
44118
+ "deprecationReason": null
44119
+ },
44120
+ {
44121
+ "name": "baseTokenSymbol",
44122
+ "description": null,
44123
+ "args": [],
44124
+ "type": {
44125
+ "kind": "NON_NULL",
44126
+ "name": null,
44127
+ "ofType": {
44128
+ "kind": "SCALAR",
44129
+ "name": "String",
44130
+ "ofType": null
44131
+ }
44132
+ },
44133
+ "isDeprecated": false,
44134
+ "deprecationReason": null
44135
+ },
44136
+ {
44137
+ "name": "color",
44138
+ "description": null,
44139
+ "args": [],
44140
+ "type": {
44141
+ "kind": "SCALAR",
44142
+ "name": "String",
44143
+ "ofType": null
44144
+ },
44145
+ "isDeprecated": false,
44146
+ "deprecationReason": null
44147
+ },
44148
+ {
44149
+ "name": "defaultPairAddress",
44150
+ "description": null,
44151
+ "args": [],
44152
+ "type": {
44153
+ "kind": "NON_NULL",
44154
+ "name": null,
44155
+ "ofType": {
44156
+ "kind": "SCALAR",
44157
+ "name": "String",
44158
+ "ofType": null
44159
+ }
44160
+ },
44161
+ "isDeprecated": false,
44162
+ "deprecationReason": null
44163
+ },
44164
+ {
44165
+ "name": "defaultPairQuoteToken",
44166
+ "description": null,
44167
+ "args": [],
44168
+ "type": {
44169
+ "kind": "NON_NULL",
44170
+ "name": null,
44171
+ "ofType": {
44172
+ "kind": "ENUM",
44173
+ "name": "QuoteToken",
44174
+ "ofType": null
44175
+ }
44176
+ },
44177
+ "isDeprecated": false,
44178
+ "deprecationReason": null
44179
+ },
44180
+ {
44181
+ "name": "enabled",
44182
+ "description": null,
44183
+ "args": [],
44184
+ "type": {
44185
+ "kind": "NON_NULL",
44186
+ "name": null,
44187
+ "ofType": {
44188
+ "kind": "SCALAR",
44189
+ "name": "Boolean",
44190
+ "ofType": null
44191
+ }
44192
+ },
44193
+ "isDeprecated": false,
44194
+ "deprecationReason": null
44195
+ },
44196
+ {
44197
+ "name": "id",
44198
+ "description": null,
44199
+ "args": [],
44200
+ "type": {
44201
+ "kind": "NON_NULL",
44202
+ "name": null,
44203
+ "ofType": {
44204
+ "kind": "SCALAR",
44205
+ "name": "ID",
44206
+ "ofType": null
44207
+ }
44208
+ },
44209
+ "isDeprecated": false,
44210
+ "deprecationReason": null
44211
+ },
44212
+ {
44213
+ "name": "mainnet",
44214
+ "description": null,
44215
+ "args": [],
44216
+ "type": {
44217
+ "kind": "NON_NULL",
44218
+ "name": null,
44219
+ "ofType": {
44220
+ "kind": "SCALAR",
44221
+ "name": "Boolean",
44222
+ "ofType": null
44223
+ }
44224
+ },
44225
+ "isDeprecated": false,
44226
+ "deprecationReason": null
44227
+ },
44228
+ {
44229
+ "name": "name",
44230
+ "description": null,
44231
+ "args": [],
44232
+ "type": {
44233
+ "kind": "NON_NULL",
44234
+ "name": null,
44235
+ "ofType": {
44236
+ "kind": "SCALAR",
44237
+ "name": "String",
44238
+ "ofType": null
44239
+ }
44240
+ },
44241
+ "isDeprecated": false,
44242
+ "deprecationReason": null
44243
+ },
44244
+ {
44245
+ "name": "networkIconUrl",
44246
+ "description": null,
44247
+ "args": [],
44248
+ "type": {
44249
+ "kind": "NON_NULL",
44250
+ "name": null,
44251
+ "ofType": {
44252
+ "kind": "SCALAR",
44253
+ "name": "String",
44254
+ "ofType": null
44255
+ }
44256
+ },
44257
+ "isDeprecated": false,
44258
+ "deprecationReason": null
44259
+ },
44260
+ {
44261
+ "name": "networkId",
44262
+ "description": null,
44263
+ "args": [],
44264
+ "type": {
44265
+ "kind": "NON_NULL",
44266
+ "name": null,
44267
+ "ofType": {
44268
+ "kind": "SCALAR",
44269
+ "name": "Int",
44270
+ "ofType": null
44271
+ }
44272
+ },
44273
+ "isDeprecated": false,
44274
+ "deprecationReason": null
44275
+ },
44276
+ {
44277
+ "name": "networkName",
44278
+ "description": null,
44279
+ "args": [],
44280
+ "type": {
44281
+ "kind": "NON_NULL",
44282
+ "name": null,
44283
+ "ofType": {
44284
+ "kind": "SCALAR",
44285
+ "name": "String",
44286
+ "ofType": null
44287
+ }
44288
+ },
44289
+ "isDeprecated": false,
44290
+ "deprecationReason": null
44291
+ },
44292
+ {
44293
+ "name": "networkShortName",
44294
+ "description": null,
44295
+ "args": [],
44296
+ "type": {
44297
+ "kind": "NON_NULL",
44298
+ "name": null,
44299
+ "ofType": {
44300
+ "kind": "SCALAR",
44301
+ "name": "String",
44302
+ "ofType": null
44303
+ }
44304
+ },
44305
+ "isDeprecated": false,
44306
+ "deprecationReason": null
44307
+ },
44308
+ {
44309
+ "name": "newTokensEnabled",
44310
+ "description": null,
44311
+ "args": [],
44312
+ "type": {
44313
+ "kind": "SCALAR",
44314
+ "name": "Boolean",
44315
+ "ofType": null
44316
+ },
44317
+ "isDeprecated": false,
44318
+ "deprecationReason": null
44319
+ },
44320
+ {
44321
+ "name": "stableCoinAddresses",
44322
+ "description": null,
44323
+ "args": [],
44324
+ "type": {
44325
+ "kind": "LIST",
44326
+ "name": null,
44327
+ "ofType": {
44328
+ "kind": "NON_NULL",
44329
+ "name": null,
44330
+ "ofType": {
44331
+ "kind": "SCALAR",
44332
+ "name": "String",
44333
+ "ofType": null
44334
+ }
44335
+ }
44336
+ },
44337
+ "isDeprecated": false,
44338
+ "deprecationReason": null
44339
+ },
44340
+ {
44341
+ "name": "wrappedBaseTokenSymbol",
44342
+ "description": null,
44343
+ "args": [],
44344
+ "type": {
44345
+ "kind": "NON_NULL",
44346
+ "name": null,
44347
+ "ofType": {
44348
+ "kind": "SCALAR",
44349
+ "name": "String",
44350
+ "ofType": null
44351
+ }
44352
+ },
44353
+ "isDeprecated": false,
44354
+ "deprecationReason": null
44355
+ }
44356
+ ],
44357
+ "inputFields": null,
44358
+ "interfaces": [],
44359
+ "enumValues": null,
44360
+ "possibleTypes": null
44361
+ },
43908
44362
  {
43909
44363
  "kind": "OBJECT",
43910
44364
  "name": "SwapEventData",
@@ -46324,6 +46778,18 @@
46324
46778
  "isDeprecated": false,
46325
46779
  "deprecationReason": null
46326
46780
  },
46781
+ {
46782
+ "name": "notableHolderCount",
46783
+ "description": "docs: hide",
46784
+ "type": {
46785
+ "kind": "INPUT_OBJECT",
46786
+ "name": "NumberFilter",
46787
+ "ofType": null
46788
+ },
46789
+ "defaultValue": null,
46790
+ "isDeprecated": false,
46791
+ "deprecationReason": null
46792
+ },
46327
46793
  {
46328
46794
  "name": "potentialScam",
46329
46795
  "description": "Filter potential Scams",
@@ -47876,6 +48342,12 @@
47876
48342
  "isDeprecated": false,
47877
48343
  "deprecationReason": null
47878
48344
  },
48345
+ {
48346
+ "name": "notableHolderCount",
48347
+ "description": null,
48348
+ "isDeprecated": false,
48349
+ "deprecationReason": null
48350
+ },
47879
48351
  {
47880
48352
  "name": "priceUSD",
47881
48353
  "description": null,