Host market data
Declare a Solana token identity and editor action for host-owned search, quotes, charts and optional world cards. Definitions never receive provider credentials or network access.
Public exports
Import from @scape-wtf/sdk.
GizmoMarket, GizmoMarketToken, GizmoPredictionMarket, validEthereumToken, validGizmoMarket, validGizmoMarketSelection, validGizmoMarketToken, validGizmoPredictionMarket, validSolanaMint.
Type declarations
Import the public exports listed above from the package entry point.
ts
export interface GizmoMarketToken {
/** Omitted for legacy Solana tokens. Ethereum means mainnet only. */
chain?: 'ethereum';
address: string;
symbol: string;
name: string;
}
export interface GizmoMarket {
kind: 'solana-token' | 'polymarket';
field: string;
action: string;
/** Shared field: 'label' (default) or 'card'. */
displayField?: string;
}
export declare function validSolanaMint(value: unknown): value is string;
/** Canonical Ethereum mainnet contract identity; other EVM networks are not supported. */
export declare function validEthereumToken(value: unknown): value is string;
export declare function validGizmoMarketToken(value: unknown): value is GizmoMarketToken | null;
export declare function validGizmoMarket(value: unknown): value is GizmoMarket;
/** A selected market identity. Prices, outcomes and resolution stay transient host data. */
export interface GizmoPredictionMarket {
id: string;
question: string;
/** Read compatibility for the original outcome-selection format; new writes omit this. */
outcome?: string;
}
export declare function validGizmoPredictionMarket(value: unknown): value is GizmoPredictionMarket | null;
/** Validate state against the declared provider, including imported action results. */
export declare function validGizmoMarketSelection(market: GizmoMarket, value: unknown): boolean;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Usage and limits
See Gizmo guides, working examples, and limits for lifecycle, validation and Scape behavior.
