keyring-agent-core 0.2.36 → 0.2.38
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/index.d.ts +284 -5
- package/dist/index.js +123 -110
- package/dist/index.native.js +218 -205
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Method, AxiosRequestConfig } from 'axios';
|
|
2
|
+
|
|
1
3
|
/** tick → price of token0 in terms of token1, decimal-adjusted */
|
|
2
4
|
declare function tickToPrice(tick: number, token0Decimals: number, token1Decimals: number): number;
|
|
3
5
|
/** price (token1 per token0, decimal-adjusted) → tick */
|
|
@@ -806,6 +808,75 @@ interface WalletActionProps {
|
|
|
806
808
|
*/
|
|
807
809
|
parameters: Record<string, string>;
|
|
808
810
|
}
|
|
811
|
+
/**
|
|
812
|
+
* Props for the FE `X402PaymentRequired` component — a GENERIC paywall card for
|
|
813
|
+
* any x402-gated API (HTTP 402 "pay-per-call"). The core already made the call,
|
|
814
|
+
* hit a 402, and built the payment; it does NOT hold a private key, so it asks
|
|
815
|
+
* the FE only to SIGN `typedData` (EIP-712) with the connected wallet. The FE
|
|
816
|
+
* returns the signature to `AgentCore.submitX402Payment(challenge, signature)`,
|
|
817
|
+
* which re-calls the API with the `PAYMENT-SIGNATURE` header and synthesizes the
|
|
818
|
+
* answer.
|
|
819
|
+
*
|
|
820
|
+
* Mirrors the `WalletActionProps` contract: BE emits a structured intent, FE
|
|
821
|
+
* owns the wallet interaction (here: a single typed-data signature).
|
|
822
|
+
*/
|
|
823
|
+
interface X402PaymentRequiredProps {
|
|
824
|
+
/** EIP-712 typed data the FE must sign with the connected wallet. */
|
|
825
|
+
typedData: {
|
|
826
|
+
domain: {
|
|
827
|
+
name?: string;
|
|
828
|
+
version?: string;
|
|
829
|
+
chainId: number;
|
|
830
|
+
verifyingContract: string;
|
|
831
|
+
};
|
|
832
|
+
types: Record<string, Array<{
|
|
833
|
+
name: string;
|
|
834
|
+
type: string;
|
|
835
|
+
}>>;
|
|
836
|
+
primaryType: string;
|
|
837
|
+
message: Record<string, string>;
|
|
838
|
+
};
|
|
839
|
+
/** Human-readable fields for the card (display only). */
|
|
840
|
+
display: {
|
|
841
|
+
/** Amount in smallest unit, e.g. "10000". */
|
|
842
|
+
amount: string;
|
|
843
|
+
/** Asset symbol, e.g. "USDC". */
|
|
844
|
+
asset: string;
|
|
845
|
+
/** CAIP-2 network id, e.g. "eip155:84532". */
|
|
846
|
+
network: string;
|
|
847
|
+
/** Network name, e.g. "Base Sepolia". */
|
|
848
|
+
networkLabel: string;
|
|
849
|
+
/** Address receiving the payment. */
|
|
850
|
+
payTo: string;
|
|
851
|
+
/** Resource description from the 402 (what is being unlocked). */
|
|
852
|
+
description?: string;
|
|
853
|
+
/** The resource URL the payment unlocks. */
|
|
854
|
+
resourceUrl?: string;
|
|
855
|
+
};
|
|
856
|
+
/**
|
|
857
|
+
* Opaque challenge blob — the FE round-trips it back VERBATIM alongside the
|
|
858
|
+
* signature to `submitX402Payment`. Shape is `X402Challenge` from the core's
|
|
859
|
+
* x402 client; the FE must not interpret it beyond `typedData`.
|
|
860
|
+
*/
|
|
861
|
+
challenge: unknown;
|
|
862
|
+
}
|
|
863
|
+
/** What the host's x402 signer is asked to sign. */
|
|
864
|
+
interface X402SignRequest {
|
|
865
|
+
/** EIP-712 typed data to sign with the connected wallet. */
|
|
866
|
+
typedData: X402PaymentRequiredProps['typedData'];
|
|
867
|
+
/** Human-readable payment details for a confirmation UI. */
|
|
868
|
+
display: X402PaymentRequiredProps['display'];
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Host-provided async signer for the inline x402 flow. Registered via
|
|
872
|
+
* `AgentCore.setX402Signer`. When the core calls an x402-gated API and gets a
|
|
873
|
+
* 402, it AWAITS this function: the host shows a confirmation UI, signs the
|
|
874
|
+
* typed data with the user's wallet, and resolves with the signature hex. The
|
|
875
|
+
* core then re-calls the API and answers — all within one `chat()` turn.
|
|
876
|
+
*
|
|
877
|
+
* Resolve with `null`/`undefined` (or reject) if the user declines.
|
|
878
|
+
*/
|
|
879
|
+
type X402Signer = (request: X402SignRequest) => Promise<string | null | undefined>;
|
|
809
880
|
/** Unsigned EVM transaction the FE will pass to the connected wallet. */
|
|
810
881
|
interface UnsignedTx {
|
|
811
882
|
/** Hex chain id */
|
|
@@ -1540,8 +1611,9 @@ interface RewriteResult {
|
|
|
1540
1611
|
* CANONICAL name (see prompt RULE 6). The LLM resolves messy signals — explorer
|
|
1541
1612
|
* URLs/domains ("optimistic.etherscan.io"), aliases, native coins, any language
|
|
1542
1613
|
* — down to one of the supported canonical names (ethereum, optimism, bsc,
|
|
1543
|
-
* polygon, base, arbitrum, avalanche, linea
|
|
1544
|
-
* unsupported EVM chain (e.g. "unichain").
|
|
1614
|
+
* polygon, base, arbitrum, avalanche, linea, gnosis, hyperevm, mantle, monad),
|
|
1615
|
+
* or the plain common name for an unsupported EVM chain (e.g. "unichain").
|
|
1616
|
+
* Empty when the turn names no chain.
|
|
1545
1617
|
*
|
|
1546
1618
|
* Pushing chain resolution into the LLM keeps the deterministic alias table
|
|
1547
1619
|
* lean (it only needs canonical names + a few common aliases as a safety net)
|
|
@@ -1637,6 +1709,8 @@ declare class AgentCore {
|
|
|
1637
1709
|
private storage;
|
|
1638
1710
|
private storageKey;
|
|
1639
1711
|
private persistHistoryEnabled;
|
|
1712
|
+
/** Host-provided inline signer for x402; the core awaits it on a 402. */
|
|
1713
|
+
private x402Signer;
|
|
1640
1714
|
/** Active KB used at search time. May be the legacy LLM matcher or a vector backend. */
|
|
1641
1715
|
private kb;
|
|
1642
1716
|
/** Always-present in-memory KB that holds the original entries (used for autoIngest + as fallback). */
|
|
@@ -1701,6 +1775,27 @@ declare class AgentCore {
|
|
|
1701
1775
|
invokeTool(name: string, args: Record<string, unknown>, options?: {
|
|
1702
1776
|
userMessage?: string;
|
|
1703
1777
|
}): Promise<AgentResponse>;
|
|
1778
|
+
/**
|
|
1779
|
+
* Register the host's inline x402 signer and turn on transparent x402. When
|
|
1780
|
+
* set, ANY ApiClient call (every service/tool uses it) that returns 402 makes
|
|
1781
|
+
* the core AWAIT this function (the host shows a confirm UI + signs the typed
|
|
1782
|
+
* data with the user's wallet); the core then retries the request paid and
|
|
1783
|
+
* returns the data, within the same `chat()` turn. Pass `null` to turn it off.
|
|
1784
|
+
*/
|
|
1785
|
+
setX402Signer(signer: X402Signer | null): void;
|
|
1786
|
+
/**
|
|
1787
|
+
* Two-turn fallback resume: complete an x402 payment with a signature the FE
|
|
1788
|
+
* collected for an `X402PaymentRequired` card, re-call the API, and synthesize
|
|
1789
|
+
* the answer with the LLM. Use this when no inline signer is registered.
|
|
1790
|
+
*
|
|
1791
|
+
* `challenge` is the opaque blob from `X402PaymentRequiredProps.challenge`.
|
|
1792
|
+
*/
|
|
1793
|
+
submitX402Payment(challenge: unknown, signature: string, options?: {
|
|
1794
|
+
generateSuggestions?: boolean;
|
|
1795
|
+
userQuery?: string;
|
|
1796
|
+
}): Promise<AgentResponse>;
|
|
1797
|
+
/** Turn paid-API data into a natural-language answer for the original question. */
|
|
1798
|
+
private synthesizeFromPaidData;
|
|
1704
1799
|
/**
|
|
1705
1800
|
* Register a custom subagent. Replaces any existing subagent with the same name.
|
|
1706
1801
|
* Advanced: most consumers should rely on the default wallet/token/nft/ai agents.
|
|
@@ -3608,7 +3703,10 @@ declare class MoralisService {
|
|
|
3608
3703
|
private enrichTokenPrices;
|
|
3609
3704
|
}
|
|
3610
3705
|
|
|
3611
|
-
|
|
3706
|
+
interface TokenInfoToolConfig extends MoralisServiceConfig {
|
|
3707
|
+
/** LLM config (model, temperature, …) for the token-research call. */
|
|
3708
|
+
llm?: LLMProviderConfig;
|
|
3709
|
+
}
|
|
3612
3710
|
/**
|
|
3613
3711
|
* Tool: get-token-info
|
|
3614
3712
|
*
|
|
@@ -4885,7 +4983,7 @@ declare abstract class BaseNftAiTool extends BaseTool {
|
|
|
4885
4983
|
/** How the agent should present the fetched answer to the user. */
|
|
4886
4984
|
protected abstract readonly presentInstructions: string;
|
|
4887
4985
|
private readonly llm;
|
|
4888
|
-
constructor();
|
|
4986
|
+
constructor(llmConfig?: LLMProviderConfig);
|
|
4889
4987
|
/**
|
|
4890
4988
|
* Standard `[prompt, chain]` parameters with a tool-specific description for
|
|
4891
4989
|
* `prompt`. Built via a static so concrete tools can set `parameters` as a
|
|
@@ -7256,6 +7354,187 @@ declare function ethCallAt(rpcUrl: string, to: string, data: string): Promise<st
|
|
|
7256
7354
|
*/
|
|
7257
7355
|
declare function ethCallByChain(chainId: string, to: string, data: string): Promise<string | null>;
|
|
7258
7356
|
|
|
7357
|
+
/** Normalized, `fetch`-like response. `data` is the parsed body (JSON when possible). */
|
|
7358
|
+
interface ApiResponse<T = unknown> {
|
|
7359
|
+
/** True when the HTTP status is in the 2xx range. */
|
|
7360
|
+
ok: boolean;
|
|
7361
|
+
status: number;
|
|
7362
|
+
statusText: string;
|
|
7363
|
+
/** Parsed response body (JSON object/array, or raw string for non-JSON). */
|
|
7364
|
+
data: T;
|
|
7365
|
+
/** Response headers with lowercased keys. */
|
|
7366
|
+
headers: Record<string, string>;
|
|
7367
|
+
}
|
|
7368
|
+
interface ApiClientConfig {
|
|
7369
|
+
/** Optional base URL prepended to relative request paths. */
|
|
7370
|
+
baseURL?: string;
|
|
7371
|
+
/** Default headers merged into every request. */
|
|
7372
|
+
headers?: Record<string, string>;
|
|
7373
|
+
/** Per-request timeout in ms. Defaults to 30000. */
|
|
7374
|
+
timeout?: number;
|
|
7375
|
+
/** Override the default bot User-Agent. */
|
|
7376
|
+
userAgent?: string;
|
|
7377
|
+
}
|
|
7378
|
+
/** Original request details, so the handler can build the payment. */
|
|
7379
|
+
interface X402RetryContext {
|
|
7380
|
+
url: string;
|
|
7381
|
+
method: string;
|
|
7382
|
+
body?: unknown;
|
|
7383
|
+
headers?: Record<string, string>;
|
|
7384
|
+
}
|
|
7385
|
+
/**
|
|
7386
|
+
* Resolve a 402 challenge into the header(s) to retry with (e.g.
|
|
7387
|
+
* `{ 'PAYMENT-SIGNATURE': '…' }`), or `null` to give up (caller sees the 402).
|
|
7388
|
+
*/
|
|
7389
|
+
type X402RetryHandler = (response: ApiResponse, ctx: X402RetryContext) => Promise<Record<string, string> | null>;
|
|
7390
|
+
type RequestOptions = Omit<AxiosRequestConfig, 'url' | 'method' | 'data' | 'baseURL'>;
|
|
7391
|
+
declare class ApiClient {
|
|
7392
|
+
private readonly instance;
|
|
7393
|
+
constructor(config?: ApiClientConfig);
|
|
7394
|
+
/** Low-level request used by the REST helpers below. */
|
|
7395
|
+
request<T = unknown>(method: Method, url: string, data?: unknown, options?: RequestOptions): Promise<ApiResponse<T>>;
|
|
7396
|
+
get<T = unknown>(url: string, options?: RequestOptions): Promise<ApiResponse<T>>;
|
|
7397
|
+
post<T = unknown>(url: string, body?: unknown, options?: RequestOptions): Promise<ApiResponse<T>>;
|
|
7398
|
+
put<T = unknown>(url: string, body?: unknown, options?: RequestOptions): Promise<ApiResponse<T>>;
|
|
7399
|
+
patch<T = unknown>(url: string, body?: unknown, options?: RequestOptions): Promise<ApiResponse<T>>;
|
|
7400
|
+
delete<T = unknown>(url: string, options?: RequestOptions): Promise<ApiResponse<T>>;
|
|
7401
|
+
}
|
|
7402
|
+
/** Shared default client (bot User-Agent, no base URL) for ad-hoc absolute-URL calls. */
|
|
7403
|
+
declare const apiClient: ApiClient;
|
|
7404
|
+
|
|
7405
|
+
/**
|
|
7406
|
+
* Generic x402 (HTTP 402 "pay-per-call") client for the agent core.
|
|
7407
|
+
*
|
|
7408
|
+
* The core makes the outbound HTTP call. When a resource answers `402` with a
|
|
7409
|
+
* `PAYMENT-REQUIRED` header, the core does NOT hold a private key, so it builds
|
|
7410
|
+
* the payment authorization + the EIP-712 typed data and hands the typed data to
|
|
7411
|
+
* the FE to SIGN. The FE returns just the signature; the core then re-issues the
|
|
7412
|
+
* request with the `PAYMENT-SIGNATURE` header and returns the unlocked result.
|
|
7413
|
+
*
|
|
7414
|
+
* Supports the x402 v2 "exact" EVM scheme (EIP-3009 `TransferWithAuthorization`),
|
|
7415
|
+
* which covers USDC-style assets. No crypto library is needed here — signing
|
|
7416
|
+
* happens on the FE; the core only does JSON + base64 + a random nonce.
|
|
7417
|
+
*/
|
|
7418
|
+
type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
7419
|
+
/** A request the core wants to make (and replay after payment). */
|
|
7420
|
+
interface X402RequestSpec {
|
|
7421
|
+
url: string;
|
|
7422
|
+
method?: HttpMethod;
|
|
7423
|
+
/** Query params appended to `url` (string-encoded values). */
|
|
7424
|
+
query?: Record<string, string>;
|
|
7425
|
+
/** JSON body for non-GET requests. */
|
|
7426
|
+
body?: unknown;
|
|
7427
|
+
/** Extra request headers (the payment header is added on retry). */
|
|
7428
|
+
headers?: Record<string, string>;
|
|
7429
|
+
}
|
|
7430
|
+
/** Selected payment requirement from the 402 challenge (accepts[0]). */
|
|
7431
|
+
interface X402Requirements {
|
|
7432
|
+
scheme: string;
|
|
7433
|
+
network: string;
|
|
7434
|
+
amount: string;
|
|
7435
|
+
asset: string;
|
|
7436
|
+
payTo: string;
|
|
7437
|
+
maxTimeoutSeconds?: number;
|
|
7438
|
+
extra?: {
|
|
7439
|
+
name?: string;
|
|
7440
|
+
version?: string;
|
|
7441
|
+
[k: string]: unknown;
|
|
7442
|
+
};
|
|
7443
|
+
}
|
|
7444
|
+
/** EIP-712 typed data the FE must sign with the connected wallet. */
|
|
7445
|
+
interface X402TypedData {
|
|
7446
|
+
domain: {
|
|
7447
|
+
name?: string;
|
|
7448
|
+
version?: string;
|
|
7449
|
+
chainId: number;
|
|
7450
|
+
verifyingContract: string;
|
|
7451
|
+
};
|
|
7452
|
+
types: Record<string, Array<{
|
|
7453
|
+
name: string;
|
|
7454
|
+
type: string;
|
|
7455
|
+
}>>;
|
|
7456
|
+
primaryType: string;
|
|
7457
|
+
message: Record<string, string>;
|
|
7458
|
+
}
|
|
7459
|
+
/** EIP-3009 authorization fields (also the typed-data message). */
|
|
7460
|
+
interface X402Authorization {
|
|
7461
|
+
from: string;
|
|
7462
|
+
to: string;
|
|
7463
|
+
value: string;
|
|
7464
|
+
validAfter: string;
|
|
7465
|
+
validBefore: string;
|
|
7466
|
+
nonce: string;
|
|
7467
|
+
}
|
|
7468
|
+
/**
|
|
7469
|
+
* Everything needed to (a) ask the FE to sign and (b) replay the paid request.
|
|
7470
|
+
* Round-tripped through the FE verbatim — opaque to it except `typedData`.
|
|
7471
|
+
*/
|
|
7472
|
+
interface X402Challenge {
|
|
7473
|
+
request: {
|
|
7474
|
+
url: string;
|
|
7475
|
+
method: HttpMethod;
|
|
7476
|
+
body?: unknown;
|
|
7477
|
+
headers?: Record<string, string>;
|
|
7478
|
+
};
|
|
7479
|
+
requirements: X402Requirements;
|
|
7480
|
+
authorization: X402Authorization;
|
|
7481
|
+
typedData: X402TypedData;
|
|
7482
|
+
/** The signed wire payload, missing only `payload.signature`. */
|
|
7483
|
+
paymentDraft: {
|
|
7484
|
+
x402Version: number;
|
|
7485
|
+
payload: {
|
|
7486
|
+
authorization: X402Authorization;
|
|
7487
|
+
};
|
|
7488
|
+
resource?: unknown;
|
|
7489
|
+
accepted: X402Requirements;
|
|
7490
|
+
extensions?: unknown;
|
|
7491
|
+
};
|
|
7492
|
+
/** The user's original question, so phase 2 can synthesize an answer. */
|
|
7493
|
+
userQuery?: string;
|
|
7494
|
+
}
|
|
7495
|
+
type X402Outcome = {
|
|
7496
|
+
status: 'ok';
|
|
7497
|
+
data: unknown;
|
|
7498
|
+
} | {
|
|
7499
|
+
status: 'payment_required';
|
|
7500
|
+
challenge: X402Challenge;
|
|
7501
|
+
};
|
|
7502
|
+
/** Build the challenge (authorization + typed data + replay payload) from a 402. */
|
|
7503
|
+
declare function buildChallenge(res: ApiResponse, req: X402RequestSpec, payer: string, userQuery?: string): X402Challenge;
|
|
7504
|
+
/**
|
|
7505
|
+
* Make the request. Returns the data when free/already-paid, or a challenge to
|
|
7506
|
+
* sign when the resource answers 402. Throws on other non-2xx statuses.
|
|
7507
|
+
*/
|
|
7508
|
+
declare function requestWithX402(client: ApiClient, req: X402RequestSpec, payer: string, userQuery?: string): Promise<X402Outcome>;
|
|
7509
|
+
/**
|
|
7510
|
+
* Replay the request with the signed payment (`PAYMENT-SIGNATURE` header) and
|
|
7511
|
+
* return the unlocked data. Throws with the facilitator's reason on failure.
|
|
7512
|
+
*/
|
|
7513
|
+
declare function completeX402(client: ApiClient, challenge: X402Challenge, signature: string): Promise<unknown>;
|
|
7514
|
+
/** Encode the signed payment as the `PAYMENT-SIGNATURE` retry header. */
|
|
7515
|
+
declare function encodeSignedHeader(challenge: X402Challenge, signature: string): Record<string, string>;
|
|
7516
|
+
/** Human-readable payment details for a confirmation UI, derived from a challenge. */
|
|
7517
|
+
declare function displayFromChallenge(challenge: X402Challenge): {
|
|
7518
|
+
amount: string;
|
|
7519
|
+
asset: string;
|
|
7520
|
+
network: string;
|
|
7521
|
+
networkLabel: string;
|
|
7522
|
+
payTo: string;
|
|
7523
|
+
description?: string;
|
|
7524
|
+
resourceUrl?: string;
|
|
7525
|
+
};
|
|
7526
|
+
/**
|
|
7527
|
+
* Build a global {@link X402RetryHandler} for {@link setX402Handler}: on a 402 it
|
|
7528
|
+
* builds the challenge, asks the host signer to sign, and returns the
|
|
7529
|
+
* `PAYMENT-SIGNATURE` header so EVERY ApiClient call transparently retries paid.
|
|
7530
|
+
* Returns `null` (give up → caller sees the 402) when there is no wallet/signer
|
|
7531
|
+
* or the user declines.
|
|
7532
|
+
*/
|
|
7533
|
+
declare function createX402SignatureProvider(opts: {
|
|
7534
|
+
getPayer: () => string | null | undefined;
|
|
7535
|
+
getSigner: () => X402Signer | null | undefined;
|
|
7536
|
+
}): X402RetryHandler;
|
|
7537
|
+
|
|
7259
7538
|
/**
|
|
7260
7539
|
* PantographService — Pantograph API client.
|
|
7261
7540
|
*
|
|
@@ -7655,4 +7934,4 @@ declare class AbortError extends Error {
|
|
|
7655
7934
|
*/
|
|
7656
7935
|
declare function isAbortError(err: unknown): boolean;
|
|
7657
7936
|
|
|
7658
|
-
export { AI_AGENT_TOOL_NAMES, AbortError, type AddLiquidityFormProps, type AddLiquiditySummary, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, BaseNftAiTool, BaseNftMessageTool, BaseSwapService, BaseTool, BaseWalletActionTool, type BuyTokenConfirmTxProps, type BuyTokenSide, BuyTokenTool, type ChainMeta, type ChainRef, type ChainSelector, ChatHistory, type ChatMessage, type ChatOptions, type ChatRole, type CheckApprovalParams, type CheckApprovalResult, type ConfirmAddLiquidityTxProps, type CortexResponse, DEFAULT_CHAIN, DEFAULT_PROVIDER, DEFAULT_RPC_BY_CHAIN, DebridgeAdapter, type DecodedCall, type DecodedEvent, type DecodedParam, type DefaultSubagentName, type DefiPosition, type DefiPositionDetails, type DefiPositionToken, type DefiProtocolSummary, EstimatePoolYieldTool, type EstimatePoolYieldToolConfig, type ExchangeProviderConfig, type ExecuteSwapParams, type ExecuteSwapResult, GeminiProvider, GeminiSearchAiTool, type GeminiSearchAiToolConfig, HEX_TO_PANTOGRAPH, type HolderChangePeriod, type HolderSupplyTier, type IngestKnowledgeBaseInput, type IngestKnowledgeBaseResult, type InputTokenInfo, type KBSearchResult, KnowledgeBase, type KnowledgeBaseEntry, type KnowledgeBaseProvider, type LLMProvider, type LLMProviderConfig, type LLMResponse, type LLMToolCall, ManageLiquidityRedirectTool, type MarketplaceLink, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, NFC_AGENT_TOOL_NAMES, NFC_AMAZON_DEFAULT_DOMAIN, NFC_AMAZON_DOMAINS, NFTContractInfoTool, type NFTContractMetadata, type NFTItem, type NFTLastSale, type NFTMetadata, NFTMetadataTool, NFT_AGENT_TOOL_NAMES, type NativeTokenInfo, NfcBuyTool, NfcInfoTool, type NftMessageToolConfig, type NftTransferLastSale, OpenAddLiquidityFormTool, type OpenAddLiquidityFormToolConfig, POOL_AGENT_TOOL_NAMES, PantographService, type PantographServiceConfig, type PaymentToken, PoolByAddressTool, type PoolByAddressToolConfig, PoolDetailTool, type PoolDetailToolConfig, type PoolDisplayInfo, PoolFallbackAiTool, type PoolFallbackAiToolConfig, type PoolOnchainInfo, PoolPriceRangesTool, type PoolPriceRangesToolConfig, PoolSearchTool, type PoolSearchToolConfig, PoolService, type PoolServiceConfig, type PresetInputs, PreviewAddLiquidityTool, type PreviewAddLiquidityToolConfig, type PriceBounds, type PriceRangePrefill, type ProviderName, type QuickRate, type RangePreset, type ReActPhase, type ReActStep, type ReActTrace, RelayAdapter, type ResolvedRange, Router, type RouterAssignment, type RouterDecision, SUPPORTED_CHAINS, SUPPORTED_CHAINS_LABEL, SWAP_PROVIDER_CONFIG, SendNativeTool, SendNftTool, SendTokenTool, type StorageProvider, Subagent, type SubagentCard, type SubagentOptions, type SubagentParams, type SubagentResult, type SubagentTask, type SubagentToggles, SubgraphAddPoolTool, type SubgraphAddPoolToolConfig, SubgraphCoinPoolPairsTool, type SubgraphCoinPoolPairsToolConfig, SubgraphPoolByAddressTool, type SubgraphPoolByAddressToolConfig, SubgraphPoolByPositionIdTool, type SubgraphPoolByPositionIdToolConfig, SubgraphPoolSearchTool, type SubgraphPoolSearchToolConfig, SubgraphPositionDetailTool, type SubgraphPositionDetailToolConfig, SubgraphTrendingPoolsTool, type SubgraphTrendingPoolsToolConfig, type SuggestedAction, Summarizer, type SupportedChainId, type SupportedChainName, type SwapQuoteParams, type SwapQuoteResult, type SwapServiceConfig, SwapServiceFactory, type SwapTokenConfirmTxProps, SwapTokenTool, type SwapTxData, Synthesizer, TOKEN_AGENT_TOOL_NAMES, TRANSFER_TOPIC, TRENDING_DEFAULT_BY_HEX_CHAIN, type TokenAnalyticsResponse, type TokenAnalyticsTimeframeBuckets, TokenAnalyticsTool, type TokenAnalyticsToolConfig, type TokenApproval, type TokenApprovalSpender, type TokenApprovalToken, type TokenBalance, type TokenDisplay, type TokenHoldersResponse, TokenHoldersTool, type TokenHoldersToolConfig, TokenInfoTool, type TokenInfoToolConfig, type TokenMetadata, type TokenScoreMetrics, type TokenScoreResponse, type TokenScoreSupply, type TokenScoreTimeframeBuckets, TokenScoreTool, type TokenScoreToolConfig, type Tool, type ToolDefinition, type ToolKind, type ToolParameter, ToolRegistry, type ToolResult, type TopGainerTimeFrames, type TopGainerToken, type TopGainersTimeFrame, TopGainersTool, type TopGainersToolConfig, TopPoolsTool, type TopPoolsToolConfig, type TrackStatus, type TrackTransactionParams, type TrackTransactionResult, type TransactionByHashResponse, TransactionByHashTool, type TransactionByHashToolConfig, type TransactionLog, type TransactionReceipt, type TransactionReceiptLog, type TrendingToken, type TrendingTokenTimeframeBuckets, TrendingTokensTool, type TrendingTokensToolConfig, type UIPayload, UNISWAP_CHAIN_SLUG, type UnsignedTx, type UpstashEmbedStrategy, type UpstashFusionAlgorithm, type UpstashKBUpsertEntry, UpstashKnowledgeBase, type UpstashKnowledgeBaseConfig, type UserContext, type VectorKBConfig, WALLET_ACTION_AGENT_TOOL_NAMES, WALLET_AGENT_TOOL_NAMES, WalletActionAppTool, type WalletActionAppToolConfig, type WalletActionProps, type WalletActionType, type WalletApprovalsResponse, WalletApprovalsTool, type WalletApprovalsToolConfig, type WalletDefiPositionSummary, WalletDefiPositionsTool, type WalletDefiPositionsToolConfig, type WalletDefiPositionsV1Response, type WalletDefiProtocolPositionsResponse, WalletDefiProtocolPositionsTool, type WalletDefiProtocolPositionsToolConfig, type WalletDefiProtocolPositionsV1Response, type WalletDefiSummaryResponse, WalletDefiSummaryTool, type WalletDefiSummaryToolConfig, type WalletHistoryCategory, type WalletHistoryContractInteraction, type WalletHistoryErc20Transfer, type WalletHistoryItem, type WalletHistoryNativeTransfer, type WalletHistoryNftTransfer, type WalletHistoryResponse, WalletHistoryTool, type WalletHistoryToolConfig, WalletNFTsTool, type WalletNFTsToolConfig, type WalletNftTransferItem, type WalletNftTransfersResponse, WalletNftTransfersTool, type WalletNftTransfersToolConfig, type WalletPnlDaysWindow, type WalletPnlResponse, type WalletPnlSummaryResponse, WalletPnlSummaryTool, type WalletPnlSummaryToolConfig, type WalletPnlTokenItem, WalletPnlTool, type WalletPnlToolConfig, WalletTokenBalancesTool, type WalletTokenBalancesToolConfig, type WalletTokenTransferItem, type WalletTokenTransfersResponse, WalletTokenTransfersTool, type WalletTokenTransfersToolConfig, type WebsiteTrustExtraData, type WebsiteTrustInput, WebsiteTrustKeyringAgent, type WebsiteTrustKeyringAgentConfig, type WebsiteTrustResult, ZERO_ADDRESS, amazonDomainForLanguage, buildRangePresets, buildUniswapPoolUrl, clampTick, configureSupportedChains, createAiAgent, createDefaultSubagents, createNfcAgent, createNftAgent, createPoolAgent, createTokenAgent, createWalletActionAgent, createWalletActionAppTools, createWalletAgent, ethCallAt, ethCallByChain, fetchTopMarketplaces, getAffiliateFee, getChainMeta, getDefaultRpcUrl, getGatewayAddress, getGatewayChains, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, isAbortError, nfcAmazonSearchUrl, normaliseCountry, normalizePriceRangeToPool, priceToTick, resolveNfcShopLinks, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };
|
|
7937
|
+
export { AI_AGENT_TOOL_NAMES, AbortError, type AddLiquidityFormProps, type AddLiquiditySummary, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, BaseNftAiTool, BaseNftMessageTool, BaseSwapService, BaseTool, BaseWalletActionTool, type BuyTokenConfirmTxProps, type BuyTokenSide, BuyTokenTool, type ChainMeta, type ChainRef, type ChainSelector, ChatHistory, type ChatMessage, type ChatOptions, type ChatRole, type CheckApprovalParams, type CheckApprovalResult, type ConfirmAddLiquidityTxProps, type CortexResponse, DEFAULT_CHAIN, DEFAULT_PROVIDER, DEFAULT_RPC_BY_CHAIN, DebridgeAdapter, type DecodedCall, type DecodedEvent, type DecodedParam, type DefaultSubagentName, type DefiPosition, type DefiPositionDetails, type DefiPositionToken, type DefiProtocolSummary, EstimatePoolYieldTool, type EstimatePoolYieldToolConfig, type ExchangeProviderConfig, type ExecuteSwapParams, type ExecuteSwapResult, GeminiProvider, GeminiSearchAiTool, type GeminiSearchAiToolConfig, HEX_TO_PANTOGRAPH, type HolderChangePeriod, type HolderSupplyTier, type HttpMethod, type IngestKnowledgeBaseInput, type IngestKnowledgeBaseResult, type InputTokenInfo, type KBSearchResult, KnowledgeBase, type KnowledgeBaseEntry, type KnowledgeBaseProvider, type LLMProvider, type LLMProviderConfig, type LLMResponse, type LLMToolCall, ManageLiquidityRedirectTool, type MarketplaceLink, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, NFC_AGENT_TOOL_NAMES, NFC_AMAZON_DEFAULT_DOMAIN, NFC_AMAZON_DOMAINS, NFTContractInfoTool, type NFTContractMetadata, type NFTItem, type NFTLastSale, type NFTMetadata, NFTMetadataTool, NFT_AGENT_TOOL_NAMES, type NativeTokenInfo, NfcBuyTool, NfcInfoTool, type NftMessageToolConfig, type NftTransferLastSale, OpenAddLiquidityFormTool, type OpenAddLiquidityFormToolConfig, POOL_AGENT_TOOL_NAMES, PantographService, type PantographServiceConfig, type PaymentToken, PoolByAddressTool, type PoolByAddressToolConfig, PoolDetailTool, type PoolDetailToolConfig, type PoolDisplayInfo, PoolFallbackAiTool, type PoolFallbackAiToolConfig, type PoolOnchainInfo, PoolPriceRangesTool, type PoolPriceRangesToolConfig, PoolSearchTool, type PoolSearchToolConfig, PoolService, type PoolServiceConfig, type PresetInputs, PreviewAddLiquidityTool, type PreviewAddLiquidityToolConfig, type PriceBounds, type PriceRangePrefill, type ProviderName, type QuickRate, type RangePreset, type ReActPhase, type ReActStep, type ReActTrace, RelayAdapter, type ResolvedRange, Router, type RouterAssignment, type RouterDecision, SUPPORTED_CHAINS, SUPPORTED_CHAINS_LABEL, SWAP_PROVIDER_CONFIG, SendNativeTool, SendNftTool, SendTokenTool, type StorageProvider, Subagent, type SubagentCard, type SubagentOptions, type SubagentParams, type SubagentResult, type SubagentTask, type SubagentToggles, SubgraphAddPoolTool, type SubgraphAddPoolToolConfig, SubgraphCoinPoolPairsTool, type SubgraphCoinPoolPairsToolConfig, SubgraphPoolByAddressTool, type SubgraphPoolByAddressToolConfig, SubgraphPoolByPositionIdTool, type SubgraphPoolByPositionIdToolConfig, SubgraphPoolSearchTool, type SubgraphPoolSearchToolConfig, SubgraphPositionDetailTool, type SubgraphPositionDetailToolConfig, SubgraphTrendingPoolsTool, type SubgraphTrendingPoolsToolConfig, type SuggestedAction, Summarizer, type SupportedChainId, type SupportedChainName, type SwapQuoteParams, type SwapQuoteResult, type SwapServiceConfig, SwapServiceFactory, type SwapTokenConfirmTxProps, SwapTokenTool, type SwapTxData, Synthesizer, TOKEN_AGENT_TOOL_NAMES, TRANSFER_TOPIC, TRENDING_DEFAULT_BY_HEX_CHAIN, type TokenAnalyticsResponse, type TokenAnalyticsTimeframeBuckets, TokenAnalyticsTool, type TokenAnalyticsToolConfig, type TokenApproval, type TokenApprovalSpender, type TokenApprovalToken, type TokenBalance, type TokenDisplay, type TokenHoldersResponse, TokenHoldersTool, type TokenHoldersToolConfig, TokenInfoTool, type TokenInfoToolConfig, type TokenMetadata, type TokenScoreMetrics, type TokenScoreResponse, type TokenScoreSupply, type TokenScoreTimeframeBuckets, TokenScoreTool, type TokenScoreToolConfig, type Tool, type ToolDefinition, type ToolKind, type ToolParameter, ToolRegistry, type ToolResult, type TopGainerTimeFrames, type TopGainerToken, type TopGainersTimeFrame, TopGainersTool, type TopGainersToolConfig, TopPoolsTool, type TopPoolsToolConfig, type TrackStatus, type TrackTransactionParams, type TrackTransactionResult, type TransactionByHashResponse, TransactionByHashTool, type TransactionByHashToolConfig, type TransactionLog, type TransactionReceipt, type TransactionReceiptLog, type TrendingToken, type TrendingTokenTimeframeBuckets, TrendingTokensTool, type TrendingTokensToolConfig, type UIPayload, UNISWAP_CHAIN_SLUG, type UnsignedTx, type UpstashEmbedStrategy, type UpstashFusionAlgorithm, type UpstashKBUpsertEntry, UpstashKnowledgeBase, type UpstashKnowledgeBaseConfig, type UserContext, type VectorKBConfig, WALLET_ACTION_AGENT_TOOL_NAMES, WALLET_AGENT_TOOL_NAMES, WalletActionAppTool, type WalletActionAppToolConfig, type WalletActionProps, type WalletActionType, type WalletApprovalsResponse, WalletApprovalsTool, type WalletApprovalsToolConfig, type WalletDefiPositionSummary, WalletDefiPositionsTool, type WalletDefiPositionsToolConfig, type WalletDefiPositionsV1Response, type WalletDefiProtocolPositionsResponse, WalletDefiProtocolPositionsTool, type WalletDefiProtocolPositionsToolConfig, type WalletDefiProtocolPositionsV1Response, type WalletDefiSummaryResponse, WalletDefiSummaryTool, type WalletDefiSummaryToolConfig, type WalletHistoryCategory, type WalletHistoryContractInteraction, type WalletHistoryErc20Transfer, type WalletHistoryItem, type WalletHistoryNativeTransfer, type WalletHistoryNftTransfer, type WalletHistoryResponse, WalletHistoryTool, type WalletHistoryToolConfig, WalletNFTsTool, type WalletNFTsToolConfig, type WalletNftTransferItem, type WalletNftTransfersResponse, WalletNftTransfersTool, type WalletNftTransfersToolConfig, type WalletPnlDaysWindow, type WalletPnlResponse, type WalletPnlSummaryResponse, WalletPnlSummaryTool, type WalletPnlSummaryToolConfig, type WalletPnlTokenItem, WalletPnlTool, type WalletPnlToolConfig, WalletTokenBalancesTool, type WalletTokenBalancesToolConfig, type WalletTokenTransferItem, type WalletTokenTransfersResponse, WalletTokenTransfersTool, type WalletTokenTransfersToolConfig, type WebsiteTrustExtraData, type WebsiteTrustInput, WebsiteTrustKeyringAgent, type WebsiteTrustKeyringAgentConfig, type WebsiteTrustResult, type X402Authorization, type X402Challenge, type X402Outcome, type X402PaymentRequiredProps, type X402RequestSpec, type X402Requirements, type X402SignRequest, type X402Signer, type X402TypedData, ZERO_ADDRESS, amazonDomainForLanguage, apiClient, buildChallenge, buildRangePresets, buildUniswapPoolUrl, clampTick, completeX402, configureSupportedChains, createAiAgent, createDefaultSubagents, createNfcAgent, createNftAgent, createPoolAgent, createTokenAgent, createWalletActionAgent, createWalletActionAppTools, createWalletAgent, createX402SignatureProvider, displayFromChallenge, encodeSignedHeader, ethCallAt, ethCallByChain, fetchTopMarketplaces, getAffiliateFee, getChainMeta, getDefaultRpcUrl, getGatewayAddress, getGatewayChains, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, isAbortError, nfcAmazonSearchUrl, normaliseCountry, normalizePriceRangeToPool, priceToTick, requestWithX402, resolveNfcShopLinks, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };
|