madeonsol 4.0.0 → 4.2.0
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/LICENSE +21 -21
- package/README.md +5 -1
- package/dist/index.d.ts +199 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/llms.txt +117 -117
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 MadeOnSol
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 MadeOnSol
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -14,6 +14,10 @@ Official TypeScript/JavaScript SDK for the **[MadeOnSol](https://madeonsol.com)
|
|
|
14
14
|
|
|
15
15
|
> **Migrating to 4.0.0.** Runtime API behaviour is not intentionally changing: the server sends exactly what it sent before. The breaking change is the corrected public **type contract**. Several 3.x response types described field names and shapes the API never returned, so code that compiled against them read `undefined` at runtime. Rewritten or renamed types: `KolWalletProfile` (`kol` / `stats` / `scores` / `peer_ranks` / `recent_trades` / `pnl_by_token`), `KolTokenActivity` (`token_mint` / `summary` / `kols[]`), alpha linked wallets (`linked`, was `linked_wallets`), `DeployerTokenRow` (`token_mint`, was `mint`), wallet-tracker trade events (`slot`, `ingested_at`, `ordered_by`, `next_cursor_slot`; keys the API never sent are now optional and `@deprecated`), `DeployerProfileResponse` (from 3.0.0). Several previously required fields are now optional because the API omits or nulls them. Update the field names your code reads; no request-side change is needed.
|
|
16
16
|
|
|
17
|
+
> **New in 4.2.0 (any-wallet copy-trade).** Copy-trade rules can now follow any wallet, KOL or not (server 2026-10-04; KOL membership is enrichment only and copy-trade sources do not use Wallet Tracker quota). `CopyTradeSubscription` gains `source_admission` (`CopyTradeSourceAdmission`: `"any_wallet"` | legacy `"kol_only"`), `operational_state` (`CopyTradeOperationalState`: `eligible`, or an infrastructure state `monitoring_pending` / `monitoring_unavailable` / `source_capacity_unavailable`; legacy `no_tracked_sources` / `unknown`) and `monitoring_reasons`; `source_wallets_tracked` / `source_wallets_untracked` are deprecated (kept and still filled). **Token locks:** `TokenLockProgram` adds `smithii_vesting` and `sablier_lockup`; `TokenLock` gains the Sablier stream-NFT holder proof (`holder_status`, `last_proven_holder`, `holder_proven_at_slot`; `recipient` is only the CURRENT proven holder) and `withdrawn_tracked` — `withdrawn_raw` / `claimable_raw` are now `string | null` (null when the program does not expose withdrawals, e.g. Smithii). Additive on the wire; the two nullable changes can surface as compile-time errors under `strictNullChecks`.
|
|
18
|
+
|
|
19
|
+
> **New in 4.1.0 (deployer activity timeline).** `client.deployer.deployerActivity(wallet, { limit?, cursor?, since?, types? })` (typed `DeployerActivityResponse`) binds `GET /deployer-hunter/{wallet}/activity`: one newest-first timeline of launches, the deployer's own dev buys/sells, creator transfers, fee claims, funding in and capital out, windowed on each event's own time (PRO 30 d, ULTRA 365 d, BUSINESS unbounded; page clamped to 100 / 100 / 500 and echoed in `plan`). History is served from the online store only for now: read `coverage.families.<family>.complete`, `archive_required_before` and `plan.history.archive_only` before treating an empty range as "nothing happened". A wallet with no attributed launch reports `dev_trades.skipped_reason: "no_attributed_launch"`. PRO responses never carry an identity block or a fee-payer address; ULTRA/BUSINESS `identity` is `not_available` until identity stitching is released. **PRO+**. New types: `DeployerActivityResponse`, `DeployerActivityParams`, `DeployerActivityEvent`, `DeployerActivityEventType`, `DeployerActivityFamilyCoverage`, `DeployerActivityHistoryPlan`, `DeployerActivityRange`.
|
|
20
|
+
|
|
17
21
|
> **New in 4.0.0 (SDK contract parity, 2026-10-03).** **New methods:** `client.kol.wallets(params?)` → `GET /kol/wallets` (tracked KOL roster, any key); `client.token.search({ q, limit? })` → `GET /tokens/search` (ticker/name → candidate mints, any key); `client.listSignals()` → `GET /signals`; `client.manifests(params?)` → `GET /manifests` (nightly as-of dataset manifests with `fingerprint`, any key); `client.wallet.flags(address, { as_of?, history? })` → `GET /wallet/{address}/flags` (point-in-time flags, PRO+); `client.wallet.batchTrades({ wallets, since?, limit_per_wallet?, action? })` → `POST /wallet/batch/trades` (PRO+); `client.wallet.scoreList(wallets)` → `POST /wallet-list/score` (Enterprise); `client.wallet.funding(address, { limit?, offset? })` → `GET /wallet/{address}/funding` (shared-funder evidence, PRO+; `relationships` ULTRA+). `client.token.get(mint, { include })` accepts `buyer_quality` / `deployer`. **Typed (was `unknown`):** `kol.scoutLeaderboard()`, `kol.coordinationHistory()`, `getSignalPerformance()` (now also takes `{ history }`). **Type corrections (compile-time breaking, matching what the API has always returned):** `KolWalletProfile` (`kol`, `stats`, `scores`, `peer_ranks`, `recent_trades`, `pnl_by_token` with `total_bought`/`total_sold`), `KolTokenActivity` (`token_mint`, `summary`, `kols[]`), `AlphaLinkedResponse.linked` (with `avg_time_diff_secs`/`avg_sol_diff`), `DeployerTokensResponse.tokens` (`DeployerTokenRow`, with `instant_bond`), `WalletTrackerEvent` (`slot`, `replayed`, `ingested_at`, `timestamp`; `action` nullable) — the old never-sent keys stay as optional `@deprecated`. **New fields:** token snapshot (`/token/{mint}`, `/token/batch`) price provenance (`price_source`, `price_observed_at`, `price_is_stale`, `price_age_seconds`), `vwap_price_*`, `primary_pool_address`, `deployer_identity`, `lp_burn_status`, `token_supply_burn_detected`; `/tokens` rows `lp_burn_status` / `lp_burned` / `token_supply_burn_detected` + `deprecations`; risk `dev_status` / `resolved_from` and batch `unavailable` errors with `unavailable_inputs`; buyer-quality `signal_stats`; candles plan-floor fields; wallet PnL/positions `cache_age_seconds` / `cache_validation` / `cache_invalidated`; wallet-tracker `ordered_by` / `next_cursor` / `next_cursor_slot`; deployer stats MC-at-alert maps, alert-stats `sampled_rows`, `instant_bond` on recent bonds, typed `pump_tokens`; sniper `attribution_status`; stream-token channel registry + named-subscription hints; KOL PnL open-position `is_priced`; KOL compare `overlap_meta`.
|
|
18
22
|
|
|
19
23
|
> **New in 3.0.0 (API parity 2026-10-03).** **Type fixes:** `KolConsensusResponse` now nests the figures under `consensus` (new `KolConsensus`) and `PeakHistoryResponse` under `peak_history` (new `PeakHistory`) — that is what the API has always returned; the old flat types read `undefined`. **New fields:** `TradeCoverage.size_floor` (`TradeSizeFloor`: the stored tape drops buys under 0.05 SOL / $3.50 in stables; live streams, prices and candles are unaffected) plus `data_observed` / `eligibility` / `eligibility_basis` / `completeness`; `WalletStatsResponse.stats_unavailable` / `enrichment_unavailable` / `degraded_fields` (a degraded read is UNKNOWN, never "no data"); token-lock provenance and countdowns on `TokenLock` (`provider`, `explorer`, `price_usd`, `seconds_until_end`, `seconds_until_next_unlock`, Bonfida `schedule`) and `cursor` / `next_cursor` + `degraded_fields` on the locks feed; copy-trade `min_mc_usd` / `max_mc_usd`, `source_wallets_tracked` / `source_wallets_untracked` / `warnings`; `ApiTier` adds `BUSINESS` / `ENTERPRISE`. **New method:** `client.token.topTraders(mint, params?)` → `GET /tokens/{mint}/top-traders` (PRO+).
|
|
@@ -1594,7 +1598,7 @@ Each `dex:trades` message echoes the `sub_id` that matched, so you can route the
|
|
|
1594
1598
|
|
|
1595
1599
|
### Copy-Trade — `client.copytrade` *(new in 2.10)*
|
|
1596
1600
|
|
|
1597
|
-
Mirror N source wallets into actionable signals (delivered via webhook/WebSocket). PRO
|
|
1601
|
+
Mirror N source wallets into actionable signals (delivered via webhook/WebSocket). Copy-trade rules can follow any valid Solana wallet, KOL or not (server 2026-10-04, `source_admission: "any_wallet"`; KOL membership is enrichment only and copy-trade sources do not use Wallet Tracker quota). Every rule reports `operational_state` (`eligible`, or an infrastructure state with `monitoring_reasons`) separately from your `is_active` switch. PRO+ — PRO: 3 rules × 5 wallets each, ULTRA: 20 × 50, BUSINESS: 100 × 250.
|
|
1598
1602
|
|
|
1599
1603
|
```ts
|
|
1600
1604
|
const { subscription, webhook_secret } = await client.copytrade.create({
|
package/dist/index.d.ts
CHANGED
|
@@ -1828,6 +1828,142 @@ export interface DeployerRewardsResponse {
|
|
|
1828
1828
|
note: string;
|
|
1829
1829
|
};
|
|
1830
1830
|
}
|
|
1831
|
+
export type DeployerActivityEventType = "launch" | "dev_buy" | "dev_sell" | "creator_transferred" | "fee_claim" | "funding_in" | "capital_out";
|
|
1832
|
+
/**
|
|
1833
|
+
* One event of a deployer's activity timeline. Fields present depend on
|
|
1834
|
+
* `type`; addresses are raw facts of the concrete event, never identity claims.
|
|
1835
|
+
*/
|
|
1836
|
+
export interface DeployerActivityEvent {
|
|
1837
|
+
id: string;
|
|
1838
|
+
type: DeployerActivityEventType;
|
|
1839
|
+
/** Time of the event itself (the window applies to this). */
|
|
1840
|
+
at: string;
|
|
1841
|
+
time_basis: "chain" | "ingest" | "chain_or_ingest";
|
|
1842
|
+
mint?: string | null;
|
|
1843
|
+
name?: string | null;
|
|
1844
|
+
symbol?: string | null;
|
|
1845
|
+
launchpad?: string | null;
|
|
1846
|
+
bonded_at?: string | null;
|
|
1847
|
+
/** launch: whether the creator paid the create fee (null = unknown). The payer address is never in this response. */
|
|
1848
|
+
fee_payer_is_creator?: boolean | null;
|
|
1849
|
+
external_fee_payer?: boolean | null;
|
|
1850
|
+
dev_buy_sol?: number | null;
|
|
1851
|
+
dev_buy_tokens?: number | null;
|
|
1852
|
+
dev_buy_supply_pct?: number | null;
|
|
1853
|
+
own_token?: boolean;
|
|
1854
|
+
sol?: number | null;
|
|
1855
|
+
tokens?: number | null;
|
|
1856
|
+
price_usd?: number | null;
|
|
1857
|
+
first_at?: string | null;
|
|
1858
|
+
last_at?: string | null;
|
|
1859
|
+
aggregate?: boolean;
|
|
1860
|
+
from?: string | null;
|
|
1861
|
+
to?: string | null;
|
|
1862
|
+
direction?: "in" | "out";
|
|
1863
|
+
initiated_by?: "creator" | "platform_admin" | "other_signer" | "unknown";
|
|
1864
|
+
tx?: string;
|
|
1865
|
+
kind?: "direct" | "social";
|
|
1866
|
+
amount_raw?: string | null;
|
|
1867
|
+
quote_mint?: string | null;
|
|
1868
|
+
source?: string;
|
|
1869
|
+
recipient?: string;
|
|
1870
|
+
asset?: string;
|
|
1871
|
+
decimals?: number | null;
|
|
1872
|
+
transfer_count?: number;
|
|
1873
|
+
sample_tx_ids?: string[];
|
|
1874
|
+
first_tx?: string | null;
|
|
1875
|
+
}
|
|
1876
|
+
export interface DeployerActivityFamilyCoverage {
|
|
1877
|
+
source: string;
|
|
1878
|
+
retention: string;
|
|
1879
|
+
scope?: string;
|
|
1880
|
+
truncated: boolean;
|
|
1881
|
+
loaded: boolean;
|
|
1882
|
+
/** false: part of the window lies outside the online store (trade months only in the archive), or the boundary is unknown. */
|
|
1883
|
+
complete: boolean;
|
|
1884
|
+
/** Earliest instant the online store answers this family completely. */
|
|
1885
|
+
complete_from: string | null;
|
|
1886
|
+
/** Before this instant events exist only in the archive (not served yet); null when the window does not cross it. */
|
|
1887
|
+
archive_required_before: string | null;
|
|
1888
|
+
boundary_known: boolean;
|
|
1889
|
+
/** Set when the family was not queried because it cannot apply (a wallet with no attributed launch has no dev trades). */
|
|
1890
|
+
skipped_reason?: "no_attributed_launch";
|
|
1891
|
+
}
|
|
1892
|
+
export interface DeployerActivityRange {
|
|
1893
|
+
from: string | null;
|
|
1894
|
+
to: string | null;
|
|
1895
|
+
}
|
|
1896
|
+
/** Requested vs online vs archive-only history (archive reads are a planned follow-up). */
|
|
1897
|
+
export interface DeployerActivityHistoryPlan {
|
|
1898
|
+
requested: DeployerActivityRange & {
|
|
1899
|
+
source: "since_param" | "plan_default";
|
|
1900
|
+
};
|
|
1901
|
+
effective: DeployerActivityRange & {
|
|
1902
|
+
clamped: boolean;
|
|
1903
|
+
max_days: number | null;
|
|
1904
|
+
};
|
|
1905
|
+
online: DeployerActivityRange & {
|
|
1906
|
+
served: boolean;
|
|
1907
|
+
};
|
|
1908
|
+
archive_only: (DeployerActivityRange & {
|
|
1909
|
+
served: boolean;
|
|
1910
|
+
reason: "archive_reads_not_enabled";
|
|
1911
|
+
}) | null;
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
* GET /deployer-hunter/{wallet}/activity — PRO+, KEYED (v1) only. Feature-flagged
|
|
1915
|
+
* server-side (503 `feature_disabled` until enabled).
|
|
1916
|
+
*/
|
|
1917
|
+
export interface DeployerActivityResponse {
|
|
1918
|
+
wallet: string;
|
|
1919
|
+
is_deployer: boolean;
|
|
1920
|
+
deployer: {
|
|
1921
|
+
tier: string | null;
|
|
1922
|
+
first_deploy_at: string | null;
|
|
1923
|
+
last_deploy_at: string | null;
|
|
1924
|
+
} | null;
|
|
1925
|
+
plan: {
|
|
1926
|
+
entitlement: "pro" | "ultra" | "business";
|
|
1927
|
+
window_days: number | null;
|
|
1928
|
+
max_limit: number;
|
|
1929
|
+
history: DeployerActivityHistoryPlan;
|
|
1930
|
+
};
|
|
1931
|
+
window: {
|
|
1932
|
+
since: string | null;
|
|
1933
|
+
until: string;
|
|
1934
|
+
max_days: number | null;
|
|
1935
|
+
applies_to: "event_time";
|
|
1936
|
+
};
|
|
1937
|
+
events: DeployerActivityEvent[];
|
|
1938
|
+
pagination: {
|
|
1939
|
+
limit: number;
|
|
1940
|
+
requested_limit: number;
|
|
1941
|
+
limit_capped: boolean;
|
|
1942
|
+
next_cursor: string | null;
|
|
1943
|
+
has_more: boolean;
|
|
1944
|
+
};
|
|
1945
|
+
coverage: {
|
|
1946
|
+
status: "observed" | "partial";
|
|
1947
|
+
families: Record<string, DeployerActivityFamilyCoverage>;
|
|
1948
|
+
future_events_dropped: number;
|
|
1949
|
+
note: string;
|
|
1950
|
+
};
|
|
1951
|
+
/** ULTRA/BUSINESS only, absent on PRO. Currently always not_available. */
|
|
1952
|
+
identity?: {
|
|
1953
|
+
status: "not_available";
|
|
1954
|
+
reason: "identity_stitching_not_released";
|
|
1955
|
+
note: string;
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
export interface DeployerActivityParams {
|
|
1959
|
+
/** Clamped server-side to 100 (PRO, ULTRA) or 500 (BUSINESS). */
|
|
1960
|
+
limit?: number;
|
|
1961
|
+
cursor?: string;
|
|
1962
|
+
/** Requested window start (ISO 8601); clamped to the plan window. */
|
|
1963
|
+
since?: string;
|
|
1964
|
+
/** Comma list of event types. */
|
|
1965
|
+
types?: string;
|
|
1966
|
+
}
|
|
1831
1967
|
export type AlphaSort = "win_rate" | "pnl" | "roi";
|
|
1832
1968
|
export type AlphaPeriod = "7d" | "30d" | "all";
|
|
1833
1969
|
export interface AlphaLeaderboardParams {
|
|
@@ -2374,7 +2510,9 @@ export interface TokenHoldersResponse {
|
|
|
2374
2510
|
source: TokenHoldersSource;
|
|
2375
2511
|
}
|
|
2376
2512
|
/** Locker program a contract lives under. LP locks are NOT covered (token / vesting locks only). */
|
|
2377
|
-
export type TokenLockProgram = "streamflow" | "jupiter_lock" | "bonfida_vesting";
|
|
2513
|
+
export type TokenLockProgram = "streamflow" | "jupiter_lock" | "bonfida_vesting" | "smithii_vesting" | "sablier_lockup";
|
|
2514
|
+
/** sablier_lockup stream-NFT holder proof: current = recipient proven by the latest read; lost_proof = recipient unknown, last_proven_holder is evidence; never_proven; burned = stream NFT burned, no recipient; anomaly = fail closed. */
|
|
2515
|
+
export type TokenLockHolderStatus = "current" | "lost_proof" | "never_proven" | "burned" | "anomaly";
|
|
2378
2516
|
/** `lock` = whole amount released at one date; `vesting` = cliff and/or periodic release. */
|
|
2379
2517
|
export type TokenLockKind = "lock" | "vesting";
|
|
2380
2518
|
/** Contract status, derived at request time from the on-chain schedule + withdrawn/cancelled state. */
|
|
@@ -2444,7 +2582,14 @@ export interface TokenLock {
|
|
|
2444
2582
|
mint: string;
|
|
2445
2583
|
/** Creator / locker. Bonfida has none on-chain. */
|
|
2446
2584
|
sender: string | null;
|
|
2585
|
+
/** sablier_lockup: the CURRENT proven stream-NFT holder only, null otherwise (see holder_status). smithii_vesting: null for merkle receivers. */
|
|
2447
2586
|
recipient: string | null;
|
|
2587
|
+
/** Server 2026-10-03 — sablier_lockup only (null for other programs); absent on older servers. */
|
|
2588
|
+
holder_status?: TokenLockHolderStatus | null;
|
|
2589
|
+
/** Server 2026-10-03 — sablier_lockup only: last holder a read proved (provenance, NOT the recipient unless holder_status is current). */
|
|
2590
|
+
last_proven_holder?: string | null;
|
|
2591
|
+
/** Server 2026-10-03 — sablier_lockup only: slot of the read that last proved last_proven_holder. */
|
|
2592
|
+
holder_proven_at_slot?: number | null;
|
|
2448
2593
|
name: string | null;
|
|
2449
2594
|
/** Deposited amount. */
|
|
2450
2595
|
amount_raw: string;
|
|
@@ -2461,11 +2606,13 @@ export interface TokenLock {
|
|
|
2461
2606
|
locked_pct_of_supply: number | null;
|
|
2462
2607
|
unlocked_raw: string;
|
|
2463
2608
|
unlocked: number | null;
|
|
2464
|
-
/** Claimed so far. */
|
|
2465
|
-
withdrawn_raw: string;
|
|
2609
|
+
/** Claimed so far; null when the program does not expose it (withdrawn_tracked false: smithii_vesting). */
|
|
2610
|
+
withdrawn_raw: string | null;
|
|
2466
2611
|
withdrawn: number | null;
|
|
2467
|
-
/**
|
|
2468
|
-
|
|
2612
|
+
/** Server 2026-10-03 — false = withdrawn / claimable are unknown (null), not zero. Absent on older servers (= tracked). */
|
|
2613
|
+
withdrawn_tracked?: boolean;
|
|
2614
|
+
/** Unlocked but not yet withdrawn; null when withdrawn is not tracked. */
|
|
2615
|
+
claimable_raw: string | null;
|
|
2469
2616
|
claimable: number | null;
|
|
2470
2617
|
start_at: string | null;
|
|
2471
2618
|
cliff_at: string | null;
|
|
@@ -5883,6 +6030,20 @@ declare class DeployerClient {
|
|
|
5883
6030
|
* @param wallet Wallet address.
|
|
5884
6031
|
*/
|
|
5885
6032
|
deployerRewards(wallet: string): Promise<DeployerRewardsResponse>;
|
|
6033
|
+
/**
|
|
6034
|
+
* A wallet's deployer activity as ONE newest-first timeline: launches, its own
|
|
6035
|
+
* dev buys/sells, creator transfers, fee claims, funding in and capital out.
|
|
6036
|
+
* The window applies to each EVENT's own time (PRO 30 d, ULTRA 365 d, BUSINESS
|
|
6037
|
+
* unbounded; page clamped to 100 / 100 / 500, echoed in `plan`). History is
|
|
6038
|
+
* online-only for now: check `coverage.families.<f>.complete`,
|
|
6039
|
+
* `archive_required_before` and `plan.history.archive_only` before reading an
|
|
6040
|
+
* empty range as "nothing happened". PRO responses never carry an identity
|
|
6041
|
+
* block or a fee-payer address; ULTRA/BUSINESS `identity` is `not_available`
|
|
6042
|
+
* until identity stitching is released. Paginate with `next_cursor`.
|
|
6043
|
+
* @param wallet Wallet address (deployer or not: `is_deployer` says which).
|
|
6044
|
+
* @param opts Optional: limit, cursor, since (ISO 8601), types (comma list).
|
|
6045
|
+
*/
|
|
6046
|
+
deployerActivity(wallet: string, opts?: DeployerActivityParams): Promise<DeployerActivityResponse>;
|
|
5886
6047
|
}
|
|
5887
6048
|
declare class WalletTrackerClient {
|
|
5888
6049
|
private readonly _get;
|
|
@@ -6273,16 +6434,44 @@ export interface CopyTradeSubscription {
|
|
|
6273
6434
|
created_at: string;
|
|
6274
6435
|
updated_at?: string;
|
|
6275
6436
|
/**
|
|
6276
|
-
* Source wallets that are tracked KOL wallets
|
|
6277
|
-
*
|
|
6278
|
-
*
|
|
6437
|
+
* Source wallets that are tracked KOL wallets, read at response time. Under
|
|
6438
|
+
* `source_admission: "any_wallet"` (production since 2026-10-04) this is KOL
|
|
6439
|
+
* enrichment only; under the legacy `"kol_only"` engine only these produce signals.
|
|
6440
|
+
* `null` when the tracking lookup failed (see `warnings`). Server 2026-09-25 on.
|
|
6441
|
+
* @deprecated 2026-10-04 — kept and still filled; KOL membership is enrichment only.
|
|
6279
6442
|
*/
|
|
6280
6443
|
source_wallets_tracked?: string[] | null;
|
|
6281
|
-
/**
|
|
6444
|
+
/**
|
|
6445
|
+
* Source wallets that are NOT tracked KOL wallets. Under `source_admission: "any_wallet"`
|
|
6446
|
+
* they fire like any other wallet (no Wallet Tracker entry or quota needed); under the
|
|
6447
|
+
* legacy `"kol_only"` engine they never produce a signal.
|
|
6448
|
+
* @deprecated 2026-10-04 — kept and still filled; KOL membership is enrichment only.
|
|
6449
|
+
*/
|
|
6282
6450
|
source_wallets_untracked?: string[] | null;
|
|
6283
|
-
/** Present when
|
|
6451
|
+
/** Present when something needs attention (legacy kol_only: untracked wallets), or tracking could not be determined. */
|
|
6284
6452
|
warnings?: CopyTradeRuleWarning[];
|
|
6453
|
+
/** Server 2026-10-04 — whether the rule can fire right now, separate from `is_active`; see {@link CopyTradeOperationalState}. */
|
|
6454
|
+
operational_state?: CopyTradeOperationalState;
|
|
6455
|
+
/** Server 2026-10-04 — which trades the RUNNING engine admits. Absent = unknown (legacy kol_only semantics). */
|
|
6456
|
+
source_admission?: CopyTradeSourceAdmission;
|
|
6457
|
+
/** Server 2026-10-04 — present only with `operational_state: "monitoring_unavailable"`: e.g. `trade_stream_stale`, `source_producer_stale`, `map_stale`, `engine_state_stale`. */
|
|
6458
|
+
monitoring_reasons?: string[];
|
|
6285
6459
|
}
|
|
6460
|
+
/**
|
|
6461
|
+
* Which trades the running copy-trade engine admits. `any_wallet` (production since
|
|
6462
|
+
* 2026-10-04): copy-trade rules can now follow any valid wallet, KOL or not (KOL
|
|
6463
|
+
* membership is enrichment only). `kol_only`: legacy, only tracked KOL wallets fire.
|
|
6464
|
+
*/
|
|
6465
|
+
export type CopyTradeSourceAdmission = "kol_only" | "any_wallet";
|
|
6466
|
+
/**
|
|
6467
|
+
* Whether a copy-trade rule can fire. Under `any_wallet`: `eligible`, or an
|
|
6468
|
+
* infrastructure state — `monitoring_pending` (rule changed after the engine's last
|
|
6469
|
+
* load, live within seconds), `monitoring_unavailable` (engine / trade stream not
|
|
6470
|
+
* reporting; it fires nothing then, see `monitoring_reasons`),
|
|
6471
|
+
* `source_capacity_unavailable` (engine source-wallet cap reached). Legacy
|
|
6472
|
+
* `kol_only`: `no_tracked_sources` | `unknown`.
|
|
6473
|
+
*/
|
|
6474
|
+
export type CopyTradeOperationalState = "eligible" | "monitoring_pending" | "monitoring_unavailable" | "source_capacity_unavailable" | "no_tracked_sources" | "unknown";
|
|
6286
6475
|
/** A non-fatal note on a copy-trade rule. The rule is saved unchanged. */
|
|
6287
6476
|
export interface CopyTradeRuleWarning {
|
|
6288
6477
|
code: "untracked_source_wallets" | "source_wallet_tracking_unavailable" | (string & {});
|