@codex-data/sdk 1.0.23 → 1.0.24
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 +26 -0
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js.map +1 -1
- package/dist/sdk/Mutation.d.ts +2 -2
- package/dist/sdk/Mutation.d.ts.map +1 -1
- package/dist/sdk/Mutation.js +2 -2
- package/dist/sdk/Mutation.js.map +1 -1
- package/dist/sdk/Query.d.ts +48 -48
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +48 -48
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +17 -17
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +82 -82
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +26 -0
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -0
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/index.test.js +18 -0
- package/dist/sdk/index.test.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/graphql.schema.json +160 -0
- package/src/resources/graphql.ts +26 -0
- package/src/resources/schema.graphql +26 -0
- package/src/sdk/Mutation.ts +5 -5
- package/src/sdk/Query.ts +103 -103
- package/src/sdk/Subscribe.ts +165 -165
- package/src/sdk/generated/graphql.ts +26 -0
- package/src/sdk/index.test.ts +25 -0
- package/src/sdk/index.ts +4 -0
|
@@ -1003,6 +1003,8 @@ export type EnhancedToken = {
|
|
|
1003
1003
|
name?: Maybe<Scalars['String']['output']>;
|
|
1004
1004
|
/** The network ID the token is deployed on. */
|
|
1005
1005
|
networkId: Scalars['Int']['output'];
|
|
1006
|
+
/** The pair that the token is contained in */
|
|
1007
|
+
pairId?: Maybe<Scalars['String']['output']>;
|
|
1006
1008
|
/**
|
|
1007
1009
|
* The amount of this token in the pair.
|
|
1008
1010
|
* @deprecated Pooled can be found on the pair instead
|
|
@@ -1558,6 +1560,8 @@ export type HoldersResponse = {
|
|
|
1558
1560
|
items: Array<Balance>;
|
|
1559
1561
|
/** Status of holder. Disabled if on unsupported network or there is insufficient holder data. */
|
|
1560
1562
|
status: HoldersStatus;
|
|
1563
|
+
/** the token Id */
|
|
1564
|
+
tokenId?: Maybe<Scalars['String']['output']>;
|
|
1561
1565
|
/** What percentage of the total supply do the top 10 holders hold. */
|
|
1562
1566
|
top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
|
|
1563
1567
|
};
|
|
@@ -7443,6 +7447,8 @@ export type TokenFilterResult = {
|
|
|
7443
7447
|
liquidPair?: Maybe<Pair>;
|
|
7444
7448
|
/** The liquidity of the token's most liquid pair */
|
|
7445
7449
|
liquidPairLiquidity?: Maybe<Scalars['String']['output']>;
|
|
7450
|
+
/** The liquid pairs price in USD. */
|
|
7451
|
+
liquidPairPriceUSD?: Maybe<Scalars['String']['output']>;
|
|
7446
7452
|
/** Amount of liquidity in the token's top pair. */
|
|
7447
7453
|
liquidity?: Maybe<Scalars['String']['output']>;
|
|
7448
7454
|
/** The lowest price in USD in the past hour. */
|
|
@@ -8032,13 +8038,23 @@ export type TokenSparkline = {
|
|
|
8032
8038
|
attribute?: Maybe<SparklineAttribute>;
|
|
8033
8039
|
/** The token id */
|
|
8034
8040
|
id: Scalars['String']['output'];
|
|
8041
|
+
/** The timeframe of the sparkline. */
|
|
8042
|
+
resolution: Scalars['String']['output'];
|
|
8035
8043
|
/** List of sparkline values to chart */
|
|
8036
8044
|
sparkline: Array<SparklineValue>;
|
|
8037
8045
|
};
|
|
8038
8046
|
/** Input type of `tokenSparkline`. */
|
|
8039
8047
|
export type TokenSparklineInput = {
|
|
8048
|
+
/** Whether to add empty bars to the response, populated with the previous bar's value. Default is `false` */
|
|
8049
|
+
fillMissingBars?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8050
|
+
/** The unix timestamp for the start of the requested range. Defaults to 1 week ago. */
|
|
8051
|
+
from?: InputMaybe<Scalars['Int']['input']>;
|
|
8040
8052
|
/** The contract address & networkId of the token, joined by a colon. ex: 0xbe042e9d09cb588331ff911c2b46fd833a3e5bd6:1 */
|
|
8041
8053
|
ids: Array<Scalars['String']['input']>;
|
|
8054
|
+
/** 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) */
|
|
8055
|
+
resolution?: InputMaybe<Scalars['String']['input']>;
|
|
8056
|
+
/** The unix timestamp for the end of the requested range. Defaults to current time. */
|
|
8057
|
+
to?: InputMaybe<Scalars['Int']['input']>;
|
|
8042
8058
|
};
|
|
8043
8059
|
/** A top trader for a token. */
|
|
8044
8060
|
export type TokenTopTrader = {
|
|
@@ -8390,16 +8406,26 @@ export type UnconfirmedResolutionBarData = {
|
|
|
8390
8406
|
__typename?: 'UnconfirmedResolutionBarData';
|
|
8391
8407
|
/** 1 minute resolution. */
|
|
8392
8408
|
r1?: Maybe<UnconfirmedIndividualBarData>;
|
|
8409
|
+
/** 1 day resolution. */
|
|
8410
|
+
r1D?: Maybe<UnconfirmedIndividualBarData>;
|
|
8393
8411
|
/** 1 second resolution. */
|
|
8394
8412
|
r1S?: Maybe<UnconfirmedIndividualBarData>;
|
|
8395
8413
|
/** 5 minute resolution. */
|
|
8396
8414
|
r5?: Maybe<UnconfirmedIndividualBarData>;
|
|
8397
8415
|
/** 5 second resolution. */
|
|
8398
8416
|
r5S?: Maybe<UnconfirmedIndividualBarData>;
|
|
8417
|
+
/** 1 week resolution. */
|
|
8418
|
+
r7D?: Maybe<UnconfirmedIndividualBarData>;
|
|
8399
8419
|
/** 15 minute resolution. */
|
|
8400
8420
|
r15?: Maybe<UnconfirmedIndividualBarData>;
|
|
8401
8421
|
/** 15 second resolution. */
|
|
8402
8422
|
r15S?: Maybe<UnconfirmedIndividualBarData>;
|
|
8423
|
+
/** 60 minute resolution. */
|
|
8424
|
+
r60?: Maybe<UnconfirmedIndividualBarData>;
|
|
8425
|
+
/** 4 hour resolution. */
|
|
8426
|
+
r240?: Maybe<UnconfirmedIndividualBarData>;
|
|
8427
|
+
/** 12 hour resolution. */
|
|
8428
|
+
r720?: Maybe<UnconfirmedIndividualBarData>;
|
|
8403
8429
|
};
|
|
8404
8430
|
/** Event data for a token swap event. */
|
|
8405
8431
|
export type UnconfirmedSwapEventData = {
|