@codex-data/sdk 1.0.4 → 1.0.6

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 (60) hide show
  1. package/dist/resources/generated_queries/Balances.graphql +3 -0
  2. package/dist/resources/generated_queries/GetNetworkStats.graphql +7 -0
  3. package/dist/resources/generated_queries/Holders.graphql +3 -0
  4. package/dist/resources/generated_queries/LiquidityLocks.graphql +1 -1
  5. package/dist/resources/generated_queries/PrimeHolders.graphql +3 -0
  6. package/dist/resources/generated_queries/TokenTopTraders.graphql +26 -0
  7. package/dist/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
  8. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
  9. package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
  10. package/dist/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
  11. package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
  12. package/dist/resources/graphql.d.ts +245 -12
  13. package/dist/resources/graphql.d.ts.map +1 -1
  14. package/dist/resources/graphql.js +38 -2
  15. package/dist/resources/graphql.js.map +1 -1
  16. package/dist/resources/graphql.schema.json +1800 -27
  17. package/dist/resources/graphql.ts +261 -12
  18. package/dist/resources/schema.graphql +311 -12
  19. package/dist/sdk/Mutation.d.ts +2 -2
  20. package/dist/sdk/Mutation.d.ts.map +1 -1
  21. package/dist/sdk/Mutation.js +2 -2
  22. package/dist/sdk/Mutation.js.map +1 -1
  23. package/dist/sdk/Query.d.ts +48 -48
  24. package/dist/sdk/Query.d.ts.map +1 -1
  25. package/dist/sdk/Query.js +47 -47
  26. package/dist/sdk/Query.js.map +1 -1
  27. package/dist/sdk/Subscribe.d.ts +16 -14
  28. package/dist/sdk/Subscribe.d.ts.map +1 -1
  29. package/dist/sdk/Subscribe.js +93 -79
  30. package/dist/sdk/Subscribe.js.map +1 -1
  31. package/dist/sdk/generated/gql.d.ts +39 -25
  32. package/dist/sdk/generated/gql.d.ts.map +1 -1
  33. package/dist/sdk/generated/gql.js +11 -9
  34. package/dist/sdk/generated/gql.js.map +1 -1
  35. package/dist/sdk/generated/graphql.d.ts +426 -62
  36. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  37. package/dist/sdk/generated/graphql.js +51 -13
  38. package/dist/sdk/generated/graphql.js.map +1 -1
  39. package/package.json +2 -2
  40. package/src/resources/generated_queries/Balances.graphql +3 -0
  41. package/src/resources/generated_queries/GetNetworkStats.graphql +7 -0
  42. package/src/resources/generated_queries/Holders.graphql +3 -0
  43. package/src/resources/generated_queries/LiquidityLocks.graphql +1 -1
  44. package/src/resources/generated_queries/PrimeHolders.graphql +3 -0
  45. package/src/resources/generated_queries/TokenTopTraders.graphql +26 -0
  46. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
  47. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
  48. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
  49. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
  50. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
  51. package/src/resources/graphql.schema.json +1800 -27
  52. package/src/resources/graphql.ts +261 -12
  53. package/src/resources/schema.graphql +311 -12
  54. package/src/sdk/Mutation.ts +4 -4
  55. package/src/sdk/Query.ts +101 -101
  56. package/src/sdk/Subscribe.ts +151 -121
  57. package/src/sdk/generated/gql.ts +31 -21
  58. package/src/sdk/generated/graphql.ts +301 -36
  59. package/dist/resources/generated_queries/GetLatestTokens.graphql +0 -39
  60. package/src/resources/generated_queries/GetLatestTokens.graphql +0 -39
@@ -138,6 +138,25 @@ type ApiToken {
138
138
  remaining: String
139
139
  }
140
140
 
141
+ type AptosNetworkConfig {
142
+ id: ID!
143
+ networkId: Int!
144
+ baseTokenAddress: String!
145
+ baseTokenSymbol: String!
146
+ color: String
147
+ defaultPairAddress: String!
148
+ defaultPairQuoteToken: QuoteToken!
149
+ enabled: Boolean!
150
+ newTokensEnabled: Boolean
151
+ mainnet: Boolean!
152
+ name: String!
153
+ networkIconUrl: String!
154
+ networkName: String!
155
+ networkShortName: String!
156
+ stableCoinAddresses: [String!]
157
+ wrappedBaseTokenSymbol: String!
158
+ }
159
+
141
160
  """Wallet balance of a token."""
142
161
  type Balance {
143
162
  """The ID of the wallet (`walletAddress:networkId`)."""
@@ -146,6 +165,15 @@ type Balance {
146
165
  """The ID of the token (`tokenAddress:networkId`)."""
147
166
  tokenId: String!
148
167
 
168
+ """The wallet address."""
169
+ address: String!
170
+
171
+ """The wallet network."""
172
+ networkId: Int!
173
+
174
+ """The contract address of the token."""
175
+ tokenAddress: String!
176
+
149
177
  """The balance held by the wallet."""
150
178
  balance: String!
151
179
 
@@ -154,13 +182,16 @@ type Balance {
154
182
  """
155
183
  shiftedBalance: Float!
156
184
 
157
- """The time that this address first held a token"""
185
+ """The time that this address first held a token."""
158
186
  firstHeldTimestamp: Int
159
187
  }
160
188
 
161
189
  input BalancesInput {
162
190
  """The ID of the wallet (`walletAddress:networkId`)."""
163
- walletId: String!
191
+ walletId: String
192
+
193
+ """The wallet address to filter by."""
194
+ walletAddress: String
164
195
 
165
196
  """A cursor for use in pagination."""
166
197
  cursor: String
@@ -172,6 +203,9 @@ input BalancesInput {
172
203
  If set to true, native tokens in the response, they will have the id: native:<networkId>
173
204
  """
174
205
  includeNative: Boolean
206
+
207
+ """The maximum number of holdings to return."""
208
+ limit: Int
175
209
  }
176
210
 
177
211
  type BalancesResponse {
@@ -1164,10 +1198,17 @@ type EnhancedToken {
1164
1198
  """Whether or not the token is freezable"""
1165
1199
  freezable: String
1166
1200
 
1167
- """Launchpad data for the token"""
1201
+ """The launchpad data for the token, if applicable."""
1168
1202
  launchpad: LaunchpadData
1169
1203
  }
1170
1204
 
1205
+ enum Entitlement {
1206
+ PriceFeed
1207
+ BalanceFeed
1208
+ TopTraders
1209
+ WalletStats
1210
+ }
1211
+
1171
1212
  """A token transaction."""
1172
1213
  type Event {
1173
1214
  """The contract address of the token's top pair."""
@@ -1390,6 +1431,9 @@ input EventsQueryInput {
1390
1431
  The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`).
1391
1432
  """
1392
1433
  priceUsdTotal: NumberFilter
1434
+
1435
+ """Specify the type of symbol you want to fetch values for (TOKEN | POOL)"""
1436
+ symbolType: SymbolType
1393
1437
  }
1394
1438
 
1395
1439
  """The event type for a token transaction."""
@@ -1727,6 +1771,24 @@ type GetNetworkStatsResponse {
1727
1771
  """The network trade volume in USD over the past hour."""
1728
1772
  volume1: Float!
1729
1773
 
1774
+ """The network trade volume in USD over the past 5 minutes."""
1775
+ volume5m: Float!
1776
+
1777
+ """The network trade volume change over the last 24 hours"""
1778
+ volumeChange24: Float!
1779
+
1780
+ """The network trade volume change over the last 12 hours"""
1781
+ volumeChange12: Float!
1782
+
1783
+ """The network trade volume change over the last 4 hours"""
1784
+ volumeChange4: Float!
1785
+
1786
+ """The network trade volume change over the last hour"""
1787
+ volumeChange1: Float!
1788
+
1789
+ """The network trade volume change over the last 5 minutes"""
1790
+ volumeChange5m: Float!
1791
+
1730
1792
  """The network liquidity in USD."""
1731
1793
  liquidity: Float!
1732
1794
 
@@ -1741,6 +1803,9 @@ type GetNetworkStatsResponse {
1741
1803
 
1742
1804
  """The unique number of transactions in the past hour."""
1743
1805
  transactions1: Int!
1806
+
1807
+ """The unique number of transactions in the past 5 minutes."""
1808
+ transactions5m: Int!
1744
1809
  }
1745
1810
 
1746
1811
  """Response returned by `getNftPoolCollectionsByExchange`."""
@@ -2190,7 +2255,6 @@ type LatestTokenSimResults {
2190
2255
  openTradingCall: String
2191
2256
  }
2192
2257
 
2193
- """Launchpad data for the token"""
2194
2258
  type LaunchpadData {
2195
2259
  """The percentage of the pool that was sold to the public."""
2196
2260
  graduationPercent: Float
@@ -2220,6 +2284,61 @@ type LaunchpadData {
2220
2284
  migratedPoolAddress: String
2221
2285
  }
2222
2286
 
2287
+ """Response returned by `onLaunchpadTokenEvent`."""
2288
+ type LaunchpadTokenEventOutput {
2289
+ """The contract address of the token."""
2290
+ address: String!
2291
+
2292
+ """The network ID that the token is deployed on."""
2293
+ networkId: Int!
2294
+
2295
+ """The protocol of the token."""
2296
+ protocol: String!
2297
+
2298
+ """Metadata for the token."""
2299
+ token: EnhancedToken!
2300
+
2301
+ """The number of buys in the last 24 hours."""
2302
+ buyCount1: Int
2303
+
2304
+ """The type of event."""
2305
+ eventType: LaunchpadTokenEventType!
2306
+
2307
+ """The number of holders."""
2308
+ holders: Int
2309
+
2310
+ """The market cap of the token."""
2311
+ marketCap: String
2312
+
2313
+ """The price of the token."""
2314
+ price: Float
2315
+
2316
+ """The number of sells in the last 24 hours."""
2317
+ sellCount1: Int
2318
+
2319
+ """The volume of the token in the last 24 hours."""
2320
+ volume1: Int
2321
+
2322
+ """The number of transactions in the last 24 hours."""
2323
+ transactions1: Int
2324
+ }
2325
+
2326
+ """
2327
+ The type of event. Note that associated statistics such as `buyCount1`, `price`, etc. are only available for `Updated` events.
2328
+ """
2329
+ enum LaunchpadTokenEventType {
2330
+ Updated
2331
+ Created
2332
+ Completed
2333
+ Migrated
2334
+ }
2335
+
2336
+ """The protocol of the token."""
2337
+ enum LaunchpadTokenProtocol {
2338
+ Pump
2339
+ FourMeme
2340
+ }
2341
+
2223
2342
  scalar link__Import
2224
2343
 
2225
2344
  enum link__Purpose {
@@ -2266,7 +2385,10 @@ type LiquidityLock {
2266
2385
  lockProtocol: LiquidityLockProtocol!
2267
2386
 
2268
2387
  """The protocol that created the pair"""
2269
- liquidityProtocol: LiquidityProtocol!
2388
+ liquidityProtocol: LiquidityProtocol! @deprecated(reason: "Use liquidityProtocolV2 instead")
2389
+
2390
+ """The protocol that created the pair"""
2391
+ liquidityProtocolV2: String!
2270
2392
 
2271
2393
  """The amount of liquidity locked."""
2272
2394
  liquidityAmount: String!
@@ -2323,6 +2445,8 @@ enum LiquidityProtocol {
2323
2445
  UNISWAP_V3
2324
2446
  UNISWAP_V2
2325
2447
  RAYDIUM_V4
2448
+ PUMP_V1
2449
+ USE_LIQUIDITY_PROTOCOL_V2
2326
2450
  }
2327
2451
 
2328
2452
  """Response returned by `listPairsWithMetadataForToken`."""
@@ -6073,8 +6197,18 @@ input OneOfNumberConditionInput {
6073
6197
  oneOf: [Int!]!
6074
6198
  }
6075
6199
 
6076
- input OnLaunchpadTokenUpdatedInput {
6200
+ """Input for `onLaunchpadTokenEvent`."""
6201
+ input OnLaunchpadTokenEventInput {
6202
+ """The protocol of the token."""
6203
+ protocol: LaunchpadTokenProtocol
6204
+
6205
+ """The type of event."""
6206
+ eventType: LaunchpadTokenEventType
6207
+
6208
+ """The contract address of the token."""
6077
6209
  address: String
6210
+
6211
+ """The network ID that the token is deployed on."""
6078
6212
  networkId: Int
6079
6213
  }
6080
6214
 
@@ -6121,7 +6255,7 @@ type OnTokenBarsUpdatedResponse {
6121
6255
  }
6122
6256
 
6123
6257
  input OnTokenEventsCreatedInput {
6124
- tokenAddress: String!
6258
+ tokenAddress: String
6125
6259
  networkId: Int!
6126
6260
  }
6127
6261
 
@@ -6609,6 +6743,11 @@ input PairFilters {
6609
6743
 
6610
6744
  """Whether to ignore pairs/tokens not relevant to trending"""
6611
6745
  trendingIgnored: Boolean
6746
+
6747
+ """
6748
+ 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
+ """
6750
+ isTestnet: Boolean
6612
6751
  }
6613
6752
 
6614
6753
  type PairMetadata {
@@ -6795,6 +6934,7 @@ enum PairRankingAttribute {
6795
6934
  sellCount12
6796
6935
  sellCount24
6797
6936
  trendingScore
6937
+ trendingScore5m
6798
6938
  trendingScore1
6799
6939
  trendingScore4
6800
6940
  trendingScore12
@@ -7961,10 +8101,10 @@ type Query {
7961
8101
  """
7962
8102
  apiToken(token: String!): ApiToken!
7963
8103
 
7964
- """Returns a list of all networks supported on Defined."""
8104
+ """Returns a list of all networks supported on Codex."""
7965
8105
  getNetworks: [Network!]!
7966
8106
 
7967
- """Returns the status of a list of networks supported on Defined."""
8107
+ """Returns the status of a list of networks supported on Codex."""
7968
8108
  getNetworkStatus(
7969
8109
  """The list of network IDs."""
7970
8110
  networkIds: [Int!]!
@@ -8586,7 +8726,9 @@ type Query {
8586
8726
  resolution: String
8587
8727
  ): [TokenWithMetadata!]
8588
8728
 
8589
- """Returns metadata for a given pair."""
8729
+ """
8730
+ Returns charting metadata for a given pair. Used for implementing a Trading View datafeed.
8731
+ """
8590
8732
  getSymbol(
8591
8733
  """The ID of the pair (`address:networkId`)."""
8592
8734
  symbol: String!
@@ -8597,7 +8739,7 @@ type Query {
8597
8739
  currencyCode: String
8598
8740
  ): SymbolResponse
8599
8741
 
8600
- """Returns metadata for a given network."""
8742
+ """Returns metadata for a given network supported on Codex."""
8601
8743
  getNetworkStats(
8602
8744
  """The network Id to filter by."""
8603
8745
  networkId: Int!
@@ -8866,7 +9008,7 @@ type Query {
8866
9008
 
8867
9009
  """The offset to use for pagination."""
8868
9010
  offset: Int
8869
- ): LatestTokenConnection
9011
+ ): LatestTokenConnection @deprecated(reason: "This query is no longer supported. Use `filterTokens` with a createdAt: DESC filter instead.")
8870
9012
 
8871
9013
  """Returns liquidity locks for a given pair."""
8872
9014
  liquidityLocks(
@@ -8891,6 +9033,9 @@ type Query {
8891
9033
  networkId: Int!
8892
9034
  ): LiquidityMetadata
8893
9035
 
9036
+ """Returns a list of top traders for a given token."""
9037
+ tokenTopTraders(input: TokenTopTradersInput!): TokenTopTradersConnection!
9038
+
8894
9039
  """Returns community gathered notes."""
8895
9040
  getCommunityNotes(input: CommunityNotesInput): CommunityNotesResponse!
8896
9041
  }
@@ -9422,6 +9567,25 @@ type SparklineValue {
9422
9567
  value: Float!
9423
9568
  }
9424
9569
 
9570
+ type StarknetNetworkConfig {
9571
+ id: ID!
9572
+ networkId: Int!
9573
+ baseTokenAddress: String!
9574
+ baseTokenSymbol: String!
9575
+ color: String
9576
+ defaultPairAddress: String!
9577
+ defaultPairQuoteToken: QuoteToken!
9578
+ enabled: Boolean!
9579
+ newTokensEnabled: Boolean
9580
+ mainnet: Boolean!
9581
+ name: String!
9582
+ networkIconUrl: String!
9583
+ networkName: String!
9584
+ networkShortName: String!
9585
+ stableCoinAddresses: [String!]
9586
+ wrappedBaseTokenSymbol: String!
9587
+ }
9588
+
9425
9589
  """Currency stats."""
9426
9590
  input statsCurrency {
9427
9591
  """The volume over the time frame."""
@@ -9604,6 +9768,9 @@ type Subscription {
9604
9768
 
9605
9769
  """docs: hide"""
9606
9770
  statsType: TokenPairStatisticsType
9771
+
9772
+ """The networkId to use when getting all bars per network"""
9773
+ networkId: Int
9607
9774
  ): OnTokenBarsUpdatedResponse
9608
9775
 
9609
9776
  """Live-streamed transactions for a token."""
@@ -9616,6 +9783,9 @@ type Subscription {
9616
9783
 
9617
9784
  """The token of interest within the pair. Can be `token0` or `token1`."""
9618
9785
  quoteToken: QuoteToken
9786
+
9787
+ """The networkId to use when getting all events per network"""
9788
+ networkId: Int
9619
9789
  ): AddEventsOutput
9620
9790
 
9621
9791
  """Live-streamed unconfirmed transactions for a token. (Solana only)"""
@@ -9703,6 +9873,9 @@ type Subscription {
9703
9873
  """
9704
9874
  onHoldersUpdated(tokenId: String!): HoldersUpdate
9705
9875
 
9876
+ """Live-streamed balance updates for a given wallet."""
9877
+ onBalanceUpdated(walletAddress: String!): Balance!
9878
+
9706
9879
  """Live-streamed token lifecycle events (mints and burns)."""
9707
9880
  onTokenLifecycleEventsCreated(
9708
9881
  """The token contract address."""
@@ -9711,6 +9884,7 @@ type Subscription {
9711
9884
  """The network ID the token is deployed on."""
9712
9885
  networkId: Int
9713
9886
  ): AddTokenLifecycleEventsOutput!
9887
+ onLaunchpadTokenEvent(input: OnLaunchpadTokenEventInput): LaunchpadTokenEventOutput!
9714
9888
  }
9715
9889
 
9716
9890
  type SuiNetworkConfig {
@@ -10486,6 +10660,11 @@ input TokenFilters {
10486
10660
  """
10487
10661
  includeScams: Boolean
10488
10662
 
10663
+ """
10664
+ Whether to filter for tokens on testnet networks. Use `true` for testnet tokens only, `false` for mainnet tokens only and `undefined` (default) for both.
10665
+ """
10666
+ isTestnet: Boolean
10667
+
10489
10668
  """Only include verified tokens"""
10490
10669
  isVerified: Boolean
10491
10670
 
@@ -10497,6 +10676,27 @@ input TokenFilters {
10497
10676
 
10498
10677
  """The address of the creator of the token"""
10499
10678
  creatorAddress: String
10679
+
10680
+ """Indicates if the launchpad is completed"""
10681
+ launchpadCompleted: Boolean
10682
+
10683
+ """Indicates if the launchpad has migrated"""
10684
+ launchpadMigrated: Boolean
10685
+
10686
+ """The graduation percentage"""
10687
+ launchpadGraduationPercent: NumberFilter
10688
+
10689
+ """The timestamp when the launchpad was completed"""
10690
+ launchpadCompletedAt: NumberFilter
10691
+
10692
+ """The timestamp when the launchpad was migrated"""
10693
+ launchpadMigratedAt: NumberFilter
10694
+
10695
+ """The token in freezable"""
10696
+ freezable: Boolean
10697
+
10698
+ """The token in mintable"""
10699
+ mintable: Boolean
10500
10700
  }
10501
10701
 
10502
10702
  """Metadata for a token."""
@@ -10769,6 +10969,7 @@ enum TokenRankingAttribute {
10769
10969
  sellCount12
10770
10970
  sellCount24
10771
10971
  trendingScore
10972
+ trendingScore5m
10772
10973
  trendingScore1
10773
10974
  trendingScore4
10774
10975
  trendingScore12
@@ -10798,6 +10999,9 @@ enum TokenRankingAttribute {
10798
10999
  volume4
10799
11000
  volume12
10800
11001
  volume24
11002
+ launchpadCompletedAt
11003
+ launchpadMigratedAt
11004
+ graduationPercent
10801
11005
  }
10802
11006
 
10803
11007
  """Response returned by `searchTokens`."""
@@ -10834,6 +11038,93 @@ input TokenSparklineInput {
10834
11038
  ids: [String!]!
10835
11039
  }
10836
11040
 
11041
+ """A top trader for a token."""
11042
+ type TokenTopTrader {
11043
+ """The wallet address of the trader."""
11044
+ walletAddress: String!
11045
+
11046
+ """The token address."""
11047
+ tokenAddress: String!
11048
+
11049
+ """The network ID."""
11050
+ networkId: Int!
11051
+
11052
+ """The amount of tokens bought."""
11053
+ tokenAmountBought: String!
11054
+
11055
+ """The amount of tokens sold."""
11056
+ tokenAmountSold: String!
11057
+
11058
+ """The amount of tokens bought in USD."""
11059
+ amountBoughtUsd: String!
11060
+
11061
+ """The amount of tokens sold in USD."""
11062
+ amountSoldUsd: String!
11063
+
11064
+ """The volume of tokens bought and sold in USD."""
11065
+ volumeUsd: String!
11066
+
11067
+ """The realized profit in USD."""
11068
+ realizedProfitUsd: String!
11069
+
11070
+ """The realized profit percentage."""
11071
+ realizedProfitPercentage: Float!
11072
+
11073
+ """The single token acquisition cost in USD."""
11074
+ singleTokenAcquisitionCostUsd: String!
11075
+
11076
+ """The number of buys."""
11077
+ buys: Int!
11078
+
11079
+ """The number of sells."""
11080
+ sells: Int!
11081
+
11082
+ """The token balance of the trader."""
11083
+ tokenBalance: String!
11084
+
11085
+ """The unix timestamp for the first transaction from this wallet."""
11086
+ firstTransactionAt: Int
11087
+
11088
+ """The unix timestamp for the last transaction from this wallet."""
11089
+ lastTransactionAt: Int!
11090
+ }
11091
+
11092
+ """A paginated list of top traders for a token."""
11093
+ type TokenTopTradersConnection {
11094
+ """The token address."""
11095
+ tokenAddress: String!
11096
+
11097
+ """The network ID."""
11098
+ networkId: Int!
11099
+
11100
+ """The trading period."""
11101
+ tradingPeriod: TradingPeriod!
11102
+
11103
+ """The list of top traders."""
11104
+ items: [TokenTopTrader]!
11105
+
11106
+ """The offset of the first trader in the connection."""
11107
+ offset: Int
11108
+ }
11109
+
11110
+ """Input arguments for the `tokenTopTraders` query."""
11111
+ input TokenTopTradersInput {
11112
+ """The token address"""
11113
+ tokenAddress: String!
11114
+
11115
+ """The network ID"""
11116
+ networkId: Int!
11117
+
11118
+ """The trading period"""
11119
+ tradingPeriod: TradingPeriod!
11120
+
11121
+ """The number of traders to return"""
11122
+ limit: Int
11123
+
11124
+ """Where in the list the server started when returning items"""
11125
+ offset: Int
11126
+ }
11127
+
10837
11128
  """A token with metadata."""
10838
11129
  type TokenWithMetadata {
10839
11130
  """The contract address of the token."""
@@ -10955,6 +11246,14 @@ type TokenWithMetadata {
10955
11246
  lastTransaction: Int
10956
11247
  }
10957
11248
 
11249
+ """A time period used when calculating wallet trading data."""
11250
+ enum TradingPeriod {
11251
+ DAY
11252
+ WEEK
11253
+ MONTH
11254
+ YEAR
11255
+ }
11256
+
10958
11257
  """An unconfirmed token transaction."""
10959
11258
  type UnconfirmedEvent {
10960
11259
  """The contract address of the token's top pair."""
@@ -3,9 +3,9 @@ import { Codex } from "./index";
3
3
  export declare class Mutation {
4
4
  private sdk;
5
5
  constructor(sdk: Codex);
6
- createWebhooks: (vars: CreateWebhooksMutationVariables) => Promise<import("./generated/graphql").CreateWebhooksMutation>;
7
- deleteWebhooks: (vars: DeleteWebhooksMutationVariables) => Promise<import("./generated/graphql").DeleteWebhooksMutation>;
8
6
  createApiTokens: (vars: CreateApiTokensMutationVariables) => Promise<import("./generated/graphql").CreateApiTokensMutation>;
7
+ deleteWebhooks: (vars: DeleteWebhooksMutationVariables) => Promise<import("./generated/graphql").DeleteWebhooksMutation>;
8
+ createWebhooks: (vars: CreateWebhooksMutationVariables) => Promise<import("./generated/graphql").CreateWebhooksMutation>;
9
9
  deleteApiToken: (vars: DeleteApiTokenMutationVariables) => Promise<import("./generated/graphql").DeleteApiTokenMutation>;
10
10
  }
11
11
  //# sourceMappingURL=Mutation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Mutation.d.ts","sourceRoot":"","sources":["../../src/sdk/Mutation.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,gCAAgC,EAEhC,+BAA+B,EAE/B,+BAA+B,EAE/B,+BAA+B,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,QAAQ;IACP,OAAO,CAAC,GAAG;gBAAH,GAAG,EAAE,KAAK;IAC9B,cAAc,SAAgB,+BAA+B,mEACX;IAClD,cAAc,SAAgB,+BAA+B,mEACX;IAClD,eAAe,SAAgB,gCAAgC,oEACZ;IACnD,cAAc,SAAgB,+BAA+B,mEACX;CACnD"}
1
+ {"version":3,"file":"Mutation.d.ts","sourceRoot":"","sources":["../../src/sdk/Mutation.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,gCAAgC,EAEhC,+BAA+B,EAE/B,+BAA+B,EAE/B,+BAA+B,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,QAAQ;IACP,OAAO,CAAC,GAAG;gBAAH,GAAG,EAAE,KAAK;IAC9B,eAAe,SAAgB,gCAAgC,oEACZ;IACnD,cAAc,SAAgB,+BAA+B,mEACX;IAClD,cAAc,SAAgB,+BAA+B,mEACX;IAClD,cAAc,SAAgB,+BAA+B,mEACX;CACnD"}
@@ -15,9 +15,9 @@ const graphql_1 = require("./generated/graphql");
15
15
  class Mutation {
16
16
  constructor(sdk) {
17
17
  this.sdk = sdk;
18
- this.createWebhooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.CreateWebhooksDocument, vars); });
19
- this.deleteWebhooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.DeleteWebhooksDocument, vars); });
20
18
  this.createApiTokens = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.CreateApiTokensDocument, vars); });
19
+ this.deleteWebhooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.DeleteWebhooksDocument, vars); });
20
+ this.createWebhooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.CreateWebhooksDocument, vars); });
21
21
  this.deleteApiToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.DeleteApiTokenDocument, vars); });
22
22
  }
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Mutation.js","sourceRoot":"","sources":["../../src/sdk/Mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAAgE;AAChE,iDAS6B;AAG7B,MAAa,QAAQ;IACnB,YAAoB,GAAU;QAAV,QAAG,GAAH,GAAG,CAAO;QAC9B,mBAAc,GAAG,CAAO,IAAqC,EAAE,EAAE,gDAC/D,OAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,gCAAsB,EAAE,IAAI,CAAC,CAAA,GAAA,CAAC;QAClD,mBAAc,GAAG,CAAO,IAAqC,EAAE,EAAE,gDAC/D,OAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,gCAAsB,EAAE,IAAI,CAAC,CAAA,GAAA,CAAC;QAClD,oBAAe,GAAG,CAAO,IAAsC,EAAE,EAAE,gDACjE,OAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iCAAuB,EAAE,IAAI,CAAC,CAAA,GAAA,CAAC;QACnD,mBAAc,GAAG,CAAO,IAAqC,EAAE,EAAE,gDAC/D,OAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,gCAAsB,EAAE,IAAI,CAAC,CAAA,GAAA,CAAC;IARjB,CAAC;CASnC;AAVD,4BAUC"}
1
+ {"version":3,"file":"Mutation.js","sourceRoot":"","sources":["../../src/sdk/Mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAAgE;AAChE,iDAS6B;AAG7B,MAAa,QAAQ;IACnB,YAAoB,GAAU;QAAV,QAAG,GAAH,GAAG,CAAO;QAC9B,oBAAe,GAAG,CAAO,IAAsC,EAAE,EAAE,gDACjE,OAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iCAAuB,EAAE,IAAI,CAAC,CAAA,GAAA,CAAC;QACnD,mBAAc,GAAG,CAAO,IAAqC,EAAE,EAAE,gDAC/D,OAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,gCAAsB,EAAE,IAAI,CAAC,CAAA,GAAA,CAAC;QAClD,mBAAc,GAAG,CAAO,IAAqC,EAAE,EAAE,gDAC/D,OAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,gCAAsB,EAAE,IAAI,CAAC,CAAA,GAAA,CAAC;QAClD,mBAAc,GAAG,CAAO,IAAqC,EAAE,EAAE,gDAC/D,OAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,gCAAsB,EAAE,IAAI,CAAC,CAAA,GAAA,CAAC;IARjB,CAAC;CASnC;AAVD,4BAUC"}