tapimo 0.5.3 → 0.7.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 +15830 -7220
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +9 -1
- package/dist/App.js.map +1 -1
- package/dist/Scope.d.ts +4 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +5 -0
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +1011 -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/api-keys.d.ts +2 -1
- package/dist/admin/apps/api-keys.d.ts.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/organizations.d.ts +124 -1
- package/dist/admin/apps/organizations.d.ts.map +1 -1
- package/dist/admin/apps/organizations.js +97 -6
- package/dist/admin/apps/organizations.js.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +526 -1
- 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 +95 -75
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/Analytics.d.ts.map +1 -1
- package/dist/analytics/Analytics.js +20 -0
- package/dist/analytics/Analytics.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts +18 -0
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +36 -7
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/apps/data/App.d.ts +6260 -4924
- 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 +194 -16
- 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 +3599 -1382
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +250 -88
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +872 -251
- 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 +77 -26
- 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/blocks.d.ts +39 -39
- package/dist/apps/data/routes/coingecko.d.ts +54 -54
- package/dist/apps/data/routes/exchanges.d.ts +856 -105
- 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 +81 -67
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
- package/dist/apps/data/routes/fee-amm.js +76 -91
- package/dist/apps/data/routes/fee-amm.js.map +1 -1
- package/dist/apps/data/routes/funding.d.ts +80 -36
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +65 -31
- package/dist/apps/data/routes/funding.js.map +1 -1
- 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 +167 -174
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +15 -13
- 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 +157 -81
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +272 -130
- 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 +36 -36
- 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 +103 -123
- 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 +2 -1
- package/dist/apps/index.d.ts.map +1 -1
- package/dist/apps/index.js +2 -1
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/management/App.d.ts +8554 -1692
- 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 +7 -0
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +17 -3
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +157 -162
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +31 -23
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +232 -0
- package/dist/apps/management/routes/faucet.d.ts.map +1 -0
- package/dist/apps/management/routes/faucet.js +154 -0
- package/dist/apps/management/routes/faucet.js.map +1 -0
- package/dist/apps/management/routes/invitations.d.ts +60 -60
- package/dist/apps/management/routes/invite-links.d.ts +49 -20
- 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 +6 -6
- package/dist/apps/management/routes/members.d.ts +6 -6
- package/dist/apps/management/routes/orgs.d.ts +42 -42
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +5 -0
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +44 -44
- package/dist/apps/management/routes/usage.d.ts +3 -0
- 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/mpp/App.d.ts +363 -0
- package/dist/apps/mpp/App.d.ts.map +1 -0
- package/dist/apps/mpp/App.js +72 -0
- package/dist/apps/mpp/App.js.map +1 -0
- package/dist/apps/mpp/Mpp.d.ts +178 -0
- package/dist/apps/mpp/Mpp.d.ts.map +1 -0
- package/dist/apps/mpp/Mpp.js +183 -0
- package/dist/apps/mpp/Mpp.js.map +1 -0
- package/dist/apps/mpp/index.d.ts +3 -0
- package/dist/apps/mpp/index.d.ts.map +1 -0
- package/dist/apps/mpp/index.js +3 -0
- package/dist/apps/mpp/index.js.map +1 -0
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +56 -9
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/db/Db.d.ts +6 -0
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +110 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +53 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +56 -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/enabledBillingSources.d.ts +73 -0
- package/dist/db/tables/enabledBillingSources.d.ts.map +1 -0
- package/dist/db/tables/enabledBillingSources.js +69 -0
- package/dist/db/tables/enabledBillingSources.js.map +1 -0
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/invitations.js +3 -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/organizations.d.ts +5 -2
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +13 -2
- package/dist/db/tables/organizations.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/handlers/internal/utils.d.ts +1 -16
- package/dist/handlers/internal/utils.d.ts.map +1 -1
- package/dist/handlers/internal/utils.js +17 -6
- package/dist/handlers/internal/utils.js.map +1 -1
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +37 -5
- package/dist/handlers/relay.js.map +1 -1
- package/dist/internal/Auth.d.ts +11 -2
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +14 -47
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/FundingQuotes.d.ts +147 -47
- package/dist/internal/FundingQuotes.d.ts.map +1 -1
- package/dist/internal/FundingQuotes.js +119 -33
- package/dist/internal/FundingQuotes.js.map +1 -1
- package/dist/internal/Log.d.ts +37 -5
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +52 -3
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +24 -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/Response.d.ts +2 -2
- package/dist/internal/Response.d.ts.map +1 -1
- package/dist/internal/Response.js +12 -4
- package/dist/internal/Response.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/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 +7 -2
- package/src/App.test.ts +9 -4
- package/src/App.ts +23 -3
- package/src/Client.test-d.ts +733 -20
- package/src/Scope.ts +5 -0
- package/src/admin/App.test.ts +4 -0
- package/src/admin/App.ts +4 -0
- package/src/admin/apps/early-access.test.ts +125 -0
- package/src/admin/apps/early-access.ts +176 -0
- package/src/admin/apps/organizations.test.ts +86 -2
- package/src/admin/apps/organizations.ts +155 -31
- package/src/admin/apps/scopes.test.ts +5 -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/organizations.test.ts +81 -1
- package/src/admin/ui/src/lib/organizations.ts +92 -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/api-keys.tsx +1 -1
- package/src/admin/ui/src/routes/early-access.tsx +162 -0
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +103 -0
- package/src/admin/ui/src/routes/verified-tokens.tsx +230 -19
- package/src/admin/ui.generated.ts +95 -94
- package/src/analytics/Analytics.test.ts +83 -0
- package/src/analytics/Analytics.ts +20 -0
- package/src/analytics/tables/requestEvents.ts +60 -7
- package/src/apps/composition.test.ts +11 -2
- package/src/apps/data/App.test.ts +1 -1
- package/src/apps/data/App.ts +22 -14
- package/src/apps/data/FundingQuoteProviders.test.ts +297 -4
- package/src/apps/data/FundingQuoteProviders.ts +255 -29
- 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 +177 -3
- package/src/apps/data/routes/activities.ts +441 -132
- package/src/apps/data/routes/addresses.ts +19 -9
- package/src/apps/data/routes/balances.test.ts +148 -11
- package/src/apps/data/routes/balances.ts +140 -51
- package/src/apps/data/routes/exchanges.test.ts +544 -9
- package/src/apps/data/routes/exchanges.ts +690 -103
- package/src/apps/data/routes/fee-amm.test.ts +47 -23
- package/src/apps/data/routes/fee-amm.ts +98 -119
- package/src/apps/data/routes/funding.test.ts +113 -8
- package/src/apps/data/routes/funding.ts +77 -51
- package/src/apps/data/routes/receipts.test.ts +129 -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 +28 -13
- 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 +341 -31
- package/src/apps/data/routes/transfers.ts +358 -158
- package/src/apps/data/routes/valuation.test.ts +437 -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 +2 -1
- package/src/apps/management/App.ts +13 -0
- package/src/apps/management/routes/api-keys.test.ts +14 -0
- package/src/apps/management/routes/api-keys.ts +27 -3
- package/src/apps/management/routes/billing.test.ts +152 -20
- package/src/apps/management/routes/billing.ts +34 -18
- package/src/apps/management/routes/faucet.test.ts +87 -0
- package/src/apps/management/routes/faucet.ts +201 -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 +9 -99
- package/src/apps/management/routes/orgs.test.ts +45 -2
- package/src/apps/management/routes/orgs.ts +6 -0
- package/src/apps/management/routes/scopes.test.ts +1 -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/mpp/App.ts +86 -0
- package/src/apps/mpp/Mpp.test.ts +193 -0
- package/src/apps/mpp/Mpp.ts +353 -0
- package/src/apps/mpp/index.ts +2 -0
- package/src/apps/mpp/internal/Adapter.ts +11 -0
- package/src/apps/mpp/internal/Error.ts +9 -0
- package/src/apps/mpp/internal/Idempotency.ts +7 -0
- package/src/apps/mpp/internal/Screening.ts +10 -0
- package/src/apps/relay/App.test.ts +88 -6
- package/src/apps/relay/App.ts +61 -9
- package/src/db/Db.test.ts +19 -0
- package/src/db/Db.ts +125 -0
- package/src/db/Schema.ts +68 -0
- package/src/db/tables/earlyAccess.ts +86 -0
- package/src/db/tables/enabledBillingSources.test.ts +303 -0
- package/src/db/tables/enabledBillingSources.ts +118 -0
- package/src/db/tables/invitations.ts +3 -0
- package/src/db/tables/inviteLinks.ts +22 -3
- package/src/db/tables/organizations.test.ts +103 -0
- package/src/db/tables/organizations.ts +18 -2
- 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/handlers/internal/utils.ts +22 -6
- package/src/handlers/relay.errors.test.ts +153 -0
- package/src/handlers/relay.ts +42 -7
- package/src/internal/Auth.test.ts +3 -3
- package/src/internal/Auth.ts +15 -47
- package/src/internal/FundingQuotes.test.ts +161 -6
- package/src/internal/FundingQuotes.ts +141 -39
- package/src/internal/Log.test-d.ts +21 -0
- package/src/internal/Log.test.ts +141 -0
- package/src/internal/Log.ts +93 -6
- package/src/internal/MetricSink.test.ts +215 -0
- package/src/internal/MetricSink.ts +24 -0
- package/src/internal/OpenApi.ts +3 -0
- package/src/internal/Response.test.ts +28 -0
- package/src/internal/Response.ts +12 -4
- 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
|
@@ -4,6 +4,8 @@ import * as z from 'zod/mini';
|
|
|
4
4
|
import type * as App from '../../../App.js';
|
|
5
5
|
import * as Response from '../../../internal/Response.js';
|
|
6
6
|
import * as Schema from '../../../internal/Schema.js';
|
|
7
|
+
import * as Transactions from './transactions.js';
|
|
8
|
+
import * as Valuation from './valuation.js';
|
|
7
9
|
/** Zod schemas owned by the receipt handlers. */
|
|
8
10
|
export declare namespace schema {
|
|
9
11
|
/** One event log emitted by a transaction (RPC format). */
|
|
@@ -56,31 +58,13 @@ export declare namespace schema {
|
|
|
56
58
|
type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
|
|
57
59
|
}, z.core.$loose>;
|
|
58
60
|
}
|
|
59
|
-
/**
|
|
60
|
-
* Metadata for a receipt: the verbatim JSON-RPC receipt (always present) plus
|
|
61
|
-
* resources embedded on demand via `include`.
|
|
62
|
-
*/
|
|
61
|
+
/** Receipt metadata containing valuation provenance and the verbatim JSON-RPC receipt. */
|
|
63
62
|
const ReceiptMeta: z.ZodMiniObject<{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
decimals: z.ZodMiniNumber<number>;
|
|
70
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
71
|
-
id: z.ZodMiniString<string>;
|
|
72
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
73
|
-
name: z.ZodMiniString<string>;
|
|
74
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
75
|
-
symbol: z.ZodMiniString<string>;
|
|
76
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
77
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
78
|
-
count: z.ZodMiniNumber<number>;
|
|
79
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
80
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
81
|
-
}, z.core.$strip>>;
|
|
82
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
83
|
-
}, z.core.$strip>>>;
|
|
63
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
64
|
+
asOf: z.ZodMiniISODateTime;
|
|
65
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
66
|
+
source: z.ZodMiniString<string>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
84
68
|
rpc: z.ZodMiniObject<{
|
|
85
69
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
86
70
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -115,11 +99,21 @@ export declare namespace schema {
|
|
|
115
99
|
type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
|
|
116
100
|
}, z.core.$loose>;
|
|
117
101
|
}, z.core.$strip>;
|
|
102
|
+
/** The fee charged to the fee payer, carrying its value in the requested denomination. */
|
|
103
|
+
const FeeAmount: z.ZodMiniObject<{
|
|
104
|
+
baseUnits: z.ZodMiniString<string>;
|
|
105
|
+
currency: z.ZodMiniString<string>;
|
|
106
|
+
decimals: z.ZodMiniNumber<number>;
|
|
107
|
+
formatted: z.ZodMiniString<string>;
|
|
108
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
109
|
+
amount: z.ZodMiniString<string>;
|
|
110
|
+
currency: z.ZodMiniString<string>;
|
|
111
|
+
}, z.core.$strip>>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
118
113
|
/**
|
|
119
114
|
* A humanized transaction receipt: decoded `status`/`type`, plain-number gas
|
|
120
|
-
* and block fields, and decimal-string
|
|
121
|
-
* are surfaced
|
|
122
|
-
* `meta.rpc`.
|
|
115
|
+
* and block fields, a structured fee amount, and a decimal-string gas price.
|
|
116
|
+
* The raw event logs are surfaced under `logs`, and the RPC receipt under `meta.rpc`.
|
|
123
117
|
*/
|
|
124
118
|
const Receipt: z.ZodMiniObject<{
|
|
125
119
|
blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
@@ -127,9 +121,26 @@ export declare namespace schema {
|
|
|
127
121
|
contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
128
122
|
cumulativeGasUsed: z.ZodMiniNumber<number>;
|
|
129
123
|
effectiveGasPrice: z.ZodMiniString<string>;
|
|
130
|
-
feeAmount: z.
|
|
124
|
+
feeAmount: z.ZodMiniObject<{
|
|
125
|
+
baseUnits: z.ZodMiniString<string>;
|
|
126
|
+
currency: z.ZodMiniString<string>;
|
|
127
|
+
decimals: z.ZodMiniNumber<number>;
|
|
128
|
+
formatted: z.ZodMiniString<string>;
|
|
129
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
130
|
+
amount: z.ZodMiniString<string>;
|
|
131
|
+
currency: z.ZodMiniString<string>;
|
|
132
|
+
}, z.core.$strip>>>;
|
|
133
|
+
}, z.core.$strip>;
|
|
131
134
|
feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
132
|
-
feeToken: z.ZodMiniOptional<z.
|
|
135
|
+
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
136
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
137
|
+
currency: z.ZodMiniString<string>;
|
|
138
|
+
decimals: z.ZodMiniNumber<number>;
|
|
139
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
140
|
+
name: z.ZodMiniString<string>;
|
|
141
|
+
symbol: z.ZodMiniString<string>;
|
|
142
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
143
|
+
}, z.core.$strip>>>;
|
|
133
144
|
gasUsed: z.ZodMiniNumber<number>;
|
|
134
145
|
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
135
146
|
logs: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -145,26 +156,11 @@ export declare namespace schema {
|
|
|
145
156
|
transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
146
157
|
}, z.core.$loose>>;
|
|
147
158
|
meta: z.ZodMiniObject<{
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
decimals: z.ZodMiniNumber<number>;
|
|
154
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
155
|
-
id: z.ZodMiniString<string>;
|
|
156
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
157
|
-
name: z.ZodMiniString<string>;
|
|
158
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
159
|
-
symbol: z.ZodMiniString<string>;
|
|
160
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
161
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
162
|
-
count: z.ZodMiniNumber<number>;
|
|
163
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
164
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
165
|
-
}, z.core.$strip>>;
|
|
166
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
167
|
-
}, z.core.$strip>>>;
|
|
159
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
160
|
+
asOf: z.ZodMiniISODateTime;
|
|
161
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
162
|
+
source: z.ZodMiniString<string>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
168
164
|
rpc: z.ZodMiniObject<{
|
|
169
165
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
170
166
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -224,17 +220,18 @@ export declare namespace schema {
|
|
|
224
220
|
const Params: z.ZodMiniObject<{
|
|
225
221
|
transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
226
222
|
}, z.core.$strip>;
|
|
227
|
-
/** Optional
|
|
223
|
+
/** Optional curated token fields that callers opt into via `include`. */
|
|
228
224
|
const Include: z.ZodMiniEnum<{
|
|
229
|
-
feeToken: "feeToken";
|
|
225
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
226
|
+
"feeToken.verified": "feeToken.verified";
|
|
230
227
|
}>;
|
|
231
228
|
/**
|
|
232
229
|
* Parses a comma-separated `include` query value into a list of optional
|
|
233
|
-
*
|
|
234
|
-
* explicitly requested, keeping the base receipt response fast.
|
|
230
|
+
* token fields to embed. Curated lookups only run when explicitly requested.
|
|
235
231
|
*/
|
|
236
232
|
const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
237
|
-
feeToken: "feeToken";
|
|
233
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
234
|
+
"feeToken.verified": "feeToken.verified";
|
|
238
235
|
}>>>;
|
|
239
236
|
/** Query parameters for receipt requests. */
|
|
240
237
|
const Query: z.ZodMiniObject<{
|
|
@@ -242,8 +239,10 @@ export declare namespace schema {
|
|
|
242
239
|
mainnet: "mainnet";
|
|
243
240
|
testnet: "testnet";
|
|
244
241
|
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
|
|
242
|
+
denomination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
|
|
245
243
|
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
246
|
-
feeToken: "feeToken";
|
|
244
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
245
|
+
"feeToken.verified": "feeToken.verified";
|
|
247
246
|
}>>>;
|
|
248
247
|
}, z.core.$strict>;
|
|
249
248
|
/** A humanized receipt, with the verbatim JSON-RPC payload under `meta.rpc`. */
|
|
@@ -253,9 +252,26 @@ export declare namespace schema {
|
|
|
253
252
|
contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
254
253
|
cumulativeGasUsed: z.ZodMiniNumber<number>;
|
|
255
254
|
effectiveGasPrice: z.ZodMiniString<string>;
|
|
256
|
-
feeAmount: z.
|
|
255
|
+
feeAmount: z.ZodMiniObject<{
|
|
256
|
+
baseUnits: z.ZodMiniString<string>;
|
|
257
|
+
currency: z.ZodMiniString<string>;
|
|
258
|
+
decimals: z.ZodMiniNumber<number>;
|
|
259
|
+
formatted: z.ZodMiniString<string>;
|
|
260
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
261
|
+
amount: z.ZodMiniString<string>;
|
|
262
|
+
currency: z.ZodMiniString<string>;
|
|
263
|
+
}, z.core.$strip>>>;
|
|
264
|
+
}, z.core.$strip>;
|
|
257
265
|
feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
258
|
-
feeToken: z.ZodMiniOptional<z.
|
|
266
|
+
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
267
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
268
|
+
currency: z.ZodMiniString<string>;
|
|
269
|
+
decimals: z.ZodMiniNumber<number>;
|
|
270
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
271
|
+
name: z.ZodMiniString<string>;
|
|
272
|
+
symbol: z.ZodMiniString<string>;
|
|
273
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
274
|
+
}, z.core.$strip>>>;
|
|
259
275
|
gasUsed: z.ZodMiniNumber<number>;
|
|
260
276
|
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
261
277
|
logs: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -271,26 +287,11 @@ export declare namespace schema {
|
|
|
271
287
|
transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
272
288
|
}, z.core.$loose>>;
|
|
273
289
|
meta: z.ZodMiniObject<{
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
decimals: z.ZodMiniNumber<number>;
|
|
280
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
281
|
-
id: z.ZodMiniString<string>;
|
|
282
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
283
|
-
name: z.ZodMiniString<string>;
|
|
284
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
285
|
-
symbol: z.ZodMiniString<string>;
|
|
286
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
287
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
288
|
-
count: z.ZodMiniNumber<number>;
|
|
289
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
290
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
291
|
-
}, z.core.$strip>>;
|
|
292
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
293
|
-
}, z.core.$strip>>>;
|
|
290
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
291
|
+
asOf: z.ZodMiniISODateTime;
|
|
292
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
293
|
+
source: z.ZodMiniString<string>;
|
|
294
|
+
}, z.core.$strip>>;
|
|
294
295
|
rpc: z.ZodMiniObject<{
|
|
295
296
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
296
297
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -347,18 +348,16 @@ export declare namespace schema {
|
|
|
347
348
|
}
|
|
348
349
|
/** Schemas for the getReceipts (list) operation. */
|
|
349
350
|
namespace getReceipts {
|
|
350
|
-
/**
|
|
351
|
-
* Optional resources for the receipt list: the per-row `feeToken` embed
|
|
352
|
-
* plus the response-wide capped `totalCount`. The detail route keeps its
|
|
353
|
-
* own `feeToken`-only {@link getReceipt.Include}.
|
|
354
|
-
*/
|
|
351
|
+
/** Optional fee-token fields and response-wide count metadata. */
|
|
355
352
|
const Include: z.ZodMiniEnum<{
|
|
356
|
-
feeToken: "feeToken";
|
|
353
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
354
|
+
"feeToken.verified": "feeToken.verified";
|
|
357
355
|
totalCount: "totalCount";
|
|
358
356
|
}>;
|
|
359
357
|
/** Parses the comma-separated `include` value for the receipt list. */
|
|
360
358
|
const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
361
|
-
feeToken: "feeToken";
|
|
359
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
360
|
+
"feeToken.verified": "feeToken.verified";
|
|
362
361
|
totalCount: "totalCount";
|
|
363
362
|
}>>>;
|
|
364
363
|
/** Query parameters for receipt list requests. */
|
|
@@ -371,10 +370,12 @@ export declare namespace schema {
|
|
|
371
370
|
testnet: "testnet";
|
|
372
371
|
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
|
|
373
372
|
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
373
|
+
denomination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
|
|
374
374
|
feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
375
375
|
feeToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
376
376
|
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
377
|
-
feeToken: "feeToken";
|
|
377
|
+
"feeToken.logoUri": "feeToken.logoUri";
|
|
378
|
+
"feeToken.verified": "feeToken.verified";
|
|
378
379
|
totalCount: "totalCount";
|
|
379
380
|
}>>>;
|
|
380
381
|
limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
|
|
@@ -399,6 +400,16 @@ export declare namespace schema {
|
|
|
399
400
|
* which stores neither the block hash nor the event logs, so those fields are
|
|
400
401
|
* `null`/empty in the list `meta.rpc` payload.
|
|
401
402
|
*/
|
|
403
|
+
/** Page-level resources: opt-in counts plus valuation rate provenance. */
|
|
404
|
+
const Meta: z.ZodMiniObject<{
|
|
405
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
406
|
+
asOf: z.ZodMiniISODateTime;
|
|
407
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
408
|
+
source: z.ZodMiniString<string>;
|
|
409
|
+
}, z.core.$strip>>;
|
|
410
|
+
totalCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
411
|
+
totalCountCapped: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
412
|
+
}, z.core.$strip>;
|
|
402
413
|
const Response: z.ZodMiniObject<{
|
|
403
414
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
404
415
|
blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
@@ -406,9 +417,26 @@ export declare namespace schema {
|
|
|
406
417
|
contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
407
418
|
cumulativeGasUsed: z.ZodMiniNumber<number>;
|
|
408
419
|
effectiveGasPrice: z.ZodMiniString<string>;
|
|
409
|
-
feeAmount: z.
|
|
420
|
+
feeAmount: z.ZodMiniObject<{
|
|
421
|
+
baseUnits: z.ZodMiniString<string>;
|
|
422
|
+
currency: z.ZodMiniString<string>;
|
|
423
|
+
decimals: z.ZodMiniNumber<number>;
|
|
424
|
+
formatted: z.ZodMiniString<string>;
|
|
425
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
426
|
+
amount: z.ZodMiniString<string>;
|
|
427
|
+
currency: z.ZodMiniString<string>;
|
|
428
|
+
}, z.core.$strip>>>;
|
|
429
|
+
}, z.core.$strip>;
|
|
410
430
|
feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
411
|
-
feeToken: z.ZodMiniOptional<z.
|
|
431
|
+
feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
|
|
432
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
433
|
+
currency: z.ZodMiniString<string>;
|
|
434
|
+
decimals: z.ZodMiniNumber<number>;
|
|
435
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
436
|
+
name: z.ZodMiniString<string>;
|
|
437
|
+
symbol: z.ZodMiniString<string>;
|
|
438
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
439
|
+
}, z.core.$strip>>>;
|
|
412
440
|
gasUsed: z.ZodMiniNumber<number>;
|
|
413
441
|
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
414
442
|
logs: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -424,26 +452,11 @@ export declare namespace schema {
|
|
|
424
452
|
transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
425
453
|
}, z.core.$loose>>;
|
|
426
454
|
meta: z.ZodMiniObject<{
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
decimals: z.ZodMiniNumber<number>;
|
|
433
|
-
holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
434
|
-
id: z.ZodMiniString<string>;
|
|
435
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
436
|
-
name: z.ZodMiniString<string>;
|
|
437
|
-
quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
438
|
-
symbol: z.ZodMiniString<string>;
|
|
439
|
-
totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
440
|
-
transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
441
|
-
count: z.ZodMiniNumber<number>;
|
|
442
|
-
firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
443
|
-
lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
444
|
-
}, z.core.$strip>>;
|
|
445
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
446
|
-
}, z.core.$strip>>>;
|
|
455
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
456
|
+
asOf: z.ZodMiniISODateTime;
|
|
457
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
458
|
+
source: z.ZodMiniString<string>;
|
|
459
|
+
}, z.core.$strip>>;
|
|
447
460
|
rpc: z.ZodMiniObject<{
|
|
448
461
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
449
462
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -498,15 +511,20 @@ export declare namespace schema {
|
|
|
498
511
|
}>>;
|
|
499
512
|
}, z.core.$strip>>;
|
|
500
513
|
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
501
|
-
|
|
502
|
-
|
|
514
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
515
|
+
asOf: z.ZodMiniISODateTime;
|
|
516
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
517
|
+
source: z.ZodMiniString<string>;
|
|
518
|
+
}, z.core.$strip>>;
|
|
519
|
+
totalCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
520
|
+
totalCountCapped: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
503
521
|
}, z.core.$strip>>;
|
|
504
522
|
nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
505
523
|
}, z.core.$strip>;
|
|
506
524
|
}
|
|
507
525
|
}
|
|
508
526
|
/** Creates receipt handlers. */
|
|
509
|
-
export declare function receipts(): import("hono/hono-base").HonoBase<App.Environment, {
|
|
527
|
+
export declare function receipts(options?: receipts.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
510
528
|
"/v1/transactions/receipts": {
|
|
511
529
|
$get: {
|
|
512
530
|
output: null;
|
|
@@ -519,37 +537,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
519
537
|
'blockNumber.to'?: string | string[];
|
|
520
538
|
chainId?: string | string[];
|
|
521
539
|
cursor?: string | string[];
|
|
522
|
-
|
|
523
|
-
feeToken?: string | string[];
|
|
524
|
-
include?: string | string[];
|
|
525
|
-
limit?: string | string[];
|
|
526
|
-
order?: string | string[];
|
|
527
|
-
page?: string | string[];
|
|
528
|
-
recipient?: string | string[];
|
|
529
|
-
sender?: string | string[];
|
|
530
|
-
status?: string | string[];
|
|
531
|
-
'timestamp.from'?: string | string[];
|
|
532
|
-
'timestamp.to'?: string | string[];
|
|
533
|
-
} | undefined;
|
|
534
|
-
};
|
|
535
|
-
} | {
|
|
536
|
-
output: {
|
|
537
|
-
error: {
|
|
538
|
-
code: "upstream_error";
|
|
539
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
540
|
-
message: string;
|
|
541
|
-
};
|
|
542
|
-
requestId: string;
|
|
543
|
-
};
|
|
544
|
-
outputFormat: "json";
|
|
545
|
-
status: 502;
|
|
546
|
-
input: {
|
|
547
|
-
query?: {
|
|
548
|
-
address?: string | string[];
|
|
549
|
-
'blockNumber.from'?: string | string[];
|
|
550
|
-
'blockNumber.to'?: string | string[];
|
|
551
|
-
chainId?: string | string[];
|
|
552
|
-
cursor?: string | string[];
|
|
540
|
+
denomination?: string | string[];
|
|
553
541
|
feePayer?: string | string[];
|
|
554
542
|
feeToken?: string | string[];
|
|
555
543
|
include?: string | string[];
|
|
@@ -581,6 +569,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
581
569
|
'blockNumber.to'?: string | string[];
|
|
582
570
|
chainId?: string | string[];
|
|
583
571
|
cursor?: string | string[];
|
|
572
|
+
denomination?: string | string[];
|
|
584
573
|
feePayer?: string | string[];
|
|
585
574
|
feeToken?: string | string[];
|
|
586
575
|
include?: string | string[];
|
|
@@ -612,6 +601,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
612
601
|
'blockNumber.to'?: string | string[];
|
|
613
602
|
chainId?: string | string[];
|
|
614
603
|
cursor?: string | string[];
|
|
604
|
+
denomination?: string | string[];
|
|
615
605
|
feePayer?: string | string[];
|
|
616
606
|
feeToken?: string | string[];
|
|
617
607
|
include?: string | string[];
|
|
@@ -643,6 +633,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
643
633
|
'blockNumber.to'?: string | string[];
|
|
644
634
|
chainId?: string | string[];
|
|
645
635
|
cursor?: string | string[];
|
|
636
|
+
denomination?: string | string[];
|
|
646
637
|
feePayer?: string | string[];
|
|
647
638
|
feeToken?: string | string[];
|
|
648
639
|
include?: string | string[];
|
|
@@ -674,6 +665,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
674
665
|
'blockNumber.to'?: string | string[];
|
|
675
666
|
chainId?: string | string[];
|
|
676
667
|
cursor?: string | string[];
|
|
668
|
+
denomination?: string | string[];
|
|
677
669
|
feePayer?: string | string[];
|
|
678
670
|
feeToken?: string | string[];
|
|
679
671
|
include?: string | string[];
|
|
@@ -705,6 +697,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
705
697
|
'blockNumber.to'?: string | string[];
|
|
706
698
|
chainId?: string | string[];
|
|
707
699
|
cursor?: string | string[];
|
|
700
|
+
denomination?: string | string[];
|
|
708
701
|
feePayer?: string | string[];
|
|
709
702
|
feeToken?: string | string[];
|
|
710
703
|
include?: string | string[];
|
|
@@ -726,9 +719,26 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
726
719
|
contractAddress: `0x${string}` | null;
|
|
727
720
|
cumulativeGasUsed: number;
|
|
728
721
|
effectiveGasPrice: string;
|
|
729
|
-
feeAmount:
|
|
722
|
+
feeAmount: {
|
|
723
|
+
baseUnits: string;
|
|
724
|
+
currency: string;
|
|
725
|
+
decimals: number;
|
|
726
|
+
formatted: string;
|
|
727
|
+
valuation?: {
|
|
728
|
+
amount: string;
|
|
729
|
+
currency: string;
|
|
730
|
+
} | null | undefined;
|
|
731
|
+
};
|
|
730
732
|
feePayer?: `0x${string}` | undefined;
|
|
731
|
-
feeToken?:
|
|
733
|
+
feeToken?: {
|
|
734
|
+
address: `0x${string}`;
|
|
735
|
+
currency: string;
|
|
736
|
+
decimals: number;
|
|
737
|
+
logoUri?: string | undefined;
|
|
738
|
+
name: string;
|
|
739
|
+
symbol: string;
|
|
740
|
+
verified?: boolean | undefined;
|
|
741
|
+
} | undefined;
|
|
732
742
|
gasUsed: number;
|
|
733
743
|
id: `0x${string}`;
|
|
734
744
|
logs: {
|
|
@@ -745,25 +755,10 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
745
755
|
transactionIndex: `0x${string}` | null;
|
|
746
756
|
}[];
|
|
747
757
|
meta: {
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
createdAt?: string | undefined;
|
|
753
|
-
decimals: number;
|
|
754
|
-
holderCount?: number | undefined;
|
|
755
|
-
id: string;
|
|
756
|
-
logoUri?: string | undefined;
|
|
757
|
-
name: string;
|
|
758
|
-
quoteToken?: `0x${string}` | undefined;
|
|
759
|
-
symbol: string;
|
|
760
|
-
totalSupply?: string | undefined;
|
|
761
|
-
transferStats?: {
|
|
762
|
-
count: number;
|
|
763
|
-
firstAt: string | null;
|
|
764
|
-
lastAt: string | null;
|
|
765
|
-
} | undefined;
|
|
766
|
-
verified: boolean;
|
|
758
|
+
pricing?: {
|
|
759
|
+
asOf: string;
|
|
760
|
+
basis: "nominal";
|
|
761
|
+
source: string;
|
|
767
762
|
} | undefined;
|
|
768
763
|
rpc: {
|
|
769
764
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -810,8 +805,13 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
810
805
|
type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
|
|
811
806
|
}[];
|
|
812
807
|
meta?: {
|
|
813
|
-
|
|
814
|
-
|
|
808
|
+
pricing?: {
|
|
809
|
+
asOf: string;
|
|
810
|
+
basis: "nominal";
|
|
811
|
+
source: string;
|
|
812
|
+
} | undefined;
|
|
813
|
+
totalCount?: number | undefined;
|
|
814
|
+
totalCountCapped?: boolean | undefined;
|
|
815
815
|
} | undefined;
|
|
816
816
|
nextCursor: string | null;
|
|
817
817
|
};
|
|
@@ -824,6 +824,39 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
824
824
|
'blockNumber.to'?: string | string[];
|
|
825
825
|
chainId?: string | string[];
|
|
826
826
|
cursor?: string | string[];
|
|
827
|
+
denomination?: string | string[];
|
|
828
|
+
feePayer?: string | string[];
|
|
829
|
+
feeToken?: string | string[];
|
|
830
|
+
include?: string | string[];
|
|
831
|
+
limit?: string | string[];
|
|
832
|
+
order?: string | string[];
|
|
833
|
+
page?: string | string[];
|
|
834
|
+
recipient?: string | string[];
|
|
835
|
+
sender?: string | string[];
|
|
836
|
+
status?: string | string[];
|
|
837
|
+
'timestamp.from'?: string | string[];
|
|
838
|
+
'timestamp.to'?: string | string[];
|
|
839
|
+
} | undefined;
|
|
840
|
+
};
|
|
841
|
+
} | {
|
|
842
|
+
output: {
|
|
843
|
+
error: {
|
|
844
|
+
code: "upstream_error";
|
|
845
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
846
|
+
message: string;
|
|
847
|
+
};
|
|
848
|
+
requestId: string;
|
|
849
|
+
};
|
|
850
|
+
outputFormat: "json";
|
|
851
|
+
status: 502;
|
|
852
|
+
input: {
|
|
853
|
+
query?: {
|
|
854
|
+
address?: string | string[];
|
|
855
|
+
'blockNumber.from'?: string | string[];
|
|
856
|
+
'blockNumber.to'?: string | string[];
|
|
857
|
+
chainId?: string | string[];
|
|
858
|
+
cursor?: string | string[];
|
|
859
|
+
denomination?: string | string[];
|
|
827
860
|
feePayer?: string | string[];
|
|
828
861
|
feeToken?: string | string[];
|
|
829
862
|
include?: string | string[];
|
|
@@ -852,20 +885,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
852
885
|
} & {
|
|
853
886
|
query?: {
|
|
854
887
|
chainId?: string | string[];
|
|
888
|
+
denomination?: string | string[];
|
|
855
889
|
include?: string | string[];
|
|
856
890
|
} | undefined;
|
|
857
891
|
};
|
|
858
892
|
} | {
|
|
859
893
|
output: {
|
|
860
894
|
error: {
|
|
861
|
-
code: "
|
|
895
|
+
code: "api_key_malformed";
|
|
862
896
|
details?: readonly Response.error.Detail[] | undefined;
|
|
863
897
|
message: string;
|
|
864
898
|
};
|
|
865
899
|
requestId: string;
|
|
866
900
|
};
|
|
867
901
|
outputFormat: "json";
|
|
868
|
-
status:
|
|
902
|
+
status: 400;
|
|
869
903
|
input: {
|
|
870
904
|
param: {
|
|
871
905
|
transactionHash: `0x${string}`;
|
|
@@ -873,20 +907,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
873
907
|
} & {
|
|
874
908
|
query?: {
|
|
875
909
|
chainId?: string | string[];
|
|
910
|
+
denomination?: string | string[];
|
|
876
911
|
include?: string | string[];
|
|
877
912
|
} | undefined;
|
|
878
913
|
};
|
|
879
914
|
} | {
|
|
880
915
|
output: {
|
|
881
916
|
error: {
|
|
882
|
-
code: "
|
|
917
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
883
918
|
details?: readonly Response.error.Detail[] | undefined;
|
|
884
919
|
message: string;
|
|
885
920
|
};
|
|
886
921
|
requestId: string;
|
|
887
922
|
};
|
|
888
923
|
outputFormat: "json";
|
|
889
|
-
status:
|
|
924
|
+
status: 401;
|
|
890
925
|
input: {
|
|
891
926
|
param: {
|
|
892
927
|
transactionHash: `0x${string}`;
|
|
@@ -894,20 +929,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
894
929
|
} & {
|
|
895
930
|
query?: {
|
|
896
931
|
chainId?: string | string[];
|
|
932
|
+
denomination?: string | string[];
|
|
897
933
|
include?: string | string[];
|
|
898
934
|
} | undefined;
|
|
899
935
|
};
|
|
900
936
|
} | {
|
|
901
937
|
output: {
|
|
902
938
|
error: {
|
|
903
|
-
code: "
|
|
939
|
+
code: "api_key_forbidden";
|
|
904
940
|
details?: readonly Response.error.Detail[] | undefined;
|
|
905
941
|
message: string;
|
|
906
942
|
};
|
|
907
943
|
requestId: string;
|
|
908
944
|
};
|
|
909
945
|
outputFormat: "json";
|
|
910
|
-
status:
|
|
946
|
+
status: 403;
|
|
911
947
|
input: {
|
|
912
948
|
param: {
|
|
913
949
|
transactionHash: `0x${string}`;
|
|
@@ -915,20 +951,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
915
951
|
} & {
|
|
916
952
|
query?: {
|
|
917
953
|
chainId?: string | string[];
|
|
954
|
+
denomination?: string | string[];
|
|
918
955
|
include?: string | string[];
|
|
919
956
|
} | undefined;
|
|
920
957
|
};
|
|
921
958
|
} | {
|
|
922
959
|
output: {
|
|
923
960
|
error: {
|
|
924
|
-
code: "
|
|
961
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
925
962
|
details?: readonly Response.error.Detail[] | undefined;
|
|
926
963
|
message: string;
|
|
927
964
|
};
|
|
928
965
|
requestId: string;
|
|
929
966
|
};
|
|
930
967
|
outputFormat: "json";
|
|
931
|
-
status:
|
|
968
|
+
status: 429;
|
|
932
969
|
input: {
|
|
933
970
|
param: {
|
|
934
971
|
transactionHash: `0x${string}`;
|
|
@@ -936,20 +973,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
936
973
|
} & {
|
|
937
974
|
query?: {
|
|
938
975
|
chainId?: string | string[];
|
|
976
|
+
denomination?: string | string[];
|
|
939
977
|
include?: string | string[];
|
|
940
978
|
} | undefined;
|
|
941
979
|
};
|
|
942
980
|
} | {
|
|
943
981
|
output: {
|
|
944
982
|
error: {
|
|
945
|
-
code: "
|
|
983
|
+
code: "query_invalid";
|
|
946
984
|
details?: readonly Response.error.Detail[] | undefined;
|
|
947
985
|
message: string;
|
|
948
986
|
};
|
|
949
987
|
requestId: string;
|
|
950
988
|
};
|
|
951
989
|
outputFormat: "json";
|
|
952
|
-
status:
|
|
990
|
+
status: 400;
|
|
953
991
|
input: {
|
|
954
992
|
param: {
|
|
955
993
|
transactionHash: `0x${string}`;
|
|
@@ -957,20 +995,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
957
995
|
} & {
|
|
958
996
|
query?: {
|
|
959
997
|
chainId?: string | string[];
|
|
998
|
+
denomination?: string | string[];
|
|
960
999
|
include?: string | string[];
|
|
961
1000
|
} | undefined;
|
|
962
1001
|
};
|
|
963
1002
|
} | {
|
|
964
1003
|
output: {
|
|
965
1004
|
error: {
|
|
966
|
-
code: "
|
|
1005
|
+
code: "upstream_error";
|
|
967
1006
|
details?: readonly Response.error.Detail[] | undefined;
|
|
968
1007
|
message: string;
|
|
969
1008
|
};
|
|
970
1009
|
requestId: string;
|
|
971
1010
|
};
|
|
972
1011
|
outputFormat: "json";
|
|
973
|
-
status:
|
|
1012
|
+
status: 502;
|
|
974
1013
|
input: {
|
|
975
1014
|
param: {
|
|
976
1015
|
transactionHash: `0x${string}`;
|
|
@@ -978,6 +1017,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
978
1017
|
} & {
|
|
979
1018
|
query?: {
|
|
980
1019
|
chainId?: string | string[];
|
|
1020
|
+
denomination?: string | string[];
|
|
981
1021
|
include?: string | string[];
|
|
982
1022
|
} | undefined;
|
|
983
1023
|
};
|
|
@@ -999,6 +1039,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
999
1039
|
} & {
|
|
1000
1040
|
query?: {
|
|
1001
1041
|
chainId?: string | string[];
|
|
1042
|
+
denomination?: string | string[];
|
|
1002
1043
|
include?: string | string[];
|
|
1003
1044
|
} | undefined;
|
|
1004
1045
|
};
|
|
@@ -1020,6 +1061,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
1020
1061
|
} & {
|
|
1021
1062
|
query?: {
|
|
1022
1063
|
chainId?: string | string[];
|
|
1064
|
+
denomination?: string | string[];
|
|
1023
1065
|
include?: string | string[];
|
|
1024
1066
|
} | undefined;
|
|
1025
1067
|
};
|
|
@@ -1030,9 +1072,26 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
1030
1072
|
contractAddress: `0x${string}` | null;
|
|
1031
1073
|
cumulativeGasUsed: number;
|
|
1032
1074
|
effectiveGasPrice: string;
|
|
1033
|
-
feeAmount:
|
|
1075
|
+
feeAmount: {
|
|
1076
|
+
baseUnits: string;
|
|
1077
|
+
currency: string;
|
|
1078
|
+
decimals: number;
|
|
1079
|
+
formatted: string;
|
|
1080
|
+
valuation?: {
|
|
1081
|
+
amount: string;
|
|
1082
|
+
currency: string;
|
|
1083
|
+
} | null | undefined;
|
|
1084
|
+
};
|
|
1034
1085
|
feePayer?: `0x${string}` | undefined;
|
|
1035
|
-
feeToken?:
|
|
1086
|
+
feeToken?: {
|
|
1087
|
+
address: `0x${string}`;
|
|
1088
|
+
currency: string;
|
|
1089
|
+
decimals: number;
|
|
1090
|
+
logoUri?: string | undefined;
|
|
1091
|
+
name: string;
|
|
1092
|
+
symbol: string;
|
|
1093
|
+
verified?: boolean | undefined;
|
|
1094
|
+
} | undefined;
|
|
1036
1095
|
gasUsed: number;
|
|
1037
1096
|
id: `0x${string}`;
|
|
1038
1097
|
logs: {
|
|
@@ -1049,25 +1108,10 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
1049
1108
|
transactionIndex: `0x${string}` | null;
|
|
1050
1109
|
}[];
|
|
1051
1110
|
meta: {
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
createdAt?: string | undefined;
|
|
1057
|
-
decimals: number;
|
|
1058
|
-
holderCount?: number | undefined;
|
|
1059
|
-
id: string;
|
|
1060
|
-
logoUri?: string | undefined;
|
|
1061
|
-
name: string;
|
|
1062
|
-
quoteToken?: `0x${string}` | undefined;
|
|
1063
|
-
symbol: string;
|
|
1064
|
-
totalSupply?: string | undefined;
|
|
1065
|
-
transferStats?: {
|
|
1066
|
-
count: number;
|
|
1067
|
-
firstAt: string | null;
|
|
1068
|
-
lastAt: string | null;
|
|
1069
|
-
} | undefined;
|
|
1070
|
-
verified: boolean;
|
|
1111
|
+
pricing?: {
|
|
1112
|
+
asOf: string;
|
|
1113
|
+
basis: "nominal";
|
|
1114
|
+
source: string;
|
|
1071
1115
|
} | undefined;
|
|
1072
1116
|
rpc: {
|
|
1073
1117
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1122,26 +1166,50 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
1122
1166
|
} & {
|
|
1123
1167
|
query?: {
|
|
1124
1168
|
chainId?: string | string[];
|
|
1169
|
+
denomination?: string | string[];
|
|
1125
1170
|
include?: string | string[];
|
|
1126
1171
|
} | undefined;
|
|
1127
1172
|
};
|
|
1128
1173
|
};
|
|
1129
1174
|
};
|
|
1130
1175
|
}, "/", "/v1/transactions/:transactionHash/receipt">;
|
|
1176
|
+
export declare namespace receipts {
|
|
1177
|
+
/** Options for the receipt handlers. */
|
|
1178
|
+
type Options = {
|
|
1179
|
+
/** FX configuration backing fee valuation. */
|
|
1180
|
+
fx?: Valuation.addresses.Fx | undefined;
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1131
1183
|
/**
|
|
1132
|
-
* Lists humanized receipts
|
|
1133
|
-
* `feeToken`).
|
|
1184
|
+
* Lists humanized receipts with required fee-token metadata and optional curated fields.
|
|
1134
1185
|
*/
|
|
1135
1186
|
export declare function listReceipts(c: Context<App.Environment>, options: listReceipts.Options): Promise<{
|
|
1136
|
-
data: {
|
|
1187
|
+
data: Transactions.enrichFeeTokens.Output<Omit<{
|
|
1137
1188
|
blockHash: `0x${string}` | null;
|
|
1138
1189
|
blockNumber: number;
|
|
1139
1190
|
contractAddress: `0x${string}` | null;
|
|
1140
1191
|
cumulativeGasUsed: number;
|
|
1141
1192
|
effectiveGasPrice: string;
|
|
1142
|
-
feeAmount:
|
|
1193
|
+
feeAmount: {
|
|
1194
|
+
baseUnits: string;
|
|
1195
|
+
currency: string;
|
|
1196
|
+
decimals: number;
|
|
1197
|
+
formatted: string;
|
|
1198
|
+
valuation?: {
|
|
1199
|
+
amount: string;
|
|
1200
|
+
currency: string;
|
|
1201
|
+
} | null | undefined;
|
|
1202
|
+
};
|
|
1143
1203
|
feePayer?: `0x${string}` | undefined;
|
|
1144
|
-
feeToken?:
|
|
1204
|
+
feeToken?: {
|
|
1205
|
+
address: `0x${string}`;
|
|
1206
|
+
currency: string;
|
|
1207
|
+
decimals: number;
|
|
1208
|
+
logoUri?: string | undefined;
|
|
1209
|
+
name: string;
|
|
1210
|
+
symbol: string;
|
|
1211
|
+
verified?: boolean | undefined;
|
|
1212
|
+
} | undefined;
|
|
1145
1213
|
gasUsed: number;
|
|
1146
1214
|
id: `0x${string}`;
|
|
1147
1215
|
logs: {
|
|
@@ -1158,25 +1226,10 @@ export declare function listReceipts(c: Context<App.Environment>, options: listR
|
|
|
1158
1226
|
transactionIndex: `0x${string}` | null;
|
|
1159
1227
|
}[];
|
|
1160
1228
|
meta: {
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
createdAt?: string | undefined;
|
|
1166
|
-
decimals: number;
|
|
1167
|
-
holderCount?: number | undefined;
|
|
1168
|
-
id: string;
|
|
1169
|
-
logoUri?: string | undefined;
|
|
1170
|
-
name: string;
|
|
1171
|
-
quoteToken?: `0x${string}` | undefined;
|
|
1172
|
-
symbol: string;
|
|
1173
|
-
totalSupply?: string | undefined;
|
|
1174
|
-
transferStats?: {
|
|
1175
|
-
count: number;
|
|
1176
|
-
firstAt: string | null;
|
|
1177
|
-
lastAt: string | null;
|
|
1178
|
-
} | undefined;
|
|
1179
|
-
verified: boolean;
|
|
1229
|
+
pricing?: {
|
|
1230
|
+
asOf: string;
|
|
1231
|
+
basis: "nominal";
|
|
1232
|
+
source: string;
|
|
1180
1233
|
} | undefined;
|
|
1181
1234
|
rpc: {
|
|
1182
1235
|
[x: string]: unknown;
|
|
@@ -1221,105 +1274,17 @@ export declare function listReceipts(c: Context<App.Environment>, options: listR
|
|
|
1221
1274
|
transactionHash: `0x${string}`;
|
|
1222
1275
|
transactionIndex: number;
|
|
1223
1276
|
type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
|
|
1224
|
-
}[];
|
|
1277
|
+
}, "feeToken">>[];
|
|
1225
1278
|
nextCursor: string | null;
|
|
1226
1279
|
}>;
|
|
1227
1280
|
export declare namespace listReceipts {
|
|
1228
1281
|
type Options = getReceipts.Options & {
|
|
1229
|
-
/** Optional
|
|
1282
|
+
/** Optional curated fee-token fields to embed. */
|
|
1230
1283
|
include: readonly z.output<typeof schema.getReceipt.Include>[];
|
|
1231
1284
|
};
|
|
1232
1285
|
}
|
|
1233
1286
|
export declare function getReceipts(c: Context<App.Environment>, options: getReceipts.Options): Promise<{
|
|
1234
|
-
data:
|
|
1235
|
-
blockHash: `0x${string}` | null;
|
|
1236
|
-
blockNumber: number;
|
|
1237
|
-
contractAddress: `0x${string}` | null;
|
|
1238
|
-
cumulativeGasUsed: number;
|
|
1239
|
-
effectiveGasPrice: string;
|
|
1240
|
-
feeAmount: string;
|
|
1241
|
-
feePayer?: `0x${string}` | undefined;
|
|
1242
|
-
feeToken?: `0x${string}` | undefined;
|
|
1243
|
-
gasUsed: number;
|
|
1244
|
-
id: `0x${string}`;
|
|
1245
|
-
logs: {
|
|
1246
|
-
[x: string]: unknown;
|
|
1247
|
-
address: `0x${string}`;
|
|
1248
|
-
blockHash: `0x${string}` | null;
|
|
1249
|
-
blockNumber: `0x${string}` | null;
|
|
1250
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
1251
|
-
data: `0x${string}`;
|
|
1252
|
-
logIndex: `0x${string}` | null;
|
|
1253
|
-
removed: boolean;
|
|
1254
|
-
topics: `0x${string}`[];
|
|
1255
|
-
transactionHash: `0x${string}` | null;
|
|
1256
|
-
transactionIndex: `0x${string}` | null;
|
|
1257
|
-
}[];
|
|
1258
|
-
meta: {
|
|
1259
|
-
feeToken?: {
|
|
1260
|
-
address: `0x${string}`;
|
|
1261
|
-
admin?: `0x${string}` | undefined;
|
|
1262
|
-
currency: string;
|
|
1263
|
-
createdAt?: string | undefined;
|
|
1264
|
-
decimals: number;
|
|
1265
|
-
holderCount?: number | undefined;
|
|
1266
|
-
id: string;
|
|
1267
|
-
logoUri?: string | undefined;
|
|
1268
|
-
name: string;
|
|
1269
|
-
quoteToken?: `0x${string}` | undefined;
|
|
1270
|
-
symbol: string;
|
|
1271
|
-
totalSupply?: string | undefined;
|
|
1272
|
-
transferStats?: {
|
|
1273
|
-
count: number;
|
|
1274
|
-
firstAt: string | null;
|
|
1275
|
-
lastAt: string | null;
|
|
1276
|
-
} | undefined;
|
|
1277
|
-
verified: boolean;
|
|
1278
|
-
} | undefined;
|
|
1279
|
-
rpc: {
|
|
1280
|
-
[x: string]: unknown;
|
|
1281
|
-
blobGasPrice?: `0x${string}` | undefined;
|
|
1282
|
-
blobGasUsed?: `0x${string}` | undefined;
|
|
1283
|
-
blockHash: `0x${string}` | null;
|
|
1284
|
-
blockNumber: `0x${string}`;
|
|
1285
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
1286
|
-
contractAddress?: `0x${string}` | null | undefined;
|
|
1287
|
-
cumulativeGasUsed: `0x${string}`;
|
|
1288
|
-
effectiveGasPrice: `0x${string}`;
|
|
1289
|
-
feePayer?: `0x${string}` | null | undefined;
|
|
1290
|
-
feeToken?: `0x${string}` | null | undefined;
|
|
1291
|
-
from: `0x${string}`;
|
|
1292
|
-
gasUsed: `0x${string}`;
|
|
1293
|
-
logs: {
|
|
1294
|
-
[x: string]: unknown;
|
|
1295
|
-
address: `0x${string}`;
|
|
1296
|
-
blockHash: `0x${string}` | null;
|
|
1297
|
-
blockNumber: `0x${string}` | null;
|
|
1298
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
1299
|
-
data: `0x${string}`;
|
|
1300
|
-
logIndex: `0x${string}` | null;
|
|
1301
|
-
removed: boolean;
|
|
1302
|
-
topics: `0x${string}`[];
|
|
1303
|
-
transactionHash: `0x${string}` | null;
|
|
1304
|
-
transactionIndex: `0x${string}` | null;
|
|
1305
|
-
}[];
|
|
1306
|
-
logsBloom?: `0x${string}` | undefined;
|
|
1307
|
-
root?: `0x${string}` | undefined;
|
|
1308
|
-
status: `0x${string}`;
|
|
1309
|
-
to: `0x${string}` | null;
|
|
1310
|
-
transactionHash: `0x${string}`;
|
|
1311
|
-
transactionIndex: `0x${string}`;
|
|
1312
|
-
type: `0x${string}`;
|
|
1313
|
-
};
|
|
1314
|
-
};
|
|
1315
|
-
recipient: `0x${string}` | null;
|
|
1316
|
-
sender: `0x${string}`;
|
|
1317
|
-
status: "reverted" | "success";
|
|
1318
|
-
timestamp: string | null;
|
|
1319
|
-
transactionHash: `0x${string}`;
|
|
1320
|
-
transactionIndex: number;
|
|
1321
|
-
type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
|
|
1322
|
-
}[];
|
|
1287
|
+
data: humanizeReceipt.Output[];
|
|
1323
1288
|
nextCursor: string | null;
|
|
1324
1289
|
}>;
|
|
1325
1290
|
export declare namespace getReceipts {
|
|
@@ -1373,12 +1338,14 @@ export declare namespace embedReceipts {
|
|
|
1373
1338
|
type Options = {
|
|
1374
1339
|
/** Target chain id. */
|
|
1375
1340
|
chainId: z.output<typeof Schema.ChainId>;
|
|
1341
|
+
/** Optional curated fee-token fields to embed. */
|
|
1342
|
+
include: readonly string[];
|
|
1376
1343
|
/**
|
|
1377
1344
|
* Pre-fetched humanized receipts for the page (the `status`-filtered
|
|
1378
1345
|
* transactions path). When provided, the receipts query is skipped and only
|
|
1379
1346
|
* the page's event logs are fetched and reattached.
|
|
1380
1347
|
*/
|
|
1381
|
-
receipts?: readonly
|
|
1348
|
+
receipts?: readonly humanizeReceipt.Output[] | undefined;
|
|
1382
1349
|
/**
|
|
1383
1350
|
* The page's humanized transaction rows. Typed structurally (rather than as
|
|
1384
1351
|
* the transactions schema output) so this module never touches the
|
|
@@ -1400,16 +1367,126 @@ export declare namespace embedReceipts {
|
|
|
1400
1367
|
}[];
|
|
1401
1368
|
};
|
|
1402
1369
|
}
|
|
1370
|
+
/** Resolves required RPC fee-token metadata and optional curated fields for receipts. */
|
|
1371
|
+
export declare function enrichReceipts(c: Context<App.Environment>, options: enrichReceipts.Options): Promise<Transactions.enrichFeeTokens.Output<Omit<{
|
|
1372
|
+
blockHash: `0x${string}` | null;
|
|
1373
|
+
blockNumber: number;
|
|
1374
|
+
contractAddress: `0x${string}` | null;
|
|
1375
|
+
cumulativeGasUsed: number;
|
|
1376
|
+
effectiveGasPrice: string;
|
|
1377
|
+
feeAmount: {
|
|
1378
|
+
baseUnits: string;
|
|
1379
|
+
currency: string;
|
|
1380
|
+
decimals: number;
|
|
1381
|
+
formatted: string;
|
|
1382
|
+
valuation?: {
|
|
1383
|
+
amount: string;
|
|
1384
|
+
currency: string;
|
|
1385
|
+
} | null | undefined;
|
|
1386
|
+
};
|
|
1387
|
+
feePayer?: `0x${string}` | undefined;
|
|
1388
|
+
feeToken?: {
|
|
1389
|
+
address: `0x${string}`;
|
|
1390
|
+
currency: string;
|
|
1391
|
+
decimals: number;
|
|
1392
|
+
logoUri?: string | undefined;
|
|
1393
|
+
name: string;
|
|
1394
|
+
symbol: string;
|
|
1395
|
+
verified?: boolean | undefined;
|
|
1396
|
+
} | undefined;
|
|
1397
|
+
gasUsed: number;
|
|
1398
|
+
id: `0x${string}`;
|
|
1399
|
+
logs: {
|
|
1400
|
+
[x: string]: unknown;
|
|
1401
|
+
address: `0x${string}`;
|
|
1402
|
+
blockHash: `0x${string}` | null;
|
|
1403
|
+
blockNumber: `0x${string}` | null;
|
|
1404
|
+
blockTimestamp?: `0x${string}` | null | undefined;
|
|
1405
|
+
data: `0x${string}`;
|
|
1406
|
+
logIndex: `0x${string}` | null;
|
|
1407
|
+
removed: boolean;
|
|
1408
|
+
topics: `0x${string}`[];
|
|
1409
|
+
transactionHash: `0x${string}` | null;
|
|
1410
|
+
transactionIndex: `0x${string}` | null;
|
|
1411
|
+
}[];
|
|
1412
|
+
meta: {
|
|
1413
|
+
pricing?: {
|
|
1414
|
+
asOf: string;
|
|
1415
|
+
basis: "nominal";
|
|
1416
|
+
source: string;
|
|
1417
|
+
} | undefined;
|
|
1418
|
+
rpc: {
|
|
1419
|
+
[x: string]: unknown;
|
|
1420
|
+
blobGasPrice?: `0x${string}` | undefined;
|
|
1421
|
+
blobGasUsed?: `0x${string}` | undefined;
|
|
1422
|
+
blockHash: `0x${string}` | null;
|
|
1423
|
+
blockNumber: `0x${string}`;
|
|
1424
|
+
blockTimestamp?: `0x${string}` | null | undefined;
|
|
1425
|
+
contractAddress?: `0x${string}` | null | undefined;
|
|
1426
|
+
cumulativeGasUsed: `0x${string}`;
|
|
1427
|
+
effectiveGasPrice: `0x${string}`;
|
|
1428
|
+
feePayer?: `0x${string}` | null | undefined;
|
|
1429
|
+
feeToken?: `0x${string}` | null | undefined;
|
|
1430
|
+
from: `0x${string}`;
|
|
1431
|
+
gasUsed: `0x${string}`;
|
|
1432
|
+
logs: {
|
|
1433
|
+
[x: string]: unknown;
|
|
1434
|
+
address: `0x${string}`;
|
|
1435
|
+
blockHash: `0x${string}` | null;
|
|
1436
|
+
blockNumber: `0x${string}` | null;
|
|
1437
|
+
blockTimestamp?: `0x${string}` | null | undefined;
|
|
1438
|
+
data: `0x${string}`;
|
|
1439
|
+
logIndex: `0x${string}` | null;
|
|
1440
|
+
removed: boolean;
|
|
1441
|
+
topics: `0x${string}`[];
|
|
1442
|
+
transactionHash: `0x${string}` | null;
|
|
1443
|
+
transactionIndex: `0x${string}` | null;
|
|
1444
|
+
}[];
|
|
1445
|
+
logsBloom?: `0x${string}` | undefined;
|
|
1446
|
+
root?: `0x${string}` | undefined;
|
|
1447
|
+
status: `0x${string}`;
|
|
1448
|
+
to: `0x${string}` | null;
|
|
1449
|
+
transactionHash: `0x${string}`;
|
|
1450
|
+
transactionIndex: `0x${string}`;
|
|
1451
|
+
type: `0x${string}`;
|
|
1452
|
+
};
|
|
1453
|
+
};
|
|
1454
|
+
recipient: `0x${string}` | null;
|
|
1455
|
+
sender: `0x${string}`;
|
|
1456
|
+
status: "reverted" | "success";
|
|
1457
|
+
timestamp: string | null;
|
|
1458
|
+
transactionHash: `0x${string}`;
|
|
1459
|
+
transactionIndex: number;
|
|
1460
|
+
type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
|
|
1461
|
+
}, "feeToken">>[]>;
|
|
1462
|
+
export declare namespace enrichReceipts {
|
|
1463
|
+
/** Inputs for enriching humanized receipts. */
|
|
1464
|
+
type Options = {
|
|
1465
|
+
/** Target chain id. */
|
|
1466
|
+
chainId: z.output<typeof Schema.ChainId>;
|
|
1467
|
+
/** Optional curated fee-token fields to embed. */
|
|
1468
|
+
include: readonly string[];
|
|
1469
|
+
/** Humanized receipts whose fee token is still an address. */
|
|
1470
|
+
receipts: readonly humanizeReceipt.Output[];
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1403
1473
|
/**
|
|
1404
1474
|
* Humanizes a JSON-RPC transaction receipt: decodes `status`/`type`, converts
|
|
1405
|
-
*
|
|
1475
|
+
* gas price and fee values, converts block fields to numbers, and derives the
|
|
1406
1476
|
* block `timestamp` from the top-level `blockTimestamp` (present when
|
|
1407
1477
|
* reconstructed from the index) or the (shared) per-log timestamp — `null` when
|
|
1408
1478
|
* neither is available. The verbatim payload is preserved under `meta.rpc` and
|
|
1409
1479
|
* the raw logs under `logs`. Shared by the receipt detail (RPC source) and list
|
|
1410
1480
|
* (reconstructed from the indexer) endpoints, so both expose an identical shape.
|
|
1411
1481
|
*/
|
|
1412
|
-
export declare function humanizeReceipt(rpc: z.output<typeof schema.Rpc.Receipt>):
|
|
1482
|
+
export declare function humanizeReceipt(rpc: z.output<typeof schema.Rpc.Receipt>): humanizeReceipt.Output;
|
|
1483
|
+
export declare namespace humanizeReceipt {
|
|
1484
|
+
/** Humanized receipt before its fee-token address is resolved to metadata. */
|
|
1485
|
+
type Output = Omit<z.output<typeof schema.Receipt>, 'feeToken'> & {
|
|
1486
|
+
/** Address of the token used to pay the fee. */
|
|
1487
|
+
feeToken?: z.output<typeof Schema.Address> | undefined;
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1413
1490
|
/**
|
|
1414
1491
|
* Re-encodes a TIDX `receipts` row (joined to `txs`) into the JSON-RPC receipt
|
|
1415
1492
|
* shape, which becomes the `rpc` payload the list endpoint humanizes through the
|