@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
@@ -86,6 +86,7 @@ query FilterPairs(
86
86
  cmcId
87
87
  description
88
88
  id
89
+ imageBannerUrl
89
90
  imageLargeUrl
90
91
  imageSmallUrl
91
92
  imageThumbUrl
@@ -147,6 +148,7 @@ query FilterPairs(
147
148
  cmcId
148
149
  description
149
150
  id
151
+ imageBannerUrl
150
152
  imageLargeUrl
151
153
  imageSmallUrl
152
154
  imageThumbUrl
@@ -219,6 +221,7 @@ query FilterPairs(
219
221
  cmcId
220
222
  description
221
223
  id
224
+ imageBannerUrl
222
225
  imageLargeUrl
223
226
  imageSmallUrl
224
227
  imageThumbUrl
@@ -279,6 +282,7 @@ query FilterPairs(
279
282
  cmcId
280
283
  description
281
284
  id
285
+ imageBannerUrl
282
286
  imageLargeUrl
283
287
  imageSmallUrl
284
288
  imageThumbUrl
@@ -91,6 +91,7 @@ query FilterTokens(
91
91
  cmcId
92
92
  description
93
93
  id
94
+ imageBannerUrl
94
95
  imageLargeUrl
95
96
  imageSmallUrl
96
97
  imageThumbUrl
@@ -152,6 +153,7 @@ query FilterTokens(
152
153
  cmcId
153
154
  description
154
155
  id
156
+ imageBannerUrl
155
157
  imageLargeUrl
156
158
  imageSmallUrl
157
159
  imageThumbUrl
@@ -219,6 +221,7 @@ query FilterTokens(
219
221
  cmcId
220
222
  description
221
223
  id
224
+ imageBannerUrl
222
225
  imageLargeUrl
223
226
  imageSmallUrl
224
227
  imageThumbUrl
@@ -57,6 +57,7 @@ query GetDetailedPairStats(
57
57
  cmcId
58
58
  description
59
59
  id
60
+ imageBannerUrl
60
61
  imageLargeUrl
61
62
  imageSmallUrl
62
63
  imageThumbUrl
@@ -118,6 +119,7 @@ query GetDetailedPairStats(
118
119
  cmcId
119
120
  description
120
121
  id
122
+ imageBannerUrl
121
123
  imageLargeUrl
122
124
  imageSmallUrl
123
125
  imageThumbUrl
@@ -41,6 +41,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
41
41
  cmcId
42
42
  description
43
43
  id
44
+ imageBannerUrl
44
45
  imageLargeUrl
45
46
  imageSmallUrl
46
47
  imageThumbUrl
@@ -102,6 +103,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
102
103
  cmcId
103
104
  description
104
105
  id
106
+ imageBannerUrl
105
107
  imageLargeUrl
106
108
  imageSmallUrl
107
109
  imageThumbUrl
@@ -0,0 +1,49 @@
1
+ query GetTokenEventsForMaker(
2
+ $cursor: String
3
+ $direction: RankingDirection
4
+ $limit: Int
5
+ $query: MakerEventsQueryInput!
6
+ ) {
7
+ getTokenEventsForMaker(
8
+ cursor: $cursor
9
+ direction: $direction
10
+ limit: $limit
11
+ query: $query
12
+ ) {
13
+ cursor
14
+ items {
15
+ address
16
+ baseTokenPrice
17
+ blockHash
18
+ blockNumber
19
+ eventDisplayType
20
+ eventType
21
+ id
22
+ labels {
23
+ sandwich {
24
+ label
25
+ sandwichType
26
+ token0DrainedAmount
27
+ token1DrainedAmount
28
+ }
29
+ washtrade {
30
+ label
31
+ }
32
+ }
33
+ liquidityToken
34
+ logIndex
35
+ maker
36
+ networkId
37
+ quoteToken
38
+ timestamp
39
+ token0PoolValueUsd
40
+ token0SwapValueUsd
41
+ token0ValueBase
42
+ token1PoolValueUsd
43
+ token1SwapValueUsd
44
+ token1ValueBase
45
+ transactionHash
46
+ transactionIndex
47
+ }
48
+ }
49
+ }
@@ -5,6 +5,7 @@ query GetTokenInfo($address: String!, $networkId: Int!) {
5
5
  cmcId
6
6
  description
7
7
  id
8
+ imageBannerUrl
8
9
  imageLargeUrl
9
10
  imageSmallUrl
10
11
  imageThumbUrl
@@ -5,6 +5,7 @@ query GetTokensInfo($input: [GetTokensInfoInput!]!) {
5
5
  cmcId
6
6
  description
7
7
  id
8
+ imageBannerUrl
8
9
  imageLargeUrl
9
10
  imageSmallUrl
10
11
  imageThumbUrl
@@ -22,6 +22,7 @@ query ListFavoriteTokens(
22
22
  tradeUrl
23
23
  }
24
24
  id
25
+ imageBannerUrl
25
26
  imageLargeUrl
26
27
  imageSmallUrl
27
28
  imageThumbUrl
@@ -41,6 +41,7 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
41
41
  cmcId
42
42
  description
43
43
  id
44
+ imageBannerUrl
44
45
  imageLargeUrl
45
46
  imageSmallUrl
46
47
  imageThumbUrl
@@ -102,6 +103,7 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
102
103
  cmcId
103
104
  description
104
105
  id
106
+ imageBannerUrl
105
107
  imageLargeUrl
106
108
  imageSmallUrl
107
109
  imageThumbUrl
@@ -34,6 +34,7 @@ query ListPairsWithMetadataForToken(
34
34
  cmcId
35
35
  description
36
36
  id
37
+ imageBannerUrl
37
38
  imageLargeUrl
38
39
  imageSmallUrl
39
40
  imageThumbUrl
@@ -118,6 +119,7 @@ query ListPairsWithMetadataForToken(
118
119
  cmcId
119
120
  description
120
121
  id
122
+ imageBannerUrl
121
123
  imageLargeUrl
122
124
  imageSmallUrl
123
125
  imageThumbUrl
@@ -179,6 +181,7 @@ query ListPairsWithMetadataForToken(
179
181
  cmcId
180
182
  description
181
183
  id
184
+ imageBannerUrl
182
185
  imageLargeUrl
183
186
  imageSmallUrl
184
187
  imageThumbUrl
@@ -241,6 +244,7 @@ query ListPairsWithMetadataForToken(
241
244
  cmcId
242
245
  description
243
246
  id
247
+ imageBannerUrl
244
248
  imageLargeUrl
245
249
  imageSmallUrl
246
250
  imageThumbUrl
@@ -18,6 +18,7 @@ query ListTopTokens($limit: Int, $networkFilter: [Int!], $resolution: String) {
18
18
  tradeUrl
19
19
  }
20
20
  id
21
+ imageBannerUrl
21
22
  imageLargeUrl
22
23
  imageSmallUrl
23
24
  imageThumbUrl
@@ -24,6 +24,7 @@ query Token($input: TokenInput!) {
24
24
  cmcId
25
25
  description
26
26
  id
27
+ imageBannerUrl
27
28
  imageLargeUrl
28
29
  imageSmallUrl
29
30
  imageThumbUrl
@@ -24,6 +24,7 @@ query Tokens($ids: [TokenInput!]) {
24
24
  cmcId
25
25
  description
26
26
  id
27
+ imageBannerUrl
27
28
  imageLargeUrl
28
29
  imageSmallUrl
29
30
  imageThumbUrl
@@ -103,6 +103,10 @@ export type AddTokenLifecycleEventsOutput = {
103
103
  events: Array<TokenLifecycleEvent>;
104
104
  id: Scalars['String']['output'];
105
105
  };
106
+ export type AddTrackedWalletEventsOutput = {
107
+ __typename?: 'AddTrackedWalletEventsOutput';
108
+ userId: Scalars['String']['output'];
109
+ };
106
110
  /** Response returned by `onUnconfirmedEventsCreated`. */
107
111
  export type AddUnconfirmedEventsOutput = {
108
112
  __typename?: 'AddUnconfirmedEventsOutput';
@@ -1107,9 +1111,10 @@ export type FrontRunLabelData = {
1107
1111
  };
1108
1112
  export type GasEstimate = {
1109
1113
  __typename?: 'GasEstimate';
1110
- approveTxHash?: Maybe<Scalars['String']['output']>;
1111
1114
  error?: Maybe<Scalars['String']['output']>;
1115
+ errorReason?: Maybe<Scalars['String']['output']>;
1112
1116
  gasLimitEstimate?: Maybe<Scalars['String']['output']>;
1117
+ gasPrice?: Maybe<Scalars['String']['output']>;
1113
1118
  totalFee?: Maybe<Scalars['String']['output']>;
1114
1119
  };
1115
1120
  export type GasFee = {
@@ -1570,6 +1575,22 @@ export type LockedLiquidityData = {
1570
1575
  /** A breakdown of how much and where liquidity is locked. */
1571
1576
  lockBreakdown: Array<Maybe<LockBreakdown>>;
1572
1577
  };
1578
+ /** Response returned by `getTokenEventsForMaker`. */
1579
+ export type MakerEventConnection = {
1580
+ __typename?: 'MakerEventConnection';
1581
+ /** A cursor for use in pagination. */
1582
+ cursor?: Maybe<Scalars['String']['output']>;
1583
+ /** A list of transactions for a token's top pair. */
1584
+ items?: Maybe<Array<Maybe<Event>>>;
1585
+ };
1586
+ export type MakerEventsQueryInput = {
1587
+ /** The specific wallet address to filter by. */
1588
+ maker: Scalars['String']['input'];
1589
+ /** The network ID to filter by. */
1590
+ networkId: Scalars['Int']['input'];
1591
+ /** The token of interest. Can be `token0` or `token1`. */
1592
+ quoteToken?: InputMaybe<QuoteToken>;
1593
+ };
1573
1594
  /** The status for a network supported on Defined. */
1574
1595
  export type MetadataResponse = {
1575
1596
  __typename?: 'MetadataResponse';
@@ -1582,6 +1603,16 @@ export type MetadataResponse = {
1582
1603
  /** The name of the network. */
1583
1604
  networkName: Scalars['String']['output'];
1584
1605
  };
1606
+ export type MigrateTrackedWalletsInput = {
1607
+ fromUserId: Scalars['String']['input'];
1608
+ toUserId: Scalars['String']['input'];
1609
+ };
1610
+ export type MigrateTrackedWalletsOutput = {
1611
+ __typename?: 'MigrateTrackedWalletsOutput';
1612
+ fromUserId: Scalars['String']['output'];
1613
+ status: Scalars['String']['output'];
1614
+ toUserId: Scalars['String']['output'];
1615
+ };
1585
1616
  /** Event data for a token mint event. */
1586
1617
  export type MintEventData = {
1587
1618
  __typename?: 'MintEventData';
@@ -5405,6 +5436,7 @@ export type Query = {
5405
5436
  /** Returns new tokens listed over the last three days. */
5406
5437
  getLatestPairs?: Maybe<LatestPairConnection>;
5407
5438
  getLatestTokens?: Maybe<LatestTokenConnection>;
5439
+ /** Returns metadata for a given network. */
5408
5440
  getNetworkStats?: Maybe<GetNetworkStatsResponse>;
5409
5441
  /** Returns the status of a list of networks supported on Defined. */
5410
5442
  getNetworkStatus?: Maybe<Array<MetadataResponse>>;
@@ -5449,6 +5481,7 @@ export type Query = {
5449
5481
  getTokenCount: Scalars['String']['output'];
5450
5482
  /** Returns transactions for a pair. */
5451
5483
  getTokenEvents?: Maybe<EventConnection>;
5484
+ getTokenEventsForMaker?: Maybe<MakerEventConnection>;
5452
5485
  /** Returns metadata for a given token. */
5453
5486
  getTokenInfo?: Maybe<TokenInfo>;
5454
5487
  /** Returns real-time or historical prices for a list of tokens, fetched in batches. */
@@ -5763,6 +5796,12 @@ export type QueryGetTokenEventsArgs = {
5763
5796
  limit?: InputMaybe<Scalars['Int']['input']>;
5764
5797
  query: EventsQueryInput;
5765
5798
  };
5799
+ export type QueryGetTokenEventsForMakerArgs = {
5800
+ cursor?: InputMaybe<Scalars['String']['input']>;
5801
+ direction?: InputMaybe<RankingDirection>;
5802
+ limit?: InputMaybe<Scalars['Int']['input']>;
5803
+ query: MakerEventsQueryInput;
5804
+ };
5766
5805
  export type QueryGetTokenInfoArgs = {
5767
5806
  address: Scalars['String']['input'];
5768
5807
  networkId: Scalars['Int']['input'];
@@ -6842,6 +6881,8 @@ export type TokenInfo = {
6842
6881
  description?: Maybe<Scalars['String']['output']>;
6843
6882
  /** Uniquely identifies the token. */
6844
6883
  id: Scalars['String']['output'];
6884
+ /** The token banner URL. */
6885
+ imageBannerUrl?: Maybe<Scalars['String']['output']>;
6845
6886
  /** The large token logo URL. */
6846
6887
  imageLargeUrl?: Maybe<Scalars['String']['output']>;
6847
6888
  /** The small token logo URL. */
@@ -7069,6 +7110,8 @@ export type TokenWithMetadata = {
7069
7110
  exchanges: Array<Exchange>;
7070
7111
  /** The ID of the token (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
7071
7112
  id: Scalars['String']['output'];
7113
+ /** The token banner URL. */
7114
+ imageBannerUrl?: Maybe<Scalars['String']['output']>;
7072
7115
  /** The token logo URL. */
7073
7116
  imageLargeUrl?: Maybe<Scalars['String']['output']>;
7074
7117
  /** The token logo URL. */