tapimo 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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 +21383 -18056
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +301 -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 +2 -2
- package/dist/Webhooks.js.map +1 -1
- package/dist/admin/App.d.ts +3936 -1337
- 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 +159 -7
- 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 +1446 -0
- package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
- package/dist/admin/apps/earn-vaults.js +465 -8
- package/dist/admin/apps/earn-vaults.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts +344 -3
- package/dist/admin/apps/organizations.d.ts.map +1 -1
- package/dist/admin/apps/organizations.js +288 -10
- 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 +16 -16
- package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
- package/dist/admin/apps/verified-tokens.js +3 -3
- 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 +129 -69
- 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 +40 -8
- package/dist/apps/Zones.js.map +1 -1
- package/dist/apps/data/App.d.ts +4310 -2548
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +86 -26
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +364 -34
- 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 +94 -22
- package/dist/apps/data/routes/addresses.d.ts.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +37 -37
- 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 +1641 -352
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +1561 -120
- package/dist/apps/data/routes/earn.js.map +1 -1
- package/dist/apps/data/routes/exchanges.d.ts +15 -0
- package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
- package/dist/apps/data/routes/exchanges.js +180 -114
- package/dist/apps/data/routes/exchanges.js.map +1 -1
- package/dist/apps/data/routes/fee-amm.d.ts +5 -0
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
- package/dist/apps/data/routes/fee-amm.js +49 -38
- package/dist/apps/data/routes/fee-amm.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +125 -0
- 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/rpc.d.ts +507 -33
- package/dist/apps/data/routes/rpc.d.ts.map +1 -1
- package/dist/apps/data/routes/rpc.js +266 -156
- 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 +95 -93
- 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 +16 -0
- 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/verified-tokens.d.ts +4 -4
- 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 +1210 -70
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +301 -163
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- 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 +4119 -3297
- 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 +49 -8
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +221 -26
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +174 -72
- 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 +364 -78
- 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 +99 -24
- 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 +42 -42
- 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 +16 -16
- package/dist/apps/management/routes/orgs.d.ts +36 -20
- 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 +40 -40
- 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 +8 -8
- 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 +16 -16
- package/dist/apps/management/routes/webhooks.d.ts +931 -215
- package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/management/routes/webhooks.js +71 -25
- package/dist/apps/management/routes/webhooks.js.map +1 -1
- package/dist/apps/mcp.d.ts +1 -1
- package/dist/apps/mcp.js +7 -7
- package/dist/apps/mcp.js.map +1 -1
- 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 +177 -26
- 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 +232 -25
- 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 +841 -136
- package/dist/apps/{funding → routes}/App.d.ts.map +1 -1
- package/dist/apps/{funding → routes}/App.js +17 -17
- 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 +7 -7
- 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 +123 -59
- package/dist/apps/routes/routes/deposit-addresses.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/routes/deposit-addresses.js +498 -223
- 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 +19 -16
- 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 +957 -71
- 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 +1052 -15
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +785 -133
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +590 -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 +51 -5
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +135 -47
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/projects.d.ts +27 -1
- package/dist/db/tables/projects.d.ts.map +1 -1
- package/dist/db/tables/projects.js +38 -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/routesTransferTransactions.js +86 -0
- 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 +112 -13
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +241 -38
- 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/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 +22 -10
- package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
- package/dist/db/tables/webhookSubscriptions.js +50 -15
- 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 +48 -12
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +603 -175
- 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 +31 -14
- 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 +46 -2068
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Viem.js +171 -11
- 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 -3
- 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 +9 -17
- 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 +350 -104
- package/dist/internal/routes/Provider.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Provider.js +233 -97
- 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 +13 -15
- 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 +324 -34
- 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/routes/TransferReconciliation.d.ts +55 -0
- 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/routes/TransferWebhook.d.ts +21 -0
- package/dist/internal/routes/TransferWebhook.d.ts.map +1 -0
- package/dist/internal/routes/TransferWebhook.js +43 -0
- package/dist/internal/routes/TransferWebhook.js.map +1 -0
- package/dist/internal/{funding → routes}/index.d.ts +3 -0
- package/dist/internal/routes/index.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/index.js +3 -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 +197 -122
- 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/routes/providers/stargate.d.ts +165 -0
- 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.d.ts.map +1 -1
- package/dist/internal/webhookDestinations/slack.js +22 -6
- 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 +335 -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 +611 -101
- package/src/Handler.ts +0 -1
- package/src/OpenApi.contract.test.ts +195 -0
- package/src/Scope.ts +17 -5
- package/src/Webhooks.ts +2 -2
- 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 +681 -7
- package/src/admin/apps/organizations.test.ts +342 -1
- package/src/admin/apps/organizations.ts +368 -8
- 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 +8 -3
- package/src/admin/apps/verified-tokens.ts +3 -3
- 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 +147 -3
- package/src/admin/ui/src/lib/organizations.ts +136 -0
- 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/routeTree.gen.ts +63 -0
- package/src/admin/ui/src/routes/__root.tsx +12 -1
- 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_.$orgId.tsx +334 -2
- 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.generated.ts +144 -69
- 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 +18 -3
- package/src/apps/Zones.ts +55 -8
- package/src/apps/composition.test.ts +68 -59
- package/src/apps/data/App.test.ts +154 -2
- package/src/apps/data/App.ts +102 -33
- 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 +1661 -29
- package/src/apps/data/routes/earn.ts +2314 -328
- package/src/apps/data/routes/exchanges.test.ts +752 -30
- package/src/apps/data/routes/exchanges.ts +954 -753
- package/src/apps/data/routes/fee-amm.test.ts +224 -0
- package/src/apps/data/routes/fee-amm.ts +208 -178
- 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 +352 -8
- package/src/apps/data/routes/rpc.ts +407 -219
- 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.test.ts +659 -81
- package/src/apps/data/routes/webhooks.ts +1104 -817
- 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 +283 -34
- 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/webhooks.test.ts +49 -26
- package/src/apps/management/routes/webhooks.ts +93 -38
- package/src/apps/mcp.test.ts +6 -6
- package/src/apps/mcp.ts +7 -7
- 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 +1024 -38
- package/src/apps/relay/App.ts +228 -32
- 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 +253 -29
- 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 +1362 -462
- package/src/apps/{funding → routes}/routes/deposit-addresses.ts +568 -248
- 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/routes/routes/transfers.test.ts +2876 -0
- 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 +1511 -34
- package/src/db/Schema.ts +744 -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 +725 -7
- package/src/db/tables/organizations.ts +182 -49
- package/src/db/tables/projects.test.ts +71 -0
- package/src/db/tables/projects.ts +59 -4
- 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} +316 -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/routesTransferTransactions.ts +158 -0
- package/src/db/tables/routesTransfers.test.ts +338 -0
- package/src/db/tables/routesTransfers.ts +662 -0
- package/src/db/tables/sponsoredTransactions.test.ts +563 -1
- package/src/db/tables/sponsoredTransactions.ts +386 -42
- 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/webhookQueueEvents.ts +8 -1
- package/src/db/tables/webhookSubscriptions.ts +103 -21
- 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 +1564 -9
- package/src/internal/Auth.ts +833 -239
- 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 +37 -15
- package/src/internal/Email.ts +54 -0
- package/src/internal/Idempotency.test.ts +2 -2
- package/src/internal/Log.test-d.ts +10 -7
- package/src/internal/Log.test.ts +114 -16
- package/src/internal/Log.ts +55 -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 +249 -17
- package/src/internal/Webhooks.test.ts +125 -1
- 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 -8
- 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 +11 -22
- 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 +531 -185
- 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 +18 -22
- 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/routes/TransferWebhook.test.ts +128 -0
- package/src/internal/routes/TransferWebhook.ts +67 -0
- package/src/internal/{funding → routes}/index.test.ts +6 -3
- package/src/internal/{funding → routes}/index.ts +3 -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 +165 -32
- package/src/internal/{funding → routes}/providers/relay.ts +231 -136
- 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 +20 -5
- 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 -622
- 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 -15
- package/dist/db/tables/fundingTransferTransactions.d.ts.map +0 -1
- package/dist/db/tables/fundingTransferTransactions.js +0 -27
- package/dist/db/tables/fundingTransferTransactions.js.map +0 -1
- package/dist/db/tables/fundingTransfers.d.ts +0 -82
- package/dist/db/tables/fundingTransfers.d.ts.map +0 -1
- package/dist/db/tables/fundingTransfers.js +0 -89
- 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 -334
- package/dist/internal/funding/Transfer.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 +0 -38
- package/dist/internal/funding/providers/stargate.d.ts.map +0 -1
- package/dist/internal/funding/providers/stargate.js +0 -277
- 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 -78
- package/src/apps/funding/ProviderAttempts.ts +0 -26
- package/src/apps/funding/index.ts +0 -1
- package/src/apps/funding/routes/transfers.test.ts +0 -1638
- package/src/apps/funding/routes/transfers.ts +0 -721
- 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 -69
- package/src/db/tables/fundingTransferTransactions.ts +0 -37
- package/src/db/tables/fundingTransfers.test.ts +0 -89
- package/src/db/tables/fundingTransfers.ts +0 -153
- 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 -369
- package/src/internal/funding/Transfer.ts +0 -545
- package/src/internal/funding/providers/stargate.test.ts +0 -163
- package/src/internal/funding/providers/stargate.ts +0 -409
- /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<{
|
|
@@ -151,6 +172,7 @@ export declare namespace schema {
|
|
|
151
172
|
verified: z.ZodMiniBoolean<boolean>;
|
|
152
173
|
}, z.core.$strip>>;
|
|
153
174
|
}, z.core.$strip>>;
|
|
175
|
+
providerState: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
154
176
|
quality: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
155
177
|
estimatedSeconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
156
178
|
liquiditySource: z.ZodMiniString<string>;
|
|
@@ -164,7 +186,7 @@ export declare namespace schema {
|
|
|
164
186
|
}, z.core.$strip>>;
|
|
165
187
|
sampledAt: z.ZodMiniISODateTime;
|
|
166
188
|
}, z.core.$strip>;
|
|
167
|
-
/** Reusable deposit address provisioned by a
|
|
189
|
+
/** Reusable deposit address provisioned by a route provider. */
|
|
168
190
|
const DepositAddressResult: z.ZodMiniObject<{
|
|
169
191
|
address: z.ZodMiniString<string>;
|
|
170
192
|
correlation: z.ZodMiniObject<{
|
|
@@ -202,6 +224,25 @@ export declare namespace schema {
|
|
|
202
224
|
refundAmountExpected: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
203
225
|
refundTransactionHashes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
204
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>>;
|
|
205
246
|
status: z.ZodMiniString<string>;
|
|
206
247
|
updatedAt: z.ZodMiniISODateTime;
|
|
207
248
|
}, z.core.$strip>;
|
|
@@ -216,27 +257,44 @@ export declare namespace schema {
|
|
|
216
257
|
refundAmountExpected: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
217
258
|
refundTransactionHashes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
218
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>>;
|
|
219
279
|
status: z.ZodMiniString<string>;
|
|
220
280
|
updatedAt: z.ZodMiniISODateTime;
|
|
221
281
|
}, z.core.$strip>>;
|
|
222
282
|
}, z.core.$strip>;
|
|
223
|
-
/** Quote quality signals exposed to
|
|
224
|
-
const
|
|
283
|
+
/** Quote quality signals exposed to routes API callers. */
|
|
284
|
+
const RoutesQuoteQuality: z.ZodMiniObject<{
|
|
225
285
|
estimatedSeconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
226
|
-
liquiditySource: z.ZodMiniString<string>;
|
|
227
|
-
sourceDetail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
228
286
|
tier: z.ZodMiniEnum<{
|
|
229
287
|
liquid: "liquid";
|
|
230
288
|
thin: "thin";
|
|
231
289
|
}>;
|
|
232
290
|
}, z.core.$strip>;
|
|
233
|
-
/** Provider quote freshness data exposed to
|
|
291
|
+
/** Provider quote freshness data exposed to routes API callers. */
|
|
234
292
|
const QuoteDetails: z.ZodMiniObject<{
|
|
235
293
|
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
236
294
|
sampledAt: z.ZodMiniISODateTime;
|
|
237
295
|
}, z.core.$strip>;
|
|
238
|
-
/** Successful normalized
|
|
239
|
-
const
|
|
296
|
+
/** Successful normalized route quote returned to callers. */
|
|
297
|
+
const RoutesQuote: z.ZodMiniObject<{
|
|
240
298
|
destinationAmount: z.ZodMiniObject<{
|
|
241
299
|
baseUnits: z.ZodMiniString<string>;
|
|
242
300
|
currency: z.ZodMiniString<string>;
|
|
@@ -280,8 +338,6 @@ export declare namespace schema {
|
|
|
280
338
|
}, z.core.$strip>;
|
|
281
339
|
quality: z.ZodMiniObject<{
|
|
282
340
|
estimatedSeconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
283
|
-
liquiditySource: z.ZodMiniString<string>;
|
|
284
|
-
sourceDetail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
285
341
|
tier: z.ZodMiniEnum<{
|
|
286
342
|
liquid: "liquid";
|
|
287
343
|
thin: "thin";
|
|
@@ -323,50 +379,82 @@ export declare namespace schema {
|
|
|
323
379
|
}, z.core.$strip>;
|
|
324
380
|
}, z.core.$strip>;
|
|
325
381
|
}
|
|
326
|
-
/** Chain metadata declared by a
|
|
382
|
+
/** Chain metadata declared by a provider route. */
|
|
327
383
|
export type Chain = core_Chain.Chain;
|
|
328
|
-
/** Token metadata declared by a
|
|
384
|
+
/** Token metadata declared by a provider route. */
|
|
329
385
|
export type Token = core_Token.Resolved;
|
|
330
|
-
/** Provider ids accepted by
|
|
386
|
+
/** Provider ids accepted by route quote requests. */
|
|
331
387
|
export type ProviderId = string;
|
|
332
388
|
/** Provider-specific quote status for the requested amount. */
|
|
333
389
|
export type QuoteStatus = z.output<typeof schema.QuoteStatus>;
|
|
334
390
|
/** Machine-readable quote quality tier. */
|
|
335
391
|
export type QualityTier = z.output<typeof schema.QualityTier>;
|
|
336
|
-
/** Normalized chain reference passed to
|
|
392
|
+
/** Normalized chain reference passed to route providers. */
|
|
337
393
|
export type ChainRef = z.output<typeof schema.ChainRef>;
|
|
338
|
-
/** Normalized token amount passed to
|
|
394
|
+
/** Normalized token amount passed to route providers. */
|
|
339
395
|
export type TokenAmount = ReturnType<typeof resolveSourceAmount>;
|
|
340
|
-
/** Normalized token reference passed to
|
|
396
|
+
/** Normalized token reference passed to route providers. */
|
|
341
397
|
export type TokenRef = z.output<typeof schema.TokenRef>;
|
|
342
|
-
/**
|
|
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. */
|
|
343
401
|
export type QuoteCandidate = ReturnType<typeof createQuoteCandidate>;
|
|
344
402
|
/** A normalized route candidate passed to deposit-address providers. */
|
|
345
403
|
export type DepositAddressCandidate = ReturnType<typeof createDepositAddressCandidate>;
|
|
346
|
-
/** A successful normalized
|
|
347
|
-
export type
|
|
348
|
-
/** 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. */
|
|
349
407
|
export type CachePolicy = {
|
|
350
408
|
/** Whether providers should bypass their own quote or inventory caches. */
|
|
351
409
|
bypass: boolean;
|
|
352
410
|
};
|
|
353
|
-
/** Normalized caller request passed to
|
|
411
|
+
/** Normalized caller request passed to route providers. */
|
|
354
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
|
+
};
|
|
355
441
|
/** Contract of the provider `getQuote` method. */
|
|
356
442
|
export declare namespace getQuote {
|
|
357
|
-
/** Input passed to a
|
|
443
|
+
/** Input passed to a route provider for one curated quote candidate. */
|
|
358
444
|
type Parameters = {
|
|
359
445
|
/** Curated candidate selected for live provider quoting. */
|
|
360
446
|
candidate: QuoteCandidate;
|
|
361
447
|
/** Cache policy for provider-side discovery and quote lookups. */
|
|
362
448
|
cache: CachePolicy;
|
|
363
|
-
/**
|
|
449
|
+
/** Chain that receives the routed token. */
|
|
364
450
|
destinationChain: ChainRef;
|
|
365
|
-
/**
|
|
451
|
+
/** Token expected from this quote. */
|
|
366
452
|
destinationToken: TokenRef;
|
|
453
|
+
/** Stable non-secret tenant identity for provider-local fairness. */
|
|
454
|
+
quotaKey?: string | undefined;
|
|
367
455
|
/** Normalized caller request that produced this quote candidate. */
|
|
368
456
|
request: QuoteRequest;
|
|
369
|
-
/** Canonical
|
|
457
|
+
/** Canonical provider route selected for this quote candidate. */
|
|
370
458
|
route: core_Route.Route;
|
|
371
459
|
/** Source amount in base units and display form. */
|
|
372
460
|
sourceAmount: TokenAmount;
|
|
@@ -375,7 +463,7 @@ export declare namespace getQuote {
|
|
|
375
463
|
/** Token the caller currently holds. */
|
|
376
464
|
sourceToken: TokenRef;
|
|
377
465
|
};
|
|
378
|
-
/** Quote data returned by a
|
|
466
|
+
/** Quote data returned by a route provider. */
|
|
379
467
|
type ReturnType = z.output<typeof schema.GetQuoteResult>;
|
|
380
468
|
}
|
|
381
469
|
/** Contract of the provider `prepareTransfer` method. */
|
|
@@ -387,22 +475,22 @@ export declare namespace prepareTransfer {
|
|
|
387
475
|
/** Provider-issued request identifier. */
|
|
388
476
|
requestId: string;
|
|
389
477
|
};
|
|
390
|
-
/** Input passed to a
|
|
478
|
+
/** Input passed to a route provider preparing one executable transfer. */
|
|
391
479
|
type Parameters = {
|
|
392
480
|
/** Curated candidate selected for preparation. */
|
|
393
481
|
candidate: QuoteCandidate;
|
|
394
|
-
/**
|
|
482
|
+
/** Route method the caller selected. */
|
|
395
483
|
method: Transfer.Method;
|
|
396
484
|
/** Amount mode the caller selected. */
|
|
397
485
|
mode: Transfer.Mode;
|
|
398
486
|
/** Final beneficiary on the destination chain. */
|
|
399
487
|
recipient: string;
|
|
400
|
-
/** Source-chain account that signs the
|
|
488
|
+
/** Source-chain account that signs the route action. */
|
|
401
489
|
sender: string;
|
|
402
490
|
/** Caller slippage bound in basis points. */
|
|
403
491
|
slippageBps?: number | undefined;
|
|
404
492
|
};
|
|
405
|
-
/** Executable preparation returned by a
|
|
493
|
+
/** Executable preparation returned by a route provider. */
|
|
406
494
|
type ReturnType = z.output<typeof schema.PrepareResult>;
|
|
407
495
|
}
|
|
408
496
|
/** Contract for provider-specific executable action validation. */
|
|
@@ -411,11 +499,79 @@ export declare namespace validateTransferAction {
|
|
|
411
499
|
type Parameters = prepareTransfer.Parameters & {
|
|
412
500
|
/** Executable action returned by the provider. */
|
|
413
501
|
action: Action.Action;
|
|
502
|
+
/** Minimum destination amount encoded by the provider action. */
|
|
503
|
+
destinationAmountMin: string;
|
|
414
504
|
};
|
|
415
505
|
/** Provider-specific constraints established by validation. */
|
|
416
506
|
type ReturnType = {
|
|
417
507
|
/** Exact native values independently validated against provider calldata. */
|
|
418
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';
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
/** Contract for provider-specific source transaction verification. */
|
|
539
|
+
export declare namespace verifySourceTransaction {
|
|
540
|
+
/** Stored transfer terms and submitted source transaction. */
|
|
541
|
+
type Parameters = {
|
|
542
|
+
/** Configured chain that receives the provider delivery. */
|
|
543
|
+
destinationChain: Chain;
|
|
544
|
+
/** Private provider state captured while preparing the transfer. */
|
|
545
|
+
providerState?: Transfer.ProviderState | undefined;
|
|
546
|
+
/** Current configuration for the stored provider route. */
|
|
547
|
+
routeConfiguration?: core_Catalog.Configuration | undefined;
|
|
548
|
+
/** Configured chain containing the submitted transaction. */
|
|
549
|
+
sourceChain: Chain;
|
|
550
|
+
/** Submitted transaction reference. */
|
|
551
|
+
transactionHash: string;
|
|
552
|
+
/** Stored public transfer terms. */
|
|
553
|
+
transfer: Transfer.Snapshot;
|
|
554
|
+
};
|
|
555
|
+
/** Source transaction verification outcome. */
|
|
556
|
+
type ReturnType = {
|
|
557
|
+
type: 'invalid';
|
|
558
|
+
} | {
|
|
559
|
+
type: 'pending';
|
|
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;
|
|
571
|
+
/** Private provider evidence retained for reconciliation. */
|
|
572
|
+
providerState?: Transfer.ProviderState | undefined;
|
|
573
|
+
/** The transaction matches the stored transfer terms. */
|
|
574
|
+
type: 'verified';
|
|
419
575
|
};
|
|
420
576
|
}
|
|
421
577
|
/** Contract of the provider `createDepositAddress` method. */
|
|
@@ -444,8 +600,12 @@ export declare namespace listDepositAddressRequests {
|
|
|
444
600
|
address: string;
|
|
445
601
|
/** Opaque provider cursor returned by the previous page. */
|
|
446
602
|
continuation?: string | undefined;
|
|
603
|
+
/** Token delivered by the provider, when needed to identify a subsidy payment. */
|
|
604
|
+
destinationToken?: TokenRef | undefined;
|
|
447
605
|
/** Existing provider request to refresh directly. */
|
|
448
606
|
requestId?: string | undefined;
|
|
607
|
+
/** Token received by the provider, when needed to identify a subsidy payment. */
|
|
608
|
+
sourceToken?: TokenRef | undefined;
|
|
449
609
|
};
|
|
450
610
|
/** One page of normalized provider requests. */
|
|
451
611
|
type ReturnType = z.output<typeof schema.DepositAddressRequestsResult>;
|
|
@@ -499,31 +659,33 @@ export declare namespace observeDepositAddressRequest {
|
|
|
499
659
|
} | {
|
|
500
660
|
/** Verified destination transaction references. */
|
|
501
661
|
destinationTransactionHashes: readonly string[];
|
|
662
|
+
/** Token amount paid by the provider for this request. */
|
|
663
|
+
subsidy?: z.output<typeof schema.Subsidy> | undefined;
|
|
502
664
|
/** Authenticated provider delivery was observed onchain. */
|
|
503
665
|
type: 'verified';
|
|
504
666
|
});
|
|
505
667
|
}
|
|
506
|
-
/** Optional webhook capability implemented by a complete
|
|
668
|
+
/** Optional webhook capability implemented by a complete route integration. */
|
|
507
669
|
export type Webhook = {
|
|
508
670
|
/** Authenticates, resolves, and enqueues one provider status event. */
|
|
509
671
|
receive(input: Webhook.receive.Parameters): Promise<Webhook.receive.ReturnType>;
|
|
510
672
|
/** Authenticates a provider status event and returns its bounded hint. */
|
|
511
673
|
verify(input: Webhook.verify.Parameters): Webhook.verify.ReturnType;
|
|
512
674
|
};
|
|
513
|
-
/** Contracts for a
|
|
675
|
+
/** Contracts for a route provider webhook capability. */
|
|
514
676
|
export declare namespace Webhook {
|
|
515
677
|
/** Contracts for receiving one authenticated provider webhook. */
|
|
516
678
|
namespace receive {
|
|
517
|
-
/** Raw provider webhook request passed to a
|
|
679
|
+
/** Raw provider webhook request passed to a route integration. */
|
|
518
680
|
type Parameters = {
|
|
519
681
|
/** Exact request body bytes decoded as UTF-8. */
|
|
520
682
|
body: string;
|
|
521
683
|
/** Original provider webhook headers. */
|
|
522
684
|
headers: Headers;
|
|
523
685
|
};
|
|
524
|
-
/** Durable queue message emitted for one authenticated
|
|
686
|
+
/** Durable queue message emitted for one authenticated routes status hint. */
|
|
525
687
|
type Dispatchable = {
|
|
526
|
-
/** Stored
|
|
688
|
+
/** Stored route deposit address id. */
|
|
527
689
|
addressId: string;
|
|
528
690
|
/** Bounded follow-up state for work awaiting provider or settlement confirmation. */
|
|
529
691
|
followUp?: FollowUp | undefined;
|
|
@@ -534,7 +696,7 @@ export declare namespace Webhook {
|
|
|
534
696
|
/** Mechanism that requested reconciliation. */
|
|
535
697
|
trigger: 'chain' | 'manual' | 'poll' | 'webhook';
|
|
536
698
|
/** Reconciliation queue message discriminator. */
|
|
537
|
-
type: '
|
|
699
|
+
type: 'routes:deposit-address:reconcile';
|
|
538
700
|
/** Authenticated provider webhook timing carried into reconciliation. */
|
|
539
701
|
webhookTiming?: WebhookTiming | undefined;
|
|
540
702
|
};
|
|
@@ -563,7 +725,7 @@ export declare namespace Webhook {
|
|
|
563
725
|
/** Mechanism that requested reconciliation, when written by a trigger-aware producer. */
|
|
564
726
|
trigger?: Dispatchable['trigger'] | undefined;
|
|
565
727
|
};
|
|
566
|
-
/** Safe disposition of one authenticated
|
|
728
|
+
/** Safe disposition of one authenticated route provider webhook. */
|
|
567
729
|
type ReturnType = {
|
|
568
730
|
addressId: string;
|
|
569
731
|
type: 'queued';
|
|
@@ -575,9 +737,9 @@ export declare namespace Webhook {
|
|
|
575
737
|
}
|
|
576
738
|
/** Contracts for verifying one provider webhook. */
|
|
577
739
|
namespace verify {
|
|
578
|
-
/** Raw provider webhook request passed to a
|
|
740
|
+
/** Raw provider webhook request passed to a route integration. */
|
|
579
741
|
type Parameters = receive.Parameters;
|
|
580
|
-
/** Authenticated provider hint extracted from a
|
|
742
|
+
/** Authenticated provider hint extracted from a routes webhook. */
|
|
581
743
|
type ReturnType = {
|
|
582
744
|
/** Reusable provider address, when the provider attributed one. */
|
|
583
745
|
address?: string | undefined;
|
|
@@ -592,63 +754,78 @@ export declare namespace Webhook {
|
|
|
592
754
|
};
|
|
593
755
|
}
|
|
594
756
|
}
|
|
595
|
-
/** A
|
|
596
|
-
export type Provider<id extends string = string> = core_Provider.Provider<id, '
|
|
597
|
-
/** 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. */
|
|
598
760
|
createDepositAddress?(input: createDepositAddress.Parameters, signal: AbortSignal): Promise<createDepositAddress.ReturnType>;
|
|
599
|
-
/** Requests a live
|
|
761
|
+
/** Requests a live route quote. */
|
|
600
762
|
getQuote(input: getQuote.Parameters, signal: AbortSignal): Promise<getQuote.ReturnType>;
|
|
601
763
|
/** Lists requests discovered for a reusable deposit address, when supported. */
|
|
602
764
|
listDepositAddressRequests?(input: listDepositAddressRequests.Parameters, signal: AbortSignal): Promise<listDepositAddressRequests.ReturnType>;
|
|
603
765
|
/** Observes authenticated delivery for a verified reusable-address transfer, when supported. */
|
|
604
766
|
observeDepositAddressRequest?(input: observeDepositAddressRequest.Parameters, signal: AbortSignal): Promise<observeDepositAddressRequest.ReturnType>;
|
|
605
|
-
/** Prepares an executable
|
|
767
|
+
/** Prepares an executable route transfer, when the provider supports it. */
|
|
606
768
|
prepareTransfer?(input: prepareTransfer.Parameters, signal: AbortSignal): Promise<prepareTransfer.ReturnType>;
|
|
607
769
|
/** Validates provider-specific action semantics before generic persistence checks. */
|
|
608
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>;
|
|
773
|
+
/** Verifies a submitted source transaction, when supported. */
|
|
774
|
+
verifySourceTransaction?(input: verifySourceTransaction.Parameters, signal: AbortSignal): Promise<verifySourceTransaction.ReturnType>;
|
|
609
775
|
/** Receives authenticated provider status events, when configured. */
|
|
610
776
|
webhook?: Webhook | undefined;
|
|
611
777
|
};
|
|
612
|
-
/** Defines a
|
|
778
|
+
/** Defines a route provider from its identity and quote implementation. */
|
|
613
779
|
export declare function from<const id extends string>(options: from.Options<id>): Provider<id>;
|
|
614
780
|
export declare namespace from {
|
|
615
|
-
/**
|
|
781
|
+
/** Route provider definition. */
|
|
616
782
|
type Options<id extends string> = Omit<Provider<id>, 'type'>;
|
|
617
783
|
}
|
|
618
|
-
/** Narrows a registered provider to a
|
|
784
|
+
/** Narrows a registered provider to a route provider. */
|
|
619
785
|
export declare function is(provider: core_Provider.Provider): provider is Provider;
|
|
620
|
-
/** Narrows a
|
|
786
|
+
/** Narrows a route provider to one that prepares executable transfers. */
|
|
621
787
|
export declare function canPrepareTransfer(provider: Provider): provider is Provider & {
|
|
622
788
|
prepareTransfer: NonNullable<Provider['prepareTransfer']>;
|
|
623
789
|
};
|
|
624
|
-
/** Narrows a
|
|
790
|
+
/** Narrows a route provider to one that provisions reusable deposit addresses. */
|
|
625
791
|
export declare function canCreateDepositAddress(provider: Provider): provider is Provider & {
|
|
626
792
|
createDepositAddress: NonNullable<Provider['createDepositAddress']>;
|
|
627
793
|
};
|
|
628
|
-
/** Narrows a
|
|
794
|
+
/** Narrows a route provider to one that tracks reusable deposit addresses. */
|
|
629
795
|
export declare function canListDepositAddressRequests(provider: Provider): provider is Provider & {
|
|
630
796
|
listDepositAddressRequests: NonNullable<Provider['listDepositAddressRequests']>;
|
|
631
797
|
};
|
|
632
|
-
/** Narrows a
|
|
798
|
+
/** Narrows a route provider to one that observes reusable-address delivery onchain. */
|
|
633
799
|
export declare function canObserveDepositAddressRequest(provider: Provider): provider is Provider & {
|
|
634
800
|
observeDepositAddressRequest: NonNullable<Provider['observeDepositAddressRequest']>;
|
|
635
801
|
};
|
|
636
|
-
/** 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. */
|
|
808
|
+
export declare function canVerifySourceTransaction(provider: Provider): provider is Provider & {
|
|
809
|
+
verifySourceTransaction: NonNullable<Provider['verifySourceTransaction']>;
|
|
810
|
+
};
|
|
811
|
+
/** Narrows a route provider to one with authenticated webhook receipt. */
|
|
637
812
|
export declare function canReceiveWebhook(provider: Provider): provider is Provider & {
|
|
638
813
|
webhook: Webhook;
|
|
639
814
|
};
|
|
640
|
-
/**
|
|
641
|
-
export type ProviderOperation = 'createDepositAddress' | 'getQuote' | 'listDepositAddressRequests' | 'prepareTransfer';
|
|
642
|
-
/**
|
|
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. */
|
|
643
820
|
export type ProviderAttempt = {
|
|
644
821
|
/** Wall-clock duration of the provider attempt in milliseconds. */
|
|
645
822
|
durationMs: number;
|
|
646
823
|
/** Provider method invoked by the attempt. */
|
|
647
824
|
operation: ProviderOperation;
|
|
648
825
|
/** Successful or expected-unavailable provider outcome. */
|
|
649
|
-
outcome: 'available' | 'thin' | 'unavailable';
|
|
650
|
-
/** Provider that handled the
|
|
651
|
-
provider:
|
|
826
|
+
outcome: 'available' | 'success' | 'thin' | 'unavailable';
|
|
827
|
+
/** Provider that handled the operation. */
|
|
828
|
+
provider: ProviderIdentity;
|
|
652
829
|
} | {
|
|
653
830
|
/** Error thrown by the provider boundary. */
|
|
654
831
|
cause: unknown;
|
|
@@ -658,8 +835,8 @@ export type ProviderAttempt = {
|
|
|
658
835
|
operation: ProviderOperation;
|
|
659
836
|
/** Failed provider outcome. */
|
|
660
837
|
outcome: 'failed';
|
|
661
|
-
/** Provider that handled the
|
|
662
|
-
provider:
|
|
838
|
+
/** Provider that handled the operation. */
|
|
839
|
+
provider: ProviderIdentity;
|
|
663
840
|
};
|
|
664
841
|
/** Bounded result for one provider attempt. */
|
|
665
842
|
export type ProviderAttemptResult = {
|
|
@@ -681,8 +858,19 @@ export type ProviderFailure = {
|
|
|
681
858
|
/** Provider method that failed. */
|
|
682
859
|
operation: ProviderOperation;
|
|
683
860
|
/** Provider that failed. */
|
|
684
|
-
provider:
|
|
861
|
+
provider: ProviderIdentity;
|
|
685
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
|
+
}
|
|
686
874
|
/** Returns normalized chains and source tokens supported by quote providers. */
|
|
687
875
|
export declare function getChains(options: getChains.Options): {
|
|
688
876
|
addressFormat: "base58" | "base58check" | "hex";
|
|
@@ -703,13 +891,13 @@ export declare function getChains(options: getChains.Options): {
|
|
|
703
891
|
export declare namespace getChains {
|
|
704
892
|
/** Options for getting provider-supported source chains. */
|
|
705
893
|
type Options = {
|
|
706
|
-
/** Compiled
|
|
894
|
+
/** Compiled route catalog containing provider routes. */
|
|
707
895
|
catalog: core_Catalog.Snapshot;
|
|
708
896
|
/** Providers whose routes contribute source chains and tokens. */
|
|
709
897
|
providers: readonly Provider[];
|
|
710
898
|
};
|
|
711
899
|
}
|
|
712
|
-
/** Returns the supplied
|
|
900
|
+
/** Returns the supplied route quote providers. */
|
|
713
901
|
export declare function getProviders(options: getProviders.Options): {
|
|
714
902
|
id: string;
|
|
715
903
|
name: string;
|
|
@@ -717,13 +905,13 @@ export declare function getProviders(options: getProviders.Options): {
|
|
|
717
905
|
export declare namespace getProviders {
|
|
718
906
|
/** Options for getting providers. */
|
|
719
907
|
type Options = {
|
|
720
|
-
/** Compiled
|
|
908
|
+
/** Compiled route catalog containing provider routes. */
|
|
721
909
|
catalog: core_Catalog.Snapshot;
|
|
722
|
-
/**
|
|
910
|
+
/** Route providers included in this deployment. */
|
|
723
911
|
providers: readonly Provider[];
|
|
724
912
|
};
|
|
725
913
|
}
|
|
726
|
-
/** Returns successful live
|
|
914
|
+
/** Returns successful live route quotes from the supplied providers. */
|
|
727
915
|
export declare function getQuotes(options: getQuotes.Options): Promise<{
|
|
728
916
|
destinationAmount: {
|
|
729
917
|
baseUnits: string;
|
|
@@ -760,8 +948,6 @@ export declare function getQuotes(options: getQuotes.Options): Promise<{
|
|
|
760
948
|
};
|
|
761
949
|
quality: {
|
|
762
950
|
estimatedSeconds?: number | undefined;
|
|
763
|
-
liquiditySource: string;
|
|
764
|
-
sourceDetail?: string | undefined;
|
|
765
951
|
tier: "liquid" | "thin";
|
|
766
952
|
};
|
|
767
953
|
quote: {
|
|
@@ -838,21 +1024,25 @@ export declare function getQuoteCandidates(options: getQuoteCandidates.Options):
|
|
|
838
1024
|
};
|
|
839
1025
|
}[];
|
|
840
1026
|
export declare namespace getQuoteCandidates {
|
|
841
|
-
/** Options for selecting
|
|
1027
|
+
/** Options for selecting route quote candidates. */
|
|
842
1028
|
type Options = QuoteRequest & {
|
|
843
|
-
/** Compiled
|
|
1029
|
+
/** Compiled route catalog containing provider routes. */
|
|
844
1030
|
catalog: core_Catalog.Snapshot;
|
|
845
|
-
/**
|
|
1031
|
+
/** Route providers considered by the request. */
|
|
846
1032
|
providers: readonly Provider[];
|
|
847
1033
|
};
|
|
848
1034
|
}
|
|
849
1035
|
export declare namespace getQuotes {
|
|
850
|
-
/** Options for requesting live
|
|
1036
|
+
/** Options for requesting live route quotes. */
|
|
851
1037
|
type Options = getQuoteCandidates.Options & {
|
|
852
1038
|
/** Cache policy for provider-side discovery and quote lookups. */
|
|
853
1039
|
cache?: CachePolicy | undefined;
|
|
854
1040
|
/** Receives one bounded observation for every provider attempt. */
|
|
855
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;
|
|
856
1046
|
/** Per-provider quote timeout in milliseconds. */
|
|
857
1047
|
providerTimeoutMs?: number | undefined;
|
|
858
1048
|
};
|
|
@@ -862,6 +1052,28 @@ export declare namespace getQuotes {
|
|
|
862
1052
|
* capability-enabled provider. Returns `undefined` when no route is enabled.
|
|
863
1053
|
*/
|
|
864
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
|
+
}
|
|
865
1077
|
export declare namespace createDepositAddress {
|
|
866
1078
|
/** Options for provisioning one reusable deposit address. */
|
|
867
1079
|
type Options = getDepositAddressCandidates.Options & {
|
|
@@ -908,21 +1120,29 @@ export declare namespace prepareTransfer {
|
|
|
908
1120
|
providerTimeoutMs?: number | undefined;
|
|
909
1121
|
/** Final beneficiary on the destination chain. */
|
|
910
1122
|
recipient: string;
|
|
911
|
-
/** Source-chain account that signs the
|
|
1123
|
+
/** Source-chain account that signs the route action. */
|
|
912
1124
|
sender: string;
|
|
913
1125
|
/** Caller slippage bound in basis points. */
|
|
914
1126
|
slippageBps?: number | undefined;
|
|
915
1127
|
};
|
|
916
1128
|
/** The selected preparation with a guaranteed expiry. */
|
|
917
1129
|
type Selection = {
|
|
1130
|
+
/** Highest expected destination amount returned by a successful candidate. */
|
|
1131
|
+
bestDestinationAmount: string;
|
|
918
1132
|
/** Curated candidate the preparation was produced for. */
|
|
919
1133
|
candidate: QuoteCandidate;
|
|
1134
|
+
/** Number of successful preparations considered for automatic selection. */
|
|
1135
|
+
preparedCount: number;
|
|
920
1136
|
/** Provider that produced the selected preparation. */
|
|
921
1137
|
provider: Provider;
|
|
1138
|
+
/** Normalized final beneficiary on the destination chain. */
|
|
1139
|
+
recipient: string;
|
|
922
1140
|
/** The preparation, with a default expiry applied when the provider gave none. */
|
|
923
1141
|
result: prepareTransfer.ReturnType & {
|
|
924
1142
|
expiresAt: string;
|
|
925
1143
|
};
|
|
1144
|
+
/** Normalized source-chain account that signs the route action. */
|
|
1145
|
+
sender: string;
|
|
926
1146
|
};
|
|
927
1147
|
}
|
|
928
1148
|
/**
|
|
@@ -970,19 +1190,23 @@ export declare function getDepositAddressCandidates(options: getDepositAddressCa
|
|
|
970
1190
|
verified: boolean;
|
|
971
1191
|
};
|
|
972
1192
|
};
|
|
973
|
-
provider: core_Provider.Provider<string, "
|
|
974
|
-
/** Provisions a reusable
|
|
1193
|
+
provider: core_Provider.Provider<string, "routes"> & {
|
|
1194
|
+
/** Provisions a reusable route deposit address, when supported. */
|
|
975
1195
|
createDepositAddress?(input: createDepositAddress.Parameters, signal: AbortSignal): Promise<createDepositAddress.ReturnType>;
|
|
976
|
-
/** Requests a live
|
|
1196
|
+
/** Requests a live route quote. */
|
|
977
1197
|
getQuote(input: getQuote.Parameters, signal: AbortSignal): Promise<getQuote.ReturnType>;
|
|
978
1198
|
/** Lists requests discovered for a reusable deposit address, when supported. */
|
|
979
1199
|
listDepositAddressRequests?(input: listDepositAddressRequests.Parameters, signal: AbortSignal): Promise<listDepositAddressRequests.ReturnType>;
|
|
980
1200
|
/** Observes authenticated delivery for a verified reusable-address transfer, when supported. */
|
|
981
1201
|
observeDepositAddressRequest?(input: observeDepositAddressRequest.Parameters, signal: AbortSignal): Promise<observeDepositAddressRequest.ReturnType>;
|
|
982
|
-
/** Prepares an executable
|
|
1202
|
+
/** Prepares an executable route transfer, when the provider supports it. */
|
|
983
1203
|
prepareTransfer?(input: prepareTransfer.Parameters, signal: AbortSignal): Promise<prepareTransfer.ReturnType>;
|
|
984
1204
|
/** Validates provider-specific action semantics before generic persistence checks. */
|
|
985
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>;
|
|
1208
|
+
/** Verifies a submitted source transaction, when supported. */
|
|
1209
|
+
verifySourceTransaction?(input: verifySourceTransaction.Parameters, signal: AbortSignal): Promise<verifySourceTransaction.ReturnType>;
|
|
986
1210
|
/** Receives authenticated provider status events, when configured. */
|
|
987
1211
|
webhook?: Webhook | undefined;
|
|
988
1212
|
} & {
|
|
@@ -992,13 +1216,13 @@ export declare function getDepositAddressCandidates(options: getDepositAddressCa
|
|
|
992
1216
|
export declare namespace getDepositAddressCandidates {
|
|
993
1217
|
/** Options for selecting reusable deposit-address routes. */
|
|
994
1218
|
type Options = {
|
|
995
|
-
/** Compiled
|
|
1219
|
+
/** Compiled route catalog containing provider routes and capabilities. */
|
|
996
1220
|
catalog: core_Catalog.Snapshot;
|
|
997
1221
|
/** Tempo destination chain selected by app composition. */
|
|
998
1222
|
destinationChainId: number;
|
|
999
1223
|
/** Tempo destination token symbol, contract address, or token key. */
|
|
1000
1224
|
destinationToken: string;
|
|
1001
|
-
/**
|
|
1225
|
+
/** Route providers considered by the request. */
|
|
1002
1226
|
providers: readonly Provider[];
|
|
1003
1227
|
/** Source chain CAIP-2 id, slug, or alias. */
|
|
1004
1228
|
sourceChain: string;
|
|
@@ -1057,19 +1281,23 @@ export declare function getPrepareCandidates(options: getPrepareCandidates.Optio
|
|
|
1057
1281
|
verified: boolean;
|
|
1058
1282
|
};
|
|
1059
1283
|
};
|
|
1060
|
-
provider: core_Provider.Provider<string, "
|
|
1061
|
-
/** Provisions a reusable
|
|
1284
|
+
provider: core_Provider.Provider<string, "routes"> & {
|
|
1285
|
+
/** Provisions a reusable route deposit address, when supported. */
|
|
1062
1286
|
createDepositAddress?(input: createDepositAddress.Parameters, signal: AbortSignal): Promise<createDepositAddress.ReturnType>;
|
|
1063
|
-
/** Requests a live
|
|
1287
|
+
/** Requests a live route quote. */
|
|
1064
1288
|
getQuote(input: getQuote.Parameters, signal: AbortSignal): Promise<getQuote.ReturnType>;
|
|
1065
1289
|
/** Lists requests discovered for a reusable deposit address, when supported. */
|
|
1066
1290
|
listDepositAddressRequests?(input: listDepositAddressRequests.Parameters, signal: AbortSignal): Promise<listDepositAddressRequests.ReturnType>;
|
|
1067
1291
|
/** Observes authenticated delivery for a verified reusable-address transfer, when supported. */
|
|
1068
1292
|
observeDepositAddressRequest?(input: observeDepositAddressRequest.Parameters, signal: AbortSignal): Promise<observeDepositAddressRequest.ReturnType>;
|
|
1069
|
-
/** Prepares an executable
|
|
1293
|
+
/** Prepares an executable route transfer, when the provider supports it. */
|
|
1070
1294
|
prepareTransfer?(input: prepareTransfer.Parameters, signal: AbortSignal): Promise<prepareTransfer.ReturnType>;
|
|
1071
1295
|
/** Validates provider-specific action semantics before generic persistence checks. */
|
|
1072
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>;
|
|
1299
|
+
/** Verifies a submitted source transaction, when supported. */
|
|
1300
|
+
verifySourceTransaction?(input: verifySourceTransaction.Parameters, signal: AbortSignal): Promise<verifySourceTransaction.ReturnType>;
|
|
1073
1301
|
/** Receives authenticated provider status events, when configured. */
|
|
1074
1302
|
webhook?: Webhook | undefined;
|
|
1075
1303
|
} & {
|
|
@@ -1079,19 +1307,19 @@ export declare function getPrepareCandidates(options: getPrepareCandidates.Optio
|
|
|
1079
1307
|
export declare namespace getPrepareCandidates {
|
|
1080
1308
|
/** Options for selecting preparation candidates. */
|
|
1081
1309
|
type Options = {
|
|
1082
|
-
/** Compiled
|
|
1310
|
+
/** Compiled route catalog containing provider routes and capabilities. */
|
|
1083
1311
|
catalog: core_Catalog.Snapshot;
|
|
1084
|
-
/**
|
|
1085
|
-
|
|
1086
|
-
/**
|
|
1312
|
+
/** Destination chain CAIP-2 id, slug, or alias. */
|
|
1313
|
+
destinationChain: string;
|
|
1314
|
+
/** Destination token symbol, contract address, or token key. */
|
|
1087
1315
|
destinationToken: string;
|
|
1088
|
-
/**
|
|
1316
|
+
/** Route method passed to provider preparation. */
|
|
1089
1317
|
method: Transfer.Method;
|
|
1090
1318
|
/** Amount mode the caller selected. */
|
|
1091
1319
|
mode: Transfer.Mode;
|
|
1092
|
-
/**
|
|
1320
|
+
/** Route provider ID selected by the caller. */
|
|
1093
1321
|
provider?: string | undefined;
|
|
1094
|
-
/**
|
|
1322
|
+
/** Route providers considered by the request. */
|
|
1095
1323
|
providers: readonly Provider[];
|
|
1096
1324
|
/** Source amount in base units. */
|
|
1097
1325
|
sourceAmount: string;
|
|
@@ -1101,21 +1329,25 @@ export declare namespace getPrepareCandidates {
|
|
|
1101
1329
|
sourceToken: string;
|
|
1102
1330
|
};
|
|
1103
1331
|
}
|
|
1104
|
-
/** Source amount unit accepted by the
|
|
1332
|
+
/** Source amount unit accepted by the route quote request. */
|
|
1105
1333
|
export type SourceAmountUnits = z.output<typeof schema.SourceAmountUnits>;
|
|
1106
|
-
/** Fetch implementation accepted by
|
|
1334
|
+
/** Fetch implementation accepted by route provider factories. */
|
|
1107
1335
|
export type Fetch = typeof globalThis.fetch;
|
|
1108
1336
|
/** Returns bounded provider failure details suitable for structured request logs. */
|
|
1109
1337
|
export declare function failure(options: ProviderFailure): failure.Result;
|
|
1110
1338
|
export declare namespace failure {
|
|
1111
1339
|
/** Bounded provider failure fields. */
|
|
1112
1340
|
type Result = {
|
|
1341
|
+
/** EIP-155 chain whose RPC request failed. */
|
|
1342
|
+
chainId?: number | undefined;
|
|
1113
1343
|
/** Stable provider error code, when one is safe to retain. */
|
|
1114
1344
|
code?: string | undefined;
|
|
1115
1345
|
/** Failure boundary that rejected the provider request. */
|
|
1116
|
-
failure: 'http' | 'network' | 'payload' | 'rate_limit' | 'timeout' | 'unknown';
|
|
1346
|
+
failure: 'http' | 'network' | 'payload' | 'query' | 'rate_limit' | 'timeout' | 'unknown';
|
|
1117
1347
|
/** Provider identifier. */
|
|
1118
1348
|
id: string;
|
|
1349
|
+
/** Upstream error message, when one was returned. */
|
|
1350
|
+
message?: string | undefined;
|
|
1119
1351
|
/** Provider operation identifier. */
|
|
1120
1352
|
operation: ProviderOperation;
|
|
1121
1353
|
/** Upstream HTTP status, when a response was received. */
|
|
@@ -1258,6 +1490,8 @@ declare namespace createQuoteCandidate {
|
|
|
1258
1490
|
sourceToken: Token;
|
|
1259
1491
|
};
|
|
1260
1492
|
}
|
|
1493
|
+
/** Formats one provider attempt for logs and aggregate metrics. */
|
|
1494
|
+
export declare function formatAttempt(attempt: ProviderAttempt): ProviderAttemptResult;
|
|
1261
1495
|
declare function resolveSourceAmount(options: resolveSourceAmount.Options): {
|
|
1262
1496
|
amount: string;
|
|
1263
1497
|
formatted: string;
|
|
@@ -1269,6 +1503,10 @@ declare namespace resolveSourceAmount {
|
|
|
1269
1503
|
units: SourceAmountUnits;
|
|
1270
1504
|
};
|
|
1271
1505
|
}
|
|
1506
|
+
/** Error thrown when the caller supplies an unsupported destination chain. */
|
|
1507
|
+
export declare class UnsupportedDestinationChainError extends Error {
|
|
1508
|
+
name: string;
|
|
1509
|
+
}
|
|
1272
1510
|
/** Error thrown when the caller supplies an unsupported destination token. */
|
|
1273
1511
|
export declare class UnsupportedDestinationTokenError extends Error {
|
|
1274
1512
|
name: string;
|
|
@@ -1289,6 +1527,14 @@ export declare class InvalidAmountError extends Error {
|
|
|
1289
1527
|
export declare class InvalidRefundAddressError extends Error {
|
|
1290
1528
|
name: string;
|
|
1291
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
|
+
}
|
|
1292
1538
|
/** Error thrown when provider deployment configuration is invalid. */
|
|
1293
1539
|
export declare class ProviderConfigurationError extends Error {
|
|
1294
1540
|
name: string;
|
|
@@ -1328,7 +1574,7 @@ export declare class ProviderQuoteError extends Error {
|
|
|
1328
1574
|
/** Provider failures that prevented a successful quote. */
|
|
1329
1575
|
failures: readonly ProviderFailure[];
|
|
1330
1576
|
/** Bounded provider attempts retained for request logs. */
|
|
1331
|
-
|
|
1577
|
+
routesProviderAttempts: readonly ProviderAttemptResult[];
|
|
1332
1578
|
/** First bounded provider failure retained for request logs. */
|
|
1333
1579
|
providerFailure?: failure.Result | undefined;
|
|
1334
1580
|
/** Bounded provider failures retained when multiple providers failed. */
|