Skip to content

Commit f241bc3

Browse files
chore: generate newest schema (#30)
1 parent 7e54293 commit f241bc3

File tree

5 files changed

+239
-1
lines changed

5 files changed

+239
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codex-data/sdk",
3-
"version": "1.0.23",
3+
"version": "1.0.24",
44
"engines": {
55
"node": ">=17.5.0"
66
},

src/resources/graphql.schema.json

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5801,6 +5801,18 @@
58015801
"isDeprecated": false,
58025802
"deprecationReason": null
58035803
},
5804+
{
5805+
"name": "pairId",
5806+
"description": "The pair that the token is contained in",
5807+
"args": [],
5808+
"type": {
5809+
"kind": "SCALAR",
5810+
"name": "String",
5811+
"ofType": null
5812+
},
5813+
"isDeprecated": false,
5814+
"deprecationReason": null
5815+
},
58045816
{
58055817
"name": "pooled",
58065818
"description": "The amount of this token in the pair.",
@@ -9150,6 +9162,18 @@
91509162
"isDeprecated": false,
91519163
"deprecationReason": null
91529164
},
9165+
{
9166+
"name": "tokenId",
9167+
"description": "the token Id",
9168+
"args": [],
9169+
"type": {
9170+
"kind": "SCALAR",
9171+
"name": "String",
9172+
"ofType": null
9173+
},
9174+
"isDeprecated": false,
9175+
"deprecationReason": null
9176+
},
91539177
{
91549178
"name": "top10HoldersPercent",
91559179
"description": "What percentage of the total supply do the top 10 holders hold.",
@@ -46616,6 +46640,18 @@
4661646640
"isDeprecated": false,
4661746641
"deprecationReason": null
4661846642
},
46643+
{
46644+
"name": "liquidPairPriceUSD",
46645+
"description": "The liquid pairs price in USD.",
46646+
"args": [],
46647+
"type": {
46648+
"kind": "SCALAR",
46649+
"name": "String",
46650+
"ofType": null
46651+
},
46652+
"isDeprecated": false,
46653+
"deprecationReason": null
46654+
},
4661946655
{
4662046656
"name": "liquidity",
4662146657
"description": "Amount of liquidity in the token's top pair.",
@@ -50144,6 +50180,22 @@
5014450180
"isDeprecated": false,
5014550181
"deprecationReason": null
5014650182
},
50183+
{
50184+
"name": "resolution",
50185+
"description": "The timeframe of the sparkline.",
50186+
"args": [],
50187+
"type": {
50188+
"kind": "NON_NULL",
50189+
"name": null,
50190+
"ofType": {
50191+
"kind": "SCALAR",
50192+
"name": "String",
50193+
"ofType": null
50194+
}
50195+
},
50196+
"isDeprecated": false,
50197+
"deprecationReason": null
50198+
},
5014750199
{
5014850200
"name": "sparkline",
5014950201
"description": "List of sparkline values to chart",
@@ -50181,6 +50233,30 @@
5018150233
"isOneOf": false,
5018250234
"fields": null,
5018350235
"inputFields": [
50236+
{
50237+
"name": "fillMissingBars",
50238+
"description": "Whether to add empty bars to the response, populated with the previous bar's value. Default is `false`",
50239+
"type": {
50240+
"kind": "SCALAR",
50241+
"name": "Boolean",
50242+
"ofType": null
50243+
},
50244+
"defaultValue": null,
50245+
"isDeprecated": false,
50246+
"deprecationReason": null
50247+
},
50248+
{
50249+
"name": "from",
50250+
"description": "The unix timestamp for the start of the requested range. Defaults to 1 week ago.",
50251+
"type": {
50252+
"kind": "SCALAR",
50253+
"name": "Int",
50254+
"ofType": null
50255+
},
50256+
"defaultValue": null,
50257+
"isDeprecated": false,
50258+
"deprecationReason": null
50259+
},
5018450260
{
5018550261
"name": "ids",
5018650262
"description": "The contract address & networkId of the token, joined by a colon. ex: 0xbe042e9d09cb588331ff911c2b46fd833a3e5bd6:1",
@@ -50204,6 +50280,30 @@
5020450280
"defaultValue": null,
5020550281
"isDeprecated": false,
5020650282
"deprecationReason": null
50283+
},
50284+
{
50285+
"name": "resolution",
50286+
"description": "The time frame for each candle. Available options are `1S`, `5S`, `15S`, `30S`, `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`. Defaults to `60` (1 hour)",
50287+
"type": {
50288+
"kind": "SCALAR",
50289+
"name": "String",
50290+
"ofType": null
50291+
},
50292+
"defaultValue": null,
50293+
"isDeprecated": false,
50294+
"deprecationReason": null
50295+
},
50296+
{
50297+
"name": "to",
50298+
"description": "The unix timestamp for the end of the requested range. Defaults to current time.",
50299+
"type": {
50300+
"kind": "SCALAR",
50301+
"name": "Int",
50302+
"ofType": null
50303+
},
50304+
"defaultValue": null,
50305+
"isDeprecated": false,
50306+
"deprecationReason": null
5020750307
}
5020850308
],
5020950309
"interfaces": null,
@@ -52662,6 +52762,18 @@
5266252762
"isDeprecated": false,
5266352763
"deprecationReason": null
5266452764
},
52765+
{
52766+
"name": "r1D",
52767+
"description": "1 day resolution.",
52768+
"args": [],
52769+
"type": {
52770+
"kind": "OBJECT",
52771+
"name": "UnconfirmedIndividualBarData",
52772+
"ofType": null
52773+
},
52774+
"isDeprecated": false,
52775+
"deprecationReason": null
52776+
},
5266552777
{
5266652778
"name": "r1S",
5266752779
"description": "1 second resolution.",
@@ -52698,6 +52810,18 @@
5269852810
"isDeprecated": false,
5269952811
"deprecationReason": null
5270052812
},
52813+
{
52814+
"name": "r7D",
52815+
"description": "1 week resolution.",
52816+
"args": [],
52817+
"type": {
52818+
"kind": "OBJECT",
52819+
"name": "UnconfirmedIndividualBarData",
52820+
"ofType": null
52821+
},
52822+
"isDeprecated": false,
52823+
"deprecationReason": null
52824+
},
5270152825
{
5270252826
"name": "r15",
5270352827
"description": "15 minute resolution.",
@@ -52721,6 +52845,42 @@
5272152845
},
5272252846
"isDeprecated": false,
5272352847
"deprecationReason": null
52848+
},
52849+
{
52850+
"name": "r60",
52851+
"description": "60 minute resolution.",
52852+
"args": [],
52853+
"type": {
52854+
"kind": "OBJECT",
52855+
"name": "UnconfirmedIndividualBarData",
52856+
"ofType": null
52857+
},
52858+
"isDeprecated": false,
52859+
"deprecationReason": null
52860+
},
52861+
{
52862+
"name": "r240",
52863+
"description": "4 hour resolution.",
52864+
"args": [],
52865+
"type": {
52866+
"kind": "OBJECT",
52867+
"name": "UnconfirmedIndividualBarData",
52868+
"ofType": null
52869+
},
52870+
"isDeprecated": false,
52871+
"deprecationReason": null
52872+
},
52873+
{
52874+
"name": "r720",
52875+
"description": "12 hour resolution.",
52876+
"args": [],
52877+
"type": {
52878+
"kind": "OBJECT",
52879+
"name": "UnconfirmedIndividualBarData",
52880+
"ofType": null
52881+
},
52882+
"isDeprecated": false,
52883+
"deprecationReason": null
5272452884
}
5272552885
],
5272652886
"inputFields": null,

src/resources/graphql.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,8 @@ export type EnhancedToken = {
10321032
name?: Maybe<Scalars['String']['output']>;
10331033
/** The network ID the token is deployed on. */
10341034
networkId: Scalars['Int']['output'];
1035+
/** The pair that the token is contained in */
1036+
pairId?: Maybe<Scalars['String']['output']>;
10351037
/**
10361038
* The amount of this token in the pair.
10371039
* @deprecated Pooled can be found on the pair instead
@@ -1622,6 +1624,8 @@ export type HoldersResponse = {
16221624
items: Array<Balance>;
16231625
/** Status of holder. Disabled if on unsupported network or there is insufficient holder data. */
16241626
status: HoldersStatus;
1627+
/** the token Id */
1628+
tokenId?: Maybe<Scalars['String']['output']>;
16251629
/** What percentage of the total supply do the top 10 holders hold. */
16261630
top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
16271631
};
@@ -7947,6 +7951,8 @@ export type TokenFilterResult = {
79477951
liquidPair?: Maybe<Pair>;
79487952
/** The liquidity of the token's most liquid pair */
79497953
liquidPairLiquidity?: Maybe<Scalars['String']['output']>;
7954+
/** The liquid pairs price in USD. */
7955+
liquidPairPriceUSD?: Maybe<Scalars['String']['output']>;
79507956
/** Amount of liquidity in the token's top pair. */
79517957
liquidity?: Maybe<Scalars['String']['output']>;
79527958
/** The lowest price in USD in the past hour. */
@@ -8556,14 +8562,24 @@ export type TokenSparkline = {
85568562
attribute?: Maybe<SparklineAttribute>;
85578563
/** The token id */
85588564
id: Scalars['String']['output'];
8565+
/** The timeframe of the sparkline. */
8566+
resolution: Scalars['String']['output'];
85598567
/** List of sparkline values to chart */
85608568
sparkline: Array<SparklineValue>;
85618569
};
85628570

85638571
/** Input type of `tokenSparkline`. */
85648572
export type TokenSparklineInput = {
8573+
/** Whether to add empty bars to the response, populated with the previous bar's value. Default is `false` */
8574+
fillMissingBars?: InputMaybe<Scalars['Boolean']['input']>;
8575+
/** The unix timestamp for the start of the requested range. Defaults to 1 week ago. */
8576+
from?: InputMaybe<Scalars['Int']['input']>;
85658577
/** The contract address & networkId of the token, joined by a colon. ex: 0xbe042e9d09cb588331ff911c2b46fd833a3e5bd6:1 */
85668578
ids: Array<Scalars['String']['input']>;
8579+
/** The time frame for each candle. Available options are `1S`, `5S`, `15S`, `30S`, `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`. Defaults to `60` (1 hour) */
8580+
resolution?: InputMaybe<Scalars['String']['input']>;
8581+
/** The unix timestamp for the end of the requested range. Defaults to current time. */
8582+
to?: InputMaybe<Scalars['Int']['input']>;
85678583
};
85688584

85698585
/** A top trader for a token. */
@@ -8927,16 +8943,26 @@ export type UnconfirmedResolutionBarData = {
89278943
__typename?: 'UnconfirmedResolutionBarData';
89288944
/** 1 minute resolution. */
89298945
r1?: Maybe<UnconfirmedIndividualBarData>;
8946+
/** 1 day resolution. */
8947+
r1D?: Maybe<UnconfirmedIndividualBarData>;
89308948
/** 1 second resolution. */
89318949
r1S?: Maybe<UnconfirmedIndividualBarData>;
89328950
/** 5 minute resolution. */
89338951
r5?: Maybe<UnconfirmedIndividualBarData>;
89348952
/** 5 second resolution. */
89358953
r5S?: Maybe<UnconfirmedIndividualBarData>;
8954+
/** 1 week resolution. */
8955+
r7D?: Maybe<UnconfirmedIndividualBarData>;
89368956
/** 15 minute resolution. */
89378957
r15?: Maybe<UnconfirmedIndividualBarData>;
89388958
/** 15 second resolution. */
89398959
r15S?: Maybe<UnconfirmedIndividualBarData>;
8960+
/** 60 minute resolution. */
8961+
r60?: Maybe<UnconfirmedIndividualBarData>;
8962+
/** 4 hour resolution. */
8963+
r240?: Maybe<UnconfirmedIndividualBarData>;
8964+
/** 12 hour resolution. */
8965+
r720?: Maybe<UnconfirmedIndividualBarData>;
89408966
};
89418967

89428968
/** Event data for a token swap event. */

src/resources/schema.graphql

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,6 +1779,8 @@ type EnhancedToken {
17791779
freezable: String
17801780
"""The launchpad data for the token, if applicable."""
17811781
launchpad: LaunchpadData
1782+
"""The pair that the token is contained in"""
1783+
pairId: String
17821784
}
17831785

17841786
"""A token transaction."""
@@ -2333,6 +2335,8 @@ type HoldersResponse {
23332335
status: HoldersStatus!
23342336
"""What percentage of the total supply do the top 10 holders hold."""
23352337
top10HoldersPercent: Float
2338+
"""the token Id"""
2339+
tokenId: String
23362340
}
23372341

23382342
enum HoldersSortAttribute {
@@ -7591,6 +7595,8 @@ type TokenFilterResult {
75917595
liquidPair: Pair
75927596
"""The liquidity of the token's most liquid pair"""
75937597
liquidPairLiquidity: String
7598+
"""The liquid pairs price in USD."""
7599+
liquidPairPriceUSD: String
75947600
"""The token price in USD."""
75957601
priceUSD: String
75967602
"""The number of sells in the past 5 minutes."""
@@ -8173,6 +8179,8 @@ type TokenSearchResponse {
81738179
type TokenSparkline {
81748180
"""The token id"""
81758181
id: String!
8182+
"""The timeframe of the sparkline."""
8183+
resolution: String!
81768184
"""Which attribute the sparkline is charting. Defaults to `PRICE`"""
81778185
attribute: SparklineAttribute
81788186
"""List of sparkline values to chart"""
@@ -8183,6 +8191,14 @@ type TokenSparkline {
81838191
input TokenSparklineInput {
81848192
"""The contract address & networkId of the token, joined by a colon. ex: 0xbe042e9d09cb588331ff911c2b46fd833a3e5bd6:1"""
81858193
ids: [String!]!
8194+
"""The unix timestamp for the start of the requested range. Defaults to 1 week ago."""
8195+
from: Int
8196+
"""The unix timestamp for the end of the requested range. Defaults to current time."""
8197+
to: Int
8198+
"""The time frame for each candle. Available options are `1S`, `5S`, `15S`, `30S`, `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`. Defaults to `60` (1 hour)"""
8199+
resolution: String
8200+
"""Whether to add empty bars to the response, populated with the previous bar's value. Default is `false`"""
8201+
fillMissingBars: Boolean
81868202
}
81878203

81888204
"""A top trader for a token."""
@@ -8547,6 +8563,16 @@ type UnconfirmedResolutionBarData {
85478563
r5: UnconfirmedIndividualBarData
85488564
"""15 minute resolution."""
85498565
r15: UnconfirmedIndividualBarData
8566+
"""60 minute resolution."""
8567+
r60: UnconfirmedIndividualBarData
8568+
"""4 hour resolution."""
8569+
r240: UnconfirmedIndividualBarData
8570+
"""12 hour resolution."""
8571+
r720: UnconfirmedIndividualBarData
8572+
"""1 day resolution."""
8573+
r1D: UnconfirmedIndividualBarData
8574+
"""1 week resolution."""
8575+
r7D: UnconfirmedIndividualBarData
85508576
}
85518577

85528578
"""Event data for a token swap event."""

0 commit comments

Comments
 (0)