@codex-data/sdk 1.0.32 → 1.0.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codex-data/sdk",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "engines": {
5
5
  "node": ">=17.5.0"
6
6
  },
@@ -4758,7 +4758,7 @@
4758
4758
  },
4759
4759
  {
4760
4760
  "name": "statsType",
4761
- "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`",
4761
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`.",
4762
4762
  "args": [],
4763
4763
  "type": {
4764
4764
  "kind": "NON_NULL",
@@ -5174,7 +5174,7 @@
5174
5174
  },
5175
5175
  {
5176
5176
  "name": "statsType",
5177
- "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`",
5177
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`.",
5178
5178
  "args": [],
5179
5179
  "type": {
5180
5180
  "kind": "NON_NULL",
@@ -6164,6 +6164,30 @@
6164
6164
  "isDeprecated": false,
6165
6165
  "deprecationReason": null
6166
6166
  },
6167
+ {
6168
+ "name": "isFreezableValid",
6169
+ "description": "Determines if freezable is a valid address or null value for the authority, or if the freezable state has not yet been determined.",
6170
+ "args": [],
6171
+ "type": {
6172
+ "kind": "SCALAR",
6173
+ "name": "Boolean",
6174
+ "ofType": null
6175
+ },
6176
+ "isDeprecated": false,
6177
+ "deprecationReason": null
6178
+ },
6179
+ {
6180
+ "name": "isMintableValid",
6181
+ "description": "Determines if mintable is a valid address or null value for the authority, or if the mintable state has not yet been determined.",
6182
+ "args": [],
6183
+ "type": {
6184
+ "kind": "SCALAR",
6185
+ "name": "Boolean",
6186
+ "ofType": null
6187
+ },
6188
+ "isDeprecated": false,
6189
+ "deprecationReason": null
6190
+ },
6167
6191
  {
6168
6192
  "name": "isScam",
6169
6193
  "description": "Whether the token has been flagged as a scam.",
@@ -6686,7 +6710,7 @@
6686
6710
  "fields": [
6687
6711
  {
6688
6712
  "name": "cursor",
6689
- "description": "A cursor for use in pagination.",
6713
+ "description": "A cursor for use in pagination. If non-null, more results are available; pages may be empty due to filtering.",
6690
6714
  "args": [],
6691
6715
  "type": {
6692
6716
  "kind": "SCALAR",
@@ -8924,6 +8948,22 @@
8924
8948
  "ofType": null
8925
8949
  },
8926
8950
  "defaultValue": null,
8951
+ "isDeprecated": true,
8952
+ "deprecationReason": "Use tokenIds instead"
8953
+ },
8954
+ {
8955
+ "name": "tokenIds",
8956
+ "description": "The IDs of the tokens to filter wallets for. Maximum 50 tokenIds. If you provide more than one tokenId, you must also provide at least one walletAddress in the wallets list.",
8957
+ "type": {
8958
+ "kind": "LIST",
8959
+ "name": null,
8960
+ "ofType": {
8961
+ "kind": "SCALAR",
8962
+ "name": "String",
8963
+ "ofType": null
8964
+ }
8965
+ },
8966
+ "defaultValue": null,
8927
8967
  "isDeprecated": false,
8928
8968
  "deprecationReason": null
8929
8969
  },
@@ -9208,7 +9248,7 @@
9208
9248
  },
9209
9249
  {
9210
9250
  "name": "statsType",
9211
- "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`",
9251
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`.",
9212
9252
  "type": {
9213
9253
  "kind": "ENUM",
9214
9254
  "name": "TokenPairStatisticsType",
@@ -13050,7 +13090,7 @@
13050
13090
  "fields": [
13051
13091
  {
13052
13092
  "name": "cursor",
13053
- "description": "A cursor for use in pagination.",
13093
+ "description": "A cursor for use in pagination. If non-null, more results are available; pages may be empty due to filtering.",
13054
13094
  "args": [],
13055
13095
  "type": {
13056
13096
  "kind": "SCALAR",
@@ -30472,7 +30512,7 @@
30472
30512
  },
30473
30513
  {
30474
30514
  "name": "statsType",
30475
- "description": "The type of statistics used. Can be `Filtered` or `Unfiltered`.",
30515
+ "description": "The type of statistics used. Can be `FILTERED` or `UNFILTERED`.",
30476
30516
  "args": [],
30477
30517
  "type": {
30478
30518
  "kind": "NON_NULL",
@@ -30757,7 +30797,7 @@
30757
30797
  "inputFields": [
30758
30798
  {
30759
30799
  "name": "address",
30760
- "description": null,
30800
+ "description": "The token contract address.",
30761
30801
  "type": {
30762
30802
  "kind": "NON_NULL",
30763
30803
  "name": null,
@@ -30773,7 +30813,7 @@
30773
30813
  },
30774
30814
  {
30775
30815
  "name": "networkId",
30776
- "description": null,
30816
+ "description": "The network ID the token is deployed on.",
30777
30817
  "type": {
30778
30818
  "kind": "NON_NULL",
30779
30819
  "name": null,
@@ -30789,7 +30829,7 @@
30789
30829
  },
30790
30830
  {
30791
30831
  "name": "sourcePairAddress",
30792
- "description": null,
30832
+ "description": "The pair contract address from which to get pricing. Defaults to the top pair for the token.",
30793
30833
  "type": {
30794
30834
  "kind": "SCALAR",
30795
30835
  "name": "String",
@@ -30896,7 +30936,7 @@
30896
30936
  },
30897
30937
  {
30898
30938
  "name": "statsType",
30899
- "description": "The type of statistics used. Can be `Filtered` or `Unfiltered`.",
30939
+ "description": "The type of statistics used. Only `FILTERED`.",
30900
30940
  "args": [],
30901
30941
  "type": {
30902
30942
  "kind": "NON_NULL",
@@ -30989,7 +31029,7 @@
30989
31029
  },
30990
31030
  {
30991
31031
  "name": "tokenAddress",
30992
- "description": "The token address to filter by.",
31032
+ "description": "The token address to filter by. Required unless you are on an enterprise plan including EventFeed features.",
30993
31033
  "type": {
30994
31034
  "kind": "SCALAR",
30995
31035
  "name": "String",
@@ -31346,6 +31386,18 @@
31346
31386
  "isDeprecated": false,
31347
31387
  "deprecationReason": null
31348
31388
  },
31389
+ {
31390
+ "name": "protocol",
31391
+ "description": "The protocol of the pair. E.g. UniswapV4, RaydiumV4, PumpV1, etc.",
31392
+ "args": [],
31393
+ "type": {
31394
+ "kind": "SCALAR",
31395
+ "name": "String",
31396
+ "ofType": null
31397
+ },
31398
+ "isDeprecated": false,
31399
+ "deprecationReason": null
31400
+ },
31349
31401
  {
31350
31402
  "name": "protocolCustomData",
31351
31403
  "description": "The per-protocol data for the pair, if applicable",
@@ -33451,8 +33503,8 @@
33451
33503
  "name": "String",
33452
33504
  "ofType": null
33453
33505
  },
33454
- "isDeprecated": false,
33455
- "deprecationReason": null
33506
+ "isDeprecated": true,
33507
+ "deprecationReason": "Inaccurate"
33456
33508
  },
33457
33509
  {
33458
33510
  "name": "highPrice4",
@@ -33567,8 +33619,8 @@
33567
33619
  "name": "String",
33568
33620
  "ofType": null
33569
33621
  },
33570
- "isDeprecated": false,
33571
- "deprecationReason": null
33622
+ "isDeprecated": true,
33623
+ "deprecationReason": "Inaccurate"
33572
33624
  },
33573
33625
  {
33574
33626
  "name": "lowPrice4",
@@ -33695,8 +33747,8 @@
33695
33747
  "name": "Float",
33696
33748
  "ofType": null
33697
33749
  },
33698
- "isDeprecated": false,
33699
- "deprecationReason": null
33750
+ "isDeprecated": true,
33751
+ "deprecationReason": "Inaccurate"
33700
33752
  },
33701
33753
  {
33702
33754
  "name": "priceChange4",
@@ -33776,7 +33828,7 @@
33776
33828
  },
33777
33829
  {
33778
33830
  "name": "statsType",
33779
- "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`",
33831
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`.",
33780
33832
  "args": [],
33781
33833
  "type": {
33782
33834
  "kind": "NON_NULL",
@@ -33855,8 +33907,8 @@
33855
33907
  "name": "String",
33856
33908
  "ofType": null
33857
33909
  },
33858
- "isDeprecated": false,
33859
- "deprecationReason": null
33910
+ "isDeprecated": true,
33911
+ "deprecationReason": "Inaccurate"
33860
33912
  },
33861
33913
  {
33862
33914
  "name": "volume4",
@@ -36185,8 +36237,8 @@
36185
36237
  "name": "Float",
36186
36238
  "ofType": null
36187
36239
  },
36188
- "isDeprecated": false,
36189
- "deprecationReason": null
36240
+ "isDeprecated": true,
36241
+ "deprecationReason": "Pricing no longer based on specific pools"
36190
36242
  },
36191
36243
  {
36192
36244
  "name": "internalPoolAddress",
@@ -36221,16 +36273,12 @@
36221
36273
  "description": "The pool that emitted the swap generating this price",
36222
36274
  "args": [],
36223
36275
  "type": {
36224
- "kind": "NON_NULL",
36225
- "name": null,
36226
- "ofType": {
36227
- "kind": "SCALAR",
36228
- "name": "String",
36229
- "ofType": null
36230
- }
36276
+ "kind": "SCALAR",
36277
+ "name": "String",
36278
+ "ofType": null
36231
36279
  },
36232
- "isDeprecated": false,
36233
- "deprecationReason": null
36280
+ "isDeprecated": true,
36281
+ "deprecationReason": "Pricing no longer based on specific pools"
36234
36282
  },
36235
36283
  {
36236
36284
  "name": "priceUsd",
@@ -40230,7 +40278,7 @@
40230
40278
  },
40231
40279
  {
40232
40280
  "name": "statsType",
40233
- "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`",
40281
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. Default is `UNFILTERED`.",
40234
40282
  "type": {
40235
40283
  "kind": "ENUM",
40236
40284
  "name": "TokenPairStatisticsType",
@@ -40368,7 +40416,7 @@
40368
40416
  },
40369
40417
  {
40370
40418
  "name": "statsType",
40371
- "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`",
40419
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. Default is `UNFILTERED`.",
40372
40420
  "type": {
40373
40421
  "kind": "ENUM",
40374
40422
  "name": "TokenPairStatisticsType",
@@ -40534,7 +40582,7 @@
40534
40582
  },
40535
40583
  {
40536
40584
  "name": "statsType",
40537
- "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`.",
40585
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. Default is `UNFILTERED`.",
40538
40586
  "type": {
40539
40587
  "kind": "ENUM",
40540
40588
  "name": "TokenPairStatisticsType",
@@ -40789,7 +40837,7 @@
40789
40837
  },
40790
40838
  {
40791
40839
  "name": "statsType",
40792
- "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`",
40840
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. Default is `UNFILTERED`.",
40793
40841
  "type": {
40794
40842
  "kind": "ENUM",
40795
40843
  "name": "TokenPairStatisticsType",
@@ -40907,7 +40955,7 @@
40907
40955
  },
40908
40956
  {
40909
40957
  "name": "statsType",
40910
- "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`",
40958
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. Default is `UNFILTERED`.",
40911
40959
  "type": {
40912
40960
  "kind": "ENUM",
40913
40961
  "name": "TokenPairStatisticsType",
@@ -42707,7 +42755,7 @@
42707
42755
  },
42708
42756
  {
42709
42757
  "name": "statsType",
42710
- "description": "The token of interest within the token's top pair. Can be `token0` or `token1`. If omitted, the base token is inferred automatically. You can invert the pair by quoting the other token.",
42758
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. Default is `UNFILTERED`.",
42711
42759
  "type": {
42712
42760
  "kind": "ENUM",
42713
42761
  "name": "TokenPairStatisticsType",
@@ -43444,7 +43492,7 @@
43444
43492
  },
43445
43493
  {
43446
43494
  "name": "statsType",
43447
- "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`",
43495
+ "description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. Default is `UNFILTERED`.",
43448
43496
  "type": {
43449
43497
  "kind": "ENUM",
43450
43498
  "name": "TokenPairStatisticsType",
@@ -43597,91 +43645,6 @@
43597
43645
  "isDeprecated": false,
43598
43646
  "deprecationReason": null
43599
43647
  },
43600
- {
43601
- "name": "searchTokens",
43602
- "description": "Returns a list of tokens matching a given query string.",
43603
- "args": [
43604
- {
43605
- "name": "limit",
43606
- "description": "The maximum number of tokens to return.",
43607
- "type": {
43608
- "kind": "SCALAR",
43609
- "name": "Int",
43610
- "ofType": null
43611
- },
43612
- "defaultValue": null,
43613
- "isDeprecated": false,
43614
- "deprecationReason": null
43615
- },
43616
- {
43617
- "name": "lowVolumeFilter",
43618
- "description": "Whether to filter out low volume results from the response. Low volume is less than $500 USD. This setting has no effect when only low volume results are found. Default is `true`.",
43619
- "type": {
43620
- "kind": "SCALAR",
43621
- "name": "Boolean",
43622
- "ofType": null
43623
- },
43624
- "defaultValue": null,
43625
- "isDeprecated": false,
43626
- "deprecationReason": null
43627
- },
43628
- {
43629
- "name": "networkFilter",
43630
- "description": "The list of network IDs to filter by.",
43631
- "type": {
43632
- "kind": "LIST",
43633
- "name": null,
43634
- "ofType": {
43635
- "kind": "NON_NULL",
43636
- "name": null,
43637
- "ofType": {
43638
- "kind": "SCALAR",
43639
- "name": "Int",
43640
- "ofType": null
43641
- }
43642
- }
43643
- },
43644
- "defaultValue": null,
43645
- "isDeprecated": false,
43646
- "deprecationReason": null
43647
- },
43648
- {
43649
- "name": "resolution",
43650
- "description": "The time frame to use for token metadata. Can be `60`, `240`, `720`, or `1D`.",
43651
- "type": {
43652
- "kind": "SCALAR",
43653
- "name": "String",
43654
- "ofType": null
43655
- },
43656
- "defaultValue": null,
43657
- "isDeprecated": false,
43658
- "deprecationReason": null
43659
- },
43660
- {
43661
- "name": "search",
43662
- "description": "The query string to search for. Can match a token or pair contract address or partially match a token's name or symbol. Automatically filters out tokens marked as scams.",
43663
- "type": {
43664
- "kind": "NON_NULL",
43665
- "name": null,
43666
- "ofType": {
43667
- "kind": "SCALAR",
43668
- "name": "String",
43669
- "ofType": null
43670
- }
43671
- },
43672
- "defaultValue": null,
43673
- "isDeprecated": false,
43674
- "deprecationReason": null
43675
- }
43676
- ],
43677
- "type": {
43678
- "kind": "OBJECT",
43679
- "name": "TokenSearchResponse",
43680
- "ofType": null
43681
- },
43682
- "isDeprecated": true,
43683
- "deprecationReason": "This query is no longer supported and will not return up to date data. Use `filterTokens` instead."
43684
- },
43685
43648
  {
43686
43649
  "name": "token",
43687
43650
  "description": "Returns a single token by its address & network id.",
@@ -46173,7 +46136,7 @@
46173
46136
  },
46174
46137
  {
46175
46138
  "name": "id",
46176
- "description": "The ID of the pair (`address`:`networkId`).",
46139
+ "description": "The ID of the pair (`address`:`networkId`). Required unless you are on an enterprise plan including EventFeed features.",
46177
46140
  "type": {
46178
46141
  "kind": "SCALAR",
46179
46142
  "name": "String",
@@ -46616,7 +46579,7 @@
46616
46579
  "args": [
46617
46580
  {
46618
46581
  "name": "address",
46619
- "description": "The token contract address.",
46582
+ "description": "The token contract address. Required unless you are on an enterprise plan including PriceFeed features.",
46620
46583
  "type": {
46621
46584
  "kind": "SCALAR",
46622
46585
  "name": "String",
@@ -46640,7 +46603,7 @@
46640
46603
  },
46641
46604
  {
46642
46605
  "name": "sourcePairAddress",
46643
- "description": "The pair contract address from which to get pricing",
46606
+ "description": "The pair contract address from which to get pricing. Defaults to the top pair for the token.",
46644
46607
  "type": {
46645
46608
  "kind": "SCALAR",
46646
46609
  "name": "String",
@@ -46706,7 +46669,7 @@
46706
46669
  "args": [
46707
46670
  {
46708
46671
  "name": "networkId",
46709
- "description": "The networkId to use when getting all bars per network",
46672
+ "description": "The networkId to use when getting all bars per network.",
46710
46673
  "type": {
46711
46674
  "kind": "SCALAR",
46712
46675
  "name": "Int",
@@ -46718,7 +46681,7 @@
46718
46681
  },
46719
46682
  {
46720
46683
  "name": "tokenId",
46721
- "description": "The ID of the pair (`address`:`networkId`).",
46684
+ "description": "The ID of the token (`address`:`networkId`). Required unless you are on an enterprise plan including BarFeed features.",
46722
46685
  "type": {
46723
46686
  "kind": "SCALAR",
46724
46687
  "name": "String",
@@ -46861,8 +46824,8 @@
46861
46824
  "ofType": null
46862
46825
  },
46863
46826
  "defaultValue": null,
46864
- "isDeprecated": false,
46865
- "deprecationReason": null
46827
+ "isDeprecated": true,
46828
+ "deprecationReason": "Unused"
46866
46829
  },
46867
46830
  {
46868
46831
  "name": "id",
@@ -51664,7 +51627,7 @@
51664
51627
  "fields": [
51665
51628
  {
51666
51629
  "name": "cursor",
51667
- "description": "A cursor for use in pagination.",
51630
+ "description": "A cursor for use in pagination. If non-null, more results are available; pages may be empty due to filtering.",
51668
51631
  "args": [],
51669
51632
  "type": {
51670
51633
  "kind": "SCALAR",
@@ -52784,62 +52747,6 @@
52784
52747
  ],
52785
52748
  "possibleTypes": null
52786
52749
  },
52787
- {
52788
- "kind": "OBJECT",
52789
- "name": "TokenSearchResponse",
52790
- "description": "Response returned by `searchTokens`.",
52791
- "isOneOf": null,
52792
- "fields": [
52793
- {
52794
- "name": "hasMore",
52795
- "description": "The number of additional high volume results found. Only used if `lowVolumeFilter` is set to `true`.",
52796
- "args": [],
52797
- "type": {
52798
- "kind": "SCALAR",
52799
- "name": "Int",
52800
- "ofType": null
52801
- },
52802
- "isDeprecated": false,
52803
- "deprecationReason": null
52804
- },
52805
- {
52806
- "name": "hasMoreLowVolume",
52807
- "description": "If `lowVolumeFilter` is set to `true`, the number of additional low volume results found. If `lowVolumeFilter` is set to `false`, the number of additional high and low volume results found.",
52808
- "args": [],
52809
- "type": {
52810
- "kind": "SCALAR",
52811
- "name": "Int",
52812
- "ofType": null
52813
- },
52814
- "isDeprecated": false,
52815
- "deprecationReason": null
52816
- },
52817
- {
52818
- "name": "tokens",
52819
- "description": "A list of tokens.",
52820
- "args": [],
52821
- "type": {
52822
- "kind": "LIST",
52823
- "name": null,
52824
- "ofType": {
52825
- "kind": "NON_NULL",
52826
- "name": null,
52827
- "ofType": {
52828
- "kind": "OBJECT",
52829
- "name": "TokenWithMetadata",
52830
- "ofType": null
52831
- }
52832
- }
52833
- },
52834
- "isDeprecated": false,
52835
- "deprecationReason": null
52836
- }
52837
- ],
52838
- "inputFields": null,
52839
- "interfaces": [],
52840
- "enumValues": null,
52841
- "possibleTypes": null
52842
- },
52843
52750
  {
52844
52751
  "kind": "OBJECT",
52845
52752
  "name": "TokenSparkline",