tapimo 0.14.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/dist/ApiKey.js +1 -1
- package/dist/ApiKey.js.map +1 -1
- package/dist/ApiKeys.d.ts +95 -14
- package/dist/ApiKeys.d.ts.map +1 -1
- package/dist/ApiKeys.js +360 -49
- package/dist/ApiKeys.js.map +1 -1
- package/dist/App.d.ts +12466 -10374
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +300 -22
- package/dist/App.js.map +1 -1
- package/dist/Assets.d.ts.map +1 -1
- package/dist/Assets.js +2 -1
- package/dist/Assets.js.map +1 -1
- package/dist/Handler.d.ts +0 -1
- package/dist/Handler.d.ts.map +1 -1
- package/dist/Handler.js +0 -1
- package/dist/Handler.js.map +1 -1
- package/dist/Scope.d.ts +13 -5
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +16 -5
- package/dist/Scope.js.map +1 -1
- package/dist/Webhooks.js +1 -1
- package/dist/Webhooks.js.map +1 -1
- package/dist/admin/App.d.ts +3057 -546
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +26 -5
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +179 -27
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +95 -43
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/earn-vaults.d.ts +1398 -0
- package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
- package/dist/admin/apps/earn-vaults.js +463 -7
- package/dist/admin/apps/earn-vaults.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts +267 -15
- package/dist/admin/apps/organizations.d.ts.map +1 -1
- package/dist/admin/apps/organizations.js +241 -25
- package/dist/admin/apps/organizations.js.map +1 -1
- package/dist/admin/apps/routes-support.d.ts +95 -0
- package/dist/admin/apps/routes-support.d.ts.map +1 -0
- package/dist/admin/apps/routes-support.js +151 -0
- package/dist/admin/apps/routes-support.js.map +1 -0
- package/dist/admin/apps/routes.d.ts +2764 -0
- package/dist/admin/apps/routes.d.ts.map +1 -0
- package/dist/admin/apps/routes.js +728 -0
- package/dist/admin/apps/routes.js.map +1 -0
- package/dist/admin/apps/subsidies.d.ts +501 -0
- package/dist/admin/apps/subsidies.d.ts.map +1 -0
- package/dist/admin/apps/subsidies.js +384 -0
- package/dist/admin/apps/subsidies.js.map +1 -0
- package/dist/admin/apps/verified-tokens.d.ts +166 -160
- package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
- package/dist/admin/apps/verified-tokens.js +27 -7
- 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 +201 -149
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/Analytics.d.ts +5 -2
- package/dist/analytics/Analytics.d.ts.map +1 -1
- package/dist/analytics/Analytics.js +31 -1
- package/dist/analytics/Analytics.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts +2 -1
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +10 -1
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/analytics/tables/routesLifecycleIntervals.d.ts +72 -0
- package/dist/analytics/tables/routesLifecycleIntervals.d.ts.map +1 -0
- package/dist/analytics/tables/routesLifecycleIntervals.js +56 -0
- package/dist/analytics/tables/routesLifecycleIntervals.js.map +1 -0
- package/dist/apps/Zones.d.ts +21 -12526
- package/dist/apps/Zones.d.ts.map +1 -1
- package/dist/apps/Zones.js +37 -5
- package/dist/apps/Zones.js.map +1 -1
- package/dist/apps/data/App.d.ts +3971 -2595
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +76 -21
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +629 -299
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +495 -190
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +72 -0
- package/dist/apps/data/routes/addresses.d.ts.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +116 -116
- package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
- package/dist/apps/data/routes/coingecko.js +47 -21
- package/dist/apps/data/routes/coingecko.js.map +1 -1
- package/dist/apps/data/routes/earn.d.ts +1450 -337
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +1226 -144
- package/dist/apps/data/routes/earn.js.map +1 -1
- package/dist/apps/data/routes/fee-amm.d.ts +113 -108
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
- package/dist/apps/data/routes/fee-amm.js +41 -21
- package/dist/apps/data/routes/fee-amm.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +142 -17
- package/dist/apps/data/routes/indexer.d.ts.map +1 -1
- package/dist/apps/data/routes/indexer.js +83 -27
- package/dist/apps/data/routes/indexer.js.map +1 -1
- package/dist/apps/data/routes/receipts.d.ts +235 -235
- package/dist/apps/data/routes/rpc.d.ts +507 -33
- package/dist/apps/data/routes/rpc.d.ts.map +1 -1
- package/dist/apps/data/routes/rpc.js +309 -165
- package/dist/apps/data/routes/rpc.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +47 -15
- package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
- package/dist/apps/data/routes/tokenlist.js +68 -11
- package/dist/apps/data/routes/tokenlist.js.map +1 -1
- package/dist/apps/data/routes/tokens.d.ts +2 -0
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +26 -14
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transfers.d.ts +93 -77
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +9 -7
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/valuation.d.ts +32 -32
- package/dist/apps/data/routes/verified-tokens.d.ts +88 -88
- package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/verified-tokens.js +64 -20
- package/dist/apps/data/routes/verified-tokens.js.map +1 -1
- package/dist/apps/data/routes/webhooks.d.ts +614 -177
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +308 -205
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/data/routes/zones.d.ts +31 -31
- package/dist/apps/data/routes/zones.d.ts.map +1 -1
- package/dist/apps/data/routes/zones.js +20 -12
- package/dist/apps/data/routes/zones.js.map +1 -1
- package/dist/apps/docs/reference.js +2 -2
- package/dist/apps/docs/reference.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 +3780 -3402
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +5 -14
- package/dist/apps/management/App.js.map +1 -1
- package/dist/apps/management/Billing.d.ts +48 -7
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +204 -25
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +317 -215
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +43 -15
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +290 -4
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +274 -49
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +6 -6
- package/dist/apps/management/routes/faucet.js +1 -1
- package/dist/apps/management/routes/faucet.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +213 -138
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +117 -13
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/invite-links.d.ts +166 -166
- package/dist/apps/management/routes/me.d.ts.map +1 -1
- package/dist/apps/management/routes/me.js +6 -2
- package/dist/apps/management/routes/me.js.map +1 -1
- package/dist/apps/management/routes/members.d.ts +30 -30
- package/dist/apps/management/routes/orgs.d.ts +103 -87
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +52 -12
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +125 -125
- package/dist/apps/management/routes/projects.d.ts.map +1 -1
- package/dist/apps/management/routes/projects.js +6 -1
- package/dist/apps/management/routes/projects.js.map +1 -1
- package/dist/apps/management/routes/scopes.d.ts.map +1 -1
- package/dist/apps/management/routes/scopes.js +4 -1
- package/dist/apps/management/routes/scopes.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +24 -24
- package/dist/apps/management/routes/usage.js +21 -4
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.d.ts +95 -95
- package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.js +7 -9
- package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
- package/dist/apps/management/routes/webhooks.d.ts +682 -616
- package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/management/routes/webhooks.js +58 -12
- package/dist/apps/management/routes/webhooks.js.map +1 -1
- package/dist/apps/mcp.d.ts +1 -1
- package/dist/apps/mcp.d.ts.map +1 -1
- package/dist/apps/mcp.js +23 -10
- package/dist/apps/mcp.js.map +1 -1
- package/dist/apps/mpp/App.d.ts +44 -44
- package/dist/apps/mpp/App.d.ts.map +1 -1
- package/dist/apps/mpp/App.js +35 -7
- package/dist/apps/mpp/App.js.map +1 -1
- package/dist/apps/mpp/internal/Adapter.d.ts +2 -0
- package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Adapter.js +30 -1
- package/dist/apps/mpp/internal/Adapter.js.map +1 -1
- package/dist/apps/mpp/internal/Policy.d.ts +22 -4
- package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Policy.js +24 -6
- package/dist/apps/mpp/internal/Policy.js.map +1 -1
- package/dist/apps/mpp/internal/Sponsorship.d.ts +3 -0
- package/dist/apps/mpp/internal/Sponsorship.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Sponsorship.js +6 -3
- package/dist/apps/mpp/internal/Sponsorship.js.map +1 -1
- package/dist/apps/relay/App.d.ts +2 -0
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +134 -75
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/apps/relay/Sponsorships.d.ts +5 -3
- package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
- package/dist/apps/relay/Sponsorships.js +209 -28
- package/dist/apps/relay/Sponsorships.js.map +1 -1
- package/dist/apps/{funding → routes}/Access.d.ts +4 -4
- package/dist/apps/routes/Access.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/Access.js +4 -4
- package/dist/apps/routes/Access.js.map +1 -0
- package/dist/apps/{funding → routes}/App.d.ts +418 -124
- package/dist/apps/{funding → routes}/App.d.ts.map +1 -1
- package/dist/apps/{funding → routes}/App.js +16 -16
- package/dist/apps/routes/App.js.map +1 -0
- package/dist/apps/routes/Inventory.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/Inventory.js +2 -2
- package/dist/apps/routes/Inventory.js.map +1 -0
- package/dist/apps/routes/index.d.ts +2 -0
- package/dist/apps/routes/index.d.ts.map +1 -0
- package/dist/apps/routes/index.js +2 -0
- package/dist/apps/routes/index.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/chains.d.ts +32 -32
- package/dist/apps/routes/routes/chains.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/routes/chains.js +25 -25
- package/dist/apps/routes/routes/chains.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/deposit-addresses.d.ts +107 -43
- package/dist/apps/routes/routes/deposit-addresses.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/routes/deposit-addresses.js +497 -222
- package/dist/apps/routes/routes/deposit-addresses.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/providers.d.ts +8 -8
- package/dist/apps/routes/routes/providers.d.ts.map +1 -0
- package/dist/apps/routes/routes/providers.js +57 -0
- package/dist/apps/routes/routes/providers.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/quotes.d.ts +106 -103
- package/dist/apps/routes/routes/quotes.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/routes/quotes.js +55 -38
- package/dist/apps/routes/routes/quotes.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/transfers.d.ts +733 -428
- package/dist/apps/routes/routes/transfers.d.ts.map +1 -0
- package/dist/apps/routes/routes/transfers.js +1140 -0
- package/dist/apps/routes/routes/transfers.js.map +1 -0
- package/dist/cli/Cli.d.ts +30 -0
- package/dist/cli/Cli.d.ts.map +1 -1
- package/dist/cli/commands/admin.d.ts +36 -0
- package/dist/cli/commands/admin.d.ts.map +1 -1
- package/dist/cli/commands/admin.js +273 -0
- package/dist/cli/commands/admin.js.map +1 -1
- package/dist/cloudflare.d.ts +16 -14
- package/dist/cloudflare.d.ts.map +1 -1
- package/dist/cloudflare.js +26 -21
- package/dist/cloudflare.js.map +1 -1
- package/dist/db/Db.d.ts +63 -21
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +1035 -15
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +780 -133
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +575 -162
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts +4 -0
- package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts.map +1 -0
- package/dist/db/tables/apiKeyAdmissionBootstraps.js +2 -0
- package/dist/db/tables/apiKeyAdmissionBootstraps.js.map +1 -0
- package/dist/db/tables/apiKeyAdmissions.d.ts +73 -0
- package/dist/db/tables/apiKeyAdmissions.d.ts.map +1 -0
- package/dist/db/tables/apiKeyAdmissions.js +142 -0
- package/dist/db/tables/apiKeyAdmissions.js.map +1 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.d.ts +4 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.d.ts.map +1 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.js +2 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.js.map +1 -0
- package/dist/db/tables/apiKeyOwnerTombstones.d.ts +20 -0
- package/dist/db/tables/apiKeyOwnerTombstones.d.ts.map +1 -0
- package/dist/db/tables/apiKeyOwnerTombstones.js +57 -0
- package/dist/db/tables/apiKeyOwnerTombstones.js.map +1 -0
- package/dist/db/tables/apiKeyRevocations.d.ts +21 -0
- package/dist/db/tables/apiKeyRevocations.d.ts.map +1 -0
- package/dist/db/tables/apiKeyRevocations.js +98 -0
- package/dist/db/tables/apiKeyRevocations.js.map +1 -0
- package/dist/db/tables/authAccounts.d.ts +47 -0
- package/dist/db/tables/authAccounts.d.ts.map +1 -0
- package/dist/db/tables/authAccounts.js +72 -0
- package/dist/db/tables/authAccounts.js.map +1 -0
- package/dist/db/tables/authSessions.d.ts +12 -0
- package/dist/db/tables/authSessions.d.ts.map +1 -0
- package/dist/db/tables/authSessions.js +2 -0
- package/dist/db/tables/authSessions.js.map +1 -0
- package/dist/db/tables/authVerifications.d.ts +12 -0
- package/dist/db/tables/authVerifications.d.ts.map +1 -0
- package/dist/db/tables/authVerifications.js +2 -0
- package/dist/db/tables/authVerifications.js.map +1 -0
- package/dist/db/tables/invitations.d.ts +17 -1
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/invitations.js +123 -43
- package/dist/db/tables/invitations.js.map +1 -1
- package/dist/db/tables/memberships.d.ts +8 -0
- package/dist/db/tables/memberships.d.ts.map +1 -1
- package/dist/db/tables/memberships.js +51 -2
- package/dist/db/tables/memberships.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +32 -10
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +110 -49
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/projects.d.ts +2 -0
- package/dist/db/tables/projects.d.ts.map +1 -1
- package/dist/db/tables/projects.js +12 -3
- package/dist/db/tables/projects.js.map +1 -1
- package/dist/db/tables/requestUsage.d.ts.map +1 -1
- package/dist/db/tables/requestUsage.js.map +1 -1
- package/dist/db/tables/rewardAccounts.d.ts +86 -0
- package/dist/db/tables/rewardAccounts.d.ts.map +1 -0
- package/dist/db/tables/rewardAccounts.js +88 -0
- package/dist/db/tables/rewardAccounts.js.map +1 -0
- package/dist/db/tables/rewardCampaignDistributors.d.ts +36 -0
- package/dist/db/tables/rewardCampaignDistributors.d.ts.map +1 -0
- package/dist/db/tables/rewardCampaignDistributors.js +30 -0
- package/dist/db/tables/rewardCampaignDistributors.js.map +1 -0
- package/dist/db/tables/rewardCampaigns.d.ts +171 -0
- package/dist/db/tables/rewardCampaigns.d.ts.map +1 -0
- package/dist/db/tables/rewardCampaigns.js +392 -0
- package/dist/db/tables/rewardCampaigns.js.map +1 -0
- package/dist/db/tables/rewardCredits.d.ts +53 -0
- package/dist/db/tables/rewardCredits.d.ts.map +1 -0
- package/dist/db/tables/rewardCredits.js +63 -0
- package/dist/db/tables/rewardCredits.js.map +1 -0
- package/dist/db/tables/rewardEligibilityAssociations.d.ts +61 -0
- package/dist/db/tables/rewardEligibilityAssociations.d.ts.map +1 -0
- package/dist/db/tables/rewardEligibilityAssociations.js +103 -0
- package/dist/db/tables/rewardEligibilityAssociations.js.map +1 -0
- package/dist/db/tables/rewardRuns.d.ts +188 -0
- package/dist/db/tables/rewardRuns.d.ts.map +1 -0
- package/dist/db/tables/rewardRuns.js +278 -0
- package/dist/db/tables/rewardRuns.js.map +1 -0
- package/dist/db/tables/rewardTransactionAttempts.d.ts +100 -0
- package/dist/db/tables/rewardTransactionAttempts.d.ts.map +1 -0
- package/dist/db/tables/rewardTransactionAttempts.js +163 -0
- package/dist/db/tables/rewardTransactionAttempts.js.map +1 -0
- package/dist/db/tables/routesCatalog.d.ts +58 -0
- package/dist/db/tables/routesCatalog.d.ts.map +1 -0
- package/dist/db/tables/{fundingCatalog.js → routesCatalog.js} +19 -19
- package/dist/db/tables/routesCatalog.js.map +1 -0
- package/dist/db/tables/routesDepositAddresses.d.ts +476 -0
- package/dist/db/tables/routesDepositAddresses.d.ts.map +1 -0
- package/dist/db/tables/routesDepositAddresses.js +587 -0
- package/dist/db/tables/routesDepositAddresses.js.map +1 -0
- package/dist/db/tables/{fundingDepositRequestObservations.d.ts → routesDepositRequestObservations.d.ts} +6 -6
- package/dist/db/tables/routesDepositRequestObservations.d.ts.map +1 -0
- package/dist/db/tables/{fundingDepositRequestObservations.js → routesDepositRequestObservations.js} +6 -6
- package/dist/db/tables/routesDepositRequestObservations.js.map +1 -0
- package/dist/db/tables/{fundingDeposits.d.ts → routesDeposits.d.ts} +210 -22
- package/dist/db/tables/routesDeposits.d.ts.map +1 -0
- package/dist/db/tables/routesDeposits.js +576 -0
- package/dist/db/tables/routesDeposits.js.map +1 -0
- package/dist/db/tables/routesIdempotency.d.ts +166 -0
- package/dist/db/tables/routesIdempotency.d.ts.map +1 -0
- package/dist/db/tables/routesIdempotency.js +330 -0
- package/dist/db/tables/routesIdempotency.js.map +1 -0
- package/dist/db/tables/routesSubsidies.d.ts +27 -0
- package/dist/db/tables/routesSubsidies.d.ts.map +1 -0
- package/dist/db/tables/routesSubsidies.js +45 -0
- package/dist/db/tables/routesSubsidies.js.map +1 -0
- package/dist/db/tables/{fundingTransferEvents.d.ts → routesTransferEvents.d.ts} +3 -3
- package/dist/db/tables/routesTransferEvents.d.ts.map +1 -0
- package/dist/db/tables/{fundingTransferEvents.js → routesTransferEvents.js} +3 -3
- package/dist/db/tables/routesTransferEvents.js.map +1 -0
- package/dist/db/tables/routesTransferSubsidies.d.ts +19 -0
- package/dist/db/tables/routesTransferSubsidies.d.ts.map +1 -0
- package/dist/db/tables/routesTransferSubsidies.js +17 -0
- package/dist/db/tables/routesTransferSubsidies.js.map +1 -0
- package/dist/db/tables/routesTransferSubsidyNonces.d.ts +51 -0
- package/dist/db/tables/routesTransferSubsidyNonces.d.ts.map +1 -0
- package/dist/db/tables/routesTransferSubsidyNonces.js +82 -0
- package/dist/db/tables/routesTransferSubsidyNonces.js.map +1 -0
- package/dist/db/tables/routesTransferTransactions.d.ts +77 -0
- package/dist/db/tables/routesTransferTransactions.d.ts.map +1 -0
- package/dist/db/tables/{fundingTransferTransactions.js → routesTransferTransactions.js} +31 -13
- package/dist/db/tables/routesTransferTransactions.js.map +1 -0
- package/dist/db/tables/routesTransfers.d.ts +319 -0
- package/dist/db/tables/routesTransfers.d.ts.map +1 -0
- package/dist/db/tables/routesTransfers.js +372 -0
- package/dist/db/tables/routesTransfers.js.map +1 -0
- package/dist/db/tables/sponsoredTransactions.d.ts +75 -20
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +124 -54
- package/dist/db/tables/sponsoredTransactions.js.map +1 -1
- package/dist/db/tables/sponsorshipAttributions.d.ts +69 -0
- package/dist/db/tables/sponsorshipAttributions.d.ts.map +1 -0
- package/dist/db/tables/sponsorshipAttributions.js +77 -0
- package/dist/db/tables/sponsorshipAttributions.js.map +1 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.d.ts +22 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.d.ts.map +1 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.js +45 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.js.map +1 -0
- package/dist/db/tables/stripeCustomers.d.ts +11 -0
- package/dist/db/tables/stripeCustomers.d.ts.map +1 -1
- package/dist/db/tables/stripeCustomers.js +13 -0
- package/dist/db/tables/stripeCustomers.js.map +1 -1
- package/dist/db/tables/users.d.ts +17 -1
- package/dist/db/tables/users.d.ts.map +1 -1
- package/dist/db/tables/users.js +47 -2
- package/dist/db/tables/users.js.map +1 -1
- package/dist/db/tables/verifiedTokenRequests.d.ts +21 -4
- package/dist/db/tables/verifiedTokenRequests.d.ts.map +1 -1
- package/dist/db/tables/verifiedTokenRequests.js +65 -44
- package/dist/db/tables/verifiedTokenRequests.js.map +1 -1
- package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
- package/dist/db/tables/webhookQueueEvents.js +5 -1
- package/dist/db/tables/webhookQueueEvents.js.map +1 -1
- package/dist/db/tables/webhookSubscriptions.d.ts +19 -11
- package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
- package/dist/db/tables/webhookSubscriptions.js +45 -13
- package/dist/db/tables/webhookSubscriptions.js.map +1 -1
- package/dist/handlers/internal/executionError.d.ts +2 -2
- package/dist/handlers/internal/executionError.d.ts.map +1 -1
- package/dist/handlers/internal/executionError.js +1 -2
- package/dist/handlers/internal/executionError.js.map +1 -1
- package/dist/handlers/internal/multisig.d.ts +4 -232
- package/dist/handlers/internal/multisig.d.ts.map +1 -1
- package/dist/handlers/internal/multisig.js +11 -537
- package/dist/handlers/internal/multisig.js.map +1 -1
- package/dist/handlers/internal/sponsorship.d.ts +19 -8
- package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
- package/dist/handlers/internal/sponsorship.js +13 -9
- package/dist/handlers/internal/sponsorship.js.map +1 -1
- package/dist/handlers/relay.d.ts +9 -12
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +81 -85
- package/dist/handlers/relay.js.map +1 -1
- package/dist/index.d.ts +0 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -17
- package/dist/index.js.map +1 -1
- package/dist/internal/AssetResponse.d.ts +12 -0
- package/dist/internal/AssetResponse.d.ts.map +1 -0
- package/dist/internal/AssetResponse.js +21 -0
- package/dist/internal/AssetResponse.js.map +1 -0
- package/dist/internal/Auth.d.ts +64 -12
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +631 -180
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/BetterAuth.d.ts +1488 -0
- package/dist/internal/BetterAuth.d.ts.map +1 -0
- package/dist/internal/BetterAuth.js +253 -0
- package/dist/internal/BetterAuth.js.map +1 -0
- package/dist/internal/Cache.d.ts +2 -0
- package/dist/internal/Cache.d.ts.map +1 -1
- package/dist/internal/Cache.js +2 -0
- package/dist/internal/Cache.js.map +1 -1
- package/dist/internal/EarnRates.d.ts +26 -3
- package/dist/internal/EarnRates.d.ts.map +1 -1
- package/dist/internal/EarnRates.js +84 -19
- package/dist/internal/EarnRates.js.map +1 -1
- package/dist/internal/EarnSharePrices.d.ts +120 -0
- package/dist/internal/EarnSharePrices.d.ts.map +1 -0
- package/dist/internal/EarnSharePrices.js +179 -0
- package/dist/internal/EarnSharePrices.js.map +1 -0
- package/dist/internal/EarnVaults.d.ts +4 -0
- package/dist/internal/EarnVaults.d.ts.map +1 -1
- package/dist/internal/EarnVaults.js +27 -10
- package/dist/internal/EarnVaults.js.map +1 -1
- package/dist/internal/Email.d.ts +37 -0
- package/dist/internal/Email.d.ts.map +1 -0
- package/dist/internal/Email.js +16 -0
- package/dist/internal/Email.js.map +1 -0
- package/dist/internal/Log.d.ts +32 -28
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +18 -11
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/MetricSink.d.ts +3 -0
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +67 -8
- package/dist/internal/MetricSink.js.map +1 -1
- package/dist/internal/Mpp.d.ts.map +1 -1
- package/dist/internal/Mpp.js +20 -25
- package/dist/internal/Mpp.js.map +1 -1
- package/dist/internal/OpenApi.d.ts +26 -3
- package/dist/internal/OpenApi.d.ts.map +1 -1
- package/dist/internal/OpenApi.js +25 -10
- package/dist/internal/OpenApi.js.map +1 -1
- package/dist/internal/Provider.d.ts +1 -1
- package/dist/internal/Provider.d.ts.map +1 -1
- package/dist/internal/RateLimit.d.ts.map +1 -1
- package/dist/internal/RateLimit.js +13 -1
- package/dist/internal/RateLimit.js.map +1 -1
- package/dist/internal/Store.d.ts +16 -0
- package/dist/internal/Store.d.ts.map +1 -1
- package/dist/internal/Store.js +59 -8
- package/dist/internal/Store.js.map +1 -1
- package/dist/internal/Tidx.d.ts +9 -2
- package/dist/internal/Tidx.d.ts.map +1 -1
- package/dist/internal/Tidx.js +78 -11
- package/dist/internal/Tidx.js.map +1 -1
- package/dist/internal/Timing.d.ts +26 -0
- package/dist/internal/Timing.d.ts.map +1 -1
- package/dist/internal/Timing.js +63 -5
- package/dist/internal/Timing.js.map +1 -1
- package/dist/internal/VercelOidc.d.ts +94 -0
- package/dist/internal/VercelOidc.d.ts.map +1 -0
- package/dist/internal/VercelOidc.js +128 -0
- package/dist/internal/VercelOidc.js.map +1 -0
- package/dist/internal/VerifiedTokens.d.ts +2 -8
- package/dist/internal/VerifiedTokens.d.ts.map +1 -1
- package/dist/internal/VerifiedTokens.js +24 -24
- package/dist/internal/VerifiedTokens.js.map +1 -1
- package/dist/internal/Viem.d.ts +30 -2067
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Viem.js +167 -17
- package/dist/internal/Viem.js.map +1 -1
- package/dist/internal/Webhooks.d.ts +12 -4
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +9 -3
- package/dist/internal/Webhooks.js.map +1 -1
- package/dist/internal/ZoneRpc.d.ts +7 -0
- package/dist/internal/ZoneRpc.d.ts.map +1 -0
- package/dist/internal/ZoneRpc.js +49 -0
- package/dist/internal/ZoneRpc.js.map +1 -0
- package/dist/internal/index.d.ts +3 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +3 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/rewards/Audit.d.ts +88 -0
- package/dist/internal/rewards/Audit.d.ts.map +1 -0
- package/dist/internal/rewards/Audit.js +134 -0
- package/dist/internal/rewards/Audit.js.map +1 -0
- package/dist/internal/rewards/Campaigns.d.ts +572 -0
- package/dist/internal/rewards/Campaigns.d.ts.map +1 -0
- package/dist/internal/rewards/Campaigns.js +531 -0
- package/dist/internal/rewards/Campaigns.js.map +1 -0
- package/dist/internal/rewards/Credits.d.ts +76 -0
- package/dist/internal/rewards/Credits.d.ts.map +1 -0
- package/dist/internal/rewards/Credits.js +95 -0
- package/dist/internal/rewards/Credits.js.map +1 -0
- package/dist/internal/rewards/Events.d.ts +100 -0
- package/dist/internal/rewards/Events.d.ts.map +1 -0
- package/dist/internal/rewards/Events.js +340 -0
- package/dist/internal/rewards/Events.js.map +1 -0
- package/dist/internal/rewards/Projection.d.ts +237 -0
- package/dist/internal/rewards/Projection.d.ts.map +1 -0
- package/dist/internal/rewards/Projection.js +616 -0
- package/dist/internal/rewards/Projection.js.map +1 -0
- package/dist/internal/rewards/Rates.d.ts +44 -0
- package/dist/internal/rewards/Rates.d.ts.map +1 -0
- package/dist/internal/rewards/Rates.js +60 -0
- package/dist/internal/rewards/Rates.js.map +1 -0
- package/dist/internal/rewards/Read.d.ts +158 -0
- package/dist/internal/rewards/Read.d.ts.map +1 -0
- package/dist/internal/rewards/Read.js +292 -0
- package/dist/internal/rewards/Read.js.map +1 -0
- package/dist/internal/rewards/Runner.d.ts +164 -0
- package/dist/internal/rewards/Runner.d.ts.map +1 -0
- package/dist/internal/rewards/Runner.js +1778 -0
- package/dist/internal/rewards/Runner.js.map +1 -0
- package/dist/internal/rewards/Signer.d.ts +224 -0
- package/dist/internal/rewards/Signer.d.ts.map +1 -0
- package/dist/internal/rewards/Signer.js +135 -0
- package/dist/internal/rewards/Signer.js.map +1 -0
- package/dist/internal/rewards/index.d.ts +15 -0
- package/dist/internal/rewards/index.d.ts.map +1 -0
- package/dist/internal/rewards/index.js +15 -0
- package/dist/internal/rewards/index.js.map +1 -0
- package/dist/internal/{funding → routes}/Action.d.ts +12 -1
- package/dist/internal/routes/Action.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Action.js +17 -9
- package/dist/internal/routes/Action.js.map +1 -0
- package/dist/internal/{funding → routes}/Catalog.d.ts +20 -20
- package/dist/internal/routes/Catalog.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Catalog.js +29 -29
- package/dist/internal/routes/Catalog.js.map +1 -0
- package/dist/internal/{funding → routes}/Chain.d.ts +10 -10
- package/dist/internal/routes/Chain.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Chain.js +3 -3
- package/dist/internal/routes/Chain.js.map +1 -0
- package/dist/internal/{funding → routes}/Deposit.d.ts +45 -23
- package/dist/internal/routes/Deposit.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Deposit.js +60 -27
- package/dist/internal/routes/Deposit.js.map +1 -0
- package/dist/internal/{funding → routes}/DepositAddress.d.ts +56 -27
- package/dist/internal/routes/DepositAddress.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/DepositAddress.js +95 -33
- package/dist/internal/routes/DepositAddress.js.map +1 -0
- package/dist/internal/{funding → routes}/DepositWebhook.d.ts +4 -4
- package/dist/internal/routes/DepositWebhook.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/DepositWebhook.js +4 -4
- package/dist/internal/routes/DepositWebhook.js.map +1 -0
- package/dist/internal/routes/Economics.d.ts +25 -0
- package/dist/internal/routes/Economics.d.ts.map +1 -0
- package/dist/internal/routes/Economics.js +28 -0
- package/dist/internal/routes/Economics.js.map +1 -0
- package/dist/internal/{funding → routes}/Evidence.d.ts +3 -3
- package/dist/internal/routes/Evidence.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Evidence.js +7 -7
- package/dist/internal/routes/Evidence.js.map +1 -0
- package/dist/internal/routes/Observability.d.ts +154 -0
- package/dist/internal/routes/Observability.d.ts.map +1 -0
- package/dist/internal/routes/Observability.js +389 -0
- package/dist/internal/routes/Observability.js.map +1 -0
- package/dist/internal/{funding → routes}/Provider.d.ts +311 -105
- package/dist/internal/routes/Provider.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Provider.js +229 -98
- package/dist/internal/routes/Provider.js.map +1 -0
- package/dist/internal/{funding → routes}/Reconciliation.d.ts +11 -6
- package/dist/internal/routes/Reconciliation.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Reconciliation.js +408 -158
- package/dist/internal/routes/Reconciliation.js.map +1 -0
- package/dist/internal/routes/Route.d.ts +21 -0
- package/dist/internal/routes/Route.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Route.js +1 -1
- package/dist/internal/routes/Route.js.map +1 -0
- package/dist/internal/{funding → routes}/SourceObservation.d.ts +6 -6
- package/dist/internal/routes/SourceObservation.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/SourceObservation.js +8 -8
- package/dist/internal/routes/SourceObservation.js.map +1 -0
- package/dist/internal/{funding → routes}/Subsidy.d.ts +48 -3
- package/dist/internal/routes/Subsidy.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Subsidy.js +43 -3
- package/dist/internal/routes/Subsidy.js.map +1 -0
- package/dist/internal/{funding → routes}/Token.d.ts +4 -4
- package/dist/internal/routes/Token.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Token.js +3 -3
- package/dist/internal/routes/Token.js.map +1 -0
- package/dist/internal/{funding → routes}/Transfer.d.ts +241 -46
- package/dist/internal/routes/Transfer.d.ts.map +1 -0
- package/dist/internal/routes/Transfer.js +728 -0
- package/dist/internal/routes/Transfer.js.map +1 -0
- package/dist/internal/{funding → routes}/TransferReconciliation.d.ts +13 -10
- package/dist/internal/routes/TransferReconciliation.d.ts.map +1 -0
- package/dist/internal/routes/TransferReconciliation.js +422 -0
- package/dist/internal/routes/TransferReconciliation.js.map +1 -0
- package/dist/internal/routes/TransferSubsidy.d.ts +201 -0
- package/dist/internal/routes/TransferSubsidy.d.ts.map +1 -0
- package/dist/internal/routes/TransferSubsidy.js +256 -0
- package/dist/internal/routes/TransferSubsidy.js.map +1 -0
- package/dist/internal/{funding → routes}/TransferWebhook.d.ts +5 -5
- package/dist/internal/routes/TransferWebhook.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/TransferWebhook.js +3 -3
- package/dist/internal/routes/TransferWebhook.js.map +1 -0
- package/dist/internal/{funding → routes}/index.d.ts +2 -0
- package/dist/internal/routes/index.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/index.js +2 -0
- package/dist/internal/routes/index.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/across.d.ts +4 -4
- package/dist/internal/routes/providers/across.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/across.js +13 -13
- package/dist/internal/routes/providers/across.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/relay.d.ts +21 -12
- package/dist/internal/routes/providers/relay.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/relay.js +194 -110
- package/dist/internal/routes/providers/relay.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/rhino.d.ts +4 -4
- package/dist/internal/routes/providers/rhino.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/rhino.js +10 -10
- package/dist/internal/routes/providers/rhino.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/squid.d.ts +4 -4
- package/dist/internal/routes/providers/squid.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/squid.js +14 -14
- package/dist/internal/routes/providers/squid.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/stargate.d.ts +46 -18
- package/dist/internal/routes/providers/stargate.d.ts.map +1 -0
- package/dist/internal/routes/providers/stargate.js +898 -0
- package/dist/internal/routes/providers/stargate.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/symbiosis.d.ts +4 -4
- package/dist/internal/routes/providers/symbiosis.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/symbiosis.js +30 -20
- package/dist/internal/routes/providers/symbiosis.js.map +1 -0
- package/dist/internal/webhookDestinations/slack.js +12 -12
- package/dist/internal/webhookDestinations/slack.js.map +1 -1
- package/dist/providers/index.d.ts +12 -12
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js +12 -12
- package/dist/providers/index.js.map +1 -1
- package/dist/server.d.ts +19 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +19 -0
- package/dist/server.js.map +1 -0
- package/package.json +15 -4
- package/src/ApiKey.ts +1 -1
- package/src/ApiKeys.test.ts +1033 -3
- package/src/ApiKeys.ts +489 -48
- package/src/App.test-d.ts +1 -1
- package/src/App.test.ts +216 -25
- package/src/App.ts +334 -31
- package/src/Assets.test.ts +2 -2
- package/src/Assets.ts +3 -1
- package/src/Auth.test-d.ts +1 -1
- package/src/Client.test-d.ts +539 -110
- package/src/Handler.ts +0 -1
- package/src/OpenApi.contract.test.ts +195 -0
- package/src/Scope.ts +17 -5
- package/src/Webhooks.ts +1 -1
- package/src/admin/App.test.ts +30 -2
- package/src/admin/App.ts +42 -6
- package/src/admin/apps/api-keys.test.ts +267 -5
- package/src/admin/apps/api-keys.ts +100 -50
- package/src/admin/apps/earn-vaults.test.ts +158 -0
- package/src/admin/apps/earn-vaults.ts +679 -6
- package/src/admin/apps/organizations.test.ts +306 -17
- package/src/admin/apps/organizations.ts +299 -24
- package/src/admin/apps/routes-support.test.ts +200 -0
- package/src/admin/apps/routes-support.ts +201 -0
- package/src/admin/apps/routes.test.ts +450 -0
- package/src/admin/apps/routes.ts +896 -0
- package/src/admin/apps/scopes.test.ts +15 -5
- package/src/admin/apps/subsidies.test.ts +306 -0
- package/src/admin/apps/subsidies.ts +457 -0
- package/src/admin/apps/verified-tokens.test.ts +40 -3
- package/src/admin/apps/verified-tokens.ts +33 -7
- package/src/admin/ui/plugin.ts +1 -2
- package/src/admin/ui/src/components/RewardCampaignForm.tsx +1009 -0
- package/src/admin/ui/src/lib/config.ts +11 -2
- package/src/admin/ui/src/lib/earn-vaults.ts +2 -2
- package/src/admin/ui/src/lib/organizations.test.ts +83 -50
- package/src/admin/ui/src/lib/organizations.ts +106 -25
- package/src/admin/ui/src/lib/query-client.ts +1 -1
- package/src/admin/ui/src/lib/reward-campaigns.ts +136 -0
- package/src/admin/ui/src/lib/routes.test.ts +88 -0
- package/src/admin/ui/src/lib/routes.ts +304 -0
- package/src/admin/ui/src/lib/subsidies.ts +75 -0
- package/src/admin/ui/src/lib/verified-tokens.ts +24 -9
- package/src/admin/ui/src/routeTree.gen.ts +63 -0
- package/src/admin/ui/src/routes/__root.tsx +13 -2
- package/src/admin/ui/src/routes/api-keys.tsx +196 -84
- package/src/admin/ui/src/routes/earn.vaults_.$vaultId.edit.tsx +105 -70
- package/src/admin/ui/src/routes/organizations.tsx +34 -4
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +239 -23
- package/src/admin/ui/src/routes/routes.tsx +1615 -0
- package/src/admin/ui/src/routes/routes_.support.tsx +248 -0
- package/src/admin/ui/src/routes/subsidies.tsx +799 -0
- package/src/admin/ui/src/routes/verified-tokens.tsx +64 -20
- package/src/admin/ui.generated.ts +202 -188
- package/src/analytics/Analytics.test.ts +108 -18
- package/src/analytics/Analytics.ts +38 -6
- package/src/analytics/tables/requestEvents.test.ts +100 -0
- package/src/analytics/tables/requestEvents.ts +10 -1
- package/src/analytics/tables/routesLifecycleIntervals.ts +140 -0
- package/src/apps/Zones.test.ts +15 -0
- package/src/apps/Zones.ts +52 -5
- package/src/apps/composition.test.ts +68 -60
- package/src/apps/data/App.test.ts +180 -2
- package/src/apps/data/App.ts +88 -28
- package/src/apps/data/routes/activities.test.ts +419 -7
- package/src/apps/data/routes/activities.ts +683 -216
- package/src/apps/data/routes/balances.test.ts +2 -2
- package/src/apps/data/routes/blocks.test.ts +46 -1
- package/src/apps/data/routes/coingecko.test.ts +419 -1
- package/src/apps/data/routes/coingecko.ts +309 -253
- package/src/apps/data/routes/earn.discovery.test.ts +274 -0
- package/src/apps/data/routes/earn.test.ts +1294 -17
- package/src/apps/data/routes/earn.ts +1838 -321
- package/src/apps/data/routes/exchanges.test.ts +12 -15
- package/src/apps/data/routes/fee-amm.test.ts +243 -0
- package/src/apps/data/routes/fee-amm.ts +201 -162
- package/src/apps/data/routes/indexer.test.ts +389 -0
- package/src/apps/data/routes/indexer.ts +165 -69
- package/src/apps/data/routes/receipts.test.ts +1 -1
- package/src/apps/data/routes/rpc.test.ts +384 -8
- package/src/apps/data/routes/rpc.ts +452 -227
- package/src/apps/data/routes/rpc.zone.test.ts +340 -0
- package/src/apps/data/routes/tokenlist.test.ts +285 -0
- package/src/apps/data/routes/tokenlist.ts +173 -88
- package/src/apps/data/routes/tokens.test.ts +93 -3
- package/src/apps/data/routes/tokens.ts +39 -23
- package/src/apps/data/routes/transactions.test.ts +1 -1
- package/src/apps/data/routes/transfers.test.ts +56 -24
- package/src/apps/data/routes/transfers.ts +19 -8
- package/src/apps/data/routes/valuation.test.ts +1 -1
- package/src/apps/data/routes/verified-tokens.test.ts +345 -0
- package/src/apps/data/routes/verified-tokens.ts +99 -29
- package/src/apps/data/routes/webhooks.scan.test.ts +29 -0
- package/src/apps/data/routes/webhooks.test.ts +651 -83
- package/src/apps/data/routes/webhooks.ts +1113 -868
- package/src/apps/data/routes/zones.test.ts +148 -71
- package/src/apps/data/routes/zones.ts +71 -55
- package/src/apps/docs/reference.ts +2 -2
- package/src/apps/index.ts +1 -1
- package/src/apps/management/App.ts +9 -51
- package/src/apps/management/Billing.test.ts +375 -14
- package/src/apps/management/Billing.ts +265 -29
- package/src/apps/management/routes/api-keys.test.ts +269 -7
- package/src/apps/management/routes/api-keys.ts +61 -20
- package/src/apps/management/routes/billing.test.ts +477 -15
- package/src/apps/management/routes/billing.ts +377 -50
- package/src/apps/management/routes/faucet.test.ts +1 -1
- package/src/apps/management/routes/faucet.ts +1 -1
- package/src/apps/management/routes/invitations.test.ts +270 -3
- package/src/apps/management/routes/invitations.ts +185 -15
- package/src/apps/management/routes/invoicePreview.test.ts +549 -0
- package/src/apps/management/routes/me.test.ts +246 -5
- package/src/apps/management/routes/me.ts +7 -2
- package/src/apps/management/routes/members.test.ts +108 -0
- package/src/apps/management/routes/orgs.test.ts +191 -3
- package/src/apps/management/routes/orgs.ts +58 -11
- package/src/apps/management/routes/projects.test.ts +33 -3
- package/src/apps/management/routes/projects.ts +6 -1
- package/src/apps/management/routes/scopes.test.ts +30 -2
- package/src/apps/management/routes/scopes.ts +4 -1
- package/src/apps/management/routes/usage.test.ts +32 -0
- package/src/apps/management/routes/usage.ts +22 -4
- package/src/apps/management/routes/verified-token-requests.test.ts +16 -2
- package/src/apps/management/routes/verified-token-requests.ts +7 -10
- package/src/apps/management/routes/webhooks.test.ts +49 -26
- package/src/apps/management/routes/webhooks.ts +78 -22
- package/src/apps/mcp.test.ts +113 -30
- package/src/apps/mcp.ts +22 -10
- package/src/apps/mpp/App.ts +37 -7
- package/src/apps/mpp/Mpp.test.ts +49 -8
- package/src/apps/mpp/Mpp.zone.test.ts +219 -0
- package/src/apps/mpp/internal/Adapter.ts +34 -0
- package/src/apps/mpp/internal/Policy.test.ts +86 -31
- package/src/apps/mpp/internal/Policy.ts +49 -7
- package/src/apps/mpp/internal/Sponsorship.test.ts +207 -0
- package/src/apps/mpp/internal/Sponsorship.ts +9 -3
- package/src/apps/relay/App.test.ts +839 -64
- package/src/apps/relay/App.ts +148 -81
- package/src/apps/relay/App.zone-billing.test.ts +257 -0
- package/src/apps/relay/Sponsorships.test.ts +67 -4
- package/src/apps/relay/Sponsorships.ts +233 -32
- package/src/apps/relay/Sponsorships.zone.test.ts +102 -0
- package/src/apps/{funding → routes}/Access.ts +6 -6
- package/src/apps/routes/App.test.ts +165 -0
- package/src/apps/routes/App.ts +96 -0
- package/src/apps/{funding → routes}/Inventory.ts +2 -2
- package/src/apps/routes/index.ts +1 -0
- package/src/apps/{funding → routes}/routes/chains.test.ts +66 -66
- package/src/apps/{funding → routes}/routes/chains.ts +23 -23
- package/src/apps/{funding → routes}/routes/deposit-addresses.test.ts +1358 -458
- package/src/apps/{funding → routes}/routes/deposit-addresses.ts +566 -246
- package/src/apps/{funding → routes}/routes/providers.test.ts +27 -33
- package/src/apps/{funding → routes}/routes/providers.ts +23 -23
- package/src/apps/{funding → routes}/routes/quotes.test.ts +298 -41
- package/src/apps/{funding → routes}/routes/quotes.ts +57 -40
- package/src/apps/{funding → routes}/routes/transfers.test.ts +1100 -353
- package/src/apps/routes/routes/transfers.ts +1332 -0
- package/src/cli/Cli.test.ts +1 -1
- package/src/cli/commands/admin.test.ts +748 -1
- package/src/cli/commands/admin.ts +278 -0
- package/src/cloudflare.ts +52 -47
- package/src/db/Db.test.ts +245 -2
- package/src/db/Db.ts +1485 -34
- package/src/db/Schema.ts +729 -228
- package/src/db/tables/apiKeyAdmissionBootstraps.ts +4 -0
- package/src/db/tables/apiKeyAdmissions.ts +218 -0
- package/src/db/tables/apiKeyOwnerAdmissions.ts +4 -0
- package/src/db/tables/apiKeyOwnerTombstones.ts +81 -0
- package/src/db/tables/apiKeyRevocations.test.ts +74 -0
- package/src/db/tables/apiKeyRevocations.ts +121 -0
- package/src/db/tables/authAccounts.ts +105 -0
- package/src/db/tables/authSessions.ts +13 -0
- package/src/db/tables/authVerifications.ts +13 -0
- package/src/db/tables/invitations.ts +142 -45
- package/src/db/tables/memberships.ts +79 -3
- package/src/db/tables/organizations.test.ts +690 -13
- package/src/db/tables/organizations.ts +139 -55
- package/src/db/tables/projects.test.ts +16 -0
- package/src/db/tables/projects.ts +13 -3
- package/src/db/tables/requestUsage.ts +4 -1
- package/src/db/tables/rewardAccounts.ts +178 -0
- package/src/db/tables/rewardCampaignDistributors.ts +68 -0
- package/src/db/tables/rewardCampaigns.test.ts +1388 -0
- package/src/db/tables/rewardCampaigns.ts +647 -0
- package/src/db/tables/rewardCredits.ts +110 -0
- package/src/db/tables/rewardEligibilityAssociations.test.ts +271 -0
- package/src/db/tables/rewardEligibilityAssociations.ts +184 -0
- package/src/db/tables/rewardRuns.ts +514 -0
- package/src/db/tables/rewardTransactionAttempts.ts +272 -0
- package/src/db/tables/routesCatalog.test.ts +185 -0
- package/src/db/tables/routesCatalog.ts +163 -0
- package/src/db/tables/routesDepositAddresses.test.ts +1048 -0
- package/src/db/tables/routesDepositAddresses.ts +1008 -0
- package/src/db/tables/{fundingDepositRequestObservations.test.ts → routesDepositRequestObservations.test.ts} +13 -14
- package/src/db/tables/{fundingDepositRequestObservations.ts → routesDepositRequestObservations.ts} +10 -10
- package/src/db/tables/{fundingDeposits.test.ts → routesDeposits.test.ts} +388 -46
- package/src/db/tables/routesDeposits.ts +1062 -0
- package/src/db/tables/routesIdempotency.test.ts +796 -0
- package/src/db/tables/routesIdempotency.ts +496 -0
- package/src/db/tables/routesSubsidies.test.ts +120 -0
- package/src/db/tables/routesSubsidies.ts +71 -0
- package/src/db/tables/{fundingTransferEvents.ts → routesTransferEvents.ts} +4 -4
- package/src/db/tables/routesTransferSubsidies.ts +38 -0
- package/src/db/tables/routesTransferSubsidyNonces.ts +124 -0
- package/src/db/tables/routesTransferTransactions.test.ts +195 -0
- package/src/db/tables/{fundingTransferTransactions.ts → routesTransferTransactions.ts} +63 -18
- package/src/db/tables/routesTransfers.test.ts +338 -0
- package/src/db/tables/routesTransfers.ts +662 -0
- package/src/db/tables/sponsoredTransactions.test.ts +269 -45
- package/src/db/tables/sponsoredTransactions.ts +225 -65
- package/src/db/tables/sponsorshipAttributions.test.ts +160 -0
- package/src/db/tables/sponsorshipAttributions.ts +168 -0
- package/src/db/tables/sponsorshipReconciliationCursors.test.ts +115 -0
- package/src/db/tables/sponsorshipReconciliationCursors.ts +67 -0
- package/src/db/tables/stripeCustomers.test.ts +85 -0
- package/src/db/tables/stripeCustomers.ts +24 -0
- package/src/db/tables/users.test.ts +129 -0
- package/src/db/tables/users.ts +49 -3
- package/src/db/tables/verifiedTokenRequests.test.ts +39 -20
- package/src/db/tables/verifiedTokenRequests.ts +80 -44
- package/src/db/tables/webhookQueueEvents.ts +8 -1
- package/src/db/tables/webhookSubscriptions.ts +95 -20
- package/src/handlers/internal/executionError.ts +3 -4
- package/src/handlers/internal/multisig.ts +13 -816
- package/src/handlers/internal/sponsorship.ts +26 -10
- package/src/handlers/relay.test-d.ts +9 -1
- package/src/handlers/relay.test.ts +823 -3
- package/src/handlers/relay.ts +127 -107
- package/src/index.test-d.ts +7 -0
- package/src/index.ts +0 -17
- package/src/internal/AssetResponse.ts +26 -0
- package/src/internal/Auth.test.ts +1656 -9
- package/src/internal/Auth.ts +880 -244
- package/src/internal/BetterAuth.test.ts +242 -0
- package/src/internal/BetterAuth.ts +349 -0
- package/src/internal/Cache.ts +2 -0
- package/src/internal/EarnRates.test.ts +17 -0
- package/src/internal/EarnRates.ts +124 -31
- package/src/internal/EarnSharePrices.test.ts +182 -0
- package/src/internal/EarnSharePrices.ts +313 -0
- package/src/internal/EarnVaults.test.ts +21 -0
- package/src/internal/EarnVaults.ts +33 -11
- package/src/internal/Email.ts +54 -0
- package/src/internal/Idempotency.test.ts +2 -2
- package/src/internal/Log.test-d.ts +8 -7
- package/src/internal/Log.test.ts +114 -16
- package/src/internal/Log.ts +53 -40
- package/src/internal/MetricSink.test.ts +313 -26
- package/src/internal/MetricSink.ts +73 -8
- package/src/internal/Mpp.test.ts +31 -0
- package/src/internal/Mpp.ts +21 -24
- package/src/internal/OpenApi.ts +45 -12
- package/src/internal/Provider.test.ts +1 -1
- package/src/internal/Provider.ts +1 -1
- package/src/internal/RateLimit.test.ts +21 -3
- package/src/internal/RateLimit.ts +12 -1
- package/src/internal/Store.test-d.ts +1 -1
- package/src/internal/Store.test.ts +151 -8
- package/src/internal/Store.ts +76 -9
- package/src/internal/Tidx.test.ts +59 -8
- package/src/internal/Tidx.ts +86 -14
- package/src/internal/Timing.test.ts +77 -0
- package/src/internal/Timing.ts +83 -6
- package/src/internal/VercelOidc.test.ts +188 -0
- package/src/internal/VercelOidc.ts +193 -0
- package/src/internal/VerifiedTokens.test.ts +60 -6
- package/src/internal/VerifiedTokens.ts +21 -24
- package/src/internal/Viem.batch.test.ts +80 -0
- package/src/internal/Viem.test.ts +201 -2
- package/src/internal/Viem.ts +221 -25
- package/src/internal/Webhooks.test.ts +85 -6
- package/src/internal/Webhooks.ts +22 -4
- package/src/internal/ZoneRpc.ts +50 -0
- package/src/internal/exchange/Provider.test.ts +2 -2
- package/src/internal/index.test.ts +3 -1
- package/src/internal/index.ts +3 -1
- package/src/internal/rewards/Audit.ts +231 -0
- package/src/internal/rewards/Campaigns.test.ts +1234 -0
- package/src/internal/rewards/Campaigns.ts +1205 -0
- package/src/internal/rewards/Credits.ts +165 -0
- package/src/internal/rewards/Events.local.test.ts +113 -0
- package/src/internal/rewards/Events.test.ts +152 -0
- package/src/internal/rewards/Events.ts +468 -0
- package/src/internal/rewards/Projection.test.ts +681 -0
- package/src/internal/rewards/Projection.ts +987 -0
- package/src/internal/rewards/Rates.test.ts +171 -0
- package/src/internal/rewards/Rates.ts +110 -0
- package/src/internal/rewards/Read.test.ts +501 -0
- package/src/internal/rewards/Read.ts +476 -0
- package/src/internal/rewards/Runner.checkpoint.test.ts +80 -0
- package/src/internal/rewards/Runner.states.test.ts +188 -0
- package/src/internal/rewards/Runner.test.ts +90 -0
- package/src/internal/rewards/Runner.ts +2229 -0
- package/src/internal/rewards/Signer.test.ts +79 -0
- package/src/internal/rewards/Signer.ts +180 -0
- package/src/internal/rewards/index.ts +14 -0
- package/src/internal/{funding → routes}/Action.test.ts +63 -14
- package/src/internal/{funding → routes}/Action.ts +35 -8
- package/src/internal/{funding → routes}/Catalog.test.ts +3 -3
- package/src/internal/{funding → routes}/Catalog.ts +39 -39
- package/src/internal/{funding → routes}/Chain.test.ts +1 -1
- package/src/internal/{funding → routes}/Chain.ts +11 -11
- package/src/internal/{funding → routes}/Deposit.test.ts +1 -1
- package/src/internal/{funding → routes}/Deposit.ts +93 -45
- package/src/internal/{funding → routes}/DepositAddress.test.ts +11 -3
- package/src/internal/{funding → routes}/DepositAddress.ts +132 -53
- package/src/internal/{funding → routes}/DepositWebhook.test.ts +61 -18
- package/src/internal/{funding → routes}/DepositWebhook.ts +9 -9
- package/src/internal/routes/Economics.test.ts +42 -0
- package/src/internal/routes/Economics.ts +47 -0
- package/src/internal/{funding → routes}/Evidence.test.ts +6 -6
- package/src/internal/{funding → routes}/Evidence.ts +9 -9
- package/src/internal/routes/Observability.test.ts +636 -0
- package/src/internal/routes/Observability.ts +668 -0
- package/src/internal/{funding → routes}/Provider.test.ts +489 -153
- package/src/internal/{funding → routes}/Provider.ts +489 -186
- package/src/internal/{funding → routes}/Reconciliation.local.test.ts +84 -12
- package/src/internal/{funding → routes}/Reconciliation.test.ts +1213 -279
- package/src/internal/{funding → routes}/Reconciliation.ts +501 -203
- package/src/internal/routes/Reconciliation.unattributed.test.ts +250 -0
- package/src/internal/{funding → routes}/Route.ts +7 -7
- package/src/internal/{funding → routes}/SourceObservation.test.ts +13 -14
- package/src/internal/{funding → routes}/SourceObservation.ts +13 -13
- package/src/internal/{funding → routes}/Subsidy.local.test.ts +7 -7
- package/src/internal/routes/Subsidy.test.ts +169 -0
- package/src/internal/{funding → routes}/Subsidy.ts +86 -6
- package/src/internal/{funding → routes}/Token.test.ts +1 -1
- package/src/internal/{funding → routes}/Token.ts +5 -5
- package/src/internal/routes/Transfer.test.ts +1199 -0
- package/src/internal/routes/Transfer.ts +1206 -0
- package/src/internal/routes/TransferReconciliation.test.ts +731 -0
- package/src/internal/routes/TransferReconciliation.ts +527 -0
- package/src/internal/routes/TransferSubsidy.test.ts +172 -0
- package/src/internal/routes/TransferSubsidy.ts +447 -0
- package/src/internal/{funding → routes}/TransferWebhook.test.ts +13 -13
- package/src/internal/{funding → routes}/TransferWebhook.ts +7 -7
- package/src/internal/{funding → routes}/index.test.ts +5 -3
- package/src/internal/{funding → routes}/index.ts +2 -0
- package/src/internal/{funding → routes}/providers/across.ts +16 -16
- package/src/internal/{funding → routes}/providers/index.test.ts +157 -44
- package/src/internal/{funding → routes}/providers/relay.test.ts +224 -32
- package/src/internal/{funding → routes}/providers/relay.ts +228 -121
- package/src/internal/{funding → routes}/providers/rhino.ts +16 -16
- package/src/internal/{funding → routes}/providers/squid.ts +17 -17
- package/src/internal/routes/providers/stargate.test.ts +728 -0
- package/src/internal/routes/providers/stargate.ts +1276 -0
- package/src/internal/{funding → routes}/providers/symbiosis.ts +64 -24
- package/src/internal/webhookDestinations/slack.ts +10 -10
- package/src/providers/index.ts +13 -13
- package/src/server.ts +18 -0
- package/dist/apps/funding/Access.d.ts.map +0 -1
- package/dist/apps/funding/Access.js.map +0 -1
- package/dist/apps/funding/App.js.map +0 -1
- package/dist/apps/funding/Inventory.d.ts.map +0 -1
- package/dist/apps/funding/Inventory.js.map +0 -1
- package/dist/apps/funding/ProviderAttempts.d.ts +0 -5
- package/dist/apps/funding/ProviderAttempts.d.ts.map +0 -1
- package/dist/apps/funding/ProviderAttempts.js +0 -24
- package/dist/apps/funding/ProviderAttempts.js.map +0 -1
- package/dist/apps/funding/index.d.ts +0 -2
- package/dist/apps/funding/index.d.ts.map +0 -1
- package/dist/apps/funding/index.js +0 -2
- package/dist/apps/funding/index.js.map +0 -1
- package/dist/apps/funding/routes/chains.d.ts.map +0 -1
- package/dist/apps/funding/routes/chains.js.map +0 -1
- package/dist/apps/funding/routes/deposit-addresses.d.ts.map +0 -1
- package/dist/apps/funding/routes/deposit-addresses.js.map +0 -1
- package/dist/apps/funding/routes/providers.d.ts.map +0 -1
- package/dist/apps/funding/routes/providers.js +0 -57
- package/dist/apps/funding/routes/providers.js.map +0 -1
- package/dist/apps/funding/routes/quotes.d.ts.map +0 -1
- package/dist/apps/funding/routes/quotes.js.map +0 -1
- package/dist/apps/funding/routes/transfers.d.ts.map +0 -1
- package/dist/apps/funding/routes/transfers.js +0 -828
- package/dist/apps/funding/routes/transfers.js.map +0 -1
- package/dist/db/tables/fundingCatalog.d.ts +0 -58
- package/dist/db/tables/fundingCatalog.d.ts.map +0 -1
- package/dist/db/tables/fundingCatalog.js.map +0 -1
- package/dist/db/tables/fundingDepositAddresses.d.ts +0 -192
- package/dist/db/tables/fundingDepositAddresses.d.ts.map +0 -1
- package/dist/db/tables/fundingDepositAddresses.js +0 -235
- package/dist/db/tables/fundingDepositAddresses.js.map +0 -1
- package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +0 -1
- package/dist/db/tables/fundingDepositRequestObservations.js.map +0 -1
- package/dist/db/tables/fundingDeposits.d.ts.map +0 -1
- package/dist/db/tables/fundingDeposits.js +0 -295
- package/dist/db/tables/fundingDeposits.js.map +0 -1
- package/dist/db/tables/fundingIdempotency.d.ts +0 -91
- package/dist/db/tables/fundingIdempotency.d.ts.map +0 -1
- package/dist/db/tables/fundingIdempotency.js +0 -103
- package/dist/db/tables/fundingIdempotency.js.map +0 -1
- package/dist/db/tables/fundingTransferEvents.d.ts.map +0 -1
- package/dist/db/tables/fundingTransferEvents.js.map +0 -1
- package/dist/db/tables/fundingTransferTransactions.d.ts +0 -53
- package/dist/db/tables/fundingTransferTransactions.d.ts.map +0 -1
- package/dist/db/tables/fundingTransferTransactions.js.map +0 -1
- package/dist/db/tables/fundingTransfers.d.ts +0 -99
- package/dist/db/tables/fundingTransfers.d.ts.map +0 -1
- package/dist/db/tables/fundingTransfers.js +0 -110
- package/dist/db/tables/fundingTransfers.js.map +0 -1
- package/dist/internal/funding/Action.d.ts.map +0 -1
- package/dist/internal/funding/Action.js.map +0 -1
- package/dist/internal/funding/Catalog.d.ts.map +0 -1
- package/dist/internal/funding/Catalog.js.map +0 -1
- package/dist/internal/funding/Chain.d.ts.map +0 -1
- package/dist/internal/funding/Chain.js.map +0 -1
- package/dist/internal/funding/Deposit.d.ts.map +0 -1
- package/dist/internal/funding/Deposit.js.map +0 -1
- package/dist/internal/funding/DepositAddress.d.ts.map +0 -1
- package/dist/internal/funding/DepositAddress.js.map +0 -1
- package/dist/internal/funding/DepositWebhook.d.ts.map +0 -1
- package/dist/internal/funding/DepositWebhook.js.map +0 -1
- package/dist/internal/funding/Evidence.d.ts.map +0 -1
- package/dist/internal/funding/Evidence.js.map +0 -1
- package/dist/internal/funding/Provider.d.ts.map +0 -1
- package/dist/internal/funding/Provider.js.map +0 -1
- package/dist/internal/funding/Reconciliation.d.ts.map +0 -1
- package/dist/internal/funding/Reconciliation.js.map +0 -1
- package/dist/internal/funding/Route.d.ts +0 -21
- package/dist/internal/funding/Route.d.ts.map +0 -1
- package/dist/internal/funding/Route.js.map +0 -1
- package/dist/internal/funding/SourceObservation.d.ts.map +0 -1
- package/dist/internal/funding/SourceObservation.js.map +0 -1
- package/dist/internal/funding/Subsidy.d.ts.map +0 -1
- package/dist/internal/funding/Subsidy.js.map +0 -1
- package/dist/internal/funding/Token.d.ts.map +0 -1
- package/dist/internal/funding/Token.js.map +0 -1
- package/dist/internal/funding/Transfer.d.ts.map +0 -1
- package/dist/internal/funding/Transfer.js +0 -462
- package/dist/internal/funding/Transfer.js.map +0 -1
- package/dist/internal/funding/TransferReconciliation.d.ts.map +0 -1
- package/dist/internal/funding/TransferReconciliation.js +0 -192
- package/dist/internal/funding/TransferReconciliation.js.map +0 -1
- package/dist/internal/funding/TransferWebhook.d.ts.map +0 -1
- package/dist/internal/funding/TransferWebhook.js.map +0 -1
- package/dist/internal/funding/index.d.ts.map +0 -1
- package/dist/internal/funding/index.js.map +0 -1
- package/dist/internal/funding/providers/across.d.ts.map +0 -1
- package/dist/internal/funding/providers/across.js.map +0 -1
- package/dist/internal/funding/providers/relay.d.ts.map +0 -1
- package/dist/internal/funding/providers/relay.js.map +0 -1
- package/dist/internal/funding/providers/rhino.d.ts.map +0 -1
- package/dist/internal/funding/providers/rhino.js.map +0 -1
- package/dist/internal/funding/providers/squid.d.ts.map +0 -1
- package/dist/internal/funding/providers/squid.js.map +0 -1
- package/dist/internal/funding/providers/stargate.d.ts.map +0 -1
- package/dist/internal/funding/providers/stargate.js +0 -579
- package/dist/internal/funding/providers/stargate.js.map +0 -1
- package/dist/internal/funding/providers/symbiosis.d.ts.map +0 -1
- package/dist/internal/funding/providers/symbiosis.js.map +0 -1
- package/src/apps/funding/App.test.ts +0 -78
- package/src/apps/funding/App.ts +0 -88
- package/src/apps/funding/ProviderAttempts.ts +0 -26
- package/src/apps/funding/index.ts +0 -1
- package/src/apps/funding/routes/transfers.ts +0 -987
- package/src/db/tables/fundingCatalog.test.ts +0 -122
- package/src/db/tables/fundingCatalog.ts +0 -163
- package/src/db/tables/fundingDepositAddresses.test.ts +0 -608
- package/src/db/tables/fundingDepositAddresses.ts +0 -443
- package/src/db/tables/fundingDeposits.ts +0 -572
- package/src/db/tables/fundingIdempotency.test.ts +0 -182
- package/src/db/tables/fundingIdempotency.ts +0 -180
- package/src/db/tables/fundingTransferTransactions.test.ts +0 -112
- package/src/db/tables/fundingTransfers.test.ts +0 -115
- package/src/db/tables/fundingTransfers.ts +0 -189
- package/src/handlers/internal/multisig.test.ts +0 -818
- package/src/internal/funding/Subsidy.test.ts +0 -75
- package/src/internal/funding/Transfer.test.ts +0 -524
- package/src/internal/funding/Transfer.ts +0 -762
- package/src/internal/funding/TransferReconciliation.test.ts +0 -147
- package/src/internal/funding/TransferReconciliation.ts +0 -264
- package/src/internal/funding/providers/stargate.test.ts +0 -328
- package/src/internal/funding/providers/stargate.ts +0 -856
- /package/dist/apps/{funding → routes}/Inventory.d.ts +0 -0
- /package/src/internal/{funding → routes}/Route.test.ts +0 -0
|
@@ -6,7 +6,7 @@ import type * as core_Chain from './Chain.js';
|
|
|
6
6
|
import type * as core_Route from './Route.js';
|
|
7
7
|
import type * as core_Token from './Token.js';
|
|
8
8
|
import type * as Transfer from './Transfer.js';
|
|
9
|
-
/**
|
|
9
|
+
/** Route provider schemas. */
|
|
10
10
|
export declare namespace schema {
|
|
11
11
|
/** Bounded upstream error code safe for structured logs. */
|
|
12
12
|
const ErrorCode: z.ZodMiniString<string>;
|
|
@@ -27,11 +27,11 @@ export declare namespace schema {
|
|
|
27
27
|
errorType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
28
28
|
type: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
|
-
/** Positive decimal amount accepted by
|
|
30
|
+
/** Positive decimal amount accepted by route quote requests. */
|
|
31
31
|
const PositiveDecimal: z.ZodMiniString<string>;
|
|
32
|
-
/** Positive base-unit amount accepted by
|
|
32
|
+
/** Positive base-unit amount accepted by route quote requests. */
|
|
33
33
|
const PositiveInteger: z.ZodMiniString<string>;
|
|
34
|
-
/** Normalized chain reference passed to
|
|
34
|
+
/** Normalized chain reference passed to route providers. */
|
|
35
35
|
const ChainRef: z.ZodMiniObject<{
|
|
36
36
|
addressFormat: z.ZodMiniEnum<{
|
|
37
37
|
base58: "base58";
|
|
@@ -46,7 +46,7 @@ export declare namespace schema {
|
|
|
46
46
|
}>;
|
|
47
47
|
name: z.ZodMiniString<string>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
|
-
/** Normalized token reference passed to
|
|
49
|
+
/** Normalized token reference passed to route providers. */
|
|
50
50
|
const TokenRef: z.ZodMiniObject<{
|
|
51
51
|
address: z.ZodMiniString<string>;
|
|
52
52
|
currency: z.ZodMiniString<string>;
|
|
@@ -57,18 +57,39 @@ export declare namespace schema {
|
|
|
57
57
|
tokenKey: z.ZodMiniString<string>;
|
|
58
58
|
verified: z.ZodMiniBoolean<boolean>;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
|
-
/** Provider identity embedded in
|
|
60
|
+
/** Provider identity embedded in route resources. */
|
|
61
61
|
const ProviderRef: z.ZodMiniObject<{
|
|
62
62
|
id: z.ZodMiniString<string>;
|
|
63
63
|
name: z.ZodMiniString<string>;
|
|
64
64
|
}, z.core.$strip>;
|
|
65
|
-
/**
|
|
65
|
+
/** One token amount paid by a subsidy provider. */
|
|
66
|
+
const Subsidy: z.ZodMiniObject<{
|
|
67
|
+
amount: z.ZodMiniObject<{
|
|
68
|
+
baseUnits: z.ZodMiniString<string>;
|
|
69
|
+
currency: z.ZodMiniString<string>;
|
|
70
|
+
decimals: z.ZodMiniNumber<number>;
|
|
71
|
+
formatted: z.ZodMiniString<string>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
provider: z.ZodMiniString<string>;
|
|
74
|
+
token: z.ZodMiniObject<{
|
|
75
|
+
address: z.ZodMiniString<string>;
|
|
76
|
+
currency: z.ZodMiniString<string>;
|
|
77
|
+
decimals: z.ZodMiniNumber<number>;
|
|
78
|
+
name: z.ZodMiniString<string>;
|
|
79
|
+
standard: z.ZodMiniString<string>;
|
|
80
|
+
symbol: z.ZodMiniString<string>;
|
|
81
|
+
tokenKey: z.ZodMiniString<string>;
|
|
82
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
/** Source amount unit accepted by a route quote request. */
|
|
66
86
|
const SourceAmountUnits: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
67
87
|
baseUnits: "baseUnits";
|
|
68
88
|
decimal: "decimal";
|
|
69
89
|
}>>;
|
|
70
|
-
/** Normalized caller request passed to
|
|
90
|
+
/** Normalized caller request passed to route providers. */
|
|
71
91
|
const QuoteRequest: z.ZodMiniObject<{
|
|
92
|
+
destinationChain: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
72
93
|
destinationToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
73
94
|
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
74
95
|
sourceAmount: z.ZodMiniString<string>;
|
|
@@ -93,7 +114,7 @@ export declare namespace schema {
|
|
|
93
114
|
unavailable: "unavailable";
|
|
94
115
|
unknown: "unknown";
|
|
95
116
|
}>;
|
|
96
|
-
/** Quote data returned by a
|
|
117
|
+
/** Quote data returned by a route provider. */
|
|
97
118
|
const GetQuoteResult: z.ZodMiniObject<{
|
|
98
119
|
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
99
120
|
destinationAmountMin: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -117,7 +138,7 @@ export declare namespace schema {
|
|
|
117
138
|
unknown: "unknown";
|
|
118
139
|
}>;
|
|
119
140
|
}, z.core.$strip>;
|
|
120
|
-
/** Executable preparation returned by a
|
|
141
|
+
/** Executable preparation returned by a route provider. */
|
|
121
142
|
const PrepareResult: z.ZodMiniObject<{
|
|
122
143
|
action: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
123
144
|
calls: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -165,7 +186,7 @@ export declare namespace schema {
|
|
|
165
186
|
}, z.core.$strip>>;
|
|
166
187
|
sampledAt: z.ZodMiniISODateTime;
|
|
167
188
|
}, z.core.$strip>;
|
|
168
|
-
/** Reusable deposit address provisioned by a
|
|
189
|
+
/** Reusable deposit address provisioned by a route provider. */
|
|
169
190
|
const DepositAddressResult: z.ZodMiniObject<{
|
|
170
191
|
address: z.ZodMiniString<string>;
|
|
171
192
|
correlation: z.ZodMiniObject<{
|
|
@@ -203,6 +224,25 @@ export declare namespace schema {
|
|
|
203
224
|
refundAmountExpected: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
204
225
|
refundTransactionHashes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
205
226
|
sourceTransactionHashes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
227
|
+
subsidy: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
228
|
+
amount: z.ZodMiniObject<{
|
|
229
|
+
baseUnits: z.ZodMiniString<string>;
|
|
230
|
+
currency: z.ZodMiniString<string>;
|
|
231
|
+
decimals: z.ZodMiniNumber<number>;
|
|
232
|
+
formatted: z.ZodMiniString<string>;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
provider: z.ZodMiniString<string>;
|
|
235
|
+
token: z.ZodMiniObject<{
|
|
236
|
+
address: z.ZodMiniString<string>;
|
|
237
|
+
currency: z.ZodMiniString<string>;
|
|
238
|
+
decimals: z.ZodMiniNumber<number>;
|
|
239
|
+
name: z.ZodMiniString<string>;
|
|
240
|
+
standard: z.ZodMiniString<string>;
|
|
241
|
+
symbol: z.ZodMiniString<string>;
|
|
242
|
+
tokenKey: z.ZodMiniString<string>;
|
|
243
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
}, z.core.$strip>>;
|
|
206
246
|
status: z.ZodMiniString<string>;
|
|
207
247
|
updatedAt: z.ZodMiniISODateTime;
|
|
208
248
|
}, z.core.$strip>;
|
|
@@ -217,27 +257,44 @@ export declare namespace schema {
|
|
|
217
257
|
refundAmountExpected: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
218
258
|
refundTransactionHashes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
219
259
|
sourceTransactionHashes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
260
|
+
subsidy: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
261
|
+
amount: z.ZodMiniObject<{
|
|
262
|
+
baseUnits: z.ZodMiniString<string>;
|
|
263
|
+
currency: z.ZodMiniString<string>;
|
|
264
|
+
decimals: z.ZodMiniNumber<number>;
|
|
265
|
+
formatted: z.ZodMiniString<string>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
provider: z.ZodMiniString<string>;
|
|
268
|
+
token: z.ZodMiniObject<{
|
|
269
|
+
address: z.ZodMiniString<string>;
|
|
270
|
+
currency: z.ZodMiniString<string>;
|
|
271
|
+
decimals: z.ZodMiniNumber<number>;
|
|
272
|
+
name: z.ZodMiniString<string>;
|
|
273
|
+
standard: z.ZodMiniString<string>;
|
|
274
|
+
symbol: z.ZodMiniString<string>;
|
|
275
|
+
tokenKey: z.ZodMiniString<string>;
|
|
276
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
277
|
+
}, z.core.$strip>;
|
|
278
|
+
}, z.core.$strip>>;
|
|
220
279
|
status: z.ZodMiniString<string>;
|
|
221
280
|
updatedAt: z.ZodMiniISODateTime;
|
|
222
281
|
}, z.core.$strip>>;
|
|
223
282
|
}, z.core.$strip>;
|
|
224
|
-
/** Quote quality signals exposed to
|
|
225
|
-
const
|
|
283
|
+
/** Quote quality signals exposed to routes API callers. */
|
|
284
|
+
const RoutesQuoteQuality: z.ZodMiniObject<{
|
|
226
285
|
estimatedSeconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
227
|
-
liquiditySource: z.ZodMiniString<string>;
|
|
228
|
-
sourceDetail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
229
286
|
tier: z.ZodMiniEnum<{
|
|
230
287
|
liquid: "liquid";
|
|
231
288
|
thin: "thin";
|
|
232
289
|
}>;
|
|
233
290
|
}, z.core.$strip>;
|
|
234
|
-
/** Provider quote freshness data exposed to
|
|
291
|
+
/** Provider quote freshness data exposed to routes API callers. */
|
|
235
292
|
const QuoteDetails: z.ZodMiniObject<{
|
|
236
293
|
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
237
294
|
sampledAt: z.ZodMiniISODateTime;
|
|
238
295
|
}, z.core.$strip>;
|
|
239
|
-
/** Successful normalized
|
|
240
|
-
const
|
|
296
|
+
/** Successful normalized route quote returned to callers. */
|
|
297
|
+
const RoutesQuote: z.ZodMiniObject<{
|
|
241
298
|
destinationAmount: z.ZodMiniObject<{
|
|
242
299
|
baseUnits: z.ZodMiniString<string>;
|
|
243
300
|
currency: z.ZodMiniString<string>;
|
|
@@ -281,8 +338,6 @@ export declare namespace schema {
|
|
|
281
338
|
}, z.core.$strip>;
|
|
282
339
|
quality: z.ZodMiniObject<{
|
|
283
340
|
estimatedSeconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
284
|
-
liquiditySource: z.ZodMiniString<string>;
|
|
285
|
-
sourceDetail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
286
341
|
tier: z.ZodMiniEnum<{
|
|
287
342
|
liquid: "liquid";
|
|
288
343
|
thin: "thin";
|
|
@@ -324,50 +379,82 @@ export declare namespace schema {
|
|
|
324
379
|
}, z.core.$strip>;
|
|
325
380
|
}, z.core.$strip>;
|
|
326
381
|
}
|
|
327
|
-
/** Chain metadata declared by a
|
|
382
|
+
/** Chain metadata declared by a provider route. */
|
|
328
383
|
export type Chain = core_Chain.Chain;
|
|
329
|
-
/** Token metadata declared by a
|
|
384
|
+
/** Token metadata declared by a provider route. */
|
|
330
385
|
export type Token = core_Token.Resolved;
|
|
331
|
-
/** Provider ids accepted by
|
|
386
|
+
/** Provider ids accepted by route quote requests. */
|
|
332
387
|
export type ProviderId = string;
|
|
333
388
|
/** Provider-specific quote status for the requested amount. */
|
|
334
389
|
export type QuoteStatus = z.output<typeof schema.QuoteStatus>;
|
|
335
390
|
/** Machine-readable quote quality tier. */
|
|
336
391
|
export type QualityTier = z.output<typeof schema.QualityTier>;
|
|
337
|
-
/** Normalized chain reference passed to
|
|
392
|
+
/** Normalized chain reference passed to route providers. */
|
|
338
393
|
export type ChainRef = z.output<typeof schema.ChainRef>;
|
|
339
|
-
/** Normalized token amount passed to
|
|
394
|
+
/** Normalized token amount passed to route providers. */
|
|
340
395
|
export type TokenAmount = ReturnType<typeof resolveSourceAmount>;
|
|
341
|
-
/** Normalized token reference passed to
|
|
396
|
+
/** Normalized token reference passed to route providers. */
|
|
342
397
|
export type TokenRef = z.output<typeof schema.TokenRef>;
|
|
343
|
-
/**
|
|
398
|
+
/** One token amount paid by a subsidy provider. */
|
|
399
|
+
export type Subsidy = z.output<typeof schema.Subsidy>;
|
|
400
|
+
/** A normalized internal candidate passed to route quote providers. */
|
|
344
401
|
export type QuoteCandidate = ReturnType<typeof createQuoteCandidate>;
|
|
345
402
|
/** A normalized route candidate passed to deposit-address providers. */
|
|
346
403
|
export type DepositAddressCandidate = ReturnType<typeof createDepositAddressCandidate>;
|
|
347
|
-
/** A successful normalized
|
|
348
|
-
export type
|
|
349
|
-
/** Cache policy for a single
|
|
404
|
+
/** A successful normalized route quote returned to callers. */
|
|
405
|
+
export type RoutesQuote = z.output<typeof schema.RoutesQuote>;
|
|
406
|
+
/** Cache policy for a single route quote request. */
|
|
350
407
|
export type CachePolicy = {
|
|
351
408
|
/** Whether providers should bypass their own quote or inventory caches. */
|
|
352
409
|
bypass: boolean;
|
|
353
410
|
};
|
|
354
|
-
/** Normalized caller request passed to
|
|
411
|
+
/** Normalized caller request passed to route providers. */
|
|
355
412
|
export type QuoteRequest = z.output<typeof schema.QuoteRequest>;
|
|
413
|
+
/** Bounded quote sample retained for request-level reliability telemetry. */
|
|
414
|
+
export type QuoteSample = {
|
|
415
|
+
/** Quote age when the provider request completed. */
|
|
416
|
+
ageMs: number;
|
|
417
|
+
/** Destination value loss relative to the requested source amount, in signed basis points. */
|
|
418
|
+
customerValueLossBps?: number | undefined;
|
|
419
|
+
/** Destination chain in the quoted corridor. */
|
|
420
|
+
destinationChain: string;
|
|
421
|
+
/** Destination token in the quoted corridor. */
|
|
422
|
+
destinationToken: string;
|
|
423
|
+
/** Amount the provider timestamp is ahead of the API clock. */
|
|
424
|
+
futureSkewMs: number;
|
|
425
|
+
/** Provider that returned the quote. */
|
|
426
|
+
provider: string;
|
|
427
|
+
/** Source chain in the quoted corridor. */
|
|
428
|
+
sourceChain: string;
|
|
429
|
+
/** Source token in the quoted corridor. */
|
|
430
|
+
sourceToken: string;
|
|
431
|
+
};
|
|
432
|
+
/** Request-level result used to measure quote availability and freshness. */
|
|
433
|
+
export type QuoteRequestResult = {
|
|
434
|
+
/** Number of configured route candidates matching the request. */
|
|
435
|
+
candidateCount: number;
|
|
436
|
+
/** Bounded request outcome for quote-availability measurement. */
|
|
437
|
+
outcome: 'available' | 'failed' | 'unavailable' | 'unsupported';
|
|
438
|
+
/** Successful provider quote samples returned to the caller. */
|
|
439
|
+
quotes: readonly QuoteSample[];
|
|
440
|
+
};
|
|
356
441
|
/** Contract of the provider `getQuote` method. */
|
|
357
442
|
export declare namespace getQuote {
|
|
358
|
-
/** Input passed to a
|
|
443
|
+
/** Input passed to a route provider for one curated quote candidate. */
|
|
359
444
|
type Parameters = {
|
|
360
445
|
/** Curated candidate selected for live provider quoting. */
|
|
361
446
|
candidate: QuoteCandidate;
|
|
362
447
|
/** Cache policy for provider-side discovery and quote lookups. */
|
|
363
448
|
cache: CachePolicy;
|
|
364
|
-
/**
|
|
449
|
+
/** Chain that receives the routed token. */
|
|
365
450
|
destinationChain: ChainRef;
|
|
366
|
-
/**
|
|
451
|
+
/** Token expected from this quote. */
|
|
367
452
|
destinationToken: TokenRef;
|
|
453
|
+
/** Stable non-secret tenant identity for provider-local fairness. */
|
|
454
|
+
quotaKey?: string | undefined;
|
|
368
455
|
/** Normalized caller request that produced this quote candidate. */
|
|
369
456
|
request: QuoteRequest;
|
|
370
|
-
/** Canonical
|
|
457
|
+
/** Canonical provider route selected for this quote candidate. */
|
|
371
458
|
route: core_Route.Route;
|
|
372
459
|
/** Source amount in base units and display form. */
|
|
373
460
|
sourceAmount: TokenAmount;
|
|
@@ -376,7 +463,7 @@ export declare namespace getQuote {
|
|
|
376
463
|
/** Token the caller currently holds. */
|
|
377
464
|
sourceToken: TokenRef;
|
|
378
465
|
};
|
|
379
|
-
/** Quote data returned by a
|
|
466
|
+
/** Quote data returned by a route provider. */
|
|
380
467
|
type ReturnType = z.output<typeof schema.GetQuoteResult>;
|
|
381
468
|
}
|
|
382
469
|
/** Contract of the provider `prepareTransfer` method. */
|
|
@@ -388,22 +475,22 @@ export declare namespace prepareTransfer {
|
|
|
388
475
|
/** Provider-issued request identifier. */
|
|
389
476
|
requestId: string;
|
|
390
477
|
};
|
|
391
|
-
/** Input passed to a
|
|
478
|
+
/** Input passed to a route provider preparing one executable transfer. */
|
|
392
479
|
type Parameters = {
|
|
393
480
|
/** Curated candidate selected for preparation. */
|
|
394
481
|
candidate: QuoteCandidate;
|
|
395
|
-
/**
|
|
482
|
+
/** Route method the caller selected. */
|
|
396
483
|
method: Transfer.Method;
|
|
397
484
|
/** Amount mode the caller selected. */
|
|
398
485
|
mode: Transfer.Mode;
|
|
399
486
|
/** Final beneficiary on the destination chain. */
|
|
400
487
|
recipient: string;
|
|
401
|
-
/** Source-chain account that signs the
|
|
488
|
+
/** Source-chain account that signs the route action. */
|
|
402
489
|
sender: string;
|
|
403
490
|
/** Caller slippage bound in basis points. */
|
|
404
491
|
slippageBps?: number | undefined;
|
|
405
492
|
};
|
|
406
|
-
/** Executable preparation returned by a
|
|
493
|
+
/** Executable preparation returned by a route provider. */
|
|
407
494
|
type ReturnType = z.output<typeof schema.PrepareResult>;
|
|
408
495
|
}
|
|
409
496
|
/** Contract for provider-specific executable action validation. */
|
|
@@ -412,11 +499,40 @@ export declare namespace validateTransferAction {
|
|
|
412
499
|
type Parameters = prepareTransfer.Parameters & {
|
|
413
500
|
/** Executable action returned by the provider. */
|
|
414
501
|
action: Action.Action;
|
|
502
|
+
/** Minimum destination amount encoded by the provider action. */
|
|
503
|
+
destinationAmountMin: string;
|
|
415
504
|
};
|
|
416
505
|
/** Provider-specific constraints established by validation. */
|
|
417
506
|
type ReturnType = {
|
|
418
507
|
/** Exact native values independently validated against provider calldata. */
|
|
419
508
|
nativeValues?: readonly Action.NativeValue[] | undefined;
|
|
509
|
+
/** Exact additional token approvals independently validated against provider calldata. */
|
|
510
|
+
tokenApprovals?: readonly Action.TokenApproval[] | undefined;
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
/** Contract for provider-specific destination delivery verification. */
|
|
514
|
+
export declare namespace verifyDestinationDelivery {
|
|
515
|
+
/** Stored transfer terms and provider evidence. */
|
|
516
|
+
type Parameters = {
|
|
517
|
+
/** Configured chain that receives the provider delivery. */
|
|
518
|
+
destinationChain: Chain;
|
|
519
|
+
/** Private provider state captured while preparing and registering the transfer. */
|
|
520
|
+
providerState?: Transfer.ProviderState | undefined;
|
|
521
|
+
/** Configured chain containing the submitted transaction. */
|
|
522
|
+
sourceChain: Chain;
|
|
523
|
+
/** Stored public transfer terms. */
|
|
524
|
+
transfer: Transfer.Snapshot;
|
|
525
|
+
};
|
|
526
|
+
/** Destination delivery verification outcome. */
|
|
527
|
+
type ReturnType = {
|
|
528
|
+
type: 'invalid';
|
|
529
|
+
} | {
|
|
530
|
+
type: 'pending';
|
|
531
|
+
} | {
|
|
532
|
+
/** Verified destination transaction reference. */
|
|
533
|
+
transactionHash: string;
|
|
534
|
+
/** The destination delivery matches the stored transfer terms. */
|
|
535
|
+
type: 'verified';
|
|
420
536
|
};
|
|
421
537
|
}
|
|
422
538
|
/** Contract for provider-specific source transaction verification. */
|
|
@@ -442,6 +558,16 @@ export declare namespace verifySourceTransaction {
|
|
|
442
558
|
} | {
|
|
443
559
|
type: 'pending';
|
|
444
560
|
} | {
|
|
561
|
+
/** Private provider state retained while awaiting replacement evidence. */
|
|
562
|
+
providerState: Transfer.ProviderState;
|
|
563
|
+
/** Previously verified source evidence left the canonical chain. */
|
|
564
|
+
type: 'reorged';
|
|
565
|
+
} | {
|
|
566
|
+
/** The transaction supports the transfer but does not execute it. */
|
|
567
|
+
type: 'related';
|
|
568
|
+
} | {
|
|
569
|
+
/** Exact destination amount observed in the source transaction, when provider fees changed after preparation. */
|
|
570
|
+
destinationAmount?: string | undefined;
|
|
445
571
|
/** Private provider evidence retained for reconciliation. */
|
|
446
572
|
providerState?: Transfer.ProviderState | undefined;
|
|
447
573
|
/** The transaction matches the stored transfer terms. */
|
|
@@ -474,8 +600,12 @@ export declare namespace listDepositAddressRequests {
|
|
|
474
600
|
address: string;
|
|
475
601
|
/** Opaque provider cursor returned by the previous page. */
|
|
476
602
|
continuation?: string | undefined;
|
|
603
|
+
/** Token delivered by the provider, when needed to identify a subsidy payment. */
|
|
604
|
+
destinationToken?: TokenRef | undefined;
|
|
477
605
|
/** Existing provider request to refresh directly. */
|
|
478
606
|
requestId?: string | undefined;
|
|
607
|
+
/** Token received by the provider, when needed to identify a subsidy payment. */
|
|
608
|
+
sourceToken?: TokenRef | undefined;
|
|
479
609
|
};
|
|
480
610
|
/** One page of normalized provider requests. */
|
|
481
611
|
type ReturnType = z.output<typeof schema.DepositAddressRequestsResult>;
|
|
@@ -529,31 +659,33 @@ export declare namespace observeDepositAddressRequest {
|
|
|
529
659
|
} | {
|
|
530
660
|
/** Verified destination transaction references. */
|
|
531
661
|
destinationTransactionHashes: readonly string[];
|
|
662
|
+
/** Token amount paid by the provider for this request. */
|
|
663
|
+
subsidy?: z.output<typeof schema.Subsidy> | undefined;
|
|
532
664
|
/** Authenticated provider delivery was observed onchain. */
|
|
533
665
|
type: 'verified';
|
|
534
666
|
});
|
|
535
667
|
}
|
|
536
|
-
/** Optional webhook capability implemented by a complete
|
|
668
|
+
/** Optional webhook capability implemented by a complete route integration. */
|
|
537
669
|
export type Webhook = {
|
|
538
670
|
/** Authenticates, resolves, and enqueues one provider status event. */
|
|
539
671
|
receive(input: Webhook.receive.Parameters): Promise<Webhook.receive.ReturnType>;
|
|
540
672
|
/** Authenticates a provider status event and returns its bounded hint. */
|
|
541
673
|
verify(input: Webhook.verify.Parameters): Webhook.verify.ReturnType;
|
|
542
674
|
};
|
|
543
|
-
/** Contracts for a
|
|
675
|
+
/** Contracts for a route provider webhook capability. */
|
|
544
676
|
export declare namespace Webhook {
|
|
545
677
|
/** Contracts for receiving one authenticated provider webhook. */
|
|
546
678
|
namespace receive {
|
|
547
|
-
/** Raw provider webhook request passed to a
|
|
679
|
+
/** Raw provider webhook request passed to a route integration. */
|
|
548
680
|
type Parameters = {
|
|
549
681
|
/** Exact request body bytes decoded as UTF-8. */
|
|
550
682
|
body: string;
|
|
551
683
|
/** Original provider webhook headers. */
|
|
552
684
|
headers: Headers;
|
|
553
685
|
};
|
|
554
|
-
/** Durable queue message emitted for one authenticated
|
|
686
|
+
/** Durable queue message emitted for one authenticated routes status hint. */
|
|
555
687
|
type Dispatchable = {
|
|
556
|
-
/** Stored
|
|
688
|
+
/** Stored route deposit address id. */
|
|
557
689
|
addressId: string;
|
|
558
690
|
/** Bounded follow-up state for work awaiting provider or settlement confirmation. */
|
|
559
691
|
followUp?: FollowUp | undefined;
|
|
@@ -564,7 +696,7 @@ export declare namespace Webhook {
|
|
|
564
696
|
/** Mechanism that requested reconciliation. */
|
|
565
697
|
trigger: 'chain' | 'manual' | 'poll' | 'webhook';
|
|
566
698
|
/** Reconciliation queue message discriminator. */
|
|
567
|
-
type: '
|
|
699
|
+
type: 'routes:deposit-address:reconcile';
|
|
568
700
|
/** Authenticated provider webhook timing carried into reconciliation. */
|
|
569
701
|
webhookTiming?: WebhookTiming | undefined;
|
|
570
702
|
};
|
|
@@ -593,7 +725,7 @@ export declare namespace Webhook {
|
|
|
593
725
|
/** Mechanism that requested reconciliation, when written by a trigger-aware producer. */
|
|
594
726
|
trigger?: Dispatchable['trigger'] | undefined;
|
|
595
727
|
};
|
|
596
|
-
/** Safe disposition of one authenticated
|
|
728
|
+
/** Safe disposition of one authenticated route provider webhook. */
|
|
597
729
|
type ReturnType = {
|
|
598
730
|
addressId: string;
|
|
599
731
|
type: 'queued';
|
|
@@ -605,9 +737,9 @@ export declare namespace Webhook {
|
|
|
605
737
|
}
|
|
606
738
|
/** Contracts for verifying one provider webhook. */
|
|
607
739
|
namespace verify {
|
|
608
|
-
/** Raw provider webhook request passed to a
|
|
740
|
+
/** Raw provider webhook request passed to a route integration. */
|
|
609
741
|
type Parameters = receive.Parameters;
|
|
610
|
-
/** Authenticated provider hint extracted from a
|
|
742
|
+
/** Authenticated provider hint extracted from a routes webhook. */
|
|
611
743
|
type ReturnType = {
|
|
612
744
|
/** Reusable provider address, when the provider attributed one. */
|
|
613
745
|
address?: string | undefined;
|
|
@@ -622,69 +754,78 @@ export declare namespace Webhook {
|
|
|
622
754
|
};
|
|
623
755
|
}
|
|
624
756
|
}
|
|
625
|
-
/** A
|
|
626
|
-
export type Provider<id extends string = string> = core_Provider.Provider<id, '
|
|
627
|
-
/** Provisions a reusable
|
|
757
|
+
/** A route provider descriptor and live quote implementation. */
|
|
758
|
+
export type Provider<id extends string = string> = core_Provider.Provider<id, 'routes'> & {
|
|
759
|
+
/** Provisions a reusable route deposit address, when supported. */
|
|
628
760
|
createDepositAddress?(input: createDepositAddress.Parameters, signal: AbortSignal): Promise<createDepositAddress.ReturnType>;
|
|
629
|
-
/** Requests a live
|
|
761
|
+
/** Requests a live route quote. */
|
|
630
762
|
getQuote(input: getQuote.Parameters, signal: AbortSignal): Promise<getQuote.ReturnType>;
|
|
631
763
|
/** Lists requests discovered for a reusable deposit address, when supported. */
|
|
632
764
|
listDepositAddressRequests?(input: listDepositAddressRequests.Parameters, signal: AbortSignal): Promise<listDepositAddressRequests.ReturnType>;
|
|
633
765
|
/** Observes authenticated delivery for a verified reusable-address transfer, when supported. */
|
|
634
766
|
observeDepositAddressRequest?(input: observeDepositAddressRequest.Parameters, signal: AbortSignal): Promise<observeDepositAddressRequest.ReturnType>;
|
|
635
|
-
/** Prepares an executable
|
|
767
|
+
/** Prepares an executable route transfer, when the provider supports it. */
|
|
636
768
|
prepareTransfer?(input: prepareTransfer.Parameters, signal: AbortSignal): Promise<prepareTransfer.ReturnType>;
|
|
637
769
|
/** Validates provider-specific action semantics before generic persistence checks. */
|
|
638
770
|
validateTransferAction?(input: validateTransferAction.Parameters): validateTransferAction.ReturnType;
|
|
771
|
+
/** Verifies destination delivery for a registered transfer, when supported. */
|
|
772
|
+
verifyDestinationDelivery?(input: verifyDestinationDelivery.Parameters, signal: AbortSignal): Promise<verifyDestinationDelivery.ReturnType>;
|
|
639
773
|
/** Verifies a submitted source transaction, when supported. */
|
|
640
774
|
verifySourceTransaction?(input: verifySourceTransaction.Parameters, signal: AbortSignal): Promise<verifySourceTransaction.ReturnType>;
|
|
641
775
|
/** Receives authenticated provider status events, when configured. */
|
|
642
776
|
webhook?: Webhook | undefined;
|
|
643
777
|
};
|
|
644
|
-
/** Defines a
|
|
778
|
+
/** Defines a route provider from its identity and quote implementation. */
|
|
645
779
|
export declare function from<const id extends string>(options: from.Options<id>): Provider<id>;
|
|
646
780
|
export declare namespace from {
|
|
647
|
-
/**
|
|
781
|
+
/** Route provider definition. */
|
|
648
782
|
type Options<id extends string> = Omit<Provider<id>, 'type'>;
|
|
649
783
|
}
|
|
650
|
-
/** Narrows a registered provider to a
|
|
784
|
+
/** Narrows a registered provider to a route provider. */
|
|
651
785
|
export declare function is(provider: core_Provider.Provider): provider is Provider;
|
|
652
|
-
/** Narrows a
|
|
786
|
+
/** Narrows a route provider to one that prepares executable transfers. */
|
|
653
787
|
export declare function canPrepareTransfer(provider: Provider): provider is Provider & {
|
|
654
788
|
prepareTransfer: NonNullable<Provider['prepareTransfer']>;
|
|
655
789
|
};
|
|
656
|
-
/** Narrows a
|
|
790
|
+
/** Narrows a route provider to one that provisions reusable deposit addresses. */
|
|
657
791
|
export declare function canCreateDepositAddress(provider: Provider): provider is Provider & {
|
|
658
792
|
createDepositAddress: NonNullable<Provider['createDepositAddress']>;
|
|
659
793
|
};
|
|
660
|
-
/** Narrows a
|
|
794
|
+
/** Narrows a route provider to one that tracks reusable deposit addresses. */
|
|
661
795
|
export declare function canListDepositAddressRequests(provider: Provider): provider is Provider & {
|
|
662
796
|
listDepositAddressRequests: NonNullable<Provider['listDepositAddressRequests']>;
|
|
663
797
|
};
|
|
664
|
-
/** Narrows a
|
|
798
|
+
/** Narrows a route provider to one that observes reusable-address delivery onchain. */
|
|
665
799
|
export declare function canObserveDepositAddressRequest(provider: Provider): provider is Provider & {
|
|
666
800
|
observeDepositAddressRequest: NonNullable<Provider['observeDepositAddressRequest']>;
|
|
667
801
|
};
|
|
668
|
-
/** Narrows a
|
|
802
|
+
/** Narrows a route provider to one that reconciles registered transfers. */
|
|
803
|
+
export declare function canReconcileTransfer(provider: Provider): provider is Provider & {
|
|
804
|
+
verifyDestinationDelivery: NonNullable<Provider['verifyDestinationDelivery']>;
|
|
805
|
+
verifySourceTransaction: NonNullable<Provider['verifySourceTransaction']>;
|
|
806
|
+
};
|
|
807
|
+
/** Narrows a route provider to one that verifies submitted source transactions. */
|
|
669
808
|
export declare function canVerifySourceTransaction(provider: Provider): provider is Provider & {
|
|
670
809
|
verifySourceTransaction: NonNullable<Provider['verifySourceTransaction']>;
|
|
671
810
|
};
|
|
672
|
-
/** Narrows a
|
|
811
|
+
/** Narrows a route provider to one with authenticated webhook receipt. */
|
|
673
812
|
export declare function canReceiveWebhook(provider: Provider): provider is Provider & {
|
|
674
813
|
webhook: Webhook;
|
|
675
814
|
};
|
|
676
|
-
/**
|
|
677
|
-
export type ProviderOperation = 'createDepositAddress' | 'getQuote' | 'listDepositAddressRequests' | 'prepareTransfer';
|
|
678
|
-
/**
|
|
815
|
+
/** Route provider method recorded by operational telemetry. */
|
|
816
|
+
export type ProviderOperation = 'createDepositAddress' | 'getQuote' | 'listDepositAddressRequests' | 'observeDepositAddressRequest' | 'prepareTransfer' | 'receiveWebhook' | 'verifyDestinationDelivery' | 'verifySourceTransaction';
|
|
817
|
+
/** Route provider identity retained by bounded operation telemetry. */
|
|
818
|
+
export type ProviderIdentity = Pick<Provider, 'id'>;
|
|
819
|
+
/** One timed route provider operation. */
|
|
679
820
|
export type ProviderAttempt = {
|
|
680
821
|
/** Wall-clock duration of the provider attempt in milliseconds. */
|
|
681
822
|
durationMs: number;
|
|
682
823
|
/** Provider method invoked by the attempt. */
|
|
683
824
|
operation: ProviderOperation;
|
|
684
825
|
/** Successful or expected-unavailable provider outcome. */
|
|
685
|
-
outcome: 'available' | 'thin' | 'unavailable';
|
|
686
|
-
/** Provider that handled the
|
|
687
|
-
provider:
|
|
826
|
+
outcome: 'available' | 'success' | 'thin' | 'unavailable';
|
|
827
|
+
/** Provider that handled the operation. */
|
|
828
|
+
provider: ProviderIdentity;
|
|
688
829
|
} | {
|
|
689
830
|
/** Error thrown by the provider boundary. */
|
|
690
831
|
cause: unknown;
|
|
@@ -694,8 +835,8 @@ export type ProviderAttempt = {
|
|
|
694
835
|
operation: ProviderOperation;
|
|
695
836
|
/** Failed provider outcome. */
|
|
696
837
|
outcome: 'failed';
|
|
697
|
-
/** Provider that handled the
|
|
698
|
-
provider:
|
|
838
|
+
/** Provider that handled the operation. */
|
|
839
|
+
provider: ProviderIdentity;
|
|
699
840
|
};
|
|
700
841
|
/** Bounded result for one provider attempt. */
|
|
701
842
|
export type ProviderAttemptResult = {
|
|
@@ -717,8 +858,19 @@ export type ProviderFailure = {
|
|
|
717
858
|
/** Provider method that failed. */
|
|
718
859
|
operation: ProviderOperation;
|
|
719
860
|
/** Provider that failed. */
|
|
720
|
-
provider:
|
|
861
|
+
provider: ProviderIdentity;
|
|
721
862
|
};
|
|
863
|
+
/** Observes one provider operation without changing its result. */
|
|
864
|
+
export declare function observe<const result>(provider: ProviderIdentity, fn: () => Promise<result>, options: observe.Options): Promise<result>;
|
|
865
|
+
export declare namespace observe {
|
|
866
|
+
/** Provider operation observation configuration. */
|
|
867
|
+
type Options = {
|
|
868
|
+
/** Receives the bounded provider operation result. */
|
|
869
|
+
onAttempt: (result: ProviderAttemptResult) => void;
|
|
870
|
+
/** Stable provider method identifier. */
|
|
871
|
+
operation: ProviderOperation;
|
|
872
|
+
};
|
|
873
|
+
}
|
|
722
874
|
/** Returns normalized chains and source tokens supported by quote providers. */
|
|
723
875
|
export declare function getChains(options: getChains.Options): {
|
|
724
876
|
addressFormat: "base58" | "base58check" | "hex";
|
|
@@ -739,13 +891,13 @@ export declare function getChains(options: getChains.Options): {
|
|
|
739
891
|
export declare namespace getChains {
|
|
740
892
|
/** Options for getting provider-supported source chains. */
|
|
741
893
|
type Options = {
|
|
742
|
-
/** Compiled
|
|
894
|
+
/** Compiled route catalog containing provider routes. */
|
|
743
895
|
catalog: core_Catalog.Snapshot;
|
|
744
896
|
/** Providers whose routes contribute source chains and tokens. */
|
|
745
897
|
providers: readonly Provider[];
|
|
746
898
|
};
|
|
747
899
|
}
|
|
748
|
-
/** Returns the supplied
|
|
900
|
+
/** Returns the supplied route quote providers. */
|
|
749
901
|
export declare function getProviders(options: getProviders.Options): {
|
|
750
902
|
id: string;
|
|
751
903
|
name: string;
|
|
@@ -753,13 +905,13 @@ export declare function getProviders(options: getProviders.Options): {
|
|
|
753
905
|
export declare namespace getProviders {
|
|
754
906
|
/** Options for getting providers. */
|
|
755
907
|
type Options = {
|
|
756
|
-
/** Compiled
|
|
908
|
+
/** Compiled route catalog containing provider routes. */
|
|
757
909
|
catalog: core_Catalog.Snapshot;
|
|
758
|
-
/**
|
|
910
|
+
/** Route providers included in this deployment. */
|
|
759
911
|
providers: readonly Provider[];
|
|
760
912
|
};
|
|
761
913
|
}
|
|
762
|
-
/** Returns successful live
|
|
914
|
+
/** Returns successful live route quotes from the supplied providers. */
|
|
763
915
|
export declare function getQuotes(options: getQuotes.Options): Promise<{
|
|
764
916
|
destinationAmount: {
|
|
765
917
|
baseUnits: string;
|
|
@@ -796,8 +948,6 @@ export declare function getQuotes(options: getQuotes.Options): Promise<{
|
|
|
796
948
|
};
|
|
797
949
|
quality: {
|
|
798
950
|
estimatedSeconds?: number | undefined;
|
|
799
|
-
liquiditySource: string;
|
|
800
|
-
sourceDetail?: string | undefined;
|
|
801
951
|
tier: "liquid" | "thin";
|
|
802
952
|
};
|
|
803
953
|
quote: {
|
|
@@ -874,21 +1024,25 @@ export declare function getQuoteCandidates(options: getQuoteCandidates.Options):
|
|
|
874
1024
|
};
|
|
875
1025
|
}[];
|
|
876
1026
|
export declare namespace getQuoteCandidates {
|
|
877
|
-
/** Options for selecting
|
|
1027
|
+
/** Options for selecting route quote candidates. */
|
|
878
1028
|
type Options = QuoteRequest & {
|
|
879
|
-
/** Compiled
|
|
1029
|
+
/** Compiled route catalog containing provider routes. */
|
|
880
1030
|
catalog: core_Catalog.Snapshot;
|
|
881
|
-
/**
|
|
1031
|
+
/** Route providers considered by the request. */
|
|
882
1032
|
providers: readonly Provider[];
|
|
883
1033
|
};
|
|
884
1034
|
}
|
|
885
1035
|
export declare namespace getQuotes {
|
|
886
|
-
/** Options for requesting live
|
|
1036
|
+
/** Options for requesting live route quotes. */
|
|
887
1037
|
type Options = getQuoteCandidates.Options & {
|
|
888
1038
|
/** Cache policy for provider-side discovery and quote lookups. */
|
|
889
1039
|
cache?: CachePolicy | undefined;
|
|
890
1040
|
/** Receives one bounded observation for every provider attempt. */
|
|
891
1041
|
onAttempt?: ((attempt: ProviderAttempt) => void) | undefined;
|
|
1042
|
+
/** Receives the bounded request-level quote result. */
|
|
1043
|
+
onResult?: ((result: QuoteRequestResult) => void) | undefined;
|
|
1044
|
+
/** Stable non-secret tenant identity for provider-local fairness. */
|
|
1045
|
+
quotaKey?: string | undefined;
|
|
892
1046
|
/** Per-provider quote timeout in milliseconds. */
|
|
893
1047
|
providerTimeoutMs?: number | undefined;
|
|
894
1048
|
};
|
|
@@ -898,6 +1052,28 @@ export declare namespace getQuotes {
|
|
|
898
1052
|
* capability-enabled provider. Returns `undefined` when no route is enabled.
|
|
899
1053
|
*/
|
|
900
1054
|
export declare function createDepositAddress(options: createDepositAddress.Options): Promise<createDepositAddress.Selection | undefined>;
|
|
1055
|
+
/** Selects and normalizes the deterministic reusable-address route without provisioning it. */
|
|
1056
|
+
export declare function selectDepositAddress(options: selectDepositAddress.Options): selectDepositAddress.Result | undefined;
|
|
1057
|
+
export declare namespace selectDepositAddress {
|
|
1058
|
+
/** Route and accounts used to select one reusable-address provider. */
|
|
1059
|
+
type Options = getDepositAddressCandidates.Options & {
|
|
1060
|
+
/** Final beneficiary on Tempo. */
|
|
1061
|
+
recipient: string;
|
|
1062
|
+
/** Source-chain account that receives refunds. */
|
|
1063
|
+
refundAddress: string;
|
|
1064
|
+
};
|
|
1065
|
+
/** Deterministic provider route with normalized accounts. */
|
|
1066
|
+
type Result = {
|
|
1067
|
+
/** Curated reusable-address route selected for provisioning. */
|
|
1068
|
+
candidate: DepositAddressCandidate;
|
|
1069
|
+
/** Provider selected for the reusable address. */
|
|
1070
|
+
provider: ReturnType<typeof getDepositAddressCandidates>[number]['provider'];
|
|
1071
|
+
/** Normalized final beneficiary on Tempo. */
|
|
1072
|
+
recipient: string;
|
|
1073
|
+
/** Normalized source-chain refund account. */
|
|
1074
|
+
refundAddress: string;
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
901
1077
|
export declare namespace createDepositAddress {
|
|
902
1078
|
/** Options for provisioning one reusable deposit address. */
|
|
903
1079
|
type Options = getDepositAddressCandidates.Options & {
|
|
@@ -944,21 +1120,29 @@ export declare namespace prepareTransfer {
|
|
|
944
1120
|
providerTimeoutMs?: number | undefined;
|
|
945
1121
|
/** Final beneficiary on the destination chain. */
|
|
946
1122
|
recipient: string;
|
|
947
|
-
/** Source-chain account that signs the
|
|
1123
|
+
/** Source-chain account that signs the route action. */
|
|
948
1124
|
sender: string;
|
|
949
1125
|
/** Caller slippage bound in basis points. */
|
|
950
1126
|
slippageBps?: number | undefined;
|
|
951
1127
|
};
|
|
952
1128
|
/** The selected preparation with a guaranteed expiry. */
|
|
953
1129
|
type Selection = {
|
|
1130
|
+
/** Highest expected destination amount returned by a successful candidate. */
|
|
1131
|
+
bestDestinationAmount: string;
|
|
954
1132
|
/** Curated candidate the preparation was produced for. */
|
|
955
1133
|
candidate: QuoteCandidate;
|
|
1134
|
+
/** Number of successful preparations considered for automatic selection. */
|
|
1135
|
+
preparedCount: number;
|
|
956
1136
|
/** Provider that produced the selected preparation. */
|
|
957
1137
|
provider: Provider;
|
|
1138
|
+
/** Normalized final beneficiary on the destination chain. */
|
|
1139
|
+
recipient: string;
|
|
958
1140
|
/** The preparation, with a default expiry applied when the provider gave none. */
|
|
959
1141
|
result: prepareTransfer.ReturnType & {
|
|
960
1142
|
expiresAt: string;
|
|
961
1143
|
};
|
|
1144
|
+
/** Normalized source-chain account that signs the route action. */
|
|
1145
|
+
sender: string;
|
|
962
1146
|
};
|
|
963
1147
|
}
|
|
964
1148
|
/**
|
|
@@ -1006,19 +1190,21 @@ export declare function getDepositAddressCandidates(options: getDepositAddressCa
|
|
|
1006
1190
|
verified: boolean;
|
|
1007
1191
|
};
|
|
1008
1192
|
};
|
|
1009
|
-
provider: core_Provider.Provider<string, "
|
|
1010
|
-
/** Provisions a reusable
|
|
1193
|
+
provider: core_Provider.Provider<string, "routes"> & {
|
|
1194
|
+
/** Provisions a reusable route deposit address, when supported. */
|
|
1011
1195
|
createDepositAddress?(input: createDepositAddress.Parameters, signal: AbortSignal): Promise<createDepositAddress.ReturnType>;
|
|
1012
|
-
/** Requests a live
|
|
1196
|
+
/** Requests a live route quote. */
|
|
1013
1197
|
getQuote(input: getQuote.Parameters, signal: AbortSignal): Promise<getQuote.ReturnType>;
|
|
1014
1198
|
/** Lists requests discovered for a reusable deposit address, when supported. */
|
|
1015
1199
|
listDepositAddressRequests?(input: listDepositAddressRequests.Parameters, signal: AbortSignal): Promise<listDepositAddressRequests.ReturnType>;
|
|
1016
1200
|
/** Observes authenticated delivery for a verified reusable-address transfer, when supported. */
|
|
1017
1201
|
observeDepositAddressRequest?(input: observeDepositAddressRequest.Parameters, signal: AbortSignal): Promise<observeDepositAddressRequest.ReturnType>;
|
|
1018
|
-
/** Prepares an executable
|
|
1202
|
+
/** Prepares an executable route transfer, when the provider supports it. */
|
|
1019
1203
|
prepareTransfer?(input: prepareTransfer.Parameters, signal: AbortSignal): Promise<prepareTransfer.ReturnType>;
|
|
1020
1204
|
/** Validates provider-specific action semantics before generic persistence checks. */
|
|
1021
1205
|
validateTransferAction?(input: validateTransferAction.Parameters): validateTransferAction.ReturnType;
|
|
1206
|
+
/** Verifies destination delivery for a registered transfer, when supported. */
|
|
1207
|
+
verifyDestinationDelivery?(input: verifyDestinationDelivery.Parameters, signal: AbortSignal): Promise<verifyDestinationDelivery.ReturnType>;
|
|
1022
1208
|
/** Verifies a submitted source transaction, when supported. */
|
|
1023
1209
|
verifySourceTransaction?(input: verifySourceTransaction.Parameters, signal: AbortSignal): Promise<verifySourceTransaction.ReturnType>;
|
|
1024
1210
|
/** Receives authenticated provider status events, when configured. */
|
|
@@ -1030,13 +1216,13 @@ export declare function getDepositAddressCandidates(options: getDepositAddressCa
|
|
|
1030
1216
|
export declare namespace getDepositAddressCandidates {
|
|
1031
1217
|
/** Options for selecting reusable deposit-address routes. */
|
|
1032
1218
|
type Options = {
|
|
1033
|
-
/** Compiled
|
|
1219
|
+
/** Compiled route catalog containing provider routes and capabilities. */
|
|
1034
1220
|
catalog: core_Catalog.Snapshot;
|
|
1035
1221
|
/** Tempo destination chain selected by app composition. */
|
|
1036
1222
|
destinationChainId: number;
|
|
1037
1223
|
/** Tempo destination token symbol, contract address, or token key. */
|
|
1038
1224
|
destinationToken: string;
|
|
1039
|
-
/**
|
|
1225
|
+
/** Route providers considered by the request. */
|
|
1040
1226
|
providers: readonly Provider[];
|
|
1041
1227
|
/** Source chain CAIP-2 id, slug, or alias. */
|
|
1042
1228
|
sourceChain: string;
|
|
@@ -1095,19 +1281,21 @@ export declare function getPrepareCandidates(options: getPrepareCandidates.Optio
|
|
|
1095
1281
|
verified: boolean;
|
|
1096
1282
|
};
|
|
1097
1283
|
};
|
|
1098
|
-
provider: core_Provider.Provider<string, "
|
|
1099
|
-
/** Provisions a reusable
|
|
1284
|
+
provider: core_Provider.Provider<string, "routes"> & {
|
|
1285
|
+
/** Provisions a reusable route deposit address, when supported. */
|
|
1100
1286
|
createDepositAddress?(input: createDepositAddress.Parameters, signal: AbortSignal): Promise<createDepositAddress.ReturnType>;
|
|
1101
|
-
/** Requests a live
|
|
1287
|
+
/** Requests a live route quote. */
|
|
1102
1288
|
getQuote(input: getQuote.Parameters, signal: AbortSignal): Promise<getQuote.ReturnType>;
|
|
1103
1289
|
/** Lists requests discovered for a reusable deposit address, when supported. */
|
|
1104
1290
|
listDepositAddressRequests?(input: listDepositAddressRequests.Parameters, signal: AbortSignal): Promise<listDepositAddressRequests.ReturnType>;
|
|
1105
1291
|
/** Observes authenticated delivery for a verified reusable-address transfer, when supported. */
|
|
1106
1292
|
observeDepositAddressRequest?(input: observeDepositAddressRequest.Parameters, signal: AbortSignal): Promise<observeDepositAddressRequest.ReturnType>;
|
|
1107
|
-
/** Prepares an executable
|
|
1293
|
+
/** Prepares an executable route transfer, when the provider supports it. */
|
|
1108
1294
|
prepareTransfer?(input: prepareTransfer.Parameters, signal: AbortSignal): Promise<prepareTransfer.ReturnType>;
|
|
1109
1295
|
/** Validates provider-specific action semantics before generic persistence checks. */
|
|
1110
1296
|
validateTransferAction?(input: validateTransferAction.Parameters): validateTransferAction.ReturnType;
|
|
1297
|
+
/** Verifies destination delivery for a registered transfer, when supported. */
|
|
1298
|
+
verifyDestinationDelivery?(input: verifyDestinationDelivery.Parameters, signal: AbortSignal): Promise<verifyDestinationDelivery.ReturnType>;
|
|
1111
1299
|
/** Verifies a submitted source transaction, when supported. */
|
|
1112
1300
|
verifySourceTransaction?(input: verifySourceTransaction.Parameters, signal: AbortSignal): Promise<verifySourceTransaction.ReturnType>;
|
|
1113
1301
|
/** Receives authenticated provider status events, when configured. */
|
|
@@ -1119,19 +1307,19 @@ export declare function getPrepareCandidates(options: getPrepareCandidates.Optio
|
|
|
1119
1307
|
export declare namespace getPrepareCandidates {
|
|
1120
1308
|
/** Options for selecting preparation candidates. */
|
|
1121
1309
|
type Options = {
|
|
1122
|
-
/** Compiled
|
|
1310
|
+
/** Compiled route catalog containing provider routes and capabilities. */
|
|
1123
1311
|
catalog: core_Catalog.Snapshot;
|
|
1124
|
-
/**
|
|
1125
|
-
|
|
1126
|
-
/**
|
|
1312
|
+
/** Destination chain CAIP-2 id, slug, or alias. */
|
|
1313
|
+
destinationChain: string;
|
|
1314
|
+
/** Destination token symbol, contract address, or token key. */
|
|
1127
1315
|
destinationToken: string;
|
|
1128
|
-
/**
|
|
1316
|
+
/** Route method passed to provider preparation. */
|
|
1129
1317
|
method: Transfer.Method;
|
|
1130
1318
|
/** Amount mode the caller selected. */
|
|
1131
1319
|
mode: Transfer.Mode;
|
|
1132
|
-
/**
|
|
1320
|
+
/** Route provider ID selected by the caller. */
|
|
1133
1321
|
provider?: string | undefined;
|
|
1134
|
-
/**
|
|
1322
|
+
/** Route providers considered by the request. */
|
|
1135
1323
|
providers: readonly Provider[];
|
|
1136
1324
|
/** Source amount in base units. */
|
|
1137
1325
|
sourceAmount: string;
|
|
@@ -1141,21 +1329,25 @@ export declare namespace getPrepareCandidates {
|
|
|
1141
1329
|
sourceToken: string;
|
|
1142
1330
|
};
|
|
1143
1331
|
}
|
|
1144
|
-
/** Source amount unit accepted by the
|
|
1332
|
+
/** Source amount unit accepted by the route quote request. */
|
|
1145
1333
|
export type SourceAmountUnits = z.output<typeof schema.SourceAmountUnits>;
|
|
1146
|
-
/** Fetch implementation accepted by
|
|
1334
|
+
/** Fetch implementation accepted by route provider factories. */
|
|
1147
1335
|
export type Fetch = typeof globalThis.fetch;
|
|
1148
1336
|
/** Returns bounded provider failure details suitable for structured request logs. */
|
|
1149
1337
|
export declare function failure(options: ProviderFailure): failure.Result;
|
|
1150
1338
|
export declare namespace failure {
|
|
1151
1339
|
/** Bounded provider failure fields. */
|
|
1152
1340
|
type Result = {
|
|
1341
|
+
/** EIP-155 chain whose RPC request failed. */
|
|
1342
|
+
chainId?: number | undefined;
|
|
1153
1343
|
/** Stable provider error code, when one is safe to retain. */
|
|
1154
1344
|
code?: string | undefined;
|
|
1155
1345
|
/** Failure boundary that rejected the provider request. */
|
|
1156
|
-
failure: 'http' | 'network' | 'payload' | 'rate_limit' | 'timeout' | 'unknown';
|
|
1346
|
+
failure: 'http' | 'network' | 'payload' | 'query' | 'rate_limit' | 'timeout' | 'unknown';
|
|
1157
1347
|
/** Provider identifier. */
|
|
1158
1348
|
id: string;
|
|
1349
|
+
/** Upstream error message, when one was returned. */
|
|
1350
|
+
message?: string | undefined;
|
|
1159
1351
|
/** Provider operation identifier. */
|
|
1160
1352
|
operation: ProviderOperation;
|
|
1161
1353
|
/** Upstream HTTP status, when a response was received. */
|
|
@@ -1298,6 +1490,8 @@ declare namespace createQuoteCandidate {
|
|
|
1298
1490
|
sourceToken: Token;
|
|
1299
1491
|
};
|
|
1300
1492
|
}
|
|
1493
|
+
/** Formats one provider attempt for logs and aggregate metrics. */
|
|
1494
|
+
export declare function formatAttempt(attempt: ProviderAttempt): ProviderAttemptResult;
|
|
1301
1495
|
declare function resolveSourceAmount(options: resolveSourceAmount.Options): {
|
|
1302
1496
|
amount: string;
|
|
1303
1497
|
formatted: string;
|
|
@@ -1309,6 +1503,10 @@ declare namespace resolveSourceAmount {
|
|
|
1309
1503
|
units: SourceAmountUnits;
|
|
1310
1504
|
};
|
|
1311
1505
|
}
|
|
1506
|
+
/** Error thrown when the caller supplies an unsupported destination chain. */
|
|
1507
|
+
export declare class UnsupportedDestinationChainError extends Error {
|
|
1508
|
+
name: string;
|
|
1509
|
+
}
|
|
1312
1510
|
/** Error thrown when the caller supplies an unsupported destination token. */
|
|
1313
1511
|
export declare class UnsupportedDestinationTokenError extends Error {
|
|
1314
1512
|
name: string;
|
|
@@ -1329,6 +1527,14 @@ export declare class InvalidAmountError extends Error {
|
|
|
1329
1527
|
export declare class InvalidRefundAddressError extends Error {
|
|
1330
1528
|
name: string;
|
|
1331
1529
|
}
|
|
1530
|
+
/** Error thrown when the caller supplies an invalid destination-chain recipient. */
|
|
1531
|
+
export declare class InvalidRecipientAddressError extends Error {
|
|
1532
|
+
name: string;
|
|
1533
|
+
}
|
|
1534
|
+
/** Error thrown when the caller supplies an invalid source-chain sender. */
|
|
1535
|
+
export declare class InvalidSenderAddressError extends Error {
|
|
1536
|
+
name: string;
|
|
1537
|
+
}
|
|
1332
1538
|
/** Error thrown when provider deployment configuration is invalid. */
|
|
1333
1539
|
export declare class ProviderConfigurationError extends Error {
|
|
1334
1540
|
name: string;
|
|
@@ -1368,7 +1574,7 @@ export declare class ProviderQuoteError extends Error {
|
|
|
1368
1574
|
/** Provider failures that prevented a successful quote. */
|
|
1369
1575
|
failures: readonly ProviderFailure[];
|
|
1370
1576
|
/** Bounded provider attempts retained for request logs. */
|
|
1371
|
-
|
|
1577
|
+
routesProviderAttempts: readonly ProviderAttemptResult[];
|
|
1372
1578
|
/** First bounded provider failure retained for request logs. */
|
|
1373
1579
|
providerFailure?: failure.Result | undefined;
|
|
1374
1580
|
/** Bounded provider failures retained when multiple providers failed. */
|