@codex-data/sdk 1.0.6 → 1.0.8

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 (158) hide show
  1. package/dist/resources/graphql.d.ts +1336 -16
  2. package/dist/resources/graphql.d.ts.map +1 -1
  3. package/dist/resources/graphql.js +224 -1
  4. package/dist/resources/graphql.js.map +1 -1
  5. package/dist/scripts/generateGraphql.js +3 -4
  6. package/dist/scripts/generateGraphql.js.map +1 -1
  7. package/dist/sdk/Mutation.d.ts +1 -1
  8. package/dist/sdk/Mutation.d.ts.map +1 -1
  9. package/dist/sdk/Mutation.js +1 -1
  10. package/dist/sdk/Mutation.js.map +1 -1
  11. package/dist/sdk/Query.d.ts +54 -50
  12. package/dist/sdk/Query.d.ts.map +1 -1
  13. package/dist/sdk/Query.js +53 -49
  14. package/dist/sdk/Query.js.map +1 -1
  15. package/dist/sdk/Subscribe.d.ts +18 -17
  16. package/dist/sdk/Subscribe.d.ts.map +1 -1
  17. package/dist/sdk/Subscribe.js +170 -76
  18. package/dist/sdk/Subscribe.js.map +1 -1
  19. package/dist/sdk/generated/gql.d.ts +69 -34
  20. package/dist/sdk/generated/gql.d.ts.map +1 -1
  21. package/dist/sdk/generated/gql.js +22 -17
  22. package/dist/sdk/generated/gql.js.map +1 -1
  23. package/dist/sdk/generated/graphql.d.ts +2002 -17
  24. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  25. package/dist/sdk/generated/graphql.js +248 -20
  26. package/dist/sdk/generated/graphql.js.map +1 -1
  27. package/dist/sdk/index.d.ts +11 -3
  28. package/dist/sdk/index.d.ts.map +1 -1
  29. package/dist/sdk/index.js +33 -19
  30. package/dist/sdk/index.js.map +1 -1
  31. package/dist/sdk/index.test.js +2 -2
  32. package/dist/sdk/index.test.js.map +1 -1
  33. package/package.json +1 -2
  34. package/src/resources/generated_queries/DetailedWalletStats.graphql +197 -0
  35. package/src/resources/generated_queries/FilterPairs.graphql +20 -0
  36. package/src/resources/generated_queries/FilterTokenWallets.graphql +139 -0
  37. package/src/resources/generated_queries/FilterTokens.graphql +21 -0
  38. package/src/resources/generated_queries/FilterWallets.graphql +56 -0
  39. package/src/resources/generated_queries/GetBars.graphql +4 -1
  40. package/src/resources/generated_queries/GetCommunityNotes.graphql +2 -0
  41. package/src/resources/generated_queries/GetDetailedPairStats.graphql +4 -0
  42. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +4 -0
  43. package/src/resources/generated_queries/GetTokenEvents.graphql +1 -0
  44. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +1 -0
  45. package/src/resources/generated_queries/ListPairsForToken.graphql +4 -0
  46. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +8 -0
  47. package/src/resources/generated_queries/PairMetadata.graphql +4 -0
  48. package/src/resources/generated_queries/Token.graphql +2 -0
  49. package/src/resources/generated_queries/Tokens.graphql +2 -0
  50. package/src/resources/generated_queries/WalletChart.graphql +19 -0
  51. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +1 -0
  52. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +2 -0
  53. package/{dist/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql → src/resources/generated_subscriptions/OnLaunchpadTokenEventBatch.graphql} +4 -2
  54. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +4 -0
  55. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +1 -0
  56. package/src/resources/graphql.schema.json +16044 -7731
  57. package/src/resources/graphql.ts +1378 -16
  58. package/src/resources/schema.graphql +1882 -25
  59. package/src/resources/subscriptions_override/OnLaunchpadTokenEventBatch.graphql +91 -0
  60. package/src/scripts/generateGraphql.ts +2 -4
  61. package/src/sdk/Mutation.ts +2 -2
  62. package/src/sdk/Query.ts +120 -104
  63. package/src/sdk/Subscribe.ts +217 -115
  64. package/src/sdk/generated/gql.ts +59 -34
  65. package/src/sdk/generated/graphql.ts +1450 -50
  66. package/src/sdk/index.test.ts +3 -3
  67. package/src/sdk/index.ts +69 -18
  68. package/dist/resources/generated_mutations/CreateApiTokens.graphql +0 -9
  69. package/dist/resources/generated_mutations/CreateWebhooks.graphql +0 -472
  70. package/dist/resources/generated_mutations/DeleteApiToken.graphql +0 -3
  71. package/dist/resources/generated_mutations/DeleteWebhooks.graphql +0 -5
  72. package/dist/resources/generated_queries/ApiToken.graphql +0 -9
  73. package/dist/resources/generated_queries/ApiTokens.graphql +0 -9
  74. package/dist/resources/generated_queries/Balances.graphql +0 -15
  75. package/dist/resources/generated_queries/ChartUrls.graphql +0 -7
  76. package/dist/resources/generated_queries/FilterExchanges.graphql +0 -43
  77. package/dist/resources/generated_queries/FilterNftCollections.graphql +0 -569
  78. package/dist/resources/generated_queries/FilterNftParallelAssets.graphql +0 -60
  79. package/dist/resources/generated_queries/FilterNftPoolCollections.graphql +0 -71
  80. package/dist/resources/generated_queries/FilterNftPools.graphql +0 -124
  81. package/dist/resources/generated_queries/FilterPairs.graphql +0 -399
  82. package/dist/resources/generated_queries/FilterTokens.graphql +0 -336
  83. package/dist/resources/generated_queries/GetBars.graphql +0 -209
  84. package/dist/resources/generated_queries/GetCommunityNotes.graphql +0 -133
  85. package/dist/resources/generated_queries/GetDetailedNftStats.graphql +0 -831
  86. package/dist/resources/generated_queries/GetDetailedPairStats.graphql +0 -966
  87. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +0 -950
  88. package/dist/resources/generated_queries/GetEventLabels.graphql +0 -35
  89. package/dist/resources/generated_queries/GetExchanges.graphql +0 -12
  90. package/dist/resources/generated_queries/GetNetworkStats.graphql +0 -20
  91. package/dist/resources/generated_queries/GetNetworkStatus.graphql +0 -8
  92. package/dist/resources/generated_queries/GetNetworks.graphql +0 -7
  93. package/dist/resources/generated_queries/GetNftAssets.graphql +0 -59
  94. package/dist/resources/generated_queries/GetNftCollectionMetadata.graphql +0 -75
  95. package/dist/resources/generated_queries/GetNftContracts.graphql +0 -39
  96. package/dist/resources/generated_queries/GetNftEvents.graphql +0 -100
  97. package/dist/resources/generated_queries/GetNftPool.graphql +0 -74
  98. package/dist/resources/generated_queries/GetNftPoolCollection.graphql +0 -33
  99. package/dist/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +0 -38
  100. package/dist/resources/generated_queries/GetNftPoolEvents.graphql +0 -416
  101. package/dist/resources/generated_queries/GetNftPoolStats.graphql +0 -40
  102. package/dist/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +0 -89
  103. package/dist/resources/generated_queries/GetNftPoolsByOwner.graphql +0 -89
  104. package/dist/resources/generated_queries/GetParallelCardChanges.graphql +0 -57
  105. package/dist/resources/generated_queries/GetPrimePoolAssets.graphql +0 -32
  106. package/dist/resources/generated_queries/GetPrimePoolEvents.graphql +0 -156
  107. package/dist/resources/generated_queries/GetPrimePools.graphql +0 -62
  108. package/dist/resources/generated_queries/GetSimulateTokenContractResults.graphql +0 -128
  109. package/dist/resources/generated_queries/GetSymbol.graphql +0 -11
  110. package/dist/resources/generated_queries/GetTokenEvents.graphql +0 -100
  111. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +0 -100
  112. package/dist/resources/generated_queries/GetTokenPrices.graphql +0 -10
  113. package/dist/resources/generated_queries/GetWebhooks.graphql +0 -134
  114. package/dist/resources/generated_queries/Holders.graphql +0 -18
  115. package/dist/resources/generated_queries/LiquidityLocks.graphql +0 -26
  116. package/dist/resources/generated_queries/LiquidityMetadata.graphql +0 -17
  117. package/dist/resources/generated_queries/ListPairsForToken.graphql +0 -169
  118. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +0 -338
  119. package/dist/resources/generated_queries/ListTopTokens.graphql +0 -55
  120. package/dist/resources/generated_queries/NftHolders.graphql +0 -12
  121. package/dist/resources/generated_queries/PairMetadata.graphql +0 -225
  122. package/dist/resources/generated_queries/PrimeHolders.graphql +0 -16
  123. package/dist/resources/generated_queries/SearchNfts.graphql +0 -35
  124. package/dist/resources/generated_queries/Token.graphql +0 -76
  125. package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +0 -34
  126. package/dist/resources/generated_queries/TokenSparklines.graphql +0 -10
  127. package/dist/resources/generated_queries/TokenTopTraders.graphql +0 -26
  128. package/dist/resources/generated_queries/Tokens.graphql +0 -76
  129. package/dist/resources/generated_queries/Top10HoldersPercent.graphql +0 -3
  130. package/dist/resources/generated_queries/WalletNftCollectionAssets.graphql +0 -11
  131. package/dist/resources/generated_queries/WalletNftCollections.graphql +0 -10
  132. package/dist/resources/generated_subscriptions/OnBalanceUpdated.graphql +0 -12
  133. package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +0 -555
  134. package/dist/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +0 -332
  135. package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +0 -22
  136. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +0 -103
  137. package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +0 -18
  138. package/dist/resources/generated_subscriptions/OnLatestPairUpdated.graphql +0 -42
  139. package/dist/resources/generated_subscriptions/OnLatestTokens.graphql +0 -37
  140. package/dist/resources/generated_subscriptions/OnNftAssetsCreated.graphql +0 -42
  141. package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +0 -82
  142. package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +0 -412
  143. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +0 -225
  144. package/dist/resources/generated_subscriptions/OnPriceUpdated.graphql +0 -18
  145. package/dist/resources/generated_subscriptions/OnPricesUpdated.graphql +0 -10
  146. package/dist/resources/generated_subscriptions/OnSimulateTokenContract.graphql +0 -121
  147. package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +0 -556
  148. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +0 -90
  149. package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +0 -30
  150. package/dist/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +0 -70
  151. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +0 -50
  152. package/dist/resources/graphql.schema.json +0 -55231
  153. package/dist/resources/graphql.ts +0 -8865
  154. package/dist/resources/mutations_override/CreateWebhooks.graphql +0 -472
  155. package/dist/resources/queries_override/GetEventLabels.graphql +0 -35
  156. package/dist/resources/queries_override/GetWebhooks.graphql +0 -134
  157. package/dist/resources/schema.graphql +0 -11771
  158. package/dist/resources/subscriptions_override/OnEventLabelCreated.graphql +0 -22
@@ -44,7 +44,7 @@ describe("Codex", () => {
44
44
  .spyOn(sdk["client"], "request")
45
45
  .mockResolvedValue({} as unknown);
46
46
  await sdk.query(getNetworksDocument, {});
47
- expect(fetchSpy).toHaveBeenCalledWith(getNetworksDocument, {});
47
+ expect(fetchSpy).toHaveBeenCalledWith(getNetworksDocument, {}, {});
48
48
  });
49
49
  });
50
50
  describe("send", () => {
@@ -53,7 +53,7 @@ describe("Codex", () => {
53
53
  .spyOn(sdk["client"], "request")
54
54
  .mockResolvedValue({} as unknown);
55
55
  await sdk.send(getNetworksString, {});
56
- expect(fetchSpy).toHaveBeenCalledWith(getNetworksString, {});
56
+ expect(fetchSpy).toHaveBeenCalledWith(getNetworksString, {}, {});
57
57
  });
58
58
  });
59
59
  describe("subscribe", () => {
@@ -66,7 +66,7 @@ describe("Codex", () => {
66
66
  error,
67
67
  complete,
68
68
  };
69
- jest.spyOn(sdk["wsClient"], "subscribe").mockReturnValue(() => {});
69
+ jest.spyOn(sdk["wsClient"] as any, "subscribe").mockReturnValue(() => {});
70
70
  const cleanup = sdk.subscribe(
71
71
  subscribePriceUpdatedString,
72
72
  { address: "0xtoken", networkId: 1 },
package/src/sdk/index.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { TypedDocumentNode } from "@graphql-typed-document-node/core";
2
2
  import { GraphQLClient, Variables } from "graphql-request";
3
- import { VariablesAndRequestHeadersArgs } from "graphql-request/build/esm/types";
4
3
  import {
5
4
  Client as GraphQLWsClient,
6
5
  createClient,
@@ -16,47 +15,90 @@ import { Subscribe } from "./Subscribe";
16
15
 
17
16
  export type CleanupFunction = () => void;
18
17
 
18
+ export type ApiConfig = {
19
+ // https://graph.codex.io/graphql
20
+ apiUrl: string;
21
+
22
+ // wss://graph.codex.io/graphql
23
+ apiRealtimeUrl: string;
24
+
25
+ // true if you want to connect a websocket, sometimes useful to turn this off in certain environments
26
+ ws?: boolean;
27
+
28
+ // Add static headers to the http requests
29
+ headers?: Record<string, string>;
30
+
31
+ // Add static headers to the ws requests
32
+ wsHeaders?: Record<string, string>;
33
+
34
+ // Use this to apply dynamic headers to the requests
35
+ applyHeaders?: () => Promise<Record<string, string>>;
36
+ };
37
+
38
+ const defaultConfig: ApiConfig = {
39
+ apiUrl: `https://graph.codex.io/graphql`,
40
+ apiRealtimeUrl: `wss://graph.codex.io/graphql`,
41
+ ws: true,
42
+ };
43
+
19
44
  export class Codex {
20
45
  private client: GraphQLClient;
21
- private wsClient: GraphQLWsClient;
46
+ private wsClient: GraphQLWsClient | undefined;
22
47
  public queries: Query;
23
48
  public mutations: Mutation;
24
49
  public subscriptions: Subscribe;
25
50
 
26
51
  constructor(
27
52
  private apiKey: string,
28
- private apiUrl: string = `https://graph.codex.io/graphql`,
29
- private apiRealtimeUrl: string = `wss://graph.codex.io/graphql`,
53
+ private apiConfig?: Partial<ApiConfig>,
30
54
  ) {
31
55
  invariant(this.apiKey, "apiKey must be defined");
56
+ const config = Object.assign({}, defaultConfig, apiConfig);
57
+
32
58
  this.queries = new Query(this);
33
59
  this.mutations = new Mutation(this);
34
60
  this.subscriptions = new Subscribe(this);
35
- this.client = new GraphQLClient(this.apiUrl, {
61
+ this.client = new GraphQLClient(config.apiUrl, {
36
62
  method: "POST",
37
63
  headers: new Headers({
38
64
  "Content-Type": "application/json",
39
65
  Authorization: this.apiKey,
40
66
  "X-Apollo-Operation-Name": "query",
67
+ ...config.headers,
41
68
  }),
42
69
  });
43
- this.wsClient = createClient({
44
- webSocketImpl: WebSocket,
45
- keepAlive: 10_000, // ping server every 10 seconds
46
- url: this.apiRealtimeUrl,
47
- connectionParams: {
48
- Authorization: this.apiKey,
49
- },
50
- });
70
+ this.wsClient = config.ws
71
+ ? createClient({
72
+ webSocketImpl: WebSocket,
73
+ keepAlive: 10_000, // ping server every 10 seconds
74
+ url: config.apiRealtimeUrl,
75
+ connectionParams: {
76
+ Authorization: this.apiKey,
77
+ ...config.wsHeaders,
78
+ },
79
+ })
80
+ : undefined;
81
+ }
82
+
83
+ private async getRequestHeaders() {
84
+ // Get any dynamic headers
85
+ const dynamicHeaders = await this.apiConfig?.applyHeaders?.();
86
+ const staticHeaders = this.apiConfig?.headers;
87
+ const headers = {
88
+ ...staticHeaders,
89
+ ...dynamicHeaders,
90
+ };
91
+ return headers;
51
92
  }
52
93
 
53
94
  public async query<TResults, TVars extends Variables>(
54
95
  doc: TypedDocumentNode<TResults, TVars>,
55
96
  args: TVars = {} as TVars,
56
97
  ) {
57
- const res = await this.client.request<typeof doc, TVars>(
98
+ const res = await this.client.request<typeof doc>(
58
99
  doc,
59
- ...([args] as unknown as VariablesAndRequestHeadersArgs<TVars>),
100
+ args,
101
+ await this.getRequestHeaders(),
60
102
  );
61
103
  return res as TResults;
62
104
  }
@@ -65,9 +107,10 @@ export class Codex {
65
107
  doc: TypedDocumentNode<TResults, TVars>,
66
108
  args: TVars = {} as TVars,
67
109
  ) {
68
- const res = await this.client.request<typeof doc, TVars>(
110
+ const res = await this.client.request<typeof doc>(
69
111
  doc,
70
- ...([args] as unknown as VariablesAndRequestHeadersArgs<TVars>),
112
+ args,
113
+ await this.getRequestHeaders(),
71
114
  );
72
115
  return res as TResults;
73
116
  }
@@ -77,7 +120,11 @@ export class Codex {
77
120
  gqlString: string,
78
121
  args: V = {} as V,
79
122
  ) {
80
- const res = await this.client.request<TResults>(gqlString, args);
123
+ const res = await this.client.request<TResults>(
124
+ gqlString,
125
+ args,
126
+ await this.getRequestHeaders(),
127
+ );
81
128
  return res;
82
129
  }
83
130
 
@@ -89,6 +136,10 @@ export class Codex {
89
136
  args: TVars,
90
137
  sink: Sink<ExecutionResult<TResults>>,
91
138
  ): CleanupFunction {
139
+ if (!this.wsClient) {
140
+ throw new Error("Websocket is not enabled in the config");
141
+ }
142
+
92
143
  const cleanup = this.wsClient.subscribe<TResults>(
93
144
  {
94
145
  query: doc,
@@ -1,9 +0,0 @@
1
- mutation CreateApiTokens($input: CreateApiTokensInput!) {
2
- createApiTokens(input: $input) {
3
- expiresTimeString
4
- id
5
- remaining
6
- requestLimit
7
- token
8
- }
9
- }
@@ -1,472 +0,0 @@
1
- mutation CreateWebhooks($input: CreateWebhooksInput!) {
2
- createWebhooks(input: $input) {
3
- nftEventWebhooks {
4
- alertRecurrence
5
- bucketId
6
- bucketSortkey
7
- callbackUrl
8
- conditions {
9
- ... on NftEventWebhookCondition {
10
- contractAddress {
11
- eq
12
- }
13
- eventType {
14
- eq
15
- }
16
- exchangeAddress {
17
- eq
18
- }
19
- fillSource {
20
- oneOf
21
- }
22
- ignoreTransfers
23
- individualBaseTokenPrice {
24
- eq
25
- gt
26
- gte
27
- lt
28
- lte
29
- }
30
- maker {
31
- eq
32
- }
33
- networkId {
34
- oneOf
35
- }
36
- nftTokenAddress: tokenAddress {
37
- eq
38
- }
39
- tokenId {
40
- eq
41
- }
42
- }
43
- ... on PriceEventWebhookCondition {
44
- priceNetworkId: networkId {
45
- eq
46
- }
47
- priceUsd {
48
- eq
49
- gt
50
- gte
51
- lt
52
- lte
53
- }
54
- priceTokenAddress: tokenAddress {
55
- eq
56
- }
57
- }
58
- ... on RawTransactionWebhookCondition {
59
- from {
60
- eq
61
- }
62
- ignoreNftEvents
63
- ignoreTokenPairEvents
64
- input {
65
- contains
66
- notContains
67
- }
68
- networkId {
69
- oneOf
70
- }
71
- to {
72
- eq
73
- }
74
- toOrFrom {
75
- eq
76
- }
77
- }
78
- ... on TokenPairEventWebhookCondition {
79
- eventType {
80
- oneOf
81
- }
82
- exchangeAddress {
83
- eq
84
- }
85
- maker {
86
- eq
87
- }
88
- networkId {
89
- oneOf
90
- }
91
- pairAddress {
92
- eq
93
- }
94
- swapValue {
95
- eq
96
- gt
97
- gte
98
- lt
99
- lte
100
- }
101
- tokenAddress {
102
- eq
103
- }
104
- }
105
- }
106
- created
107
- groupId
108
- id
109
- name
110
- publishingType
111
- retrySettings {
112
- maxRetries
113
- maxRetryDelay
114
- maxTimeElapsed
115
- minRetryDelay
116
- }
117
- status
118
- webhookType
119
- }
120
- priceWebhooks {
121
- alertRecurrence
122
- bucketId
123
- bucketSortkey
124
- callbackUrl
125
- conditions {
126
- ... on NftEventWebhookCondition {
127
- contractAddress {
128
- eq
129
- }
130
- eventType {
131
- eq
132
- }
133
- exchangeAddress {
134
- eq
135
- }
136
- fillSource {
137
- oneOf
138
- }
139
- ignoreTransfers
140
- individualBaseTokenPrice {
141
- eq
142
- gt
143
- gte
144
- lt
145
- lte
146
- }
147
- maker {
148
- eq
149
- }
150
- networkId {
151
- oneOf
152
- }
153
- nftTokenAddress: tokenAddress {
154
- eq
155
- }
156
- tokenId {
157
- eq
158
- }
159
- }
160
- ... on PriceEventWebhookCondition {
161
- priceNetworkId: networkId {
162
- eq
163
- }
164
- priceUsd {
165
- eq
166
- gt
167
- gte
168
- lt
169
- lte
170
- }
171
- priceTokenAddress: tokenAddress {
172
- eq
173
- }
174
- }
175
- ... on RawTransactionWebhookCondition {
176
- from {
177
- eq
178
- }
179
- ignoreNftEvents
180
- ignoreTokenPairEvents
181
- input {
182
- contains
183
- notContains
184
- }
185
- networkId {
186
- oneOf
187
- }
188
- to {
189
- eq
190
- }
191
- toOrFrom {
192
- eq
193
- }
194
- }
195
- ... on TokenPairEventWebhookCondition {
196
- eventType {
197
- oneOf
198
- }
199
- exchangeAddress {
200
- eq
201
- }
202
- maker {
203
- eq
204
- }
205
- networkId {
206
- oneOf
207
- }
208
- pairAddress {
209
- eq
210
- }
211
- swapValue {
212
- eq
213
- gt
214
- gte
215
- lt
216
- lte
217
- }
218
- tokenAddress {
219
- eq
220
- }
221
- }
222
- }
223
- created
224
- groupId
225
- id
226
- name
227
- publishingType
228
- retrySettings {
229
- maxRetries
230
- maxRetryDelay
231
- maxTimeElapsed
232
- minRetryDelay
233
- }
234
- status
235
- webhookType
236
- }
237
- rawTransactionWebhooks {
238
- alertRecurrence
239
- bucketId
240
- bucketSortkey
241
- callbackUrl
242
- conditions {
243
- ... on NftEventWebhookCondition {
244
- contractAddress {
245
- eq
246
- }
247
- eventType {
248
- eq
249
- }
250
- exchangeAddress {
251
- eq
252
- }
253
- fillSource {
254
- oneOf
255
- }
256
- ignoreTransfers
257
- individualBaseTokenPrice {
258
- eq
259
- gt
260
- gte
261
- lt
262
- lte
263
- }
264
- maker {
265
- eq
266
- }
267
- networkId {
268
- oneOf
269
- }
270
- tokenAddress {
271
- eq
272
- }
273
- tokenId {
274
- eq
275
- }
276
- }
277
- ... on PriceEventWebhookCondition {
278
- priceEventNetworkId: networkId {
279
- eq
280
- }
281
- priceUsd {
282
- eq
283
- gt
284
- gte
285
- lt
286
- lte
287
- }
288
- priceEventTokenAddress: tokenAddress {
289
- eq
290
- }
291
- }
292
- ... on RawTransactionWebhookCondition {
293
- from {
294
- eq
295
- }
296
- ignoreNftEvents
297
- ignoreTokenPairEvents
298
- input {
299
- contains
300
- notContains
301
- }
302
- networkId {
303
- oneOf
304
- }
305
- to {
306
- eq
307
- }
308
- toOrFrom {
309
- eq
310
- }
311
- }
312
- ... on TokenPairEventWebhookCondition {
313
- eventType {
314
- oneOf
315
- }
316
- exchangeAddress {
317
- eq
318
- }
319
- maker {
320
- eq
321
- }
322
- networkId {
323
- oneOf
324
- }
325
- pairAddress {
326
- eq
327
- }
328
- swapValue {
329
- eq
330
- gt
331
- gte
332
- lt
333
- lte
334
- }
335
- tokenAddress {
336
- eq
337
- }
338
- }
339
- }
340
- created
341
- groupId
342
- id
343
- name
344
- publishingType
345
- retrySettings {
346
- maxRetries
347
- maxRetryDelay
348
- maxTimeElapsed
349
- minRetryDelay
350
- }
351
- status
352
- webhookType
353
- }
354
- tokenPairEventWebhooks {
355
- alertRecurrence
356
- bucketId
357
- bucketSortkey
358
- callbackUrl
359
- conditions {
360
- ... on NftEventWebhookCondition {
361
- contractAddress {
362
- eq
363
- }
364
- eventType {
365
- eq
366
- }
367
- exchangeAddress {
368
- eq
369
- }
370
- fillSource {
371
- oneOf
372
- }
373
- ignoreTransfers
374
- individualBaseTokenPrice {
375
- eq
376
- gt
377
- gte
378
- lt
379
- lte
380
- }
381
- maker {
382
- eq
383
- }
384
- networkId {
385
- oneOf
386
- }
387
- tokenAddress {
388
- eq
389
- }
390
- tokenId {
391
- eq
392
- }
393
- }
394
- ... on PriceEventWebhookCondition {
395
- priceEventNetworkId: networkId {
396
- eq
397
- }
398
- priceUsd {
399
- eq
400
- gt
401
- gte
402
- lt
403
- lte
404
- }
405
- priceEventTokenAddress: tokenAddress {
406
- eq
407
- }
408
- }
409
- ... on RawTransactionWebhookCondition {
410
- from {
411
- eq
412
- }
413
- ignoreNftEvents
414
- ignoreTokenPairEvents
415
- input {
416
- contains
417
- notContains
418
- }
419
- networkId {
420
- oneOf
421
- }
422
- to {
423
- eq
424
- }
425
- toOrFrom {
426
- eq
427
- }
428
- }
429
- ... on TokenPairEventWebhookCondition {
430
- eventType {
431
- oneOf
432
- }
433
- exchangeAddress {
434
- eq
435
- }
436
- maker {
437
- eq
438
- }
439
- networkId {
440
- oneOf
441
- }
442
- pairAddress {
443
- eq
444
- }
445
- swapValue {
446
- eq
447
- gt
448
- gte
449
- lt
450
- lte
451
- }
452
- tokenAddress {
453
- eq
454
- }
455
- }
456
- }
457
- created
458
- groupId
459
- id
460
- name
461
- publishingType
462
- retrySettings {
463
- maxRetries
464
- maxRetryDelay
465
- maxTimeElapsed
466
- minRetryDelay
467
- }
468
- status
469
- webhookType
470
- }
471
- }
472
- }
@@ -1,3 +0,0 @@
1
- mutation DeleteApiToken($id: String!) {
2
- deleteApiToken(id: $id)
3
- }
@@ -1,5 +0,0 @@
1
- mutation DeleteWebhooks($input: DeleteWebhooksInput!) {
2
- deleteWebhooks(input: $input) {
3
- deletedIds
4
- }
5
- }
@@ -1,9 +0,0 @@
1
- query ApiToken($token: String!) {
2
- apiToken(token: $token) {
3
- expiresTimeString
4
- id
5
- remaining
6
- requestLimit
7
- token
8
- }
9
- }
@@ -1,9 +0,0 @@
1
- query ApiTokens {
2
- apiTokens {
3
- expiresTimeString
4
- id
5
- remaining
6
- requestLimit
7
- token
8
- }
9
- }
@@ -1,15 +0,0 @@
1
- query Balances($input: BalancesInput!) {
2
- balances(input: $input) {
3
- cursor
4
- items {
5
- address
6
- balance
7
- firstHeldTimestamp
8
- networkId
9
- shiftedBalance
10
- tokenAddress
11
- tokenId
12
- walletId
13
- }
14
- }
15
- }
@@ -1,7 +0,0 @@
1
- query ChartUrls($input: ChartInput!) {
2
- chartUrls(input: $input) {
3
- pair {
4
- url
5
- }
6
- }
7
- }