@codex-data/sdk 1.0.0-rc1 → 1.0.0-rc2

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 (59) hide show
  1. package/dist/resources/generated_queries/FilterPairs.graphql +4 -0
  2. package/dist/resources/generated_queries/FilterTokens.graphql +3 -0
  3. package/dist/resources/generated_queries/GetDetailedPairStats.graphql +2 -0
  4. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +2 -0
  5. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
  6. package/dist/resources/generated_queries/GetTokenInfo.graphql +1 -0
  7. package/dist/resources/generated_queries/GetTokensInfo.graphql +1 -0
  8. package/dist/resources/generated_queries/ListFavoriteTokens.graphql +1 -0
  9. package/dist/resources/generated_queries/ListPairsForToken.graphql +2 -0
  10. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +4 -0
  11. package/dist/resources/generated_queries/ListTopTokens.graphql +1 -0
  12. package/dist/resources/generated_queries/Token.graphql +1 -0
  13. package/dist/resources/generated_queries/Tokens.graphql +1 -0
  14. package/dist/resources/graphql.d.ts +44 -1
  15. package/dist/resources/graphql.d.ts.map +1 -1
  16. package/dist/resources/graphql.js.map +1 -1
  17. package/dist/resources/graphql.schema.json +334 -5
  18. package/dist/resources/graphql.ts +51 -1
  19. package/dist/resources/schema.graphql +48 -3
  20. package/dist/sdk/Mutation.d.ts +1 -1
  21. package/dist/sdk/Mutation.js +1 -1
  22. package/dist/sdk/Query.d.ts +55 -54
  23. package/dist/sdk/Query.d.ts.map +1 -1
  24. package/dist/sdk/Query.js +54 -53
  25. package/dist/sdk/Query.js.map +1 -1
  26. package/dist/sdk/Subscribe.d.ts +10 -10
  27. package/dist/sdk/Subscribe.d.ts.map +1 -1
  28. package/dist/sdk/Subscribe.js +53 -53
  29. package/dist/sdk/Subscribe.js.map +1 -1
  30. package/dist/sdk/generated/gql.d.ts +34 -24
  31. package/dist/sdk/generated/gql.d.ts.map +1 -1
  32. package/dist/sdk/generated/gql.js +13 -12
  33. package/dist/sdk/generated/gql.js.map +1 -1
  34. package/dist/sdk/generated/graphql.d.ts +124 -1
  35. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  36. package/dist/sdk/generated/graphql.js +15 -14
  37. package/dist/sdk/generated/graphql.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/resources/generated_queries/FilterPairs.graphql +4 -0
  40. package/src/resources/generated_queries/FilterTokens.graphql +3 -0
  41. package/src/resources/generated_queries/GetDetailedPairStats.graphql +2 -0
  42. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +2 -0
  43. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
  44. package/src/resources/generated_queries/GetTokenInfo.graphql +1 -0
  45. package/src/resources/generated_queries/GetTokensInfo.graphql +1 -0
  46. package/src/resources/generated_queries/ListFavoriteTokens.graphql +1 -0
  47. package/src/resources/generated_queries/ListPairsForToken.graphql +2 -0
  48. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +4 -0
  49. package/src/resources/generated_queries/ListTopTokens.graphql +1 -0
  50. package/src/resources/generated_queries/Token.graphql +1 -0
  51. package/src/resources/generated_queries/Tokens.graphql +1 -0
  52. package/src/resources/graphql.schema.json +334 -5
  53. package/src/resources/graphql.ts +51 -1
  54. package/src/resources/schema.graphql +48 -3
  55. package/src/sdk/Mutation.ts +2 -2
  56. package/src/sdk/Query.ts +117 -113
  57. package/src/sdk/Subscribe.ts +84 -84
  58. package/src/sdk/generated/gql.ts +29 -24
  59. package/src/sdk/generated/graphql.ts +86 -25
@@ -104,6 +104,10 @@ export type AddTokenLifecycleEventsOutput = {
104
104
  events: Array<TokenLifecycleEvent>;
105
105
  id: Scalars['String']['output'];
106
106
  };
107
+ export type AddTrackedWalletEventsOutput = {
108
+ __typename?: 'AddTrackedWalletEventsOutput';
109
+ userId: Scalars['String']['output'];
110
+ };
107
111
  /** Response returned by `onUnconfirmedEventsCreated`. */
108
112
  export type AddUnconfirmedEventsOutput = {
109
113
  __typename?: 'AddUnconfirmedEventsOutput';
@@ -1108,9 +1112,10 @@ export type FrontRunLabelData = {
1108
1112
  };
1109
1113
  export type GasEstimate = {
1110
1114
  __typename?: 'GasEstimate';
1111
- approveTxHash?: Maybe<Scalars['String']['output']>;
1112
1115
  error?: Maybe<Scalars['String']['output']>;
1116
+ errorReason?: Maybe<Scalars['String']['output']>;
1113
1117
  gasLimitEstimate?: Maybe<Scalars['String']['output']>;
1118
+ gasPrice?: Maybe<Scalars['String']['output']>;
1114
1119
  totalFee?: Maybe<Scalars['String']['output']>;
1115
1120
  };
1116
1121
  export type GasFee = {
@@ -1571,6 +1576,22 @@ export type LockedLiquidityData = {
1571
1576
  /** A breakdown of how much and where liquidity is locked. */
1572
1577
  lockBreakdown: Array<Maybe<LockBreakdown>>;
1573
1578
  };
1579
+ /** Response returned by `getTokenEventsForMaker`. */
1580
+ export type MakerEventConnection = {
1581
+ __typename?: 'MakerEventConnection';
1582
+ /** A cursor for use in pagination. */
1583
+ cursor?: Maybe<Scalars['String']['output']>;
1584
+ /** A list of transactions for a token's top pair. */
1585
+ items?: Maybe<Array<Maybe<Event>>>;
1586
+ };
1587
+ export type MakerEventsQueryInput = {
1588
+ /** The specific wallet address to filter by. */
1589
+ maker: Scalars['String']['input'];
1590
+ /** The network ID to filter by. */
1591
+ networkId: Scalars['Int']['input'];
1592
+ /** The token of interest. Can be `token0` or `token1`. */
1593
+ quoteToken?: InputMaybe<QuoteToken>;
1594
+ };
1574
1595
  /** The status for a network supported on Defined. */
1575
1596
  export type MetadataResponse = {
1576
1597
  __typename?: 'MetadataResponse';
@@ -1583,6 +1604,16 @@ export type MetadataResponse = {
1583
1604
  /** The name of the network. */
1584
1605
  networkName: Scalars['String']['output'];
1585
1606
  };
1607
+ export type MigrateTrackedWalletsInput = {
1608
+ fromUserId: Scalars['String']['input'];
1609
+ toUserId: Scalars['String']['input'];
1610
+ };
1611
+ export type MigrateTrackedWalletsOutput = {
1612
+ __typename?: 'MigrateTrackedWalletsOutput';
1613
+ fromUserId: Scalars['String']['output'];
1614
+ status: Scalars['String']['output'];
1615
+ toUserId: Scalars['String']['output'];
1616
+ };
1586
1617
  /** Event data for a token mint event. */
1587
1618
  export type MintEventData = {
1588
1619
  __typename?: 'MintEventData';
@@ -5406,6 +5437,7 @@ export type Query = {
5406
5437
  /** Returns new tokens listed over the last three days. */
5407
5438
  getLatestPairs?: Maybe<LatestPairConnection>;
5408
5439
  getLatestTokens?: Maybe<LatestTokenConnection>;
5440
+ /** Returns metadata for a given network. */
5409
5441
  getNetworkStats?: Maybe<GetNetworkStatsResponse>;
5410
5442
  /** Returns the status of a list of networks supported on Defined. */
5411
5443
  getNetworkStatus?: Maybe<Array<MetadataResponse>>;
@@ -5450,6 +5482,7 @@ export type Query = {
5450
5482
  getTokenCount: Scalars['String']['output'];
5451
5483
  /** Returns transactions for a pair. */
5452
5484
  getTokenEvents?: Maybe<EventConnection>;
5485
+ getTokenEventsForMaker?: Maybe<MakerEventConnection>;
5453
5486
  /** Returns metadata for a given token. */
5454
5487
  getTokenInfo?: Maybe<TokenInfo>;
5455
5488
  /** Returns real-time or historical prices for a list of tokens, fetched in batches. */
@@ -5764,6 +5797,12 @@ export type QueryGetTokenEventsArgs = {
5764
5797
  limit?: InputMaybe<Scalars['Int']['input']>;
5765
5798
  query: EventsQueryInput;
5766
5799
  };
5800
+ export type QueryGetTokenEventsForMakerArgs = {
5801
+ cursor?: InputMaybe<Scalars['String']['input']>;
5802
+ direction?: InputMaybe<RankingDirection>;
5803
+ limit?: InputMaybe<Scalars['Int']['input']>;
5804
+ query: MakerEventsQueryInput;
5805
+ };
5767
5806
  export type QueryGetTokenInfoArgs = {
5768
5807
  address: Scalars['String']['input'];
5769
5808
  networkId: Scalars['Int']['input'];
@@ -6843,6 +6882,8 @@ export type TokenInfo = {
6843
6882
  description?: Maybe<Scalars['String']['output']>;
6844
6883
  /** Uniquely identifies the token. */
6845
6884
  id: Scalars['String']['output'];
6885
+ /** The token banner URL. */
6886
+ imageBannerUrl?: Maybe<Scalars['String']['output']>;
6846
6887
  /** The large token logo URL. */
6847
6888
  imageLargeUrl?: Maybe<Scalars['String']['output']>;
6848
6889
  /** The small token logo URL. */
@@ -7070,6 +7111,8 @@ export type TokenWithMetadata = {
7070
7111
  exchanges: Array<Exchange>;
7071
7112
  /** The ID of the token (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
7072
7113
  id: Scalars['String']['output'];
7114
+ /** The token banner URL. */
7115
+ imageBannerUrl?: Maybe<Scalars['String']['output']>;
7073
7116
  /** The token logo URL. */
7074
7117
  imageLargeUrl?: Maybe<Scalars['String']['output']>;
7075
7118
  /** The token logo URL. */
@@ -8778,6 +8821,7 @@ export type FilterPairsQuery = {
8778
8821
  cmcId?: number | null;
8779
8822
  description?: string | null;
8780
8823
  id: string;
8824
+ imageBannerUrl?: string | null;
8781
8825
  imageLargeUrl?: string | null;
8782
8826
  imageSmallUrl?: string | null;
8783
8827
  imageThumbUrl?: string | null;
@@ -8842,6 +8886,7 @@ export type FilterPairsQuery = {
8842
8886
  cmcId?: number | null;
8843
8887
  description?: string | null;
8844
8888
  id: string;
8889
+ imageBannerUrl?: string | null;
8845
8890
  imageLargeUrl?: string | null;
8846
8891
  imageSmallUrl?: string | null;
8847
8892
  imageThumbUrl?: string | null;
@@ -8907,6 +8952,7 @@ export type FilterPairsQuery = {
8907
8952
  cmcId?: number | null;
8908
8953
  description?: string | null;
8909
8954
  id: string;
8955
+ imageBannerUrl?: string | null;
8910
8956
  imageLargeUrl?: string | null;
8911
8957
  imageSmallUrl?: string | null;
8912
8958
  imageThumbUrl?: string | null;
@@ -8971,6 +9017,7 @@ export type FilterPairsQuery = {
8971
9017
  cmcId?: number | null;
8972
9018
  description?: string | null;
8973
9019
  id: string;
9020
+ imageBannerUrl?: string | null;
8974
9021
  imageLargeUrl?: string | null;
8975
9022
  imageSmallUrl?: string | null;
8976
9023
  imageThumbUrl?: string | null;
@@ -9131,6 +9178,7 @@ export type FilterTokensQuery = {
9131
9178
  cmcId?: number | null;
9132
9179
  description?: string | null;
9133
9180
  id: string;
9181
+ imageBannerUrl?: string | null;
9134
9182
  imageLargeUrl?: string | null;
9135
9183
  imageSmallUrl?: string | null;
9136
9184
  imageThumbUrl?: string | null;
@@ -9195,6 +9243,7 @@ export type FilterTokensQuery = {
9195
9243
  cmcId?: number | null;
9196
9244
  description?: string | null;
9197
9245
  id: string;
9246
+ imageBannerUrl?: string | null;
9198
9247
  imageLargeUrl?: string | null;
9199
9248
  imageSmallUrl?: string | null;
9200
9249
  imageThumbUrl?: string | null;
@@ -9260,6 +9309,7 @@ export type FilterTokensQuery = {
9260
9309
  cmcId?: number | null;
9261
9310
  description?: string | null;
9262
9311
  id: string;
9312
+ imageBannerUrl?: string | null;
9263
9313
  imageLargeUrl?: string | null;
9264
9314
  imageSmallUrl?: string | null;
9265
9315
  imageThumbUrl?: string | null;
@@ -10402,6 +10452,7 @@ export type GetDetailedPairStatsQuery = {
10402
10452
  cmcId?: number | null;
10403
10453
  description?: string | null;
10404
10454
  id: string;
10455
+ imageBannerUrl?: string | null;
10405
10456
  imageLargeUrl?: string | null;
10406
10457
  imageSmallUrl?: string | null;
10407
10458
  imageThumbUrl?: string | null;
@@ -10466,6 +10517,7 @@ export type GetDetailedPairStatsQuery = {
10466
10517
  cmcId?: number | null;
10467
10518
  description?: string | null;
10468
10519
  id: string;
10520
+ imageBannerUrl?: string | null;
10469
10521
  imageLargeUrl?: string | null;
10470
10522
  imageSmallUrl?: string | null;
10471
10523
  imageThumbUrl?: string | null;
@@ -11483,6 +11535,7 @@ export type GetDetailedPairsStatsQuery = {
11483
11535
  cmcId?: number | null;
11484
11536
  description?: string | null;
11485
11537
  id: string;
11538
+ imageBannerUrl?: string | null;
11486
11539
  imageLargeUrl?: string | null;
11487
11540
  imageSmallUrl?: string | null;
11488
11541
  imageThumbUrl?: string | null;
@@ -11547,6 +11600,7 @@ export type GetDetailedPairsStatsQuery = {
11547
11600
  cmcId?: number | null;
11548
11601
  description?: string | null;
11549
11602
  id: string;
11603
+ imageBannerUrl?: string | null;
11550
11604
  imageLargeUrl?: string | null;
11551
11605
  imageSmallUrl?: string | null;
11552
11606
  imageThumbUrl?: string | null;
@@ -13798,6 +13852,57 @@ export type GetTokenEventsQuery = {
13798
13852
  } | null> | null;
13799
13853
  } | null;
13800
13854
  };
13855
+ export type GetTokenEventsForMakerQueryVariables = Exact<{
13856
+ cursor?: InputMaybe<Scalars['String']['input']>;
13857
+ direction?: InputMaybe<RankingDirection>;
13858
+ limit?: InputMaybe<Scalars['Int']['input']>;
13859
+ query: MakerEventsQueryInput;
13860
+ }>;
13861
+ export type GetTokenEventsForMakerQuery = {
13862
+ __typename?: 'Query';
13863
+ getTokenEventsForMaker?: {
13864
+ __typename?: 'MakerEventConnection';
13865
+ cursor?: string | null;
13866
+ items?: Array<{
13867
+ __typename?: 'Event';
13868
+ address: string;
13869
+ baseTokenPrice?: string | null;
13870
+ blockHash: string;
13871
+ blockNumber: number;
13872
+ eventDisplayType?: EventDisplayType | null;
13873
+ eventType: EventType;
13874
+ id: string;
13875
+ liquidityToken?: string | null;
13876
+ logIndex: number;
13877
+ maker?: string | null;
13878
+ networkId: number;
13879
+ quoteToken?: QuoteToken | null;
13880
+ timestamp: number;
13881
+ token0PoolValueUsd?: string | null;
13882
+ token0SwapValueUsd?: string | null;
13883
+ token0ValueBase?: string | null;
13884
+ token1PoolValueUsd?: string | null;
13885
+ token1SwapValueUsd?: string | null;
13886
+ token1ValueBase?: string | null;
13887
+ transactionHash: string;
13888
+ transactionIndex: number;
13889
+ labels?: {
13890
+ __typename?: 'LabelsForEvent';
13891
+ sandwich?: {
13892
+ __typename?: 'SandwichLabelForEvent';
13893
+ label: string;
13894
+ sandwichType: SandwichLabelForEventType;
13895
+ token0DrainedAmount: string;
13896
+ token1DrainedAmount: string;
13897
+ } | null;
13898
+ washtrade?: {
13899
+ __typename?: 'WashtradeLabelForEvent';
13900
+ label: string;
13901
+ } | null;
13902
+ } | null;
13903
+ } | null> | null;
13904
+ } | null;
13905
+ };
13801
13906
  export type GetTokenInfoQueryVariables = Exact<{
13802
13907
  address: Scalars['String']['input'];
13803
13908
  networkId: Scalars['Int']['input'];
@@ -13811,6 +13916,7 @@ export type GetTokenInfoQuery = {
13811
13916
  cmcId?: number | null;
13812
13917
  description?: string | null;
13813
13918
  id: string;
13919
+ imageBannerUrl?: string | null;
13814
13920
  imageLargeUrl?: string | null;
13815
13921
  imageSmallUrl?: string | null;
13816
13922
  imageThumbUrl?: string | null;
@@ -13847,6 +13953,7 @@ export type GetTokensInfoQuery = {
13847
13953
  cmcId?: number | null;
13848
13954
  description?: string | null;
13849
13955
  id: string;
13956
+ imageBannerUrl?: string | null;
13850
13957
  imageLargeUrl?: string | null;
13851
13958
  imageSmallUrl?: string | null;
13852
13959
  imageThumbUrl?: string | null;
@@ -14003,6 +14110,7 @@ export type ListFavoriteTokensQuery = {
14003
14110
  createdAt?: number | null;
14004
14111
  decimals?: number | null;
14005
14112
  id: string;
14113
+ imageBannerUrl?: string | null;
14006
14114
  imageLargeUrl?: string | null;
14007
14115
  imageSmallUrl?: string | null;
14008
14116
  imageThumbUrl?: string | null;
@@ -14103,6 +14211,7 @@ export type ListPairsForTokenQuery = {
14103
14211
  cmcId?: number | null;
14104
14212
  description?: string | null;
14105
14213
  id: string;
14214
+ imageBannerUrl?: string | null;
14106
14215
  imageLargeUrl?: string | null;
14107
14216
  imageSmallUrl?: string | null;
14108
14217
  imageThumbUrl?: string | null;
@@ -14167,6 +14276,7 @@ export type ListPairsForTokenQuery = {
14167
14276
  cmcId?: number | null;
14168
14277
  description?: string | null;
14169
14278
  id: string;
14279
+ imageBannerUrl?: string | null;
14170
14280
  imageLargeUrl?: string | null;
14171
14281
  imageSmallUrl?: string | null;
14172
14282
  imageThumbUrl?: string | null;
@@ -14247,6 +14357,7 @@ export type ListPairsWithMetadataForTokenQuery = {
14247
14357
  cmcId?: number | null;
14248
14358
  description?: string | null;
14249
14359
  id: string;
14360
+ imageBannerUrl?: string | null;
14250
14361
  imageLargeUrl?: string | null;
14251
14362
  imageSmallUrl?: string | null;
14252
14363
  imageThumbUrl?: string | null;
@@ -14338,6 +14449,7 @@ export type ListPairsWithMetadataForTokenQuery = {
14338
14449
  cmcId?: number | null;
14339
14450
  description?: string | null;
14340
14451
  id: string;
14452
+ imageBannerUrl?: string | null;
14341
14453
  imageLargeUrl?: string | null;
14342
14454
  imageSmallUrl?: string | null;
14343
14455
  imageThumbUrl?: string | null;
@@ -14402,6 +14514,7 @@ export type ListPairsWithMetadataForTokenQuery = {
14402
14514
  cmcId?: number | null;
14403
14515
  description?: string | null;
14404
14516
  id: string;
14517
+ imageBannerUrl?: string | null;
14405
14518
  imageLargeUrl?: string | null;
14406
14519
  imageSmallUrl?: string | null;
14407
14520
  imageThumbUrl?: string | null;
@@ -14467,6 +14580,7 @@ export type ListPairsWithMetadataForTokenQuery = {
14467
14580
  cmcId?: number | null;
14468
14581
  description?: string | null;
14469
14582
  id: string;
14583
+ imageBannerUrl?: string | null;
14470
14584
  imageLargeUrl?: string | null;
14471
14585
  imageSmallUrl?: string | null;
14472
14586
  imageThumbUrl?: string | null;
@@ -14515,6 +14629,7 @@ export type ListTopTokensQuery = {
14515
14629
  createdAt?: number | null;
14516
14630
  decimals?: number | null;
14517
14631
  id: string;
14632
+ imageBannerUrl?: string | null;
14518
14633
  imageLargeUrl?: string | null;
14519
14634
  imageSmallUrl?: string | null;
14520
14635
  imageThumbUrl?: string | null;
@@ -14760,6 +14875,7 @@ export type TokenQuery = {
14760
14875
  cmcId?: number | null;
14761
14876
  description?: string | null;
14762
14877
  id: string;
14878
+ imageBannerUrl?: string | null;
14763
14879
  imageLargeUrl?: string | null;
14764
14880
  imageSmallUrl?: string | null;
14765
14881
  imageThumbUrl?: string | null;
@@ -14872,6 +14988,7 @@ export type TokensQuery = {
14872
14988
  cmcId?: number | null;
14873
14989
  description?: string | null;
14874
14990
  id: string;
14991
+ imageBannerUrl?: string | null;
14875
14992
  imageLargeUrl?: string | null;
14876
14993
  imageSmallUrl?: string | null;
14877
14994
  imageThumbUrl?: string | null;
@@ -16779,6 +16896,12 @@ export declare const GetTokenEventsDocument: DocumentNode<GetTokenEventsQuery, E
16779
16896
  limit?: InputMaybe<number> | undefined;
16780
16897
  query: EventsQueryInput;
16781
16898
  }>>;
16899
+ export declare const GetTokenEventsForMakerDocument: DocumentNode<GetTokenEventsForMakerQuery, Exact<{
16900
+ cursor?: InputMaybe<string> | undefined;
16901
+ direction?: InputMaybe<RankingDirection> | undefined;
16902
+ limit?: InputMaybe<number> | undefined;
16903
+ query: MakerEventsQueryInput;
16904
+ }>>;
16782
16905
  export declare const GetTokenInfoDocument: DocumentNode<GetTokenInfoQuery, Exact<{
16783
16906
  address: Scalars['String']['input'];
16784
16907
  networkId: Scalars['Int']['input'];