Skip to content

Commit 133e338

Browse files
Token events inputs + Bars Subscription outputs + Code gen (#3)
* add missing inputs in pair events * add missing fields on bar update webhook and refactor logic
1 parent 82eb891 commit 133e338

File tree

8 files changed

+341
-166
lines changed

8 files changed

+341
-166
lines changed

src/resources/graphql.schema.json

Lines changed: 166 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,18 @@
524524
"isDeprecated": false,
525525
"deprecationReason": null
526526
},
527+
{
528+
"name": "firstHeldTimestamp",
529+
"description": "The time that this address first held a token",
530+
"args": [],
531+
"type": {
532+
"kind": "SCALAR",
533+
"name": "Int",
534+
"ofType": null
535+
},
536+
"isDeprecated": false,
537+
"deprecationReason": null
538+
},
527539
{
528540
"name": "shiftedBalance",
529541
"description": "The balance held by the wallet, adjusted by the number of decimals in the token.",
@@ -2187,6 +2199,18 @@
21872199
"isDeprecated": false,
21882200
"deprecationReason": null
21892201
},
2202+
{
2203+
"name": "publishingType",
2204+
"description": null,
2205+
"type": {
2206+
"kind": "ENUM",
2207+
"name": "PublishingType",
2208+
"ofType": null
2209+
},
2210+
"defaultValue": null,
2211+
"isDeprecated": false,
2212+
"deprecationReason": null
2213+
},
21902214
{
21912215
"name": "retrySettings",
21922216
"description": null,
@@ -2361,6 +2385,18 @@
23612385
"isDeprecated": false,
23622386
"deprecationReason": null
23632387
},
2388+
{
2389+
"name": "publishingType",
2390+
"description": null,
2391+
"type": {
2392+
"kind": "ENUM",
2393+
"name": "PublishingType",
2394+
"ofType": null
2395+
},
2396+
"defaultValue": null,
2397+
"isDeprecated": false,
2398+
"deprecationReason": null
2399+
},
23642400
{
23652401
"name": "retrySettings",
23662402
"description": null,
@@ -2535,6 +2571,18 @@
25352571
"isDeprecated": false,
25362572
"deprecationReason": null
25372573
},
2574+
{
2575+
"name": "publishingType",
2576+
"description": null,
2577+
"type": {
2578+
"kind": "ENUM",
2579+
"name": "PublishingType",
2580+
"ofType": null
2581+
},
2582+
"defaultValue": null,
2583+
"isDeprecated": false,
2584+
"deprecationReason": null
2585+
},
25382586
{
25392587
"name": "retrySettings",
25402588
"description": null,
@@ -2709,6 +2757,18 @@
27092757
"isDeprecated": false,
27102758
"deprecationReason": null
27112759
},
2760+
{
2761+
"name": "publishingType",
2762+
"description": null,
2763+
"type": {
2764+
"kind": "ENUM",
2765+
"name": "PublishingType",
2766+
"ofType": null
2767+
},
2768+
"defaultValue": null,
2769+
"isDeprecated": false,
2770+
"deprecationReason": null
2771+
},
27122772
{
27132773
"name": "retrySettings",
27142774
"description": null,
@@ -7611,6 +7671,18 @@
76117671
"isDeprecated": false,
76127672
"deprecationReason": null
76137673
},
7674+
{
7675+
"name": "sort",
7676+
"description": "The attribute to sort the list on",
7677+
"type": {
7678+
"kind": "INPUT_OBJECT",
7679+
"name": "HoldersInputSort",
7680+
"ofType": null
7681+
},
7682+
"defaultValue": null,
7683+
"isDeprecated": false,
7684+
"deprecationReason": null
7685+
},
76147686
{
76157687
"name": "tokenId",
76167688
"description": "The ID of the token (`tokenAddress:networkId`).",
@@ -7632,6 +7704,41 @@
76327704
"enumValues": null,
76337705
"possibleTypes": null
76347706
},
7707+
{
7708+
"kind": "INPUT_OBJECT",
7709+
"name": "HoldersInputSort",
7710+
"description": null,
7711+
"fields": null,
7712+
"inputFields": [
7713+
{
7714+
"name": "attribute",
7715+
"description": "The attribute to sort the list on",
7716+
"type": {
7717+
"kind": "ENUM",
7718+
"name": "HoldersSortAttribute",
7719+
"ofType": null
7720+
},
7721+
"defaultValue": null,
7722+
"isDeprecated": false,
7723+
"deprecationReason": null
7724+
},
7725+
{
7726+
"name": "direction",
7727+
"description": "The direction to apply to the ranking attribute.",
7728+
"type": {
7729+
"kind": "ENUM",
7730+
"name": "RankingDirection",
7731+
"ofType": null
7732+
},
7733+
"defaultValue": null,
7734+
"isDeprecated": false,
7735+
"deprecationReason": null
7736+
}
7737+
],
7738+
"interfaces": null,
7739+
"enumValues": null,
7740+
"possibleTypes": null
7741+
},
76357742
{
76367743
"kind": "OBJECT",
76377744
"name": "HoldersResponse",
@@ -7711,6 +7818,29 @@
77117818
"enumValues": null,
77127819
"possibleTypes": null
77137820
},
7821+
{
7822+
"kind": "ENUM",
7823+
"name": "HoldersSortAttribute",
7824+
"description": null,
7825+
"fields": null,
7826+
"inputFields": null,
7827+
"interfaces": null,
7828+
"enumValues": [
7829+
{
7830+
"name": "BALANCE",
7831+
"description": null,
7832+
"isDeprecated": false,
7833+
"deprecationReason": null
7834+
},
7835+
{
7836+
"name": "DATE",
7837+
"description": null,
7838+
"isDeprecated": false,
7839+
"deprecationReason": null
7840+
}
7841+
],
7842+
"possibleTypes": null
7843+
},
77147844
{
77157845
"kind": "ENUM",
77167846
"name": "HoldersStatus",
@@ -33240,6 +33370,29 @@
3324033370
"enumValues": null,
3324133371
"possibleTypes": null
3324233372
},
33373+
{
33374+
"kind": "ENUM",
33375+
"name": "PublishingType",
33376+
"description": null,
33377+
"fields": null,
33378+
"inputFields": null,
33379+
"interfaces": null,
33380+
"enumValues": [
33381+
{
33382+
"name": "BATCH",
33383+
"description": null,
33384+
"isDeprecated": false,
33385+
"deprecationReason": null
33386+
},
33387+
{
33388+
"name": "SINGLE",
33389+
"description": null,
33390+
"isDeprecated": false,
33391+
"deprecationReason": null
33392+
}
33393+
],
33394+
"possibleTypes": null
33395+
},
3324333396
{
3324433397
"kind": "OBJECT",
3324533398
"name": "Query",
@@ -43300,7 +43453,7 @@
4330043453
},
4330143454
{
4330243455
"name": "marketCap",
43303-
"description": "The market cap of circulating supply.",
43456+
"description": "The fully diluted market cap. For circulating market cap multiply `token { info { circulatingSupply } }` by `priceUSD`.",
4330443457
"args": [],
4330543458
"type": {
4330643459
"kind": "SCALAR",
@@ -46930,6 +47083,18 @@
4693047083
"isDeprecated": false,
4693147084
"deprecationReason": null
4693247085
},
47086+
{
47087+
"name": "publishingType",
47088+
"description": null,
47089+
"args": [],
47090+
"type": {
47091+
"kind": "ENUM",
47092+
"name": "PublishingType",
47093+
"ofType": null
47094+
},
47095+
"isDeprecated": false,
47096+
"deprecationReason": null
47097+
},
4693347098
{
4693447099
"name": "retrySettings",
4693547100
"description": null,

src/resources/graphql.ts

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ export type Balance = {
9292
__typename?: 'Balance';
9393
/** The balance held by the wallet. */
9494
balance: Scalars['String']['output'];
95+
/** The time that this address first held a token */
96+
firstHeldTimestamp?: Maybe<Scalars['Int']['output']>;
9597
/** The balance held by the wallet, adjusted by the number of decimals in the token. */
9698
shiftedBalance: Scalars['Float']['output'];
9799
/** The ID of the token (`tokenAddress:networkId`). */
@@ -359,6 +361,7 @@ export type CreateNftEventWebhookArgs = {
359361
conditions: NftEventWebhookConditionInput;
360362
groupId?: InputMaybe<Scalars['String']['input']>;
361363
name: Scalars['String']['input'];
364+
publishingType?: InputMaybe<PublishingType>;
362365
retrySettings?: InputMaybe<RetrySettingsInput>;
363366
securityToken: Scalars['String']['input'];
364367
};
@@ -375,6 +378,7 @@ export type CreatePriceWebhookArgs = {
375378
conditions: PriceEventWebhookConditionInput;
376379
groupId?: InputMaybe<Scalars['String']['input']>;
377380
name: Scalars['String']['input'];
381+
publishingType?: InputMaybe<PublishingType>;
378382
retrySettings?: InputMaybe<RetrySettingsInput>;
379383
securityToken: Scalars['String']['input'];
380384
};
@@ -391,6 +395,7 @@ export type CreateRawTransactionWebhookArgs = {
391395
conditions: RawTransactionWebhookConditionInput;
392396
groupId?: InputMaybe<Scalars['String']['input']>;
393397
name: Scalars['String']['input'];
398+
publishingType?: InputMaybe<PublishingType>;
394399
retrySettings?: InputMaybe<RetrySettingsInput>;
395400
securityToken: Scalars['String']['input'];
396401
};
@@ -407,6 +412,7 @@ export type CreateTokenPairEventWebhookArgs = {
407412
conditions: TokenPairEventWebhookConditionInput;
408413
groupId?: InputMaybe<Scalars['String']['input']>;
409414
name: Scalars['String']['input'];
415+
publishingType?: InputMaybe<PublishingType>;
410416
retrySettings?: InputMaybe<RetrySettingsInput>;
411417
securityToken: Scalars['String']['input'];
412418
};
@@ -1260,10 +1266,19 @@ export enum GraphQlNftPoolVariant {
12601266
export type HoldersInput = {
12611267
/** A cursor for use in pagination. */
12621268
cursor?: InputMaybe<Scalars['String']['input']>;
1269+
/** The attribute to sort the list on */
1270+
sort?: InputMaybe<HoldersInputSort>;
12631271
/** The ID of the token (`tokenAddress:networkId`). */
12641272
tokenId: Scalars['String']['input'];
12651273
};
12661274

1275+
export type HoldersInputSort = {
1276+
/** The attribute to sort the list on */
1277+
attribute?: InputMaybe<HoldersSortAttribute>;
1278+
/** The direction to apply to the ranking attribute. */
1279+
direction?: InputMaybe<RankingDirection>;
1280+
};
1281+
12671282
export type HoldersResponse = {
12681283
__typename?: 'HoldersResponse';
12691284
/** the unique count of holders for the token. */
@@ -1276,6 +1291,11 @@ export type HoldersResponse = {
12761291
status: HoldersStatus;
12771292
};
12781293

1294+
export enum HoldersSortAttribute {
1295+
Balance = 'BALANCE',
1296+
Date = 'DATE'
1297+
}
1298+
12791299
export enum HoldersStatus {
12801300
Disabled = 'DISABLED',
12811301
Enabled = 'ENABLED'
@@ -5566,6 +5586,11 @@ export type PrimePoolWithdrawData = {
55665586
userPrimeRewardDebt: Scalars['String']['output'];
55675587
};
55685588

5589+
export enum PublishingType {
5590+
Batch = 'BATCH',
5591+
Single = 'SINGLE'
5592+
}
5593+
55695594
export type Query = {
55705595
__typename?: 'Query';
55715596
/** Get the active short-lived api token for this api key by the short-lived token */
@@ -7038,7 +7063,7 @@ export type TokenFilterResult = {
70387063
low12?: Maybe<Scalars['String']['output']>;
70397064
/** The lowest price in USD in the past 24 hours. */
70407065
low24?: Maybe<Scalars['String']['output']>;
7041-
/** The market cap of circulating supply. */
7066+
/** The fully diluted market cap. For circulating market cap multiply `token { info { circulatingSupply } }` by `priceUSD`. */
70427067
marketCap?: Maybe<Scalars['String']['output']>;
70437068
/** Metadata for the token's top pair. */
70447069
pair?: Maybe<Pair>;
@@ -7629,6 +7654,7 @@ export type Webhook = {
76297654
groupId?: Maybe<Scalars['String']['output']>;
76307655
id: Scalars['String']['output'];
76317656
name: Scalars['String']['output'];
7657+
publishingType?: Maybe<PublishingType>;
76327658
retrySettings?: Maybe<RetrySettings>;
76337659
status: Scalars['String']['output'];
76347660
webhookType: WebhookType;

0 commit comments

Comments
 (0)