@codex-data/sdk 2.4.4 → 2.4.7
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/Subscribe.js +6 -6
- package/dist/sdk/Subscribe.mjs +6 -6
- package/dist/sdk/generated/gql.d.ts +44 -44
- package/dist/sdk/generated/gql.js +22 -22
- package/dist/sdk/generated/gql.mjs +22 -22
- package/dist/sdk/generated/graphql.d.ts +892 -0
- package/dist/sdk/generated/graphql.js +22 -22
- package/dist/sdk/generated/graphql.mjs +22 -22
- package/package.json +1 -1
- package/schema.graphql +30 -0
package/package.json
CHANGED
package/schema.graphql
CHANGED
|
@@ -9286,6 +9286,8 @@ type EnhancedToken {
|
|
|
9286
9286
|
categories: [Category!]
|
|
9287
9287
|
"""Codex's unified risk assessment for this token — one verdict, the score behind it, how much analysis stood behind that score, and the reasons that fired. Read `coverage` before trusting `verdict`."""
|
|
9288
9288
|
risk: TokenRisk
|
|
9289
|
+
"""The issuer of a real-world-asset token, such as a tokenized stock. Null when the token has no known issuer."""
|
|
9290
|
+
issuer: TokenIssuer
|
|
9289
9291
|
}
|
|
9290
9292
|
|
|
9291
9293
|
"""A token matching a set of filter parameters."""
|
|
@@ -11366,6 +11368,18 @@ input BalancesInput {
|
|
|
11366
11368
|
sortDirection: RankingDirection
|
|
11367
11369
|
"""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
11370
|
uiAmountMode: UiAmountMode
|
|
11371
|
+
"""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`."""
|
|
11372
|
+
filters: BalanceFilters
|
|
11373
|
+
}
|
|
11374
|
+
|
|
11375
|
+
"""Filters for `balances`. Bounds can't be negative, and a range can't be empty."""
|
|
11376
|
+
input BalanceFilters {
|
|
11377
|
+
"""Keeps holdings whose `balanceUsd` is in range. Requires `sortBy: USD_VALUE` unless `tokens` is passed. A holding with no `balanceUsd` never matches."""
|
|
11378
|
+
balanceUsd: NumberFilter
|
|
11379
|
+
"""Keeps holdings whose `liquidityUsd` is in range. A holding with no `liquidityUsd` never matches, except native balances, which always match."""
|
|
11380
|
+
liquidityUsd: NumberFilter
|
|
11381
|
+
"""Keeps holdings that have a `tokenPriceUsd` when true, or that have none when false."""
|
|
11382
|
+
hasPrice: Boolean
|
|
11369
11383
|
}
|
|
11370
11384
|
|
|
11371
11385
|
"""Wallet balance of a token."""
|
|
@@ -12699,6 +12713,10 @@ type PairFilterResult {
|
|
|
12699
12713
|
riskCoverage: RiskAnalysisCoverage
|
|
12700
12714
|
"""The reason codes behind `riskVerdict`, unordered. New codes are added over time, so do not assume this list is exhaustive."""
|
|
12701
12715
|
riskReasons: [RiskReasonCode!]
|
|
12716
|
+
"""Buy tax of the pair's token of interest, measured by the latest decisive contract analysis, as a fraction (0.05 means 5%). Null when no decisive analysis measured it."""
|
|
12717
|
+
riskBuyTax: Float
|
|
12718
|
+
"""Sell tax of the pair's token of interest, measured by the latest decisive contract analysis, as a fraction (0.05 means 5%). Null when no decisive analysis measured it, including when that analysis found a honeypot: its test sale failed, so no sell tax was measured."""
|
|
12719
|
+
riskSellTax: Float
|
|
12702
12720
|
}
|
|
12703
12721
|
|
|
12704
12722
|
"""The app a trade was placed through — a trading terminal, wallet, or interface — as distinct from the exchange it settled on."""
|
|
@@ -13385,6 +13403,14 @@ type TokenWithMetadata {
|
|
|
13385
13403
|
lastTransaction: Int
|
|
13386
13404
|
}
|
|
13387
13405
|
|
|
13406
|
+
"""The issuer of a real-world-asset token."""
|
|
13407
|
+
type TokenIssuer {
|
|
13408
|
+
"""Stable identifier for the issuer, e.g. `ondo-global-markets`. Safe to key on."""
|
|
13409
|
+
id: String!
|
|
13410
|
+
"""Human-readable name for the issuer, e.g. `Ondo Global Markets`. Null if the identifier has no registry entry yet."""
|
|
13411
|
+
displayName: String
|
|
13412
|
+
}
|
|
13413
|
+
|
|
13388
13414
|
"""Codex's unified risk assessment for a token. `verdict` is not a safety guarantee. `VERIFIED` means a human marked the token not-a-scam — a moderator judgement, not an allowlist — and `NEUTRAL` means the weighted score is below the caution threshold. Reasons can still be present on a neutral assessment. Neither says a token is safe to trade, and a clean assessment cannot see an un-armed trap (owner-pausable, blacklist-after-N-txs, upgradeable proxy). Read `coverage` before trusting anything else: `NOT_ANALYZED` means no contract analysis stands behind this verdict. Null fields indicate unavailable or inapplicable results as described below; they never mean "safe"."""
|
|
13389
13415
|
type TokenRisk {
|
|
13390
13416
|
"""The verdict. Null when the token has not been assessed."""
|
|
@@ -13399,6 +13425,10 @@ type TokenRisk {
|
|
|
13399
13425
|
coverage: RiskAnalysisCoverage
|
|
13400
13426
|
"""The reason codes behind the verdict, unordered. Empty when nothing fired; null when unassessed. New codes are added over time, so do not assume this list is exhaustive or that a familiar set is the whole picture."""
|
|
13401
13427
|
reasons: [RiskReasonCode!]
|
|
13428
|
+
"""Buy tax measured by the latest decisive contract analysis, as a fraction (0.05 means 5%). Can be newer than `verdict`, which updates on the next assessment. Null when no decisive analysis measured it."""
|
|
13429
|
+
buyTax: Float
|
|
13430
|
+
"""Sell tax measured by the latest decisive contract analysis, as a fraction (0.05 means 5%). Can be newer than `verdict`, which updates on the next assessment. Null when no decisive analysis measured it, including when that analysis found a honeypot: its test sale failed, so no sell tax was measured."""
|
|
13431
|
+
sellTax: Float
|
|
13402
13432
|
}
|
|
13403
13433
|
|
|
13404
13434
|
"""A token's risk verdict. These values are not an ordered safety scale: `SCAM` and `VERIFIED` are terminal states reached by mechanical proof or a human decision, while `HIGH_RISK`, `CAUTION` and `NEUTRAL` are graded outcomes of weighted signals."""
|