tapimo 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApiKeys.d.ts +24 -7
- package/dist/ApiKeys.d.ts.map +1 -1
- package/dist/ApiKeys.js +17 -5
- package/dist/ApiKeys.js.map +1 -1
- package/dist/App.d.ts +12104 -7861
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +191 -128
- package/dist/App.js.map +1 -1
- package/dist/Assets.d.ts +10 -0
- package/dist/Assets.d.ts.map +1 -1
- package/dist/Assets.js +17 -4
- package/dist/Assets.js.map +1 -1
- package/dist/Scope.d.ts +19 -8
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +25 -9
- package/dist/Scope.js.map +1 -1
- package/dist/Webhooks.d.ts +1 -1
- package/dist/admin/App.d.ts +601 -20
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +12 -2
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +94 -11
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +141 -32
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/earn-vaults.d.ts +1069 -0
- package/dist/admin/apps/earn-vaults.d.ts.map +1 -0
- package/dist/admin/apps/earn-vaults.js +409 -0
- package/dist/admin/apps/earn-vaults.js.map +1 -0
- package/dist/admin/apps/verified-tokens.d.ts +166 -166
- 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 +151 -95
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/Analytics.d.ts +2 -0
- package/dist/analytics/Analytics.d.ts.map +1 -1
- package/dist/analytics/Analytics.js +18 -2
- package/dist/analytics/Analytics.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts +22 -1
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +59 -39
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/apps/Zones.d.ts +8335 -0
- package/dist/apps/Zones.d.ts.map +1 -0
- package/dist/apps/Zones.js +38 -0
- package/dist/apps/Zones.js.map +1 -0
- package/dist/apps/data/App.d.ts +14377 -10165
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +91 -19
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/FxOracle.d.ts +1 -1
- package/dist/apps/data/FxOracle.d.ts.map +1 -1
- package/dist/apps/data/index.d.ts +0 -1
- package/dist/apps/data/index.d.ts.map +1 -1
- package/dist/apps/data/index.js +0 -1
- package/dist/apps/data/index.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +32 -32
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +130 -65
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +312 -312
- package/dist/apps/data/routes/balances.d.ts +18 -18
- package/dist/apps/data/routes/balances.js +5 -5
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/coingecko.d.ts +176 -176
- package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
- package/dist/apps/data/routes/coingecko.js +62 -35
- package/dist/apps/data/routes/coingecko.js.map +1 -1
- package/dist/apps/data/routes/earn.d.ts +2144 -0
- package/dist/apps/data/routes/earn.d.ts.map +1 -0
- package/dist/apps/data/routes/earn.js +947 -0
- package/dist/apps/data/routes/earn.js.map +1 -0
- package/dist/apps/data/routes/exchanges.d.ts +1231 -324
- package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
- package/dist/apps/data/routes/exchanges.js +656 -193
- package/dist/apps/data/routes/exchanges.js.map +1 -1
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
- package/dist/apps/data/routes/fee-amm.js +59 -8
- package/dist/apps/data/routes/fee-amm.js.map +1 -1
- package/dist/apps/data/routes/funding.d.ts +4092 -387
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +1403 -256
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +5 -5
- package/dist/apps/data/routes/indexer.d.ts.map +1 -1
- package/dist/apps/data/routes/indexer.js +19 -2
- package/dist/apps/data/routes/indexer.js.map +1 -1
- package/dist/apps/data/routes/receipts.d.ts +265 -265
- package/dist/apps/data/routes/receipts.d.ts.map +1 -1
- package/dist/apps/data/routes/receipts.js +11 -11
- package/dist/apps/data/routes/receipts.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts +5 -5
- package/dist/apps/data/routes/rpc.d.ts.map +1 -1
- package/dist/apps/data/routes/rpc.js +211 -22
- package/dist/apps/data/routes/rpc.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +36 -36
- package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
- package/dist/apps/data/routes/tokenlist.js +49 -9
- package/dist/apps/data/routes/tokenlist.js.map +1 -1
- package/dist/apps/data/routes/tokens.d.ts +116 -88
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +198 -91
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transactions.d.ts +55 -55
- package/dist/apps/data/routes/transactions.d.ts.map +1 -1
- package/dist/apps/data/routes/transactions.js +78 -39
- package/dist/apps/data/routes/transactions.js.map +1 -1
- package/dist/apps/data/routes/transfers.d.ts +78 -29
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +165 -67
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/valuation.d.ts +10 -10
- package/dist/apps/data/routes/valuation.js +2 -2
- package/dist/apps/data/routes/valuation.js.map +1 -1
- package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/verified-tokens.js +34 -9
- package/dist/apps/data/routes/verified-tokens.js.map +1 -1
- package/dist/apps/data/routes/webhooks.d.ts +5 -3
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +175 -65
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/data/routes/zones.d.ts +281 -0
- package/dist/apps/data/routes/zones.d.ts.map +1 -0
- package/dist/apps/data/routes/zones.js +252 -0
- package/dist/apps/data/routes/zones.js.map +1 -0
- package/dist/apps/docs/reference.js +6 -5
- package/dist/apps/docs/reference.js.map +1 -1
- package/dist/apps/index.d.ts +2 -1
- package/dist/apps/index.d.ts.map +1 -1
- package/dist/apps/index.js +2 -1
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/management/App.d.ts +670 -670
- package/dist/apps/management/Billing.d.ts +8 -0
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +12 -0
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/Error.d.ts +12 -0
- package/dist/apps/management/Error.d.ts.map +1 -0
- package/dist/apps/management/Error.js +10 -0
- package/dist/apps/management/Error.js.map +1 -0
- package/dist/apps/management/routes/api-keys.d.ts +5 -5
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +2 -8
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +119 -119
- package/dist/apps/management/routes/faucet.d.ts +35 -35
- package/dist/apps/management/routes/invitations.d.ts +62 -62
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +4 -10
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/invite-links.d.ts +30 -30
- package/dist/apps/management/routes/me.d.ts +6 -6
- package/dist/apps/management/routes/members.d.ts +78 -78
- package/dist/apps/management/routes/orgs.d.ts +48 -48
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +2 -8
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +9 -9
- package/dist/apps/management/routes/scopes.js +2 -2
- package/dist/apps/management/routes/scopes.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +80 -80
- package/dist/apps/management/routes/verified-token-requests.d.ts +36 -36
- package/dist/apps/management/routes/webhooks.d.ts +50 -50
- package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/management/routes/webhooks.js +15 -3
- package/dist/apps/management/routes/webhooks.js.map +1 -1
- package/dist/apps/mpp/App.d.ts +55 -56
- package/dist/apps/mpp/App.d.ts.map +1 -1
- package/dist/apps/mpp/App.js +192 -27
- package/dist/apps/mpp/App.js.map +1 -1
- package/dist/apps/mpp/Mpp.d.ts +0 -20
- package/dist/apps/mpp/Mpp.d.ts.map +1 -1
- package/dist/apps/mpp/Mpp.js +0 -24
- package/dist/apps/mpp/Mpp.js.map +1 -1
- package/dist/apps/mpp/internal/Adapter.d.ts +40 -0
- package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -0
- package/dist/apps/mpp/internal/Adapter.js +66 -0
- package/dist/apps/mpp/internal/Adapter.js.map +1 -0
- package/dist/apps/mpp/internal/Error.d.ts +4 -0
- package/dist/apps/mpp/internal/Error.d.ts.map +1 -0
- package/dist/apps/mpp/internal/Error.js +41 -0
- package/dist/apps/mpp/internal/Error.js.map +1 -0
- package/dist/apps/mpp/internal/Idempotency.d.ts +33 -0
- package/dist/apps/mpp/internal/Idempotency.d.ts.map +1 -0
- package/dist/apps/mpp/internal/Idempotency.js +28 -0
- package/dist/apps/mpp/internal/Idempotency.js.map +1 -0
- package/dist/apps/mpp/internal/Policy.d.ts +46 -0
- package/dist/apps/mpp/internal/Policy.d.ts.map +1 -0
- package/dist/apps/mpp/internal/Policy.js +57 -0
- package/dist/apps/mpp/internal/Policy.js.map +1 -0
- package/dist/apps/mpp/internal/ScreenManager.d.ts +27 -0
- package/dist/apps/mpp/internal/ScreenManager.d.ts.map +1 -0
- package/dist/apps/mpp/internal/ScreenManager.js +18 -0
- package/dist/apps/mpp/internal/ScreenManager.js.map +1 -0
- package/dist/apps/mpp/internal/Screening.d.ts +35 -0
- package/dist/apps/mpp/internal/Screening.d.ts.map +1 -0
- package/dist/apps/mpp/internal/Screening.js +20 -0
- package/dist/apps/mpp/internal/Screening.js.map +1 -0
- package/dist/apps/mpp/internal/Sponsorship.d.ts +36 -0
- package/dist/apps/mpp/internal/Sponsorship.d.ts.map +1 -0
- package/dist/apps/mpp/internal/Sponsorship.js +103 -0
- package/dist/apps/mpp/internal/Sponsorship.js.map +1 -0
- package/dist/apps/mpp/internal/Utils.d.ts +7 -0
- package/dist/apps/mpp/internal/Utils.d.ts.map +1 -0
- package/dist/apps/mpp/internal/Utils.js +24 -0
- package/dist/apps/mpp/internal/Utils.js.map +1 -0
- package/dist/apps/relay/App.js +184 -24
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/apps/relay/Sponsorships.d.ts +4 -0
- package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
- package/dist/apps/relay/Sponsorships.js +16 -7
- package/dist/apps/relay/Sponsorships.js.map +1 -1
- package/dist/db/Db.d.ts +20 -0
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +342 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +921 -1
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +269 -1
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/earnVaults.d.ts +68 -0
- package/dist/db/tables/earnVaults.d.ts.map +1 -0
- package/dist/db/tables/earnVaults.js +72 -0
- package/dist/db/tables/earnVaults.js.map +1 -0
- package/dist/db/tables/fundingCatalog.d.ts +56 -0
- package/dist/db/tables/fundingCatalog.d.ts.map +1 -0
- package/dist/db/tables/fundingCatalog.js +85 -0
- package/dist/db/tables/fundingCatalog.js.map +1 -0
- package/dist/db/tables/fundingDepositAddresses.d.ts +159 -0
- package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -0
- package/dist/db/tables/fundingDepositAddresses.js +206 -0
- package/dist/db/tables/fundingDepositAddresses.js.map +1 -0
- package/dist/db/tables/fundingDeposits.d.ts +115 -0
- package/dist/db/tables/fundingDeposits.d.ts.map +1 -0
- package/dist/db/tables/fundingDeposits.js +100 -0
- package/dist/db/tables/fundingDeposits.js.map +1 -0
- package/dist/db/tables/fundingIdempotency.d.ts +91 -0
- package/dist/db/tables/fundingIdempotency.d.ts.map +1 -0
- package/dist/db/tables/fundingIdempotency.js +103 -0
- package/dist/db/tables/fundingIdempotency.js.map +1 -0
- package/dist/db/tables/fundingTransferEvents.d.ts +12 -0
- package/dist/db/tables/fundingTransferEvents.d.ts.map +1 -0
- package/dist/db/tables/fundingTransferEvents.js +18 -0
- package/dist/db/tables/fundingTransferEvents.js.map +1 -0
- package/dist/db/tables/fundingTransferTransactions.d.ts +15 -0
- package/dist/db/tables/fundingTransferTransactions.d.ts.map +1 -0
- package/dist/db/tables/fundingTransferTransactions.js +27 -0
- package/dist/db/tables/fundingTransferTransactions.js.map +1 -0
- package/dist/db/tables/fundingTransfers.d.ts +82 -0
- package/dist/db/tables/fundingTransfers.d.ts.map +1 -0
- package/dist/db/tables/fundingTransfers.js +89 -0
- package/dist/db/tables/fundingTransfers.js.map +1 -0
- package/dist/db/tables/organizations.d.ts +8 -0
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +35 -0
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/projects.d.ts +8 -0
- package/dist/db/tables/projects.d.ts.map +1 -1
- package/dist/db/tables/projects.js +16 -0
- package/dist/db/tables/projects.js.map +1 -1
- package/dist/db/tables/requestUsage.d.ts +13 -0
- package/dist/db/tables/requestUsage.d.ts.map +1 -1
- package/dist/db/tables/requestUsage.js +16 -0
- package/dist/db/tables/requestUsage.js.map +1 -1
- package/dist/db/tables/sponsoredTransactions.d.ts +4 -2
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +14 -4
- package/dist/db/tables/sponsoredTransactions.js.map +1 -1
- package/dist/db/tables/users.d.ts +8 -0
- package/dist/db/tables/users.d.ts.map +1 -1
- package/dist/db/tables/users.js +16 -0
- package/dist/db/tables/users.js.map +1 -1
- package/dist/db/tables/verifiedTokens.d.ts +14 -7
- package/dist/db/tables/verifiedTokens.d.ts.map +1 -1
- package/dist/db/tables/verifiedTokens.js +9 -7
- package/dist/db/tables/verifiedTokens.js.map +1 -1
- package/dist/db/tables/webhookSubscriptions.d.ts +31 -1
- package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
- package/dist/db/tables/webhookSubscriptions.js +24 -3
- package/dist/db/tables/webhookSubscriptions.js.map +1 -1
- package/dist/handlers/relay.js +108 -108
- package/dist/handlers/relay.js.map +1 -1
- package/dist/internal/Auth.d.ts +26 -0
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +35 -2
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Cache.d.ts.map +1 -1
- package/dist/internal/Cache.js +16 -10
- package/dist/internal/Cache.js.map +1 -1
- package/dist/internal/Cursor.js +1 -1
- package/dist/internal/Cursor.js.map +1 -1
- package/dist/internal/EarnRates.d.ts +89 -0
- package/dist/internal/EarnRates.d.ts.map +1 -0
- package/dist/internal/EarnRates.js +266 -0
- package/dist/internal/EarnRates.js.map +1 -0
- package/dist/internal/EarnVaults.d.ts +171 -0
- package/dist/internal/EarnVaults.d.ts.map +1 -0
- package/dist/internal/EarnVaults.js +547 -0
- package/dist/internal/EarnVaults.js.map +1 -0
- package/dist/internal/EdgeCache.d.ts +9 -2
- package/dist/internal/EdgeCache.d.ts.map +1 -1
- package/dist/internal/EdgeCache.js +36 -9
- package/dist/internal/EdgeCache.js.map +1 -1
- package/dist/internal/Id.d.ts +11 -0
- package/dist/internal/Id.d.ts.map +1 -1
- package/dist/internal/Id.js +13 -0
- package/dist/internal/Id.js.map +1 -1
- package/dist/internal/Idempotency.d.ts +83 -0
- package/dist/internal/Idempotency.d.ts.map +1 -0
- package/dist/internal/Idempotency.js +113 -0
- package/dist/internal/Idempotency.js.map +1 -0
- package/dist/internal/Log.d.ts +64 -9
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +29 -7
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +47 -1
- package/dist/internal/MetricSink.js.map +1 -1
- package/dist/internal/OpenApi.d.ts +1 -1
- package/dist/internal/OpenApi.d.ts.map +1 -1
- package/dist/internal/OpenApi.js +3 -0
- package/dist/internal/OpenApi.js.map +1 -1
- package/dist/internal/Provider.d.ts +14 -0
- package/dist/internal/Provider.d.ts.map +1 -0
- package/dist/internal/Provider.js +5 -0
- package/dist/internal/Provider.js.map +1 -0
- package/dist/internal/Schema.d.ts +8 -3
- package/dist/internal/Schema.d.ts.map +1 -1
- package/dist/internal/Schema.js +24 -13
- package/dist/internal/Schema.js.map +1 -1
- package/dist/internal/Store.d.ts +6 -0
- package/dist/internal/Store.d.ts.map +1 -1
- package/dist/internal/Store.js +35 -0
- package/dist/internal/Store.js.map +1 -1
- package/dist/internal/Tidx.d.ts +43 -24
- package/dist/internal/Tidx.d.ts.map +1 -1
- package/dist/internal/Tidx.js +79 -11
- package/dist/internal/Tidx.js.map +1 -1
- package/dist/internal/Viem.d.ts +82 -65
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Viem.js +83 -12
- package/dist/internal/Viem.js.map +1 -1
- package/dist/internal/WebhookDestination.d.ts.map +1 -1
- package/dist/internal/WebhookDestination.js +34 -28
- package/dist/internal/WebhookDestination.js.map +1 -1
- package/dist/internal/Webhooks.d.ts +9 -0
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +15 -10
- package/dist/internal/Webhooks.js.map +1 -1
- package/dist/internal/exchange/Provider.d.ts +219 -0
- package/dist/internal/exchange/Provider.d.ts.map +1 -0
- package/dist/internal/exchange/Provider.js +117 -0
- package/dist/internal/exchange/Provider.js.map +1 -0
- package/dist/internal/exchange/index.d.ts +2 -0
- package/dist/internal/exchange/index.d.ts.map +1 -0
- package/dist/internal/exchange/index.js +2 -0
- package/dist/internal/exchange/index.js.map +1 -0
- package/dist/internal/exchange/providers/uniswap.d.ts +57 -0
- package/dist/internal/exchange/providers/uniswap.d.ts.map +1 -0
- package/dist/internal/exchange/providers/uniswap.js +553 -0
- package/dist/internal/exchange/providers/uniswap.js.map +1 -0
- package/dist/internal/funding/Action.d.ts +55 -0
- package/dist/internal/funding/Action.d.ts.map +1 -0
- package/dist/internal/funding/Action.js +74 -0
- package/dist/internal/funding/Action.js.map +1 -0
- package/dist/internal/funding/Catalog.d.ts +107 -0
- package/dist/internal/funding/Catalog.d.ts.map +1 -0
- package/dist/internal/funding/Catalog.js +270 -0
- package/dist/internal/funding/Catalog.js.map +1 -0
- package/dist/internal/funding/Chain.d.ts +76 -0
- package/dist/internal/funding/Chain.d.ts.map +1 -0
- package/dist/internal/funding/Chain.js +38 -0
- package/dist/internal/funding/Chain.js.map +1 -0
- package/dist/internal/funding/Deposit.d.ts +366 -0
- package/dist/internal/funding/Deposit.d.ts.map +1 -0
- package/dist/internal/funding/Deposit.js +286 -0
- package/dist/internal/funding/Deposit.js.map +1 -0
- package/dist/internal/funding/DepositAddress.d.ts +345 -0
- package/dist/internal/funding/DepositAddress.d.ts.map +1 -0
- package/dist/internal/funding/DepositAddress.js +189 -0
- package/dist/internal/funding/DepositAddress.js.map +1 -0
- package/dist/internal/funding/Evidence.d.ts +52 -0
- package/dist/internal/funding/Evidence.d.ts.map +1 -0
- package/dist/internal/funding/Evidence.js +314 -0
- package/dist/internal/funding/Evidence.js.map +1 -0
- package/dist/internal/funding/Provider.d.ts +1186 -0
- package/dist/internal/funding/Provider.d.ts.map +1 -0
- package/dist/internal/funding/Provider.js +1081 -0
- package/dist/internal/funding/Provider.js.map +1 -0
- package/dist/internal/funding/Reconciliation.d.ts +113 -0
- package/dist/internal/funding/Reconciliation.d.ts.map +1 -0
- package/dist/internal/funding/Reconciliation.js +676 -0
- package/dist/internal/funding/Reconciliation.js.map +1 -0
- package/dist/internal/funding/Route.d.ts +21 -0
- package/dist/internal/funding/Route.d.ts.map +1 -0
- package/dist/internal/funding/Route.js +5 -0
- package/dist/internal/funding/Route.js.map +1 -0
- package/dist/internal/funding/Subsidy.d.ts +113 -0
- package/dist/internal/funding/Subsidy.d.ts.map +1 -0
- package/dist/internal/funding/Subsidy.js +138 -0
- package/dist/internal/funding/Subsidy.js.map +1 -0
- package/dist/internal/funding/Token.d.ts +41 -0
- package/dist/internal/funding/Token.d.ts.map +1 -0
- package/dist/internal/funding/Token.js +22 -0
- package/dist/internal/funding/Token.js.map +1 -0
- package/dist/internal/funding/Transfer.d.ts +643 -0
- package/dist/internal/funding/Transfer.d.ts.map +1 -0
- package/dist/internal/funding/Transfer.js +332 -0
- package/dist/internal/funding/Transfer.js.map +1 -0
- package/dist/internal/funding/index.d.ts +13 -0
- package/dist/internal/funding/index.d.ts.map +1 -0
- package/dist/internal/funding/index.js +13 -0
- package/dist/internal/funding/index.js.map +1 -0
- package/dist/internal/funding/providers/across.d.ts +21 -0
- package/dist/internal/funding/providers/across.d.ts.map +1 -0
- package/dist/internal/funding/providers/across.js +117 -0
- package/dist/internal/funding/providers/across.js.map +1 -0
- package/dist/internal/funding/providers/relay.d.ts +46 -0
- package/dist/internal/funding/providers/relay.d.ts.map +1 -0
- package/dist/internal/funding/providers/relay.js +464 -0
- package/dist/internal/funding/providers/relay.js.map +1 -0
- package/dist/internal/funding/providers/rhino.d.ts +15 -0
- package/dist/internal/funding/providers/rhino.d.ts.map +1 -0
- package/dist/internal/funding/providers/rhino.js +116 -0
- package/dist/internal/funding/providers/rhino.js.map +1 -0
- package/dist/internal/funding/providers/squid.d.ts +19 -0
- package/dist/internal/funding/providers/squid.d.ts.map +1 -0
- package/dist/internal/funding/providers/squid.js +120 -0
- package/dist/internal/funding/providers/squid.js.map +1 -0
- package/dist/internal/funding/providers/symbiosis.d.ts +20 -0
- package/dist/internal/funding/providers/symbiosis.d.ts.map +1 -0
- package/dist/internal/funding/providers/symbiosis.js +176 -0
- package/dist/internal/funding/providers/symbiosis.js.map +1 -0
- package/dist/internal/index.d.ts +5 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +5 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/webhookDestinations/url.js +61 -57
- package/dist/internal/webhookDestinations/url.js.map +1 -1
- package/dist/providers/index.d.ts +43 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +19 -0
- package/dist/providers/index.js.map +1 -0
- package/package.json +9 -4
- package/src/ApiKeys.test.ts +11 -7
- package/src/ApiKeys.ts +37 -9
- package/src/App.test.ts +85 -10
- package/src/App.ts +224 -137
- package/src/Assets.ts +29 -4
- package/src/Client.test-d.ts +650 -30
- package/src/Scope.test.ts +19 -0
- package/src/Scope.ts +28 -11
- package/src/Webhooks.test.ts +25 -0
- package/src/Webhooks.ts +1 -1
- package/src/admin/App.test.ts +9 -2
- package/src/admin/App.ts +32 -9
- package/src/admin/apps/api-keys.test.ts +167 -23
- package/src/admin/apps/api-keys.ts +166 -28
- package/src/admin/apps/earn-vaults.test.ts +338 -0
- package/src/admin/apps/earn-vaults.ts +572 -0
- package/src/admin/apps/scopes.test.ts +16 -1
- package/src/admin/ui/plugin.ts +2 -2
- package/src/admin/ui/src/components/EarnVaultForm.tsx +137 -0
- package/src/admin/ui/src/components/MobileProfile.tsx +2 -2
- package/src/admin/ui/src/components/Page.tsx +1 -1
- package/src/admin/ui/src/components/ThemeToggle.tsx +1 -1
- package/src/admin/ui/src/lib/api-keys.ts +37 -7
- package/src/admin/ui/src/lib/client.ts +1 -1
- package/src/admin/ui/src/lib/config.ts +1 -1
- package/src/admin/ui/src/lib/early-access.ts +8 -9
- package/src/admin/ui/src/lib/earn-vaults.ts +207 -0
- package/src/admin/ui/src/lib/format.ts +13 -0
- package/src/admin/ui/src/lib/organizations.test.ts +14 -4
- package/src/admin/ui/src/lib/organizations.ts +7 -1
- package/src/admin/ui/src/lib/response.ts +22 -0
- package/src/admin/ui/src/lib/scopes.test.ts +19 -11
- package/src/admin/ui/src/lib/scopes.ts +28 -7
- package/src/admin/ui/src/lib/verified-tokens.ts +10 -9
- package/src/admin/ui/src/routeTree.gen.ts +70 -7
- package/src/admin/ui/src/router.tsx +2 -2
- package/src/admin/ui/src/routes/__root.tsx +9 -8
- package/src/admin/ui/src/routes/api-keys.tsx +475 -64
- package/src/admin/ui/src/routes/early-access.tsx +5 -12
- package/src/admin/ui/src/routes/earn.vaults.tsx +348 -0
- package/src/admin/ui/src/routes/earn.vaults_.$vaultId.edit.tsx +154 -0
- package/src/admin/ui/src/routes/earn.vaults_.new.tsx +190 -0
- package/src/admin/ui/src/routes/organizations.tsx +4 -7
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +56 -54
- package/src/admin/ui/src/routes/verified-tokens.tsx +4 -4
- package/src/admin/ui/vite.config.ts +4 -1
- package/src/admin/ui.generated.ts +189 -95
- package/src/analytics/Analytics.test.ts +69 -10
- package/src/analytics/Analytics.ts +20 -1
- package/src/analytics/tables/requestEvents.ts +79 -37
- package/src/apps/Zones.test.ts +33 -0
- package/src/apps/Zones.ts +40 -0
- package/src/apps/composition.test.ts +84 -1
- package/src/apps/data/App.test.ts +38 -9
- package/src/apps/data/App.ts +96 -33
- package/src/apps/data/FxOracle.ts +1 -1
- package/src/apps/data/index.ts +0 -1
- package/src/apps/data/routes/activities.test.ts +82 -6
- package/src/apps/data/routes/activities.ts +131 -71
- package/src/apps/data/routes/balances.test.ts +50 -37
- package/src/apps/data/routes/balances.ts +5 -5
- package/src/apps/data/routes/blocks.test.ts +2 -0
- package/src/apps/data/routes/coingecko.test.ts +22 -0
- package/src/apps/data/routes/coingecko.ts +84 -48
- package/src/apps/data/routes/earn.test.ts +1108 -0
- package/src/apps/data/routes/earn.ts +1391 -0
- package/src/apps/data/routes/exchanges.test.ts +82 -33
- package/src/apps/data/routes/exchanges.ts +842 -227
- package/src/apps/data/routes/fee-amm.test.ts +4 -6
- package/src/apps/data/routes/fee-amm.ts +69 -12
- package/src/apps/data/routes/funding.test.ts +2712 -221
- package/src/apps/data/routes/funding.ts +1604 -387
- package/src/apps/data/routes/indexer.test.ts +43 -34
- package/src/apps/data/routes/indexer.ts +19 -2
- package/src/apps/data/routes/receipts.test.ts +5 -3
- package/src/apps/data/routes/receipts.ts +13 -11
- package/src/apps/data/routes/rpc.test.ts +446 -28
- package/src/apps/data/routes/rpc.ts +243 -25
- package/src/apps/data/routes/tokenlist.test.ts +15 -0
- package/src/apps/data/routes/tokenlist.ts +88 -22
- package/src/apps/data/routes/tokens.ts +262 -86
- package/src/apps/data/routes/transactions.test.ts +2 -0
- package/src/apps/data/routes/transactions.ts +77 -42
- package/src/apps/data/routes/transfers.test.ts +166 -4
- package/src/apps/data/routes/transfers.ts +216 -78
- package/src/apps/data/routes/valuation.test.ts +62 -9
- package/src/apps/data/routes/valuation.ts +2 -2
- package/src/apps/data/routes/verified-tokens.test.ts +51 -0
- package/src/apps/data/routes/verified-tokens.ts +52 -15
- package/src/apps/data/routes/webhooks.test.ts +432 -33
- package/src/apps/data/routes/webhooks.ts +189 -79
- package/src/apps/data/routes/zones.test.ts +473 -0
- package/src/apps/data/routes/zones.ts +338 -0
- package/src/apps/docs/reference.ts +8 -6
- package/src/apps/index.ts +2 -1
- package/src/apps/management/Billing.test.ts +29 -0
- package/src/apps/management/Billing.ts +23 -0
- package/src/apps/management/Error.ts +12 -0
- package/src/apps/management/routes/api-keys.test.ts +5 -3
- package/src/apps/management/routes/api-keys.ts +2 -9
- package/src/apps/management/routes/invitations.ts +4 -11
- package/src/apps/management/routes/orgs.ts +2 -9
- package/src/apps/management/routes/scopes.test.ts +7 -2
- package/src/apps/management/routes/scopes.ts +2 -2
- package/src/apps/management/routes/webhooks.test.ts +6 -1
- package/src/apps/management/routes/webhooks.ts +15 -3
- package/src/apps/mpp/App.ts +276 -29
- package/src/apps/mpp/Mpp.test.ts +631 -26
- package/src/apps/mpp/Mpp.ts +0 -42
- package/src/apps/mpp/internal/Adapter.ts +108 -3
- package/src/apps/mpp/internal/Error.test.ts +33 -0
- package/src/apps/mpp/internal/Error.ts +44 -6
- package/src/apps/mpp/internal/Idempotency.test.ts +213 -0
- package/src/apps/mpp/internal/Idempotency.ts +59 -5
- package/src/apps/mpp/internal/Policy.test.ts +122 -0
- package/src/apps/mpp/internal/Policy.ts +98 -0
- package/src/apps/mpp/internal/ScreenManager.test.ts +68 -0
- package/src/apps/mpp/internal/ScreenManager.ts +41 -0
- package/src/apps/mpp/internal/Screening.ts +40 -3
- package/src/apps/mpp/internal/Sponsorship.ts +144 -0
- package/src/apps/mpp/internal/Utils.ts +30 -0
- package/src/apps/relay/App.test.ts +495 -64
- package/src/apps/relay/App.ts +234 -24
- package/src/apps/relay/Sponsorships.test.ts +51 -0
- package/src/apps/relay/Sponsorships.ts +19 -7
- package/src/db/Db.ts +439 -0
- package/src/db/Schema.ts +325 -2
- package/src/db/tables/earnVaults.test.ts +185 -0
- package/src/db/tables/earnVaults.ts +151 -0
- package/src/db/tables/fundingCatalog.test.ts +108 -0
- package/src/db/tables/fundingCatalog.ts +157 -0
- package/src/db/tables/fundingDepositAddresses.test.ts +580 -0
- package/src/db/tables/fundingDepositAddresses.ts +376 -0
- package/src/db/tables/fundingDeposits.test.ts +261 -0
- package/src/db/tables/fundingDeposits.ts +229 -0
- package/src/db/tables/fundingIdempotency.test.ts +182 -0
- package/src/db/tables/fundingIdempotency.ts +180 -0
- package/src/db/tables/fundingTransferEvents.ts +28 -0
- package/src/db/tables/fundingTransferTransactions.test.ts +69 -0
- package/src/db/tables/fundingTransferTransactions.ts +37 -0
- package/src/db/tables/fundingTransfers.test.ts +89 -0
- package/src/db/tables/fundingTransfers.ts +153 -0
- package/src/db/tables/organizations.test.ts +88 -0
- package/src/db/tables/organizations.ts +42 -1
- package/src/db/tables/projects.ts +16 -0
- package/src/db/tables/requestUsage.ts +23 -0
- package/src/db/tables/sponsoredTransactions.test.ts +52 -2
- package/src/db/tables/sponsoredTransactions.ts +18 -6
- package/src/db/tables/users.ts +16 -0
- package/src/db/tables/verifiedTokens.ts +19 -14
- package/src/db/tables/webhookSubscriptions.ts +58 -3
- package/src/handlers/relay.test.ts +2 -0
- package/src/handlers/relay.ts +95 -99
- package/src/internal/Auth.test.ts +48 -0
- package/src/internal/Auth.ts +61 -2
- package/src/internal/Cache.ts +13 -9
- package/src/internal/Cursor.test.ts +2 -2
- package/src/internal/Cursor.ts +1 -1
- package/src/internal/EarnRates.test.ts +125 -0
- package/src/internal/EarnRates.ts +409 -0
- package/src/internal/EarnVaults.test.ts +195 -0
- package/src/internal/EarnVaults.ts +876 -0
- package/src/internal/EdgeCache.test.ts +37 -5
- package/src/internal/EdgeCache.ts +39 -7
- package/src/internal/Id.ts +14 -0
- package/src/internal/Idempotency.test.ts +109 -0
- package/src/internal/Idempotency.ts +237 -0
- package/src/internal/Log.test-d.ts +41 -8
- package/src/internal/Log.test.ts +189 -8
- package/src/internal/Log.ts +124 -17
- package/src/internal/MetricSink.test.ts +244 -4
- package/src/internal/MetricSink.ts +51 -1
- package/src/internal/OpenApi.ts +3 -0
- package/src/internal/Provider.test.ts +17 -0
- package/src/internal/Provider.ts +17 -0
- package/src/internal/Schema.test.ts +13 -0
- package/src/internal/Schema.ts +41 -24
- package/src/internal/Store.test.ts +25 -0
- package/src/internal/Store.ts +46 -0
- package/src/internal/Tidx.local.test.ts +78 -3
- package/src/internal/Tidx.test.ts +212 -18
- package/src/internal/Tidx.ts +112 -32
- package/src/internal/VerifiedTokens.test.ts +15 -0
- package/src/internal/Viem.test.ts +170 -17
- package/src/internal/Viem.ts +111 -28
- package/src/internal/WebhookDestination.ts +25 -23
- package/src/internal/Webhooks.test.ts +59 -0
- package/src/internal/Webhooks.ts +34 -10
- package/src/internal/exchange/Provider.test.ts +216 -0
- package/src/internal/exchange/Provider.ts +326 -0
- package/src/internal/exchange/index.test.ts +6 -0
- package/src/internal/exchange/index.ts +1 -0
- package/src/internal/exchange/providers/uniswap.test.ts +122 -0
- package/src/internal/exchange/providers/uniswap.ts +682 -0
- package/src/internal/funding/Action.test.ts +138 -0
- package/src/internal/funding/Action.ts +117 -0
- package/src/internal/funding/Catalog.test.ts +311 -0
- package/src/internal/funding/Catalog.ts +347 -0
- package/src/internal/funding/Chain.test.ts +79 -0
- package/src/internal/funding/Chain.ts +120 -0
- package/src/internal/funding/Deposit.test.ts +26 -0
- package/src/internal/funding/Deposit.ts +453 -0
- package/src/internal/funding/DepositAddress.test.ts +18 -0
- package/src/internal/funding/DepositAddress.ts +312 -0
- package/src/internal/funding/Evidence.test.ts +297 -0
- package/src/internal/funding/Evidence.ts +430 -0
- package/src/internal/funding/Provider.test.ts +1328 -0
- package/src/internal/funding/Provider.ts +1796 -0
- package/src/internal/funding/Reconciliation.local.test.ts +504 -0
- package/src/internal/funding/Reconciliation.test.ts +2020 -0
- package/src/internal/funding/Reconciliation.ts +930 -0
- package/src/internal/funding/Route.test.ts +66 -0
- package/src/internal/funding/Route.ts +29 -0
- package/src/internal/funding/Subsidy.local.test.ts +152 -0
- package/src/internal/funding/Subsidy.test.ts +75 -0
- package/src/internal/funding/Subsidy.ts +260 -0
- package/src/internal/funding/Token.test.ts +47 -0
- package/src/internal/funding/Token.ts +59 -0
- package/src/internal/funding/Transfer.test.ts +369 -0
- package/src/internal/funding/Transfer.ts +522 -0
- package/src/internal/funding/index.test.ts +20 -0
- package/src/internal/funding/index.ts +12 -0
- package/src/internal/funding/providers/across.ts +149 -0
- package/src/{apps/data/FundingQuoteProviders.test.ts → internal/funding/providers/index.test.ts} +178 -157
- package/src/internal/funding/providers/relay.test.ts +474 -0
- package/src/internal/funding/providers/relay.ts +559 -0
- package/src/internal/funding/providers/rhino.ts +139 -0
- package/src/internal/funding/providers/squid.ts +151 -0
- package/src/internal/funding/providers/symbiosis.ts +221 -0
- package/src/internal/index.test.ts +5 -1
- package/src/internal/index.ts +5 -1
- package/src/internal/webhookDestinations/url.ts +49 -45
- package/src/providers/index.test.ts +14 -0
- package/src/providers/index.ts +54 -0
- package/dist/apps/data/FundingQuoteProviders.d.ts +0 -174
- package/dist/apps/data/FundingQuoteProviders.d.ts.map +0 -1
- package/dist/apps/data/FundingQuoteProviders.js +0 -775
- package/dist/apps/data/FundingQuoteProviders.js.map +0 -1
- package/dist/internal/FundingQuotes.d.ts +0 -864
- package/dist/internal/FundingQuotes.d.ts.map +0 -1
- package/dist/internal/FundingQuotes.js +0 -672
- package/dist/internal/FundingQuotes.js.map +0 -1
- package/src/apps/data/FundingQuoteProviders.ts +0 -1043
- package/src/internal/FundingQuotes.test.ts +0 -456
- package/src/internal/FundingQuotes.ts +0 -944
package/dist/db/Schema.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod/mini';
|
|
2
|
+
import type * as funding_Deposit from '../internal/funding/Deposit.js';
|
|
3
|
+
import type * as funding_DepositAddress from '../internal/funding/DepositAddress.js';
|
|
4
|
+
import type * as funding_Provider from '../internal/funding/Provider.js';
|
|
2
5
|
import type * as Webhooks from '../internal/Webhooks.js';
|
|
3
6
|
/** One authenticated administrator access to a protected admin API route. */
|
|
4
7
|
export declare const AdminAuditLog: z.ZodMiniObject<{
|
|
@@ -53,6 +56,20 @@ export declare const EnabledBillingSource: z.ZodMiniObject<{
|
|
|
53
56
|
}, z.core.$strip>;
|
|
54
57
|
/** Columns of the `enabled_billing_sources` table. */
|
|
55
58
|
export type EnabledBillingSource = z.output<typeof EnabledBillingSource>;
|
|
59
|
+
/** One curated Earn vault. */
|
|
60
|
+
export declare const EarnVault: z.ZodMiniObject<{
|
|
61
|
+
chainId: z.ZodMiniNumber<number>;
|
|
62
|
+
createdAt: z.ZodMiniString<string>;
|
|
63
|
+
description: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
64
|
+
label: z.ZodMiniString<string>;
|
|
65
|
+
privateInputTokens: z.ZodMiniCustom<readonly `0x${string}`[], readonly `0x${string}`[]>;
|
|
66
|
+
privateOutputTokens: z.ZodMiniCustom<readonly `0x${string}`[], readonly `0x${string}`[]>;
|
|
67
|
+
slug: z.ZodMiniString<string>;
|
|
68
|
+
updatedAt: z.ZodMiniString<string>;
|
|
69
|
+
vaultAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
/** Columns of the `earn_vaults` table. */
|
|
72
|
+
export type EarnVault = z.output<typeof EarnVault>;
|
|
56
73
|
/** A pending, expiring offer of organization membership. */
|
|
57
74
|
export declare const Invitation: z.ZodMiniObject<{
|
|
58
75
|
acceptedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
@@ -157,7 +174,7 @@ export declare const SponsoredTransaction: z.ZodMiniObject<{
|
|
|
157
174
|
id: z.ZodMiniString<string>;
|
|
158
175
|
meterReportedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
159
176
|
orgId: z.ZodMiniString<string>;
|
|
160
|
-
projectId: z.ZodMiniString<string
|
|
177
|
+
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
161
178
|
signPayload: z.ZodMiniString<string>;
|
|
162
179
|
status: z.ZodMiniEnum<{
|
|
163
180
|
failed: "failed";
|
|
@@ -235,6 +252,909 @@ export declare const User: z.ZodMiniObject<{
|
|
|
235
252
|
}, z.core.$strip>;
|
|
236
253
|
/** Columns of the `users` table. */
|
|
237
254
|
export type User = z.output<typeof User>;
|
|
255
|
+
/** Metadata for the current funding catalog snapshot. */
|
|
256
|
+
export declare const FundingCatalog: z.ZodMiniObject<{
|
|
257
|
+
id: z.ZodMiniString<string>;
|
|
258
|
+
updatedAt: z.ZodMiniString<string>;
|
|
259
|
+
version: z.ZodMiniString<string>;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
/** Columns of the `funding_catalogs` table. */
|
|
262
|
+
export type FundingCatalog = z.output<typeof FundingCatalog>;
|
|
263
|
+
/** One chain available to the funding catalog. */
|
|
264
|
+
export declare const FundingChain: z.ZodMiniObject<{
|
|
265
|
+
aliases: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
266
|
+
id: z.ZodMiniString<string>;
|
|
267
|
+
name: z.ZodMiniString<string>;
|
|
268
|
+
parentChainId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
269
|
+
rpcUrls: z.ZodMiniDefault<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniURL>>>;
|
|
270
|
+
slug: z.ZodMiniString<string>;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
/** Columns of the `funding_chains` table. */
|
|
273
|
+
export type FundingChain = z.output<typeof FundingChain>;
|
|
274
|
+
/** One token available to the funding catalog. */
|
|
275
|
+
export declare const FundingToken: z.ZodMiniObject<{
|
|
276
|
+
currency: z.ZodMiniString<string>;
|
|
277
|
+
id: z.ZodMiniString<string>;
|
|
278
|
+
name: z.ZodMiniString<string>;
|
|
279
|
+
symbol: z.ZodMiniString<string>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
/** Columns of the `funding_tokens` table. */
|
|
282
|
+
export type FundingToken = z.output<typeof FundingToken>;
|
|
283
|
+
/** Chain-specific metadata for one funding token. */
|
|
284
|
+
export declare const FundingChainToken: z.ZodMiniObject<{
|
|
285
|
+
address: z.ZodMiniString<string>;
|
|
286
|
+
chainId: z.ZodMiniString<string>;
|
|
287
|
+
decimals: z.ZodMiniNumber<number>;
|
|
288
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
289
|
+
standard: z.ZodMiniString<string>;
|
|
290
|
+
tokenId: z.ZodMiniString<string>;
|
|
291
|
+
}, z.core.$strip>;
|
|
292
|
+
/** Columns of the `funding_chain_tokens` table. */
|
|
293
|
+
export type FundingChainToken = z.output<typeof FundingChainToken>;
|
|
294
|
+
/** One source-to-destination route supported by a funding provider. */
|
|
295
|
+
export declare const FundingRoute: z.ZodMiniObject<{
|
|
296
|
+
destinationChainId: z.ZodMiniString<string>;
|
|
297
|
+
destinationTokenId: z.ZodMiniString<string>;
|
|
298
|
+
capabilities: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
299
|
+
depositAddress?: true | undefined;
|
|
300
|
+
transfer?: {
|
|
301
|
+
modes: readonly ("exactDestination" | "exactSource")[];
|
|
302
|
+
} | undefined;
|
|
303
|
+
}, {
|
|
304
|
+
depositAddress?: true | undefined;
|
|
305
|
+
transfer?: {
|
|
306
|
+
modes: readonly ("exactDestination" | "exactSource")[];
|
|
307
|
+
} | undefined;
|
|
308
|
+
}>>;
|
|
309
|
+
providerId: z.ZodMiniString<string>;
|
|
310
|
+
sourceChainId: z.ZodMiniString<string>;
|
|
311
|
+
sourceTokenId: z.ZodMiniString<string>;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
/** Columns of the `funding_routes` table. */
|
|
314
|
+
export type FundingRoute = z.output<typeof FundingRoute>;
|
|
315
|
+
/**
|
|
316
|
+
* A reusable funding deposit address. Public route fields live in `snapshot`;
|
|
317
|
+
* provider routing and correlation remain private.
|
|
318
|
+
*/
|
|
319
|
+
export declare const FundingDepositAddress: z.ZodMiniObject<{
|
|
320
|
+
address: z.ZodMiniString<string>;
|
|
321
|
+
apiKeyId: z.ZodMiniString<string>;
|
|
322
|
+
createdAt: z.ZodMiniString<string>;
|
|
323
|
+
deliveryStrategy: z.ZodMiniCustom<"provider" | "tempo", "provider" | "tempo">;
|
|
324
|
+
destinationTokenKey: z.ZodMiniString<string>;
|
|
325
|
+
environment: z.ZodMiniEnum<{
|
|
326
|
+
production: "production";
|
|
327
|
+
sandbox: "sandbox";
|
|
328
|
+
}>;
|
|
329
|
+
id: z.ZodMiniString<string>;
|
|
330
|
+
lastPolledAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
331
|
+
nextPollAt: z.ZodMiniString<string>;
|
|
332
|
+
orgId: z.ZodMiniString<string>;
|
|
333
|
+
pollFailureCount: z.ZodMiniNumber<number>;
|
|
334
|
+
pollLeaseUntil: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
335
|
+
pollLeaseVersion: z.ZodMiniNumber<number>;
|
|
336
|
+
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
337
|
+
providerOutputToken: z.ZodMiniCustom<{
|
|
338
|
+
address: string;
|
|
339
|
+
currency: string;
|
|
340
|
+
decimals: number;
|
|
341
|
+
name: string;
|
|
342
|
+
standard: string;
|
|
343
|
+
symbol: string;
|
|
344
|
+
tokenKey: string;
|
|
345
|
+
verified: boolean;
|
|
346
|
+
}, {
|
|
347
|
+
address: string;
|
|
348
|
+
currency: string;
|
|
349
|
+
decimals: number;
|
|
350
|
+
name: string;
|
|
351
|
+
standard: string;
|
|
352
|
+
symbol: string;
|
|
353
|
+
tokenKey: string;
|
|
354
|
+
verified: boolean;
|
|
355
|
+
}>;
|
|
356
|
+
providerId: z.ZodMiniString<string>;
|
|
357
|
+
providerRequestIds: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
358
|
+
providerState: z.ZodMiniNullable<z.ZodMiniCustom<funding_DepositAddress.ProviderState, funding_DepositAddress.ProviderState>>;
|
|
359
|
+
recipient: z.ZodMiniString<string>;
|
|
360
|
+
refundAddress: z.ZodMiniString<string>;
|
|
361
|
+
snapshot: z.ZodMiniCustom<{
|
|
362
|
+
address: string;
|
|
363
|
+
destinationChain: {
|
|
364
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
365
|
+
id: string;
|
|
366
|
+
kind: "evm" | "solana" | "tron";
|
|
367
|
+
name: string;
|
|
368
|
+
};
|
|
369
|
+
destinationToken: {
|
|
370
|
+
address: string;
|
|
371
|
+
currency: string;
|
|
372
|
+
decimals: number;
|
|
373
|
+
name: string;
|
|
374
|
+
standard: string;
|
|
375
|
+
symbol: string;
|
|
376
|
+
tokenKey: string;
|
|
377
|
+
verified: boolean;
|
|
378
|
+
};
|
|
379
|
+
provider: {
|
|
380
|
+
id: string;
|
|
381
|
+
name: string;
|
|
382
|
+
};
|
|
383
|
+
recipient: string;
|
|
384
|
+
refundAddress: string;
|
|
385
|
+
sourceChain: {
|
|
386
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
387
|
+
id: string;
|
|
388
|
+
kind: "evm" | "solana" | "tron";
|
|
389
|
+
name: string;
|
|
390
|
+
};
|
|
391
|
+
sourceToken: {
|
|
392
|
+
address: string;
|
|
393
|
+
currency: string;
|
|
394
|
+
decimals: number;
|
|
395
|
+
name: string;
|
|
396
|
+
standard: string;
|
|
397
|
+
symbol: string;
|
|
398
|
+
tokenKey: string;
|
|
399
|
+
verified: boolean;
|
|
400
|
+
};
|
|
401
|
+
subsidize: boolean;
|
|
402
|
+
}, {
|
|
403
|
+
address: string;
|
|
404
|
+
destinationChain: {
|
|
405
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
406
|
+
id: string;
|
|
407
|
+
kind: "evm" | "solana" | "tron";
|
|
408
|
+
name: string;
|
|
409
|
+
};
|
|
410
|
+
destinationToken: {
|
|
411
|
+
address: string;
|
|
412
|
+
currency: string;
|
|
413
|
+
decimals: number;
|
|
414
|
+
name: string;
|
|
415
|
+
standard: string;
|
|
416
|
+
symbol: string;
|
|
417
|
+
tokenKey: string;
|
|
418
|
+
verified: boolean;
|
|
419
|
+
};
|
|
420
|
+
provider: {
|
|
421
|
+
id: string;
|
|
422
|
+
name: string;
|
|
423
|
+
};
|
|
424
|
+
recipient: string;
|
|
425
|
+
refundAddress: string;
|
|
426
|
+
sourceChain: {
|
|
427
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
428
|
+
id: string;
|
|
429
|
+
kind: "evm" | "solana" | "tron";
|
|
430
|
+
name: string;
|
|
431
|
+
};
|
|
432
|
+
sourceToken: {
|
|
433
|
+
address: string;
|
|
434
|
+
currency: string;
|
|
435
|
+
decimals: number;
|
|
436
|
+
name: string;
|
|
437
|
+
standard: string;
|
|
438
|
+
symbol: string;
|
|
439
|
+
tokenKey: string;
|
|
440
|
+
verified: boolean;
|
|
441
|
+
};
|
|
442
|
+
subsidize: boolean;
|
|
443
|
+
}>;
|
|
444
|
+
sourceChainId: z.ZodMiniString<string>;
|
|
445
|
+
sourceTokenKey: z.ZodMiniString<string>;
|
|
446
|
+
status: z.ZodMiniCustom<"action-required" | "active", "action-required" | "active">;
|
|
447
|
+
subsidize: z.ZodMiniBoolean<boolean>;
|
|
448
|
+
updatedAt: z.ZodMiniString<string>;
|
|
449
|
+
version: z.ZodMiniNumber<number>;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
/** Columns of the `funding_deposit_addresses` table. */
|
|
452
|
+
export type FundingDepositAddress = z.output<typeof FundingDepositAddress>;
|
|
453
|
+
/**
|
|
454
|
+
* One provider-observed deposit. Public route and evidence live in `snapshot`;
|
|
455
|
+
* reconciliation and settlement state is private.
|
|
456
|
+
*/
|
|
457
|
+
export declare const FundingDeposit: z.ZodMiniObject<{
|
|
458
|
+
createdAt: z.ZodMiniString<string>;
|
|
459
|
+
depositAddressId: z.ZodMiniString<string>;
|
|
460
|
+
environment: z.ZodMiniEnum<{
|
|
461
|
+
production: "production";
|
|
462
|
+
sandbox: "sandbox";
|
|
463
|
+
}>;
|
|
464
|
+
id: z.ZodMiniString<string>;
|
|
465
|
+
orgId: z.ZodMiniString<string>;
|
|
466
|
+
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
467
|
+
providerOutputAmount: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
468
|
+
baseUnits: string;
|
|
469
|
+
currency: string;
|
|
470
|
+
decimals: number;
|
|
471
|
+
formatted: string;
|
|
472
|
+
}, {
|
|
473
|
+
baseUnits: string;
|
|
474
|
+
currency: string;
|
|
475
|
+
decimals: number;
|
|
476
|
+
formatted: string;
|
|
477
|
+
}>>;
|
|
478
|
+
providerOutputToken: z.ZodMiniCustom<{
|
|
479
|
+
address: string;
|
|
480
|
+
currency: string;
|
|
481
|
+
decimals: number;
|
|
482
|
+
name: string;
|
|
483
|
+
standard: string;
|
|
484
|
+
symbol: string;
|
|
485
|
+
tokenKey: string;
|
|
486
|
+
verified: boolean;
|
|
487
|
+
}, {
|
|
488
|
+
address: string;
|
|
489
|
+
currency: string;
|
|
490
|
+
decimals: number;
|
|
491
|
+
name: string;
|
|
492
|
+
standard: string;
|
|
493
|
+
symbol: string;
|
|
494
|
+
tokenKey: string;
|
|
495
|
+
verified: boolean;
|
|
496
|
+
}>;
|
|
497
|
+
providerRequestId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
498
|
+
providerRequestIds: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
499
|
+
providerState: z.ZodMiniNullable<z.ZodMiniCustom<funding_Deposit.PrivateState, funding_Deposit.PrivateState>>;
|
|
500
|
+
providerTransactionHashes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
501
|
+
providerTransferIndex: z.ZodMiniNumber<number>;
|
|
502
|
+
retryState: z.ZodMiniNullable<z.ZodMiniCustom<funding_Deposit.PrivateState, funding_Deposit.PrivateState>>;
|
|
503
|
+
settlementTransaction: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
504
|
+
settlementTransactionHash: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
505
|
+
snapshot: z.ZodMiniCustom<{
|
|
506
|
+
depositAddressId: string;
|
|
507
|
+
destinationAmount?: {
|
|
508
|
+
baseUnits: string;
|
|
509
|
+
currency: string;
|
|
510
|
+
decimals: number;
|
|
511
|
+
formatted: string;
|
|
512
|
+
} | undefined;
|
|
513
|
+
destinationAmountRequired?: {
|
|
514
|
+
baseUnits: string;
|
|
515
|
+
currency: string;
|
|
516
|
+
decimals: number;
|
|
517
|
+
formatted: string;
|
|
518
|
+
} | undefined;
|
|
519
|
+
destinationChain: {
|
|
520
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
521
|
+
id: string;
|
|
522
|
+
kind: "evm" | "solana" | "tron";
|
|
523
|
+
name: string;
|
|
524
|
+
};
|
|
525
|
+
destinationToken: {
|
|
526
|
+
address: string;
|
|
527
|
+
currency: string;
|
|
528
|
+
decimals: number;
|
|
529
|
+
name: string;
|
|
530
|
+
standard: string;
|
|
531
|
+
symbol: string;
|
|
532
|
+
tokenKey: string;
|
|
533
|
+
verified: boolean;
|
|
534
|
+
};
|
|
535
|
+
destinationTransactionHashes?: readonly string[] | undefined;
|
|
536
|
+
provider: {
|
|
537
|
+
id: string;
|
|
538
|
+
name: string;
|
|
539
|
+
};
|
|
540
|
+
recipient: string;
|
|
541
|
+
refundAddress: string;
|
|
542
|
+
refundAmount?: {
|
|
543
|
+
baseUnits: string;
|
|
544
|
+
currency: string;
|
|
545
|
+
decimals: number;
|
|
546
|
+
formatted: string;
|
|
547
|
+
} | undefined;
|
|
548
|
+
refundTransactionHashes?: readonly string[] | undefined;
|
|
549
|
+
sender?: string | undefined;
|
|
550
|
+
sourceAmount?: {
|
|
551
|
+
baseUnits: string;
|
|
552
|
+
currency: string;
|
|
553
|
+
decimals: number;
|
|
554
|
+
formatted: string;
|
|
555
|
+
} | undefined;
|
|
556
|
+
sourceChain: {
|
|
557
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
558
|
+
id: string;
|
|
559
|
+
kind: "evm" | "solana" | "tron";
|
|
560
|
+
name: string;
|
|
561
|
+
};
|
|
562
|
+
sourceToken: {
|
|
563
|
+
address: string;
|
|
564
|
+
currency: string;
|
|
565
|
+
decimals: number;
|
|
566
|
+
name: string;
|
|
567
|
+
standard: string;
|
|
568
|
+
symbol: string;
|
|
569
|
+
tokenKey: string;
|
|
570
|
+
verified: boolean;
|
|
571
|
+
};
|
|
572
|
+
sourceTransactionHashes: readonly string[];
|
|
573
|
+
}, {
|
|
574
|
+
depositAddressId: string;
|
|
575
|
+
destinationAmount?: {
|
|
576
|
+
baseUnits: string;
|
|
577
|
+
currency: string;
|
|
578
|
+
decimals: number;
|
|
579
|
+
formatted: string;
|
|
580
|
+
} | undefined;
|
|
581
|
+
destinationAmountRequired?: {
|
|
582
|
+
baseUnits: string;
|
|
583
|
+
currency: string;
|
|
584
|
+
decimals: number;
|
|
585
|
+
formatted: string;
|
|
586
|
+
} | undefined;
|
|
587
|
+
destinationChain: {
|
|
588
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
589
|
+
id: string;
|
|
590
|
+
kind: "evm" | "solana" | "tron";
|
|
591
|
+
name: string;
|
|
592
|
+
};
|
|
593
|
+
destinationToken: {
|
|
594
|
+
address: string;
|
|
595
|
+
currency: string;
|
|
596
|
+
decimals: number;
|
|
597
|
+
name: string;
|
|
598
|
+
standard: string;
|
|
599
|
+
symbol: string;
|
|
600
|
+
tokenKey: string;
|
|
601
|
+
verified: boolean;
|
|
602
|
+
};
|
|
603
|
+
destinationTransactionHashes?: readonly string[] | undefined;
|
|
604
|
+
provider: {
|
|
605
|
+
id: string;
|
|
606
|
+
name: string;
|
|
607
|
+
};
|
|
608
|
+
recipient: string;
|
|
609
|
+
refundAddress: string;
|
|
610
|
+
refundAmount?: {
|
|
611
|
+
baseUnits: string;
|
|
612
|
+
currency: string;
|
|
613
|
+
decimals: number;
|
|
614
|
+
formatted: string;
|
|
615
|
+
} | undefined;
|
|
616
|
+
refundTransactionHashes?: readonly string[] | undefined;
|
|
617
|
+
sender?: string | undefined;
|
|
618
|
+
sourceAmount?: {
|
|
619
|
+
baseUnits: string;
|
|
620
|
+
currency: string;
|
|
621
|
+
decimals: number;
|
|
622
|
+
formatted: string;
|
|
623
|
+
} | undefined;
|
|
624
|
+
sourceChain: {
|
|
625
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
626
|
+
id: string;
|
|
627
|
+
kind: "evm" | "solana" | "tron";
|
|
628
|
+
name: string;
|
|
629
|
+
};
|
|
630
|
+
sourceToken: {
|
|
631
|
+
address: string;
|
|
632
|
+
currency: string;
|
|
633
|
+
decimals: number;
|
|
634
|
+
name: string;
|
|
635
|
+
standard: string;
|
|
636
|
+
symbol: string;
|
|
637
|
+
tokenKey: string;
|
|
638
|
+
verified: boolean;
|
|
639
|
+
};
|
|
640
|
+
sourceTransactionHashes: readonly string[];
|
|
641
|
+
}>;
|
|
642
|
+
sourceChainId: z.ZodMiniString<string>;
|
|
643
|
+
sourceTransactionHash: z.ZodMiniString<string>;
|
|
644
|
+
sourceTransferIndex: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
645
|
+
status: z.ZodMiniCustom<"action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling", "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling">;
|
|
646
|
+
statusReason: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
647
|
+
code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
648
|
+
message: string;
|
|
649
|
+
}, {
|
|
650
|
+
code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
651
|
+
message: string;
|
|
652
|
+
}>>;
|
|
653
|
+
subsidyAmount: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
654
|
+
baseUnits: string;
|
|
655
|
+
currency: string;
|
|
656
|
+
decimals: number;
|
|
657
|
+
formatted: string;
|
|
658
|
+
}, {
|
|
659
|
+
baseUnits: string;
|
|
660
|
+
currency: string;
|
|
661
|
+
decimals: number;
|
|
662
|
+
formatted: string;
|
|
663
|
+
}>>;
|
|
664
|
+
tempoGasPaid: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
665
|
+
updatedAt: z.ZodMiniString<string>;
|
|
666
|
+
version: z.ZodMiniNumber<number>;
|
|
667
|
+
}, z.core.$strip>;
|
|
668
|
+
/** Columns of the `funding_deposits` table. */
|
|
669
|
+
export type FundingDeposit = z.output<typeof FundingDeposit>;
|
|
670
|
+
/**
|
|
671
|
+
* A durable funding transfer. Lifecycle state lives in typed columns; the
|
|
672
|
+
* public quote terms and reconciled fields live in the `snapshot` jsonb and
|
|
673
|
+
* merge in at serialization (`Transfer.toPublic`).
|
|
674
|
+
*/
|
|
675
|
+
export declare const FundingTransfer: z.ZodMiniObject<{
|
|
676
|
+
apiKeyId: z.ZodMiniString<string>;
|
|
677
|
+
createdAt: z.ZodMiniString<string>;
|
|
678
|
+
environment: z.ZodMiniEnum<{
|
|
679
|
+
production: "production";
|
|
680
|
+
sandbox: "sandbox";
|
|
681
|
+
}>;
|
|
682
|
+
id: z.ZodMiniString<string>;
|
|
683
|
+
method: z.ZodMiniCustom<"depositAddress" | "transaction", "depositAddress" | "transaction">;
|
|
684
|
+
mode: z.ZodMiniCustom<"exactDestination" | "exactSource", "exactDestination" | "exactSource">;
|
|
685
|
+
orgId: z.ZodMiniString<string>;
|
|
686
|
+
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
687
|
+
providerId: z.ZodMiniString<string>;
|
|
688
|
+
providerState: z.ZodMiniNullable<z.ZodMiniCustom<funding_Provider.prepareTransfer.Correlation, funding_Provider.prepareTransfer.Correlation>>;
|
|
689
|
+
quoteExpiresAt: z.ZodMiniString<string>;
|
|
690
|
+
snapshot: z.ZodMiniCustom<{
|
|
691
|
+
destinationAmount?: {
|
|
692
|
+
baseUnits: string;
|
|
693
|
+
currency: string;
|
|
694
|
+
decimals: number;
|
|
695
|
+
formatted: string;
|
|
696
|
+
} | undefined;
|
|
697
|
+
destinationAmountMin?: {
|
|
698
|
+
baseUnits: string;
|
|
699
|
+
currency: string;
|
|
700
|
+
decimals: number;
|
|
701
|
+
formatted: string;
|
|
702
|
+
} | undefined;
|
|
703
|
+
destinationChain: {
|
|
704
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
705
|
+
id: string;
|
|
706
|
+
kind: "evm" | "solana" | "tron";
|
|
707
|
+
name: string;
|
|
708
|
+
};
|
|
709
|
+
destinationToken: {
|
|
710
|
+
address: string;
|
|
711
|
+
currency: string;
|
|
712
|
+
decimals: number;
|
|
713
|
+
name: string;
|
|
714
|
+
standard: string;
|
|
715
|
+
symbol: string;
|
|
716
|
+
tokenKey: string;
|
|
717
|
+
verified: boolean;
|
|
718
|
+
};
|
|
719
|
+
destinationTransactionHashes?: string[] | undefined;
|
|
720
|
+
fees: {
|
|
721
|
+
amount: {
|
|
722
|
+
baseUnits: string;
|
|
723
|
+
currency: string;
|
|
724
|
+
decimals: number;
|
|
725
|
+
formatted: string;
|
|
726
|
+
};
|
|
727
|
+
side: "destination" | "source";
|
|
728
|
+
token: {
|
|
729
|
+
address: string;
|
|
730
|
+
currency: string;
|
|
731
|
+
decimals: number;
|
|
732
|
+
name: string;
|
|
733
|
+
standard: string;
|
|
734
|
+
symbol: string;
|
|
735
|
+
tokenKey: string;
|
|
736
|
+
verified: boolean;
|
|
737
|
+
};
|
|
738
|
+
type: "provider";
|
|
739
|
+
}[];
|
|
740
|
+
method: "depositAddress" | "transaction";
|
|
741
|
+
mode: "exactDestination" | "exactSource";
|
|
742
|
+
provider: {
|
|
743
|
+
id: string;
|
|
744
|
+
name: string;
|
|
745
|
+
};
|
|
746
|
+
quote: {
|
|
747
|
+
expiresAt: string;
|
|
748
|
+
sampledAt: string;
|
|
749
|
+
};
|
|
750
|
+
recipient: string;
|
|
751
|
+
refundAddress?: string | undefined;
|
|
752
|
+
refundAmount?: {
|
|
753
|
+
baseUnits: string;
|
|
754
|
+
currency: string;
|
|
755
|
+
decimals: number;
|
|
756
|
+
formatted: string;
|
|
757
|
+
} | undefined;
|
|
758
|
+
refundTransactionHashes?: string[] | undefined;
|
|
759
|
+
sender?: string | undefined;
|
|
760
|
+
sourceAmount: {
|
|
761
|
+
baseUnits: string;
|
|
762
|
+
currency: string;
|
|
763
|
+
decimals: number;
|
|
764
|
+
formatted: string;
|
|
765
|
+
};
|
|
766
|
+
sourceAmountMax?: {
|
|
767
|
+
baseUnits: string;
|
|
768
|
+
currency: string;
|
|
769
|
+
decimals: number;
|
|
770
|
+
formatted: string;
|
|
771
|
+
} | undefined;
|
|
772
|
+
sourceChain: {
|
|
773
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
774
|
+
id: string;
|
|
775
|
+
kind: "evm" | "solana" | "tron";
|
|
776
|
+
name: string;
|
|
777
|
+
};
|
|
778
|
+
sourceToken: {
|
|
779
|
+
address: string;
|
|
780
|
+
currency: string;
|
|
781
|
+
decimals: number;
|
|
782
|
+
name: string;
|
|
783
|
+
standard: string;
|
|
784
|
+
symbol: string;
|
|
785
|
+
tokenKey: string;
|
|
786
|
+
verified: boolean;
|
|
787
|
+
};
|
|
788
|
+
sourceTransactionHashes?: string[] | undefined;
|
|
789
|
+
}, {
|
|
790
|
+
destinationAmount?: {
|
|
791
|
+
baseUnits: string;
|
|
792
|
+
currency: string;
|
|
793
|
+
decimals: number;
|
|
794
|
+
formatted: string;
|
|
795
|
+
} | undefined;
|
|
796
|
+
destinationAmountMin?: {
|
|
797
|
+
baseUnits: string;
|
|
798
|
+
currency: string;
|
|
799
|
+
decimals: number;
|
|
800
|
+
formatted: string;
|
|
801
|
+
} | undefined;
|
|
802
|
+
destinationChain: {
|
|
803
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
804
|
+
id: string;
|
|
805
|
+
kind: "evm" | "solana" | "tron";
|
|
806
|
+
name: string;
|
|
807
|
+
};
|
|
808
|
+
destinationToken: {
|
|
809
|
+
address: string;
|
|
810
|
+
currency: string;
|
|
811
|
+
decimals: number;
|
|
812
|
+
name: string;
|
|
813
|
+
standard: string;
|
|
814
|
+
symbol: string;
|
|
815
|
+
tokenKey: string;
|
|
816
|
+
verified: boolean;
|
|
817
|
+
};
|
|
818
|
+
destinationTransactionHashes?: string[] | undefined;
|
|
819
|
+
fees: {
|
|
820
|
+
amount: {
|
|
821
|
+
baseUnits: string;
|
|
822
|
+
currency: string;
|
|
823
|
+
decimals: number;
|
|
824
|
+
formatted: string;
|
|
825
|
+
};
|
|
826
|
+
side: "destination" | "source";
|
|
827
|
+
token: {
|
|
828
|
+
address: string;
|
|
829
|
+
currency: string;
|
|
830
|
+
decimals: number;
|
|
831
|
+
name: string;
|
|
832
|
+
standard: string;
|
|
833
|
+
symbol: string;
|
|
834
|
+
tokenKey: string;
|
|
835
|
+
verified: boolean;
|
|
836
|
+
};
|
|
837
|
+
type: "provider";
|
|
838
|
+
}[];
|
|
839
|
+
method: "depositAddress" | "transaction";
|
|
840
|
+
mode: "exactDestination" | "exactSource";
|
|
841
|
+
provider: {
|
|
842
|
+
id: string;
|
|
843
|
+
name: string;
|
|
844
|
+
};
|
|
845
|
+
quote: {
|
|
846
|
+
expiresAt: string;
|
|
847
|
+
sampledAt: string;
|
|
848
|
+
};
|
|
849
|
+
recipient: string;
|
|
850
|
+
refundAddress?: string | undefined;
|
|
851
|
+
refundAmount?: {
|
|
852
|
+
baseUnits: string;
|
|
853
|
+
currency: string;
|
|
854
|
+
decimals: number;
|
|
855
|
+
formatted: string;
|
|
856
|
+
} | undefined;
|
|
857
|
+
refundTransactionHashes?: string[] | undefined;
|
|
858
|
+
sender?: string | undefined;
|
|
859
|
+
sourceAmount: {
|
|
860
|
+
baseUnits: string;
|
|
861
|
+
currency: string;
|
|
862
|
+
decimals: number;
|
|
863
|
+
formatted: string;
|
|
864
|
+
};
|
|
865
|
+
sourceAmountMax?: {
|
|
866
|
+
baseUnits: string;
|
|
867
|
+
currency: string;
|
|
868
|
+
decimals: number;
|
|
869
|
+
formatted: string;
|
|
870
|
+
} | undefined;
|
|
871
|
+
sourceChain: {
|
|
872
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
873
|
+
id: string;
|
|
874
|
+
kind: "evm" | "solana" | "tron";
|
|
875
|
+
name: string;
|
|
876
|
+
};
|
|
877
|
+
sourceToken: {
|
|
878
|
+
address: string;
|
|
879
|
+
currency: string;
|
|
880
|
+
decimals: number;
|
|
881
|
+
name: string;
|
|
882
|
+
standard: string;
|
|
883
|
+
symbol: string;
|
|
884
|
+
tokenKey: string;
|
|
885
|
+
verified: boolean;
|
|
886
|
+
};
|
|
887
|
+
sourceTransactionHashes?: string[] | undefined;
|
|
888
|
+
}>;
|
|
889
|
+
status: z.ZodMiniCustom<"action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding", "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding">;
|
|
890
|
+
statusReason: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
891
|
+
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";
|
|
892
|
+
message: string;
|
|
893
|
+
}, {
|
|
894
|
+
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";
|
|
895
|
+
message: string;
|
|
896
|
+
}>>;
|
|
897
|
+
updatedAt: z.ZodMiniString<string>;
|
|
898
|
+
version: z.ZodMiniNumber<number>;
|
|
899
|
+
}, z.core.$strip>;
|
|
900
|
+
/** Columns of the `funding_transfers` table. */
|
|
901
|
+
export type FundingTransfer = z.output<typeof FundingTransfer>;
|
|
902
|
+
/** One immutable public snapshot of a funding transfer at a material version. */
|
|
903
|
+
export declare const FundingTransferEvent: z.ZodMiniObject<{
|
|
904
|
+
createdAt: z.ZodMiniString<string>;
|
|
905
|
+
snapshot: z.ZodMiniCustom<{
|
|
906
|
+
createdAt: string;
|
|
907
|
+
destinationAmount?: {
|
|
908
|
+
baseUnits: string;
|
|
909
|
+
currency: string;
|
|
910
|
+
decimals: number;
|
|
911
|
+
formatted: string;
|
|
912
|
+
} | undefined;
|
|
913
|
+
destinationAmountMin?: {
|
|
914
|
+
baseUnits: string;
|
|
915
|
+
currency: string;
|
|
916
|
+
decimals: number;
|
|
917
|
+
formatted: string;
|
|
918
|
+
} | undefined;
|
|
919
|
+
destinationChain: {
|
|
920
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
921
|
+
id: string;
|
|
922
|
+
kind: "evm" | "solana" | "tron";
|
|
923
|
+
name: string;
|
|
924
|
+
};
|
|
925
|
+
destinationToken: {
|
|
926
|
+
address: string;
|
|
927
|
+
currency: string;
|
|
928
|
+
decimals: number;
|
|
929
|
+
name: string;
|
|
930
|
+
standard: string;
|
|
931
|
+
symbol: string;
|
|
932
|
+
tokenKey: string;
|
|
933
|
+
verified: boolean;
|
|
934
|
+
};
|
|
935
|
+
destinationTransactionHashes?: string[] | undefined;
|
|
936
|
+
fees: {
|
|
937
|
+
amount: {
|
|
938
|
+
baseUnits: string;
|
|
939
|
+
currency: string;
|
|
940
|
+
decimals: number;
|
|
941
|
+
formatted: string;
|
|
942
|
+
};
|
|
943
|
+
side: "destination" | "source";
|
|
944
|
+
token: {
|
|
945
|
+
address: string;
|
|
946
|
+
currency: string;
|
|
947
|
+
decimals: number;
|
|
948
|
+
name: string;
|
|
949
|
+
standard: string;
|
|
950
|
+
symbol: string;
|
|
951
|
+
tokenKey: string;
|
|
952
|
+
verified: boolean;
|
|
953
|
+
};
|
|
954
|
+
type: "provider";
|
|
955
|
+
}[];
|
|
956
|
+
id: string;
|
|
957
|
+
method: "depositAddress" | "transaction";
|
|
958
|
+
mode: "exactDestination" | "exactSource";
|
|
959
|
+
provider: {
|
|
960
|
+
id: string;
|
|
961
|
+
name: string;
|
|
962
|
+
};
|
|
963
|
+
quote: {
|
|
964
|
+
expiresAt: string;
|
|
965
|
+
sampledAt: string;
|
|
966
|
+
};
|
|
967
|
+
recipient: string;
|
|
968
|
+
refundAddress?: string | undefined;
|
|
969
|
+
refundAmount?: {
|
|
970
|
+
baseUnits: string;
|
|
971
|
+
currency: string;
|
|
972
|
+
decimals: number;
|
|
973
|
+
formatted: string;
|
|
974
|
+
} | undefined;
|
|
975
|
+
refundTransactionHashes?: string[] | undefined;
|
|
976
|
+
sender?: string | undefined;
|
|
977
|
+
sourceAmount: {
|
|
978
|
+
baseUnits: string;
|
|
979
|
+
currency: string;
|
|
980
|
+
decimals: number;
|
|
981
|
+
formatted: string;
|
|
982
|
+
};
|
|
983
|
+
sourceAmountMax?: {
|
|
984
|
+
baseUnits: string;
|
|
985
|
+
currency: string;
|
|
986
|
+
decimals: number;
|
|
987
|
+
formatted: string;
|
|
988
|
+
} | undefined;
|
|
989
|
+
sourceChain: {
|
|
990
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
991
|
+
id: string;
|
|
992
|
+
kind: "evm" | "solana" | "tron";
|
|
993
|
+
name: string;
|
|
994
|
+
};
|
|
995
|
+
sourceToken: {
|
|
996
|
+
address: string;
|
|
997
|
+
currency: string;
|
|
998
|
+
decimals: number;
|
|
999
|
+
name: string;
|
|
1000
|
+
standard: string;
|
|
1001
|
+
symbol: string;
|
|
1002
|
+
tokenKey: string;
|
|
1003
|
+
verified: boolean;
|
|
1004
|
+
};
|
|
1005
|
+
sourceTransactionHashes?: string[] | undefined;
|
|
1006
|
+
status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
|
|
1007
|
+
statusReason?: {
|
|
1008
|
+
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";
|
|
1009
|
+
message: string;
|
|
1010
|
+
} | undefined;
|
|
1011
|
+
updatedAt: string;
|
|
1012
|
+
version: number;
|
|
1013
|
+
}, {
|
|
1014
|
+
createdAt: string;
|
|
1015
|
+
destinationAmount?: {
|
|
1016
|
+
baseUnits: string;
|
|
1017
|
+
currency: string;
|
|
1018
|
+
decimals: number;
|
|
1019
|
+
formatted: string;
|
|
1020
|
+
} | undefined;
|
|
1021
|
+
destinationAmountMin?: {
|
|
1022
|
+
baseUnits: string;
|
|
1023
|
+
currency: string;
|
|
1024
|
+
decimals: number;
|
|
1025
|
+
formatted: string;
|
|
1026
|
+
} | undefined;
|
|
1027
|
+
destinationChain: {
|
|
1028
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
1029
|
+
id: string;
|
|
1030
|
+
kind: "evm" | "solana" | "tron";
|
|
1031
|
+
name: string;
|
|
1032
|
+
};
|
|
1033
|
+
destinationToken: {
|
|
1034
|
+
address: string;
|
|
1035
|
+
currency: string;
|
|
1036
|
+
decimals: number;
|
|
1037
|
+
name: string;
|
|
1038
|
+
standard: string;
|
|
1039
|
+
symbol: string;
|
|
1040
|
+
tokenKey: string;
|
|
1041
|
+
verified: boolean;
|
|
1042
|
+
};
|
|
1043
|
+
destinationTransactionHashes?: string[] | undefined;
|
|
1044
|
+
fees: {
|
|
1045
|
+
amount: {
|
|
1046
|
+
baseUnits: string;
|
|
1047
|
+
currency: string;
|
|
1048
|
+
decimals: number;
|
|
1049
|
+
formatted: string;
|
|
1050
|
+
};
|
|
1051
|
+
side: "destination" | "source";
|
|
1052
|
+
token: {
|
|
1053
|
+
address: string;
|
|
1054
|
+
currency: string;
|
|
1055
|
+
decimals: number;
|
|
1056
|
+
name: string;
|
|
1057
|
+
standard: string;
|
|
1058
|
+
symbol: string;
|
|
1059
|
+
tokenKey: string;
|
|
1060
|
+
verified: boolean;
|
|
1061
|
+
};
|
|
1062
|
+
type: "provider";
|
|
1063
|
+
}[];
|
|
1064
|
+
id: string;
|
|
1065
|
+
method: "depositAddress" | "transaction";
|
|
1066
|
+
mode: "exactDestination" | "exactSource";
|
|
1067
|
+
provider: {
|
|
1068
|
+
id: string;
|
|
1069
|
+
name: string;
|
|
1070
|
+
};
|
|
1071
|
+
quote: {
|
|
1072
|
+
expiresAt: string;
|
|
1073
|
+
sampledAt: string;
|
|
1074
|
+
};
|
|
1075
|
+
recipient: string;
|
|
1076
|
+
refundAddress?: string | undefined;
|
|
1077
|
+
refundAmount?: {
|
|
1078
|
+
baseUnits: string;
|
|
1079
|
+
currency: string;
|
|
1080
|
+
decimals: number;
|
|
1081
|
+
formatted: string;
|
|
1082
|
+
} | undefined;
|
|
1083
|
+
refundTransactionHashes?: string[] | undefined;
|
|
1084
|
+
sender?: string | undefined;
|
|
1085
|
+
sourceAmount: {
|
|
1086
|
+
baseUnits: string;
|
|
1087
|
+
currency: string;
|
|
1088
|
+
decimals: number;
|
|
1089
|
+
formatted: string;
|
|
1090
|
+
};
|
|
1091
|
+
sourceAmountMax?: {
|
|
1092
|
+
baseUnits: string;
|
|
1093
|
+
currency: string;
|
|
1094
|
+
decimals: number;
|
|
1095
|
+
formatted: string;
|
|
1096
|
+
} | undefined;
|
|
1097
|
+
sourceChain: {
|
|
1098
|
+
addressFormat: "base58" | "base58check" | "hex";
|
|
1099
|
+
id: string;
|
|
1100
|
+
kind: "evm" | "solana" | "tron";
|
|
1101
|
+
name: string;
|
|
1102
|
+
};
|
|
1103
|
+
sourceToken: {
|
|
1104
|
+
address: string;
|
|
1105
|
+
currency: string;
|
|
1106
|
+
decimals: number;
|
|
1107
|
+
name: string;
|
|
1108
|
+
standard: string;
|
|
1109
|
+
symbol: string;
|
|
1110
|
+
tokenKey: string;
|
|
1111
|
+
verified: boolean;
|
|
1112
|
+
};
|
|
1113
|
+
sourceTransactionHashes?: string[] | undefined;
|
|
1114
|
+
status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
|
|
1115
|
+
statusReason?: {
|
|
1116
|
+
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";
|
|
1117
|
+
message: string;
|
|
1118
|
+
} | undefined;
|
|
1119
|
+
updatedAt: string;
|
|
1120
|
+
version: number;
|
|
1121
|
+
}>;
|
|
1122
|
+
status: z.ZodMiniCustom<"action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding", "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding">;
|
|
1123
|
+
transferId: z.ZodMiniString<string>;
|
|
1124
|
+
version: z.ZodMiniNumber<number>;
|
|
1125
|
+
}, z.core.$strip>;
|
|
1126
|
+
/** Columns of the `funding_transfer_events` table. */
|
|
1127
|
+
export type FundingTransferEvent = z.output<typeof FundingTransferEvent>;
|
|
1128
|
+
/** One verified transaction reference associated with a funding transfer. */
|
|
1129
|
+
export declare const FundingTransferTransaction: z.ZodMiniObject<{
|
|
1130
|
+
chainId: z.ZodMiniString<string>;
|
|
1131
|
+
createdAt: z.ZodMiniString<string>;
|
|
1132
|
+
role: z.ZodMiniCustom<"destination" | "refund" | "source", "destination" | "refund" | "source">;
|
|
1133
|
+
transactionRef: z.ZodMiniString<string>;
|
|
1134
|
+
transferId: z.ZodMiniString<string>;
|
|
1135
|
+
}, z.core.$strip>;
|
|
1136
|
+
/** Columns of the `funding_transfer_transactions` table. */
|
|
1137
|
+
export type FundingTransferTransaction = z.output<typeof FundingTransferTransaction>;
|
|
1138
|
+
/**
|
|
1139
|
+
* An API-key-scoped idempotency claim for funding resource creation. The row
|
|
1140
|
+
* retains recovery checkpoints and completed responses until `expiresAt`.
|
|
1141
|
+
*/
|
|
1142
|
+
export declare const FundingIdempotencyRequest: z.ZodMiniObject<{
|
|
1143
|
+
apiKeyId: z.ZodMiniString<string>;
|
|
1144
|
+
createdAt: z.ZodMiniString<string>;
|
|
1145
|
+
expiresAt: z.ZodMiniString<string>;
|
|
1146
|
+
keyHash: z.ZodMiniString<string>;
|
|
1147
|
+
requestHash: z.ZodMiniString<string>;
|
|
1148
|
+
response: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1149
|
+
status: z.ZodMiniEnum<{
|
|
1150
|
+
completed: "completed";
|
|
1151
|
+
pending: "pending";
|
|
1152
|
+
provisioned: "provisioned";
|
|
1153
|
+
}>;
|
|
1154
|
+
transferId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1155
|
+
}, z.core.$strip>;
|
|
1156
|
+
/** Columns of the `funding_idempotency_requests` table. */
|
|
1157
|
+
export type FundingIdempotencyRequest = z.output<typeof FundingIdempotencyRequest>;
|
|
238
1158
|
/**
|
|
239
1159
|
* A verified token: one row per curated token, ordered by `position` (list
|
|
240
1160
|
* order is canonical and surfaced to clients). Addresses are stored lowercase;
|