tapimo 0.14.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 +12457 -10365
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +300 -22
- package/dist/App.js.map +1 -1
- package/dist/Assets.d.ts.map +1 -1
- package/dist/Assets.js +2 -1
- package/dist/Assets.js.map +1 -1
- package/dist/Handler.d.ts +0 -1
- package/dist/Handler.d.ts.map +1 -1
- package/dist/Handler.js +0 -1
- package/dist/Handler.js.map +1 -1
- package/dist/Scope.d.ts +13 -5
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +16 -5
- package/dist/Scope.js.map +1 -1
- package/dist/Webhooks.js +1 -1
- package/dist/Webhooks.js.map +1 -1
- package/dist/admin/App.d.ts +3057 -549
- 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 +1398 -0
- package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
- package/dist/admin/apps/earn-vaults.js +463 -7
- package/dist/admin/apps/earn-vaults.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts +267 -15
- package/dist/admin/apps/organizations.d.ts.map +1 -1
- package/dist/admin/apps/organizations.js +241 -25
- package/dist/admin/apps/organizations.js.map +1 -1
- package/dist/admin/apps/routes-support.d.ts +95 -0
- package/dist/admin/apps/routes-support.d.ts.map +1 -0
- package/dist/admin/apps/routes-support.js +151 -0
- package/dist/admin/apps/routes-support.js.map +1 -0
- package/dist/admin/apps/routes.d.ts +2764 -0
- package/dist/admin/apps/routes.d.ts.map +1 -0
- package/dist/admin/apps/routes.js +728 -0
- package/dist/admin/apps/routes.js.map +1 -0
- package/dist/admin/apps/subsidies.d.ts +501 -0
- package/dist/admin/apps/subsidies.d.ts.map +1 -0
- package/dist/admin/apps/subsidies.js +384 -0
- package/dist/admin/apps/subsidies.js.map +1 -0
- package/dist/admin/apps/verified-tokens.d.ts +88 -88
- 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 +37 -5
- package/dist/apps/Zones.js.map +1 -1
- package/dist/apps/data/App.d.ts +3971 -2595
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +76 -21
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +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 +72 -0
- 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 +1450 -337
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +1226 -144
- package/dist/apps/data/routes/earn.js.map +1 -1
- package/dist/apps/data/routes/fee-amm.d.ts +5 -0
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
- package/dist/apps/data/routes/fee-amm.js +31 -19
- 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 +2 -0
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +26 -14
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transfers.d.ts +28 -12
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +9 -7
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/valuation.d.ts +30 -30
- package/dist/apps/data/routes/verified-tokens.d.ts +9 -9
- 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 +613 -176
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +291 -195
- 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 +3763 -3385
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +5 -14
- package/dist/apps/management/App.js.map +1 -1
- package/dist/apps/management/Billing.d.ts +48 -7
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +204 -25
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +106 -4
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +43 -15
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +290 -4
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +274 -49
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +6 -6
- package/dist/apps/management/routes/faucet.js +1 -1
- package/dist/apps/management/routes/faucet.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +77 -2
- 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 +4 -4
- package/dist/apps/management/routes/me.d.ts.map +1 -1
- package/dist/apps/management/routes/me.js +6 -2
- package/dist/apps/management/routes/me.js.map +1 -1
- package/dist/apps/management/routes/members.d.ts +30 -30
- package/dist/apps/management/routes/orgs.d.ts +18 -2
- 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 +4 -4
- package/dist/apps/management/routes/projects.d.ts.map +1 -1
- package/dist/apps/management/routes/projects.js +6 -1
- package/dist/apps/management/routes/projects.js.map +1 -1
- package/dist/apps/management/routes/scopes.d.ts.map +1 -1
- package/dist/apps/management/routes/scopes.js +4 -1
- package/dist/apps/management/routes/scopes.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +24 -24
- package/dist/apps/management/routes/usage.js +21 -4
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.d.ts +2 -2
- package/dist/apps/management/routes/webhooks.d.ts +280 -214
- package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/management/routes/webhooks.js +58 -12
- package/dist/apps/management/routes/webhooks.js.map +1 -1
- package/dist/apps/mcp.d.ts +1 -1
- package/dist/apps/mcp.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 +134 -75
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/apps/relay/Sponsorships.d.ts +5 -3
- package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
- package/dist/apps/relay/Sponsorships.js +209 -28
- package/dist/apps/relay/Sponsorships.js.map +1 -1
- package/dist/apps/{funding → routes}/Access.d.ts +4 -4
- package/dist/apps/routes/Access.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/Access.js +4 -4
- package/dist/apps/routes/Access.js.map +1 -0
- package/dist/apps/{funding → routes}/App.d.ts +418 -124
- package/dist/apps/{funding → routes}/App.d.ts.map +1 -1
- package/dist/apps/{funding → routes}/App.js +16 -16
- package/dist/apps/routes/App.js.map +1 -0
- package/dist/apps/routes/Inventory.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/Inventory.js +2 -2
- package/dist/apps/routes/Inventory.js.map +1 -0
- package/dist/apps/routes/index.d.ts +2 -0
- package/dist/apps/routes/index.d.ts.map +1 -0
- package/dist/apps/routes/index.js +2 -0
- package/dist/apps/routes/index.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/chains.d.ts +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 +107 -43
- package/dist/apps/routes/routes/deposit-addresses.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/routes/deposit-addresses.js +497 -222
- package/dist/apps/routes/routes/deposit-addresses.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/providers.d.ts +8 -8
- package/dist/apps/routes/routes/providers.d.ts.map +1 -0
- package/dist/apps/routes/routes/providers.js +57 -0
- package/dist/apps/routes/routes/providers.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/quotes.d.ts +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 +379 -74
- 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 +1030 -15
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +780 -133
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +575 -162
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts +4 -0
- package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts.map +1 -0
- package/dist/db/tables/apiKeyAdmissionBootstraps.js +2 -0
- package/dist/db/tables/apiKeyAdmissionBootstraps.js.map +1 -0
- package/dist/db/tables/apiKeyAdmissions.d.ts +73 -0
- package/dist/db/tables/apiKeyAdmissions.d.ts.map +1 -0
- package/dist/db/tables/apiKeyAdmissions.js +142 -0
- package/dist/db/tables/apiKeyAdmissions.js.map +1 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.d.ts +4 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.d.ts.map +1 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.js +2 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.js.map +1 -0
- package/dist/db/tables/apiKeyOwnerTombstones.d.ts +20 -0
- package/dist/db/tables/apiKeyOwnerTombstones.d.ts.map +1 -0
- package/dist/db/tables/apiKeyOwnerTombstones.js +57 -0
- package/dist/db/tables/apiKeyOwnerTombstones.js.map +1 -0
- package/dist/db/tables/apiKeyRevocations.d.ts +21 -0
- package/dist/db/tables/apiKeyRevocations.d.ts.map +1 -0
- package/dist/db/tables/apiKeyRevocations.js +98 -0
- package/dist/db/tables/apiKeyRevocations.js.map +1 -0
- package/dist/db/tables/authAccounts.d.ts +47 -0
- package/dist/db/tables/authAccounts.d.ts.map +1 -0
- package/dist/db/tables/authAccounts.js +72 -0
- package/dist/db/tables/authAccounts.js.map +1 -0
- package/dist/db/tables/authSessions.d.ts +12 -0
- package/dist/db/tables/authSessions.d.ts.map +1 -0
- package/dist/db/tables/authSessions.js +2 -0
- package/dist/db/tables/authSessions.js.map +1 -0
- package/dist/db/tables/authVerifications.d.ts +12 -0
- package/dist/db/tables/authVerifications.d.ts.map +1 -0
- package/dist/db/tables/authVerifications.js +2 -0
- package/dist/db/tables/authVerifications.js.map +1 -0
- package/dist/db/tables/invitations.d.ts +17 -1
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/invitations.js +123 -43
- package/dist/db/tables/invitations.js.map +1 -1
- package/dist/db/tables/memberships.d.ts +8 -0
- package/dist/db/tables/memberships.d.ts.map +1 -1
- package/dist/db/tables/memberships.js +51 -2
- package/dist/db/tables/memberships.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +32 -10
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +110 -49
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/projects.d.ts +2 -0
- package/dist/db/tables/projects.d.ts.map +1 -1
- package/dist/db/tables/projects.js +12 -3
- package/dist/db/tables/projects.js.map +1 -1
- package/dist/db/tables/requestUsage.d.ts.map +1 -1
- package/dist/db/tables/requestUsage.js.map +1 -1
- package/dist/db/tables/rewardAccounts.d.ts +86 -0
- package/dist/db/tables/rewardAccounts.d.ts.map +1 -0
- package/dist/db/tables/rewardAccounts.js +88 -0
- package/dist/db/tables/rewardAccounts.js.map +1 -0
- package/dist/db/tables/rewardCampaignDistributors.d.ts +36 -0
- package/dist/db/tables/rewardCampaignDistributors.d.ts.map +1 -0
- package/dist/db/tables/rewardCampaignDistributors.js +30 -0
- package/dist/db/tables/rewardCampaignDistributors.js.map +1 -0
- package/dist/db/tables/rewardCampaigns.d.ts +171 -0
- package/dist/db/tables/rewardCampaigns.d.ts.map +1 -0
- package/dist/db/tables/rewardCampaigns.js +392 -0
- package/dist/db/tables/rewardCampaigns.js.map +1 -0
- package/dist/db/tables/rewardCredits.d.ts +53 -0
- package/dist/db/tables/rewardCredits.d.ts.map +1 -0
- package/dist/db/tables/rewardCredits.js +63 -0
- package/dist/db/tables/rewardCredits.js.map +1 -0
- package/dist/db/tables/rewardEligibilityAssociations.d.ts +61 -0
- package/dist/db/tables/rewardEligibilityAssociations.d.ts.map +1 -0
- package/dist/db/tables/rewardEligibilityAssociations.js +103 -0
- package/dist/db/tables/rewardEligibilityAssociations.js.map +1 -0
- package/dist/db/tables/rewardRuns.d.ts +188 -0
- package/dist/db/tables/rewardRuns.d.ts.map +1 -0
- package/dist/db/tables/rewardRuns.js +278 -0
- package/dist/db/tables/rewardRuns.js.map +1 -0
- package/dist/db/tables/rewardTransactionAttempts.d.ts +100 -0
- package/dist/db/tables/rewardTransactionAttempts.d.ts.map +1 -0
- package/dist/db/tables/rewardTransactionAttempts.js +163 -0
- package/dist/db/tables/rewardTransactionAttempts.js.map +1 -0
- package/dist/db/tables/routesCatalog.d.ts +58 -0
- package/dist/db/tables/routesCatalog.d.ts.map +1 -0
- package/dist/db/tables/{fundingCatalog.js → routesCatalog.js} +19 -19
- package/dist/db/tables/routesCatalog.js.map +1 -0
- package/dist/db/tables/routesDepositAddresses.d.ts +476 -0
- package/dist/db/tables/routesDepositAddresses.d.ts.map +1 -0
- package/dist/db/tables/routesDepositAddresses.js +587 -0
- package/dist/db/tables/routesDepositAddresses.js.map +1 -0
- package/dist/db/tables/{fundingDepositRequestObservations.d.ts → routesDepositRequestObservations.d.ts} +6 -6
- package/dist/db/tables/routesDepositRequestObservations.d.ts.map +1 -0
- package/dist/db/tables/{fundingDepositRequestObservations.js → routesDepositRequestObservations.js} +6 -6
- package/dist/db/tables/routesDepositRequestObservations.js.map +1 -0
- package/dist/db/tables/{fundingDeposits.d.ts → routesDeposits.d.ts} +210 -22
- package/dist/db/tables/routesDeposits.d.ts.map +1 -0
- package/dist/db/tables/routesDeposits.js +576 -0
- package/dist/db/tables/routesDeposits.js.map +1 -0
- package/dist/db/tables/routesIdempotency.d.ts +166 -0
- package/dist/db/tables/routesIdempotency.d.ts.map +1 -0
- package/dist/db/tables/routesIdempotency.js +330 -0
- package/dist/db/tables/routesIdempotency.js.map +1 -0
- package/dist/db/tables/routesSubsidies.d.ts +27 -0
- package/dist/db/tables/routesSubsidies.d.ts.map +1 -0
- package/dist/db/tables/routesSubsidies.js +45 -0
- package/dist/db/tables/routesSubsidies.js.map +1 -0
- package/dist/db/tables/{fundingTransferEvents.d.ts → routesTransferEvents.d.ts} +3 -3
- package/dist/db/tables/routesTransferEvents.d.ts.map +1 -0
- package/dist/db/tables/{fundingTransferEvents.js → routesTransferEvents.js} +3 -3
- package/dist/db/tables/routesTransferEvents.js.map +1 -0
- package/dist/db/tables/routesTransferSubsidies.d.ts +19 -0
- package/dist/db/tables/routesTransferSubsidies.d.ts.map +1 -0
- package/dist/db/tables/routesTransferSubsidies.js +17 -0
- package/dist/db/tables/routesTransferSubsidies.js.map +1 -0
- package/dist/db/tables/routesTransferSubsidyNonces.d.ts +51 -0
- package/dist/db/tables/routesTransferSubsidyNonces.d.ts.map +1 -0
- package/dist/db/tables/routesTransferSubsidyNonces.js +82 -0
- package/dist/db/tables/routesTransferSubsidyNonces.js.map +1 -0
- package/dist/db/tables/routesTransferTransactions.d.ts +77 -0
- package/dist/db/tables/routesTransferTransactions.d.ts.map +1 -0
- package/dist/db/tables/{fundingTransferTransactions.js → routesTransferTransactions.js} +31 -13
- package/dist/db/tables/routesTransferTransactions.js.map +1 -0
- package/dist/db/tables/routesTransfers.d.ts +319 -0
- package/dist/db/tables/routesTransfers.d.ts.map +1 -0
- package/dist/db/tables/routesTransfers.js +372 -0
- package/dist/db/tables/routesTransfers.js.map +1 -0
- package/dist/db/tables/sponsoredTransactions.d.ts +75 -20
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +124 -54
- package/dist/db/tables/sponsoredTransactions.js.map +1 -1
- package/dist/db/tables/sponsorshipAttributions.d.ts +69 -0
- package/dist/db/tables/sponsorshipAttributions.d.ts.map +1 -0
- package/dist/db/tables/sponsorshipAttributions.js +77 -0
- package/dist/db/tables/sponsorshipAttributions.js.map +1 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.d.ts +22 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.d.ts.map +1 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.js +45 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.js.map +1 -0
- package/dist/db/tables/stripeCustomers.d.ts +11 -0
- package/dist/db/tables/stripeCustomers.d.ts.map +1 -1
- package/dist/db/tables/stripeCustomers.js +13 -0
- package/dist/db/tables/stripeCustomers.js.map +1 -1
- package/dist/db/tables/users.d.ts +17 -1
- package/dist/db/tables/users.d.ts.map +1 -1
- package/dist/db/tables/users.js +47 -2
- package/dist/db/tables/users.js.map +1 -1
- package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
- package/dist/db/tables/webhookQueueEvents.js +5 -1
- package/dist/db/tables/webhookQueueEvents.js.map +1 -1
- package/dist/db/tables/webhookSubscriptions.d.ts +19 -11
- package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
- package/dist/db/tables/webhookSubscriptions.js +45 -13
- package/dist/db/tables/webhookSubscriptions.js.map +1 -1
- package/dist/handlers/internal/executionError.d.ts +2 -2
- package/dist/handlers/internal/executionError.d.ts.map +1 -1
- package/dist/handlers/internal/executionError.js +1 -2
- package/dist/handlers/internal/executionError.js.map +1 -1
- package/dist/handlers/internal/multisig.d.ts +4 -232
- package/dist/handlers/internal/multisig.d.ts.map +1 -1
- package/dist/handlers/internal/multisig.js +11 -537
- package/dist/handlers/internal/multisig.js.map +1 -1
- package/dist/handlers/internal/sponsorship.d.ts +19 -8
- package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
- package/dist/handlers/internal/sponsorship.js +13 -9
- package/dist/handlers/internal/sponsorship.js.map +1 -1
- package/dist/handlers/relay.d.ts +9 -12
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +81 -85
- package/dist/handlers/relay.js.map +1 -1
- package/dist/index.d.ts +0 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -17
- package/dist/index.js.map +1 -1
- package/dist/internal/AssetResponse.d.ts +12 -0
- package/dist/internal/AssetResponse.d.ts.map +1 -0
- package/dist/internal/AssetResponse.js +21 -0
- package/dist/internal/AssetResponse.js.map +1 -0
- package/dist/internal/Auth.d.ts +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 +27 -10
- package/dist/internal/EarnVaults.js.map +1 -1
- package/dist/internal/Email.d.ts +37 -0
- package/dist/internal/Email.d.ts.map +1 -0
- package/dist/internal/Email.js +16 -0
- package/dist/internal/Email.js.map +1 -0
- package/dist/internal/Log.d.ts +32 -28
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +18 -11
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/MetricSink.d.ts +3 -0
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +67 -8
- package/dist/internal/MetricSink.js.map +1 -1
- package/dist/internal/Mpp.d.ts.map +1 -1
- package/dist/internal/Mpp.js +20 -25
- package/dist/internal/Mpp.js.map +1 -1
- package/dist/internal/OpenApi.d.ts +26 -3
- package/dist/internal/OpenApi.d.ts.map +1 -1
- package/dist/internal/OpenApi.js +25 -10
- package/dist/internal/OpenApi.js.map +1 -1
- package/dist/internal/Provider.d.ts +1 -1
- package/dist/internal/Provider.d.ts.map +1 -1
- package/dist/internal/RateLimit.d.ts.map +1 -1
- package/dist/internal/RateLimit.js +13 -1
- package/dist/internal/RateLimit.js.map +1 -1
- package/dist/internal/Store.d.ts +16 -0
- package/dist/internal/Store.d.ts.map +1 -1
- package/dist/internal/Store.js +59 -8
- package/dist/internal/Store.js.map +1 -1
- package/dist/internal/Tidx.d.ts +9 -2
- package/dist/internal/Tidx.d.ts.map +1 -1
- package/dist/internal/Tidx.js +78 -11
- package/dist/internal/Tidx.js.map +1 -1
- package/dist/internal/Timing.d.ts +26 -0
- package/dist/internal/Timing.d.ts.map +1 -1
- package/dist/internal/Timing.js +63 -5
- package/dist/internal/Timing.js.map +1 -1
- package/dist/internal/VercelOidc.d.ts +94 -0
- package/dist/internal/VercelOidc.d.ts.map +1 -0
- package/dist/internal/VercelOidc.js +128 -0
- package/dist/internal/VercelOidc.js.map +1 -0
- package/dist/internal/VerifiedTokens.d.ts +2 -8
- package/dist/internal/VerifiedTokens.d.ts.map +1 -1
- package/dist/internal/VerifiedTokens.js +24 -24
- package/dist/internal/VerifiedTokens.js.map +1 -1
- package/dist/internal/Viem.d.ts +30 -2067
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Viem.js +167 -17
- package/dist/internal/Viem.js.map +1 -1
- package/dist/internal/Webhooks.d.ts +12 -4
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +9 -3
- package/dist/internal/Webhooks.js.map +1 -1
- package/dist/internal/ZoneRpc.d.ts +7 -0
- package/dist/internal/ZoneRpc.d.ts.map +1 -0
- package/dist/internal/ZoneRpc.js +49 -0
- package/dist/internal/ZoneRpc.js.map +1 -0
- package/dist/internal/index.d.ts +3 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +3 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/rewards/Audit.d.ts +88 -0
- package/dist/internal/rewards/Audit.d.ts.map +1 -0
- package/dist/internal/rewards/Audit.js +134 -0
- package/dist/internal/rewards/Audit.js.map +1 -0
- package/dist/internal/rewards/Campaigns.d.ts +572 -0
- package/dist/internal/rewards/Campaigns.d.ts.map +1 -0
- package/dist/internal/rewards/Campaigns.js +531 -0
- package/dist/internal/rewards/Campaigns.js.map +1 -0
- package/dist/internal/rewards/Credits.d.ts +76 -0
- package/dist/internal/rewards/Credits.d.ts.map +1 -0
- package/dist/internal/rewards/Credits.js +95 -0
- package/dist/internal/rewards/Credits.js.map +1 -0
- package/dist/internal/rewards/Events.d.ts +100 -0
- package/dist/internal/rewards/Events.d.ts.map +1 -0
- package/dist/internal/rewards/Events.js +340 -0
- package/dist/internal/rewards/Events.js.map +1 -0
- package/dist/internal/rewards/Projection.d.ts +237 -0
- package/dist/internal/rewards/Projection.d.ts.map +1 -0
- package/dist/internal/rewards/Projection.js +616 -0
- package/dist/internal/rewards/Projection.js.map +1 -0
- package/dist/internal/rewards/Rates.d.ts +44 -0
- package/dist/internal/rewards/Rates.d.ts.map +1 -0
- package/dist/internal/rewards/Rates.js +60 -0
- package/dist/internal/rewards/Rates.js.map +1 -0
- package/dist/internal/rewards/Read.d.ts +158 -0
- package/dist/internal/rewards/Read.d.ts.map +1 -0
- package/dist/internal/rewards/Read.js +292 -0
- package/dist/internal/rewards/Read.js.map +1 -0
- package/dist/internal/rewards/Runner.d.ts +164 -0
- package/dist/internal/rewards/Runner.d.ts.map +1 -0
- package/dist/internal/rewards/Runner.js +1778 -0
- package/dist/internal/rewards/Runner.js.map +1 -0
- package/dist/internal/rewards/Signer.d.ts +224 -0
- package/dist/internal/rewards/Signer.d.ts.map +1 -0
- package/dist/internal/rewards/Signer.js +135 -0
- package/dist/internal/rewards/Signer.js.map +1 -0
- package/dist/internal/rewards/index.d.ts +15 -0
- package/dist/internal/rewards/index.d.ts.map +1 -0
- package/dist/internal/rewards/index.js +15 -0
- package/dist/internal/rewards/index.js.map +1 -0
- package/dist/internal/{funding → routes}/Action.d.ts +12 -1
- package/dist/internal/routes/Action.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Action.js +17 -9
- package/dist/internal/routes/Action.js.map +1 -0
- package/dist/internal/{funding → routes}/Catalog.d.ts +20 -20
- package/dist/internal/routes/Catalog.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Catalog.js +29 -29
- package/dist/internal/routes/Catalog.js.map +1 -0
- package/dist/internal/{funding → routes}/Chain.d.ts +10 -10
- package/dist/internal/routes/Chain.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Chain.js +3 -3
- package/dist/internal/routes/Chain.js.map +1 -0
- package/dist/internal/{funding → routes}/Deposit.d.ts +45 -23
- package/dist/internal/routes/Deposit.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Deposit.js +60 -27
- package/dist/internal/routes/Deposit.js.map +1 -0
- package/dist/internal/{funding → routes}/DepositAddress.d.ts +56 -27
- package/dist/internal/routes/DepositAddress.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/DepositAddress.js +95 -33
- package/dist/internal/routes/DepositAddress.js.map +1 -0
- package/dist/internal/{funding → routes}/DepositWebhook.d.ts +4 -4
- package/dist/internal/routes/DepositWebhook.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/DepositWebhook.js +4 -4
- package/dist/internal/routes/DepositWebhook.js.map +1 -0
- package/dist/internal/routes/Economics.d.ts +25 -0
- package/dist/internal/routes/Economics.d.ts.map +1 -0
- package/dist/internal/routes/Economics.js +28 -0
- package/dist/internal/routes/Economics.js.map +1 -0
- package/dist/internal/{funding → routes}/Evidence.d.ts +3 -3
- package/dist/internal/routes/Evidence.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Evidence.js +7 -7
- package/dist/internal/routes/Evidence.js.map +1 -0
- package/dist/internal/routes/Observability.d.ts +154 -0
- package/dist/internal/routes/Observability.d.ts.map +1 -0
- package/dist/internal/routes/Observability.js +389 -0
- package/dist/internal/routes/Observability.js.map +1 -0
- package/dist/internal/{funding → routes}/Provider.d.ts +311 -105
- package/dist/internal/routes/Provider.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Provider.js +229 -98
- package/dist/internal/routes/Provider.js.map +1 -0
- package/dist/internal/{funding → routes}/Reconciliation.d.ts +11 -6
- package/dist/internal/routes/Reconciliation.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Reconciliation.js +408 -158
- package/dist/internal/routes/Reconciliation.js.map +1 -0
- package/dist/internal/routes/Route.d.ts +21 -0
- package/dist/internal/routes/Route.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Route.js +1 -1
- package/dist/internal/routes/Route.js.map +1 -0
- package/dist/internal/{funding → routes}/SourceObservation.d.ts +6 -6
- package/dist/internal/routes/SourceObservation.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/SourceObservation.js +8 -8
- package/dist/internal/routes/SourceObservation.js.map +1 -0
- package/dist/internal/{funding → routes}/Subsidy.d.ts +48 -3
- package/dist/internal/routes/Subsidy.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Subsidy.js +43 -3
- package/dist/internal/routes/Subsidy.js.map +1 -0
- package/dist/internal/{funding → routes}/Token.d.ts +4 -4
- package/dist/internal/routes/Token.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Token.js +3 -3
- package/dist/internal/routes/Token.js.map +1 -0
- package/dist/internal/{funding → routes}/Transfer.d.ts +241 -46
- package/dist/internal/routes/Transfer.d.ts.map +1 -0
- package/dist/internal/routes/Transfer.js +728 -0
- package/dist/internal/routes/Transfer.js.map +1 -0
- package/dist/internal/{funding → routes}/TransferReconciliation.d.ts +13 -10
- package/dist/internal/routes/TransferReconciliation.d.ts.map +1 -0
- package/dist/internal/routes/TransferReconciliation.js +422 -0
- package/dist/internal/routes/TransferReconciliation.js.map +1 -0
- package/dist/internal/routes/TransferSubsidy.d.ts +201 -0
- package/dist/internal/routes/TransferSubsidy.d.ts.map +1 -0
- package/dist/internal/routes/TransferSubsidy.js +256 -0
- package/dist/internal/routes/TransferSubsidy.js.map +1 -0
- package/dist/internal/{funding → routes}/TransferWebhook.d.ts +5 -5
- package/dist/internal/routes/TransferWebhook.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/TransferWebhook.js +3 -3
- package/dist/internal/routes/TransferWebhook.js.map +1 -0
- package/dist/internal/{funding → routes}/index.d.ts +2 -0
- package/dist/internal/routes/index.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/index.js +2 -0
- package/dist/internal/routes/index.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/across.d.ts +4 -4
- package/dist/internal/routes/providers/across.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/across.js +13 -13
- package/dist/internal/routes/providers/across.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/relay.d.ts +21 -12
- package/dist/internal/routes/providers/relay.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/relay.js +194 -110
- package/dist/internal/routes/providers/relay.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/rhino.d.ts +4 -4
- package/dist/internal/routes/providers/rhino.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/rhino.js +10 -10
- package/dist/internal/routes/providers/rhino.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/squid.d.ts +4 -4
- package/dist/internal/routes/providers/squid.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/squid.js +14 -14
- package/dist/internal/routes/providers/squid.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/stargate.d.ts +46 -18
- package/dist/internal/routes/providers/stargate.d.ts.map +1 -0
- package/dist/internal/routes/providers/stargate.js +898 -0
- package/dist/internal/routes/providers/stargate.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/symbiosis.d.ts +4 -4
- package/dist/internal/routes/providers/symbiosis.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/symbiosis.js +30 -20
- package/dist/internal/routes/providers/symbiosis.js.map +1 -0
- package/dist/internal/webhookDestinations/slack.js +12 -12
- package/dist/internal/webhookDestinations/slack.js.map +1 -1
- package/dist/providers/index.d.ts +12 -12
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js +12 -12
- package/dist/providers/index.js.map +1 -1
- package/dist/server.d.ts +19 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +19 -0
- package/dist/server.js.map +1 -0
- package/package.json +15 -4
- package/src/ApiKey.ts +1 -1
- package/src/ApiKeys.test.ts +1033 -3
- package/src/ApiKeys.ts +489 -48
- package/src/App.test-d.ts +1 -1
- package/src/App.test.ts +216 -25
- package/src/App.ts +334 -31
- package/src/Assets.test.ts +2 -2
- package/src/Assets.ts +3 -1
- package/src/Auth.test-d.ts +1 -1
- package/src/Client.test-d.ts +539 -110
- package/src/Handler.ts +0 -1
- package/src/OpenApi.contract.test.ts +195 -0
- package/src/Scope.ts +17 -5
- package/src/Webhooks.ts +1 -1
- package/src/admin/App.test.ts +30 -2
- package/src/admin/App.ts +42 -6
- package/src/admin/apps/api-keys.test.ts +267 -5
- package/src/admin/apps/api-keys.ts +100 -50
- package/src/admin/apps/earn-vaults.test.ts +158 -0
- package/src/admin/apps/earn-vaults.ts +679 -6
- package/src/admin/apps/organizations.test.ts +306 -17
- package/src/admin/apps/organizations.ts +299 -24
- package/src/admin/apps/routes-support.test.ts +200 -0
- package/src/admin/apps/routes-support.ts +201 -0
- package/src/admin/apps/routes.test.ts +450 -0
- package/src/admin/apps/routes.ts +896 -0
- package/src/admin/apps/scopes.test.ts +15 -5
- package/src/admin/apps/subsidies.test.ts +306 -0
- package/src/admin/apps/subsidies.ts +457 -0
- package/src/admin/apps/verified-tokens.test.ts +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 +83 -50
- package/src/admin/ui/src/lib/organizations.ts +106 -25
- package/src/admin/ui/src/lib/query-client.ts +1 -1
- package/src/admin/ui/src/lib/reward-campaigns.ts +136 -0
- package/src/admin/ui/src/lib/routes.test.ts +88 -0
- package/src/admin/ui/src/lib/routes.ts +304 -0
- package/src/admin/ui/src/lib/subsidies.ts +75 -0
- package/src/admin/ui/src/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 +239 -23
- package/src/admin/ui/src/routes/routes.tsx +1615 -0
- package/src/admin/ui/src/routes/routes_.support.tsx +248 -0
- package/src/admin/ui/src/routes/subsidies.tsx +799 -0
- package/src/admin/ui.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 +15 -0
- package/src/apps/Zones.ts +52 -5
- package/src/apps/composition.test.ts +68 -60
- package/src/apps/data/App.test.ts +154 -2
- package/src/apps/data/App.ts +88 -28
- package/src/apps/data/routes/activities.test.ts +419 -7
- package/src/apps/data/routes/activities.ts +683 -216
- package/src/apps/data/routes/balances.test.ts +2 -2
- package/src/apps/data/routes/blocks.test.ts +46 -1
- package/src/apps/data/routes/coingecko.test.ts +419 -1
- package/src/apps/data/routes/coingecko.ts +309 -253
- package/src/apps/data/routes/earn.discovery.test.ts +274 -0
- package/src/apps/data/routes/earn.test.ts +1294 -17
- package/src/apps/data/routes/earn.ts +1838 -321
- package/src/apps/data/routes/exchanges.test.ts +12 -15
- package/src/apps/data/routes/fee-amm.test.ts +224 -0
- package/src/apps/data/routes/fee-amm.ts +191 -160
- 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 +645 -83
- package/src/apps/data/routes/webhooks.ts +1089 -857
- package/src/apps/data/routes/zones.test.ts +148 -71
- package/src/apps/data/routes/zones.ts +71 -55
- package/src/apps/docs/reference.ts +2 -2
- package/src/apps/index.ts +1 -1
- package/src/apps/management/App.ts +9 -51
- package/src/apps/management/Billing.test.ts +375 -14
- package/src/apps/management/Billing.ts +265 -29
- package/src/apps/management/routes/api-keys.test.ts +269 -7
- package/src/apps/management/routes/api-keys.ts +61 -20
- package/src/apps/management/routes/billing.test.ts +477 -15
- package/src/apps/management/routes/billing.ts +377 -50
- package/src/apps/management/routes/faucet.test.ts +1 -1
- package/src/apps/management/routes/faucet.ts +1 -1
- package/src/apps/management/routes/invitations.test.ts +270 -3
- package/src/apps/management/routes/invitations.ts +185 -15
- package/src/apps/management/routes/invoicePreview.test.ts +549 -0
- package/src/apps/management/routes/me.test.ts +246 -5
- package/src/apps/management/routes/me.ts +7 -2
- package/src/apps/management/routes/members.test.ts +108 -0
- package/src/apps/management/routes/orgs.test.ts +191 -3
- package/src/apps/management/routes/orgs.ts +58 -11
- package/src/apps/management/routes/projects.test.ts +33 -3
- package/src/apps/management/routes/projects.ts +6 -1
- package/src/apps/management/routes/scopes.test.ts +30 -2
- package/src/apps/management/routes/scopes.ts +4 -1
- package/src/apps/management/routes/usage.test.ts +32 -0
- package/src/apps/management/routes/usage.ts +22 -4
- package/src/apps/management/routes/webhooks.test.ts +49 -26
- package/src/apps/management/routes/webhooks.ts +78 -22
- 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 +839 -64
- package/src/apps/relay/App.ts +148 -81
- package/src/apps/relay/App.zone-billing.test.ts +257 -0
- package/src/apps/relay/Sponsorships.test.ts +67 -4
- package/src/apps/relay/Sponsorships.ts +233 -32
- package/src/apps/relay/Sponsorships.zone.test.ts +102 -0
- package/src/apps/{funding → routes}/Access.ts +6 -6
- package/src/apps/routes/App.test.ts +165 -0
- package/src/apps/routes/App.ts +96 -0
- package/src/apps/{funding → routes}/Inventory.ts +2 -2
- package/src/apps/routes/index.ts +1 -0
- package/src/apps/{funding → routes}/routes/chains.test.ts +66 -66
- package/src/apps/{funding → routes}/routes/chains.ts +23 -23
- package/src/apps/{funding → routes}/routes/deposit-addresses.test.ts +1358 -458
- package/src/apps/{funding → routes}/routes/deposit-addresses.ts +566 -246
- package/src/apps/{funding → routes}/routes/providers.test.ts +27 -33
- package/src/apps/{funding → routes}/routes/providers.ts +23 -23
- package/src/apps/{funding → routes}/routes/quotes.test.ts +298 -41
- package/src/apps/{funding → routes}/routes/quotes.ts +57 -40
- package/src/apps/{funding → routes}/routes/transfers.test.ts +1100 -353
- package/src/apps/routes/routes/transfers.ts +1332 -0
- package/src/cli/Cli.test.ts +1 -1
- package/src/cli/commands/admin.test.ts +748 -1
- package/src/cli/commands/admin.ts +278 -0
- package/src/cloudflare.ts +52 -47
- package/src/db/Db.test.ts +245 -2
- package/src/db/Db.ts +1476 -34
- package/src/db/Schema.ts +729 -228
- package/src/db/tables/apiKeyAdmissionBootstraps.ts +4 -0
- package/src/db/tables/apiKeyAdmissions.ts +218 -0
- package/src/db/tables/apiKeyOwnerAdmissions.ts +4 -0
- package/src/db/tables/apiKeyOwnerTombstones.ts +81 -0
- package/src/db/tables/apiKeyRevocations.test.ts +74 -0
- package/src/db/tables/apiKeyRevocations.ts +121 -0
- package/src/db/tables/authAccounts.ts +105 -0
- package/src/db/tables/authSessions.ts +13 -0
- package/src/db/tables/authVerifications.ts +13 -0
- package/src/db/tables/invitations.ts +142 -45
- package/src/db/tables/memberships.ts +79 -3
- package/src/db/tables/organizations.test.ts +690 -13
- package/src/db/tables/organizations.ts +139 -55
- package/src/db/tables/projects.test.ts +16 -0
- package/src/db/tables/projects.ts +13 -3
- package/src/db/tables/requestUsage.ts +4 -1
- package/src/db/tables/rewardAccounts.ts +178 -0
- package/src/db/tables/rewardCampaignDistributors.ts +68 -0
- package/src/db/tables/rewardCampaigns.test.ts +1388 -0
- package/src/db/tables/rewardCampaigns.ts +647 -0
- package/src/db/tables/rewardCredits.ts +110 -0
- package/src/db/tables/rewardEligibilityAssociations.test.ts +271 -0
- package/src/db/tables/rewardEligibilityAssociations.ts +184 -0
- package/src/db/tables/rewardRuns.ts +514 -0
- package/src/db/tables/rewardTransactionAttempts.ts +272 -0
- package/src/db/tables/routesCatalog.test.ts +185 -0
- package/src/db/tables/routesCatalog.ts +163 -0
- package/src/db/tables/routesDepositAddresses.test.ts +1048 -0
- package/src/db/tables/routesDepositAddresses.ts +1008 -0
- package/src/db/tables/{fundingDepositRequestObservations.test.ts → routesDepositRequestObservations.test.ts} +13 -14
- package/src/db/tables/{fundingDepositRequestObservations.ts → routesDepositRequestObservations.ts} +10 -10
- package/src/db/tables/{fundingDeposits.test.ts → routesDeposits.test.ts} +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/{fundingTransferTransactions.ts → routesTransferTransactions.ts} +63 -18
- package/src/db/tables/routesTransfers.test.ts +338 -0
- package/src/db/tables/routesTransfers.ts +662 -0
- package/src/db/tables/sponsoredTransactions.test.ts +269 -45
- package/src/db/tables/sponsoredTransactions.ts +225 -65
- package/src/db/tables/sponsorshipAttributions.test.ts +160 -0
- package/src/db/tables/sponsorshipAttributions.ts +168 -0
- package/src/db/tables/sponsorshipReconciliationCursors.test.ts +115 -0
- package/src/db/tables/sponsorshipReconciliationCursors.ts +67 -0
- package/src/db/tables/stripeCustomers.test.ts +85 -0
- package/src/db/tables/stripeCustomers.ts +24 -0
- package/src/db/tables/users.test.ts +129 -0
- package/src/db/tables/users.ts +49 -3
- package/src/db/tables/webhookQueueEvents.ts +8 -1
- package/src/db/tables/webhookSubscriptions.ts +95 -20
- package/src/handlers/internal/executionError.ts +3 -4
- package/src/handlers/internal/multisig.ts +13 -816
- package/src/handlers/internal/sponsorship.ts +26 -10
- package/src/handlers/relay.test-d.ts +9 -1
- package/src/handlers/relay.test.ts +823 -3
- package/src/handlers/relay.ts +127 -107
- package/src/index.test-d.ts +7 -0
- package/src/index.ts +0 -17
- package/src/internal/AssetResponse.ts +26 -0
- package/src/internal/Auth.test.ts +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 +33 -11
- package/src/internal/Email.ts +54 -0
- package/src/internal/Idempotency.test.ts +2 -2
- package/src/internal/Log.test-d.ts +8 -7
- package/src/internal/Log.test.ts +114 -16
- package/src/internal/Log.ts +53 -40
- package/src/internal/MetricSink.test.ts +313 -26
- package/src/internal/MetricSink.ts +73 -8
- package/src/internal/Mpp.test.ts +31 -0
- package/src/internal/Mpp.ts +21 -24
- package/src/internal/OpenApi.ts +45 -12
- package/src/internal/Provider.test.ts +1 -1
- package/src/internal/Provider.ts +1 -1
- package/src/internal/RateLimit.test.ts +21 -3
- package/src/internal/RateLimit.ts +12 -1
- package/src/internal/Store.test-d.ts +1 -1
- package/src/internal/Store.test.ts +151 -8
- package/src/internal/Store.ts +76 -9
- package/src/internal/Tidx.test.ts +59 -8
- package/src/internal/Tidx.ts +86 -14
- package/src/internal/Timing.test.ts +77 -0
- package/src/internal/Timing.ts +83 -6
- package/src/internal/VercelOidc.test.ts +188 -0
- package/src/internal/VercelOidc.ts +193 -0
- package/src/internal/VerifiedTokens.test.ts +60 -6
- package/src/internal/VerifiedTokens.ts +21 -24
- package/src/internal/Viem.batch.test.ts +80 -0
- package/src/internal/Viem.test.ts +201 -2
- package/src/internal/Viem.ts +221 -25
- package/src/internal/Webhooks.test.ts +85 -6
- package/src/internal/Webhooks.ts +22 -4
- package/src/internal/ZoneRpc.ts +50 -0
- package/src/internal/exchange/Provider.test.ts +2 -2
- package/src/internal/index.test.ts +3 -1
- package/src/internal/index.ts +3 -1
- package/src/internal/rewards/Audit.ts +231 -0
- package/src/internal/rewards/Campaigns.test.ts +1234 -0
- package/src/internal/rewards/Campaigns.ts +1205 -0
- package/src/internal/rewards/Credits.ts +165 -0
- package/src/internal/rewards/Events.local.test.ts +113 -0
- package/src/internal/rewards/Events.test.ts +152 -0
- package/src/internal/rewards/Events.ts +468 -0
- package/src/internal/rewards/Projection.test.ts +681 -0
- package/src/internal/rewards/Projection.ts +987 -0
- package/src/internal/rewards/Rates.test.ts +171 -0
- package/src/internal/rewards/Rates.ts +110 -0
- package/src/internal/rewards/Read.test.ts +501 -0
- package/src/internal/rewards/Read.ts +476 -0
- package/src/internal/rewards/Runner.checkpoint.test.ts +80 -0
- package/src/internal/rewards/Runner.states.test.ts +188 -0
- package/src/internal/rewards/Runner.test.ts +90 -0
- package/src/internal/rewards/Runner.ts +2229 -0
- package/src/internal/rewards/Signer.test.ts +79 -0
- package/src/internal/rewards/Signer.ts +180 -0
- package/src/internal/rewards/index.ts +14 -0
- package/src/internal/{funding → routes}/Action.test.ts +63 -14
- package/src/internal/{funding → routes}/Action.ts +35 -8
- package/src/internal/{funding → routes}/Catalog.test.ts +3 -3
- package/src/internal/{funding → routes}/Catalog.ts +39 -39
- package/src/internal/{funding → routes}/Chain.test.ts +1 -1
- package/src/internal/{funding → routes}/Chain.ts +11 -11
- package/src/internal/{funding → routes}/Deposit.test.ts +1 -1
- package/src/internal/{funding → routes}/Deposit.ts +93 -45
- package/src/internal/{funding → routes}/DepositAddress.test.ts +11 -3
- package/src/internal/{funding → routes}/DepositAddress.ts +132 -53
- package/src/internal/{funding → routes}/DepositWebhook.test.ts +61 -18
- package/src/internal/{funding → routes}/DepositWebhook.ts +9 -9
- package/src/internal/routes/Economics.test.ts +42 -0
- package/src/internal/routes/Economics.ts +47 -0
- package/src/internal/{funding → routes}/Evidence.test.ts +6 -6
- package/src/internal/{funding → routes}/Evidence.ts +9 -9
- package/src/internal/routes/Observability.test.ts +636 -0
- package/src/internal/routes/Observability.ts +668 -0
- package/src/internal/{funding → routes}/Provider.test.ts +489 -153
- package/src/internal/{funding → routes}/Provider.ts +489 -186
- package/src/internal/{funding → routes}/Reconciliation.local.test.ts +84 -12
- package/src/internal/{funding → routes}/Reconciliation.test.ts +1213 -279
- package/src/internal/{funding → routes}/Reconciliation.ts +501 -203
- package/src/internal/routes/Reconciliation.unattributed.test.ts +250 -0
- package/src/internal/{funding → routes}/Route.ts +7 -7
- package/src/internal/{funding → routes}/SourceObservation.test.ts +13 -14
- package/src/internal/{funding → routes}/SourceObservation.ts +13 -13
- package/src/internal/{funding → routes}/Subsidy.local.test.ts +7 -7
- package/src/internal/routes/Subsidy.test.ts +169 -0
- package/src/internal/{funding → routes}/Subsidy.ts +86 -6
- package/src/internal/{funding → routes}/Token.test.ts +1 -1
- package/src/internal/{funding → routes}/Token.ts +5 -5
- package/src/internal/routes/Transfer.test.ts +1199 -0
- package/src/internal/routes/Transfer.ts +1206 -0
- package/src/internal/routes/TransferReconciliation.test.ts +731 -0
- package/src/internal/routes/TransferReconciliation.ts +527 -0
- package/src/internal/routes/TransferSubsidy.test.ts +172 -0
- package/src/internal/routes/TransferSubsidy.ts +447 -0
- package/src/internal/{funding → routes}/TransferWebhook.test.ts +13 -13
- package/src/internal/{funding → routes}/TransferWebhook.ts +7 -7
- package/src/internal/{funding → routes}/index.test.ts +5 -3
- package/src/internal/{funding → routes}/index.ts +2 -0
- package/src/internal/{funding → routes}/providers/across.ts +16 -16
- package/src/internal/{funding → routes}/providers/index.test.ts +157 -44
- package/src/internal/{funding → routes}/providers/relay.test.ts +165 -32
- package/src/internal/{funding → routes}/providers/relay.ts +228 -121
- package/src/internal/{funding → routes}/providers/rhino.ts +16 -16
- package/src/internal/{funding → routes}/providers/squid.ts +17 -17
- package/src/internal/routes/providers/stargate.test.ts +728 -0
- package/src/internal/routes/providers/stargate.ts +1276 -0
- package/src/internal/{funding → routes}/providers/symbiosis.ts +64 -24
- package/src/internal/webhookDestinations/slack.ts +10 -10
- package/src/providers/index.ts +13 -13
- package/src/server.ts +18 -0
- package/dist/apps/funding/Access.d.ts.map +0 -1
- package/dist/apps/funding/Access.js.map +0 -1
- package/dist/apps/funding/App.js.map +0 -1
- package/dist/apps/funding/Inventory.d.ts.map +0 -1
- package/dist/apps/funding/Inventory.js.map +0 -1
- package/dist/apps/funding/ProviderAttempts.d.ts +0 -5
- package/dist/apps/funding/ProviderAttempts.d.ts.map +0 -1
- package/dist/apps/funding/ProviderAttempts.js +0 -24
- package/dist/apps/funding/ProviderAttempts.js.map +0 -1
- package/dist/apps/funding/index.d.ts +0 -2
- package/dist/apps/funding/index.d.ts.map +0 -1
- package/dist/apps/funding/index.js +0 -2
- package/dist/apps/funding/index.js.map +0 -1
- package/dist/apps/funding/routes/chains.d.ts.map +0 -1
- package/dist/apps/funding/routes/chains.js.map +0 -1
- package/dist/apps/funding/routes/deposit-addresses.d.ts.map +0 -1
- package/dist/apps/funding/routes/deposit-addresses.js.map +0 -1
- package/dist/apps/funding/routes/providers.d.ts.map +0 -1
- package/dist/apps/funding/routes/providers.js +0 -57
- package/dist/apps/funding/routes/providers.js.map +0 -1
- package/dist/apps/funding/routes/quotes.d.ts.map +0 -1
- package/dist/apps/funding/routes/quotes.js.map +0 -1
- package/dist/apps/funding/routes/transfers.d.ts.map +0 -1
- package/dist/apps/funding/routes/transfers.js +0 -828
- package/dist/apps/funding/routes/transfers.js.map +0 -1
- package/dist/db/tables/fundingCatalog.d.ts +0 -58
- package/dist/db/tables/fundingCatalog.d.ts.map +0 -1
- package/dist/db/tables/fundingCatalog.js.map +0 -1
- package/dist/db/tables/fundingDepositAddresses.d.ts +0 -192
- package/dist/db/tables/fundingDepositAddresses.d.ts.map +0 -1
- package/dist/db/tables/fundingDepositAddresses.js +0 -235
- package/dist/db/tables/fundingDepositAddresses.js.map +0 -1
- package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +0 -1
- package/dist/db/tables/fundingDepositRequestObservations.js.map +0 -1
- package/dist/db/tables/fundingDeposits.d.ts.map +0 -1
- package/dist/db/tables/fundingDeposits.js +0 -295
- package/dist/db/tables/fundingDeposits.js.map +0 -1
- package/dist/db/tables/fundingIdempotency.d.ts +0 -91
- package/dist/db/tables/fundingIdempotency.d.ts.map +0 -1
- package/dist/db/tables/fundingIdempotency.js +0 -103
- package/dist/db/tables/fundingIdempotency.js.map +0 -1
- package/dist/db/tables/fundingTransferEvents.d.ts.map +0 -1
- package/dist/db/tables/fundingTransferEvents.js.map +0 -1
- package/dist/db/tables/fundingTransferTransactions.d.ts +0 -53
- package/dist/db/tables/fundingTransferTransactions.d.ts.map +0 -1
- package/dist/db/tables/fundingTransferTransactions.js.map +0 -1
- package/dist/db/tables/fundingTransfers.d.ts +0 -99
- package/dist/db/tables/fundingTransfers.d.ts.map +0 -1
- package/dist/db/tables/fundingTransfers.js +0 -110
- package/dist/db/tables/fundingTransfers.js.map +0 -1
- package/dist/internal/funding/Action.d.ts.map +0 -1
- package/dist/internal/funding/Action.js.map +0 -1
- package/dist/internal/funding/Catalog.d.ts.map +0 -1
- package/dist/internal/funding/Catalog.js.map +0 -1
- package/dist/internal/funding/Chain.d.ts.map +0 -1
- package/dist/internal/funding/Chain.js.map +0 -1
- package/dist/internal/funding/Deposit.d.ts.map +0 -1
- package/dist/internal/funding/Deposit.js.map +0 -1
- package/dist/internal/funding/DepositAddress.d.ts.map +0 -1
- package/dist/internal/funding/DepositAddress.js.map +0 -1
- package/dist/internal/funding/DepositWebhook.d.ts.map +0 -1
- package/dist/internal/funding/DepositWebhook.js.map +0 -1
- package/dist/internal/funding/Evidence.d.ts.map +0 -1
- package/dist/internal/funding/Evidence.js.map +0 -1
- package/dist/internal/funding/Provider.d.ts.map +0 -1
- package/dist/internal/funding/Provider.js.map +0 -1
- package/dist/internal/funding/Reconciliation.d.ts.map +0 -1
- package/dist/internal/funding/Reconciliation.js.map +0 -1
- package/dist/internal/funding/Route.d.ts +0 -21
- package/dist/internal/funding/Route.d.ts.map +0 -1
- package/dist/internal/funding/Route.js.map +0 -1
- package/dist/internal/funding/SourceObservation.d.ts.map +0 -1
- package/dist/internal/funding/SourceObservation.js.map +0 -1
- package/dist/internal/funding/Subsidy.d.ts.map +0 -1
- package/dist/internal/funding/Subsidy.js.map +0 -1
- package/dist/internal/funding/Token.d.ts.map +0 -1
- package/dist/internal/funding/Token.js.map +0 -1
- package/dist/internal/funding/Transfer.d.ts.map +0 -1
- package/dist/internal/funding/Transfer.js +0 -462
- package/dist/internal/funding/Transfer.js.map +0 -1
- package/dist/internal/funding/TransferReconciliation.d.ts.map +0 -1
- package/dist/internal/funding/TransferReconciliation.js +0 -192
- package/dist/internal/funding/TransferReconciliation.js.map +0 -1
- package/dist/internal/funding/TransferWebhook.d.ts.map +0 -1
- package/dist/internal/funding/TransferWebhook.js.map +0 -1
- package/dist/internal/funding/index.d.ts.map +0 -1
- package/dist/internal/funding/index.js.map +0 -1
- package/dist/internal/funding/providers/across.d.ts.map +0 -1
- package/dist/internal/funding/providers/across.js.map +0 -1
- package/dist/internal/funding/providers/relay.d.ts.map +0 -1
- package/dist/internal/funding/providers/relay.js.map +0 -1
- package/dist/internal/funding/providers/rhino.d.ts.map +0 -1
- package/dist/internal/funding/providers/rhino.js.map +0 -1
- package/dist/internal/funding/providers/squid.d.ts.map +0 -1
- package/dist/internal/funding/providers/squid.js.map +0 -1
- package/dist/internal/funding/providers/stargate.d.ts.map +0 -1
- package/dist/internal/funding/providers/stargate.js +0 -579
- package/dist/internal/funding/providers/stargate.js.map +0 -1
- package/dist/internal/funding/providers/symbiosis.d.ts.map +0 -1
- package/dist/internal/funding/providers/symbiosis.js.map +0 -1
- package/src/apps/funding/App.test.ts +0 -78
- package/src/apps/funding/App.ts +0 -88
- package/src/apps/funding/ProviderAttempts.ts +0 -26
- package/src/apps/funding/index.ts +0 -1
- package/src/apps/funding/routes/transfers.ts +0 -987
- package/src/db/tables/fundingCatalog.test.ts +0 -122
- package/src/db/tables/fundingCatalog.ts +0 -163
- package/src/db/tables/fundingDepositAddresses.test.ts +0 -608
- package/src/db/tables/fundingDepositAddresses.ts +0 -443
- package/src/db/tables/fundingDeposits.ts +0 -572
- package/src/db/tables/fundingIdempotency.test.ts +0 -182
- package/src/db/tables/fundingIdempotency.ts +0 -180
- package/src/db/tables/fundingTransferTransactions.test.ts +0 -112
- package/src/db/tables/fundingTransfers.test.ts +0 -115
- package/src/db/tables/fundingTransfers.ts +0 -189
- package/src/handlers/internal/multisig.test.ts +0 -818
- package/src/internal/funding/Subsidy.test.ts +0 -75
- package/src/internal/funding/Transfer.test.ts +0 -524
- package/src/internal/funding/Transfer.ts +0 -762
- package/src/internal/funding/TransferReconciliation.test.ts +0 -147
- package/src/internal/funding/TransferReconciliation.ts +0 -264
- package/src/internal/funding/providers/stargate.test.ts +0 -328
- package/src/internal/funding/providers/stargate.ts +0 -856
- /package/dist/apps/{funding → routes}/Inventory.d.ts +0 -0
- /package/src/internal/{funding → routes}/Route.test.ts +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as z from 'zod/mini';
|
|
2
2
|
import type * as App from '../../../App.js';
|
|
3
|
-
import * as
|
|
3
|
+
import * as RoutesObservability from '../../../internal/routes/Observability.js';
|
|
4
|
+
import * as RoutesTransferSubsidy from '../../../internal/routes/TransferSubsidy.js';
|
|
5
|
+
import * as RoutesTransferReconciliation from '../../../internal/routes/TransferReconciliation.js';
|
|
4
6
|
import * as Response from '../../../internal/Response.js';
|
|
5
7
|
import type * as Webhooks from '../../../internal/Webhooks.js';
|
|
6
|
-
/** Zod schemas owned by
|
|
8
|
+
/** Zod schemas owned by route transfer resources. */
|
|
7
9
|
export declare namespace schema {
|
|
8
|
-
/** A durable
|
|
10
|
+
/** A durable route transfer. Reads never include the executable `action`. */
|
|
9
11
|
const Transfer: z.ZodMiniObject<{
|
|
10
12
|
createdAt: z.ZodMiniISODateTime;
|
|
11
13
|
destinationAmount: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -20,6 +22,12 @@ export declare namespace schema {
|
|
|
20
22
|
decimals: z.ZodMiniNumber<number>;
|
|
21
23
|
formatted: z.ZodMiniString<string>;
|
|
22
24
|
}, z.core.$strip>>;
|
|
25
|
+
destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
26
|
+
baseUnits: z.ZodMiniString<string>;
|
|
27
|
+
currency: z.ZodMiniString<string>;
|
|
28
|
+
decimals: z.ZodMiniNumber<number>;
|
|
29
|
+
formatted: z.ZodMiniString<string>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
23
31
|
destinationChain: z.ZodMiniObject<{
|
|
24
32
|
addressFormat: z.ZodMiniEnum<{
|
|
25
33
|
base58: "base58";
|
|
@@ -134,6 +142,7 @@ export declare namespace schema {
|
|
|
134
142
|
verified: z.ZodMiniBoolean<boolean>;
|
|
135
143
|
}, z.core.$strip>;
|
|
136
144
|
sourceTransactionHashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
145
|
+
subsidize: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
137
146
|
status: z.ZodMiniEnum<{
|
|
138
147
|
"action-required": "action-required";
|
|
139
148
|
"awaiting-source": "awaiting-source";
|
|
@@ -145,23 +154,29 @@ export declare namespace schema {
|
|
|
145
154
|
}>;
|
|
146
155
|
statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
147
156
|
code: z.ZodMiniEnum<{
|
|
157
|
+
billing_past_due: "billing_past_due";
|
|
158
|
+
billing_required: "billing_required";
|
|
148
159
|
destination_amount_below_minimum: "destination_amount_below_minimum";
|
|
149
160
|
destination_recovered: "destination_recovered";
|
|
150
161
|
manual_recovery_required: "manual_recovery_required";
|
|
151
162
|
refund_failed: "refund_failed";
|
|
163
|
+
routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
|
|
164
|
+
routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
|
|
152
165
|
source_amount_above_maximum: "source_amount_above_maximum";
|
|
153
166
|
source_amount_below_minimum: "source_amount_below_minimum";
|
|
154
167
|
source_chain_mismatch: "source_chain_mismatch";
|
|
155
168
|
source_token_mismatch: "source_token_mismatch";
|
|
169
|
+
subsidy_balance_unavailable: "subsidy_balance_unavailable";
|
|
170
|
+
subsidy_failed: "subsidy_failed";
|
|
156
171
|
}>;
|
|
157
172
|
message: z.ZodMiniString<string>;
|
|
158
173
|
}, z.core.$strip>>;
|
|
159
174
|
updatedAt: z.ZodMiniISODateTime;
|
|
160
175
|
version: z.ZodMiniNumber<number>;
|
|
161
176
|
}, z.core.$strip>;
|
|
162
|
-
/** Schemas for the
|
|
163
|
-
namespace
|
|
164
|
-
/** Query parameters for listing
|
|
177
|
+
/** Schemas for the listRoutesTransfers operation. */
|
|
178
|
+
namespace listRoutesTransfers {
|
|
179
|
+
/** Query parameters for listing route transfers. */
|
|
165
180
|
const Query: z.ZodMiniObject<{
|
|
166
181
|
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
167
182
|
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
@@ -178,7 +193,7 @@ export declare namespace schema {
|
|
|
178
193
|
refunding: "refunding";
|
|
179
194
|
}>>;
|
|
180
195
|
}, z.core.$strip>;
|
|
181
|
-
/** Paginated
|
|
196
|
+
/** Paginated route transfer list. */
|
|
182
197
|
const Response: z.ZodMiniObject<{
|
|
183
198
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
184
199
|
createdAt: z.ZodMiniISODateTime;
|
|
@@ -194,6 +209,12 @@ export declare namespace schema {
|
|
|
194
209
|
decimals: z.ZodMiniNumber<number>;
|
|
195
210
|
formatted: z.ZodMiniString<string>;
|
|
196
211
|
}, z.core.$strip>>;
|
|
212
|
+
destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
213
|
+
baseUnits: z.ZodMiniString<string>;
|
|
214
|
+
currency: z.ZodMiniString<string>;
|
|
215
|
+
decimals: z.ZodMiniNumber<number>;
|
|
216
|
+
formatted: z.ZodMiniString<string>;
|
|
217
|
+
}, z.core.$strip>>;
|
|
197
218
|
destinationChain: z.ZodMiniObject<{
|
|
198
219
|
addressFormat: z.ZodMiniEnum<{
|
|
199
220
|
base58: "base58";
|
|
@@ -308,6 +329,7 @@ export declare namespace schema {
|
|
|
308
329
|
verified: z.ZodMiniBoolean<boolean>;
|
|
309
330
|
}, z.core.$strip>;
|
|
310
331
|
sourceTransactionHashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
332
|
+
subsidize: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
311
333
|
status: z.ZodMiniEnum<{
|
|
312
334
|
"action-required": "action-required";
|
|
313
335
|
"awaiting-source": "awaiting-source";
|
|
@@ -319,14 +341,20 @@ export declare namespace schema {
|
|
|
319
341
|
}>;
|
|
320
342
|
statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
321
343
|
code: z.ZodMiniEnum<{
|
|
344
|
+
billing_past_due: "billing_past_due";
|
|
345
|
+
billing_required: "billing_required";
|
|
322
346
|
destination_amount_below_minimum: "destination_amount_below_minimum";
|
|
323
347
|
destination_recovered: "destination_recovered";
|
|
324
348
|
manual_recovery_required: "manual_recovery_required";
|
|
325
349
|
refund_failed: "refund_failed";
|
|
350
|
+
routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
|
|
351
|
+
routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
|
|
326
352
|
source_amount_above_maximum: "source_amount_above_maximum";
|
|
327
353
|
source_amount_below_minimum: "source_amount_below_minimum";
|
|
328
354
|
source_chain_mismatch: "source_chain_mismatch";
|
|
329
355
|
source_token_mismatch: "source_token_mismatch";
|
|
356
|
+
subsidy_balance_unavailable: "subsidy_balance_unavailable";
|
|
357
|
+
subsidy_failed: "subsidy_failed";
|
|
330
358
|
}>;
|
|
331
359
|
message: z.ZodMiniString<string>;
|
|
332
360
|
}, z.core.$strip>>;
|
|
@@ -340,11 +368,12 @@ export declare namespace schema {
|
|
|
340
368
|
nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
341
369
|
}, z.core.$strip>;
|
|
342
370
|
}
|
|
343
|
-
/** Schemas for the
|
|
344
|
-
namespace
|
|
345
|
-
/**
|
|
371
|
+
/** Schemas for the createRoutesTransfer operation. */
|
|
372
|
+
namespace createRoutesTransfer {
|
|
373
|
+
/** Route transfer creation request body. */
|
|
346
374
|
const Body: z.ZodMiniObject<{
|
|
347
375
|
amount: z.ZodMiniString<string>;
|
|
376
|
+
destinationChain: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
348
377
|
destinationToken: z.ZodMiniString<string>;
|
|
349
378
|
mode: z.ZodMiniEnum<{
|
|
350
379
|
exactDestination: "exactDestination";
|
|
@@ -356,8 +385,9 @@ export declare namespace schema {
|
|
|
356
385
|
slippageBps: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
357
386
|
sourceChain: z.ZodMiniString<string>;
|
|
358
387
|
sourceToken: z.ZodMiniString<string>;
|
|
388
|
+
subsidize: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
359
389
|
}, z.core.$strict>;
|
|
360
|
-
/** Required headers for
|
|
390
|
+
/** Required headers for route transfer creation. */
|
|
361
391
|
const Headers: z.ZodMiniObject<{
|
|
362
392
|
'idempotency-key': z.ZodMiniString<string>;
|
|
363
393
|
}, z.core.$strip>;
|
|
@@ -376,6 +406,12 @@ export declare namespace schema {
|
|
|
376
406
|
decimals: z.ZodMiniNumber<number>;
|
|
377
407
|
formatted: z.ZodMiniString<string>;
|
|
378
408
|
}, z.core.$strip>>;
|
|
409
|
+
destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
410
|
+
baseUnits: z.ZodMiniString<string>;
|
|
411
|
+
currency: z.ZodMiniString<string>;
|
|
412
|
+
decimals: z.ZodMiniNumber<number>;
|
|
413
|
+
formatted: z.ZodMiniString<string>;
|
|
414
|
+
}, z.core.$strip>>;
|
|
379
415
|
destinationChain: z.ZodMiniObject<{
|
|
380
416
|
addressFormat: z.ZodMiniEnum<{
|
|
381
417
|
base58: "base58";
|
|
@@ -490,6 +526,7 @@ export declare namespace schema {
|
|
|
490
526
|
verified: z.ZodMiniBoolean<boolean>;
|
|
491
527
|
}, z.core.$strip>;
|
|
492
528
|
sourceTransactionHashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
529
|
+
subsidize: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
493
530
|
status: z.ZodMiniEnum<{
|
|
494
531
|
"action-required": "action-required";
|
|
495
532
|
"awaiting-source": "awaiting-source";
|
|
@@ -501,14 +538,20 @@ export declare namespace schema {
|
|
|
501
538
|
}>;
|
|
502
539
|
statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
503
540
|
code: z.ZodMiniEnum<{
|
|
541
|
+
billing_past_due: "billing_past_due";
|
|
542
|
+
billing_required: "billing_required";
|
|
504
543
|
destination_amount_below_minimum: "destination_amount_below_minimum";
|
|
505
544
|
destination_recovered: "destination_recovered";
|
|
506
545
|
manual_recovery_required: "manual_recovery_required";
|
|
507
546
|
refund_failed: "refund_failed";
|
|
547
|
+
routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
|
|
548
|
+
routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
|
|
508
549
|
source_amount_above_maximum: "source_amount_above_maximum";
|
|
509
550
|
source_amount_below_minimum: "source_amount_below_minimum";
|
|
510
551
|
source_chain_mismatch: "source_chain_mismatch";
|
|
511
552
|
source_token_mismatch: "source_token_mismatch";
|
|
553
|
+
subsidy_balance_unavailable: "subsidy_balance_unavailable";
|
|
554
|
+
subsidy_failed: "subsidy_failed";
|
|
512
555
|
}>;
|
|
513
556
|
message: z.ZodMiniString<string>;
|
|
514
557
|
}, z.core.$strip>>;
|
|
@@ -524,9 +567,9 @@ export declare namespace schema {
|
|
|
524
567
|
}, z.core.$strip>], "type">;
|
|
525
568
|
}, z.core.$strip>;
|
|
526
569
|
}
|
|
527
|
-
/** Schemas for the
|
|
528
|
-
namespace
|
|
529
|
-
/**
|
|
570
|
+
/** Schemas for the createRoutesTransferVault operation. */
|
|
571
|
+
namespace createRoutesTransferVault {
|
|
572
|
+
/** Route transfer creation request for an Earn vault destination. */
|
|
530
573
|
const Body: z.ZodMiniObject<{
|
|
531
574
|
amount: z.ZodMiniString<string>;
|
|
532
575
|
mode: z.ZodMiniEnum<{
|
|
@@ -540,14 +583,14 @@ export declare namespace schema {
|
|
|
540
583
|
sourceToken: z.ZodMiniString<string>;
|
|
541
584
|
vaultAddress: z.ZodMiniString<string>;
|
|
542
585
|
}, z.core.$strict>;
|
|
543
|
-
/** Required headers for vault
|
|
586
|
+
/** Required headers for vault route transfer creation. */
|
|
544
587
|
const Headers: z.ZodMiniObject<{
|
|
545
588
|
'idempotency-key': z.ZodMiniString<string>;
|
|
546
589
|
}, z.core.$strip>;
|
|
547
590
|
}
|
|
548
|
-
/** Schemas for the
|
|
549
|
-
namespace
|
|
550
|
-
/**
|
|
591
|
+
/** Schemas for the createRoutesTransferZone operation. */
|
|
592
|
+
namespace createRoutesTransferZone {
|
|
593
|
+
/** Route transfer creation request for a Zone destination. */
|
|
551
594
|
const Body: z.ZodMiniObject<{
|
|
552
595
|
amount: z.ZodMiniString<string>;
|
|
553
596
|
destinationChain: z.ZodMiniString<string>;
|
|
@@ -563,18 +606,18 @@ export declare namespace schema {
|
|
|
563
606
|
sourceChain: z.ZodMiniString<string>;
|
|
564
607
|
sourceToken: z.ZodMiniString<string>;
|
|
565
608
|
}, z.core.$strict>;
|
|
566
|
-
/** Required headers for Zone
|
|
609
|
+
/** Required headers for Zone route transfer creation. */
|
|
567
610
|
const Headers: z.ZodMiniObject<{
|
|
568
611
|
'idempotency-key': z.ZodMiniString<string>;
|
|
569
612
|
}, z.core.$strip>;
|
|
570
613
|
}
|
|
571
|
-
/** Schemas for the
|
|
572
|
-
namespace
|
|
573
|
-
/** Path parameters for a
|
|
614
|
+
/** Schemas for the getRoutesTransfer operation. */
|
|
615
|
+
namespace getRoutesTransfer {
|
|
616
|
+
/** Path parameters for a route transfer read. */
|
|
574
617
|
const Params: z.ZodMiniObject<{
|
|
575
618
|
id: z.ZodMiniString<string>;
|
|
576
619
|
}, z.core.$strip>;
|
|
577
|
-
/** The
|
|
620
|
+
/** The route transfer resource, returned directly. */
|
|
578
621
|
const Response: z.ZodMiniObject<{
|
|
579
622
|
createdAt: z.ZodMiniISODateTime;
|
|
580
623
|
destinationAmount: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -589,6 +632,12 @@ export declare namespace schema {
|
|
|
589
632
|
decimals: z.ZodMiniNumber<number>;
|
|
590
633
|
formatted: z.ZodMiniString<string>;
|
|
591
634
|
}, z.core.$strip>>;
|
|
635
|
+
destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
636
|
+
baseUnits: z.ZodMiniString<string>;
|
|
637
|
+
currency: z.ZodMiniString<string>;
|
|
638
|
+
decimals: z.ZodMiniNumber<number>;
|
|
639
|
+
formatted: z.ZodMiniString<string>;
|
|
640
|
+
}, z.core.$strip>>;
|
|
592
641
|
destinationChain: z.ZodMiniObject<{
|
|
593
642
|
addressFormat: z.ZodMiniEnum<{
|
|
594
643
|
base58: "base58";
|
|
@@ -703,6 +752,7 @@ export declare namespace schema {
|
|
|
703
752
|
verified: z.ZodMiniBoolean<boolean>;
|
|
704
753
|
}, z.core.$strip>;
|
|
705
754
|
sourceTransactionHashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
755
|
+
subsidize: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
706
756
|
status: z.ZodMiniEnum<{
|
|
707
757
|
"action-required": "action-required";
|
|
708
758
|
"awaiting-source": "awaiting-source";
|
|
@@ -714,14 +764,20 @@ export declare namespace schema {
|
|
|
714
764
|
}>;
|
|
715
765
|
statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
716
766
|
code: z.ZodMiniEnum<{
|
|
767
|
+
billing_past_due: "billing_past_due";
|
|
768
|
+
billing_required: "billing_required";
|
|
717
769
|
destination_amount_below_minimum: "destination_amount_below_minimum";
|
|
718
770
|
destination_recovered: "destination_recovered";
|
|
719
771
|
manual_recovery_required: "manual_recovery_required";
|
|
720
772
|
refund_failed: "refund_failed";
|
|
773
|
+
routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
|
|
774
|
+
routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
|
|
721
775
|
source_amount_above_maximum: "source_amount_above_maximum";
|
|
722
776
|
source_amount_below_minimum: "source_amount_below_minimum";
|
|
723
777
|
source_chain_mismatch: "source_chain_mismatch";
|
|
724
778
|
source_token_mismatch: "source_token_mismatch";
|
|
779
|
+
subsidy_balance_unavailable: "subsidy_balance_unavailable";
|
|
780
|
+
subsidy_failed: "subsidy_failed";
|
|
725
781
|
}>;
|
|
726
782
|
message: z.ZodMiniString<string>;
|
|
727
783
|
}, z.core.$strip>>;
|
|
@@ -729,12 +785,14 @@ export declare namespace schema {
|
|
|
729
785
|
version: z.ZodMiniNumber<number>;
|
|
730
786
|
}, z.core.$strip>;
|
|
731
787
|
}
|
|
732
|
-
/** Schemas for the
|
|
733
|
-
namespace
|
|
788
|
+
/** Schemas for the registerRoutesTransferSourceTransaction operation. */
|
|
789
|
+
namespace registerRoutesTransferSourceTransaction {
|
|
734
790
|
/** Source transaction registration request body. */
|
|
735
|
-
const Body: z.ZodMiniObject<{
|
|
791
|
+
const Body: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
736
792
|
transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
737
|
-
}, z.core.$strict
|
|
793
|
+
}, z.core.$strict>, z.ZodMiniObject<{
|
|
794
|
+
transactionHashes: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
795
|
+
}, z.core.$strict>]>;
|
|
738
796
|
/** Path parameters for source transaction registration. */
|
|
739
797
|
const Params: z.ZodMiniObject<{
|
|
740
798
|
id: z.ZodMiniString<string>;
|
|
@@ -754,6 +812,12 @@ export declare namespace schema {
|
|
|
754
812
|
decimals: z.ZodMiniNumber<number>;
|
|
755
813
|
formatted: z.ZodMiniString<string>;
|
|
756
814
|
}, z.core.$strip>>;
|
|
815
|
+
destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
816
|
+
baseUnits: z.ZodMiniString<string>;
|
|
817
|
+
currency: z.ZodMiniString<string>;
|
|
818
|
+
decimals: z.ZodMiniNumber<number>;
|
|
819
|
+
formatted: z.ZodMiniString<string>;
|
|
820
|
+
}, z.core.$strip>>;
|
|
757
821
|
destinationChain: z.ZodMiniObject<{
|
|
758
822
|
addressFormat: z.ZodMiniEnum<{
|
|
759
823
|
base58: "base58";
|
|
@@ -868,6 +932,7 @@ export declare namespace schema {
|
|
|
868
932
|
verified: z.ZodMiniBoolean<boolean>;
|
|
869
933
|
}, z.core.$strip>;
|
|
870
934
|
sourceTransactionHashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
935
|
+
subsidize: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
871
936
|
status: z.ZodMiniEnum<{
|
|
872
937
|
"action-required": "action-required";
|
|
873
938
|
"awaiting-source": "awaiting-source";
|
|
@@ -879,14 +944,20 @@ export declare namespace schema {
|
|
|
879
944
|
}>;
|
|
880
945
|
statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
881
946
|
code: z.ZodMiniEnum<{
|
|
947
|
+
billing_past_due: "billing_past_due";
|
|
948
|
+
billing_required: "billing_required";
|
|
882
949
|
destination_amount_below_minimum: "destination_amount_below_minimum";
|
|
883
950
|
destination_recovered: "destination_recovered";
|
|
884
951
|
manual_recovery_required: "manual_recovery_required";
|
|
885
952
|
refund_failed: "refund_failed";
|
|
953
|
+
routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
|
|
954
|
+
routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
|
|
886
955
|
source_amount_above_maximum: "source_amount_above_maximum";
|
|
887
956
|
source_amount_below_minimum: "source_amount_below_minimum";
|
|
888
957
|
source_chain_mismatch: "source_chain_mismatch";
|
|
889
958
|
source_token_mismatch: "source_token_mismatch";
|
|
959
|
+
subsidy_balance_unavailable: "subsidy_balance_unavailable";
|
|
960
|
+
subsidy_failed: "subsidy_failed";
|
|
890
961
|
}>;
|
|
891
962
|
message: z.ZodMiniString<string>;
|
|
892
963
|
}, z.core.$strip>>;
|
|
@@ -895,9 +966,9 @@ export declare namespace schema {
|
|
|
895
966
|
}, z.core.$strip>;
|
|
896
967
|
}
|
|
897
968
|
}
|
|
898
|
-
/** Mounts durable
|
|
969
|
+
/** Mounts durable route transfer routes. */
|
|
899
970
|
export declare function transfers(options?: transfers.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
900
|
-
"/v1/
|
|
971
|
+
"/v1/routes/transfers": {
|
|
901
972
|
$get: {
|
|
902
973
|
output: {
|
|
903
974
|
error: {
|
|
@@ -1047,6 +1118,12 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1047
1118
|
decimals: number;
|
|
1048
1119
|
formatted: string;
|
|
1049
1120
|
} | undefined;
|
|
1121
|
+
destinationAmountRequired?: {
|
|
1122
|
+
baseUnits: string;
|
|
1123
|
+
currency: string;
|
|
1124
|
+
decimals: number;
|
|
1125
|
+
formatted: string;
|
|
1126
|
+
} | undefined;
|
|
1050
1127
|
destinationChain: {
|
|
1051
1128
|
addressFormat: "base58" | "base58check" | "hex";
|
|
1052
1129
|
id: string;
|
|
@@ -1134,9 +1211,10 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1134
1211
|
verified: boolean;
|
|
1135
1212
|
};
|
|
1136
1213
|
sourceTransactionHashes?: string[] | undefined;
|
|
1214
|
+
subsidize: boolean;
|
|
1137
1215
|
status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
|
|
1138
1216
|
statusReason?: {
|
|
1139
|
-
code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
|
|
1217
|
+
code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
1140
1218
|
message: string;
|
|
1141
1219
|
} | undefined;
|
|
1142
1220
|
updatedAt: string;
|
|
@@ -1161,7 +1239,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1161
1239
|
};
|
|
1162
1240
|
};
|
|
1163
1241
|
} & {
|
|
1164
|
-
"/v1/
|
|
1242
|
+
"/v1/routes/transfers/:id{rtr_[A-Za-z0-9_-]+}": {
|
|
1165
1243
|
$get: {
|
|
1166
1244
|
output: {
|
|
1167
1245
|
error: {
|
|
@@ -1277,7 +1355,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1277
1355
|
} | {
|
|
1278
1356
|
output: {
|
|
1279
1357
|
error: {
|
|
1280
|
-
code: "
|
|
1358
|
+
code: "routes_transfer_not_found";
|
|
1281
1359
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1282
1360
|
message: string;
|
|
1283
1361
|
};
|
|
@@ -1305,6 +1383,12 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1305
1383
|
decimals: number;
|
|
1306
1384
|
formatted: string;
|
|
1307
1385
|
} | undefined;
|
|
1386
|
+
destinationAmountRequired?: {
|
|
1387
|
+
baseUnits: string;
|
|
1388
|
+
currency: string;
|
|
1389
|
+
decimals: number;
|
|
1390
|
+
formatted: string;
|
|
1391
|
+
} | undefined;
|
|
1308
1392
|
destinationChain: {
|
|
1309
1393
|
addressFormat: "base58" | "base58check" | "hex";
|
|
1310
1394
|
id: string;
|
|
@@ -1392,9 +1476,10 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1392
1476
|
verified: boolean;
|
|
1393
1477
|
};
|
|
1394
1478
|
sourceTransactionHashes?: string[] | undefined;
|
|
1479
|
+
subsidize: boolean;
|
|
1395
1480
|
status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
|
|
1396
1481
|
statusReason?: {
|
|
1397
|
-
code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
|
|
1482
|
+
code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
1398
1483
|
message: string;
|
|
1399
1484
|
} | undefined;
|
|
1400
1485
|
updatedAt: string;
|
|
@@ -1410,7 +1495,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1410
1495
|
};
|
|
1411
1496
|
};
|
|
1412
1497
|
} & {
|
|
1413
|
-
"/v1/
|
|
1498
|
+
"/v1/routes/transfers/:id{rtr_[A-Za-z0-9_-]+}/source-transactions": {
|
|
1414
1499
|
$post: {
|
|
1415
1500
|
output: {
|
|
1416
1501
|
error: {
|
|
@@ -1429,6 +1514,8 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1429
1514
|
} & {
|
|
1430
1515
|
json: {
|
|
1431
1516
|
transactionHash: `0x${string}`;
|
|
1517
|
+
} | {
|
|
1518
|
+
transactionHashes: `0x${string}`[];
|
|
1432
1519
|
};
|
|
1433
1520
|
};
|
|
1434
1521
|
} | {
|
|
@@ -1449,6 +1536,8 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1449
1536
|
} & {
|
|
1450
1537
|
json: {
|
|
1451
1538
|
transactionHash: `0x${string}`;
|
|
1539
|
+
} | {
|
|
1540
|
+
transactionHashes: `0x${string}`[];
|
|
1452
1541
|
};
|
|
1453
1542
|
};
|
|
1454
1543
|
} | {
|
|
@@ -1469,6 +1558,8 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1469
1558
|
} & {
|
|
1470
1559
|
json: {
|
|
1471
1560
|
transactionHash: `0x${string}`;
|
|
1561
|
+
} | {
|
|
1562
|
+
transactionHashes: `0x${string}`[];
|
|
1472
1563
|
};
|
|
1473
1564
|
};
|
|
1474
1565
|
} | {
|
|
@@ -1489,6 +1580,8 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1489
1580
|
} & {
|
|
1490
1581
|
json: {
|
|
1491
1582
|
transactionHash: `0x${string}`;
|
|
1583
|
+
} | {
|
|
1584
|
+
transactionHashes: `0x${string}`[];
|
|
1492
1585
|
};
|
|
1493
1586
|
};
|
|
1494
1587
|
} | {
|
|
@@ -1509,26 +1602,8 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1509
1602
|
} & {
|
|
1510
1603
|
json: {
|
|
1511
1604
|
transactionHash: `0x${string}`;
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
} | {
|
|
1515
|
-
output: {
|
|
1516
|
-
error: {
|
|
1517
|
-
code: "body_invalid";
|
|
1518
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1519
|
-
message: string;
|
|
1520
|
-
};
|
|
1521
|
-
requestId: string;
|
|
1522
|
-
};
|
|
1523
|
-
outputFormat: "json";
|
|
1524
|
-
status: 400;
|
|
1525
|
-
input: {
|
|
1526
|
-
param: {
|
|
1527
|
-
id: string;
|
|
1528
|
-
};
|
|
1529
|
-
} & {
|
|
1530
|
-
json: {
|
|
1531
|
-
transactionHash: `0x${string}`;
|
|
1605
|
+
} | {
|
|
1606
|
+
transactionHashes: `0x${string}`[];
|
|
1532
1607
|
};
|
|
1533
1608
|
};
|
|
1534
1609
|
} | {
|
|
@@ -1549,6 +1624,8 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1549
1624
|
} & {
|
|
1550
1625
|
json: {
|
|
1551
1626
|
transactionHash: `0x${string}`;
|
|
1627
|
+
} | {
|
|
1628
|
+
transactionHashes: `0x${string}`[];
|
|
1552
1629
|
};
|
|
1553
1630
|
};
|
|
1554
1631
|
} | {
|
|
@@ -1569,12 +1646,14 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1569
1646
|
} & {
|
|
1570
1647
|
json: {
|
|
1571
1648
|
transactionHash: `0x${string}`;
|
|
1649
|
+
} | {
|
|
1650
|
+
transactionHashes: `0x${string}`[];
|
|
1572
1651
|
};
|
|
1573
1652
|
};
|
|
1574
1653
|
} | {
|
|
1575
1654
|
output: {
|
|
1576
1655
|
error: {
|
|
1577
|
-
code: "
|
|
1656
|
+
code: "routes_transfer_not_found";
|
|
1578
1657
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1579
1658
|
message: string;
|
|
1580
1659
|
};
|
|
@@ -1589,6 +1668,8 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1589
1668
|
} & {
|
|
1590
1669
|
json: {
|
|
1591
1670
|
transactionHash: `0x${string}`;
|
|
1671
|
+
} | {
|
|
1672
|
+
transactionHashes: `0x${string}`[];
|
|
1592
1673
|
};
|
|
1593
1674
|
};
|
|
1594
1675
|
} | {
|
|
@@ -1606,6 +1687,12 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1606
1687
|
decimals: number;
|
|
1607
1688
|
formatted: string;
|
|
1608
1689
|
} | undefined;
|
|
1690
|
+
destinationAmountRequired?: {
|
|
1691
|
+
baseUnits: string;
|
|
1692
|
+
currency: string;
|
|
1693
|
+
decimals: number;
|
|
1694
|
+
formatted: string;
|
|
1695
|
+
} | undefined;
|
|
1609
1696
|
destinationChain: {
|
|
1610
1697
|
addressFormat: "base58" | "base58check" | "hex";
|
|
1611
1698
|
id: string;
|
|
@@ -1693,9 +1780,10 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1693
1780
|
verified: boolean;
|
|
1694
1781
|
};
|
|
1695
1782
|
sourceTransactionHashes?: string[] | undefined;
|
|
1783
|
+
subsidize: boolean;
|
|
1696
1784
|
status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
|
|
1697
1785
|
statusReason?: {
|
|
1698
|
-
code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
|
|
1786
|
+
code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
1699
1787
|
message: string;
|
|
1700
1788
|
} | undefined;
|
|
1701
1789
|
updatedAt: string;
|
|
@@ -1710,19 +1798,21 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1710
1798
|
} & {
|
|
1711
1799
|
json: {
|
|
1712
1800
|
transactionHash: `0x${string}`;
|
|
1801
|
+
} | {
|
|
1802
|
+
transactionHashes: `0x${string}`[];
|
|
1713
1803
|
};
|
|
1714
1804
|
};
|
|
1715
1805
|
} | {
|
|
1716
1806
|
output: {
|
|
1717
1807
|
error: {
|
|
1718
|
-
code: "
|
|
1808
|
+
code: "body_invalid";
|
|
1719
1809
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1720
1810
|
message: string;
|
|
1721
1811
|
};
|
|
1722
1812
|
requestId: string;
|
|
1723
1813
|
};
|
|
1724
1814
|
outputFormat: "json";
|
|
1725
|
-
status:
|
|
1815
|
+
status: 400;
|
|
1726
1816
|
input: {
|
|
1727
1817
|
param: {
|
|
1728
1818
|
id: string;
|
|
@@ -1730,19 +1820,21 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1730
1820
|
} & {
|
|
1731
1821
|
json: {
|
|
1732
1822
|
transactionHash: `0x${string}`;
|
|
1823
|
+
} | {
|
|
1824
|
+
transactionHashes: `0x${string}`[];
|
|
1733
1825
|
};
|
|
1734
1826
|
};
|
|
1735
1827
|
} | {
|
|
1736
1828
|
output: {
|
|
1737
1829
|
error: {
|
|
1738
|
-
code: "
|
|
1830
|
+
code: "not_implemented";
|
|
1739
1831
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1740
1832
|
message: string;
|
|
1741
1833
|
};
|
|
1742
1834
|
requestId: string;
|
|
1743
1835
|
};
|
|
1744
1836
|
outputFormat: "json";
|
|
1745
|
-
status:
|
|
1837
|
+
status: 501;
|
|
1746
1838
|
input: {
|
|
1747
1839
|
param: {
|
|
1748
1840
|
id: string;
|
|
@@ -1750,12 +1842,14 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1750
1842
|
} & {
|
|
1751
1843
|
json: {
|
|
1752
1844
|
transactionHash: `0x${string}`;
|
|
1845
|
+
} | {
|
|
1846
|
+
transactionHashes: `0x${string}`[];
|
|
1753
1847
|
};
|
|
1754
1848
|
};
|
|
1755
1849
|
} | {
|
|
1756
1850
|
output: {
|
|
1757
1851
|
error: {
|
|
1758
|
-
code: "
|
|
1852
|
+
code: "routes_transfer_not_awaiting_source";
|
|
1759
1853
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1760
1854
|
message: string;
|
|
1761
1855
|
};
|
|
@@ -1770,6 +1864,8 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1770
1864
|
} & {
|
|
1771
1865
|
json: {
|
|
1772
1866
|
transactionHash: `0x${string}`;
|
|
1867
|
+
} | {
|
|
1868
|
+
transactionHashes: `0x${string}`[];
|
|
1773
1869
|
};
|
|
1774
1870
|
};
|
|
1775
1871
|
} | {
|
|
@@ -1790,6 +1886,30 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1790
1886
|
} & {
|
|
1791
1887
|
json: {
|
|
1792
1888
|
transactionHash: `0x${string}`;
|
|
1889
|
+
} | {
|
|
1890
|
+
transactionHashes: `0x${string}`[];
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
} | {
|
|
1894
|
+
output: {
|
|
1895
|
+
error: {
|
|
1896
|
+
code: "source_transaction_pending";
|
|
1897
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1898
|
+
message: string;
|
|
1899
|
+
};
|
|
1900
|
+
requestId: string;
|
|
1901
|
+
};
|
|
1902
|
+
outputFormat: "json";
|
|
1903
|
+
status: 409;
|
|
1904
|
+
input: {
|
|
1905
|
+
param: {
|
|
1906
|
+
id: string;
|
|
1907
|
+
};
|
|
1908
|
+
} & {
|
|
1909
|
+
json: {
|
|
1910
|
+
transactionHash: `0x${string}`;
|
|
1911
|
+
} | {
|
|
1912
|
+
transactionHashes: `0x${string}`[];
|
|
1793
1913
|
};
|
|
1794
1914
|
};
|
|
1795
1915
|
} | {
|
|
@@ -1810,12 +1930,14 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1810
1930
|
} & {
|
|
1811
1931
|
json: {
|
|
1812
1932
|
transactionHash: `0x${string}`;
|
|
1933
|
+
} | {
|
|
1934
|
+
transactionHashes: `0x${string}`[];
|
|
1813
1935
|
};
|
|
1814
1936
|
};
|
|
1815
1937
|
};
|
|
1816
1938
|
};
|
|
1817
1939
|
} & {
|
|
1818
|
-
"/v1/
|
|
1940
|
+
"/v1/routes/transfers": {
|
|
1819
1941
|
$post: {
|
|
1820
1942
|
output: {
|
|
1821
1943
|
error: {
|
|
@@ -1834,6 +1956,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1834
1956
|
} & {
|
|
1835
1957
|
json: {
|
|
1836
1958
|
amount: string;
|
|
1959
|
+
destinationChain?: string | undefined;
|
|
1837
1960
|
destinationToken: string;
|
|
1838
1961
|
mode: "exactDestination" | "exactSource";
|
|
1839
1962
|
provider?: string | undefined;
|
|
@@ -1842,6 +1965,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1842
1965
|
slippageBps?: number | undefined;
|
|
1843
1966
|
sourceChain: string;
|
|
1844
1967
|
sourceToken: string;
|
|
1968
|
+
subsidize?: boolean | undefined;
|
|
1845
1969
|
};
|
|
1846
1970
|
};
|
|
1847
1971
|
} | {
|
|
@@ -1862,6 +1986,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1862
1986
|
} & {
|
|
1863
1987
|
json: {
|
|
1864
1988
|
amount: string;
|
|
1989
|
+
destinationChain?: string | undefined;
|
|
1865
1990
|
destinationToken: string;
|
|
1866
1991
|
mode: "exactDestination" | "exactSource";
|
|
1867
1992
|
provider?: string | undefined;
|
|
@@ -1870,6 +1995,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1870
1995
|
slippageBps?: number | undefined;
|
|
1871
1996
|
sourceChain: string;
|
|
1872
1997
|
sourceToken: string;
|
|
1998
|
+
subsidize?: boolean | undefined;
|
|
1873
1999
|
};
|
|
1874
2000
|
};
|
|
1875
2001
|
} | {
|
|
@@ -1890,6 +2016,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1890
2016
|
} & {
|
|
1891
2017
|
json: {
|
|
1892
2018
|
amount: string;
|
|
2019
|
+
destinationChain?: string | undefined;
|
|
1893
2020
|
destinationToken: string;
|
|
1894
2021
|
mode: "exactDestination" | "exactSource";
|
|
1895
2022
|
provider?: string | undefined;
|
|
@@ -1898,6 +2025,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1898
2025
|
slippageBps?: number | undefined;
|
|
1899
2026
|
sourceChain: string;
|
|
1900
2027
|
sourceToken: string;
|
|
2028
|
+
subsidize?: boolean | undefined;
|
|
1901
2029
|
};
|
|
1902
2030
|
};
|
|
1903
2031
|
} | {
|
|
@@ -1918,6 +2046,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1918
2046
|
} & {
|
|
1919
2047
|
json: {
|
|
1920
2048
|
amount: string;
|
|
2049
|
+
destinationChain?: string | undefined;
|
|
1921
2050
|
destinationToken: string;
|
|
1922
2051
|
mode: "exactDestination" | "exactSource";
|
|
1923
2052
|
provider?: string | undefined;
|
|
@@ -1926,6 +2055,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1926
2055
|
slippageBps?: number | undefined;
|
|
1927
2056
|
sourceChain: string;
|
|
1928
2057
|
sourceToken: string;
|
|
2058
|
+
subsidize?: boolean | undefined;
|
|
1929
2059
|
};
|
|
1930
2060
|
};
|
|
1931
2061
|
} | {
|
|
@@ -1946,6 +2076,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1946
2076
|
} & {
|
|
1947
2077
|
json: {
|
|
1948
2078
|
amount: string;
|
|
2079
|
+
destinationChain?: string | undefined;
|
|
1949
2080
|
destinationToken: string;
|
|
1950
2081
|
mode: "exactDestination" | "exactSource";
|
|
1951
2082
|
provider?: string | undefined;
|
|
@@ -1954,19 +2085,20 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1954
2085
|
slippageBps?: number | undefined;
|
|
1955
2086
|
sourceChain: string;
|
|
1956
2087
|
sourceToken: string;
|
|
2088
|
+
subsidize?: boolean | undefined;
|
|
1957
2089
|
};
|
|
1958
2090
|
};
|
|
1959
2091
|
} | {
|
|
1960
2092
|
output: {
|
|
1961
2093
|
error: {
|
|
1962
|
-
code: "
|
|
2094
|
+
code: "unauthorized";
|
|
1963
2095
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1964
2096
|
message: string;
|
|
1965
2097
|
};
|
|
1966
2098
|
requestId: string;
|
|
1967
2099
|
};
|
|
1968
2100
|
outputFormat: "json";
|
|
1969
|
-
status:
|
|
2101
|
+
status: 401;
|
|
1970
2102
|
input: {
|
|
1971
2103
|
header: {
|
|
1972
2104
|
'idempotency-key': string;
|
|
@@ -1974,6 +2106,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1974
2106
|
} & {
|
|
1975
2107
|
json: {
|
|
1976
2108
|
amount: string;
|
|
2109
|
+
destinationChain?: string | undefined;
|
|
1977
2110
|
destinationToken: string;
|
|
1978
2111
|
mode: "exactDestination" | "exactSource";
|
|
1979
2112
|
provider?: string | undefined;
|
|
@@ -1982,19 +2115,20 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
1982
2115
|
slippageBps?: number | undefined;
|
|
1983
2116
|
sourceChain: string;
|
|
1984
2117
|
sourceToken: string;
|
|
2118
|
+
subsidize?: boolean | undefined;
|
|
1985
2119
|
};
|
|
1986
2120
|
};
|
|
1987
2121
|
} | {
|
|
1988
2122
|
output: {
|
|
1989
2123
|
error: {
|
|
1990
|
-
code: "
|
|
2124
|
+
code: "body_invalid";
|
|
1991
2125
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1992
2126
|
message: string;
|
|
1993
2127
|
};
|
|
1994
2128
|
requestId: string;
|
|
1995
2129
|
};
|
|
1996
2130
|
outputFormat: "json";
|
|
1997
|
-
status:
|
|
2131
|
+
status: 400;
|
|
1998
2132
|
input: {
|
|
1999
2133
|
header: {
|
|
2000
2134
|
'idempotency-key': string;
|
|
@@ -2002,6 +2136,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2002
2136
|
} & {
|
|
2003
2137
|
json: {
|
|
2004
2138
|
amount: string;
|
|
2139
|
+
destinationChain?: string | undefined;
|
|
2005
2140
|
destinationToken: string;
|
|
2006
2141
|
mode: "exactDestination" | "exactSource";
|
|
2007
2142
|
provider?: string | undefined;
|
|
@@ -2010,19 +2145,20 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2010
2145
|
slippageBps?: number | undefined;
|
|
2011
2146
|
sourceChain: string;
|
|
2012
2147
|
sourceToken: string;
|
|
2148
|
+
subsidize?: boolean | undefined;
|
|
2013
2149
|
};
|
|
2014
2150
|
};
|
|
2015
2151
|
} | {
|
|
2016
2152
|
output: {
|
|
2017
2153
|
error: {
|
|
2018
|
-
code: "
|
|
2154
|
+
code: "not_implemented";
|
|
2019
2155
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2020
2156
|
message: string;
|
|
2021
2157
|
};
|
|
2022
2158
|
requestId: string;
|
|
2023
2159
|
};
|
|
2024
2160
|
outputFormat: "json";
|
|
2025
|
-
status:
|
|
2161
|
+
status: 501;
|
|
2026
2162
|
input: {
|
|
2027
2163
|
header: {
|
|
2028
2164
|
'idempotency-key': string;
|
|
@@ -2030,6 +2166,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2030
2166
|
} & {
|
|
2031
2167
|
json: {
|
|
2032
2168
|
amount: string;
|
|
2169
|
+
destinationChain?: string | undefined;
|
|
2033
2170
|
destinationToken: string;
|
|
2034
2171
|
mode: "exactDestination" | "exactSource";
|
|
2035
2172
|
provider?: string | undefined;
|
|
@@ -2038,6 +2175,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2038
2175
|
slippageBps?: number | undefined;
|
|
2039
2176
|
sourceChain: string;
|
|
2040
2177
|
sourceToken: string;
|
|
2178
|
+
subsidize?: boolean | undefined;
|
|
2041
2179
|
};
|
|
2042
2180
|
};
|
|
2043
2181
|
} | {
|
|
@@ -2058,6 +2196,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2058
2196
|
} & {
|
|
2059
2197
|
json: {
|
|
2060
2198
|
amount: string;
|
|
2199
|
+
destinationChain?: string | undefined;
|
|
2061
2200
|
destinationToken: string;
|
|
2062
2201
|
mode: "exactDestination" | "exactSource";
|
|
2063
2202
|
provider?: string | undefined;
|
|
@@ -2066,6 +2205,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2066
2205
|
slippageBps?: number | undefined;
|
|
2067
2206
|
sourceChain: string;
|
|
2068
2207
|
sourceToken: string;
|
|
2208
|
+
subsidize?: boolean | undefined;
|
|
2069
2209
|
};
|
|
2070
2210
|
};
|
|
2071
2211
|
} | {
|
|
@@ -2086,6 +2226,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2086
2226
|
} & {
|
|
2087
2227
|
json: {
|
|
2088
2228
|
amount: string;
|
|
2229
|
+
destinationChain?: string | undefined;
|
|
2089
2230
|
destinationToken: string;
|
|
2090
2231
|
mode: "exactDestination" | "exactSource";
|
|
2091
2232
|
provider?: string | undefined;
|
|
@@ -2094,6 +2235,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2094
2235
|
slippageBps?: number | undefined;
|
|
2095
2236
|
sourceChain: string;
|
|
2096
2237
|
sourceToken: string;
|
|
2238
|
+
subsidize?: boolean | undefined;
|
|
2097
2239
|
};
|
|
2098
2240
|
};
|
|
2099
2241
|
} | {
|
|
@@ -2111,6 +2253,12 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2111
2253
|
decimals: number;
|
|
2112
2254
|
formatted: string;
|
|
2113
2255
|
} | undefined;
|
|
2256
|
+
destinationAmountRequired?: {
|
|
2257
|
+
baseUnits: string;
|
|
2258
|
+
currency: string;
|
|
2259
|
+
decimals: number;
|
|
2260
|
+
formatted: string;
|
|
2261
|
+
} | undefined;
|
|
2114
2262
|
destinationChain: {
|
|
2115
2263
|
addressFormat: "base58" | "base58check" | "hex";
|
|
2116
2264
|
id: string;
|
|
@@ -2198,9 +2346,10 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2198
2346
|
verified: boolean;
|
|
2199
2347
|
};
|
|
2200
2348
|
sourceTransactionHashes?: string[] | undefined;
|
|
2349
|
+
subsidize: boolean;
|
|
2201
2350
|
status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
|
|
2202
2351
|
statusReason?: {
|
|
2203
|
-
code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
|
|
2352
|
+
code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
2204
2353
|
message: string;
|
|
2205
2354
|
} | undefined;
|
|
2206
2355
|
updatedAt: string;
|
|
@@ -2223,6 +2372,157 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2223
2372
|
} & {
|
|
2224
2373
|
json: {
|
|
2225
2374
|
amount: string;
|
|
2375
|
+
destinationChain?: string | undefined;
|
|
2376
|
+
destinationToken: string;
|
|
2377
|
+
mode: "exactDestination" | "exactSource";
|
|
2378
|
+
provider?: string | undefined;
|
|
2379
|
+
recipient: string;
|
|
2380
|
+
sender: string;
|
|
2381
|
+
slippageBps?: number | undefined;
|
|
2382
|
+
sourceChain: string;
|
|
2383
|
+
sourceToken: string;
|
|
2384
|
+
subsidize?: boolean | undefined;
|
|
2385
|
+
};
|
|
2386
|
+
};
|
|
2387
|
+
} | {
|
|
2388
|
+
output: {
|
|
2389
|
+
error: {
|
|
2390
|
+
code: "billing_past_due" | "billing_required" | "routes_subsidy_not_enabled";
|
|
2391
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2392
|
+
message: string;
|
|
2393
|
+
};
|
|
2394
|
+
requestId: string;
|
|
2395
|
+
};
|
|
2396
|
+
outputFormat: "json";
|
|
2397
|
+
status: 403;
|
|
2398
|
+
input: {
|
|
2399
|
+
header: {
|
|
2400
|
+
'idempotency-key': string;
|
|
2401
|
+
};
|
|
2402
|
+
} & {
|
|
2403
|
+
json: {
|
|
2404
|
+
amount: string;
|
|
2405
|
+
destinationChain?: string | undefined;
|
|
2406
|
+
destinationToken: string;
|
|
2407
|
+
mode: "exactDestination" | "exactSource";
|
|
2408
|
+
provider?: string | undefined;
|
|
2409
|
+
recipient: string;
|
|
2410
|
+
sender: string;
|
|
2411
|
+
slippageBps?: number | undefined;
|
|
2412
|
+
sourceChain: string;
|
|
2413
|
+
sourceToken: string;
|
|
2414
|
+
subsidize?: boolean | undefined;
|
|
2415
|
+
};
|
|
2416
|
+
};
|
|
2417
|
+
} | {
|
|
2418
|
+
output: {
|
|
2419
|
+
error: {
|
|
2420
|
+
code: "quote_not_available";
|
|
2421
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2422
|
+
message: string;
|
|
2423
|
+
};
|
|
2424
|
+
requestId: string;
|
|
2425
|
+
};
|
|
2426
|
+
outputFormat: "json";
|
|
2427
|
+
status: 404;
|
|
2428
|
+
input: {
|
|
2429
|
+
header: {
|
|
2430
|
+
'idempotency-key': string;
|
|
2431
|
+
};
|
|
2432
|
+
} & {
|
|
2433
|
+
json: {
|
|
2434
|
+
amount: string;
|
|
2435
|
+
destinationChain?: string | undefined;
|
|
2436
|
+
destinationToken: string;
|
|
2437
|
+
mode: "exactDestination" | "exactSource";
|
|
2438
|
+
provider?: string | undefined;
|
|
2439
|
+
recipient: string;
|
|
2440
|
+
sender: string;
|
|
2441
|
+
slippageBps?: number | undefined;
|
|
2442
|
+
sourceChain: string;
|
|
2443
|
+
sourceToken: string;
|
|
2444
|
+
subsidize?: boolean | undefined;
|
|
2445
|
+
};
|
|
2446
|
+
};
|
|
2447
|
+
} | {
|
|
2448
|
+
output: {
|
|
2449
|
+
error: {
|
|
2450
|
+
code: "routes_subsidy_limit_exceeded";
|
|
2451
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2452
|
+
message: string;
|
|
2453
|
+
};
|
|
2454
|
+
requestId: string;
|
|
2455
|
+
};
|
|
2456
|
+
outputFormat: "json";
|
|
2457
|
+
status: 403;
|
|
2458
|
+
input: {
|
|
2459
|
+
header: {
|
|
2460
|
+
'idempotency-key': string;
|
|
2461
|
+
};
|
|
2462
|
+
} & {
|
|
2463
|
+
json: {
|
|
2464
|
+
amount: string;
|
|
2465
|
+
destinationChain?: string | undefined;
|
|
2466
|
+
destinationToken: string;
|
|
2467
|
+
mode: "exactDestination" | "exactSource";
|
|
2468
|
+
provider?: string | undefined;
|
|
2469
|
+
recipient: string;
|
|
2470
|
+
sender: string;
|
|
2471
|
+
slippageBps?: number | undefined;
|
|
2472
|
+
sourceChain: string;
|
|
2473
|
+
sourceToken: string;
|
|
2474
|
+
subsidize?: boolean | undefined;
|
|
2475
|
+
};
|
|
2476
|
+
};
|
|
2477
|
+
} | {
|
|
2478
|
+
output: {
|
|
2479
|
+
error: {
|
|
2480
|
+
code: "subsidy_inventory_unavailable";
|
|
2481
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2482
|
+
message: string;
|
|
2483
|
+
};
|
|
2484
|
+
requestId: string;
|
|
2485
|
+
};
|
|
2486
|
+
outputFormat: "json";
|
|
2487
|
+
status: 503;
|
|
2488
|
+
input: {
|
|
2489
|
+
header: {
|
|
2490
|
+
'idempotency-key': string;
|
|
2491
|
+
};
|
|
2492
|
+
} & {
|
|
2493
|
+
json: {
|
|
2494
|
+
amount: string;
|
|
2495
|
+
destinationChain?: string | undefined;
|
|
2496
|
+
destinationToken: string;
|
|
2497
|
+
mode: "exactDestination" | "exactSource";
|
|
2498
|
+
provider?: string | undefined;
|
|
2499
|
+
recipient: string;
|
|
2500
|
+
sender: string;
|
|
2501
|
+
slippageBps?: number | undefined;
|
|
2502
|
+
sourceChain: string;
|
|
2503
|
+
sourceToken: string;
|
|
2504
|
+
subsidize?: boolean | undefined;
|
|
2505
|
+
};
|
|
2506
|
+
};
|
|
2507
|
+
} | {
|
|
2508
|
+
output: {
|
|
2509
|
+
error: {
|
|
2510
|
+
code: "subsidy_signer_unavailable";
|
|
2511
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2512
|
+
message: string;
|
|
2513
|
+
};
|
|
2514
|
+
requestId: string;
|
|
2515
|
+
};
|
|
2516
|
+
outputFormat: "json";
|
|
2517
|
+
status: 503;
|
|
2518
|
+
input: {
|
|
2519
|
+
header: {
|
|
2520
|
+
'idempotency-key': string;
|
|
2521
|
+
};
|
|
2522
|
+
} & {
|
|
2523
|
+
json: {
|
|
2524
|
+
amount: string;
|
|
2525
|
+
destinationChain?: string | undefined;
|
|
2226
2526
|
destinationToken: string;
|
|
2227
2527
|
mode: "exactDestination" | "exactSource";
|
|
2228
2528
|
provider?: string | undefined;
|
|
@@ -2231,12 +2531,13 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2231
2531
|
slippageBps?: number | undefined;
|
|
2232
2532
|
sourceChain: string;
|
|
2233
2533
|
sourceToken: string;
|
|
2534
|
+
subsidize?: boolean | undefined;
|
|
2234
2535
|
};
|
|
2235
2536
|
};
|
|
2236
2537
|
};
|
|
2237
2538
|
};
|
|
2238
2539
|
} & {
|
|
2239
|
-
"/v1/
|
|
2540
|
+
"/v1/routes/transfers/vault": {
|
|
2240
2541
|
$post: {
|
|
2241
2542
|
output: {
|
|
2242
2543
|
error: {
|
|
@@ -2402,7 +2703,7 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2402
2703
|
};
|
|
2403
2704
|
};
|
|
2404
2705
|
} & {
|
|
2405
|
-
"/v1/
|
|
2706
|
+
"/v1/routes/transfers/zone": {
|
|
2406
2707
|
$post: {
|
|
2407
2708
|
output: {
|
|
2408
2709
|
error: {
|
|
@@ -2579,14 +2880,18 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
2579
2880
|
};
|
|
2580
2881
|
};
|
|
2581
2882
|
};
|
|
2582
|
-
}, "/", "/v1/
|
|
2883
|
+
}, "/", "/v1/routes/transfers/zone">;
|
|
2583
2884
|
export declare namespace transfers {
|
|
2584
|
-
/**
|
|
2885
|
+
/** Route transfer route dependencies. */
|
|
2585
2886
|
type Options = {
|
|
2586
2887
|
/** Enqueues one registered transfer for destination reconciliation. */
|
|
2587
|
-
dispatchTransferReconciliation?: ((message:
|
|
2888
|
+
dispatchTransferReconciliation?: ((message: RoutesTransferReconciliation.Message) => Promise<void>) | undefined;
|
|
2588
2889
|
/** Enqueues webhook updates staged with transfer mutations. */
|
|
2589
2890
|
dispatchTransferUpdates?: ((references: readonly Webhooks.QueueReference[]) => Promise<number>) | undefined;
|
|
2891
|
+
/** Records completed route lifecycle intervals. */
|
|
2892
|
+
recordLifecycleInterval?: ((interval: RoutesObservability.LifecycleInterval) => Promise<void>) | undefined;
|
|
2893
|
+
/** Read-only destination subsidy inventory, when settlement is configured. */
|
|
2894
|
+
transferSubsidy?: RoutesTransferSubsidy.Inventory | undefined;
|
|
2590
2895
|
};
|
|
2591
2896
|
}
|
|
2592
2897
|
//# sourceMappingURL=transfers.d.ts.map
|