tapimo 0.5.2 → 0.6.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/dist/App.d.ts +13987 -5755
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js.map +1 -1
- package/dist/admin/App.d.ts +910 -412
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +4 -0
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/early-access.d.ts +148 -0
- package/dist/admin/apps/early-access.d.ts.map +1 -0
- package/dist/admin/apps/early-access.js +133 -0
- package/dist/admin/apps/early-access.js.map +1 -0
- package/dist/admin/apps/verified-tokens.d.ts +643 -118
- package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
- package/dist/admin/apps/verified-tokens.js +214 -1
- package/dist/admin/apps/verified-tokens.js.map +1 -1
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.d.ts.map +1 -1
- package/dist/admin/ui.generated.js +45 -33
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/apps/data/App.d.ts +3733 -2428
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +11 -6
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/FundingQuoteProviders.d.ts +34 -1
- package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
- package/dist/apps/data/FundingQuoteProviders.js +193 -2
- package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
- package/dist/apps/data/FxOracle.d.ts +71 -0
- package/dist/apps/data/FxOracle.d.ts.map +1 -0
- package/dist/apps/data/FxOracle.js +97 -0
- package/dist/apps/data/FxOracle.js.map +1 -0
- package/dist/apps/data/index.d.ts +1 -0
- package/dist/apps/data/index.d.ts.map +1 -1
- package/dist/apps/data/index.js +1 -0
- package/dist/apps/data/index.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +3575 -1358
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +230 -88
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +963 -342
- package/dist/apps/data/routes/addresses.d.ts.map +1 -1
- package/dist/apps/data/routes/addresses.js +11 -9
- package/dist/apps/data/routes/addresses.js.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +108 -57
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +88 -45
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/coingecko.d.ts +169 -169
- package/dist/apps/data/routes/exchanges.d.ts +952 -201
- package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
- package/dist/apps/data/routes/exchanges.js +518 -76
- package/dist/apps/data/routes/exchanges.js.map +1 -1
- package/dist/apps/data/routes/fee-amm.d.ts +24 -24
- package/dist/apps/data/routes/funding.d.ts +8 -2
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +32 -6
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +5 -5
- package/dist/apps/data/routes/receipts.d.ts +392 -315
- package/dist/apps/data/routes/receipts.d.ts.map +1 -1
- package/dist/apps/data/routes/receipts.js +152 -77
- package/dist/apps/data/routes/receipts.js.map +1 -1
- package/dist/apps/data/routes/tokens.d.ts +166 -173
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +14 -12
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transactions.d.ts +277 -536
- package/dist/apps/data/routes/transactions.d.ts.map +1 -1
- package/dist/apps/data/routes/transactions.js +96 -77
- package/dist/apps/data/routes/transactions.js.map +1 -1
- package/dist/apps/data/routes/transfers.d.ts +82 -17
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +70 -13
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/valuation.d.ts +307 -0
- package/dist/apps/data/routes/valuation.d.ts.map +1 -0
- package/dist/apps/data/routes/valuation.js +292 -0
- package/dist/apps/data/routes/valuation.js.map +1 -0
- package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/verified-tokens.js +7 -5
- package/dist/apps/data/routes/verified-tokens.js.map +1 -1
- package/dist/apps/data/routes/webhooks.d.ts +459 -479
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +124 -25
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/index.d.ts +1 -1
- package/dist/apps/index.d.ts.map +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/management/App.d.ts +8606 -1681
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +12 -1
- package/dist/apps/management/App.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +23 -0
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +5 -3
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +88 -48
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +10 -2
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +218 -0
- package/dist/apps/management/routes/faucet.d.ts.map +1 -0
- package/dist/apps/management/routes/faucet.js +139 -0
- package/dist/apps/management/routes/faucet.js.map +1 -0
- package/dist/apps/management/routes/invitations.d.ts +121 -121
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +3 -0
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/invite-links.d.ts +197 -168
- package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
- package/dist/apps/management/routes/invite-links.js +26 -1
- package/dist/apps/management/routes/invite-links.js.map +1 -1
- package/dist/apps/management/routes/me.d.ts +2 -0
- package/dist/apps/management/routes/me.d.ts.map +1 -1
- package/dist/apps/management/routes/me.js +4 -0
- package/dist/apps/management/routes/me.js.map +1 -1
- package/dist/apps/management/routes/members.d.ts +49 -49
- package/dist/apps/management/routes/orgs.d.ts +91 -91
- package/dist/apps/management/routes/projects.d.ts +115 -115
- package/dist/apps/management/routes/usage.d.ts +35 -32
- package/dist/apps/management/routes/usage.d.ts.map +1 -1
- package/dist/apps/management/routes/usage.js +4 -0
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.d.ts +697 -0
- package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -0
- package/dist/apps/management/routes/verified-token-requests.js +271 -0
- package/dist/apps/management/routes/verified-token-requests.js.map +1 -0
- package/dist/apps/management/routes/webhooks.d.ts +6977 -0
- package/dist/apps/management/routes/webhooks.d.ts.map +1 -0
- package/dist/apps/management/routes/webhooks.js +573 -0
- package/dist/apps/management/routes/webhooks.js.map +1 -0
- package/dist/apps/mcp.d.ts +9 -2
- package/dist/apps/mcp.d.ts.map +1 -1
- package/dist/apps/mcp.js +9 -4
- package/dist/apps/mcp.js.map +1 -1
- package/dist/cli/Cli.d.ts.map +1 -1
- package/dist/cli/Cli.js +7 -2
- package/dist/cli/Cli.js.map +1 -1
- package/dist/db/Db.d.ts +4 -0
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +83 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +41 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +45 -0
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/earlyAccess.d.ts +50 -0
- package/dist/db/tables/earlyAccess.d.ts.map +1 -0
- package/dist/db/tables/earlyAccess.js +63 -0
- package/dist/db/tables/earlyAccess.js.map +1 -0
- package/dist/db/tables/invitations.d.ts +12 -1
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/invitations.js +23 -0
- package/dist/db/tables/invitations.js.map +1 -1
- package/dist/db/tables/inviteLinks.d.ts +10 -2
- package/dist/db/tables/inviteLinks.d.ts.map +1 -1
- package/dist/db/tables/inviteLinks.js +10 -1
- package/dist/db/tables/inviteLinks.js.map +1 -1
- package/dist/db/tables/sponsoredTransactions.d.ts +2 -0
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +2 -0
- package/dist/db/tables/sponsoredTransactions.js.map +1 -1
- package/dist/db/tables/verifiedTokenRequests.d.ts +94 -0
- package/dist/db/tables/verifiedTokenRequests.d.ts.map +1 -0
- package/dist/db/tables/verifiedTokenRequests.js +120 -0
- package/dist/db/tables/verifiedTokenRequests.js.map +1 -0
- package/dist/db/tables/webhookSubscriptions.d.ts +14 -0
- package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
- package/dist/db/tables/webhookSubscriptions.js +16 -0
- package/dist/db/tables/webhookSubscriptions.js.map +1 -1
- package/dist/internal/Auth.d.ts +43 -2
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +60 -45
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/FundingQuotes.d.ts +69 -15
- package/dist/internal/FundingQuotes.d.ts.map +1 -1
- package/dist/internal/FundingQuotes.js +74 -25
- package/dist/internal/FundingQuotes.js.map +1 -1
- package/dist/internal/Log.d.ts +19 -1
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +2 -0
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +9 -0
- package/dist/internal/MetricSink.js.map +1 -1
- package/dist/internal/OpenApi.d.ts +2 -2
- package/dist/internal/OpenApi.d.ts.map +1 -1
- package/dist/internal/OpenApi.js +3 -0
- package/dist/internal/OpenApi.js.map +1 -1
- package/dist/internal/Schema.d.ts +14 -5
- package/dist/internal/Schema.d.ts.map +1 -1
- package/dist/internal/Schema.js +23 -5
- package/dist/internal/Schema.js.map +1 -1
- package/dist/internal/Value.d.ts +18 -0
- package/dist/internal/Value.d.ts.map +1 -1
- package/dist/internal/Value.js +11 -1
- package/dist/internal/Value.js.map +1 -1
- package/dist/internal/VerifiedTokens.d.ts.map +1 -1
- package/dist/internal/VerifiedTokens.js +10 -1
- package/dist/internal/VerifiedTokens.js.map +1 -1
- package/dist/internal/Viem.d.ts +1 -1
- package/dist/internal/Webhooks.d.ts +24 -3
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +34 -8
- package/dist/internal/Webhooks.js.map +1 -1
- package/package.json +2 -2
- package/src/App.ts +9 -1
- package/src/Client.test-d.ts +638 -6
- package/src/admin/App.ts +4 -0
- package/src/admin/apps/early-access.test.ts +125 -0
- package/src/admin/apps/early-access.ts +175 -0
- package/src/admin/apps/verified-tokens.test.ts +201 -0
- package/src/admin/apps/verified-tokens.ts +532 -286
- package/src/admin/ui/plugin.ts +2 -1
- package/src/admin/ui/src/lib/early-access.ts +63 -0
- package/src/admin/ui/src/lib/verified-tokens.ts +79 -0
- package/src/admin/ui/src/routeTree.gen.ts +33 -2
- package/src/admin/ui/src/routes/__root.tsx +2 -1
- package/src/admin/ui/src/routes/early-access.tsx +157 -0
- package/src/admin/ui/src/routes/verified-tokens.tsx +230 -19
- package/src/admin/ui.generated.ts +48 -33
- package/src/apps/data/App.ts +22 -14
- package/src/apps/data/FundingQuoteProviders.test.ts +298 -0
- package/src/apps/data/FundingQuoteProviders.ts +257 -4
- package/src/apps/data/FxOracle.test.ts +118 -0
- package/src/apps/data/FxOracle.ts +153 -0
- package/src/apps/data/index.ts +1 -0
- package/src/apps/data/routes/activities.test.ts +173 -3
- package/src/apps/data/routes/activities.ts +403 -132
- package/src/apps/data/routes/addresses.ts +19 -9
- package/src/apps/data/routes/balances.test.ts +144 -11
- package/src/apps/data/routes/balances.ts +140 -51
- package/src/apps/data/routes/exchanges.test.ts +540 -9
- package/src/apps/data/routes/exchanges.ts +690 -103
- package/src/apps/data/routes/funding.test.ts +84 -0
- package/src/apps/data/routes/funding.ts +38 -6
- package/src/apps/data/routes/receipts.test.ts +125 -23
- package/src/apps/data/routes/receipts.ts +205 -100
- package/src/apps/data/routes/tokens.test.ts +43 -0
- package/src/apps/data/routes/tokens.ts +27 -12
- package/src/apps/data/routes/transactions.test.ts +72 -19
- package/src/apps/data/routes/transactions.ts +162 -92
- package/src/apps/data/routes/transfers.test.ts +146 -4
- package/src/apps/data/routes/transfers.ts +91 -13
- package/src/apps/data/routes/valuation.test.ts +422 -0
- package/src/apps/data/routes/valuation.ts +423 -0
- package/src/apps/data/routes/verified-tokens.ts +14 -2
- package/src/apps/data/routes/webhooks.test.ts +56 -8
- package/src/apps/data/routes/webhooks.ts +144 -27
- package/src/apps/index.ts +1 -1
- package/src/apps/management/App.ts +13 -0
- package/src/apps/management/routes/api-keys.test.ts +87 -0
- package/src/apps/management/routes/api-keys.ts +4 -3
- package/src/apps/management/routes/billing.test.ts +112 -1
- package/src/apps/management/routes/billing.ts +7 -2
- package/src/apps/management/routes/faucet.test.ts +79 -0
- package/src/apps/management/routes/faucet.ts +185 -0
- package/src/apps/management/routes/invitations.test.ts +172 -0
- package/src/apps/management/routes/invitations.ts +3 -0
- package/src/apps/management/routes/invite-links.test.ts +117 -0
- package/src/apps/management/routes/invite-links.ts +43 -1
- package/src/apps/management/routes/me.test.ts +140 -88
- package/src/apps/management/routes/me.ts +6 -0
- package/src/apps/management/routes/usage.test.ts +6 -0
- package/src/apps/management/routes/usage.ts +7 -0
- package/src/apps/management/routes/verified-token-requests.test.ts +377 -0
- package/src/apps/management/routes/verified-token-requests.ts +397 -0
- package/src/apps/management/routes/webhooks.test.ts +426 -0
- package/src/apps/management/routes/webhooks.ts +672 -0
- package/src/apps/mcp.test.ts +13 -0
- package/src/apps/mcp.ts +18 -5
- package/src/cli/Cli.test.ts +36 -0
- package/src/cli/Cli.ts +7 -2
- package/src/db/Db.test.ts +19 -0
- package/src/db/Db.ts +95 -0
- package/src/db/Schema.ts +53 -0
- package/src/db/tables/earlyAccess.ts +86 -0
- package/src/db/tables/invitations.ts +26 -1
- package/src/db/tables/inviteLinks.ts +22 -3
- package/src/db/tables/sponsoredTransactions.ts +4 -0
- package/src/db/tables/verifiedTokenRequests.test.ts +200 -0
- package/src/db/tables/verifiedTokenRequests.ts +182 -0
- package/src/db/tables/webhookSubscriptions.ts +31 -0
- package/src/internal/Auth.ts +73 -45
- package/src/internal/FundingQuotes.test.ts +143 -1
- package/src/internal/FundingQuotes.ts +95 -28
- package/src/internal/Log.test-d.ts +21 -0
- package/src/internal/Log.test.ts +50 -0
- package/src/internal/Log.ts +24 -1
- package/src/internal/MetricSink.test.ts +160 -0
- package/src/internal/MetricSink.ts +10 -0
- package/src/internal/OpenApi.ts +3 -0
- package/src/internal/Schema.ts +50 -5
- package/src/internal/Value.test.ts +20 -0
- package/src/internal/Value.ts +24 -1
- package/src/internal/VerifiedTokens.ts +9 -1
- package/src/internal/Webhooks.test.ts +140 -0
- package/src/internal/Webhooks.ts +53 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type Context } from 'hono';
|
|
2
|
-
import { Hex } from 'ox';
|
|
3
2
|
import * as z from 'zod/mini';
|
|
4
3
|
import type * as App from '../../../App.js';
|
|
5
4
|
import * as Response from '../../../internal/Response.js';
|
|
6
5
|
import * as Schema from '../../../internal/Schema.js';
|
|
7
6
|
import type * as Tidx from '../../../internal/Tidx.js';
|
|
7
|
+
import * as Tokens from './tokens.js';
|
|
8
8
|
/** A decoded transaction type name. */
|
|
9
9
|
type TransactionType = 'legacy' | 'eip2930' | 'eip1559' | 'eip4844' | 'eip7702' | 'tempo' | 'unknown';
|
|
10
10
|
/** Decodes a transaction `type` (hex string or number) into its name. */
|
|
@@ -83,45 +83,34 @@ export declare namespace schema {
|
|
|
83
83
|
yParity: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
84
84
|
}, z.core.$loose>;
|
|
85
85
|
}
|
|
86
|
-
/**
|
|
87
|
-
* Metadata for a transaction: the verbatim JSON-RPC transaction (always
|
|
88
|
-
* present) plus resources embedded on demand via `include`.
|
|
89
|
-
*
|
|
90
|
-
* The `feeToken` and `receipt` schemas are wrapped in `z.lazy` because
|
|
91
|
-
* `tokens.ts`/`receipts.ts` and `transactions.ts` mutually reference each
|
|
92
|
-
* other's schemas; deferring these lookups avoids the import-cycle crash
|
|
93
|
-
* during module init.
|
|
94
|
-
*/
|
|
86
|
+
/** Transaction metadata with the raw RPC transaction and optional receipt. */
|
|
95
87
|
const TransactionMeta: z.ZodMiniObject<{
|
|
96
|
-
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
97
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
98
|
-
admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
99
|
-
currency: z.ZodMiniString<string>;
|
|
100
|
-
createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
101
|
-
decimals: z.ZodMiniNumber<number>;
|
|
102
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
103
|
-
id: z.ZodMiniString<string>;
|
|
104
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
105
|
-
name: z.ZodMiniString<string>;
|
|
106
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
107
|
-
symbol: z.ZodMiniString<string>;
|
|
108
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
109
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
110
|
-
count: z.ZodMiniNumber<number>;
|
|
111
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
112
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
113
|
-
}, z.core.$strip>>;
|
|
114
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
115
|
-
}, z.core.$strip>>>;
|
|
116
88
|
receipt: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
117
89
|
blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
118
90
|
blockNumber: z.ZodMiniNumber<number>;
|
|
119
91
|
contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
120
92
|
cumulativeGasUsed: z.ZodMiniNumber<number>;
|
|
121
93
|
effectiveGasPrice: z.ZodMiniString<string>;
|
|
122
|
-
feeAmount: z.
|
|
94
|
+
feeAmount: z.ZodMiniObject<{
|
|
95
|
+
baseUnits: z.ZodMiniString<string>;
|
|
96
|
+
currency: z.ZodMiniString<string>;
|
|
97
|
+
decimals: z.ZodMiniNumber<number>;
|
|
98
|
+
formatted: z.ZodMiniString<string>;
|
|
99
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
100
|
+
amount: z.ZodMiniString<string>;
|
|
101
|
+
currency: z.ZodMiniString<string>;
|
|
102
|
+
}, z.core.$strip>>>;
|
|
103
|
+
}, z.core.$strip>;
|
|
123
104
|
feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
124
|
-
feeToken: z.ZodMiniOptional<z.
|
|
105
|
+
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
106
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
107
|
+
currency: z.ZodMiniString<string>;
|
|
108
|
+
decimals: z.ZodMiniNumber<number>;
|
|
109
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
110
|
+
name: z.ZodMiniString<string>;
|
|
111
|
+
symbol: z.ZodMiniString<string>;
|
|
112
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
113
|
+
}, z.core.$strip>>>;
|
|
125
114
|
gasUsed: z.ZodMiniNumber<number>;
|
|
126
115
|
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
127
116
|
logs: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -137,26 +126,11 @@ export declare namespace schema {
|
|
|
137
126
|
transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
138
127
|
}, z.core.$loose>>;
|
|
139
128
|
meta: z.ZodMiniObject<{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
decimals: z.ZodMiniNumber<number>;
|
|
146
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
147
|
-
id: z.ZodMiniString<string>;
|
|
148
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
149
|
-
name: z.ZodMiniString<string>;
|
|
150
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
151
|
-
symbol: z.ZodMiniString<string>;
|
|
152
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
153
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
154
|
-
count: z.ZodMiniNumber<number>;
|
|
155
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
156
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
157
|
-
}, z.core.$strip>>;
|
|
158
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
159
|
-
}, z.core.$strip>>>;
|
|
129
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
130
|
+
asOf: z.ZodMiniString<string>;
|
|
131
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
132
|
+
source: z.ZodMiniString<string>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
160
134
|
rpc: z.ZodMiniObject<{
|
|
161
135
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
162
136
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -286,7 +260,15 @@ export declare namespace schema {
|
|
|
286
260
|
to: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
287
261
|
}, z.core.$strip>>>;
|
|
288
262
|
chainId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
289
|
-
feeToken: z.ZodMiniOptional<z.
|
|
263
|
+
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
264
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
265
|
+
currency: z.ZodMiniString<string>;
|
|
266
|
+
decimals: z.ZodMiniNumber<number>;
|
|
267
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
268
|
+
name: z.ZodMiniString<string>;
|
|
269
|
+
symbol: z.ZodMiniString<string>;
|
|
270
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
271
|
+
}, z.core.$strip>>>;
|
|
290
272
|
gas: z.ZodMiniNumber<number>;
|
|
291
273
|
gasPrice: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
292
274
|
hash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
@@ -295,35 +277,32 @@ export declare namespace schema {
|
|
|
295
277
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
296
278
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
297
279
|
meta: z.ZodMiniObject<{
|
|
298
|
-
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
299
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
300
|
-
admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
301
|
-
currency: z.ZodMiniString<string>;
|
|
302
|
-
createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
303
|
-
decimals: z.ZodMiniNumber<number>;
|
|
304
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
305
|
-
id: z.ZodMiniString<string>;
|
|
306
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
307
|
-
name: z.ZodMiniString<string>;
|
|
308
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
309
|
-
symbol: z.ZodMiniString<string>;
|
|
310
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
311
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
312
|
-
count: z.ZodMiniNumber<number>;
|
|
313
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
314
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
315
|
-
}, z.core.$strip>>;
|
|
316
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
317
|
-
}, z.core.$strip>>>;
|
|
318
280
|
receipt: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
319
281
|
blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
320
282
|
blockNumber: z.ZodMiniNumber<number>;
|
|
321
283
|
contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
322
284
|
cumulativeGasUsed: z.ZodMiniNumber<number>;
|
|
323
285
|
effectiveGasPrice: z.ZodMiniString<string>;
|
|
324
|
-
feeAmount: z.
|
|
286
|
+
feeAmount: z.ZodMiniObject<{
|
|
287
|
+
baseUnits: z.ZodMiniString<string>;
|
|
288
|
+
currency: z.ZodMiniString<string>;
|
|
289
|
+
decimals: z.ZodMiniNumber<number>;
|
|
290
|
+
formatted: z.ZodMiniString<string>;
|
|
291
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
292
|
+
amount: z.ZodMiniString<string>;
|
|
293
|
+
currency: z.ZodMiniString<string>;
|
|
294
|
+
}, z.core.$strip>>>;
|
|
295
|
+
}, z.core.$strip>;
|
|
325
296
|
feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
326
|
-
feeToken: z.ZodMiniOptional<z.
|
|
297
|
+
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
298
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
299
|
+
currency: z.ZodMiniString<string>;
|
|
300
|
+
decimals: z.ZodMiniNumber<number>;
|
|
301
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
302
|
+
name: z.ZodMiniString<string>;
|
|
303
|
+
symbol: z.ZodMiniString<string>;
|
|
304
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
305
|
+
}, z.core.$strip>>>;
|
|
327
306
|
gasUsed: z.ZodMiniNumber<number>;
|
|
328
307
|
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
329
308
|
logs: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -339,26 +318,11 @@ export declare namespace schema {
|
|
|
339
318
|
transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
340
319
|
}, z.core.$loose>>;
|
|
341
320
|
meta: z.ZodMiniObject<{
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
decimals: z.ZodMiniNumber<number>;
|
|
348
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
349
|
-
id: z.ZodMiniString<string>;
|
|
350
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
351
|
-
name: z.ZodMiniString<string>;
|
|
352
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
353
|
-
symbol: z.ZodMiniString<string>;
|
|
354
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
355
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
356
|
-
count: z.ZodMiniNumber<number>;
|
|
357
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
358
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
359
|
-
}, z.core.$strip>>;
|
|
360
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
361
|
-
}, z.core.$strip>>>;
|
|
321
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
322
|
+
asOf: z.ZodMiniString<string>;
|
|
323
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
324
|
+
source: z.ZodMiniString<string>;
|
|
325
|
+
}, z.core.$strip>>;
|
|
362
326
|
rpc: z.ZodMiniObject<{
|
|
363
327
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
364
328
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -485,19 +449,20 @@ export declare namespace schema {
|
|
|
485
449
|
const Params: z.ZodMiniObject<{
|
|
486
450
|
transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
487
451
|
}, z.core.$strip>;
|
|
488
|
-
/** Optional
|
|
452
|
+
/** Optional receipt and fee-token fields that callers opt into via `include`. */
|
|
489
453
|
const Include: z.ZodMiniEnum<{
|
|
490
|
-
feeToken: "feeToken";
|
|
454
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
455
|
+
"feeToken.verified": "feeToken.verified";
|
|
491
456
|
receipt: "receipt";
|
|
492
457
|
}>;
|
|
493
458
|
/**
|
|
494
459
|
* Parses a comma-separated `include` query value into a list of optional
|
|
495
|
-
* resources to embed.
|
|
496
|
-
*
|
|
497
|
-
* fast.
|
|
460
|
+
* resources to embed. Curated fee-token fields and the receipt only run when
|
|
461
|
+
* explicitly requested.
|
|
498
462
|
*/
|
|
499
463
|
const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
500
|
-
feeToken: "feeToken";
|
|
464
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
465
|
+
"feeToken.verified": "feeToken.verified";
|
|
501
466
|
receipt: "receipt";
|
|
502
467
|
}>>>;
|
|
503
468
|
/** Query parameters for transaction requests. */
|
|
@@ -507,7 +472,8 @@ export declare namespace schema {
|
|
|
507
472
|
testnet: "testnet";
|
|
508
473
|
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
|
|
509
474
|
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
510
|
-
feeToken: "feeToken";
|
|
475
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
476
|
+
"feeToken.verified": "feeToken.verified";
|
|
511
477
|
receipt: "receipt";
|
|
512
478
|
}>>>;
|
|
513
479
|
}, z.core.$strict>;
|
|
@@ -520,7 +486,15 @@ export declare namespace schema {
|
|
|
520
486
|
to: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
521
487
|
}, z.core.$strip>>>;
|
|
522
488
|
chainId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
523
|
-
feeToken: z.ZodMiniOptional<z.
|
|
489
|
+
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
490
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
491
|
+
currency: z.ZodMiniString<string>;
|
|
492
|
+
decimals: z.ZodMiniNumber<number>;
|
|
493
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
494
|
+
name: z.ZodMiniString<string>;
|
|
495
|
+
symbol: z.ZodMiniString<string>;
|
|
496
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
497
|
+
}, z.core.$strip>>>;
|
|
524
498
|
gas: z.ZodMiniNumber<number>;
|
|
525
499
|
gasPrice: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
526
500
|
hash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
@@ -529,35 +503,32 @@ export declare namespace schema {
|
|
|
529
503
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
530
504
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
531
505
|
meta: z.ZodMiniObject<{
|
|
532
|
-
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
533
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
534
|
-
admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
535
|
-
currency: z.ZodMiniString<string>;
|
|
536
|
-
createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
537
|
-
decimals: z.ZodMiniNumber<number>;
|
|
538
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
539
|
-
id: z.ZodMiniString<string>;
|
|
540
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
541
|
-
name: z.ZodMiniString<string>;
|
|
542
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
543
|
-
symbol: z.ZodMiniString<string>;
|
|
544
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
545
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
546
|
-
count: z.ZodMiniNumber<number>;
|
|
547
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
548
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
549
|
-
}, z.core.$strip>>;
|
|
550
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
551
|
-
}, z.core.$strip>>>;
|
|
552
506
|
receipt: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
553
507
|
blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
554
508
|
blockNumber: z.ZodMiniNumber<number>;
|
|
555
509
|
contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
556
510
|
cumulativeGasUsed: z.ZodMiniNumber<number>;
|
|
557
511
|
effectiveGasPrice: z.ZodMiniString<string>;
|
|
558
|
-
feeAmount: z.
|
|
512
|
+
feeAmount: z.ZodMiniObject<{
|
|
513
|
+
baseUnits: z.ZodMiniString<string>;
|
|
514
|
+
currency: z.ZodMiniString<string>;
|
|
515
|
+
decimals: z.ZodMiniNumber<number>;
|
|
516
|
+
formatted: z.ZodMiniString<string>;
|
|
517
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
518
|
+
amount: z.ZodMiniString<string>;
|
|
519
|
+
currency: z.ZodMiniString<string>;
|
|
520
|
+
}, z.core.$strip>>>;
|
|
521
|
+
}, z.core.$strip>;
|
|
559
522
|
feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
560
|
-
feeToken: z.ZodMiniOptional<z.
|
|
523
|
+
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
524
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
525
|
+
currency: z.ZodMiniString<string>;
|
|
526
|
+
decimals: z.ZodMiniNumber<number>;
|
|
527
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
528
|
+
name: z.ZodMiniString<string>;
|
|
529
|
+
symbol: z.ZodMiniString<string>;
|
|
530
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
531
|
+
}, z.core.$strip>>>;
|
|
561
532
|
gasUsed: z.ZodMiniNumber<number>;
|
|
562
533
|
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
563
534
|
logs: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -573,26 +544,11 @@ export declare namespace schema {
|
|
|
573
544
|
transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
574
545
|
}, z.core.$loose>>;
|
|
575
546
|
meta: z.ZodMiniObject<{
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
decimals: z.ZodMiniNumber<number>;
|
|
582
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
583
|
-
id: z.ZodMiniString<string>;
|
|
584
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
585
|
-
name: z.ZodMiniString<string>;
|
|
586
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
587
|
-
symbol: z.ZodMiniString<string>;
|
|
588
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
589
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
590
|
-
count: z.ZodMiniNumber<number>;
|
|
591
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
592
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
593
|
-
}, z.core.$strip>>;
|
|
594
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
595
|
-
}, z.core.$strip>>>;
|
|
547
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
548
|
+
asOf: z.ZodMiniString<string>;
|
|
549
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
550
|
+
source: z.ZodMiniString<string>;
|
|
551
|
+
}, z.core.$strip>>;
|
|
596
552
|
rpc: z.ZodMiniObject<{
|
|
597
553
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
598
554
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -717,18 +673,19 @@ export declare namespace schema {
|
|
|
717
673
|
/** Schemas for the getTransactions (list) operation. */
|
|
718
674
|
namespace getTransactions {
|
|
719
675
|
/**
|
|
720
|
-
* Optional resources for
|
|
721
|
-
* `
|
|
722
|
-
* route keeps its own {@link getTransaction.Include}.
|
|
676
|
+
* Optional resources for transaction rows plus the response-wide capped
|
|
677
|
+
* `totalCount`. The detail route keeps its own include schema.
|
|
723
678
|
*/
|
|
724
679
|
const Include: z.ZodMiniEnum<{
|
|
725
|
-
feeToken: "feeToken";
|
|
680
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
681
|
+
"feeToken.verified": "feeToken.verified";
|
|
726
682
|
receipt: "receipt";
|
|
727
683
|
totalCount: "totalCount";
|
|
728
684
|
}>;
|
|
729
685
|
/** Parses the comma-separated `include` value for the transaction list. */
|
|
730
686
|
const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
731
|
-
feeToken: "feeToken";
|
|
687
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
688
|
+
"feeToken.verified": "feeToken.verified";
|
|
732
689
|
receipt: "receipt";
|
|
733
690
|
totalCount: "totalCount";
|
|
734
691
|
}>>>;
|
|
@@ -745,7 +702,8 @@ export declare namespace schema {
|
|
|
745
702
|
feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
746
703
|
feeToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
747
704
|
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
748
|
-
feeToken: "feeToken";
|
|
705
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
706
|
+
"feeToken.verified": "feeToken.verified";
|
|
749
707
|
receipt: "receipt";
|
|
750
708
|
totalCount: "totalCount";
|
|
751
709
|
}>>>;
|
|
@@ -779,7 +737,15 @@ export declare namespace schema {
|
|
|
779
737
|
to: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
780
738
|
}, z.core.$strip>>>;
|
|
781
739
|
chainId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
782
|
-
feeToken: z.ZodMiniOptional<z.
|
|
740
|
+
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
741
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
742
|
+
currency: z.ZodMiniString<string>;
|
|
743
|
+
decimals: z.ZodMiniNumber<number>;
|
|
744
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
745
|
+
name: z.ZodMiniString<string>;
|
|
746
|
+
symbol: z.ZodMiniString<string>;
|
|
747
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
748
|
+
}, z.core.$strip>>>;
|
|
783
749
|
gas: z.ZodMiniNumber<number>;
|
|
784
750
|
gasPrice: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
785
751
|
hash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
@@ -788,35 +754,32 @@ export declare namespace schema {
|
|
|
788
754
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
789
755
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
790
756
|
meta: z.ZodMiniObject<{
|
|
791
|
-
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
792
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
793
|
-
admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
794
|
-
currency: z.ZodMiniString<string>;
|
|
795
|
-
createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
796
|
-
decimals: z.ZodMiniNumber<number>;
|
|
797
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
798
|
-
id: z.ZodMiniString<string>;
|
|
799
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
800
|
-
name: z.ZodMiniString<string>;
|
|
801
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
802
|
-
symbol: z.ZodMiniString<string>;
|
|
803
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
804
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
805
|
-
count: z.ZodMiniNumber<number>;
|
|
806
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
807
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
808
|
-
}, z.core.$strip>>;
|
|
809
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
810
|
-
}, z.core.$strip>>>;
|
|
811
757
|
receipt: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
812
758
|
blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
813
759
|
blockNumber: z.ZodMiniNumber<number>;
|
|
814
760
|
contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
815
761
|
cumulativeGasUsed: z.ZodMiniNumber<number>;
|
|
816
762
|
effectiveGasPrice: z.ZodMiniString<string>;
|
|
817
|
-
feeAmount: z.
|
|
763
|
+
feeAmount: z.ZodMiniObject<{
|
|
764
|
+
baseUnits: z.ZodMiniString<string>;
|
|
765
|
+
currency: z.ZodMiniString<string>;
|
|
766
|
+
decimals: z.ZodMiniNumber<number>;
|
|
767
|
+
formatted: z.ZodMiniString<string>;
|
|
768
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
769
|
+
amount: z.ZodMiniString<string>;
|
|
770
|
+
currency: z.ZodMiniString<string>;
|
|
771
|
+
}, z.core.$strip>>>;
|
|
772
|
+
}, z.core.$strip>;
|
|
818
773
|
feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
819
|
-
feeToken: z.ZodMiniOptional<z.
|
|
774
|
+
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
775
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
776
|
+
currency: z.ZodMiniString<string>;
|
|
777
|
+
decimals: z.ZodMiniNumber<number>;
|
|
778
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
779
|
+
name: z.ZodMiniString<string>;
|
|
780
|
+
symbol: z.ZodMiniString<string>;
|
|
781
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
782
|
+
}, z.core.$strip>>>;
|
|
820
783
|
gasUsed: z.ZodMiniNumber<number>;
|
|
821
784
|
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
822
785
|
logs: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -832,26 +795,11 @@ export declare namespace schema {
|
|
|
832
795
|
transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
833
796
|
}, z.core.$loose>>;
|
|
834
797
|
meta: z.ZodMiniObject<{
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
decimals: z.ZodMiniNumber<number>;
|
|
841
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
842
|
-
id: z.ZodMiniString<string>;
|
|
843
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
844
|
-
name: z.ZodMiniString<string>;
|
|
845
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
846
|
-
symbol: z.ZodMiniString<string>;
|
|
847
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
848
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
849
|
-
count: z.ZodMiniNumber<number>;
|
|
850
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
851
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
852
|
-
}, z.core.$strip>>;
|
|
853
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
854
|
-
}, z.core.$strip>>>;
|
|
798
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
799
|
+
asOf: z.ZodMiniString<string>;
|
|
800
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
801
|
+
source: z.ZodMiniString<string>;
|
|
802
|
+
}, z.core.$strip>>;
|
|
855
803
|
rpc: z.ZodMiniObject<{
|
|
856
804
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
857
805
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -1172,7 +1120,15 @@ export declare function transactions(): import("hono/hono-base").HonoBase<App.En
|
|
|
1172
1120
|
to: `0x${string}` | null;
|
|
1173
1121
|
}[] | undefined;
|
|
1174
1122
|
chainId?: number | undefined;
|
|
1175
|
-
feeToken?:
|
|
1123
|
+
feeToken?: {
|
|
1124
|
+
address: `0x${string}`;
|
|
1125
|
+
currency: string;
|
|
1126
|
+
decimals: number;
|
|
1127
|
+
logoUri?: string | undefined;
|
|
1128
|
+
name: string;
|
|
1129
|
+
symbol: string;
|
|
1130
|
+
verified?: boolean | undefined;
|
|
1131
|
+
} | undefined;
|
|
1176
1132
|
gas: number;
|
|
1177
1133
|
gasPrice?: string | undefined;
|
|
1178
1134
|
hash: `0x${string}`;
|
|
@@ -1181,35 +1137,32 @@ export declare function transactions(): import("hono/hono-base").HonoBase<App.En
|
|
|
1181
1137
|
maxFeePerGas?: string | undefined;
|
|
1182
1138
|
maxPriorityFeePerGas?: string | undefined;
|
|
1183
1139
|
meta: {
|
|
1184
|
-
feeToken?: {
|
|
1185
|
-
address: `0x${string}`;
|
|
1186
|
-
admin?: `0x${string}` | undefined;
|
|
1187
|
-
currency: string;
|
|
1188
|
-
createdAt?: string | undefined;
|
|
1189
|
-
decimals: number;
|
|
1190
|
-
holderCount?: number | undefined;
|
|
1191
|
-
id: string;
|
|
1192
|
-
logoUri?: string | undefined;
|
|
1193
|
-
name: string;
|
|
1194
|
-
quoteToken?: `0x${string}` | undefined;
|
|
1195
|
-
symbol: string;
|
|
1196
|
-
totalSupply?: string | undefined;
|
|
1197
|
-
transferStats?: {
|
|
1198
|
-
count: number;
|
|
1199
|
-
firstAt: string | null;
|
|
1200
|
-
lastAt: string | null;
|
|
1201
|
-
} | undefined;
|
|
1202
|
-
verified: boolean;
|
|
1203
|
-
} | undefined;
|
|
1204
1140
|
receipt?: {
|
|
1205
1141
|
blockHash: `0x${string}` | null;
|
|
1206
1142
|
blockNumber: number;
|
|
1207
1143
|
contractAddress: `0x${string}` | null;
|
|
1208
1144
|
cumulativeGasUsed: number;
|
|
1209
1145
|
effectiveGasPrice: string;
|
|
1210
|
-
feeAmount:
|
|
1146
|
+
feeAmount: {
|
|
1147
|
+
baseUnits: string;
|
|
1148
|
+
currency: string;
|
|
1149
|
+
decimals: number;
|
|
1150
|
+
formatted: string;
|
|
1151
|
+
valuation?: {
|
|
1152
|
+
amount: string;
|
|
1153
|
+
currency: string;
|
|
1154
|
+
} | null | undefined;
|
|
1155
|
+
};
|
|
1211
1156
|
feePayer?: `0x${string}` | undefined;
|
|
1212
|
-
feeToken?:
|
|
1157
|
+
feeToken?: {
|
|
1158
|
+
address: `0x${string}`;
|
|
1159
|
+
currency: string;
|
|
1160
|
+
decimals: number;
|
|
1161
|
+
logoUri?: string | undefined;
|
|
1162
|
+
name: string;
|
|
1163
|
+
symbol: string;
|
|
1164
|
+
verified?: boolean | undefined;
|
|
1165
|
+
} | undefined;
|
|
1213
1166
|
gasUsed: number;
|
|
1214
1167
|
id: `0x${string}`;
|
|
1215
1168
|
logs: {
|
|
@@ -1226,25 +1179,10 @@ export declare function transactions(): import("hono/hono-base").HonoBase<App.En
|
|
|
1226
1179
|
transactionIndex: `0x${string}` | null;
|
|
1227
1180
|
}[];
|
|
1228
1181
|
meta: {
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
createdAt?: string | undefined;
|
|
1234
|
-
decimals: number;
|
|
1235
|
-
holderCount?: number | undefined;
|
|
1236
|
-
id: string;
|
|
1237
|
-
logoUri?: string | undefined;
|
|
1238
|
-
name: string;
|
|
1239
|
-
quoteToken?: `0x${string}` | undefined;
|
|
1240
|
-
symbol: string;
|
|
1241
|
-
totalSupply?: string | undefined;
|
|
1242
|
-
transferStats?: {
|
|
1243
|
-
count: number;
|
|
1244
|
-
firstAt: string | null;
|
|
1245
|
-
lastAt: string | null;
|
|
1246
|
-
} | undefined;
|
|
1247
|
-
verified: boolean;
|
|
1182
|
+
pricing?: {
|
|
1183
|
+
asOf: string;
|
|
1184
|
+
basis: "nominal";
|
|
1185
|
+
source: string;
|
|
1248
1186
|
} | undefined;
|
|
1249
1187
|
rpc: {
|
|
1250
1188
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1614,7 +1552,15 @@ export declare function transactions(): import("hono/hono-base").HonoBase<App.En
|
|
|
1614
1552
|
to: `0x${string}` | null;
|
|
1615
1553
|
}[] | undefined;
|
|
1616
1554
|
chainId?: number | undefined;
|
|
1617
|
-
feeToken?:
|
|
1555
|
+
feeToken?: {
|
|
1556
|
+
address: `0x${string}`;
|
|
1557
|
+
currency: string;
|
|
1558
|
+
decimals: number;
|
|
1559
|
+
logoUri?: string | undefined;
|
|
1560
|
+
name: string;
|
|
1561
|
+
symbol: string;
|
|
1562
|
+
verified?: boolean | undefined;
|
|
1563
|
+
} | undefined;
|
|
1618
1564
|
gas: number;
|
|
1619
1565
|
gasPrice?: string | undefined;
|
|
1620
1566
|
hash: `0x${string}`;
|
|
@@ -1623,35 +1569,32 @@ export declare function transactions(): import("hono/hono-base").HonoBase<App.En
|
|
|
1623
1569
|
maxFeePerGas?: string | undefined;
|
|
1624
1570
|
maxPriorityFeePerGas?: string | undefined;
|
|
1625
1571
|
meta: {
|
|
1626
|
-
feeToken?: {
|
|
1627
|
-
address: `0x${string}`;
|
|
1628
|
-
admin?: `0x${string}` | undefined;
|
|
1629
|
-
currency: string;
|
|
1630
|
-
createdAt?: string | undefined;
|
|
1631
|
-
decimals: number;
|
|
1632
|
-
holderCount?: number | undefined;
|
|
1633
|
-
id: string;
|
|
1634
|
-
logoUri?: string | undefined;
|
|
1635
|
-
name: string;
|
|
1636
|
-
quoteToken?: `0x${string}` | undefined;
|
|
1637
|
-
symbol: string;
|
|
1638
|
-
totalSupply?: string | undefined;
|
|
1639
|
-
transferStats?: {
|
|
1640
|
-
count: number;
|
|
1641
|
-
firstAt: string | null;
|
|
1642
|
-
lastAt: string | null;
|
|
1643
|
-
} | undefined;
|
|
1644
|
-
verified: boolean;
|
|
1645
|
-
} | undefined;
|
|
1646
1572
|
receipt?: {
|
|
1647
1573
|
blockHash: `0x${string}` | null;
|
|
1648
1574
|
blockNumber: number;
|
|
1649
1575
|
contractAddress: `0x${string}` | null;
|
|
1650
1576
|
cumulativeGasUsed: number;
|
|
1651
1577
|
effectiveGasPrice: string;
|
|
1652
|
-
feeAmount:
|
|
1578
|
+
feeAmount: {
|
|
1579
|
+
baseUnits: string;
|
|
1580
|
+
currency: string;
|
|
1581
|
+
decimals: number;
|
|
1582
|
+
formatted: string;
|
|
1583
|
+
valuation?: {
|
|
1584
|
+
amount: string;
|
|
1585
|
+
currency: string;
|
|
1586
|
+
} | null | undefined;
|
|
1587
|
+
};
|
|
1653
1588
|
feePayer?: `0x${string}` | undefined;
|
|
1654
|
-
feeToken?:
|
|
1589
|
+
feeToken?: {
|
|
1590
|
+
address: `0x${string}`;
|
|
1591
|
+
currency: string;
|
|
1592
|
+
decimals: number;
|
|
1593
|
+
logoUri?: string | undefined;
|
|
1594
|
+
name: string;
|
|
1595
|
+
symbol: string;
|
|
1596
|
+
verified?: boolean | undefined;
|
|
1597
|
+
} | undefined;
|
|
1655
1598
|
gasUsed: number;
|
|
1656
1599
|
id: `0x${string}`;
|
|
1657
1600
|
logs: {
|
|
@@ -1668,25 +1611,10 @@ export declare function transactions(): import("hono/hono-base").HonoBase<App.En
|
|
|
1668
1611
|
transactionIndex: `0x${string}` | null;
|
|
1669
1612
|
}[];
|
|
1670
1613
|
meta: {
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
createdAt?: string | undefined;
|
|
1676
|
-
decimals: number;
|
|
1677
|
-
holderCount?: number | undefined;
|
|
1678
|
-
id: string;
|
|
1679
|
-
logoUri?: string | undefined;
|
|
1680
|
-
name: string;
|
|
1681
|
-
quoteToken?: `0x${string}` | undefined;
|
|
1682
|
-
symbol: string;
|
|
1683
|
-
totalSupply?: string | undefined;
|
|
1684
|
-
transferStats?: {
|
|
1685
|
-
count: number;
|
|
1686
|
-
firstAt: string | null;
|
|
1687
|
-
lastAt: string | null;
|
|
1688
|
-
} | undefined;
|
|
1689
|
-
verified: boolean;
|
|
1614
|
+
pricing?: {
|
|
1615
|
+
asOf: string;
|
|
1616
|
+
basis: "nominal";
|
|
1617
|
+
source: string;
|
|
1690
1618
|
} | undefined;
|
|
1691
1619
|
rpc: {
|
|
1692
1620
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1818,14 +1746,13 @@ export declare function transactions(): import("hono/hono-base").HonoBase<App.En
|
|
|
1818
1746
|
};
|
|
1819
1747
|
}, "/", "/v1/transactions/:transactionHash">;
|
|
1820
1748
|
/**
|
|
1821
|
-
* Lists humanized transactions and
|
|
1822
|
-
*
|
|
1823
|
-
*
|
|
1824
|
-
* receipts.
|
|
1749
|
+
* Lists humanized transactions with required fee-token metadata and opt-in
|
|
1750
|
+
* resources. Status filters page through receipts because execution status
|
|
1751
|
+
* lives there.
|
|
1825
1752
|
*/
|
|
1826
1753
|
export declare function listTransactions(c: Context<App.Environment>, options: listTransactions.Options): Promise<{
|
|
1827
1754
|
nextCursor: string | null;
|
|
1828
|
-
data: {
|
|
1755
|
+
data: enrichFeeTokens.Output<Omit<{
|
|
1829
1756
|
blockHash: `0x${string}` | null;
|
|
1830
1757
|
blockNumber: number | null;
|
|
1831
1758
|
calls?: {
|
|
@@ -1833,7 +1760,15 @@ export declare function listTransactions(c: Context<App.Environment>, options: l
|
|
|
1833
1760
|
to: `0x${string}` | null;
|
|
1834
1761
|
}[] | undefined;
|
|
1835
1762
|
chainId?: number | undefined;
|
|
1836
|
-
feeToken?:
|
|
1763
|
+
feeToken?: {
|
|
1764
|
+
address: `0x${string}`;
|
|
1765
|
+
currency: string;
|
|
1766
|
+
decimals: number;
|
|
1767
|
+
logoUri?: string | undefined;
|
|
1768
|
+
name: string;
|
|
1769
|
+
symbol: string;
|
|
1770
|
+
verified?: boolean | undefined;
|
|
1771
|
+
} | undefined;
|
|
1837
1772
|
gas: number;
|
|
1838
1773
|
gasPrice?: string | undefined;
|
|
1839
1774
|
hash: `0x${string}`;
|
|
@@ -1842,35 +1777,32 @@ export declare function listTransactions(c: Context<App.Environment>, options: l
|
|
|
1842
1777
|
maxFeePerGas?: string | undefined;
|
|
1843
1778
|
maxPriorityFeePerGas?: string | undefined;
|
|
1844
1779
|
meta: {
|
|
1845
|
-
feeToken?: {
|
|
1846
|
-
address: `0x${string}`;
|
|
1847
|
-
admin?: `0x${string}` | undefined;
|
|
1848
|
-
currency: string;
|
|
1849
|
-
createdAt?: string | undefined;
|
|
1850
|
-
decimals: number;
|
|
1851
|
-
holderCount?: number | undefined;
|
|
1852
|
-
id: string;
|
|
1853
|
-
logoUri?: string | undefined;
|
|
1854
|
-
name: string;
|
|
1855
|
-
quoteToken?: `0x${string}` | undefined;
|
|
1856
|
-
symbol: string;
|
|
1857
|
-
totalSupply?: string | undefined;
|
|
1858
|
-
transferStats?: {
|
|
1859
|
-
count: number;
|
|
1860
|
-
firstAt: string | null;
|
|
1861
|
-
lastAt: string | null;
|
|
1862
|
-
} | undefined;
|
|
1863
|
-
verified: boolean;
|
|
1864
|
-
} | undefined;
|
|
1865
1780
|
receipt?: {
|
|
1866
1781
|
blockHash: `0x${string}` | null;
|
|
1867
1782
|
blockNumber: number;
|
|
1868
1783
|
contractAddress: `0x${string}` | null;
|
|
1869
1784
|
cumulativeGasUsed: number;
|
|
1870
1785
|
effectiveGasPrice: string;
|
|
1871
|
-
feeAmount:
|
|
1786
|
+
feeAmount: {
|
|
1787
|
+
baseUnits: string;
|
|
1788
|
+
currency: string;
|
|
1789
|
+
decimals: number;
|
|
1790
|
+
formatted: string;
|
|
1791
|
+
valuation?: {
|
|
1792
|
+
amount: string;
|
|
1793
|
+
currency: string;
|
|
1794
|
+
} | null | undefined;
|
|
1795
|
+
};
|
|
1872
1796
|
feePayer?: `0x${string}` | undefined;
|
|
1873
|
-
feeToken?:
|
|
1797
|
+
feeToken?: {
|
|
1798
|
+
address: `0x${string}`;
|
|
1799
|
+
currency: string;
|
|
1800
|
+
decimals: number;
|
|
1801
|
+
logoUri?: string | undefined;
|
|
1802
|
+
name: string;
|
|
1803
|
+
symbol: string;
|
|
1804
|
+
verified?: boolean | undefined;
|
|
1805
|
+
} | undefined;
|
|
1874
1806
|
gasUsed: number;
|
|
1875
1807
|
id: `0x${string}`;
|
|
1876
1808
|
logs: {
|
|
@@ -1887,25 +1819,10 @@ export declare function listTransactions(c: Context<App.Environment>, options: l
|
|
|
1887
1819
|
transactionIndex: `0x${string}` | null;
|
|
1888
1820
|
}[];
|
|
1889
1821
|
meta: {
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
createdAt?: string | undefined;
|
|
1895
|
-
decimals: number;
|
|
1896
|
-
holderCount?: number | undefined;
|
|
1897
|
-
id: string;
|
|
1898
|
-
logoUri?: string | undefined;
|
|
1899
|
-
name: string;
|
|
1900
|
-
quoteToken?: `0x${string}` | undefined;
|
|
1901
|
-
symbol: string;
|
|
1902
|
-
totalSupply?: string | undefined;
|
|
1903
|
-
transferStats?: {
|
|
1904
|
-
count: number;
|
|
1905
|
-
firstAt: string | null;
|
|
1906
|
-
lastAt: string | null;
|
|
1907
|
-
} | undefined;
|
|
1908
|
-
verified: boolean;
|
|
1822
|
+
pricing?: {
|
|
1823
|
+
asOf: string;
|
|
1824
|
+
basis: "nominal";
|
|
1825
|
+
source: string;
|
|
1909
1826
|
} | undefined;
|
|
1910
1827
|
rpc: {
|
|
1911
1828
|
[x: string]: unknown;
|
|
@@ -2020,222 +1937,39 @@ export declare function listTransactions(c: Context<App.Environment>, options: l
|
|
|
2020
1937
|
validAfter?: string | null | undefined;
|
|
2021
1938
|
validBefore?: string | null | undefined;
|
|
2022
1939
|
value: string;
|
|
2023
|
-
}[];
|
|
1940
|
+
}, "feeToken">>[];
|
|
2024
1941
|
}>;
|
|
2025
1942
|
export declare namespace listTransactions {
|
|
2026
1943
|
type Options = getTransactions.Options & {
|
|
2027
|
-
/** Optional
|
|
1944
|
+
/** Optional receipt and curated token fields to embed. */
|
|
2028
1945
|
include: readonly z.output<typeof schema.getTransaction.Include>[];
|
|
2029
1946
|
};
|
|
2030
1947
|
}
|
|
2031
|
-
/**
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
1948
|
+
/** Resolves required fee-token metadata and optional curated fields without mutating input rows. */
|
|
1949
|
+
export declare function enrichFeeTokens<const row extends object>(c: Context<App.Environment>, options: enrichFeeTokens.Options<row>): Promise<enrichFeeTokens.Output<row>[]>;
|
|
1950
|
+
export declare namespace enrichFeeTokens {
|
|
1951
|
+
/** Fee-token enrichment inputs. */
|
|
1952
|
+
type Options<row extends object> = {
|
|
1953
|
+
/** Chain used for token metadata resolution. */
|
|
1954
|
+
chainId: z.output<typeof Schema.ChainId>;
|
|
1955
|
+
/** Requested optional token fields. */
|
|
1956
|
+
include: readonly string[];
|
|
1957
|
+
/** Rows carrying unresolved fee-token addresses. */
|
|
1958
|
+
rows: readonly (row & Unresolved)[];
|
|
1959
|
+
};
|
|
1960
|
+
/** A copied row whose fee-token address has been replaced by metadata. */
|
|
1961
|
+
type Output<row> = Omit<row, 'feeToken'> & {
|
|
1962
|
+
/** Resolved fee-token metadata when the row declares a fee token. */
|
|
1963
|
+
feeToken?: z.output<typeof Tokens.schema.TokenReference> | undefined;
|
|
1964
|
+
};
|
|
1965
|
+
/** Row field before fee-token metadata resolution. */
|
|
1966
|
+
type Unresolved = {
|
|
1967
|
+
/** Fee-token address from indexed or RPC data. */
|
|
1968
|
+
feeToken?: z.output<typeof Schema.Address> | undefined;
|
|
1969
|
+
};
|
|
1970
|
+
}
|
|
2042
1971
|
export declare function getTransactions(c: Context<App.Environment>, options: getTransactions.Options): Promise<{
|
|
2043
|
-
data:
|
|
2044
|
-
blockHash: `0x${string}` | null;
|
|
2045
|
-
blockNumber: number | null;
|
|
2046
|
-
calls?: {
|
|
2047
|
-
data?: `0x${string}` | undefined;
|
|
2048
|
-
to: `0x${string}` | null;
|
|
2049
|
-
}[] | undefined;
|
|
2050
|
-
chainId?: number | undefined;
|
|
2051
|
-
feeToken?: `0x${string}` | undefined;
|
|
2052
|
-
gas: number;
|
|
2053
|
-
gasPrice?: string | undefined;
|
|
2054
|
-
hash: `0x${string}`;
|
|
2055
|
-
id: `0x${string}`;
|
|
2056
|
-
input?: `0x${string}` | undefined;
|
|
2057
|
-
maxFeePerGas?: string | undefined;
|
|
2058
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
2059
|
-
meta: {
|
|
2060
|
-
feeToken?: {
|
|
2061
|
-
address: `0x${string}`;
|
|
2062
|
-
admin?: `0x${string}` | undefined;
|
|
2063
|
-
currency: string;
|
|
2064
|
-
createdAt?: string | undefined;
|
|
2065
|
-
decimals: number;
|
|
2066
|
-
holderCount?: number | undefined;
|
|
2067
|
-
id: string;
|
|
2068
|
-
logoUri?: string | undefined;
|
|
2069
|
-
name: string;
|
|
2070
|
-
quoteToken?: `0x${string}` | undefined;
|
|
2071
|
-
symbol: string;
|
|
2072
|
-
totalSupply?: string | undefined;
|
|
2073
|
-
transferStats?: {
|
|
2074
|
-
count: number;
|
|
2075
|
-
firstAt: string | null;
|
|
2076
|
-
lastAt: string | null;
|
|
2077
|
-
} | undefined;
|
|
2078
|
-
verified: boolean;
|
|
2079
|
-
} | undefined;
|
|
2080
|
-
receipt?: {
|
|
2081
|
-
blockHash: `0x${string}` | null;
|
|
2082
|
-
blockNumber: number;
|
|
2083
|
-
contractAddress: `0x${string}` | null;
|
|
2084
|
-
cumulativeGasUsed: number;
|
|
2085
|
-
effectiveGasPrice: string;
|
|
2086
|
-
feeAmount: string;
|
|
2087
|
-
feePayer?: `0x${string}` | undefined;
|
|
2088
|
-
feeToken?: `0x${string}` | undefined;
|
|
2089
|
-
gasUsed: number;
|
|
2090
|
-
id: `0x${string}`;
|
|
2091
|
-
logs: {
|
|
2092
|
-
[x: string]: unknown;
|
|
2093
|
-
address: `0x${string}`;
|
|
2094
|
-
blockHash: `0x${string}` | null;
|
|
2095
|
-
blockNumber: `0x${string}` | null;
|
|
2096
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
2097
|
-
data: `0x${string}`;
|
|
2098
|
-
logIndex: `0x${string}` | null;
|
|
2099
|
-
removed: boolean;
|
|
2100
|
-
topics: `0x${string}`[];
|
|
2101
|
-
transactionHash: `0x${string}` | null;
|
|
2102
|
-
transactionIndex: `0x${string}` | null;
|
|
2103
|
-
}[];
|
|
2104
|
-
meta: {
|
|
2105
|
-
feeToken?: {
|
|
2106
|
-
address: `0x${string}`;
|
|
2107
|
-
admin?: `0x${string}` | undefined;
|
|
2108
|
-
currency: string;
|
|
2109
|
-
createdAt?: string | undefined;
|
|
2110
|
-
decimals: number;
|
|
2111
|
-
holderCount?: number | undefined;
|
|
2112
|
-
id: string;
|
|
2113
|
-
logoUri?: string | undefined;
|
|
2114
|
-
name: string;
|
|
2115
|
-
quoteToken?: `0x${string}` | undefined;
|
|
2116
|
-
symbol: string;
|
|
2117
|
-
totalSupply?: string | undefined;
|
|
2118
|
-
transferStats?: {
|
|
2119
|
-
count: number;
|
|
2120
|
-
firstAt: string | null;
|
|
2121
|
-
lastAt: string | null;
|
|
2122
|
-
} | undefined;
|
|
2123
|
-
verified: boolean;
|
|
2124
|
-
} | undefined;
|
|
2125
|
-
rpc: {
|
|
2126
|
-
[x: string]: unknown;
|
|
2127
|
-
blobGasPrice?: `0x${string}` | undefined;
|
|
2128
|
-
blobGasUsed?: `0x${string}` | undefined;
|
|
2129
|
-
blockHash: `0x${string}` | null;
|
|
2130
|
-
blockNumber: `0x${string}`;
|
|
2131
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
2132
|
-
contractAddress?: `0x${string}` | null | undefined;
|
|
2133
|
-
cumulativeGasUsed: `0x${string}`;
|
|
2134
|
-
effectiveGasPrice: `0x${string}`;
|
|
2135
|
-
feePayer?: `0x${string}` | null | undefined;
|
|
2136
|
-
feeToken?: `0x${string}` | null | undefined;
|
|
2137
|
-
from: `0x${string}`;
|
|
2138
|
-
gasUsed: `0x${string}`;
|
|
2139
|
-
logs: {
|
|
2140
|
-
[x: string]: unknown;
|
|
2141
|
-
address: `0x${string}`;
|
|
2142
|
-
blockHash: `0x${string}` | null;
|
|
2143
|
-
blockNumber: `0x${string}` | null;
|
|
2144
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
2145
|
-
data: `0x${string}`;
|
|
2146
|
-
logIndex: `0x${string}` | null;
|
|
2147
|
-
removed: boolean;
|
|
2148
|
-
topics: `0x${string}`[];
|
|
2149
|
-
transactionHash: `0x${string}` | null;
|
|
2150
|
-
transactionIndex: `0x${string}` | null;
|
|
2151
|
-
}[];
|
|
2152
|
-
logsBloom?: `0x${string}` | undefined;
|
|
2153
|
-
root?: `0x${string}` | undefined;
|
|
2154
|
-
status: `0x${string}`;
|
|
2155
|
-
to: `0x${string}` | null;
|
|
2156
|
-
transactionHash: `0x${string}`;
|
|
2157
|
-
transactionIndex: `0x${string}`;
|
|
2158
|
-
type: `0x${string}`;
|
|
2159
|
-
};
|
|
2160
|
-
};
|
|
2161
|
-
recipient: `0x${string}` | null;
|
|
2162
|
-
sender: `0x${string}`;
|
|
2163
|
-
status: "reverted" | "success";
|
|
2164
|
-
timestamp: string | null;
|
|
2165
|
-
transactionHash: `0x${string}`;
|
|
2166
|
-
transactionIndex: number;
|
|
2167
|
-
type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
|
|
2168
|
-
} | undefined;
|
|
2169
|
-
rpc: {
|
|
2170
|
-
[x: string]: unknown;
|
|
2171
|
-
aaAuthorizationList?: {
|
|
2172
|
-
[x: string]: unknown;
|
|
2173
|
-
}[] | undefined;
|
|
2174
|
-
accessList?: {
|
|
2175
|
-
[x: string]: unknown;
|
|
2176
|
-
address: `0x${string}`;
|
|
2177
|
-
storageKeys: `0x${string}`[];
|
|
2178
|
-
}[] | undefined;
|
|
2179
|
-
authorizationList?: {
|
|
2180
|
-
[x: string]: unknown;
|
|
2181
|
-
}[] | undefined;
|
|
2182
|
-
blobVersionedHashes?: `0x${string}`[] | undefined;
|
|
2183
|
-
blockHash: `0x${string}` | null;
|
|
2184
|
-
blockNumber: `0x${string}` | null;
|
|
2185
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
2186
|
-
calls?: {
|
|
2187
|
-
[x: string]: unknown;
|
|
2188
|
-
data?: `0x${string}` | null | undefined;
|
|
2189
|
-
input?: `0x${string}` | null | undefined;
|
|
2190
|
-
to?: `0x${string}` | null | undefined;
|
|
2191
|
-
value?: `0x${string}` | null | undefined;
|
|
2192
|
-
}[] | null | undefined;
|
|
2193
|
-
chainId?: `0x${string}` | undefined;
|
|
2194
|
-
feePayerSignature?: {
|
|
2195
|
-
[x: string]: unknown;
|
|
2196
|
-
type?: string | undefined;
|
|
2197
|
-
} | null | undefined;
|
|
2198
|
-
feeToken?: `0x${string}` | null | undefined;
|
|
2199
|
-
from: `0x${string}`;
|
|
2200
|
-
gas: `0x${string}`;
|
|
2201
|
-
gasPrice?: `0x${string}` | undefined;
|
|
2202
|
-
hash: `0x${string}`;
|
|
2203
|
-
input?: `0x${string}` | undefined;
|
|
2204
|
-
keyAuthorization?: {
|
|
2205
|
-
[x: string]: unknown;
|
|
2206
|
-
} | null | undefined;
|
|
2207
|
-
maxFeePerBlobGas?: `0x${string}` | undefined;
|
|
2208
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
|
2209
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
|
2210
|
-
nonce: `0x${string}`;
|
|
2211
|
-
nonceKey?: `0x${string}` | undefined;
|
|
2212
|
-
r?: `0x${string}` | undefined;
|
|
2213
|
-
s?: `0x${string}` | undefined;
|
|
2214
|
-
signature?: {
|
|
2215
|
-
[x: string]: unknown;
|
|
2216
|
-
type?: string | undefined;
|
|
2217
|
-
} | undefined;
|
|
2218
|
-
to?: `0x${string}` | null | undefined;
|
|
2219
|
-
transactionIndex: `0x${string}` | null;
|
|
2220
|
-
type: `0x${string}`;
|
|
2221
|
-
v?: `0x${string}` | undefined;
|
|
2222
|
-
validAfter?: `0x${string}` | null | undefined;
|
|
2223
|
-
validBefore?: `0x${string}` | null | undefined;
|
|
2224
|
-
value?: `0x${string}` | undefined;
|
|
2225
|
-
yParity?: `0x${string}` | undefined;
|
|
2226
|
-
};
|
|
2227
|
-
};
|
|
2228
|
-
nonce: number;
|
|
2229
|
-
nonceKey?: `0x${string}` | undefined;
|
|
2230
|
-
recipient: `0x${string}` | null;
|
|
2231
|
-
sender: `0x${string}`;
|
|
2232
|
-
timestamp: string | null;
|
|
2233
|
-
transactionIndex: number | null;
|
|
2234
|
-
type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
|
|
2235
|
-
validAfter?: string | null | undefined;
|
|
2236
|
-
validBefore?: string | null | undefined;
|
|
2237
|
-
value: string;
|
|
2238
|
-
}[];
|
|
1972
|
+
data: humanizeTransaction.Output[];
|
|
2239
1973
|
nextCursor: string | null;
|
|
2240
1974
|
}>;
|
|
2241
1975
|
/**
|
|
@@ -2305,7 +2039,7 @@ export declare namespace scanTransactions {
|
|
|
2305
2039
|
/** Keyset position of the row. */
|
|
2306
2040
|
cursor: readonly [blockNumber: number, transactionIndex: number];
|
|
2307
2041
|
/** The humanized transaction (same shape the read endpoint returns). */
|
|
2308
|
-
data:
|
|
2042
|
+
data: humanizeTransaction.Output;
|
|
2309
2043
|
};
|
|
2310
2044
|
/** A page of scanned transactions. */
|
|
2311
2045
|
type Page = {
|
|
@@ -2322,6 +2056,13 @@ export declare namespace scanTransactions {
|
|
|
2322
2056
|
* the detail endpoint (RPC source) and the list endpoint (reconstructed from the
|
|
2323
2057
|
* indexer), so both expose an identical shape.
|
|
2324
2058
|
*/
|
|
2325
|
-
export declare function humanizeTransaction(rpc: z.output<typeof schema.Rpc.Transaction>):
|
|
2059
|
+
export declare function humanizeTransaction(rpc: z.output<typeof schema.Rpc.Transaction>): humanizeTransaction.Output;
|
|
2060
|
+
export declare namespace humanizeTransaction {
|
|
2061
|
+
/** Humanized fields before asynchronous fee-token metadata resolution. */
|
|
2062
|
+
type Output = Omit<z.output<typeof schema.Transaction>, 'feeToken'> & {
|
|
2063
|
+
/** Unresolved fee-token address from the RPC transaction. */
|
|
2064
|
+
feeToken?: z.output<typeof Schema.Address> | undefined;
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2326
2067
|
export {};
|
|
2327
2068
|
//# sourceMappingURL=transactions.d.ts.map
|