@codex-data/sdk 1.0.28 → 1.0.31

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 (42) hide show
  1. package/dist/index.js +17 -7
  2. package/dist/index.js.map +1 -1
  3. package/dist/resources/graphql.d.ts +11 -3
  4. package/dist/resources/graphql.d.ts.map +1 -1
  5. package/dist/resources/graphql.js.map +1 -1
  6. package/dist/scripts/buildSdk.js.map +1 -1
  7. package/dist/scripts/generateGraphql.d.ts +4 -4
  8. package/dist/scripts/generateGraphql.d.ts.map +1 -1
  9. package/dist/scripts/generateGraphql.js +20 -10
  10. package/dist/scripts/generateGraphql.js.map +1 -1
  11. package/dist/scripts/generateNetworkConfigs.js +23 -15
  12. package/dist/scripts/generateNetworkConfigs.js.map +1 -1
  13. package/dist/sdk/Mutation.d.ts.map +1 -1
  14. package/dist/sdk/Query.d.ts.map +1 -1
  15. package/dist/sdk/Subscribe.d.ts.map +1 -1
  16. package/dist/sdk/generated/fragment-masking.d.ts +4 -0
  17. package/dist/sdk/generated/fragment-masking.d.ts.map +1 -1
  18. package/dist/sdk/generated/fragment-masking.js +3 -4
  19. package/dist/sdk/generated/fragment-masking.js.map +1 -1
  20. package/dist/sdk/generated/gql.d.ts +96 -449
  21. package/dist/sdk/generated/gql.d.ts.map +1 -1
  22. package/dist/sdk/generated/gql.js +18 -19
  23. package/dist/sdk/generated/gql.js.map +1 -1
  24. package/dist/sdk/generated/graphql.d.ts +103 -450
  25. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  26. package/dist/sdk/generated/graphql.js.map +1 -1
  27. package/dist/sdk/index.d.ts.map +1 -1
  28. package/dist/sdk/index.js +9 -9
  29. package/dist/sdk/index.js.map +1 -1
  30. package/dist/sdk/index.test.js +4 -4
  31. package/dist/sdk/index.test.js.map +1 -1
  32. package/dist/sdk/invariant.js +1 -2
  33. package/dist/sdk/invariant.js.map +1 -1
  34. package/package.json +4 -1
  35. package/src/resources/graphql.schema.json +61 -6
  36. package/src/resources/graphql.ts +11 -3
  37. package/src/resources/schema.graphql +11 -3
  38. package/src/scripts/generateGraphql.ts +3 -2
  39. package/src/scripts/generateNetworkConfigs.ts +6 -8
  40. package/src/sdk/generated/fragment-masking.ts +24 -3
  41. package/src/sdk/generated/gql.ts +97 -2
  42. package/src/sdk/generated/graphql.ts +11 -3
@@ -483,7 +483,7 @@ export enum ContractType {
483
483
  export type CreateApiTokensInput = {
484
484
  /** Number of tokens to create, default is 1 */
485
485
  count?: InputMaybe<Scalars['Int']['input']>;
486
- /** Number of seconds until the token expires, defaults to 1 hour (3600) */
486
+ /** Number of milliseconds until the token expires, defaults to 1 hour (3600000) */
487
487
  expiresIn?: InputMaybe<Scalars['Int']['input']>;
488
488
  /** Number of requests allowed per token, represented as a string, default is 5000 */
489
489
  requestLimit?: InputMaybe<Scalars['String']['input']>;
@@ -5708,6 +5708,8 @@ export type PairMetadata = {
5708
5708
  priceChange12?: Maybe<Scalars['Float']['output']>;
5709
5709
  /** The percent price change in the past 24 hours. Decimal format. */
5710
5710
  priceChange24?: Maybe<Scalars['Float']['output']>;
5711
+ /** The non-quote token price in USD. */
5712
+ priceNonQuoteToken: Scalars['String']['output'];
5711
5713
  /** The token of interest within the pair. Can be `token0` or `token1`. */
5712
5714
  quoteToken?: Maybe<QuoteToken>;
5713
5715
  /** The type of statistics returned. Can be `FILTERED` or `UNFILTERED` */
@@ -7683,7 +7685,7 @@ export type Subscription = {
7683
7685
  onDetailedStatsUpdated?: Maybe<DetailedStats>;
7684
7686
  /** Live-streamed event labels for a token. */
7685
7687
  onEventLabelCreated?: Maybe<EventLabel>;
7686
- /** Live-streamed transactions for a token. */
7688
+ /** Live-streamed transactions for a pair. */
7687
7689
  onEventsCreated?: Maybe<AddEventsOutput>;
7688
7690
  /** Live-streamed transactions for a maker. */
7689
7691
  onEventsCreatedByMaker?: Maybe<AddEventsByMakerOutput>;
@@ -9024,8 +9026,12 @@ export type TokenWalletFilterResult = {
9024
9026
  tokenAmountSoldAll1y: Scalars['String']['output'];
9025
9027
  /** Token amount sold all in the past 30 days */
9026
9028
  tokenAmountSoldAll30d: Scalars['String']['output'];
9027
- /** The current token balance */
9029
+ /** The token balance in the wallet. This value does not update with every transfer and can be slightly stale. Use tokenBalanceLive for live data. */
9028
9030
  tokenBalance: Scalars['String']['output'];
9031
+ /** The current token balance in the wallet. */
9032
+ tokenBalanceLive?: Maybe<Scalars['String']['output']>;
9033
+ /** The current USD value of the token balance. */
9034
+ tokenBalanceLiveUsd?: Maybe<Scalars['String']['output']>;
9029
9035
  };
9030
9036
 
9031
9037
  /** A token with metadata. */
@@ -9236,6 +9242,8 @@ export type UnconfirmedSwapEventData = {
9236
9242
 
9237
9243
  export type UniswapV4Data = {
9238
9244
  __typename?: 'UniswapV4Data';
9245
+ /** Whether the token is the network token for the Uniswap V4 pool. */
9246
+ isToken0NetworkToken?: Maybe<Scalars['Boolean']['output']>;
9239
9247
  type: Scalars['String']['output'];
9240
9248
  /** The address of the hook contract for Uniswap V4 pools. */
9241
9249
  uniswapV4HookAddress?: Maybe<Scalars['String']['output']>;