@qntx/wallet-engine 0.13.0 → 0.14.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/README.md +1057 -20
- package/dist/apps-fiat24.d.mts +202 -0
- package/dist/apps-fiat24.mjs +1378 -0
- package/dist/apps-fiat24.mjs.map +1 -0
- package/dist/apps-hyperliquid.d.mts +549 -0
- package/dist/apps-hyperliquid.mjs +2742 -0
- package/dist/apps-hyperliquid.mjs.map +1 -0
- package/dist/apps-polymarket.d.mts +729 -0
- package/dist/apps-polymarket.mjs +3786 -0
- package/dist/apps-polymarket.mjs.map +1 -0
- package/dist/apps.d.mts +136 -0
- package/dist/apps.mjs +535 -0
- package/dist/apps.mjs.map +1 -0
- package/dist/connect-BY1C5ZRI.mjs +210 -0
- package/dist/connect-BY1C5ZRI.mjs.map +1 -0
- package/dist/connect.d.mts +17 -9
- package/dist/connect.mjs +3 -185
- package/dist/{errors-CQnlTc1i.d.mts → controller-DpNVHVsj.d.mts} +1093 -758
- package/dist/controller-rMnaxKAH.mjs +46 -0
- package/dist/controller-rMnaxKAH.mjs.map +1 -0
- package/dist/decimal-COJ4g8qy.mjs +38 -0
- package/dist/decimal-COJ4g8qy.mjs.map +1 -0
- package/dist/eligibility-BfM9ybYZ.mjs +48 -0
- package/dist/eligibility-BfM9ybYZ.mjs.map +1 -0
- package/dist/engine-Dic_kkEr.d.mts +1829 -0
- package/dist/errors-B8W-hoYW.d.mts +7 -0
- package/dist/errors-horUy5k1.mjs +24 -0
- package/dist/errors-horUy5k1.mjs.map +1 -0
- package/dist/gateway-contract.d.mts +3 -608
- package/dist/gateway-contract.mjs +1467 -161
- package/dist/gateway-contract.mjs.map +1 -1
- package/dist/idb.d.mts +5 -0
- package/dist/idb.mjs +122 -46
- package/dist/idb.mjs.map +1 -1
- package/dist/index-vBgfOFIh.d.mts +2227 -0
- package/dist/index.d.mts +58 -618
- package/dist/index.mjs +21963 -6836
- package/dist/index.mjs.map +1 -1
- package/dist/json-BDwV38cj.mjs +15 -0
- package/dist/json-BDwV38cj.mjs.map +1 -0
- package/dist/link-Ceq8Dggp.mjs +139 -0
- package/dist/link-Ceq8Dggp.mjs.map +1 -0
- package/dist/primitives-DbSHLZKq.mjs +31 -0
- package/dist/primitives-DbSHLZKq.mjs.map +1 -0
- package/dist/push-message-AQuzoNFY.d.mts +84 -0
- package/dist/push-message-kbnH1A5w.mjs +142 -0
- package/dist/push-message-kbnH1A5w.mjs.map +1 -0
- package/dist/push.d.mts +13 -0
- package/dist/push.mjs +70 -0
- package/dist/push.mjs.map +1 -0
- package/dist/qr.d.mts +292 -0
- package/dist/qr.mjs +1725 -0
- package/dist/qr.mjs.map +1 -0
- package/dist/registry-CbtwcxkX.mjs +374 -0
- package/dist/registry-CbtwcxkX.mjs.map +1 -0
- package/dist/risk-DyABgg4W.mjs +757 -0
- package/dist/risk-DyABgg4W.mjs.map +1 -0
- package/dist/session-CNJFLarP.mjs +18 -0
- package/dist/session-CNJFLarP.mjs.map +1 -0
- package/dist/socket-ChG9JRT_.mjs +110 -0
- package/dist/socket-ChG9JRT_.mjs.map +1 -0
- package/dist/spi-BrTw5s98.d.mts +3 -0
- package/dist/timer-Cdk5rGM2.mjs +43 -0
- package/dist/timer-Cdk5rGM2.mjs.map +1 -0
- package/dist/types-BpvioFGo.d.mts +258 -0
- package/dist/types-DbftVZ3I.mjs +90 -0
- package/dist/types-DbftVZ3I.mjs.map +1 -0
- package/dist/walletconnect.d.mts +86 -0
- package/dist/walletconnect.mjs +1507 -0
- package/dist/walletconnect.mjs.map +1 -0
- package/dist/webln-BgrtPXpG.mjs +2593 -0
- package/dist/webln-BgrtPXpG.mjs.map +1 -0
- package/dist/webln-Bllk_xJ2.d.mts +666 -0
- package/package.json +92 -19
- package/dist/connect.mjs.map +0 -1
- package/dist/registry-DwguKWvt.d.mts +0 -27
- package/dist/registry-oorLoGtz.mjs +0 -120
- package/dist/registry-oorLoGtz.mjs.map +0 -1
- package/dist/webln-DKqCnqx1.mjs +0 -3677
- package/dist/webln-DKqCnqx1.mjs.map +0 -1
|
@@ -0,0 +1,2227 @@
|
|
|
1
|
+
import * as z$1 from "zod/mini";
|
|
2
|
+
import { NetworkMeta } from "@qntx/wallet-chains/networks";
|
|
3
|
+
type HttpMethod = "GET" | "POST" | "PUT" | "DELETE";
|
|
4
|
+
type Endpoint<Req extends z$1.ZodMiniType, Res extends z$1.ZodMiniType> = {
|
|
5
|
+
readonly method: HttpMethod;
|
|
6
|
+
readonly path: string;
|
|
7
|
+
readonly request: Req;
|
|
8
|
+
readonly response: Res;
|
|
9
|
+
};
|
|
10
|
+
/** One gateway route: its verb, versioned path template, and request/response schemas. */
|
|
11
|
+
declare function endpoint<Req extends z$1.ZodMiniType, Res extends z$1.ZodMiniType>(method: HttpMethod, path: `/v1/${string}`, request: Req, response: Res): Endpoint<Req, Res>;
|
|
12
|
+
/** `value` typed by `schema`, or `undefined` when it does not satisfy it. */
|
|
13
|
+
declare function parseWith<S extends z$1.ZodMiniType>(schema: S, value: unknown): z$1.output<S> | undefined;
|
|
14
|
+
/** Whether `value` satisfies `schema` — lets consumers validate without importing zod. */
|
|
15
|
+
declare function accepts(schema: z$1.ZodMiniType, value: unknown): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Whether an app may be offered to the caller — `available`, `close-only` (existing positions may
|
|
18
|
+
* be managed, nothing opened) or `blocked`. Display-only guidance: the platforms enforce their own
|
|
19
|
+
* restrictions; this is not a security boundary.
|
|
20
|
+
*/
|
|
21
|
+
type AppAvailability = "available" | "close-only" | "blocked";
|
|
22
|
+
declare const appAvailability: z$1.ZodMiniEnum<{
|
|
23
|
+
available: "available";
|
|
24
|
+
blocked: "blocked";
|
|
25
|
+
"close-only": "close-only";
|
|
26
|
+
}>;
|
|
27
|
+
declare const eligibilityRequest: z$1.ZodMiniUndefined;
|
|
28
|
+
/**
|
|
29
|
+
* An app id — `^[a-z][a-z0-9-]{1,31}$`. The gateway's config decides which apps appear in the
|
|
30
|
+
* answer; a client treats an absent app as unknown.
|
|
31
|
+
*/
|
|
32
|
+
declare const APP_ID: RegExp;
|
|
33
|
+
declare const eligibilityResponse: z$1.ZodMiniObject<{
|
|
34
|
+
country: z$1.ZodMiniNullable<z$1.ZodMiniString<string>>;
|
|
35
|
+
region: z$1.ZodMiniNullable<z$1.ZodMiniString<string>>;
|
|
36
|
+
apps: z$1.ZodMiniRecord<z$1.ZodMiniString<string>, z$1.ZodMiniEnum<{
|
|
37
|
+
available: "available";
|
|
38
|
+
blocked: "blocked";
|
|
39
|
+
"close-only": "close-only";
|
|
40
|
+
}>>;
|
|
41
|
+
}, z$1.core.$strip>;
|
|
42
|
+
type EligibilityResponse = z$1.infer<typeof eligibilityResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* `GET /v1/eligibility` — the gateway resolves the caller's IP country/region at the edge and
|
|
45
|
+
* answers per-app availability; responses are `private, no-store` (they depend on the caller IP).
|
|
46
|
+
*/
|
|
47
|
+
declare const eligibility: Endpoint<z$1.ZodMiniUndefined, z$1.ZodMiniObject<{
|
|
48
|
+
country: z$1.ZodMiniNullable<z$1.ZodMiniString<string>>;
|
|
49
|
+
region: z$1.ZodMiniNullable<z$1.ZodMiniString<string>>;
|
|
50
|
+
apps: z$1.ZodMiniRecord<z$1.ZodMiniString<string>, z$1.ZodMiniEnum<{
|
|
51
|
+
available: "available";
|
|
52
|
+
blocked: "blocked";
|
|
53
|
+
"close-only": "close-only";
|
|
54
|
+
}>>;
|
|
55
|
+
}, z$1.core.$strip>>;
|
|
56
|
+
declare const CLIENT_ID_HEADER = "x-client-id";
|
|
57
|
+
declare const PROVIDERS_HEADER = "x-gateway-providers";
|
|
58
|
+
/**
|
|
59
|
+
* A request naming one provider id from an earlier `x-gateway-providers` answer is served by that
|
|
60
|
+
* provider only — TRON node paths, so a sequence of reads comes from one upstream.
|
|
61
|
+
*/
|
|
62
|
+
declare const PROVIDER_PIN_HEADER = "x-gateway-provider";
|
|
63
|
+
/**
|
|
64
|
+
* 128 random bits as lowercase hex — drawn per engine session for each gateway scope, never derived
|
|
65
|
+
* from or linked to anything else.
|
|
66
|
+
*/
|
|
67
|
+
declare const clientId: z$1.ZodMiniString<string>;
|
|
68
|
+
/** CAIP-2 chain id: `namespace:reference`. */
|
|
69
|
+
declare const caip2: z$1.ZodMiniString<string>;
|
|
70
|
+
type Caip2 = z$1.infer<typeof caip2>;
|
|
71
|
+
type ClientId = z$1.infer<typeof clientId>;
|
|
72
|
+
declare const GATEWAY_ERRORS: readonly ["invalid-request", "unknown-network", "not-found", "rate-limited", "unavailable", "outcome-unknown", "internal", "too-costly", "unsupported"];
|
|
73
|
+
declare const gatewayError: z$1.ZodMiniObject<{
|
|
74
|
+
error: z$1.ZodMiniEnum<{
|
|
75
|
+
internal: "internal";
|
|
76
|
+
"invalid-request": "invalid-request";
|
|
77
|
+
"not-found": "not-found";
|
|
78
|
+
"outcome-unknown": "outcome-unknown";
|
|
79
|
+
"rate-limited": "rate-limited";
|
|
80
|
+
"too-costly": "too-costly";
|
|
81
|
+
unavailable: "unavailable";
|
|
82
|
+
"unknown-network": "unknown-network";
|
|
83
|
+
unsupported: "unsupported";
|
|
84
|
+
}>;
|
|
85
|
+
}, z$1.core.$strip>;
|
|
86
|
+
type GatewayErrorCode = (typeof GATEWAY_ERRORS)[number];
|
|
87
|
+
declare const healthRequest: z$1.ZodMiniUndefined;
|
|
88
|
+
declare const healthResponse: z$1.ZodMiniObject<{
|
|
89
|
+
status: z$1.ZodMiniLiteral<"ok">;
|
|
90
|
+
}, z$1.core.$strip>;
|
|
91
|
+
declare const health: Endpoint<z$1.ZodMiniUndefined, z$1.ZodMiniObject<{
|
|
92
|
+
status: z$1.ZodMiniLiteral<"ok">;
|
|
93
|
+
}, z$1.core.$strip>>;
|
|
94
|
+
/** One JSON-RPC call plus nothing else: batches may carry at most this many entries. */
|
|
95
|
+
declare const RPC_BATCH_MAX = 20;
|
|
96
|
+
/** Read-only EVM methods plus `eth_sendRawTransaction`. Anything not listed is rejected. */
|
|
97
|
+
declare const EVM_RPC_METHODS: readonly ["eth_blobBaseFee", "eth_blockNumber", "eth_call", "eth_chainId", "eth_createAccessList", "eth_estimateGas", "eth_feeHistory", "eth_gasPrice", "eth_getBalance", "eth_getBlockByHash", "eth_getBlockByNumber", "eth_getBlockReceipts", "eth_getBlockTransactionCountByHash", "eth_getBlockTransactionCountByNumber", "eth_getCode", "eth_getLogs", "eth_getProof", "eth_getStorageAt", "eth_getTransactionByBlockHashAndIndex", "eth_getTransactionByBlockNumberAndIndex", "eth_getTransactionByHash", "eth_getTransactionCount", "eth_getTransactionReceipt", "eth_maxPriorityFeePerGas", "eth_sendRawTransaction", "eth_simulateV1", "net_version", "web3_clientVersion"];
|
|
98
|
+
/** Read-only Solana methods plus `sendTransaction`. Anything not listed is rejected. */
|
|
99
|
+
declare const SOLANA_RPC_METHODS: readonly ["getAccountInfo", "getBalance", "getBlockHeight", "getBlockTime", "getEpochInfo", "getFeeForMessage", "getFirstAvailableBlock", "getGenesisHash", "getLatestBlockhash", "getMinimumBalanceForRentExemption", "getMultipleAccounts", "getRecentPrioritizationFees", "getSignatureStatuses", "getSignaturesForAddress", "getSlot", "getStakeMinimumDelegation", "getTokenAccountBalance", "getTokenAccountsByOwner", "getTokenSupply", "getTransaction", "getVersion", "getVoteAccounts", "isBlockhashValid", "sendTransaction", "simulateTransaction"];
|
|
100
|
+
type EvmRpcMethod = (typeof EVM_RPC_METHODS)[number];
|
|
101
|
+
type SolanaRpcMethod = (typeof SOLANA_RPC_METHODS)[number];
|
|
102
|
+
/** Methods that relay a signed transaction — retrying one can double-broadcast it. */
|
|
103
|
+
declare const RPC_BROADCAST_METHODS: readonly ["eth_sendRawTransaction", "sendTransaction"];
|
|
104
|
+
/**
|
|
105
|
+
* A request id is an int or a short string the caller chose — never `null`. `null` only exists on
|
|
106
|
+
* responses, where it reports a request that could not be parsed at all ({@link jsonRpcId}).
|
|
107
|
+
*/
|
|
108
|
+
declare const jsonRpcRequestId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniString<string>]>;
|
|
109
|
+
/** A response id echoes the request's; a parse-level error legitimately answers with `null`. */
|
|
110
|
+
declare const jsonRpcId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
111
|
+
/** Method-agnostic wire shape of a call or batch (the gateway narrows by family). */
|
|
112
|
+
declare const rpcRequest: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
113
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
114
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniString<string>]>;
|
|
115
|
+
method: z$1.ZodMiniString<string>;
|
|
116
|
+
params: z$1.ZodMiniType<unknown, unknown, z$1.core.$ZodTypeInternals<unknown, unknown>>;
|
|
117
|
+
}, z$1.core.$strip>, z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
118
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
119
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniString<string>]>;
|
|
120
|
+
method: z$1.ZodMiniString<string>;
|
|
121
|
+
params: z$1.ZodMiniType<unknown, unknown, z$1.core.$ZodTypeInternals<unknown, unknown>>;
|
|
122
|
+
}, z$1.core.$strip>>]>;
|
|
123
|
+
/** `eth_getLogs` is the one read whose cost the caller chooses: these bound it. */
|
|
124
|
+
declare const LOGS_BLOCK_RANGE_MAX = 500;
|
|
125
|
+
declare const LOGS_ADDRESS_MAX = 20;
|
|
126
|
+
declare const LOGS_TOPIC_ALTERNATIVES_MAX = 20;
|
|
127
|
+
/** Eth_getProof storage keys: upstream time scales with them while the published price is flat. */
|
|
128
|
+
declare const RPC_PROOF_KEYS_MAX = 100;
|
|
129
|
+
/** Eth_simulateV1 blockStateCalls: upstream time scales with blocks while the price is flat. */
|
|
130
|
+
declare const RPC_SIMULATE_BLOCKS_MAX = 16;
|
|
131
|
+
/** Eth_simulateV1 calls across all blocks: upstream time scales with them, the price is flat. */
|
|
132
|
+
declare const RPC_SIMULATE_CALLS_MAX = 100;
|
|
133
|
+
/** Eth_feeHistory blockCount: upstream time scales with it while the published price is flat. */
|
|
134
|
+
declare const FEE_HISTORY_BLOCKS_MAX = 1024;
|
|
135
|
+
/** Eth_feeHistory rewardPercentiles: upstream time scales with them, the price is flat. */
|
|
136
|
+
declare const FEE_HISTORY_PERCENTILES_MAX = 100;
|
|
137
|
+
/**
|
|
138
|
+
* Why an `eth_getLogs` call is refused, or `undefined` when its filter is bounded: one block by
|
|
139
|
+
* hash, a numbered range of at most {@link LOGS_BLOCK_RANGE_MAX} blocks, or tags that name the same
|
|
140
|
+
* block or the head. `safe`/`finalized` may not pair with the head: on Arbitrum that span is
|
|
141
|
+
* thousands of blocks.
|
|
142
|
+
*/
|
|
143
|
+
declare function logsFilterViolation(params: unknown): string | undefined;
|
|
144
|
+
declare const evmRpcRequest: z$1.ZodMiniUnion<readonly [z$1.ZodMiniUnion<z$1.ZodMiniObject<{
|
|
145
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
146
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniString<string>]>;
|
|
147
|
+
method: z$1.ZodMiniLiteral<"eth_blobBaseFee" | "eth_blockNumber" | "eth_call" | "eth_chainId" | "eth_createAccessList" | "eth_estimateGas" | "eth_feeHistory" | "eth_gasPrice" | "eth_getBalance" | "eth_getBlockByHash" | "eth_getBlockByNumber" | "eth_getBlockReceipts" | "eth_getBlockTransactionCountByHash" | "eth_getBlockTransactionCountByNumber" | "eth_getCode" | "eth_getLogs" | "eth_getProof" | "eth_getStorageAt" | "eth_getTransactionByBlockHashAndIndex" | "eth_getTransactionByBlockNumberAndIndex" | "eth_getTransactionByHash" | "eth_getTransactionCount" | "eth_getTransactionReceipt" | "eth_maxPriorityFeePerGas" | "eth_sendRawTransaction" | "eth_simulateV1" | "net_version" | "web3_clientVersion">;
|
|
148
|
+
params: z$1.ZodMiniType<unknown, unknown, z$1.core.$ZodTypeInternals<unknown, unknown>>;
|
|
149
|
+
}, z$1.core.$strip>[]>, z$1.ZodMiniArray<z$1.ZodMiniUnion<z$1.ZodMiniObject<{
|
|
150
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
151
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniString<string>]>;
|
|
152
|
+
method: z$1.ZodMiniLiteral<"eth_blobBaseFee" | "eth_blockNumber" | "eth_call" | "eth_chainId" | "eth_createAccessList" | "eth_estimateGas" | "eth_feeHistory" | "eth_gasPrice" | "eth_getBalance" | "eth_getBlockByHash" | "eth_getBlockByNumber" | "eth_getBlockReceipts" | "eth_getBlockTransactionCountByHash" | "eth_getBlockTransactionCountByNumber" | "eth_getCode" | "eth_getLogs" | "eth_getProof" | "eth_getStorageAt" | "eth_getTransactionByBlockHashAndIndex" | "eth_getTransactionByBlockNumberAndIndex" | "eth_getTransactionByHash" | "eth_getTransactionCount" | "eth_getTransactionReceipt" | "eth_maxPriorityFeePerGas" | "eth_sendRawTransaction" | "eth_simulateV1" | "net_version" | "web3_clientVersion">;
|
|
153
|
+
params: z$1.ZodMiniType<unknown, unknown, z$1.core.$ZodTypeInternals<unknown, unknown>>;
|
|
154
|
+
}, z$1.core.$strip>[]>>]>;
|
|
155
|
+
declare const solanaRpcRequest: z$1.ZodMiniUnion<readonly [z$1.ZodMiniUnion<z$1.ZodMiniObject<{
|
|
156
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
157
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniString<string>]>;
|
|
158
|
+
method: z$1.ZodMiniLiteral<"getAccountInfo" | "getBalance" | "getBlockHeight" | "getBlockTime" | "getEpochInfo" | "getFeeForMessage" | "getFirstAvailableBlock" | "getGenesisHash" | "getLatestBlockhash" | "getMinimumBalanceForRentExemption" | "getMultipleAccounts" | "getRecentPrioritizationFees" | "getSignatureStatuses" | "getSignaturesForAddress" | "getSlot" | "getStakeMinimumDelegation" | "getTokenAccountBalance" | "getTokenAccountsByOwner" | "getTokenSupply" | "getTransaction" | "getVersion" | "getVoteAccounts" | "isBlockhashValid" | "sendTransaction" | "simulateTransaction">;
|
|
159
|
+
params: z$1.ZodMiniType<unknown, unknown, z$1.core.$ZodTypeInternals<unknown, unknown>>;
|
|
160
|
+
}, z$1.core.$strip>[]>, z$1.ZodMiniArray<z$1.ZodMiniUnion<z$1.ZodMiniObject<{
|
|
161
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
162
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniString<string>]>;
|
|
163
|
+
method: z$1.ZodMiniLiteral<"getAccountInfo" | "getBalance" | "getBlockHeight" | "getBlockTime" | "getEpochInfo" | "getFeeForMessage" | "getFirstAvailableBlock" | "getGenesisHash" | "getLatestBlockhash" | "getMinimumBalanceForRentExemption" | "getMultipleAccounts" | "getRecentPrioritizationFees" | "getSignatureStatuses" | "getSignaturesForAddress" | "getSlot" | "getStakeMinimumDelegation" | "getTokenAccountBalance" | "getTokenAccountsByOwner" | "getTokenSupply" | "getTransaction" | "getVersion" | "getVoteAccounts" | "isBlockhashValid" | "sendTransaction" | "simulateTransaction">;
|
|
164
|
+
params: z$1.ZodMiniType<unknown, unknown, z$1.core.$ZodTypeInternals<unknown, unknown>>;
|
|
165
|
+
}, z$1.core.$strip>[]>>]>;
|
|
166
|
+
declare const jsonRpcResponse: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
167
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
168
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
169
|
+
result: z$1.ZodMiniUnknown;
|
|
170
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
171
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
172
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
173
|
+
error: z$1.ZodMiniObject<{
|
|
174
|
+
code: z$1.ZodMiniInt;
|
|
175
|
+
message: z$1.ZodMiniString<string>;
|
|
176
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniUnknown>;
|
|
177
|
+
}, z$1.core.$strip>;
|
|
178
|
+
}, z$1.core.$strip>]>;
|
|
179
|
+
declare const rpcResponse: z$1.ZodMiniUnion<readonly [z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
180
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
181
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
182
|
+
result: z$1.ZodMiniUnknown;
|
|
183
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
184
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
185
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
186
|
+
error: z$1.ZodMiniObject<{
|
|
187
|
+
code: z$1.ZodMiniInt;
|
|
188
|
+
message: z$1.ZodMiniString<string>;
|
|
189
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniUnknown>;
|
|
190
|
+
}, z$1.core.$strip>;
|
|
191
|
+
}, z$1.core.$strip>]>, z$1.ZodMiniArray<z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
192
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
193
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
194
|
+
result: z$1.ZodMiniUnknown;
|
|
195
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
196
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
197
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
198
|
+
error: z$1.ZodMiniObject<{
|
|
199
|
+
code: z$1.ZodMiniInt;
|
|
200
|
+
message: z$1.ZodMiniString<string>;
|
|
201
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniUnknown>;
|
|
202
|
+
}, z$1.core.$strip>;
|
|
203
|
+
}, z$1.core.$strip>]>>]>;
|
|
204
|
+
declare const rpc: Endpoint<z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
205
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
206
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniString<string>]>;
|
|
207
|
+
method: z$1.ZodMiniString<string>;
|
|
208
|
+
params: z$1.ZodMiniType<unknown, unknown, z$1.core.$ZodTypeInternals<unknown, unknown>>;
|
|
209
|
+
}, z$1.core.$strip>, z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
210
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
211
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniString<string>]>;
|
|
212
|
+
method: z$1.ZodMiniString<string>;
|
|
213
|
+
params: z$1.ZodMiniType<unknown, unknown, z$1.core.$ZodTypeInternals<unknown, unknown>>;
|
|
214
|
+
}, z$1.core.$strip>>]>, z$1.ZodMiniUnion<readonly [z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
215
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
216
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
217
|
+
result: z$1.ZodMiniUnknown;
|
|
218
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
219
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
220
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
221
|
+
error: z$1.ZodMiniObject<{
|
|
222
|
+
code: z$1.ZodMiniInt;
|
|
223
|
+
message: z$1.ZodMiniString<string>;
|
|
224
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniUnknown>;
|
|
225
|
+
}, z$1.core.$strip>;
|
|
226
|
+
}, z$1.core.$strip>]>, z$1.ZodMiniArray<z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
227
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
228
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
229
|
+
result: z$1.ZodMiniUnknown;
|
|
230
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
231
|
+
jsonrpc: z$1.ZodMiniLiteral<"2.0">;
|
|
232
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>, z$1.ZodMiniNull]>;
|
|
233
|
+
error: z$1.ZodMiniObject<{
|
|
234
|
+
code: z$1.ZodMiniInt;
|
|
235
|
+
message: z$1.ZodMiniString<string>;
|
|
236
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniUnknown>;
|
|
237
|
+
}, z$1.core.$strip>;
|
|
238
|
+
}, z$1.core.$strip>]>>]>>;
|
|
239
|
+
/** The JSON-RPC URL path for one network. */
|
|
240
|
+
declare const rpcPath: (caip2: string) => string;
|
|
241
|
+
/** Whether a validated call or batch relays a signed transaction. */
|
|
242
|
+
declare function containsBroadcast(body: z$1.infer<typeof rpcRequest>): boolean;
|
|
243
|
+
declare const TRON_INDEXER_LIMIT_MAX = 50;
|
|
244
|
+
/** A block header: `getblockbynum` of a height past the head answers `{}`, never an error. */
|
|
245
|
+
declare const tronBlockResponse: z$1.ZodMiniObject<{
|
|
246
|
+
blockID: z$1.ZodMiniString<string>;
|
|
247
|
+
block_header: z$1.ZodMiniObject<{
|
|
248
|
+
raw_data: z$1.ZodMiniObject<{
|
|
249
|
+
number: z$1.ZodMiniInt;
|
|
250
|
+
timestamp: z$1.ZodMiniInt;
|
|
251
|
+
}, z$1.core.$loose>;
|
|
252
|
+
}, z$1.core.$loose>;
|
|
253
|
+
}, z$1.core.$loose>;
|
|
254
|
+
declare const tronMaybeBlockResponse: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
255
|
+
blockID: z$1.ZodMiniString<string>;
|
|
256
|
+
block_header: z$1.ZodMiniObject<{
|
|
257
|
+
raw_data: z$1.ZodMiniObject<{
|
|
258
|
+
number: z$1.ZodMiniInt;
|
|
259
|
+
timestamp: z$1.ZodMiniInt;
|
|
260
|
+
}, z$1.core.$loose>;
|
|
261
|
+
}, z$1.core.$loose>;
|
|
262
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{}, z$1.core.$strict>]>;
|
|
263
|
+
type TronBlock = z$1.output<typeof tronBlockResponse>;
|
|
264
|
+
type TronMaybeBlock = z$1.output<typeof tronMaybeBlockResponse>;
|
|
265
|
+
/** An account row: an absent account answers `{}`. `type === "Contract"` names a contract. */
|
|
266
|
+
declare const tronAccount: z$1.ZodMiniObject<{
|
|
267
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
268
|
+
balance: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
269
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
270
|
+
assetV2: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
271
|
+
key: z$1.ZodMiniString<string>;
|
|
272
|
+
value: z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>;
|
|
273
|
+
}, z$1.core.$loose>>>;
|
|
274
|
+
frozenV2: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
275
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
276
|
+
amount: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
277
|
+
}, z$1.core.$loose>>>;
|
|
278
|
+
unfrozenV2: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
279
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
280
|
+
unfreeze_amount: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
281
|
+
unfreeze_expire_time: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
282
|
+
}, z$1.core.$loose>>>;
|
|
283
|
+
votes: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
284
|
+
vote_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
285
|
+
vote_count: z$1.ZodMiniNumber<number>;
|
|
286
|
+
}, z$1.core.$loose>>>;
|
|
287
|
+
latest_withdraw_time: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
288
|
+
account_resource: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
289
|
+
delegated_frozenV2_balance_for_energy: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
290
|
+
acquired_delegated_frozenV2_balance_for_energy: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
291
|
+
}, z$1.core.$loose>>;
|
|
292
|
+
delegated_frozenV2_balance_for_bandwidth: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
293
|
+
acquired_delegated_frozenV2_balance_for_bandwidth: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
294
|
+
owner_permission: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
295
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
296
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
297
|
+
permission_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
298
|
+
threshold: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
299
|
+
keys: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
300
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
301
|
+
weight: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
302
|
+
}, z$1.core.$loose>>>;
|
|
303
|
+
}, z$1.core.$loose>>;
|
|
304
|
+
witness_permission: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
305
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
306
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
307
|
+
permission_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
308
|
+
threshold: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
309
|
+
keys: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
310
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
311
|
+
weight: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
312
|
+
}, z$1.core.$loose>>>;
|
|
313
|
+
}, z$1.core.$loose>>;
|
|
314
|
+
active_permission: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
315
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
316
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
317
|
+
permission_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
318
|
+
threshold: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
319
|
+
keys: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
320
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
321
|
+
weight: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
322
|
+
}, z$1.core.$loose>>>;
|
|
323
|
+
}, z$1.core.$loose>>>;
|
|
324
|
+
}, z$1.core.$loose>;
|
|
325
|
+
declare const tronAccountResponse: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
326
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
327
|
+
balance: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
328
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
329
|
+
assetV2: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
330
|
+
key: z$1.ZodMiniString<string>;
|
|
331
|
+
value: z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>;
|
|
332
|
+
}, z$1.core.$loose>>>;
|
|
333
|
+
frozenV2: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
334
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
335
|
+
amount: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
336
|
+
}, z$1.core.$loose>>>;
|
|
337
|
+
unfrozenV2: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
338
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
339
|
+
unfreeze_amount: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
340
|
+
unfreeze_expire_time: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
341
|
+
}, z$1.core.$loose>>>;
|
|
342
|
+
votes: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
343
|
+
vote_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
344
|
+
vote_count: z$1.ZodMiniNumber<number>;
|
|
345
|
+
}, z$1.core.$loose>>>;
|
|
346
|
+
latest_withdraw_time: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
347
|
+
account_resource: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
348
|
+
delegated_frozenV2_balance_for_energy: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
349
|
+
acquired_delegated_frozenV2_balance_for_energy: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
350
|
+
}, z$1.core.$loose>>;
|
|
351
|
+
delegated_frozenV2_balance_for_bandwidth: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
352
|
+
acquired_delegated_frozenV2_balance_for_bandwidth: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
353
|
+
owner_permission: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
354
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
355
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
356
|
+
permission_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
357
|
+
threshold: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
358
|
+
keys: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
359
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
360
|
+
weight: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
361
|
+
}, z$1.core.$loose>>>;
|
|
362
|
+
}, z$1.core.$loose>>;
|
|
363
|
+
witness_permission: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
364
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
365
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
366
|
+
permission_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
367
|
+
threshold: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
368
|
+
keys: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
369
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
370
|
+
weight: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
371
|
+
}, z$1.core.$loose>>>;
|
|
372
|
+
}, z$1.core.$loose>>;
|
|
373
|
+
active_permission: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
374
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
375
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
376
|
+
permission_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
377
|
+
threshold: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
378
|
+
keys: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
379
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
380
|
+
weight: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
381
|
+
}, z$1.core.$loose>>>;
|
|
382
|
+
}, z$1.core.$loose>>>;
|
|
383
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{}, z$1.core.$strict>]>;
|
|
384
|
+
type TronAccount = z$1.output<typeof tronAccount>;
|
|
385
|
+
type TronMaybeAccount = z$1.output<typeof tronAccountResponse>;
|
|
386
|
+
/** Account resources: proto3 omits zero fields, so every counter is optional. */
|
|
387
|
+
declare const tronAccountResource: z$1.ZodMiniObject<{
|
|
388
|
+
freeNetLimit: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
389
|
+
freeNetUsed: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
390
|
+
NetLimit: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
391
|
+
NetUsed: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
392
|
+
EnergyLimit: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
393
|
+
EnergyUsed: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
394
|
+
tronPowerLimit: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
395
|
+
tronPowerUsed: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
396
|
+
}, z$1.core.$loose>;
|
|
397
|
+
type TronAccountResource = z$1.output<typeof tronAccountResource>;
|
|
398
|
+
declare const tronChainParameters: z$1.ZodMiniObject<{
|
|
399
|
+
chainParameter: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
400
|
+
key: z$1.ZodMiniString<string>;
|
|
401
|
+
value: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
402
|
+
}, z$1.core.$loose>>;
|
|
403
|
+
}, z$1.core.$loose>;
|
|
404
|
+
type TronChainParameters = z$1.output<typeof tronChainParameters>;
|
|
405
|
+
/** An event log entry: hex contract address, hex topics, hex data (never `visible`-form). */
|
|
406
|
+
declare const tronLog: z$1.ZodMiniObject<{
|
|
407
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
408
|
+
topics: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
|
|
409
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
410
|
+
}, z$1.core.$loose>;
|
|
411
|
+
type TronLog = z$1.output<typeof tronLog>;
|
|
412
|
+
/**
|
|
413
|
+
* `triggerconstantcontract`: a successful constant call (`result.result === true`) or a failure —
|
|
414
|
+
* REVERT and runtime errors answer `result: {code?, message?}` with `message` hex-encoded UTF-8.
|
|
415
|
+
*/
|
|
416
|
+
declare const tronConstantCallResponse: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
417
|
+
result: z$1.ZodMiniObject<{
|
|
418
|
+
result: z$1.ZodMiniLiteral<true>;
|
|
419
|
+
}, z$1.core.$loose>;
|
|
420
|
+
energy_used: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
421
|
+
energy_penalty: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
422
|
+
constant_result: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
|
|
423
|
+
logs: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
424
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
425
|
+
topics: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
|
|
426
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
427
|
+
}, z$1.core.$loose>>>;
|
|
428
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{
|
|
429
|
+
result: z$1.ZodMiniObject<{
|
|
430
|
+
code: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
431
|
+
message: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
432
|
+
}, z$1.core.$loose>;
|
|
433
|
+
energy_used: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
434
|
+
energy_penalty: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
435
|
+
}, z$1.core.$loose>]>;
|
|
436
|
+
type TronConstantCall = z$1.output<typeof tronConstantCallResponse>;
|
|
437
|
+
/** `broadcasthex`: `code` is the `Return.response_code` name; `message` is plain UTF-8 here. */
|
|
438
|
+
declare const tronBroadcastResponse: z$1.ZodMiniObject<{
|
|
439
|
+
result: z$1.ZodMiniBoolean<boolean>;
|
|
440
|
+
code: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
441
|
+
message: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
442
|
+
txid: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
443
|
+
}, z$1.core.$loose>;
|
|
444
|
+
type TronBroadcast = z$1.output<typeof tronBroadcastResponse>;
|
|
445
|
+
/** `gettransactionbyid`: an unknown id answers `{}`. `raw_data_hex` lets history pin the body. */
|
|
446
|
+
declare const tronTransactionResponse: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
447
|
+
txID: z$1.ZodMiniString<string>;
|
|
448
|
+
block_timestamp: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
449
|
+
raw_data_hex: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
450
|
+
raw_data: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
451
|
+
contract: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
452
|
+
type: z$1.ZodMiniString<string>;
|
|
453
|
+
parameter: z$1.ZodMiniObject<{
|
|
454
|
+
value: z$1.ZodMiniObject<{
|
|
455
|
+
owner_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
456
|
+
to_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
457
|
+
amount: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
458
|
+
asset_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
459
|
+
contract_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
460
|
+
call_value: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
461
|
+
call_token_value: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
462
|
+
token_id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
463
|
+
}, z$1.core.$loose>;
|
|
464
|
+
}, z$1.core.$loose>;
|
|
465
|
+
}, z$1.core.$loose>>;
|
|
466
|
+
}, z$1.core.$loose>>;
|
|
467
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{}, z$1.core.$strict>]>;
|
|
468
|
+
type TronMaybeTransaction = z$1.output<typeof tronTransactionResponse>;
|
|
469
|
+
/** `gettransactioninfobyid` (full or solidified): an unknown id answers `{}`. */
|
|
470
|
+
declare const tronTransactionInfo: z$1.ZodMiniObject<{
|
|
471
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
472
|
+
blockNumber: z$1.ZodMiniNumber<number>;
|
|
473
|
+
blockTimeStamp: z$1.ZodMiniNumber<number>;
|
|
474
|
+
fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
475
|
+
receipt: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
476
|
+
net_usage: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
477
|
+
net_fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
478
|
+
energy_usage_total: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
479
|
+
energy_fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
480
|
+
result: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
481
|
+
}, z$1.core.$loose>>;
|
|
482
|
+
result: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
483
|
+
resMessage: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
484
|
+
log: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
485
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
486
|
+
topics: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
|
|
487
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
488
|
+
}, z$1.core.$loose>>>;
|
|
489
|
+
}, z$1.core.$loose>;
|
|
490
|
+
declare const tronTransactionInfoResponse: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
491
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
492
|
+
blockNumber: z$1.ZodMiniNumber<number>;
|
|
493
|
+
blockTimeStamp: z$1.ZodMiniNumber<number>;
|
|
494
|
+
fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
495
|
+
receipt: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
496
|
+
net_usage: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
497
|
+
net_fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
498
|
+
energy_usage_total: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
499
|
+
energy_fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
500
|
+
result: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
501
|
+
}, z$1.core.$loose>>;
|
|
502
|
+
result: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
503
|
+
resMessage: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
504
|
+
log: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
505
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
506
|
+
topics: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
|
|
507
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
508
|
+
}, z$1.core.$loose>>>;
|
|
509
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{}, z$1.core.$strict>]>;
|
|
510
|
+
type TronMaybeTransactionInfo = z$1.output<typeof tronTransactionInfoResponse>;
|
|
511
|
+
declare const tronIndexerPageResponse: z$1.ZodMiniObject<{
|
|
512
|
+
success: z$1.ZodMiniLiteral<true>;
|
|
513
|
+
data: z$1.ZodMiniArray<z$1.ZodMiniUnknown>;
|
|
514
|
+
meta: z$1.ZodMiniObject<{
|
|
515
|
+
fingerprint: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
516
|
+
}, z$1.core.$loose>;
|
|
517
|
+
}, z$1.core.$loose>;
|
|
518
|
+
declare const indexerAccountResponse: z$1.ZodMiniObject<{
|
|
519
|
+
success: z$1.ZodMiniLiteral<true>;
|
|
520
|
+
data: z$1.ZodMiniArray<z$1.ZodMiniUnknown>;
|
|
521
|
+
meta: z$1.ZodMiniObject<{
|
|
522
|
+
fingerprint: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
523
|
+
}, z$1.core.$loose>;
|
|
524
|
+
}, z$1.core.$loose>;
|
|
525
|
+
type TronIndexerPage = z$1.output<typeof tronIndexerPageResponse>;
|
|
526
|
+
type TronIndexerAccount = z$1.output<typeof indexerAccountResponse>;
|
|
527
|
+
/**
|
|
528
|
+
* One `/v1/accounts/transactions` row — only the fields history reads. Rows that fail this schema
|
|
529
|
+
* are skipped by the stream, never thrown: the indexer is display-only and untrusted.
|
|
530
|
+
*/
|
|
531
|
+
declare const tronIndexerTransaction: z$1.ZodMiniObject<{
|
|
532
|
+
txID: z$1.ZodMiniString<string>;
|
|
533
|
+
block_timestamp: z$1.ZodMiniNumber<number>;
|
|
534
|
+
blockNumber: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
535
|
+
raw_data: z$1.ZodMiniObject<{
|
|
536
|
+
contract: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
537
|
+
type: z$1.ZodMiniString<string>;
|
|
538
|
+
parameter: z$1.ZodMiniObject<{
|
|
539
|
+
value: z$1.ZodMiniObject<{
|
|
540
|
+
owner_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
541
|
+
to_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
542
|
+
amount: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
543
|
+
asset_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
544
|
+
contract_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
545
|
+
call_value: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
546
|
+
call_token_value: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
547
|
+
token_id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
548
|
+
}, z$1.core.$loose>;
|
|
549
|
+
}, z$1.core.$loose>;
|
|
550
|
+
}, z$1.core.$loose>>;
|
|
551
|
+
}, z$1.core.$loose>;
|
|
552
|
+
}, z$1.core.$loose>;
|
|
553
|
+
type TronIndexerTransactionRow = z$1.output<typeof tronIndexerTransaction>;
|
|
554
|
+
/** One `/v1/accounts/transactions/trc20` row — same skipped-not-thrown rule as the tx feed. */
|
|
555
|
+
declare const tronIndexerTrc20: z$1.ZodMiniObject<{
|
|
556
|
+
transaction_id: z$1.ZodMiniString<string>;
|
|
557
|
+
block_timestamp: z$1.ZodMiniNumber<number>;
|
|
558
|
+
from: z$1.ZodMiniString<string>;
|
|
559
|
+
to: z$1.ZodMiniString<string>;
|
|
560
|
+
type: z$1.ZodMiniString<string>;
|
|
561
|
+
value: z$1.ZodMiniString<string>;
|
|
562
|
+
token_info: z$1.ZodMiniObject<{
|
|
563
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
564
|
+
symbol: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
565
|
+
name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
566
|
+
decimals: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
567
|
+
}, z$1.core.$loose>;
|
|
568
|
+
}, z$1.core.$loose>;
|
|
569
|
+
type TronIndexerTrc20Row = z$1.output<typeof tronIndexerTrc20>;
|
|
570
|
+
/** `getavailableunfreezecount` — `{count: n}`, or `{}` when none is available. */
|
|
571
|
+
declare const tronUnfreezeCountResponse: z$1.ZodMiniObject<{
|
|
572
|
+
count: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
573
|
+
}, z$1.core.$loose>;
|
|
574
|
+
type TronUnfreezeCount = z$1.output<typeof tronUnfreezeCountResponse>;
|
|
575
|
+
/** `getcandelegatedmaxsize` — `{max_size: n}` in sun; `{}` means the account can delegate 0. */
|
|
576
|
+
declare const tronCanDelegateMaxSizeResponse: z$1.ZodMiniObject<{
|
|
577
|
+
max_size: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
578
|
+
}, z$1.core.$loose>;
|
|
579
|
+
type TronCanDelegateMaxSize = z$1.output<typeof tronCanDelegateMaxSizeResponse>;
|
|
580
|
+
/** `getdelegatedresourcev2`: the row's lock expiry is per-resource, in ms. */
|
|
581
|
+
declare const tronDelegatedResourceResponse: z$1.ZodMiniObject<{
|
|
582
|
+
delegatedResource: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
583
|
+
from: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
584
|
+
to: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
585
|
+
frozen_balance_for_bandwidth: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
586
|
+
frozen_balance_for_energy: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
587
|
+
expire_time_for_bandwidth: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
588
|
+
expire_time_for_energy: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
589
|
+
}, z$1.core.$loose>>>;
|
|
590
|
+
}, z$1.core.$loose>;
|
|
591
|
+
type TronDelegatedResource = z$1.output<typeof tronDelegatedResourceResponse>;
|
|
592
|
+
/** `getReward` — `{reward: sun}`, or `{}` when nothing is withdrawable. */
|
|
593
|
+
declare const tronRewardResponse: z$1.ZodMiniObject<{
|
|
594
|
+
reward: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
595
|
+
}, z$1.core.$loose>;
|
|
596
|
+
type TronReward = z$1.output<typeof tronRewardResponse>;
|
|
597
|
+
/** `listwitnesses`: `address` is the witness's base58 or `41…` hex form. */
|
|
598
|
+
/**
|
|
599
|
+
* `getassetissuebyid` — TRC-10 metadata. `name`/`abbr` are hex-encoded strings per the node;
|
|
600
|
+
* `precision` is the TRC-10 decimals.
|
|
601
|
+
*/
|
|
602
|
+
declare const tronAssetIssueResponse: z$1.ZodMiniObject<{
|
|
603
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
604
|
+
name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
605
|
+
abbr: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
606
|
+
precision: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
607
|
+
}, z$1.core.$loose>;
|
|
608
|
+
type TronAssetIssue = z$1.output<typeof tronAssetIssueResponse>;
|
|
609
|
+
declare const tronWitnessListResponse: z$1.ZodMiniObject<{
|
|
610
|
+
witnesses: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
611
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
612
|
+
}, z$1.core.$loose>>>;
|
|
613
|
+
}, z$1.core.$loose>;
|
|
614
|
+
type TronWitnessList = z$1.output<typeof tronWitnessListResponse>;
|
|
615
|
+
type TronPath = {
|
|
616
|
+
readonly request: z$1.ZodMiniType;
|
|
617
|
+
readonly response: z$1.ZodMiniType;
|
|
618
|
+
};
|
|
619
|
+
/** Node API paths forwarded to every provider: path → request schema, response schema. */
|
|
620
|
+
declare const TRON_NODE_PATHS: {
|
|
621
|
+
readonly "/wallet/getnowblock": {
|
|
622
|
+
readonly request: z$1.ZodMiniObject<{}, z$1.core.$strict>;
|
|
623
|
+
readonly response: z$1.ZodMiniObject<{
|
|
624
|
+
blockID: z$1.ZodMiniString<string>;
|
|
625
|
+
block_header: z$1.ZodMiniObject<{
|
|
626
|
+
raw_data: z$1.ZodMiniObject<{
|
|
627
|
+
number: z$1.ZodMiniInt;
|
|
628
|
+
timestamp: z$1.ZodMiniInt;
|
|
629
|
+
}, z$1.core.$loose>;
|
|
630
|
+
}, z$1.core.$loose>;
|
|
631
|
+
}, z$1.core.$loose>;
|
|
632
|
+
};
|
|
633
|
+
readonly "/walletsolidity/getnowblock": {
|
|
634
|
+
readonly request: z$1.ZodMiniObject<{}, z$1.core.$strict>;
|
|
635
|
+
readonly response: z$1.ZodMiniObject<{
|
|
636
|
+
blockID: z$1.ZodMiniString<string>;
|
|
637
|
+
block_header: z$1.ZodMiniObject<{
|
|
638
|
+
raw_data: z$1.ZodMiniObject<{
|
|
639
|
+
number: z$1.ZodMiniInt;
|
|
640
|
+
timestamp: z$1.ZodMiniInt;
|
|
641
|
+
}, z$1.core.$loose>;
|
|
642
|
+
}, z$1.core.$loose>;
|
|
643
|
+
}, z$1.core.$loose>;
|
|
644
|
+
};
|
|
645
|
+
readonly "/wallet/getblockbynum": {
|
|
646
|
+
readonly request: z$1.ZodMiniObject<{
|
|
647
|
+
num: z$1.ZodMiniInt;
|
|
648
|
+
}, z$1.core.$strict>;
|
|
649
|
+
readonly response: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
650
|
+
blockID: z$1.ZodMiniString<string>;
|
|
651
|
+
block_header: z$1.ZodMiniObject<{
|
|
652
|
+
raw_data: z$1.ZodMiniObject<{
|
|
653
|
+
number: z$1.ZodMiniInt;
|
|
654
|
+
timestamp: z$1.ZodMiniInt;
|
|
655
|
+
}, z$1.core.$loose>;
|
|
656
|
+
}, z$1.core.$loose>;
|
|
657
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{}, z$1.core.$strict>]>;
|
|
658
|
+
};
|
|
659
|
+
readonly "/walletsolidity/getblockbynum": {
|
|
660
|
+
readonly request: z$1.ZodMiniObject<{
|
|
661
|
+
num: z$1.ZodMiniInt;
|
|
662
|
+
}, z$1.core.$strict>;
|
|
663
|
+
readonly response: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
664
|
+
blockID: z$1.ZodMiniString<string>;
|
|
665
|
+
block_header: z$1.ZodMiniObject<{
|
|
666
|
+
raw_data: z$1.ZodMiniObject<{
|
|
667
|
+
number: z$1.ZodMiniInt;
|
|
668
|
+
timestamp: z$1.ZodMiniInt;
|
|
669
|
+
}, z$1.core.$loose>;
|
|
670
|
+
}, z$1.core.$loose>;
|
|
671
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{}, z$1.core.$strict>]>;
|
|
672
|
+
};
|
|
673
|
+
readonly "/wallet/getaccount": {
|
|
674
|
+
readonly request: z$1.ZodMiniObject<{
|
|
675
|
+
address: z$1.ZodMiniString<string>;
|
|
676
|
+
visible: z$1.ZodMiniLiteral<true>;
|
|
677
|
+
}, z$1.core.$strict>;
|
|
678
|
+
readonly response: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
679
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
680
|
+
balance: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
681
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
682
|
+
assetV2: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
683
|
+
key: z$1.ZodMiniString<string>;
|
|
684
|
+
value: z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>;
|
|
685
|
+
}, z$1.core.$loose>>>;
|
|
686
|
+
frozenV2: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
687
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
688
|
+
amount: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
689
|
+
}, z$1.core.$loose>>>;
|
|
690
|
+
unfrozenV2: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
691
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
692
|
+
unfreeze_amount: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
693
|
+
unfreeze_expire_time: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
694
|
+
}, z$1.core.$loose>>>;
|
|
695
|
+
votes: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
696
|
+
vote_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
697
|
+
vote_count: z$1.ZodMiniNumber<number>;
|
|
698
|
+
}, z$1.core.$loose>>>;
|
|
699
|
+
latest_withdraw_time: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
700
|
+
account_resource: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
701
|
+
delegated_frozenV2_balance_for_energy: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
702
|
+
acquired_delegated_frozenV2_balance_for_energy: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
703
|
+
}, z$1.core.$loose>>;
|
|
704
|
+
delegated_frozenV2_balance_for_bandwidth: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
705
|
+
acquired_delegated_frozenV2_balance_for_bandwidth: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
706
|
+
owner_permission: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
707
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
708
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
709
|
+
permission_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
710
|
+
threshold: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
711
|
+
keys: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
712
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
713
|
+
weight: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
714
|
+
}, z$1.core.$loose>>>;
|
|
715
|
+
}, z$1.core.$loose>>;
|
|
716
|
+
witness_permission: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
717
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
718
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
719
|
+
permission_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
720
|
+
threshold: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
721
|
+
keys: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
722
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
723
|
+
weight: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
724
|
+
}, z$1.core.$loose>>>;
|
|
725
|
+
}, z$1.core.$loose>>;
|
|
726
|
+
active_permission: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
727
|
+
type: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNumber<number>]>>;
|
|
728
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
729
|
+
permission_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
730
|
+
threshold: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
731
|
+
keys: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
732
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
733
|
+
weight: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
734
|
+
}, z$1.core.$loose>>>;
|
|
735
|
+
}, z$1.core.$loose>>>;
|
|
736
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{}, z$1.core.$strict>]>;
|
|
737
|
+
};
|
|
738
|
+
readonly "/wallet/getavailableunfreezecount": {
|
|
739
|
+
readonly request: z$1.ZodMiniObject<{
|
|
740
|
+
owner_address: z$1.ZodMiniString<string>;
|
|
741
|
+
visible: z$1.ZodMiniLiteral<true>;
|
|
742
|
+
}, z$1.core.$strict>;
|
|
743
|
+
readonly response: z$1.ZodMiniObject<{
|
|
744
|
+
count: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
745
|
+
}, z$1.core.$loose>;
|
|
746
|
+
};
|
|
747
|
+
readonly "/wallet/getcandelegatedmaxsize": {
|
|
748
|
+
readonly request: z$1.ZodMiniObject<{
|
|
749
|
+
owner_address: z$1.ZodMiniString<string>;
|
|
750
|
+
type: z$1.ZodMiniUnion<readonly [z$1.ZodMiniLiteral<0>, z$1.ZodMiniLiteral<1>]>;
|
|
751
|
+
visible: z$1.ZodMiniLiteral<true>;
|
|
752
|
+
}, z$1.core.$strict>;
|
|
753
|
+
readonly response: z$1.ZodMiniObject<{
|
|
754
|
+
max_size: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
755
|
+
}, z$1.core.$loose>;
|
|
756
|
+
};
|
|
757
|
+
readonly "/wallet/getdelegatedresourcev2": {
|
|
758
|
+
readonly request: z$1.ZodMiniObject<{
|
|
759
|
+
fromAddress: z$1.ZodMiniString<string>;
|
|
760
|
+
toAddress: z$1.ZodMiniString<string>;
|
|
761
|
+
visible: z$1.ZodMiniLiteral<true>;
|
|
762
|
+
}, z$1.core.$strict>;
|
|
763
|
+
readonly response: z$1.ZodMiniObject<{
|
|
764
|
+
delegatedResource: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
765
|
+
from: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
766
|
+
to: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
767
|
+
frozen_balance_for_bandwidth: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
768
|
+
frozen_balance_for_energy: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
769
|
+
expire_time_for_bandwidth: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
770
|
+
expire_time_for_energy: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
771
|
+
}, z$1.core.$loose>>>;
|
|
772
|
+
}, z$1.core.$loose>;
|
|
773
|
+
};
|
|
774
|
+
readonly "/wallet/getReward": {
|
|
775
|
+
readonly request: z$1.ZodMiniObject<{
|
|
776
|
+
address: z$1.ZodMiniString<string>;
|
|
777
|
+
visible: z$1.ZodMiniLiteral<true>;
|
|
778
|
+
}, z$1.core.$strict>;
|
|
779
|
+
readonly response: z$1.ZodMiniObject<{
|
|
780
|
+
reward: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
781
|
+
}, z$1.core.$loose>;
|
|
782
|
+
};
|
|
783
|
+
readonly "/wallet/getassetissuebyid": {
|
|
784
|
+
readonly request: z$1.ZodMiniObject<{
|
|
785
|
+
value: z$1.ZodMiniInt;
|
|
786
|
+
}, z$1.core.$strict>;
|
|
787
|
+
readonly response: z$1.ZodMiniObject<{
|
|
788
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
789
|
+
name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
790
|
+
abbr: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
791
|
+
precision: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
792
|
+
}, z$1.core.$loose>;
|
|
793
|
+
};
|
|
794
|
+
readonly "/wallet/listwitnesses": {
|
|
795
|
+
readonly request: z$1.ZodMiniObject<{}, z$1.core.$strict>;
|
|
796
|
+
readonly response: z$1.ZodMiniObject<{
|
|
797
|
+
witnesses: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
798
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
799
|
+
}, z$1.core.$loose>>>;
|
|
800
|
+
}, z$1.core.$loose>;
|
|
801
|
+
};
|
|
802
|
+
readonly "/wallet/getaccountresource": {
|
|
803
|
+
readonly request: z$1.ZodMiniObject<{
|
|
804
|
+
address: z$1.ZodMiniString<string>;
|
|
805
|
+
visible: z$1.ZodMiniLiteral<true>;
|
|
806
|
+
}, z$1.core.$strict>;
|
|
807
|
+
readonly response: z$1.ZodMiniObject<{
|
|
808
|
+
freeNetLimit: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
809
|
+
freeNetUsed: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
810
|
+
NetLimit: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
811
|
+
NetUsed: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
812
|
+
EnergyLimit: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
813
|
+
EnergyUsed: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
814
|
+
tronPowerLimit: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
815
|
+
tronPowerUsed: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
816
|
+
}, z$1.core.$loose>;
|
|
817
|
+
};
|
|
818
|
+
readonly "/wallet/getchainparameters": {
|
|
819
|
+
readonly request: z$1.ZodMiniObject<{}, z$1.core.$strict>;
|
|
820
|
+
readonly response: z$1.ZodMiniObject<{
|
|
821
|
+
chainParameter: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
822
|
+
key: z$1.ZodMiniString<string>;
|
|
823
|
+
value: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
824
|
+
}, z$1.core.$loose>>;
|
|
825
|
+
}, z$1.core.$loose>;
|
|
826
|
+
};
|
|
827
|
+
readonly "/wallet/triggerconstantcontract": {
|
|
828
|
+
readonly request: z$1.ZodMiniObject<{
|
|
829
|
+
owner_address: z$1.ZodMiniString<string>;
|
|
830
|
+
contract_address: z$1.ZodMiniString<string>;
|
|
831
|
+
data: z$1.ZodMiniString<string>;
|
|
832
|
+
call_value: z$1.ZodMiniOptional<z$1.ZodMiniInt>;
|
|
833
|
+
visible: z$1.ZodMiniLiteral<true>;
|
|
834
|
+
}, z$1.core.$strict>;
|
|
835
|
+
readonly response: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
836
|
+
result: z$1.ZodMiniObject<{
|
|
837
|
+
result: z$1.ZodMiniLiteral<true>;
|
|
838
|
+
}, z$1.core.$loose>;
|
|
839
|
+
energy_used: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
840
|
+
energy_penalty: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
841
|
+
constant_result: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
|
|
842
|
+
logs: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
843
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
844
|
+
topics: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
|
|
845
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
846
|
+
}, z$1.core.$loose>>>;
|
|
847
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{
|
|
848
|
+
result: z$1.ZodMiniObject<{
|
|
849
|
+
code: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
850
|
+
message: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
851
|
+
}, z$1.core.$loose>;
|
|
852
|
+
energy_used: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
853
|
+
energy_penalty: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
854
|
+
}, z$1.core.$loose>]>;
|
|
855
|
+
};
|
|
856
|
+
readonly "/wallet/broadcasthex": {
|
|
857
|
+
readonly request: z$1.ZodMiniObject<{
|
|
858
|
+
transaction: z$1.ZodMiniString<string>;
|
|
859
|
+
}, z$1.core.$strict>;
|
|
860
|
+
readonly response: z$1.ZodMiniObject<{
|
|
861
|
+
result: z$1.ZodMiniBoolean<boolean>;
|
|
862
|
+
code: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
863
|
+
message: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
864
|
+
txid: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
865
|
+
}, z$1.core.$loose>;
|
|
866
|
+
};
|
|
867
|
+
readonly "/wallet/gettransactionbyid": {
|
|
868
|
+
readonly request: z$1.ZodMiniObject<{
|
|
869
|
+
value: z$1.ZodMiniString<string>;
|
|
870
|
+
}, z$1.core.$strict>;
|
|
871
|
+
readonly response: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
872
|
+
txID: z$1.ZodMiniString<string>;
|
|
873
|
+
block_timestamp: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
874
|
+
raw_data_hex: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
875
|
+
raw_data: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
876
|
+
contract: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
877
|
+
type: z$1.ZodMiniString<string>;
|
|
878
|
+
parameter: z$1.ZodMiniObject<{
|
|
879
|
+
value: z$1.ZodMiniObject<{
|
|
880
|
+
owner_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
881
|
+
to_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
882
|
+
amount: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
883
|
+
asset_name: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
884
|
+
contract_address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
885
|
+
call_value: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
886
|
+
call_token_value: z$1.ZodMiniOptional<z$1.ZodMiniUnion<readonly [z$1.ZodMiniNumber<number>, z$1.ZodMiniBigInt<bigint>]>>;
|
|
887
|
+
token_id: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
888
|
+
}, z$1.core.$loose>;
|
|
889
|
+
}, z$1.core.$loose>;
|
|
890
|
+
}, z$1.core.$loose>>;
|
|
891
|
+
}, z$1.core.$loose>>;
|
|
892
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{}, z$1.core.$strict>]>;
|
|
893
|
+
};
|
|
894
|
+
readonly "/wallet/gettransactioninfobyid": {
|
|
895
|
+
readonly request: z$1.ZodMiniObject<{
|
|
896
|
+
value: z$1.ZodMiniString<string>;
|
|
897
|
+
}, z$1.core.$strict>;
|
|
898
|
+
readonly response: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
899
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
900
|
+
blockNumber: z$1.ZodMiniNumber<number>;
|
|
901
|
+
blockTimeStamp: z$1.ZodMiniNumber<number>;
|
|
902
|
+
fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
903
|
+
receipt: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
904
|
+
net_usage: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
905
|
+
net_fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
906
|
+
energy_usage_total: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
907
|
+
energy_fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
908
|
+
result: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
909
|
+
}, z$1.core.$loose>>;
|
|
910
|
+
result: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
911
|
+
resMessage: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
912
|
+
log: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
913
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
914
|
+
topics: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
|
|
915
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
916
|
+
}, z$1.core.$loose>>>;
|
|
917
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{}, z$1.core.$strict>]>;
|
|
918
|
+
};
|
|
919
|
+
readonly "/walletsolidity/gettransactioninfobyid": {
|
|
920
|
+
readonly request: z$1.ZodMiniObject<{
|
|
921
|
+
value: z$1.ZodMiniString<string>;
|
|
922
|
+
}, z$1.core.$strict>;
|
|
923
|
+
readonly response: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
924
|
+
id: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
925
|
+
blockNumber: z$1.ZodMiniNumber<number>;
|
|
926
|
+
blockTimeStamp: z$1.ZodMiniNumber<number>;
|
|
927
|
+
fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
928
|
+
receipt: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
|
|
929
|
+
net_usage: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
930
|
+
net_fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
931
|
+
energy_usage_total: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
932
|
+
energy_fee: z$1.ZodMiniOptional<z$1.ZodMiniNumber<number>>;
|
|
933
|
+
result: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
934
|
+
}, z$1.core.$loose>>;
|
|
935
|
+
result: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
936
|
+
resMessage: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
937
|
+
log: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
938
|
+
address: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
939
|
+
topics: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
|
|
940
|
+
data: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
941
|
+
}, z$1.core.$loose>>>;
|
|
942
|
+
}, z$1.core.$loose>, z$1.ZodMiniObject<{}, z$1.core.$strict>]>;
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
/**
|
|
946
|
+
* Display-only indexer paths — the engine's own names; the gateway translates them to TronGrid GETs
|
|
947
|
+
* and only indexer providers serve them.
|
|
948
|
+
*/
|
|
949
|
+
declare const TRON_INDEXER_PATHS: {
|
|
950
|
+
readonly "/v1/accounts/transactions": {
|
|
951
|
+
readonly request: z$1.ZodMiniObject<{
|
|
952
|
+
address: z$1.ZodMiniString<string>;
|
|
953
|
+
fingerprint: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
954
|
+
limit: z$1.ZodMiniOptional<z$1.ZodMiniInt>;
|
|
955
|
+
}, z$1.core.$strict>;
|
|
956
|
+
readonly response: z$1.ZodMiniObject<{
|
|
957
|
+
success: z$1.ZodMiniLiteral<true>;
|
|
958
|
+
data: z$1.ZodMiniArray<z$1.ZodMiniUnknown>;
|
|
959
|
+
meta: z$1.ZodMiniObject<{
|
|
960
|
+
fingerprint: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
961
|
+
}, z$1.core.$loose>;
|
|
962
|
+
}, z$1.core.$loose>;
|
|
963
|
+
};
|
|
964
|
+
readonly "/v1/accounts/transactions/trc20": {
|
|
965
|
+
readonly request: z$1.ZodMiniObject<{
|
|
966
|
+
address: z$1.ZodMiniString<string>;
|
|
967
|
+
fingerprint: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
968
|
+
limit: z$1.ZodMiniOptional<z$1.ZodMiniInt>;
|
|
969
|
+
}, z$1.core.$strict>;
|
|
970
|
+
readonly response: z$1.ZodMiniObject<{
|
|
971
|
+
success: z$1.ZodMiniLiteral<true>;
|
|
972
|
+
data: z$1.ZodMiniArray<z$1.ZodMiniUnknown>;
|
|
973
|
+
meta: z$1.ZodMiniObject<{
|
|
974
|
+
fingerprint: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
975
|
+
}, z$1.core.$loose>;
|
|
976
|
+
}, z$1.core.$loose>;
|
|
977
|
+
};
|
|
978
|
+
readonly "/v1/accounts/account": {
|
|
979
|
+
readonly request: z$1.ZodMiniObject<{
|
|
980
|
+
address: z$1.ZodMiniString<string>;
|
|
981
|
+
}, z$1.core.$strict>;
|
|
982
|
+
readonly response: z$1.ZodMiniObject<{
|
|
983
|
+
success: z$1.ZodMiniLiteral<true>;
|
|
984
|
+
data: z$1.ZodMiniArray<z$1.ZodMiniUnknown>;
|
|
985
|
+
meta: z$1.ZodMiniObject<{
|
|
986
|
+
fingerprint: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
987
|
+
}, z$1.core.$loose>;
|
|
988
|
+
}, z$1.core.$loose>;
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
type TronNodePath = keyof typeof TRON_NODE_PATHS;
|
|
992
|
+
type TronIndexerPath = keyof typeof TRON_INDEXER_PATHS;
|
|
993
|
+
/** The path that relays a signed transaction — failover could double-broadcast it. */
|
|
994
|
+
declare const TRON_BROADCAST_PATH: TronNodePath;
|
|
995
|
+
/** The path entry, or `undefined` when `path` is not allow-listed. */
|
|
996
|
+
declare const tronPathEntry: (path: string) => TronPath | undefined;
|
|
997
|
+
declare const tronPathAllowed: (path: string) => boolean;
|
|
998
|
+
/** Whether `path` is an indexer path — routed only to the network's indexer providers. */
|
|
999
|
+
declare const isTronIndexerPath: (path: string) => path is TronIndexerPath;
|
|
1000
|
+
declare const tron: Endpoint<z$1.ZodMiniUnknown, z$1.ZodMiniUnknown>;
|
|
1001
|
+
/** The TRON base path for one network; allow-listed node and indexer paths are appended to it. */
|
|
1002
|
+
declare const tronBasePath: (caip2: string) => string;
|
|
1003
|
+
/**
|
|
1004
|
+
* Lossless JSON.parse: TRON's java-tron printer emits int64 fields as bare JSON numbers, so any
|
|
1005
|
+
* value beyond ±(2^53−1) would lose precision under `JSON.parse`. This parser accepts exactly the
|
|
1006
|
+
* JSON grammar — nothing `JSON.parse` would reject is accepted — and differs only in that an
|
|
1007
|
+
* integer literal (no fraction, no exponent) outside the safe range becomes a `bigint` holding the
|
|
1008
|
+
* literal's exact value. Everything else — strings, booleans, null, doubles, duplicate keys (last
|
|
1009
|
+
* wins) — behaves identically to `JSON.parse`.
|
|
1010
|
+
*/
|
|
1011
|
+
declare class TronJsonParseError extends Error {
|
|
1012
|
+
/** Byte offset into the input where the grammar failed. */
|
|
1013
|
+
readonly offset: number;
|
|
1014
|
+
constructor(message: string, offset: number);
|
|
1015
|
+
}
|
|
1016
|
+
declare const parseTronJson: (text: string) => unknown;
|
|
1017
|
+
type EsploraRoute = {
|
|
1018
|
+
readonly method: "GET" | "POST";
|
|
1019
|
+
readonly pattern: RegExp;
|
|
1020
|
+
};
|
|
1021
|
+
/** The Esplora surface the engine uses; every other path is rejected. */
|
|
1022
|
+
declare const ESPLORA_ROUTES: ReadonlyArray<EsploraRoute>;
|
|
1023
|
+
/** `path` is the Esplora path after `/v1/esplora/:caip2`, with a leading slash and no query. */
|
|
1024
|
+
declare const esploraPathAllowed: (method: string, path: string) => boolean;
|
|
1025
|
+
declare const esploraGet: Endpoint<z$1.ZodMiniUndefined, z$1.ZodMiniUnknown>;
|
|
1026
|
+
/** The Esplora base path for one network; allow-listed paths are appended to it. */
|
|
1027
|
+
declare const esploraBasePath: (caip2: string) => string;
|
|
1028
|
+
declare const esploraPost: Endpoint<z$1.ZodMiniString<string>, z$1.ZodMiniString<string>>;
|
|
1029
|
+
/** How the engine prices gas on a chain. */
|
|
1030
|
+
type GasPricing =
|
|
1031
|
+
/** EIP-1559 caps from eth_feeHistory (maxFeePerGas = 2 × next base fee + the tier's reward). */
|
|
1032
|
+
"eip1559" |
|
|
1033
|
+
/**
|
|
1034
|
+
* A legacy (type-0) price from eth_gasPrice, for chains whose EIP-1559 caps would come out zero
|
|
1035
|
+
* or whose primary upstream lacks eth_feeHistory.
|
|
1036
|
+
*/
|
|
1037
|
+
"legacy";
|
|
1038
|
+
/** What a transaction is charged beyond `gasUsed × effectiveGasPrice`. */
|
|
1039
|
+
type FeeModel =
|
|
1040
|
+
/** Nothing beyond gas: the chain folds any L1 cost into gas (L1s, Arbitrum Orbit, zk rollups). */
|
|
1041
|
+
{
|
|
1042
|
+
readonly kind: "execution";
|
|
1043
|
+
readonly pricing: GasPricing;
|
|
1044
|
+
} |
|
|
1045
|
+
/** OP Stack: an L1 data fee and an operator fee, read from the GasPriceOracle predeploy. */
|
|
1046
|
+
{
|
|
1047
|
+
readonly kind: "op-stack";
|
|
1048
|
+
readonly pricing: GasPricing;
|
|
1049
|
+
/**
|
|
1050
|
+
* The oracle prices an operator fee (Isthmus and later); pre-Isthmus oracles revert on
|
|
1051
|
+
* getOperatorFee.
|
|
1052
|
+
*/
|
|
1053
|
+
readonly operatorFee: boolean;
|
|
1054
|
+
/** `getL1Fee` is ETH-denominated and charged in the gas token at `tokenRatio()` (Mantle). */
|
|
1055
|
+
readonly tokenRatio: boolean;
|
|
1056
|
+
} |
|
|
1057
|
+
/** Scroll: an L1 data fee from the L1GasPriceOracle predeploy, priced on the signed encoding. */
|
|
1058
|
+
{
|
|
1059
|
+
readonly kind: "scroll";
|
|
1060
|
+
readonly pricing: GasPricing;
|
|
1061
|
+
};
|
|
1062
|
+
/** The chain families this registry serves. */
|
|
1063
|
+
type EngineFamily = "evm" | "solana" | "bitcoin" | "tron";
|
|
1064
|
+
type NetworkInfo = Omit<NetworkMeta, "family"> & {
|
|
1065
|
+
readonly family: EngineFamily;
|
|
1066
|
+
readonly multicall3?: string;
|
|
1067
|
+
/** How the chain prices costs beyond execution gas; every EVM entry sets it. */
|
|
1068
|
+
readonly feeModel?: FeeModel;
|
|
1069
|
+
/** Keccak256 of the delegator's runtime code on this chain; absent = EIP-7702 unsupported. */
|
|
1070
|
+
readonly delegatorCodeHash?: string;
|
|
1071
|
+
};
|
|
1072
|
+
declare const NETWORKS: ReadonlyArray<NetworkInfo>;
|
|
1073
|
+
declare const BITCOIN_NETWORKS: ReadonlyArray<NetworkInfo>;
|
|
1074
|
+
declare const SOLANA_NETWORKS: ReadonlyArray<NetworkInfo>;
|
|
1075
|
+
declare const TRON_NETWORKS: ReadonlyArray<NetworkInfo>;
|
|
1076
|
+
declare const networkById: (id: string) => NetworkInfo | undefined;
|
|
1077
|
+
declare const servedNetworksRequest: z$1.ZodMiniUndefined;
|
|
1078
|
+
/** The networks the gateway actually serves, in its configured order. */
|
|
1079
|
+
declare const servedNetworksResponse: z$1.ZodMiniObject<{
|
|
1080
|
+
networks: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
1081
|
+
}, z$1.core.$strip>;
|
|
1082
|
+
declare const servedNetworks: Endpoint<z$1.ZodMiniUndefined, z$1.ZodMiniObject<{
|
|
1083
|
+
networks: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
1084
|
+
}, z$1.core.$strip>>;
|
|
1085
|
+
declare const networksPath: string;
|
|
1086
|
+
declare const PHISHING_HASH_BYTES = 8;
|
|
1087
|
+
declare const PHISHING_MAX_PATH_SEGMENTS = 8;
|
|
1088
|
+
/** One list entry as its lookup key, or `undefined` when the entry is not a usable host or path. */
|
|
1089
|
+
declare function phishingKey(entry: string): string | undefined;
|
|
1090
|
+
/** The first 8 bytes of SHA-256 over the UTF-8 key. */
|
|
1091
|
+
declare function phishingHash(key: string): Uint8Array;
|
|
1092
|
+
/** Lookup keys for a page URL, most specific first; empty for anything but http(s). */
|
|
1093
|
+
declare function phishingCandidates(url: string): ReadonlyArray<string>;
|
|
1094
|
+
declare const phishingListRequest: z$1.ZodMiniObject<{
|
|
1095
|
+
since: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
1096
|
+
}, z$1.core.$strip>;
|
|
1097
|
+
declare const phishingListResponse: z$1.ZodMiniDiscriminatedUnion<[z$1.ZodMiniObject<{
|
|
1098
|
+
kind: z$1.ZodMiniLiteral<"current">;
|
|
1099
|
+
version: z$1.ZodMiniNumber<number>;
|
|
1100
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1101
|
+
kind: z$1.ZodMiniLiteral<"diff">;
|
|
1102
|
+
from: z$1.ZodMiniNumber<number>;
|
|
1103
|
+
version: z$1.ZodMiniNumber<number>;
|
|
1104
|
+
deny: z$1.ZodMiniObject<{
|
|
1105
|
+
add: z$1.ZodMiniString<string>;
|
|
1106
|
+
remove: z$1.ZodMiniString<string>;
|
|
1107
|
+
}, z$1.core.$strip>;
|
|
1108
|
+
allow: z$1.ZodMiniObject<{
|
|
1109
|
+
add: z$1.ZodMiniString<string>;
|
|
1110
|
+
remove: z$1.ZodMiniString<string>;
|
|
1111
|
+
}, z$1.core.$strip>;
|
|
1112
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1113
|
+
kind: z$1.ZodMiniLiteral<"snapshot">;
|
|
1114
|
+
version: z$1.ZodMiniNumber<number>;
|
|
1115
|
+
deny: z$1.ZodMiniString<string>;
|
|
1116
|
+
allow: z$1.ZodMiniString<string>;
|
|
1117
|
+
}, z$1.core.$strip>], "kind">;
|
|
1118
|
+
type PhishingListResponse = z$1.infer<typeof phishingListResponse>;
|
|
1119
|
+
declare const phishingList: Endpoint<z$1.ZodMiniObject<{
|
|
1120
|
+
since: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
1121
|
+
}, z$1.core.$strip>, z$1.ZodMiniDiscriminatedUnion<[z$1.ZodMiniObject<{
|
|
1122
|
+
kind: z$1.ZodMiniLiteral<"current">;
|
|
1123
|
+
version: z$1.ZodMiniNumber<number>;
|
|
1124
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1125
|
+
kind: z$1.ZodMiniLiteral<"diff">;
|
|
1126
|
+
from: z$1.ZodMiniNumber<number>;
|
|
1127
|
+
version: z$1.ZodMiniNumber<number>;
|
|
1128
|
+
deny: z$1.ZodMiniObject<{
|
|
1129
|
+
add: z$1.ZodMiniString<string>;
|
|
1130
|
+
remove: z$1.ZodMiniString<string>;
|
|
1131
|
+
}, z$1.core.$strip>;
|
|
1132
|
+
allow: z$1.ZodMiniObject<{
|
|
1133
|
+
add: z$1.ZodMiniString<string>;
|
|
1134
|
+
remove: z$1.ZodMiniString<string>;
|
|
1135
|
+
}, z$1.core.$strip>;
|
|
1136
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1137
|
+
kind: z$1.ZodMiniLiteral<"snapshot">;
|
|
1138
|
+
version: z$1.ZodMiniNumber<number>;
|
|
1139
|
+
deny: z$1.ZodMiniString<string>;
|
|
1140
|
+
allow: z$1.ZodMiniString<string>;
|
|
1141
|
+
}, z$1.core.$strip>], "kind">>;
|
|
1142
|
+
declare const phishingListPath: string;
|
|
1143
|
+
/** Strictly ascending 8-byte hashes, concatenated: a sorted set. */
|
|
1144
|
+
type HashList = Uint8Array;
|
|
1145
|
+
declare const size: (list: HashList) => number;
|
|
1146
|
+
declare const hashCount: typeof size;
|
|
1147
|
+
/**
|
|
1148
|
+
* A base64 hash list, or `undefined` when it is not whole 8-byte hashes in strictly ascending
|
|
1149
|
+
* order.
|
|
1150
|
+
*/
|
|
1151
|
+
declare function decodeHashList(encoded: string): HashList | undefined;
|
|
1152
|
+
/** The sorted set of `hashes`, duplicates removed. */
|
|
1153
|
+
declare function hashList(hashes: Iterable<Uint8Array>): HashList;
|
|
1154
|
+
declare const encodeHashList: (list: HashList) => string;
|
|
1155
|
+
declare function contains(list: HashList, hash: Uint8Array): boolean;
|
|
1156
|
+
declare const union: (a: HashList, b: HashList) => HashList;
|
|
1157
|
+
/** The hashes of `a` that are not in `b`. */
|
|
1158
|
+
declare const difference: (a: HashList, b: HashList) => HashList;
|
|
1159
|
+
/** `(list − remove) ∪ add`. */
|
|
1160
|
+
declare const applyDiff: (list: HashList, add: HashList, remove: HashList) => HashList;
|
|
1161
|
+
/** The native-token sentinel 0x uses for sell and buy tokens. */
|
|
1162
|
+
declare const ZEROX_NATIVE_TOKEN = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
1163
|
+
/** The `swapQuote` request: which exact-in sell on which chain, for which taker, at what slippage. */
|
|
1164
|
+
declare const swapQuoteRequest: z$1.ZodMiniObject<{
|
|
1165
|
+
network: z$1.ZodMiniString<string>;
|
|
1166
|
+
sellToken: z$1.ZodMiniString<string>;
|
|
1167
|
+
buyToken: z$1.ZodMiniString<string>;
|
|
1168
|
+
sellAmount: z$1.ZodMiniString<string>;
|
|
1169
|
+
taker: z$1.ZodMiniString<string>;
|
|
1170
|
+
slippageBps: z$1.ZodMiniNumber<unknown>;
|
|
1171
|
+
}, z$1.core.$strip>;
|
|
1172
|
+
declare const swapQuoteResponse: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1173
|
+
liquidity: z$1.ZodMiniLiteral<true>;
|
|
1174
|
+
provider: z$1.ZodMiniLiteral<"0x">;
|
|
1175
|
+
sellToken: z$1.ZodMiniString<string>;
|
|
1176
|
+
buyToken: z$1.ZodMiniString<string>;
|
|
1177
|
+
sellAmount: z$1.ZodMiniString<string>;
|
|
1178
|
+
buyAmount: z$1.ZodMiniString<string>;
|
|
1179
|
+
minBuyAmount: z$1.ZodMiniString<string>;
|
|
1180
|
+
allowanceTarget: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1181
|
+
transaction: z$1.ZodMiniObject<{
|
|
1182
|
+
to: z$1.ZodMiniString<string>;
|
|
1183
|
+
data: z$1.ZodMiniString<string>;
|
|
1184
|
+
value: z$1.ZodMiniString<string>;
|
|
1185
|
+
gas: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1186
|
+
}, z$1.core.$strip>;
|
|
1187
|
+
fees: z$1.ZodMiniObject<{
|
|
1188
|
+
integrator: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1189
|
+
token: z$1.ZodMiniString<string>;
|
|
1190
|
+
amount: z$1.ZodMiniString<string>;
|
|
1191
|
+
}, z$1.core.$strip>, z$1.ZodMiniNull]>;
|
|
1192
|
+
zeroEx: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1193
|
+
token: z$1.ZodMiniString<string>;
|
|
1194
|
+
amount: z$1.ZodMiniString<string>;
|
|
1195
|
+
}, z$1.core.$strip>, z$1.ZodMiniNull]>;
|
|
1196
|
+
}, z$1.core.$strip>;
|
|
1197
|
+
blockNumber: z$1.ZodMiniString<string>;
|
|
1198
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1199
|
+
liquidity: z$1.ZodMiniLiteral<false>;
|
|
1200
|
+
}, z$1.core.$strip>]>;
|
|
1201
|
+
declare const swapQuote: Endpoint<z$1.ZodMiniObject<{
|
|
1202
|
+
network: z$1.ZodMiniString<string>;
|
|
1203
|
+
sellToken: z$1.ZodMiniString<string>;
|
|
1204
|
+
buyToken: z$1.ZodMiniString<string>;
|
|
1205
|
+
sellAmount: z$1.ZodMiniString<string>;
|
|
1206
|
+
taker: z$1.ZodMiniString<string>;
|
|
1207
|
+
slippageBps: z$1.ZodMiniNumber<unknown>;
|
|
1208
|
+
}, z$1.core.$strip>, z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1209
|
+
liquidity: z$1.ZodMiniLiteral<true>;
|
|
1210
|
+
provider: z$1.ZodMiniLiteral<"0x">;
|
|
1211
|
+
sellToken: z$1.ZodMiniString<string>;
|
|
1212
|
+
buyToken: z$1.ZodMiniString<string>;
|
|
1213
|
+
sellAmount: z$1.ZodMiniString<string>;
|
|
1214
|
+
buyAmount: z$1.ZodMiniString<string>;
|
|
1215
|
+
minBuyAmount: z$1.ZodMiniString<string>;
|
|
1216
|
+
allowanceTarget: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1217
|
+
transaction: z$1.ZodMiniObject<{
|
|
1218
|
+
to: z$1.ZodMiniString<string>;
|
|
1219
|
+
data: z$1.ZodMiniString<string>;
|
|
1220
|
+
value: z$1.ZodMiniString<string>;
|
|
1221
|
+
gas: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1222
|
+
}, z$1.core.$strip>;
|
|
1223
|
+
fees: z$1.ZodMiniObject<{
|
|
1224
|
+
integrator: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1225
|
+
token: z$1.ZodMiniString<string>;
|
|
1226
|
+
amount: z$1.ZodMiniString<string>;
|
|
1227
|
+
}, z$1.core.$strip>, z$1.ZodMiniNull]>;
|
|
1228
|
+
zeroEx: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1229
|
+
token: z$1.ZodMiniString<string>;
|
|
1230
|
+
amount: z$1.ZodMiniString<string>;
|
|
1231
|
+
}, z$1.core.$strip>, z$1.ZodMiniNull]>;
|
|
1232
|
+
}, z$1.core.$strip>;
|
|
1233
|
+
blockNumber: z$1.ZodMiniString<string>;
|
|
1234
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1235
|
+
liquidity: z$1.ZodMiniLiteral<false>;
|
|
1236
|
+
}, z$1.core.$strip>]>>;
|
|
1237
|
+
type SwapQuoteRequest = z$1.infer<typeof swapQuoteRequest>;
|
|
1238
|
+
type SwapQuoteResponse = z$1.infer<typeof swapQuoteResponse>;
|
|
1239
|
+
/** Jupiter is mainnet-only — every other Solana CAIP-2 id is a client error. */
|
|
1240
|
+
declare const SOLANA_MAINNET = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
1241
|
+
/** The `swapQuoteSolana` request: an exact-in mint pair for a taker on Solana mainnet. */
|
|
1242
|
+
declare const swapQuoteSolanaRequest: z$1.ZodMiniObject<{
|
|
1243
|
+
network: z$1.ZodMiniLiteral<"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp">;
|
|
1244
|
+
inputMint: z$1.ZodMiniString<string>;
|
|
1245
|
+
outputMint: z$1.ZodMiniString<string>;
|
|
1246
|
+
amount: z$1.ZodMiniString<string>;
|
|
1247
|
+
taker: z$1.ZodMiniString<string>;
|
|
1248
|
+
slippageBps: z$1.ZodMiniNumber<unknown>;
|
|
1249
|
+
}, z$1.core.$strip>;
|
|
1250
|
+
/** One Solana instruction as the wire carries it — base64 data, plain account flags. */
|
|
1251
|
+
declare const solanaInstruction: z$1.ZodMiniObject<{
|
|
1252
|
+
programId: z$1.ZodMiniString<string>;
|
|
1253
|
+
accounts: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1254
|
+
address: z$1.ZodMiniString<string>;
|
|
1255
|
+
signer: z$1.ZodMiniBoolean<boolean>;
|
|
1256
|
+
writable: z$1.ZodMiniBoolean<boolean>;
|
|
1257
|
+
}, z$1.core.$strip>>;
|
|
1258
|
+
data: z$1.ZodMiniString<string>;
|
|
1259
|
+
}, z$1.core.$strip>;
|
|
1260
|
+
declare const swapQuoteSolanaResponse: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1261
|
+
liquidity: z$1.ZodMiniLiteral<true>;
|
|
1262
|
+
provider: z$1.ZodMiniLiteral<"jupiter">;
|
|
1263
|
+
inputMint: z$1.ZodMiniString<string>;
|
|
1264
|
+
outputMint: z$1.ZodMiniString<string>;
|
|
1265
|
+
inAmount: z$1.ZodMiniString<string>;
|
|
1266
|
+
outAmount: z$1.ZodMiniString<string>;
|
|
1267
|
+
otherAmountThreshold: z$1.ZodMiniString<string>;
|
|
1268
|
+
slippageBps: z$1.ZodMiniNumber<unknown>;
|
|
1269
|
+
setup: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1270
|
+
programId: z$1.ZodMiniString<string>;
|
|
1271
|
+
accounts: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1272
|
+
address: z$1.ZodMiniString<string>;
|
|
1273
|
+
signer: z$1.ZodMiniBoolean<boolean>;
|
|
1274
|
+
writable: z$1.ZodMiniBoolean<boolean>;
|
|
1275
|
+
}, z$1.core.$strip>>;
|
|
1276
|
+
data: z$1.ZodMiniString<string>;
|
|
1277
|
+
}, z$1.core.$strip>>;
|
|
1278
|
+
swap: z$1.ZodMiniObject<{
|
|
1279
|
+
programId: z$1.ZodMiniString<string>;
|
|
1280
|
+
accounts: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1281
|
+
address: z$1.ZodMiniString<string>;
|
|
1282
|
+
signer: z$1.ZodMiniBoolean<boolean>;
|
|
1283
|
+
writable: z$1.ZodMiniBoolean<boolean>;
|
|
1284
|
+
}, z$1.core.$strip>>;
|
|
1285
|
+
data: z$1.ZodMiniString<string>;
|
|
1286
|
+
}, z$1.core.$strip>;
|
|
1287
|
+
cleanup: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1288
|
+
programId: z$1.ZodMiniString<string>;
|
|
1289
|
+
accounts: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1290
|
+
address: z$1.ZodMiniString<string>;
|
|
1291
|
+
signer: z$1.ZodMiniBoolean<boolean>;
|
|
1292
|
+
writable: z$1.ZodMiniBoolean<boolean>;
|
|
1293
|
+
}, z$1.core.$strip>>;
|
|
1294
|
+
data: z$1.ZodMiniString<string>;
|
|
1295
|
+
}, z$1.core.$strip>, z$1.ZodMiniNull]>;
|
|
1296
|
+
lookupTables: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
1297
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1298
|
+
liquidity: z$1.ZodMiniLiteral<false>;
|
|
1299
|
+
}, z$1.core.$strip>]>;
|
|
1300
|
+
declare const swapQuoteSolana: Endpoint<z$1.ZodMiniObject<{
|
|
1301
|
+
network: z$1.ZodMiniLiteral<"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp">;
|
|
1302
|
+
inputMint: z$1.ZodMiniString<string>;
|
|
1303
|
+
outputMint: z$1.ZodMiniString<string>;
|
|
1304
|
+
amount: z$1.ZodMiniString<string>;
|
|
1305
|
+
taker: z$1.ZodMiniString<string>;
|
|
1306
|
+
slippageBps: z$1.ZodMiniNumber<unknown>;
|
|
1307
|
+
}, z$1.core.$strip>, z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1308
|
+
liquidity: z$1.ZodMiniLiteral<true>;
|
|
1309
|
+
provider: z$1.ZodMiniLiteral<"jupiter">;
|
|
1310
|
+
inputMint: z$1.ZodMiniString<string>;
|
|
1311
|
+
outputMint: z$1.ZodMiniString<string>;
|
|
1312
|
+
inAmount: z$1.ZodMiniString<string>;
|
|
1313
|
+
outAmount: z$1.ZodMiniString<string>;
|
|
1314
|
+
otherAmountThreshold: z$1.ZodMiniString<string>;
|
|
1315
|
+
slippageBps: z$1.ZodMiniNumber<unknown>;
|
|
1316
|
+
setup: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1317
|
+
programId: z$1.ZodMiniString<string>;
|
|
1318
|
+
accounts: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1319
|
+
address: z$1.ZodMiniString<string>;
|
|
1320
|
+
signer: z$1.ZodMiniBoolean<boolean>;
|
|
1321
|
+
writable: z$1.ZodMiniBoolean<boolean>;
|
|
1322
|
+
}, z$1.core.$strip>>;
|
|
1323
|
+
data: z$1.ZodMiniString<string>;
|
|
1324
|
+
}, z$1.core.$strip>>;
|
|
1325
|
+
swap: z$1.ZodMiniObject<{
|
|
1326
|
+
programId: z$1.ZodMiniString<string>;
|
|
1327
|
+
accounts: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1328
|
+
address: z$1.ZodMiniString<string>;
|
|
1329
|
+
signer: z$1.ZodMiniBoolean<boolean>;
|
|
1330
|
+
writable: z$1.ZodMiniBoolean<boolean>;
|
|
1331
|
+
}, z$1.core.$strip>>;
|
|
1332
|
+
data: z$1.ZodMiniString<string>;
|
|
1333
|
+
}, z$1.core.$strip>;
|
|
1334
|
+
cleanup: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1335
|
+
programId: z$1.ZodMiniString<string>;
|
|
1336
|
+
accounts: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1337
|
+
address: z$1.ZodMiniString<string>;
|
|
1338
|
+
signer: z$1.ZodMiniBoolean<boolean>;
|
|
1339
|
+
writable: z$1.ZodMiniBoolean<boolean>;
|
|
1340
|
+
}, z$1.core.$strip>>;
|
|
1341
|
+
data: z$1.ZodMiniString<string>;
|
|
1342
|
+
}, z$1.core.$strip>, z$1.ZodMiniNull]>;
|
|
1343
|
+
lookupTables: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
1344
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1345
|
+
liquidity: z$1.ZodMiniLiteral<false>;
|
|
1346
|
+
}, z$1.core.$strip>]>>;
|
|
1347
|
+
type SwapQuoteSolanaRequest = z$1.infer<typeof swapQuoteSolanaRequest>;
|
|
1348
|
+
type SwapQuoteSolanaResponse = z$1.infer<typeof swapQuoteSolanaResponse>;
|
|
1349
|
+
/** The `bridgeQuote` request: an exact-in token transfer from an origin chain to a destination. */
|
|
1350
|
+
declare const bridgeQuoteRequest: z$1.ZodMiniObject<{
|
|
1351
|
+
network: z$1.ZodMiniString<string>;
|
|
1352
|
+
destinationNetwork: z$1.ZodMiniString<string>;
|
|
1353
|
+
inputToken: z$1.ZodMiniString<string>;
|
|
1354
|
+
outputToken: z$1.ZodMiniString<string>;
|
|
1355
|
+
amount: z$1.ZodMiniString<string>;
|
|
1356
|
+
taker: z$1.ZodMiniString<string>;
|
|
1357
|
+
}, z$1.core.$strip>;
|
|
1358
|
+
declare const bridgeQuoteResponse: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1359
|
+
liquidity: z$1.ZodMiniLiteral<true>;
|
|
1360
|
+
provider: z$1.ZodMiniLiteral<"across">;
|
|
1361
|
+
inputToken: z$1.ZodMiniString<string>;
|
|
1362
|
+
outputToken: z$1.ZodMiniString<string>;
|
|
1363
|
+
inputAmount: z$1.ZodMiniString<string>;
|
|
1364
|
+
outputAmount: z$1.ZodMiniString<string>;
|
|
1365
|
+
destinationNetwork: z$1.ZodMiniString<string>;
|
|
1366
|
+
quoteTimestamp: z$1.ZodMiniNumber<unknown>;
|
|
1367
|
+
fillDeadline: z$1.ZodMiniNumber<unknown>;
|
|
1368
|
+
exclusiveRelayer: z$1.ZodMiniString<string>;
|
|
1369
|
+
exclusivityParameter: z$1.ZodMiniNumber<unknown>;
|
|
1370
|
+
spokePool: z$1.ZodMiniString<string>;
|
|
1371
|
+
limits: z$1.ZodMiniObject<{
|
|
1372
|
+
minDeposit: z$1.ZodMiniString<string>;
|
|
1373
|
+
maxDeposit: z$1.ZodMiniString<string>;
|
|
1374
|
+
}, z$1.core.$strip>;
|
|
1375
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1376
|
+
liquidity: z$1.ZodMiniLiteral<false>;
|
|
1377
|
+
}, z$1.core.$strip>]>;
|
|
1378
|
+
declare const bridgeQuote: Endpoint<z$1.ZodMiniObject<{
|
|
1379
|
+
network: z$1.ZodMiniString<string>;
|
|
1380
|
+
destinationNetwork: z$1.ZodMiniString<string>;
|
|
1381
|
+
inputToken: z$1.ZodMiniString<string>;
|
|
1382
|
+
outputToken: z$1.ZodMiniString<string>;
|
|
1383
|
+
amount: z$1.ZodMiniString<string>;
|
|
1384
|
+
taker: z$1.ZodMiniString<string>;
|
|
1385
|
+
}, z$1.core.$strip>, z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1386
|
+
liquidity: z$1.ZodMiniLiteral<true>;
|
|
1387
|
+
provider: z$1.ZodMiniLiteral<"across">;
|
|
1388
|
+
inputToken: z$1.ZodMiniString<string>;
|
|
1389
|
+
outputToken: z$1.ZodMiniString<string>;
|
|
1390
|
+
inputAmount: z$1.ZodMiniString<string>;
|
|
1391
|
+
outputAmount: z$1.ZodMiniString<string>;
|
|
1392
|
+
destinationNetwork: z$1.ZodMiniString<string>;
|
|
1393
|
+
quoteTimestamp: z$1.ZodMiniNumber<unknown>;
|
|
1394
|
+
fillDeadline: z$1.ZodMiniNumber<unknown>;
|
|
1395
|
+
exclusiveRelayer: z$1.ZodMiniString<string>;
|
|
1396
|
+
exclusivityParameter: z$1.ZodMiniNumber<unknown>;
|
|
1397
|
+
spokePool: z$1.ZodMiniString<string>;
|
|
1398
|
+
limits: z$1.ZodMiniObject<{
|
|
1399
|
+
minDeposit: z$1.ZodMiniString<string>;
|
|
1400
|
+
maxDeposit: z$1.ZodMiniString<string>;
|
|
1401
|
+
}, z$1.core.$strip>;
|
|
1402
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1403
|
+
liquidity: z$1.ZodMiniLiteral<false>;
|
|
1404
|
+
}, z$1.core.$strip>]>>;
|
|
1405
|
+
type BridgeQuoteRequest = z$1.infer<typeof bridgeQuoteRequest>;
|
|
1406
|
+
type BridgeQuoteResponse = z$1.infer<typeof bridgeQuoteResponse>;
|
|
1407
|
+
/** Entries the client may ask for per direction and page. */
|
|
1408
|
+
declare const HISTORY_PAGE_MAX = 50;
|
|
1409
|
+
/** Response cap: a drained block can legitimately exceed the requested limit. */
|
|
1410
|
+
declare const HISTORY_ITEMS_MAX = 500;
|
|
1411
|
+
/** Transfers kept per transaction. */
|
|
1412
|
+
declare const HISTORY_TRANSFERS_MAX = 100;
|
|
1413
|
+
/**
|
|
1414
|
+
* The highest block bound the upstream verifiably accepts (int64 max): Alchemy rejects a `toBlock`
|
|
1415
|
+
* of 2^64 or more with a 400, so the contract refuses it before any upstream call.
|
|
1416
|
+
*/
|
|
1417
|
+
declare const HISTORY_CURSOR_MAX: bigint;
|
|
1418
|
+
declare const historyRequest: z$1.ZodMiniObject<{
|
|
1419
|
+
address: z$1.ZodMiniString<string>;
|
|
1420
|
+
cursor: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
1421
|
+
limit: z$1.ZodMiniOptional<z$1.ZodMiniInt>;
|
|
1422
|
+
}, z$1.core.$strict>;
|
|
1423
|
+
declare const historyTransfer: z$1.ZodMiniObject<{
|
|
1424
|
+
kind: z$1.ZodMiniEnum<{
|
|
1425
|
+
erc1155: "erc1155";
|
|
1426
|
+
erc20: "erc20";
|
|
1427
|
+
erc721: "erc721";
|
|
1428
|
+
internal: "internal";
|
|
1429
|
+
native: "native";
|
|
1430
|
+
}>;
|
|
1431
|
+
from: z$1.ZodMiniString<string>;
|
|
1432
|
+
to: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1433
|
+
contract: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1434
|
+
tokenId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1435
|
+
amount: z$1.ZodMiniString<string>;
|
|
1436
|
+
decimals: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniNull]>;
|
|
1437
|
+
symbol: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1438
|
+
logIndex: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniNull]>;
|
|
1439
|
+
}, z$1.core.$strict>;
|
|
1440
|
+
declare const historyItem: z$1.ZodMiniObject<{
|
|
1441
|
+
hash: z$1.ZodMiniString<string>;
|
|
1442
|
+
block: z$1.ZodMiniString<string>;
|
|
1443
|
+
timestamp: z$1.ZodMiniInt;
|
|
1444
|
+
transfers: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1445
|
+
kind: z$1.ZodMiniEnum<{
|
|
1446
|
+
erc1155: "erc1155";
|
|
1447
|
+
erc20: "erc20";
|
|
1448
|
+
erc721: "erc721";
|
|
1449
|
+
internal: "internal";
|
|
1450
|
+
native: "native";
|
|
1451
|
+
}>;
|
|
1452
|
+
from: z$1.ZodMiniString<string>;
|
|
1453
|
+
to: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1454
|
+
contract: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1455
|
+
tokenId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1456
|
+
amount: z$1.ZodMiniString<string>;
|
|
1457
|
+
decimals: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniNull]>;
|
|
1458
|
+
symbol: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1459
|
+
logIndex: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniNull]>;
|
|
1460
|
+
}, z$1.core.$strict>>;
|
|
1461
|
+
}, z$1.core.$strict>;
|
|
1462
|
+
declare const historyResponse: z$1.ZodMiniObject<{
|
|
1463
|
+
items: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1464
|
+
hash: z$1.ZodMiniString<string>;
|
|
1465
|
+
block: z$1.ZodMiniString<string>;
|
|
1466
|
+
timestamp: z$1.ZodMiniInt;
|
|
1467
|
+
transfers: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1468
|
+
kind: z$1.ZodMiniEnum<{
|
|
1469
|
+
erc1155: "erc1155";
|
|
1470
|
+
erc20: "erc20";
|
|
1471
|
+
erc721: "erc721";
|
|
1472
|
+
internal: "internal";
|
|
1473
|
+
native: "native";
|
|
1474
|
+
}>;
|
|
1475
|
+
from: z$1.ZodMiniString<string>;
|
|
1476
|
+
to: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1477
|
+
contract: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1478
|
+
tokenId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1479
|
+
amount: z$1.ZodMiniString<string>;
|
|
1480
|
+
decimals: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniNull]>;
|
|
1481
|
+
symbol: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1482
|
+
logIndex: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniNull]>;
|
|
1483
|
+
}, z$1.core.$strict>>;
|
|
1484
|
+
}, z$1.core.$strict>>;
|
|
1485
|
+
cursor: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1486
|
+
truncated: z$1.ZodMiniBoolean<boolean>;
|
|
1487
|
+
}, z$1.core.$strict>;
|
|
1488
|
+
declare const history: Endpoint<z$1.ZodMiniObject<{
|
|
1489
|
+
address: z$1.ZodMiniString<string>;
|
|
1490
|
+
cursor: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
1491
|
+
limit: z$1.ZodMiniOptional<z$1.ZodMiniInt>;
|
|
1492
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1493
|
+
items: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1494
|
+
hash: z$1.ZodMiniString<string>;
|
|
1495
|
+
block: z$1.ZodMiniString<string>;
|
|
1496
|
+
timestamp: z$1.ZodMiniInt;
|
|
1497
|
+
transfers: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1498
|
+
kind: z$1.ZodMiniEnum<{
|
|
1499
|
+
erc1155: "erc1155";
|
|
1500
|
+
erc20: "erc20";
|
|
1501
|
+
erc721: "erc721";
|
|
1502
|
+
internal: "internal";
|
|
1503
|
+
native: "native";
|
|
1504
|
+
}>;
|
|
1505
|
+
from: z$1.ZodMiniString<string>;
|
|
1506
|
+
to: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1507
|
+
contract: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1508
|
+
tokenId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1509
|
+
amount: z$1.ZodMiniString<string>;
|
|
1510
|
+
decimals: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniNull]>;
|
|
1511
|
+
symbol: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1512
|
+
logIndex: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniNull]>;
|
|
1513
|
+
}, z$1.core.$strict>>;
|
|
1514
|
+
}, z$1.core.$strict>>;
|
|
1515
|
+
cursor: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1516
|
+
truncated: z$1.ZodMiniBoolean<boolean>;
|
|
1517
|
+
}, z$1.core.$strict>>;
|
|
1518
|
+
/** The history path for one network. */
|
|
1519
|
+
declare const historyPath: (caip2: string) => string;
|
|
1520
|
+
type HistoryRequest = z$1.infer<typeof historyRequest>;
|
|
1521
|
+
type HistoryResponse = z$1.infer<typeof historyResponse>;
|
|
1522
|
+
type HistoryItem = z$1.infer<typeof historyItem>;
|
|
1523
|
+
type HistoryTransfer = z$1.infer<typeof historyTransfer>;
|
|
1524
|
+
/** Quote currencies the price route serves — ISO 4217 codes, lowercase as the providers spell them. */
|
|
1525
|
+
declare const FIAT_CURRENCIES: readonly ["usd", "eur", "gbp", "jpy", "cny", "krw", "hkd", "sgd", "cad", "aud", "chf"];
|
|
1526
|
+
declare const fiatCurrency: z$1.ZodMiniEnum<{
|
|
1527
|
+
aud: "aud";
|
|
1528
|
+
cad: "cad";
|
|
1529
|
+
chf: "chf";
|
|
1530
|
+
cny: "cny";
|
|
1531
|
+
eur: "eur";
|
|
1532
|
+
gbp: "gbp";
|
|
1533
|
+
hkd: "hkd";
|
|
1534
|
+
jpy: "jpy";
|
|
1535
|
+
krw: "krw";
|
|
1536
|
+
sgd: "sgd";
|
|
1537
|
+
usd: "usd";
|
|
1538
|
+
}>;
|
|
1539
|
+
type FiatCurrency = z$1.infer<typeof fiatCurrency>;
|
|
1540
|
+
/** The most assets one `prices` request may name. */
|
|
1541
|
+
declare const MAX_PRICE_ASSETS = 100;
|
|
1542
|
+
/**
|
|
1543
|
+
* SLIP-44 coin type of the native asset on every mainnet the price route values (SLIP-0044
|
|
1544
|
+
* registry, satoshilabs/slips slip-0044.md @ 02e7b618; ETH-native L2s reuse 60). Testnets are
|
|
1545
|
+
* absent on purpose: their coins have no price.
|
|
1546
|
+
*/
|
|
1547
|
+
declare const NATIVE_SLIP44: Readonly<Record<string, number>>;
|
|
1548
|
+
/**
|
|
1549
|
+
* A priceable CAIP-19 asset id in its one canonical spelling: a native coin (`<caip2>/slip44:<n>`),
|
|
1550
|
+
* an ERC-20 with its address lowercase (`eip155:<n>/erc20:0x…`), or an SPL mint
|
|
1551
|
+
* (`solana:<ref>/token:<mint>`). A single spelling per asset keeps batches and cache keys free of
|
|
1552
|
+
* duplicates.
|
|
1553
|
+
*/
|
|
1554
|
+
declare const priceAssetId: z$1.ZodMiniString<string>;
|
|
1555
|
+
/** The asset id of `network`'s native coin, or `undefined` for a network without prices. */
|
|
1556
|
+
declare const nativeAssetId: (network: string) => string | undefined;
|
|
1557
|
+
/**
|
|
1558
|
+
* The asset id of a token on `network` (an ERC-20 address or an SPL mint), or `undefined` for a
|
|
1559
|
+
* network without prices or a token address the network does not spell that way.
|
|
1560
|
+
*/
|
|
1561
|
+
declare const tokenAssetId: (network: string, address: string) => string | undefined;
|
|
1562
|
+
/**
|
|
1563
|
+
* Fiat per whole unit of the asset as a canonical decimal string: positive, at most 12 integer
|
|
1564
|
+
* digits and 18 decimals, no trailing zeros — never a binary float on the wire.
|
|
1565
|
+
*/
|
|
1566
|
+
declare const fiatPrice: z$1.ZodMiniString<string>;
|
|
1567
|
+
/** A 24 h change in percent as a canonical decimal string, at most 8 decimals, never below -100. */
|
|
1568
|
+
declare const percentChange: z$1.ZodMiniString<string>;
|
|
1569
|
+
declare const priceQuote: z$1.ZodMiniObject<{
|
|
1570
|
+
asset: z$1.ZodMiniString<string>;
|
|
1571
|
+
price: z$1.ZodMiniString<string>;
|
|
1572
|
+
change24h: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1573
|
+
updatedAt: z$1.ZodMiniNumber<number>;
|
|
1574
|
+
}, z$1.core.$strip>;
|
|
1575
|
+
/** The `prices` request: spot prices of up to {@link MAX_PRICE_ASSETS} distinct assets. */
|
|
1576
|
+
declare const pricesRequest: z$1.ZodMiniObject<{
|
|
1577
|
+
currency: z$1.ZodMiniEnum<{
|
|
1578
|
+
aud: "aud";
|
|
1579
|
+
cad: "cad";
|
|
1580
|
+
chf: "chf";
|
|
1581
|
+
cny: "cny";
|
|
1582
|
+
eur: "eur";
|
|
1583
|
+
gbp: "gbp";
|
|
1584
|
+
hkd: "hkd";
|
|
1585
|
+
jpy: "jpy";
|
|
1586
|
+
krw: "krw";
|
|
1587
|
+
sgd: "sgd";
|
|
1588
|
+
usd: "usd";
|
|
1589
|
+
}>;
|
|
1590
|
+
assets: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
1591
|
+
}, z$1.core.$strip>;
|
|
1592
|
+
/**
|
|
1593
|
+
* Every requested asset is in exactly one of `prices` (priced), `missing` (the providers had no
|
|
1594
|
+
* price now — a later request may find one) or `unsupported` (the gateway has no price coverage for
|
|
1595
|
+
* it at all — do not retry).
|
|
1596
|
+
*/
|
|
1597
|
+
declare const pricesResponse: z$1.ZodMiniObject<{
|
|
1598
|
+
currency: z$1.ZodMiniEnum<{
|
|
1599
|
+
aud: "aud";
|
|
1600
|
+
cad: "cad";
|
|
1601
|
+
chf: "chf";
|
|
1602
|
+
cny: "cny";
|
|
1603
|
+
eur: "eur";
|
|
1604
|
+
gbp: "gbp";
|
|
1605
|
+
hkd: "hkd";
|
|
1606
|
+
jpy: "jpy";
|
|
1607
|
+
krw: "krw";
|
|
1608
|
+
sgd: "sgd";
|
|
1609
|
+
usd: "usd";
|
|
1610
|
+
}>;
|
|
1611
|
+
prices: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1612
|
+
asset: z$1.ZodMiniString<string>;
|
|
1613
|
+
price: z$1.ZodMiniString<string>;
|
|
1614
|
+
change24h: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1615
|
+
updatedAt: z$1.ZodMiniNumber<number>;
|
|
1616
|
+
}, z$1.core.$strip>>;
|
|
1617
|
+
missing: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
1618
|
+
unsupported: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
1619
|
+
}, z$1.core.$strip>;
|
|
1620
|
+
/**
|
|
1621
|
+
* The gateway scopes a price request is partitioned by: one per chain family, each sent under that
|
|
1622
|
+
* family's own client id.
|
|
1623
|
+
*/
|
|
1624
|
+
declare const PRICE_FAMILIES: readonly ["evm", "solana", "bitcoin", "tron"];
|
|
1625
|
+
type PriceFamily = (typeof PRICE_FAMILIES)[number];
|
|
1626
|
+
declare const priceFamily: z$1.ZodMiniEnum<{
|
|
1627
|
+
bitcoin: "bitcoin";
|
|
1628
|
+
evm: "evm";
|
|
1629
|
+
solana: "solana";
|
|
1630
|
+
tron: "tron";
|
|
1631
|
+
}>;
|
|
1632
|
+
/**
|
|
1633
|
+
* The family whose scope prices `asset`, by its CAIP-2 namespace (eip155, solana, bip122, tron);
|
|
1634
|
+
* `undefined` for any other.
|
|
1635
|
+
*/
|
|
1636
|
+
declare const priceAssetFamily: (asset: string) => PriceFamily | undefined;
|
|
1637
|
+
/**
|
|
1638
|
+
* `POST /v1/prices/:family` — no address is sent, but the asset set describes a portfolio, so it
|
|
1639
|
+
* travels in the body and per family scope: a request never names another family's assets, so the
|
|
1640
|
+
* portfolio links no scopes beyond what each scope's own traffic already shows.
|
|
1641
|
+
*/
|
|
1642
|
+
declare const prices: Endpoint<z$1.ZodMiniObject<{
|
|
1643
|
+
currency: z$1.ZodMiniEnum<{
|
|
1644
|
+
aud: "aud";
|
|
1645
|
+
cad: "cad";
|
|
1646
|
+
chf: "chf";
|
|
1647
|
+
cny: "cny";
|
|
1648
|
+
eur: "eur";
|
|
1649
|
+
gbp: "gbp";
|
|
1650
|
+
hkd: "hkd";
|
|
1651
|
+
jpy: "jpy";
|
|
1652
|
+
krw: "krw";
|
|
1653
|
+
sgd: "sgd";
|
|
1654
|
+
usd: "usd";
|
|
1655
|
+
}>;
|
|
1656
|
+
assets: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
1657
|
+
}, z$1.core.$strip>, z$1.ZodMiniObject<{
|
|
1658
|
+
currency: z$1.ZodMiniEnum<{
|
|
1659
|
+
aud: "aud";
|
|
1660
|
+
cad: "cad";
|
|
1661
|
+
chf: "chf";
|
|
1662
|
+
cny: "cny";
|
|
1663
|
+
eur: "eur";
|
|
1664
|
+
gbp: "gbp";
|
|
1665
|
+
hkd: "hkd";
|
|
1666
|
+
jpy: "jpy";
|
|
1667
|
+
krw: "krw";
|
|
1668
|
+
sgd: "sgd";
|
|
1669
|
+
usd: "usd";
|
|
1670
|
+
}>;
|
|
1671
|
+
prices: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1672
|
+
asset: z$1.ZodMiniString<string>;
|
|
1673
|
+
price: z$1.ZodMiniString<string>;
|
|
1674
|
+
change24h: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1675
|
+
updatedAt: z$1.ZodMiniNumber<number>;
|
|
1676
|
+
}, z$1.core.$strip>>;
|
|
1677
|
+
missing: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
1678
|
+
unsupported: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
1679
|
+
}, z$1.core.$strip>>;
|
|
1680
|
+
/** The prices path for one family scope. */
|
|
1681
|
+
declare const pricesPath: (family: PriceFamily) => string;
|
|
1682
|
+
type PriceQuote = z$1.infer<typeof priceQuote>;
|
|
1683
|
+
type PricesRequest = z$1.infer<typeof pricesRequest>;
|
|
1684
|
+
type PricesResponse = z$1.infer<typeof pricesResponse>;
|
|
1685
|
+
/** Per-network caps the route enforces — bigger lists are never published. */
|
|
1686
|
+
declare const TOKEN_LIST_MAX_ENTRIES: {
|
|
1687
|
+
readonly evm: 1500;
|
|
1688
|
+
readonly solana: 5000;
|
|
1689
|
+
};
|
|
1690
|
+
declare const TOKEN_LIST_SOURCES: readonly ["uniswap", "coingecko", "jupiter"];
|
|
1691
|
+
type TokenListSource = (typeof TOKEN_LIST_SOURCES)[number];
|
|
1692
|
+
declare const tokenSymbol: z$1.ZodMiniString<string>;
|
|
1693
|
+
declare const tokenName: z$1.ZodMiniString<string>;
|
|
1694
|
+
declare const tokenListEntry: z$1.ZodMiniObject<{
|
|
1695
|
+
address: z$1.ZodMiniString<string>;
|
|
1696
|
+
symbol: z$1.ZodMiniString<string>;
|
|
1697
|
+
name: z$1.ZodMiniString<string>;
|
|
1698
|
+
decimals: z$1.ZodMiniInt;
|
|
1699
|
+
}, z$1.core.$strip>;
|
|
1700
|
+
declare const tokenListResponse: z$1.ZodMiniObject<{
|
|
1701
|
+
network: z$1.ZodMiniString<string>;
|
|
1702
|
+
version: z$1.ZodMiniInt;
|
|
1703
|
+
sources: z$1.ZodMiniArray<z$1.ZodMiniEnum<{
|
|
1704
|
+
coingecko: "coingecko";
|
|
1705
|
+
jupiter: "jupiter";
|
|
1706
|
+
uniswap: "uniswap";
|
|
1707
|
+
}>>;
|
|
1708
|
+
tokens: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1709
|
+
address: z$1.ZodMiniString<string>;
|
|
1710
|
+
symbol: z$1.ZodMiniString<string>;
|
|
1711
|
+
name: z$1.ZodMiniString<string>;
|
|
1712
|
+
decimals: z$1.ZodMiniInt;
|
|
1713
|
+
}, z$1.core.$strip>>;
|
|
1714
|
+
}, z$1.core.$strip>;
|
|
1715
|
+
declare const tokenList: Endpoint<z$1.ZodMiniUndefined, z$1.ZodMiniObject<{
|
|
1716
|
+
network: z$1.ZodMiniString<string>;
|
|
1717
|
+
version: z$1.ZodMiniInt;
|
|
1718
|
+
sources: z$1.ZodMiniArray<z$1.ZodMiniEnum<{
|
|
1719
|
+
coingecko: "coingecko";
|
|
1720
|
+
jupiter: "jupiter";
|
|
1721
|
+
uniswap: "uniswap";
|
|
1722
|
+
}>>;
|
|
1723
|
+
tokens: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1724
|
+
address: z$1.ZodMiniString<string>;
|
|
1725
|
+
symbol: z$1.ZodMiniString<string>;
|
|
1726
|
+
name: z$1.ZodMiniString<string>;
|
|
1727
|
+
decimals: z$1.ZodMiniInt;
|
|
1728
|
+
}, z$1.core.$strip>>;
|
|
1729
|
+
}, z$1.core.$strip>>;
|
|
1730
|
+
/** The token list path for one network. */
|
|
1731
|
+
declare const tokenListPath: (caip2: string) => string;
|
|
1732
|
+
type TokenListResponse = z$1.infer<typeof tokenListResponse>;
|
|
1733
|
+
type TokenListEntry = z$1.infer<typeof tokenListEntry>;
|
|
1734
|
+
/** The candidates one response may carry. */
|
|
1735
|
+
declare const APPROVAL_CANDIDATES_MAX = 500;
|
|
1736
|
+
declare const approvalsRequest: z$1.ZodMiniObject<{
|
|
1737
|
+
address: z$1.ZodMiniString<string>;
|
|
1738
|
+
}, z$1.core.$strict>;
|
|
1739
|
+
/**
|
|
1740
|
+
* One approval-shaped event the discovery scan surfaced — keys only: which token, whose approval,
|
|
1741
|
+
* at which block. Never the current state (an amount, a live flag): the engine confirms every
|
|
1742
|
+
* candidate on chain itself.
|
|
1743
|
+
*/
|
|
1744
|
+
declare const approvalCandidate: z$1.ZodMiniDiscriminatedUnion<[z$1.ZodMiniObject<{
|
|
1745
|
+
kind: z$1.ZodMiniLiteral<"erc20">;
|
|
1746
|
+
token: z$1.ZodMiniString<string>;
|
|
1747
|
+
spender: z$1.ZodMiniString<string>;
|
|
1748
|
+
block: z$1.ZodMiniString<string>;
|
|
1749
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1750
|
+
kind: z$1.ZodMiniLiteral<"erc721">;
|
|
1751
|
+
token: z$1.ZodMiniString<string>;
|
|
1752
|
+
spender: z$1.ZodMiniString<string>;
|
|
1753
|
+
tokenId: z$1.ZodMiniString<string>;
|
|
1754
|
+
block: z$1.ZodMiniString<string>;
|
|
1755
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1756
|
+
kind: z$1.ZodMiniLiteral<"operator">;
|
|
1757
|
+
token: z$1.ZodMiniString<string>;
|
|
1758
|
+
operator: z$1.ZodMiniString<string>;
|
|
1759
|
+
block: z$1.ZodMiniString<string>;
|
|
1760
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1761
|
+
kind: z$1.ZodMiniLiteral<"permit2">;
|
|
1762
|
+
token: z$1.ZodMiniString<string>;
|
|
1763
|
+
spender: z$1.ZodMiniString<string>;
|
|
1764
|
+
block: z$1.ZodMiniString<string>;
|
|
1765
|
+
}, z$1.core.$strict>], "kind">;
|
|
1766
|
+
declare const approvalsResponse: z$1.ZodMiniObject<{
|
|
1767
|
+
toBlock: z$1.ZodMiniString<string>;
|
|
1768
|
+
candidates: z$1.ZodMiniArray<z$1.ZodMiniDiscriminatedUnion<[z$1.ZodMiniObject<{
|
|
1769
|
+
kind: z$1.ZodMiniLiteral<"erc20">;
|
|
1770
|
+
token: z$1.ZodMiniString<string>;
|
|
1771
|
+
spender: z$1.ZodMiniString<string>;
|
|
1772
|
+
block: z$1.ZodMiniString<string>;
|
|
1773
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1774
|
+
kind: z$1.ZodMiniLiteral<"erc721">;
|
|
1775
|
+
token: z$1.ZodMiniString<string>;
|
|
1776
|
+
spender: z$1.ZodMiniString<string>;
|
|
1777
|
+
tokenId: z$1.ZodMiniString<string>;
|
|
1778
|
+
block: z$1.ZodMiniString<string>;
|
|
1779
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1780
|
+
kind: z$1.ZodMiniLiteral<"operator">;
|
|
1781
|
+
token: z$1.ZodMiniString<string>;
|
|
1782
|
+
operator: z$1.ZodMiniString<string>;
|
|
1783
|
+
block: z$1.ZodMiniString<string>;
|
|
1784
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1785
|
+
kind: z$1.ZodMiniLiteral<"permit2">;
|
|
1786
|
+
token: z$1.ZodMiniString<string>;
|
|
1787
|
+
spender: z$1.ZodMiniString<string>;
|
|
1788
|
+
block: z$1.ZodMiniString<string>;
|
|
1789
|
+
}, z$1.core.$strict>], "kind">>;
|
|
1790
|
+
truncated: z$1.ZodMiniBoolean<boolean>;
|
|
1791
|
+
}, z$1.core.$strict>;
|
|
1792
|
+
declare const approvals: Endpoint<z$1.ZodMiniObject<{
|
|
1793
|
+
address: z$1.ZodMiniString<string>;
|
|
1794
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1795
|
+
toBlock: z$1.ZodMiniString<string>;
|
|
1796
|
+
candidates: z$1.ZodMiniArray<z$1.ZodMiniDiscriminatedUnion<[z$1.ZodMiniObject<{
|
|
1797
|
+
kind: z$1.ZodMiniLiteral<"erc20">;
|
|
1798
|
+
token: z$1.ZodMiniString<string>;
|
|
1799
|
+
spender: z$1.ZodMiniString<string>;
|
|
1800
|
+
block: z$1.ZodMiniString<string>;
|
|
1801
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1802
|
+
kind: z$1.ZodMiniLiteral<"erc721">;
|
|
1803
|
+
token: z$1.ZodMiniString<string>;
|
|
1804
|
+
spender: z$1.ZodMiniString<string>;
|
|
1805
|
+
tokenId: z$1.ZodMiniString<string>;
|
|
1806
|
+
block: z$1.ZodMiniString<string>;
|
|
1807
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1808
|
+
kind: z$1.ZodMiniLiteral<"operator">;
|
|
1809
|
+
token: z$1.ZodMiniString<string>;
|
|
1810
|
+
operator: z$1.ZodMiniString<string>;
|
|
1811
|
+
block: z$1.ZodMiniString<string>;
|
|
1812
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
1813
|
+
kind: z$1.ZodMiniLiteral<"permit2">;
|
|
1814
|
+
token: z$1.ZodMiniString<string>;
|
|
1815
|
+
spender: z$1.ZodMiniString<string>;
|
|
1816
|
+
block: z$1.ZodMiniString<string>;
|
|
1817
|
+
}, z$1.core.$strict>], "kind">>;
|
|
1818
|
+
truncated: z$1.ZodMiniBoolean<boolean>;
|
|
1819
|
+
}, z$1.core.$strict>>;
|
|
1820
|
+
/** The approvals path for one network. */
|
|
1821
|
+
declare const approvalsPath: (caip2: string) => string;
|
|
1822
|
+
type ApprovalsRequest = z$1.infer<typeof approvalsRequest>;
|
|
1823
|
+
type ApprovalsResponse = z$1.infer<typeof approvalsResponse>;
|
|
1824
|
+
type ApprovalCandidate = z$1.infer<typeof approvalCandidate>;
|
|
1825
|
+
/** One inventory page is at most this many items. */
|
|
1826
|
+
declare const NFT_PAGE_MAX = 100;
|
|
1827
|
+
/** Detail attributes kept per item. */
|
|
1828
|
+
declare const NFT_ATTRIBUTES_MAX = 50;
|
|
1829
|
+
/** A remote (non-`data:`) media or link URL is at most this many characters. */
|
|
1830
|
+
declare const NFT_URL_MAX = 2048;
|
|
1831
|
+
/** A `data:` media URI may run to this many characters. */
|
|
1832
|
+
declare const NFT_DATA_URI_MAX = 65536;
|
|
1833
|
+
/** Display text an item or collection name may carry. */
|
|
1834
|
+
declare const NFT_NAME_MAX = 200;
|
|
1835
|
+
/** A description may run to this many characters. */
|
|
1836
|
+
declare const NFT_DESCRIPTION_MAX = 4000;
|
|
1837
|
+
/** One attribute key or value. */
|
|
1838
|
+
declare const NFT_ATTRIBUTE_TEXT_MAX = 128;
|
|
1839
|
+
declare const NFT_STANDARDS: readonly ["erc721", "erc1155", "metaplex", "metaplex-programmable", "metaplex-core", "metaplex-compressed"];
|
|
1840
|
+
type NftStandard = (typeof NFT_STANDARDS)[number];
|
|
1841
|
+
/** An EVM token id or balance unit: decimal, no leading zeros, inside uint256. */
|
|
1842
|
+
declare const nftTokenId: z$1.ZodMiniString<string>;
|
|
1843
|
+
/** A held amount: decimal, no leading zeros, at least 1, inside uint256. */
|
|
1844
|
+
declare const nftBalance: z$1.ZodMiniString<string>;
|
|
1845
|
+
/**
|
|
1846
|
+
* Where the host may look for media: a remote URL capped at {@link NFT_URL_MAX} characters or a
|
|
1847
|
+
* `data:` URI capped at {@link NFT_DATA_URI_MAX}. The scheme itself is the client's problem —
|
|
1848
|
+
* nothing here is fetched.
|
|
1849
|
+
*/
|
|
1850
|
+
declare const nftMediaRef: z$1.ZodMiniObject<{
|
|
1851
|
+
url: z$1.ZodMiniString<string>;
|
|
1852
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1853
|
+
}, z$1.core.$strict>;
|
|
1854
|
+
declare const nftCollectionRef: z$1.ZodMiniObject<{
|
|
1855
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1856
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1857
|
+
verified: z$1.ZodMiniBoolean<boolean>;
|
|
1858
|
+
}, z$1.core.$strict>;
|
|
1859
|
+
declare const nftItemSchema: z$1.ZodMiniObject<{
|
|
1860
|
+
contract: z$1.ZodMiniString<string>;
|
|
1861
|
+
tokenId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1862
|
+
standard: z$1.ZodMiniEnum<{
|
|
1863
|
+
erc1155: "erc1155";
|
|
1864
|
+
erc721: "erc721";
|
|
1865
|
+
metaplex: "metaplex";
|
|
1866
|
+
"metaplex-compressed": "metaplex-compressed";
|
|
1867
|
+
"metaplex-core": "metaplex-core";
|
|
1868
|
+
"metaplex-programmable": "metaplex-programmable";
|
|
1869
|
+
}>;
|
|
1870
|
+
balance: z$1.ZodMiniString<string>;
|
|
1871
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1872
|
+
image: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1873
|
+
url: z$1.ZodMiniString<string>;
|
|
1874
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1875
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
1876
|
+
animation: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1877
|
+
url: z$1.ZodMiniString<string>;
|
|
1878
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1879
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
1880
|
+
collection: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1881
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1882
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1883
|
+
verified: z$1.ZodMiniBoolean<boolean>;
|
|
1884
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
1885
|
+
spam: z$1.ZodMiniBoolean<boolean>;
|
|
1886
|
+
}, z$1.core.$strict>;
|
|
1887
|
+
/** The opaque page cursor: ASCII-safe, bounded — never echoed back unvalidated. */
|
|
1888
|
+
declare const nftCursor: z$1.ZodMiniString<string>;
|
|
1889
|
+
declare const nftItemsRequest: z$1.ZodMiniObject<{
|
|
1890
|
+
owner: z$1.ZodMiniString<string>;
|
|
1891
|
+
cursor: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
1892
|
+
}, z$1.core.$strict>;
|
|
1893
|
+
declare const nftItemRequest: z$1.ZodMiniObject<{
|
|
1894
|
+
contract: z$1.ZodMiniString<string>;
|
|
1895
|
+
tokenId: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
1896
|
+
}, z$1.core.$strict>;
|
|
1897
|
+
declare const nftCollectionRequest: z$1.ZodMiniObject<{
|
|
1898
|
+
collection: z$1.ZodMiniString<string>;
|
|
1899
|
+
}, z$1.core.$strict>;
|
|
1900
|
+
declare const nftFloorRequest: z$1.ZodMiniObject<{
|
|
1901
|
+
collection: z$1.ZodMiniString<string>;
|
|
1902
|
+
}, z$1.core.$strict>;
|
|
1903
|
+
declare const nftPage: z$1.ZodMiniObject<{
|
|
1904
|
+
items: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1905
|
+
contract: z$1.ZodMiniString<string>;
|
|
1906
|
+
tokenId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1907
|
+
standard: z$1.ZodMiniEnum<{
|
|
1908
|
+
erc1155: "erc1155";
|
|
1909
|
+
erc721: "erc721";
|
|
1910
|
+
metaplex: "metaplex";
|
|
1911
|
+
"metaplex-compressed": "metaplex-compressed";
|
|
1912
|
+
"metaplex-core": "metaplex-core";
|
|
1913
|
+
"metaplex-programmable": "metaplex-programmable";
|
|
1914
|
+
}>;
|
|
1915
|
+
balance: z$1.ZodMiniString<string>;
|
|
1916
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1917
|
+
image: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1918
|
+
url: z$1.ZodMiniString<string>;
|
|
1919
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1920
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
1921
|
+
animation: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1922
|
+
url: z$1.ZodMiniString<string>;
|
|
1923
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1924
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
1925
|
+
collection: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1926
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1927
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1928
|
+
verified: z$1.ZodMiniBoolean<boolean>;
|
|
1929
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
1930
|
+
spam: z$1.ZodMiniBoolean<boolean>;
|
|
1931
|
+
}, z$1.core.$strict>>;
|
|
1932
|
+
cursor: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1933
|
+
}, z$1.core.$strict>;
|
|
1934
|
+
declare const nftAttribute: z$1.ZodMiniObject<{
|
|
1935
|
+
trait: z$1.ZodMiniString<string>;
|
|
1936
|
+
value: z$1.ZodMiniString<string>;
|
|
1937
|
+
}, z$1.core.$strict>;
|
|
1938
|
+
declare const nftDetail: z$1.ZodMiniObject<{
|
|
1939
|
+
item: z$1.ZodMiniObject<{
|
|
1940
|
+
contract: z$1.ZodMiniString<string>;
|
|
1941
|
+
tokenId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1942
|
+
standard: z$1.ZodMiniEnum<{
|
|
1943
|
+
erc1155: "erc1155";
|
|
1944
|
+
erc721: "erc721";
|
|
1945
|
+
metaplex: "metaplex";
|
|
1946
|
+
"metaplex-compressed": "metaplex-compressed";
|
|
1947
|
+
"metaplex-core": "metaplex-core";
|
|
1948
|
+
"metaplex-programmable": "metaplex-programmable";
|
|
1949
|
+
}>;
|
|
1950
|
+
balance: z$1.ZodMiniString<string>;
|
|
1951
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1952
|
+
image: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1953
|
+
url: z$1.ZodMiniString<string>;
|
|
1954
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1955
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
1956
|
+
animation: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1957
|
+
url: z$1.ZodMiniString<string>;
|
|
1958
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1959
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
1960
|
+
collection: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1961
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1962
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1963
|
+
verified: z$1.ZodMiniBoolean<boolean>;
|
|
1964
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
1965
|
+
spam: z$1.ZodMiniBoolean<boolean>;
|
|
1966
|
+
}, z$1.core.$strict>;
|
|
1967
|
+
description: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1968
|
+
attributes: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1969
|
+
trait: z$1.ZodMiniString<string>;
|
|
1970
|
+
value: z$1.ZodMiniString<string>;
|
|
1971
|
+
}, z$1.core.$strict>>;
|
|
1972
|
+
externalUrl: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1973
|
+
}, z$1.core.$strict>;
|
|
1974
|
+
declare const nftCollectionResponse: z$1.ZodMiniObject<{
|
|
1975
|
+
id: z$1.ZodMiniString<string>;
|
|
1976
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1977
|
+
symbol: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1978
|
+
description: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1979
|
+
image: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
1980
|
+
url: z$1.ZodMiniString<string>;
|
|
1981
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1982
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
1983
|
+
totalSupply: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
1984
|
+
standard: z$1.ZodMiniUnion<readonly [z$1.ZodMiniEnum<{
|
|
1985
|
+
erc1155: "erc1155";
|
|
1986
|
+
erc721: "erc721";
|
|
1987
|
+
metaplex: "metaplex";
|
|
1988
|
+
"metaplex-compressed": "metaplex-compressed";
|
|
1989
|
+
"metaplex-core": "metaplex-core";
|
|
1990
|
+
"metaplex-programmable": "metaplex-programmable";
|
|
1991
|
+
}>, z$1.ZodMiniNull]>;
|
|
1992
|
+
spam: z$1.ZodMiniBoolean<boolean>;
|
|
1993
|
+
verified: z$1.ZodMiniBoolean<boolean>;
|
|
1994
|
+
}, z$1.core.$strict>;
|
|
1995
|
+
declare const nftFloorResponse: z$1.ZodMiniObject<{
|
|
1996
|
+
floors: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
1997
|
+
marketplace: z$1.ZodMiniEnum<{
|
|
1998
|
+
looksrare: "looksrare";
|
|
1999
|
+
opensea: "opensea";
|
|
2000
|
+
}>;
|
|
2001
|
+
amount: z$1.ZodMiniString<string>;
|
|
2002
|
+
currency: z$1.ZodMiniString<string>;
|
|
2003
|
+
retrievedAt: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniNull]>;
|
|
2004
|
+
}, z$1.core.$strict>>;
|
|
2005
|
+
}, z$1.core.$strict>;
|
|
2006
|
+
declare const nftItems: Endpoint<z$1.ZodMiniObject<{
|
|
2007
|
+
owner: z$1.ZodMiniString<string>;
|
|
2008
|
+
cursor: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
2009
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
2010
|
+
items: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
2011
|
+
contract: z$1.ZodMiniString<string>;
|
|
2012
|
+
tokenId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2013
|
+
standard: z$1.ZodMiniEnum<{
|
|
2014
|
+
erc1155: "erc1155";
|
|
2015
|
+
erc721: "erc721";
|
|
2016
|
+
metaplex: "metaplex";
|
|
2017
|
+
"metaplex-compressed": "metaplex-compressed";
|
|
2018
|
+
"metaplex-core": "metaplex-core";
|
|
2019
|
+
"metaplex-programmable": "metaplex-programmable";
|
|
2020
|
+
}>;
|
|
2021
|
+
balance: z$1.ZodMiniString<string>;
|
|
2022
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2023
|
+
image: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
2024
|
+
url: z$1.ZodMiniString<string>;
|
|
2025
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2026
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
2027
|
+
animation: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
2028
|
+
url: z$1.ZodMiniString<string>;
|
|
2029
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2030
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
2031
|
+
collection: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
2032
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2033
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2034
|
+
verified: z$1.ZodMiniBoolean<boolean>;
|
|
2035
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
2036
|
+
spam: z$1.ZodMiniBoolean<boolean>;
|
|
2037
|
+
}, z$1.core.$strict>>;
|
|
2038
|
+
cursor: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2039
|
+
}, z$1.core.$strict>>;
|
|
2040
|
+
declare const nftItem: Endpoint<z$1.ZodMiniObject<{
|
|
2041
|
+
contract: z$1.ZodMiniString<string>;
|
|
2042
|
+
tokenId: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
|
|
2043
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
2044
|
+
item: z$1.ZodMiniObject<{
|
|
2045
|
+
contract: z$1.ZodMiniString<string>;
|
|
2046
|
+
tokenId: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2047
|
+
standard: z$1.ZodMiniEnum<{
|
|
2048
|
+
erc1155: "erc1155";
|
|
2049
|
+
erc721: "erc721";
|
|
2050
|
+
metaplex: "metaplex";
|
|
2051
|
+
"metaplex-compressed": "metaplex-compressed";
|
|
2052
|
+
"metaplex-core": "metaplex-core";
|
|
2053
|
+
"metaplex-programmable": "metaplex-programmable";
|
|
2054
|
+
}>;
|
|
2055
|
+
balance: z$1.ZodMiniString<string>;
|
|
2056
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2057
|
+
image: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
2058
|
+
url: z$1.ZodMiniString<string>;
|
|
2059
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2060
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
2061
|
+
animation: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
2062
|
+
url: z$1.ZodMiniString<string>;
|
|
2063
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2064
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
2065
|
+
collection: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
2066
|
+
id: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2067
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2068
|
+
verified: z$1.ZodMiniBoolean<boolean>;
|
|
2069
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
2070
|
+
spam: z$1.ZodMiniBoolean<boolean>;
|
|
2071
|
+
}, z$1.core.$strict>;
|
|
2072
|
+
description: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2073
|
+
attributes: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
2074
|
+
trait: z$1.ZodMiniString<string>;
|
|
2075
|
+
value: z$1.ZodMiniString<string>;
|
|
2076
|
+
}, z$1.core.$strict>>;
|
|
2077
|
+
externalUrl: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2078
|
+
}, z$1.core.$strict>>;
|
|
2079
|
+
declare const nftCollection: Endpoint<z$1.ZodMiniObject<{
|
|
2080
|
+
collection: z$1.ZodMiniString<string>;
|
|
2081
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
2082
|
+
id: z$1.ZodMiniString<string>;
|
|
2083
|
+
name: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2084
|
+
symbol: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2085
|
+
description: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2086
|
+
image: z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
|
|
2087
|
+
url: z$1.ZodMiniString<string>;
|
|
2088
|
+
mime: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2089
|
+
}, z$1.core.$strict>, z$1.ZodMiniNull]>;
|
|
2090
|
+
totalSupply: z$1.ZodMiniUnion<readonly [z$1.ZodMiniString<string>, z$1.ZodMiniNull]>;
|
|
2091
|
+
standard: z$1.ZodMiniUnion<readonly [z$1.ZodMiniEnum<{
|
|
2092
|
+
erc1155: "erc1155";
|
|
2093
|
+
erc721: "erc721";
|
|
2094
|
+
metaplex: "metaplex";
|
|
2095
|
+
"metaplex-compressed": "metaplex-compressed";
|
|
2096
|
+
"metaplex-core": "metaplex-core";
|
|
2097
|
+
"metaplex-programmable": "metaplex-programmable";
|
|
2098
|
+
}>, z$1.ZodMiniNull]>;
|
|
2099
|
+
spam: z$1.ZodMiniBoolean<boolean>;
|
|
2100
|
+
verified: z$1.ZodMiniBoolean<boolean>;
|
|
2101
|
+
}, z$1.core.$strict>>;
|
|
2102
|
+
declare const nftFloor: Endpoint<z$1.ZodMiniObject<{
|
|
2103
|
+
collection: z$1.ZodMiniString<string>;
|
|
2104
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
2105
|
+
floors: z$1.ZodMiniArray<z$1.ZodMiniObject<{
|
|
2106
|
+
marketplace: z$1.ZodMiniEnum<{
|
|
2107
|
+
looksrare: "looksrare";
|
|
2108
|
+
opensea: "opensea";
|
|
2109
|
+
}>;
|
|
2110
|
+
amount: z$1.ZodMiniString<string>;
|
|
2111
|
+
currency: z$1.ZodMiniString<string>;
|
|
2112
|
+
retrievedAt: z$1.ZodMiniUnion<readonly [z$1.ZodMiniInt, z$1.ZodMiniNull]>;
|
|
2113
|
+
}, z$1.core.$strict>>;
|
|
2114
|
+
}, z$1.core.$strict>>;
|
|
2115
|
+
/** The items path for one network. */
|
|
2116
|
+
declare const nftItemsPath: (caip2: string) => string;
|
|
2117
|
+
/** The item path for one network. */
|
|
2118
|
+
declare const nftItemPath: (caip2: string) => string;
|
|
2119
|
+
/** The collection path for one network. */
|
|
2120
|
+
declare const nftCollectionPath: (caip2: string) => string;
|
|
2121
|
+
/** The floor path for one network. */
|
|
2122
|
+
declare const nftFloorPath: (caip2: string) => string;
|
|
2123
|
+
/**
|
|
2124
|
+
* Whether `address` has the shape `network` spells on-chain — a contract, an asset id, an owner or
|
|
2125
|
+
* a collection id. EVM ids are lowercase hex only; Solana ids are base58. Other namespaces have no
|
|
2126
|
+
* NFT inventory at all.
|
|
2127
|
+
*/
|
|
2128
|
+
declare function nftAddressFits(network: string, address: string): boolean;
|
|
2129
|
+
/**
|
|
2130
|
+
* Whether an item can belong to `network`: the contract fits, the token id and standard match the
|
|
2131
|
+
* family's rules (EVM ids are mandatory, Solana's asset id is the contract), an erc721 holds
|
|
2132
|
+
* exactly one, and a named collection points at an address of the same family.
|
|
2133
|
+
*/
|
|
2134
|
+
declare function nftItemFits(network: string, item: NftItem): boolean;
|
|
2135
|
+
/** Every item fits the network and no `(contract, tokenId)` pair repeats inside the page. */
|
|
2136
|
+
declare function nftPageFits(network: string, page: NftPage): boolean;
|
|
2137
|
+
/** The collection id fits the network and its standard is the family's (or unreported). */
|
|
2138
|
+
declare function nftCollectionFits(network: string, collection: NftCollection): boolean;
|
|
2139
|
+
type NftItem = z$1.infer<typeof nftItemSchema>;
|
|
2140
|
+
type NftMediaRef = z$1.infer<typeof nftMediaRef>;
|
|
2141
|
+
type NftCollectionRef = z$1.infer<typeof nftCollectionRef>;
|
|
2142
|
+
type NftAttribute = z$1.infer<typeof nftAttribute>;
|
|
2143
|
+
type NftPage = z$1.infer<typeof nftPage>;
|
|
2144
|
+
type NftDetail = z$1.infer<typeof nftDetail>;
|
|
2145
|
+
type NftCollection = z$1.infer<typeof nftCollectionResponse>;
|
|
2146
|
+
type NftFloor = z$1.infer<typeof nftFloorResponse>;
|
|
2147
|
+
type NftItemsRequest = z$1.infer<typeof nftItemsRequest>;
|
|
2148
|
+
type NftItemRequest = z$1.infer<typeof nftItemRequest>;
|
|
2149
|
+
type NftCollectionRequest = z$1.infer<typeof nftCollectionRequest>;
|
|
2150
|
+
type NftFloorRequest = z$1.infer<typeof nftFloorRequest>;
|
|
2151
|
+
declare const PUSH_FAMILIES: readonly ["evm", "solana", "bitcoin", "tron"];
|
|
2152
|
+
type PushFamily = (typeof PUSH_FAMILIES)[number];
|
|
2153
|
+
declare const PUSH_PLATFORMS: readonly ["apns", "fcm"];
|
|
2154
|
+
type PushPlatform = (typeof PUSH_PLATFORMS)[number];
|
|
2155
|
+
declare const PUSH_ADDRESSES_MAX = 64;
|
|
2156
|
+
declare const PUSH_NETWORKS_MAX = 64;
|
|
2157
|
+
/** A subscription not refreshed within this window is deleted. */
|
|
2158
|
+
declare const PUSH_TTL_MS: number;
|
|
2159
|
+
/** `Authorization: Bearer base64url(secret)` — the subscription's only credential. */
|
|
2160
|
+
declare const PUSH_AUTH_SCHEME = "Bearer";
|
|
2161
|
+
/**
|
|
2162
|
+
* `title-loc-key` / `loc-key` values the gateway puts in the APNs alert: hosts ship these keys in
|
|
2163
|
+
* `Localizable.strings` as the fallback copy for a notification the extension cannot open.
|
|
2164
|
+
*/
|
|
2165
|
+
declare const PUSH_APNS_TITLE_KEY = "QNTX_PUSH_TITLE";
|
|
2166
|
+
declare const PUSH_APNS_BODY_KEY = "QNTX_PUSH_BODY";
|
|
2167
|
+
/** The bearer secret and payload key encoding. */
|
|
2168
|
+
declare const pushSecret: z$1.ZodMiniString<string>;
|
|
2169
|
+
declare const pushSubscriptionId: RegExp;
|
|
2170
|
+
declare const pushCapabilities: Endpoint<z$1.ZodMiniUndefined, z$1.ZodMiniObject<{
|
|
2171
|
+
platforms: z$1.ZodMiniArray<z$1.ZodMiniEnum<{
|
|
2172
|
+
apns: "apns";
|
|
2173
|
+
fcm: "fcm";
|
|
2174
|
+
}>>;
|
|
2175
|
+
families: z$1.ZodMiniArray<z$1.ZodMiniEnum<{
|
|
2176
|
+
bitcoin: "bitcoin";
|
|
2177
|
+
evm: "evm";
|
|
2178
|
+
solana: "solana";
|
|
2179
|
+
tron: "tron";
|
|
2180
|
+
}>>;
|
|
2181
|
+
}, z$1.core.$strict>>;
|
|
2182
|
+
declare const pushSubscriptionRequest: z$1.ZodMiniObject<{
|
|
2183
|
+
platform: z$1.ZodMiniEnum<{
|
|
2184
|
+
apns: "apns";
|
|
2185
|
+
fcm: "fcm";
|
|
2186
|
+
}>;
|
|
2187
|
+
token: z$1.ZodMiniString<string>;
|
|
2188
|
+
key: z$1.ZodMiniString<string>;
|
|
2189
|
+
networks: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
2190
|
+
addresses: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
2191
|
+
}, z$1.core.$strict>;
|
|
2192
|
+
declare const pushSubscriptionResponse: z$1.ZodMiniObject<{
|
|
2193
|
+
id: z$1.ZodMiniString<string>;
|
|
2194
|
+
networks: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
2195
|
+
expiresAt: z$1.ZodMiniInt;
|
|
2196
|
+
}, z$1.core.$strict>;
|
|
2197
|
+
declare const pushSubscribe: Endpoint<z$1.ZodMiniObject<{
|
|
2198
|
+
platform: z$1.ZodMiniEnum<{
|
|
2199
|
+
apns: "apns";
|
|
2200
|
+
fcm: "fcm";
|
|
2201
|
+
}>;
|
|
2202
|
+
token: z$1.ZodMiniString<string>;
|
|
2203
|
+
key: z$1.ZodMiniString<string>;
|
|
2204
|
+
networks: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
2205
|
+
addresses: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
2206
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
2207
|
+
id: z$1.ZodMiniString<string>;
|
|
2208
|
+
networks: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
|
|
2209
|
+
expiresAt: z$1.ZodMiniInt;
|
|
2210
|
+
}, z$1.core.$strict>>;
|
|
2211
|
+
declare const pushUnsubscribe: Endpoint<z$1.ZodMiniUndefined, z$1.ZodMiniUndefined>;
|
|
2212
|
+
/** Registers a submitted outgoing hash so the gateway watches it to a settlement or failure. */
|
|
2213
|
+
declare const pushTransactionRequest: z$1.ZodMiniObject<{
|
|
2214
|
+
network: z$1.ZodMiniString<string>;
|
|
2215
|
+
hash: z$1.ZodMiniString<string>;
|
|
2216
|
+
}, z$1.core.$strict>;
|
|
2217
|
+
declare const pushWatch: Endpoint<z$1.ZodMiniObject<{
|
|
2218
|
+
network: z$1.ZodMiniString<string>;
|
|
2219
|
+
hash: z$1.ZodMiniString<string>;
|
|
2220
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{}, z$1.core.$strict>>;
|
|
2221
|
+
/** A push route path for one family. */
|
|
2222
|
+
declare const pushPath: (template: string, family: PushFamily) => string;
|
|
2223
|
+
type PushSubscriptionRequest = z$1.infer<typeof pushSubscriptionRequest>;
|
|
2224
|
+
type PushSubscriptionResponse = z$1.infer<typeof pushSubscriptionResponse>;
|
|
2225
|
+
type PushTransactionRequest = z$1.infer<typeof pushTransactionRequest>;
|
|
2226
|
+
export { nftCollectionResponse as $, GatewayErrorCode as $i, phishingList as $n, tronAccountResponse as $r, priceFamily as $t, NFT_STANDARDS as A, RPC_PROOF_KEYS_MAX as Ai, bridgeQuoteResponse as An, TronBroadcast as Ar, TokenListResponse as At, NftItemRequest as B, logsFilterViolation as Bi, contains as Bn, TronLog as Br, MAX_PRICE_ASSETS as Bt, pushWatch as C, FEE_HISTORY_BLOCKS_MAX as Ci, SwapQuoteRequest as Cn, TRON_INDEXER_LIMIT_MAX as Cr, approvals as Ct, NFT_DESCRIPTION_MAX as D, LOGS_TOPIC_ALTERNATIVES_MAX as Di, ZEROX_NATIVE_TOKEN as Dn, TronAccountResource as Dr, TOKEN_LIST_MAX_ENTRIES as Dt, NFT_DATA_URI_MAX as E, LOGS_BLOCK_RANGE_MAX as Ei, SwapQuoteSolanaResponse as En, TronAccount as Er, approvalsResponse as Et, NftCollectionRequest as F, containsBroadcast as Fi, swapQuoteSolana as Fn, TronIndexerAccount as Fr, tokenListResponse as Ft, nftAddressFits as G, solanaRpcRequest as Gi, hashList as Gn, TronNodePath as Gr, PricesRequest as Gt, NftMediaRef as H, rpcPath as Hi, difference as Hn, TronMaybeBlock as Hr, PRICE_FAMILIES as Ht, NftDetail as I, evmRpcRequest as Ii, swapQuoteSolanaRequest as In, TronIndexerPage as Ir, tokenName as It, nftCollection as J, healthResponse as Ji, PHISHING_MAX_PATH_SEGMENTS as Jn, TronWitnessList as Jr, fiatPrice as Jt, nftAttribute as K, health as Ki, union as Kn, TronReward as Kr, PricesResponse as Kt, NftFloor as L, jsonRpcId as Li, swapQuoteSolanaResponse as Ln, TronIndexerPath as Lr, tokenSymbol as Lt, NftAttribute as M, RPC_SIMULATE_CALLS_MAX as Mi, swapQuote as Mn, TronChainParameters as Mr, tokenList as Mt, NftCollection as N, SOLANA_RPC_METHODS as Ni, swapQuoteRequest as Nn, TronConstantCall as Nr, tokenListEntry as Nt, NFT_NAME_MAX as O, RPC_BATCH_MAX as Oi, bridgeQuote as On, TronAssetIssue as Or, TOKEN_LIST_SOURCES as Ot, NftCollectionRef as P, SolanaRpcMethod as Pi, swapQuoteResponse as Pn, TronDelegatedResource as Pr, tokenListPath as Pt, nftCollectionRequest as Q, GATEWAY_ERRORS as Qi, phishingKey as Qn, tronAccountResource as Qr, priceAssetId as Qt, NftFloorRequest as R, jsonRpcRequestId as Ri, HashList as Rn, TronIndexerTransactionRow as Rr, FIAT_CURRENCIES as Rt, pushUnsubscribe as S, EvmRpcMethod as Si, SOLANA_MAINNET as Sn, TRON_BROADCAST_PATH as Sr, approvalCandidate as St, NFT_ATTRIBUTE_TEXT_MAX as T, LOGS_ADDRESS_MAX as Ti, SwapQuoteSolanaRequest as Tn, TRON_NODE_PATHS as Tr, approvalsRequest as Tt, NftPage as U, rpcRequest as Ui, encodeHashList as Un, TronMaybeTransaction as Ur, PriceFamily as Ut, NftItemsRequest as V, rpc as Vi, decodeHashList as Vn, TronMaybeAccount as Vr, NATIVE_SLIP44 as Vt, NftStandard as W, rpcResponse as Wi, hashCount as Wn, TronMaybeTransactionInfo as Wr, PriceQuote as Wt, nftCollectionPath as X, Caip2 as Xi, phishingCandidates as Xn, tron as Xr, percentChange as Xt, nftCollectionFits as Y, CLIENT_ID_HEADER as Yi, PhishingListResponse as Yn, isTronIndexerPath as Yr, nativeAssetId as Yt, nftCollectionRef as Z, ClientId as Zi, phishingHash as Zn, tronAccount as Zr, priceAssetFamily as Zt, pushSubscribe as _, tronTransactionInfoResponse as _i, historyRequest as _n, esploraGet as _r, nftTokenId as _t, PUSH_FAMILIES as a, APP_ID as aa, tronChainParameters as ai, tokenAssetId as an, servedNetworksRequest as ar, nftFloorResponse as at, pushSubscriptionResponse as b, tronWitnessListResponse as bi, BridgeQuoteRequest as bn, TronJsonParseError as br, ApprovalsRequest as bt, PUSH_TTL_MS as c, appAvailability as ca, tronIndexerPageResponse as ci, HISTORY_PAGE_MAX as cn, FeeModel as cr, nftItemPath as ct, PushSubscriptionRequest as d, eligibilityResponse as da, tronLog as di, HistoryRequest as dn, NetworkInfo as dr, nftItems as dt, PROVIDERS_HEADER as ea, tronAssetIssueResponse as ei, priceQuote as en, phishingListPath as er, nftCursor as et, PushSubscriptionResponse as f, Endpoint as fa, tronMaybeBlockResponse as fi, HistoryResponse as fn, SOLANA_NETWORKS as fr, nftItemsPath as ft, pushSecret as g, parseWith as ga, tronTransactionInfo as gi, historyPath as gn, esploraBasePath as gr, nftPageFits as gt, pushPath as h, endpoint as ha, tronRewardResponse as hi, historyItem as hn, ESPLORA_ROUTES as hr, nftPage as ht, PUSH_AUTH_SCHEME as i, gatewayError as ia, tronCanDelegateMaxSizeResponse as ii, pricesResponse as in, servedNetworks as ir, nftFloorRequest as it, NFT_URL_MAX as j, RPC_SIMULATE_BLOCKS_MAX as ji, solanaInstruction as jn, TronCanDelegateMaxSize as jr, TokenListSource as jt, NFT_PAGE_MAX as k, RPC_BROADCAST_METHODS as ki, bridgeQuoteRequest as kn, TronBlock as kr, TokenListEntry as kt, PushFamily as l, eligibility as la, tronIndexerTransaction as li, HISTORY_TRANSFERS_MAX as ln, GasPricing as lr, nftItemRequest as lt, pushCapabilities as m, accepts as ma, tronPathEntry as mi, history as mn, networkById as mr, nftMediaRef as mt, PUSH_APNS_BODY_KEY as n, caip2 as na, tronBlockResponse as ni, pricesPath as nn, phishingListResponse as nr, nftFloor as nt, PUSH_NETWORKS_MAX as o, AppAvailability as oa, tronConstantCallResponse as oi, HISTORY_CURSOR_MAX as on, servedNetworksResponse as or, nftItem as ot, PushTransactionRequest as p, HttpMethod as pa, tronPathAllowed as pi, HistoryTransfer as pn, TRON_NETWORKS as pr, nftItemsRequest as pt, nftBalance as q, healthRequest as qi, PHISHING_HASH_BYTES as qn, TronUnfreezeCount as qr, fiatCurrency as qt, PUSH_APNS_TITLE_KEY as r, clientId as ra, tronBroadcastResponse as ri, pricesRequest as rn, networksPath as rr, nftFloorPath as rt, PUSH_PLATFORMS as s, EligibilityResponse as sa, tronDelegatedResourceResponse as si, HISTORY_ITEMS_MAX as sn, BITCOIN_NETWORKS as sr, nftItemFits as st, PUSH_ADDRESSES_MAX as t, PROVIDER_PIN_HEADER as ta, tronBasePath as ti, prices as tn, phishingListRequest as tr, nftDetail as tt, PushPlatform as u, eligibilityRequest as ua, tronIndexerTrc20 as ui, HistoryItem as un, NETWORKS as ur, nftItemSchema as ut, pushSubscriptionId as v, tronTransactionResponse as vi, historyResponse as vn, esploraPathAllowed as vr, APPROVAL_CANDIDATES_MAX as vt, NFT_ATTRIBUTES_MAX as w, FEE_HISTORY_PERCENTILES_MAX as wi, SwapQuoteResponse as wn, TRON_INDEXER_PATHS as wr, approvalsPath as wt, pushTransactionRequest as x, EVM_RPC_METHODS as xi, BridgeQuoteResponse as xn, parseTronJson as xr, ApprovalsResponse as xt, pushSubscriptionRequest as y, tronUnfreezeCountResponse as yi, historyTransfer as yn, esploraPost as yr, ApprovalCandidate as yt, NftItem as z, jsonRpcResponse as zi, applyDiff as zn, TronIndexerTrc20Row as zr, FiatCurrency as zt };
|
|
2227
|
+
//# sourceMappingURL=index-vBgfOFIh.d.mts.map
|