@codex-data/sdk 2.4.4 → 2.4.5
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/sdk/generated/graphql.d.ts +11 -0
- package/package.json +1 -1
- package/schema.graphql +12 -0
|
@@ -289,6 +289,15 @@ export type Balance = {
|
|
|
289
289
|
/** The ID of the wallet (`walletAddress:networkId`). */
|
|
290
290
|
walletId: Scalars['String']['output'];
|
|
291
291
|
};
|
|
292
|
+
/** Filters for `balances`. Bounds can't be negative, and a range can't be empty. */
|
|
293
|
+
export type BalanceFilters = {
|
|
294
|
+
/** Keeps holdings whose `balanceUsd` is in range. Requires `sortBy: USD_VALUE` unless `tokens` is passed. A holding with no `balanceUsd` never matches. */
|
|
295
|
+
balanceUsd?: InputMaybe<NumberFilter>;
|
|
296
|
+
/** Keeps holdings that have a `tokenPriceUsd` when true, or that have none when false. */
|
|
297
|
+
hasPrice?: InputMaybe<Scalars['Boolean']['input']>;
|
|
298
|
+
/** Keeps holdings whose `liquidityUsd` is in range. A holding with no `liquidityUsd` never matches, except native balances, which always match. */
|
|
299
|
+
liquidityUsd?: InputMaybe<NumberFilter>;
|
|
300
|
+
};
|
|
292
301
|
export type BalancesInput = {
|
|
293
302
|
/** A cursor for use in pagination. */
|
|
294
303
|
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -297,6 +306,8 @@ export type BalancesInput = {
|
|
|
297
306
|
* @deprecated Use tokens list instead
|
|
298
307
|
*/
|
|
299
308
|
filterToken?: InputMaybe<Scalars['String']['input']>;
|
|
309
|
+
/** Keeps only holdings that match every filter set. A filtered page reads at most 600 of the wallet's holdings, so it can return fewer than `limit` results, or none, while `cursor` is still set; keep paging until `cursor` is null. Reuse a cursor only with the same `filters`. With `tokens`, name at most 200 token IDs across `networks`. */
|
|
310
|
+
filters?: InputMaybe<BalanceFilters>;
|
|
300
311
|
/** Whether to include native network balances in the response (ID will be native:<networkId>). Requires a list of `networks`. Does not apply when using `tokens`. On networks where the native asset is also readable through an ERC-20 alias contract, the response counts that holding once: the native view is returned and the alias projection row is suppressed on every page; request the alias contract explicitly in `tokens`, or set `includeNative: false`, for the contract view. */
|
|
301
312
|
includeNative?: InputMaybe<Scalars['Boolean']['input']>;
|
|
302
313
|
/** The maximum number of holdings to return. Does not apply when using `tokens`. */
|
package/package.json
CHANGED
package/schema.graphql
CHANGED
|
@@ -11366,6 +11366,18 @@ input BalancesInput {
|
|
|
11366
11366
|
sortDirection: RankingDirection
|
|
11367
11367
|
"""Controls how uiBalance is expressed. SCALED returns the Token-2022 stored RPC UI amount, and multiplies B20 balances by their active multiplier. RAW removes the active Token-2022 UI amount multiplier and returns B20 balances unchanged. Defaults to SCALED."""
|
|
11368
11368
|
uiAmountMode: UiAmountMode
|
|
11369
|
+
"""Keeps only holdings that match every filter set. A filtered page reads at most 600 of the wallet's holdings, so it can return fewer than `limit` results, or none, while `cursor` is still set; keep paging until `cursor` is null. Reuse a cursor only with the same `filters`. With `tokens`, name at most 200 token IDs across `networks`."""
|
|
11370
|
+
filters: BalanceFilters
|
|
11371
|
+
}
|
|
11372
|
+
|
|
11373
|
+
"""Filters for `balances`. Bounds can't be negative, and a range can't be empty."""
|
|
11374
|
+
input BalanceFilters {
|
|
11375
|
+
"""Keeps holdings whose `balanceUsd` is in range. Requires `sortBy: USD_VALUE` unless `tokens` is passed. A holding with no `balanceUsd` never matches."""
|
|
11376
|
+
balanceUsd: NumberFilter
|
|
11377
|
+
"""Keeps holdings whose `liquidityUsd` is in range. A holding with no `liquidityUsd` never matches, except native balances, which always match."""
|
|
11378
|
+
liquidityUsd: NumberFilter
|
|
11379
|
+
"""Keeps holdings that have a `tokenPriceUsd` when true, or that have none when false."""
|
|
11380
|
+
hasPrice: Boolean
|
|
11369
11381
|
}
|
|
11370
11382
|
|
|
11371
11383
|
"""Wallet balance of a token."""
|