@codex-data/sdk 1.0.14 → 1.0.16
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/dist/resources/graphql.d.ts +2 -0
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js.map +1 -1
- package/dist/scripts/buildSdk.js +1 -1
- package/dist/scripts/buildSdk.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +23 -23
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +23 -78
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +2 -0
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/graphql.schema.json +12 -0
- package/src/resources/graphql.ts +2 -0
- package/src/resources/schema.graphql +2 -0
- package/src/scripts/buildSdk.ts +1 -1
- package/src/sdk/Subscribe.ts +23 -23
- package/src/sdk/generated/graphql.ts +2 -0
package/package.json
CHANGED
|
@@ -10900,6 +10900,18 @@
|
|
|
10900
10900
|
"isDeprecated": false,
|
|
10901
10901
|
"deprecationReason": null
|
|
10902
10902
|
},
|
|
10903
|
+
{
|
|
10904
|
+
"name": "liquidity",
|
|
10905
|
+
"description": "The liquidity of the token's top pair.",
|
|
10906
|
+
"args": [],
|
|
10907
|
+
"type": {
|
|
10908
|
+
"kind": "SCALAR",
|
|
10909
|
+
"name": "String",
|
|
10910
|
+
"ofType": null
|
|
10911
|
+
},
|
|
10912
|
+
"isDeprecated": false,
|
|
10913
|
+
"deprecationReason": null
|
|
10914
|
+
},
|
|
10903
10915
|
{
|
|
10904
10916
|
"name": "marketCap",
|
|
10905
10917
|
"description": "The market cap of the token.",
|
package/src/resources/graphql.ts
CHANGED
|
@@ -1885,6 +1885,8 @@ export type LaunchpadTokenEventOutput = {
|
|
|
1885
1885
|
holders?: Maybe<Scalars['Int']['output']>;
|
|
1886
1886
|
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
1887
1887
|
launchpadName: Scalars['String']['output'];
|
|
1888
|
+
/** The liquidity of the token's top pair. */
|
|
1889
|
+
liquidity?: Maybe<Scalars['String']['output']>;
|
|
1888
1890
|
/** The market cap of the token. */
|
|
1889
1891
|
marketCap?: Maybe<Scalars['String']['output']>;
|
|
1890
1892
|
/** The network ID that the token is deployed on. */
|
|
@@ -2623,6 +2623,8 @@ type LaunchpadTokenEventOutput {
|
|
|
2623
2623
|
volume1: Int
|
|
2624
2624
|
"""The number of transactions in the last 24 hours."""
|
|
2625
2625
|
transactions1: Int
|
|
2626
|
+
"""The liquidity of the token's top pair."""
|
|
2627
|
+
liquidity: String
|
|
2626
2628
|
}
|
|
2627
2629
|
|
|
2628
2630
|
"""The type of event. Note that associated statistics such as `buyCount1`, `price`, etc. are only available for `Updated` events."""
|
package/src/scripts/buildSdk.ts
CHANGED
|
@@ -34,7 +34,7 @@ class Subscription {
|
|
|
34
34
|
),
|
|
35
35
|
"utf8",
|
|
36
36
|
);
|
|
37
|
-
return `${camelCase(this.subscriptionName)} =
|
|
37
|
+
return `${camelCase(this.subscriptionName)} = (vars: ${
|
|
38
38
|
this.subscriptionName
|
|
39
39
|
}SubscriptionVariables, sink: Sink<ExecutionResult<${
|
|
40
40
|
this.subscriptionName
|
package/src/sdk/Subscribe.ts
CHANGED
|
@@ -53,7 +53,7 @@ import { Codex } from "./index";
|
|
|
53
53
|
|
|
54
54
|
export class Subscribe {
|
|
55
55
|
constructor(private sdk: Codex) {}
|
|
56
|
-
onTokenLifecycleEventsCreated =
|
|
56
|
+
onTokenLifecycleEventsCreated = (
|
|
57
57
|
vars: OnTokenLifecycleEventsCreatedSubscriptionVariables,
|
|
58
58
|
sink: Sink<ExecutionResult<OnTokenLifecycleEventsCreatedSubscription>>,
|
|
59
59
|
) =>
|
|
@@ -66,7 +66,7 @@ export class Subscribe {
|
|
|
66
66
|
vars,
|
|
67
67
|
sink,
|
|
68
68
|
);
|
|
69
|
-
onNftEventsCreated =
|
|
69
|
+
onNftEventsCreated = (
|
|
70
70
|
vars: OnNftEventsCreatedSubscriptionVariables,
|
|
71
71
|
sink: Sink<ExecutionResult<OnNftEventsCreatedSubscription>>,
|
|
72
72
|
) =>
|
|
@@ -79,7 +79,7 @@ export class Subscribe {
|
|
|
79
79
|
vars,
|
|
80
80
|
sink,
|
|
81
81
|
);
|
|
82
|
-
onLaunchpadTokenEvent =
|
|
82
|
+
onLaunchpadTokenEvent = (
|
|
83
83
|
vars: OnLaunchpadTokenEventSubscriptionVariables,
|
|
84
84
|
sink: Sink<ExecutionResult<OnLaunchpadTokenEventSubscription>>,
|
|
85
85
|
) =>
|
|
@@ -92,7 +92,7 @@ export class Subscribe {
|
|
|
92
92
|
vars,
|
|
93
93
|
sink,
|
|
94
94
|
);
|
|
95
|
-
onUnconfirmedBarsUpdated =
|
|
95
|
+
onUnconfirmedBarsUpdated = (
|
|
96
96
|
vars: OnUnconfirmedBarsUpdatedSubscriptionVariables,
|
|
97
97
|
sink: Sink<ExecutionResult<OnUnconfirmedBarsUpdatedSubscription>>,
|
|
98
98
|
) =>
|
|
@@ -105,7 +105,7 @@ export class Subscribe {
|
|
|
105
105
|
vars,
|
|
106
106
|
sink,
|
|
107
107
|
);
|
|
108
|
-
onLaunchpadTokenEventBatch =
|
|
108
|
+
onLaunchpadTokenEventBatch = (
|
|
109
109
|
vars: OnLaunchpadTokenEventBatchSubscriptionVariables,
|
|
110
110
|
sink: Sink<ExecutionResult<OnLaunchpadTokenEventBatchSubscription>>,
|
|
111
111
|
) =>
|
|
@@ -205,7 +205,7 @@ export class Subscribe {
|
|
|
205
205
|
vars,
|
|
206
206
|
sink,
|
|
207
207
|
);
|
|
208
|
-
onPricesUpdated =
|
|
208
|
+
onPricesUpdated = (
|
|
209
209
|
vars: OnPricesUpdatedSubscriptionVariables,
|
|
210
210
|
sink: Sink<ExecutionResult<OnPricesUpdatedSubscription>>,
|
|
211
211
|
) =>
|
|
@@ -218,7 +218,7 @@ export class Subscribe {
|
|
|
218
218
|
vars,
|
|
219
219
|
sink,
|
|
220
220
|
);
|
|
221
|
-
onUnconfirmedEventsCreatedByMaker =
|
|
221
|
+
onUnconfirmedEventsCreatedByMaker = (
|
|
222
222
|
vars: OnUnconfirmedEventsCreatedByMakerSubscriptionVariables,
|
|
223
223
|
sink: Sink<ExecutionResult<OnUnconfirmedEventsCreatedByMakerSubscription>>,
|
|
224
224
|
) =>
|
|
@@ -231,7 +231,7 @@ export class Subscribe {
|
|
|
231
231
|
vars,
|
|
232
232
|
sink,
|
|
233
233
|
);
|
|
234
|
-
onLatestPairUpdated =
|
|
234
|
+
onLatestPairUpdated = (
|
|
235
235
|
vars: OnLatestPairUpdatedSubscriptionVariables,
|
|
236
236
|
sink: Sink<ExecutionResult<OnLatestPairUpdatedSubscription>>,
|
|
237
237
|
) =>
|
|
@@ -244,7 +244,7 @@ export class Subscribe {
|
|
|
244
244
|
vars,
|
|
245
245
|
sink,
|
|
246
246
|
);
|
|
247
|
-
onNftAssetsCreated =
|
|
247
|
+
onNftAssetsCreated = (
|
|
248
248
|
vars: OnNftAssetsCreatedSubscriptionVariables,
|
|
249
249
|
sink: Sink<ExecutionResult<OnNftAssetsCreatedSubscription>>,
|
|
250
250
|
) =>
|
|
@@ -257,7 +257,7 @@ export class Subscribe {
|
|
|
257
257
|
vars,
|
|
258
258
|
sink,
|
|
259
259
|
);
|
|
260
|
-
onDetailedStatsUpdated =
|
|
260
|
+
onDetailedStatsUpdated = (
|
|
261
261
|
vars: OnDetailedStatsUpdatedSubscriptionVariables,
|
|
262
262
|
sink: Sink<ExecutionResult<OnDetailedStatsUpdatedSubscription>>,
|
|
263
263
|
) =>
|
|
@@ -270,7 +270,7 @@ export class Subscribe {
|
|
|
270
270
|
vars,
|
|
271
271
|
sink,
|
|
272
272
|
);
|
|
273
|
-
onTokenBarsUpdated =
|
|
273
|
+
onTokenBarsUpdated = (
|
|
274
274
|
vars: OnTokenBarsUpdatedSubscriptionVariables,
|
|
275
275
|
sink: Sink<ExecutionResult<OnTokenBarsUpdatedSubscription>>,
|
|
276
276
|
) =>
|
|
@@ -283,7 +283,7 @@ export class Subscribe {
|
|
|
283
283
|
vars,
|
|
284
284
|
sink,
|
|
285
285
|
);
|
|
286
|
-
onPriceUpdated =
|
|
286
|
+
onPriceUpdated = (
|
|
287
287
|
vars: OnPriceUpdatedSubscriptionVariables,
|
|
288
288
|
sink: Sink<ExecutionResult<OnPriceUpdatedSubscription>>,
|
|
289
289
|
) =>
|
|
@@ -296,7 +296,7 @@ export class Subscribe {
|
|
|
296
296
|
vars,
|
|
297
297
|
sink,
|
|
298
298
|
);
|
|
299
|
-
onBarsUpdated =
|
|
299
|
+
onBarsUpdated = (
|
|
300
300
|
vars: OnBarsUpdatedSubscriptionVariables,
|
|
301
301
|
sink: Sink<ExecutionResult<OnBarsUpdatedSubscription>>,
|
|
302
302
|
) =>
|
|
@@ -309,7 +309,7 @@ export class Subscribe {
|
|
|
309
309
|
vars,
|
|
310
310
|
sink,
|
|
311
311
|
);
|
|
312
|
-
onTokenEventsCreated =
|
|
312
|
+
onTokenEventsCreated = (
|
|
313
313
|
vars: OnTokenEventsCreatedSubscriptionVariables,
|
|
314
314
|
sink: Sink<ExecutionResult<OnTokenEventsCreatedSubscription>>,
|
|
315
315
|
) =>
|
|
@@ -322,7 +322,7 @@ export class Subscribe {
|
|
|
322
322
|
vars,
|
|
323
323
|
sink,
|
|
324
324
|
);
|
|
325
|
-
onEventLabelCreated =
|
|
325
|
+
onEventLabelCreated = (
|
|
326
326
|
vars: OnEventLabelCreatedSubscriptionVariables,
|
|
327
327
|
sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription>>,
|
|
328
328
|
) =>
|
|
@@ -353,7 +353,7 @@ export class Subscribe {
|
|
|
353
353
|
vars,
|
|
354
354
|
sink,
|
|
355
355
|
);
|
|
356
|
-
onEventsCreatedByMaker =
|
|
356
|
+
onEventsCreatedByMaker = (
|
|
357
357
|
vars: OnEventsCreatedByMakerSubscriptionVariables,
|
|
358
358
|
sink: Sink<ExecutionResult<OnEventsCreatedByMakerSubscription>>,
|
|
359
359
|
) =>
|
|
@@ -366,7 +366,7 @@ export class Subscribe {
|
|
|
366
366
|
vars,
|
|
367
367
|
sink,
|
|
368
368
|
);
|
|
369
|
-
onUnconfirmedEventsCreated =
|
|
369
|
+
onUnconfirmedEventsCreated = (
|
|
370
370
|
vars: OnUnconfirmedEventsCreatedSubscriptionVariables,
|
|
371
371
|
sink: Sink<ExecutionResult<OnUnconfirmedEventsCreatedSubscription>>,
|
|
372
372
|
) =>
|
|
@@ -379,7 +379,7 @@ export class Subscribe {
|
|
|
379
379
|
vars,
|
|
380
380
|
sink,
|
|
381
381
|
);
|
|
382
|
-
onLatestTokens =
|
|
382
|
+
onLatestTokens = (
|
|
383
383
|
vars: OnLatestTokensSubscriptionVariables,
|
|
384
384
|
sink: Sink<ExecutionResult<OnLatestTokensSubscription>>,
|
|
385
385
|
) =>
|
|
@@ -392,7 +392,7 @@ export class Subscribe {
|
|
|
392
392
|
vars,
|
|
393
393
|
sink,
|
|
394
394
|
);
|
|
395
|
-
onBalanceUpdated =
|
|
395
|
+
onBalanceUpdated = (
|
|
396
396
|
vars: OnBalanceUpdatedSubscriptionVariables,
|
|
397
397
|
sink: Sink<ExecutionResult<OnBalanceUpdatedSubscription>>,
|
|
398
398
|
) =>
|
|
@@ -405,7 +405,7 @@ export class Subscribe {
|
|
|
405
405
|
vars,
|
|
406
406
|
sink,
|
|
407
407
|
);
|
|
408
|
-
onEventsCreated =
|
|
408
|
+
onEventsCreated = (
|
|
409
409
|
vars: OnEventsCreatedSubscriptionVariables,
|
|
410
410
|
sink: Sink<ExecutionResult<OnEventsCreatedSubscription>>,
|
|
411
411
|
) =>
|
|
@@ -418,7 +418,7 @@ export class Subscribe {
|
|
|
418
418
|
vars,
|
|
419
419
|
sink,
|
|
420
420
|
);
|
|
421
|
-
onNftPoolEventsCreated =
|
|
421
|
+
onNftPoolEventsCreated = (
|
|
422
422
|
vars: OnNftPoolEventsCreatedSubscriptionVariables,
|
|
423
423
|
sink: Sink<ExecutionResult<OnNftPoolEventsCreatedSubscription>>,
|
|
424
424
|
) =>
|
|
@@ -431,7 +431,7 @@ export class Subscribe {
|
|
|
431
431
|
vars,
|
|
432
432
|
sink,
|
|
433
433
|
);
|
|
434
|
-
onHoldersUpdated =
|
|
434
|
+
onHoldersUpdated = (
|
|
435
435
|
vars: OnHoldersUpdatedSubscriptionVariables,
|
|
436
436
|
sink: Sink<ExecutionResult<OnHoldersUpdatedSubscription>>,
|
|
437
437
|
) =>
|
|
@@ -444,7 +444,7 @@ export class Subscribe {
|
|
|
444
444
|
vars,
|
|
445
445
|
sink,
|
|
446
446
|
);
|
|
447
|
-
onPairMetadataUpdated =
|
|
447
|
+
onPairMetadataUpdated = (
|
|
448
448
|
vars: OnPairMetadataUpdatedSubscriptionVariables,
|
|
449
449
|
sink: Sink<ExecutionResult<OnPairMetadataUpdatedSubscription>>,
|
|
450
450
|
) =>
|
|
@@ -1887,6 +1887,8 @@ export type LaunchpadTokenEventOutput = {
|
|
|
1887
1887
|
holders?: Maybe<Scalars['Int']['output']>;
|
|
1888
1888
|
/** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
|
|
1889
1889
|
launchpadName: Scalars['String']['output'];
|
|
1890
|
+
/** The liquidity of the token's top pair. */
|
|
1891
|
+
liquidity?: Maybe<Scalars['String']['output']>;
|
|
1890
1892
|
/** The market cap of the token. */
|
|
1891
1893
|
marketCap?: Maybe<Scalars['String']['output']>;
|
|
1892
1894
|
/** The network ID that the token is deployed on. */
|