tapimo 0.19.0 → 0.20.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 +13 -5
- package/dist/ApiKey.d.ts +2 -2
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/ApiKey.js +2 -2
- package/dist/ApiKey.js.map +1 -1
- package/dist/ApiKeys.d.ts +85 -11
- package/dist/ApiKeys.d.ts.map +1 -1
- package/dist/ApiKeys.js +218 -56
- package/dist/ApiKeys.js.map +1 -1
- package/dist/App.d.ts +12543 -13912
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +4 -5
- package/dist/App.js.map +1 -1
- package/dist/Scope.d.ts +12 -20
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +20 -36
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +871 -828
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +14 -26
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +93 -186
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +3 -5
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/audit-logs.d.ts +18 -18
- package/dist/admin/apps/audit-logs.js +1 -1
- package/dist/admin/apps/audit-logs.js.map +1 -1
- package/dist/admin/apps/earn-vaults.d.ts +27 -27
- package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
- package/dist/admin/apps/earn-vaults.js +11 -5
- package/dist/admin/apps/earn-vaults.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts +17 -17
- package/dist/admin/apps/prop-amms.d.ts +4 -4
- package/dist/admin/apps/routes-support.js +1 -38
- package/dist/admin/apps/routes-support.js.map +1 -1
- package/dist/admin/apps/routes.d.ts +153 -153
- package/dist/admin/apps/sentinel.d.ts +4 -4
- package/dist/admin/apps/verified-tokens.d.ts +24 -24
- package/dist/admin/apps/zone-delegation-requests.d.ts +332 -0
- package/dist/admin/apps/zone-delegation-requests.d.ts.map +1 -0
- package/dist/admin/apps/zone-delegation-requests.js +200 -0
- package/dist/admin/apps/zone-delegation-requests.js.map +1 -0
- package/dist/admin/apps/zone-delegations.d.ts +512 -52
- package/dist/admin/apps/zone-delegations.d.ts.map +1 -1
- package/dist/admin/apps/zone-delegations.js +134 -44
- package/dist/admin/apps/zone-delegations.js.map +1 -1
- package/dist/admin/index.d.ts +1 -1
- package/dist/admin/index.d.ts.map +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.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 +341 -397
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +4 -2
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/apps/data/App.d.ts +11932 -13214
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +32 -13
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/ZoneSelection.d.ts +1 -1
- package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
- package/dist/apps/data/ZoneSelection.js +2 -2
- package/dist/apps/data/ZoneSelection.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +60 -27
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +91 -16
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +893 -875
- package/dist/apps/data/routes/addresses.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +36 -36
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +3 -1
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +40 -40
- package/dist/apps/data/routes/blocks.d.ts.map +1 -1
- package/dist/apps/data/routes/blocks.js +3 -7
- package/dist/apps/data/routes/blocks.js.map +1 -1
- package/dist/apps/data/routes/coingecko.d.ts +236 -236
- package/dist/apps/data/routes/earn-transactions.d.ts +14 -14
- package/dist/apps/data/routes/earn.d.ts +261 -1445
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +64 -490
- package/dist/apps/data/routes/earn.js.map +1 -1
- package/dist/apps/data/routes/exchanges.d.ts +144 -144
- package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
- package/dist/apps/data/routes/exchanges.js +5 -15
- 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 +3 -9
- package/dist/apps/data/routes/fee-amm.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +13 -13
- package/dist/apps/data/routes/receipts.d.ts +53 -53
- package/dist/apps/data/routes/receipts.js +1 -1
- package/dist/apps/data/routes/receipts.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts +52 -0
- package/dist/apps/data/routes/rpc.d.ts.map +1 -1
- package/dist/apps/data/routes/rpc.js +19 -18
- package/dist/apps/data/routes/rpc.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +14 -14
- package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
- package/dist/apps/data/routes/tokenlist.js +1 -3
- package/dist/apps/data/routes/tokenlist.js.map +1 -1
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +7 -5
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transactions.d.ts +281 -281
- package/dist/apps/data/routes/transactions.js +3 -3
- package/dist/apps/data/routes/transactions.js.map +1 -1
- package/dist/apps/data/routes/transfers.d.ts +12 -12
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +1 -3
- 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/valuation.d.ts.map +1 -1
- package/dist/apps/data/routes/valuation.js +1 -3
- package/dist/apps/data/routes/valuation.js.map +1 -1
- package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
- package/dist/apps/data/routes/webhooks.d.ts +102 -102
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +9 -23
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/data/routes/zone-deposits.d.ts +16 -16
- package/dist/apps/data/routes/zone-withdrawals.d.ts +31 -31
- package/dist/apps/data/routes/zones.d.ts +28 -28
- package/dist/apps/management/App.d.ts +18 -102
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +1 -1
- package/dist/apps/management/App.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +253 -339
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +25 -11
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +92 -92
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +5 -13
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/cli.d.ts.map +1 -1
- package/dist/apps/management/routes/cli.js +3 -9
- package/dist/apps/management/routes/cli.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +16 -16
- package/dist/apps/management/routes/fee-payer-usage.d.ts +38 -38
- package/dist/apps/management/routes/fee-payer-usage.d.ts.map +1 -1
- package/dist/apps/management/routes/fee-payer-usage.js +2 -4
- package/dist/apps/management/routes/fee-payer-usage.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +52 -52
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +4 -12
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
- package/dist/apps/management/routes/invite-links.js +6 -14
- package/dist/apps/management/routes/invite-links.js.map +1 -1
- package/dist/apps/management/routes/me.d.ts +6 -6
- package/dist/apps/management/routes/me.d.ts.map +1 -1
- package/dist/apps/management/routes/me.js +3 -7
- package/dist/apps/management/routes/me.js.map +1 -1
- package/dist/apps/management/routes/members.d.ts +84 -84
- package/dist/apps/management/routes/members.d.ts.map +1 -1
- package/dist/apps/management/routes/members.js +2 -4
- package/dist/apps/management/routes/members.js.map +1 -1
- package/dist/apps/management/routes/orgs.d.ts +44 -44
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +2 -6
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts.map +1 -1
- package/dist/apps/management/routes/projects.js +2 -6
- package/dist/apps/management/routes/projects.js.map +1 -1
- package/dist/apps/management/routes/route-usage.d.ts +34 -34
- package/dist/apps/management/routes/route-usage.d.ts.map +1 -1
- package/dist/apps/management/routes/route-usage.js +2 -4
- package/dist/apps/management/routes/route-usage.js.map +1 -1
- package/dist/apps/management/routes/routes-access-requests.d.ts +120 -91
- package/dist/apps/management/routes/routes-access-requests.d.ts.map +1 -1
- package/dist/apps/management/routes/routes-access-requests.js +49 -9
- package/dist/apps/management/routes/routes-access-requests.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts.map +1 -1
- package/dist/apps/management/routes/usage.js +8 -16
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.d.ts +39 -39
- package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.js +3 -7
- package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
- package/dist/apps/management/routes/webhooks.d.ts +2089 -2089
- package/dist/apps/management/routes/zone-delegations.d.ts +14 -17
- package/dist/apps/management/routes/zone-delegations.d.ts.map +1 -1
- package/dist/apps/management/routes/zone-delegations.js +1 -6
- package/dist/apps/management/routes/zone-delegations.js.map +1 -1
- package/dist/apps/mpp/App.d.ts +44 -44
- package/dist/apps/mpp/App.js +3 -3
- package/dist/apps/mpp/App.js.map +1 -1
- package/dist/apps/mpp/internal/Adapter.js +1 -1
- package/dist/apps/mpp/internal/Adapter.js.map +1 -1
- package/dist/apps/mpp/internal/Error.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Error.js +1 -0
- package/dist/apps/mpp/internal/Error.js.map +1 -1
- package/dist/apps/mpp/internal/Policy.d.ts +5 -1
- package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Policy.js +35 -13
- package/dist/apps/mpp/internal/Policy.js.map +1 -1
- package/dist/apps/relay/App.d.ts +2 -2
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +25 -16
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/apps/routes/App.d.ts +311 -311
- package/dist/apps/routes/routes/deposit-addresses.d.ts +1099 -1099
- package/dist/apps/routes/routes/list.d.ts +74 -74
- package/dist/apps/routes/routes/transfers.d.ts +94 -94
- package/dist/cli/ApiKeys.d.ts +19 -26
- package/dist/cli/ApiKeys.d.ts.map +1 -1
- package/dist/db/Db.d.ts +3 -3
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +27 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +28 -62
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +18 -18
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/rewardRuns.d.ts +21 -0
- package/dist/db/tables/rewardRuns.d.ts.map +1 -1
- package/dist/db/tables/rewardRuns.js +19 -0
- package/dist/db/tables/rewardRuns.js.map +1 -1
- package/dist/db/tables/routesAccessRequests.d.ts +13 -0
- package/dist/db/tables/routesAccessRequests.d.ts.map +1 -1
- package/dist/db/tables/routesAccessRequests.js +12 -0
- package/dist/db/tables/routesAccessRequests.js.map +1 -1
- package/dist/db/tables/zoneDelegationRequests.d.ts +165 -0
- package/dist/db/tables/zoneDelegationRequests.d.ts.map +1 -0
- package/dist/db/tables/{zoneKeyRequests.js → zoneDelegationRequests.js} +43 -42
- package/dist/db/tables/zoneDelegationRequests.js.map +1 -0
- package/dist/db/tables/zoneDelegations.d.ts +11 -5
- package/dist/db/tables/zoneDelegations.d.ts.map +1 -1
- package/dist/db/tables/zoneDelegations.js +21 -3
- package/dist/db/tables/zoneDelegations.js.map +1 -1
- package/dist/handlers/internal/accounts.d.ts +7 -0
- package/dist/handlers/internal/accounts.d.ts.map +1 -0
- package/dist/handlers/internal/{multisig.js → accounts.js} +10 -10
- package/dist/handlers/internal/{multisig.js.map → accounts.js.map} +1 -1
- package/dist/handlers/internal/sponsorship.js +17 -17
- package/dist/handlers/internal/sponsorship.js.map +1 -1
- package/dist/handlers/relay.d.ts +6 -6
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +15 -15
- package/dist/handlers/relay.js.map +1 -1
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +4 -8
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/EarnRates.d.ts.map +1 -1
- package/dist/internal/EarnRates.js +1 -3
- package/dist/internal/EarnRates.js.map +1 -1
- package/dist/internal/EarnVaults.js +2 -2
- package/dist/internal/Log.d.ts +2 -4
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +0 -3
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/Response.d.ts +1 -1
- package/dist/internal/Response.d.ts.map +1 -1
- package/dist/internal/Response.js +0 -3
- package/dist/internal/Response.js.map +1 -1
- package/dist/internal/Schema.d.ts +11 -0
- package/dist/internal/Schema.d.ts.map +1 -1
- package/dist/internal/Schema.js +24 -1
- package/dist/internal/Schema.js.map +1 -1
- package/dist/internal/ZoneAccess.d.ts +70 -35
- package/dist/internal/ZoneAccess.d.ts.map +1 -1
- package/dist/internal/ZoneAccess.js +312 -131
- package/dist/internal/ZoneAccess.js.map +1 -1
- package/dist/internal/ZoneDelegation.d.ts +7 -19
- package/dist/internal/ZoneDelegation.d.ts.map +1 -1
- package/dist/internal/ZoneDelegation.js +8 -29
- package/dist/internal/ZoneDelegation.js.map +1 -1
- package/dist/internal/{ZoneKeyApproval.d.ts → ZoneDelegationApproval.d.ts} +3 -5
- package/dist/internal/ZoneDelegationApproval.d.ts.map +1 -0
- package/dist/internal/ZoneDelegationApproval.js +16 -0
- package/dist/internal/ZoneDelegationApproval.js.map +1 -0
- package/dist/internal/ZoneKeyRewrite.d.ts +98 -0
- package/dist/internal/ZoneKeyRewrite.d.ts.map +1 -0
- package/dist/internal/ZoneKeyRewrite.js +151 -0
- package/dist/internal/ZoneKeyRewrite.js.map +1 -0
- package/dist/internal/rewards/Campaigns.d.ts +2 -0
- package/dist/internal/rewards/Campaigns.d.ts.map +1 -1
- package/dist/internal/rewards/Campaigns.js.map +1 -1
- package/dist/internal/rewards/Distributions.d.ts.map +1 -1
- package/dist/internal/rewards/Distributions.js +2 -6
- package/dist/internal/rewards/Distributions.js.map +1 -1
- package/dist/internal/rewards/Monitor.d.ts +4 -1
- package/dist/internal/rewards/Monitor.d.ts.map +1 -1
- package/dist/internal/rewards/Monitor.js +19 -2
- package/dist/internal/rewards/Monitor.js.map +1 -1
- package/dist/internal/rewards/Runner.d.ts.map +1 -1
- package/dist/internal/rewards/Runner.js +9 -1
- package/dist/internal/rewards/Runner.js.map +1 -1
- package/dist/internal/routes/Action.d.ts.map +1 -1
- package/dist/internal/routes/Action.js +2 -3
- package/dist/internal/routes/Action.js.map +1 -1
- package/dist/internal/routes/Deposit.d.ts.map +1 -1
- package/dist/internal/routes/Deposit.js +2 -6
- package/dist/internal/routes/Deposit.js.map +1 -1
- package/dist/internal/routes/DepositAddress.d.ts.map +1 -1
- package/dist/internal/routes/DepositAddress.js +4 -10
- package/dist/internal/routes/DepositAddress.js.map +1 -1
- package/dist/internal/routes/Policy.d.ts.map +1 -1
- package/dist/internal/routes/Policy.js +2 -1
- package/dist/internal/routes/Policy.js.map +1 -1
- package/dist/internal/routes/Provider.js +8 -8
- package/dist/internal/routes/Provider.js.map +1 -1
- package/dist/internal/routes/Reconciliation.d.ts.map +1 -1
- package/dist/internal/routes/Reconciliation.js +3 -2
- package/dist/internal/routes/Reconciliation.js.map +1 -1
- package/dist/internal/routes/Transfer.d.ts.map +1 -1
- package/dist/internal/routes/Transfer.js +4 -12
- package/dist/internal/routes/Transfer.js.map +1 -1
- package/dist/internal/routes/UniversalDepositAddress.d.ts.map +1 -1
- package/dist/internal/routes/UniversalDepositAddress.js +3 -6
- package/dist/internal/routes/UniversalDepositAddress.js.map +1 -1
- package/dist/internal/routes/providers/SquidOrder.d.ts.map +1 -1
- package/dist/internal/routes/providers/SquidOrder.js +3 -2
- package/dist/internal/routes/providers/SquidOrder.js.map +1 -1
- package/dist/internal/routes/providers/relay.d.ts.map +1 -1
- package/dist/internal/routes/providers/relay.js +4 -3
- package/dist/internal/routes/providers/relay.js.map +1 -1
- package/package.json +20 -5
- package/src/ApiKey.ts +2 -2
- package/src/ApiKeys.test.ts +284 -51
- package/src/ApiKeys.ts +297 -64
- package/src/App.ts +4 -5
- package/src/Client.test-d.ts +33 -126
- package/src/Scope.test.ts +26 -45
- package/src/Scope.ts +24 -37
- package/src/admin/App.test.ts +51 -4
- package/src/admin/App.ts +25 -33
- package/src/admin/Mcp.test.ts +2 -1
- package/src/admin/apps/api-keys.test.ts +90 -20
- package/src/admin/apps/api-keys.ts +5 -8
- package/src/admin/apps/audit-logs.ts +1 -1
- package/src/admin/apps/earn-vaults.test.ts +19 -19
- package/src/admin/apps/earn-vaults.ts +11 -5
- package/src/admin/apps/routes-support.test.ts +254 -3
- package/src/admin/apps/routes-support.ts +1 -44
- package/src/admin/apps/scopes.test.ts +3 -3
- package/src/admin/apps/zone-delegation-requests.test.ts +246 -0
- package/src/admin/apps/zone-delegation-requests.ts +240 -0
- package/src/admin/apps/zone-delegations.test.ts +218 -58
- package/src/admin/apps/zone-delegations.ts +146 -46
- package/src/admin/index.ts +1 -1
- package/src/admin/ui/src/components/ApiKeyForm.tsx +4 -3
- package/src/admin/ui/src/lib/config.ts +3 -3
- package/src/admin/ui/src/lib/query-client.ts +1 -1
- package/src/admin/ui/src/lib/review-queues.ts +10 -10
- package/src/admin/ui/src/lib/routes-setup.test.ts +1 -2
- package/src/admin/ui/src/lib/routes-setup.ts +3 -5
- package/src/admin/ui/src/lib/scopes.test.ts +3 -6
- package/src/admin/ui/src/lib/scopes.ts +2 -9
- package/src/admin/ui/src/lib/{zone-key-requests.ts → zone-delegation-requests.ts} +27 -31
- package/src/admin/ui/src/routeTree.gen.ts +17 -17
- package/src/admin/ui/src/routes/__root.tsx +1 -1
- package/src/admin/ui/src/routes/api-keys.tsx +2 -15
- package/src/admin/ui/src/routes/audit-logs.tsx +2 -2
- package/src/admin/ui/src/routes/index.tsx +11 -11
- package/src/admin/ui/src/routes/organizations.tsx +3 -1
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +3 -1
- package/src/admin/ui/src/routes/organizations_.$orgId_.setup.tsx +1 -3
- package/src/admin/ui/src/routes/{zone-key-requests.tsx → zone-delegation-requests.tsx} +228 -172
- package/src/admin/ui/vite.config.ts +14 -1
- package/src/admin/ui.generated.ts +412 -583
- package/src/analytics/tables/requestEvents.test.ts +13 -3
- package/src/analytics/tables/requestEvents.ts +4 -3
- package/src/apps/data/App.test.ts +72 -35
- package/src/apps/data/App.ts +29 -13
- package/src/apps/data/ZoneSelection.test.ts +53 -70
- package/src/apps/data/ZoneSelection.ts +2 -2
- package/src/apps/data/routes/activities.test.ts +140 -6
- package/src/apps/data/routes/activities.ts +124 -18
- package/src/apps/data/routes/balances.ts +5 -1
- package/src/apps/data/routes/blocks.ts +9 -13
- package/src/apps/data/routes/earn-transactions.local.test.ts +6 -1
- package/src/apps/data/routes/earn-transactions.test.ts +7 -3
- package/src/apps/data/routes/earn.bench.ts +0 -14
- package/src/apps/data/routes/earn.discovery.test.ts +4 -39
- package/src/apps/data/routes/earn.local.test.ts +27 -34
- package/src/apps/data/routes/earn.test.ts +172 -490
- package/src/apps/data/routes/earn.ts +103 -652
- package/src/apps/data/routes/exchanges.ts +20 -30
- package/src/apps/data/routes/fee-amm.ts +12 -18
- package/src/apps/data/routes/indexer.test.ts +14 -12
- package/src/apps/data/routes/receipts.ts +1 -1
- package/src/apps/data/routes/rpc.test.ts +23 -18
- package/src/apps/data/routes/rpc.ts +21 -21
- package/src/apps/data/routes/rpc.zone.test.ts +60 -6
- package/src/apps/data/routes/tokenlist.ts +4 -6
- package/src/apps/data/routes/tokens.test.ts +20 -0
- package/src/apps/data/routes/tokens.ts +10 -5
- package/src/apps/data/routes/transactions.ts +3 -3
- package/src/apps/data/routes/transfers.ts +4 -6
- package/src/apps/data/routes/valuation.test.ts +2 -4
- package/src/apps/data/routes/valuation.ts +4 -6
- package/src/apps/data/routes/webhooks.test.ts +1 -5
- package/src/apps/data/routes/webhooks.ts +30 -44
- package/src/apps/data/routes/zones.test.ts +35 -19
- package/src/apps/management/App.ts +3 -1
- package/src/apps/management/routes/api-keys.test.ts +112 -22
- package/src/apps/management/routes/api-keys.ts +30 -15
- package/src/apps/management/routes/billing.ts +17 -25
- package/src/apps/management/routes/cli.ts +12 -18
- package/src/apps/management/routes/fee-payer-usage.ts +5 -4
- package/src/apps/management/routes/invitations.ts +16 -21
- package/src/apps/management/routes/invite-links.ts +18 -26
- package/src/apps/management/routes/me.ts +9 -13
- package/src/apps/management/routes/members.ts +5 -7
- package/src/apps/management/routes/orgs.ts +8 -12
- package/src/apps/management/routes/projects.ts +8 -12
- package/src/apps/management/routes/route-usage.ts +5 -4
- package/src/apps/management/routes/routes-access-requests.test.ts +64 -2
- package/src/apps/management/routes/routes-access-requests.ts +99 -15
- package/src/apps/management/routes/scopes.test.ts +3 -3
- package/src/apps/management/routes/usage.ts +20 -28
- package/src/apps/management/routes/verified-token-requests.ts +9 -13
- package/src/apps/management/routes/zone-delegations.test.ts +3 -5
- package/src/apps/management/routes/zone-delegations.ts +4 -9
- package/src/apps/mpp/App.ts +3 -3
- package/src/apps/mpp/Mpp.zone.test.ts +49 -18
- package/src/apps/mpp/internal/Adapter.ts +1 -1
- package/src/apps/mpp/internal/Error.test.ts +3 -0
- package/src/apps/mpp/internal/Error.ts +1 -0
- package/src/apps/mpp/internal/Policy.test.ts +9 -8
- package/src/apps/mpp/internal/Policy.ts +37 -14
- package/src/apps/relay/App.sandbox.test.ts +15 -14
- package/src/apps/relay/App.test.ts +120 -61
- package/src/apps/relay/App.ts +28 -18
- package/src/apps/relay/App.zone-billing.test.ts +9 -4
- package/src/apps/routes/App.test.ts +21 -22
- package/src/db/Db.ts +34 -3
- package/src/db/Schema.ts +26 -26
- package/src/db/tables/rewardRuns.ts +39 -0
- package/src/db/tables/routesAccessRequests.test.ts +65 -0
- package/src/db/tables/routesAccessRequests.ts +25 -0
- package/src/db/tables/{zoneKeyRequests.test.ts → zoneDelegationRequests.test.ts} +36 -77
- package/src/db/tables/{zoneKeyRequests.ts → zoneDelegationRequests.ts} +69 -52
- package/src/db/tables/zoneDelegations.test.ts +5 -6
- package/src/db/tables/zoneDelegations.ts +25 -8
- package/src/handlers/internal/{multisig.store.test.ts → accounts.store.test.ts} +16 -16
- package/src/handlers/internal/{multisig.test.ts → accounts.test.ts} +85 -82
- package/src/handlers/internal/{multisig.ts → accounts.ts} +9 -9
- package/src/handlers/internal/sponsorship.ts +20 -20
- package/src/handlers/relay.test.ts +48 -46
- package/src/handlers/relay.ts +26 -26
- package/src/internal/Auth.test.ts +6 -2
- package/src/internal/Auth.ts +4 -10
- package/src/internal/EarnRates.ts +4 -6
- package/src/internal/EarnVaults.ts +2 -2
- package/src/internal/Log.test-d.ts +1 -0
- package/src/internal/Log.test.ts +4 -6
- package/src/internal/Log.ts +2 -6
- package/src/internal/Response.ts +0 -3
- package/src/internal/Schema.test.ts +42 -0
- package/src/internal/Schema.ts +36 -1
- package/src/internal/ZoneAccess.test.ts +515 -312
- package/src/internal/ZoneAccess.ts +410 -158
- package/src/internal/ZoneDelegation.test.ts +1 -41
- package/src/internal/ZoneDelegation.ts +10 -48
- package/src/internal/ZoneDelegationApproval.test.ts +22 -0
- package/src/internal/{ZoneKeyApproval.ts → ZoneDelegationApproval.ts} +4 -11
- package/src/internal/ZoneKeyRewrite.ts +231 -0
- package/src/internal/rewards/Campaigns.ts +2 -0
- package/src/internal/rewards/Distributions.ts +8 -12
- package/src/internal/rewards/Monitor.test.ts +64 -0
- package/src/internal/rewards/Monitor.ts +27 -4
- package/src/internal/rewards/Runner.ts +9 -1
- package/src/internal/routes/Action.ts +5 -6
- package/src/internal/routes/Deposit.ts +8 -12
- package/src/internal/routes/DepositAddress.ts +13 -19
- package/src/internal/routes/Policy.ts +2 -1
- package/src/internal/routes/Provider.ts +8 -8
- package/src/internal/routes/Reconciliation.ts +3 -2
- package/src/internal/routes/Transfer.ts +16 -24
- package/src/internal/routes/UniversalDepositAddress.ts +9 -12
- package/src/internal/routes/providers/SquidOrder.ts +3 -2
- package/src/internal/routes/providers/relay.ts +4 -3
- package/dist/admin/apps/zone-key-requests.d.ts +0 -406
- package/dist/admin/apps/zone-key-requests.d.ts.map +0 -1
- package/dist/admin/apps/zone-key-requests.js +0 -183
- package/dist/admin/apps/zone-key-requests.js.map +0 -1
- package/dist/db/tables/zoneKeyRequests.d.ts +0 -289
- package/dist/db/tables/zoneKeyRequests.d.ts.map +0 -1
- package/dist/db/tables/zoneKeyRequests.js.map +0 -1
- package/dist/handlers/internal/multisig.d.ts +0 -7
- package/dist/handlers/internal/multisig.d.ts.map +0 -1
- package/dist/internal/ZoneKeyApproval.d.ts.map +0 -1
- package/dist/internal/ZoneKeyApproval.js +0 -21
- package/dist/internal/ZoneKeyApproval.js.map +0 -1
- package/src/admin/apps/zone-key-requests.test.ts +0 -272
- package/src/admin/apps/zone-key-requests.ts +0 -231
- package/src/internal/ZoneKeyApproval.test.ts +0 -46
|
@@ -154,7 +154,6 @@ export declare namespace schema {
|
|
|
154
154
|
redeem: z.ZodMiniBoolean<boolean>;
|
|
155
155
|
routerSwaps: z.ZodMiniBoolean<boolean>;
|
|
156
156
|
}, z.core.$strict>>>;
|
|
157
|
-
description: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
158
157
|
engine: z.ZodMiniObject<{
|
|
159
158
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
160
159
|
type: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
@@ -188,7 +187,6 @@ export declare namespace schema {
|
|
|
188
187
|
symbol: z.ZodMiniString<string>;
|
|
189
188
|
verified: z.ZodMiniBoolean<boolean>;
|
|
190
189
|
}, z.core.$strip>;
|
|
191
|
-
slug: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
192
190
|
state: z.ZodMiniObject<{
|
|
193
191
|
depositsPaused: z.ZodMiniBoolean<boolean>;
|
|
194
192
|
engineShares: z.ZodMiniString<string>;
|
|
@@ -227,6 +225,135 @@ export declare namespace schema {
|
|
|
227
225
|
outputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
228
226
|
}, z.core.$strict>>>;
|
|
229
227
|
}, z.core.$strict>;
|
|
228
|
+
/** One Earn vault with its curated registry label, slug, and description. */
|
|
229
|
+
const CuratedVault: z.ZodMiniObject<{
|
|
230
|
+
access: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
231
|
+
status: z.ZodMiniEnum<{
|
|
232
|
+
allowlisted: "allowlisted";
|
|
233
|
+
open: "open";
|
|
234
|
+
}>;
|
|
235
|
+
}, z.core.$strict>>>;
|
|
236
|
+
apy: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
237
|
+
asOf: z.ZodMiniISODateTime;
|
|
238
|
+
methodology: z.ZodMiniLiteral<"share-price-growth-annualized:v1">;
|
|
239
|
+
net: z.ZodMiniString<string>;
|
|
240
|
+
rewards: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
241
|
+
apr: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
242
|
+
asset: z.ZodMiniObject<{
|
|
243
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
244
|
+
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
245
|
+
mainnet: "mainnet";
|
|
246
|
+
testnet: "testnet";
|
|
247
|
+
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
248
|
+
decimals: z.ZodMiniNumber<number>;
|
|
249
|
+
}, z.core.$strict>;
|
|
250
|
+
calculatedThrough: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
251
|
+
campaignId: z.ZodMiniString<string>;
|
|
252
|
+
endsAt: z.ZodMiniNumber<number>;
|
|
253
|
+
startsAt: z.ZodMiniNumber<number>;
|
|
254
|
+
targetTotalApr: z.ZodMiniString<string>;
|
|
255
|
+
}, z.core.$strict>>>;
|
|
256
|
+
vault: z.ZodMiniString<string>;
|
|
257
|
+
window: z.ZodMiniEnum<{
|
|
258
|
+
"1d": "1d";
|
|
259
|
+
"1h": "1h";
|
|
260
|
+
"30d": "30d";
|
|
261
|
+
"7d": "7d";
|
|
262
|
+
}>;
|
|
263
|
+
}, z.core.$strict>>>;
|
|
264
|
+
assetToken: z.ZodMiniObject<{
|
|
265
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
266
|
+
currency: z.ZodMiniString<string>;
|
|
267
|
+
decimals: z.ZodMiniNumber<number>;
|
|
268
|
+
id: z.ZodMiniString<string>;
|
|
269
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
270
|
+
name: z.ZodMiniString<string>;
|
|
271
|
+
symbol: z.ZodMiniString<string>;
|
|
272
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
275
|
+
asyncRedeem: z.ZodMiniBoolean<boolean>;
|
|
276
|
+
boundedRedeem: z.ZodMiniBoolean<boolean>;
|
|
277
|
+
deposit: z.ZodMiniBoolean<boolean>;
|
|
278
|
+
exactWithdraw: z.ZodMiniBoolean<boolean>;
|
|
279
|
+
inKindDeposit: z.ZodMiniBoolean<boolean>;
|
|
280
|
+
privateRouting: z.ZodMiniBoolean<boolean>;
|
|
281
|
+
redeem: z.ZodMiniBoolean<boolean>;
|
|
282
|
+
routerSwaps: z.ZodMiniBoolean<boolean>;
|
|
283
|
+
}, z.core.$strict>>>;
|
|
284
|
+
engine: z.ZodMiniObject<{
|
|
285
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
286
|
+
type: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
287
|
+
erc4626: "erc4626";
|
|
288
|
+
veda: "veda";
|
|
289
|
+
}>>;
|
|
290
|
+
venue: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
291
|
+
}, z.core.$strict>;
|
|
292
|
+
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
293
|
+
instantLiquidity: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
294
|
+
instantLiquidityValue: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
295
|
+
amount: z.ZodMiniString<string>;
|
|
296
|
+
currency: z.ZodMiniString<string>;
|
|
297
|
+
decimals: z.ZodMiniNumber<number>;
|
|
298
|
+
formatted: z.ZodMiniString<string>;
|
|
299
|
+
}, z.core.$strict>>>;
|
|
300
|
+
sharePrice: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
301
|
+
amount: z.ZodMiniString<string>;
|
|
302
|
+
currency: z.ZodMiniString<string>;
|
|
303
|
+
decimals: z.ZodMiniNumber<number>;
|
|
304
|
+
formatted: z.ZodMiniString<string>;
|
|
305
|
+
}, z.core.$strict>>;
|
|
306
|
+
shareToken: z.ZodMiniObject<{
|
|
307
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
308
|
+
currency: z.ZodMiniString<string>;
|
|
309
|
+
decimals: z.ZodMiniNumber<number>;
|
|
310
|
+
id: z.ZodMiniString<string>;
|
|
311
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
312
|
+
name: z.ZodMiniString<string>;
|
|
313
|
+
symbol: z.ZodMiniString<string>;
|
|
314
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
state: z.ZodMiniObject<{
|
|
317
|
+
depositsPaused: z.ZodMiniBoolean<boolean>;
|
|
318
|
+
engineShares: z.ZodMiniString<string>;
|
|
319
|
+
feesActive: z.ZodMiniBoolean<boolean>;
|
|
320
|
+
isAccountingAligned: z.ZodMiniBoolean<boolean>;
|
|
321
|
+
openRedeemRequestCount: z.ZodMiniNumber<number>;
|
|
322
|
+
totalAssets: z.ZodMiniString<string>;
|
|
323
|
+
totalEarnShares: z.ZodMiniString<string>;
|
|
324
|
+
}, z.core.$strict>;
|
|
325
|
+
tvl: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
326
|
+
amount: z.ZodMiniString<string>;
|
|
327
|
+
currency: z.ZodMiniString<string>;
|
|
328
|
+
decimals: z.ZodMiniNumber<number>;
|
|
329
|
+
formatted: z.ZodMiniString<string>;
|
|
330
|
+
}, z.core.$strict>>>;
|
|
331
|
+
vaultAddress: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
332
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
333
|
+
zone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
334
|
+
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
335
|
+
mainnet: "mainnet";
|
|
336
|
+
testnet: "testnet";
|
|
337
|
+
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
338
|
+
inputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
339
|
+
name: z.ZodMiniString<string>;
|
|
340
|
+
outputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
341
|
+
}, z.core.$strict>>>;
|
|
342
|
+
zones: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
343
|
+
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
344
|
+
mainnet: "mainnet";
|
|
345
|
+
testnet: "testnet";
|
|
346
|
+
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
347
|
+
deploymentBlock: z.ZodMiniNumber<number>;
|
|
348
|
+
earnRouter: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
349
|
+
inputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
350
|
+
name: z.ZodMiniString<string>;
|
|
351
|
+
outputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
352
|
+
}, z.core.$strict>>>;
|
|
353
|
+
description: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
354
|
+
label: z.ZodMiniString<string>;
|
|
355
|
+
slug: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
356
|
+
}, z.core.$strict>;
|
|
230
357
|
/** One registry-curated Earn vault. */
|
|
231
358
|
const VerifiedVault: z.ZodMiniObject<{
|
|
232
359
|
access: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -283,7 +410,6 @@ export declare namespace schema {
|
|
|
283
410
|
redeem: z.ZodMiniBoolean<boolean>;
|
|
284
411
|
routerSwaps: z.ZodMiniBoolean<boolean>;
|
|
285
412
|
}, z.core.$strict>>>;
|
|
286
|
-
description: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
287
413
|
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
288
414
|
instantLiquidity: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
289
415
|
instantLiquidityValue: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
@@ -292,7 +418,6 @@ export declare namespace schema {
|
|
|
292
418
|
decimals: z.ZodMiniNumber<number>;
|
|
293
419
|
formatted: z.ZodMiniString<string>;
|
|
294
420
|
}, z.core.$strict>>>;
|
|
295
|
-
label: z.ZodMiniString<string>;
|
|
296
421
|
sharePrice: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
297
422
|
amount: z.ZodMiniString<string>;
|
|
298
423
|
currency: z.ZodMiniString<string>;
|
|
@@ -345,6 +470,8 @@ export declare namespace schema {
|
|
|
345
470
|
name: z.ZodMiniString<string>;
|
|
346
471
|
outputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
347
472
|
}, z.core.$strict>>>;
|
|
473
|
+
description: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
474
|
+
label: z.ZodMiniString<string>;
|
|
348
475
|
engine: z.ZodMiniObject<{
|
|
349
476
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
350
477
|
venue: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
@@ -356,84 +483,77 @@ export declare namespace schema {
|
|
|
356
483
|
slug: z.ZodMiniString<string>;
|
|
357
484
|
verified: z.ZodMiniLiteral<true>;
|
|
358
485
|
}, z.core.$strict>;
|
|
359
|
-
/**
|
|
360
|
-
|
|
361
|
-
|
|
486
|
+
/** Collection filters without rates or valuation, for surfaces that cannot measure them. */
|
|
487
|
+
const VaultCollectionQuery: z.ZodMiniObject<{
|
|
488
|
+
asset: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
489
|
+
capability: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
490
|
+
asyncRedeem: "asyncRedeem";
|
|
491
|
+
boundedRedeem: "boundedRedeem";
|
|
492
|
+
deposit: "deposit";
|
|
493
|
+
exactWithdraw: "exactWithdraw";
|
|
494
|
+
inKindDeposit: "inKindDeposit";
|
|
495
|
+
privateRouting: "privateRouting";
|
|
496
|
+
redeem: "redeem";
|
|
497
|
+
routerSwaps: "routerSwaps";
|
|
498
|
+
}>>>;
|
|
499
|
+
chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
500
|
+
mainnet: "mainnet";
|
|
501
|
+
testnet: "testnet";
|
|
502
|
+
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
|
|
503
|
+
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
504
|
+
'engine.type': z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
505
|
+
erc4626: "erc4626";
|
|
506
|
+
veda: "veda";
|
|
507
|
+
}>>;
|
|
508
|
+
limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
|
|
509
|
+
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
510
|
+
access: "access";
|
|
511
|
+
capabilities: "capabilities";
|
|
512
|
+
"token.logoUri": "token.logoUri";
|
|
513
|
+
zone: "zone";
|
|
514
|
+
zones: "zones";
|
|
515
|
+
}>>>;
|
|
516
|
+
}, z.core.$strict>;
|
|
517
|
+
/** Schemas for the getEarnAddressPositions operation. */
|
|
518
|
+
namespace getEarnAddressPositions {
|
|
519
|
+
/** Path parameters identifying the account. */
|
|
520
|
+
const Params: z.ZodMiniObject<{
|
|
521
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
522
|
+
}, z.core.$strict>;
|
|
523
|
+
/** Query parameters for listing an account's earn positions. */
|
|
362
524
|
const Query: z.ZodMiniObject<{
|
|
363
|
-
asset: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
364
|
-
capability: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
365
|
-
asyncRedeem: "asyncRedeem";
|
|
366
|
-
boundedRedeem: "boundedRedeem";
|
|
367
|
-
deposit: "deposit";
|
|
368
|
-
exactWithdraw: "exactWithdraw";
|
|
369
|
-
inKindDeposit: "inKindDeposit";
|
|
370
|
-
privateRouting: "privateRouting";
|
|
371
|
-
redeem: "redeem";
|
|
372
|
-
routerSwaps: "routerSwaps";
|
|
373
|
-
}>>>;
|
|
374
525
|
chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
375
526
|
mainnet: "mainnet";
|
|
376
527
|
testnet: "testnet";
|
|
377
528
|
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
|
|
378
529
|
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
379
|
-
'engine.type': z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
380
|
-
erc4626: "erc4626";
|
|
381
|
-
veda: "veda";
|
|
382
|
-
}>>;
|
|
383
530
|
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
384
|
-
|
|
385
|
-
apy: "apy";
|
|
386
|
-
capabilities: "capabilities";
|
|
387
|
-
"token.logoUri": "token.logoUri";
|
|
388
|
-
tvl: "tvl";
|
|
389
|
-
zone: "zone";
|
|
390
|
-
zones: "zones";
|
|
531
|
+
earnings: "earnings";
|
|
391
532
|
}>>>;
|
|
392
533
|
limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
|
|
393
|
-
'
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}>>;
|
|
534
|
+
'valuation.currency': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
|
|
535
|
+
verified: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
536
|
+
false: "false";
|
|
537
|
+
true: "true";
|
|
538
|
+
}>, z.ZodMiniTransform<boolean, "false" | "true">>>;
|
|
399
539
|
}, z.core.$strict>;
|
|
400
|
-
/**
|
|
540
|
+
/** Page-level valuation rate provenance. */
|
|
541
|
+
const Meta: z.ZodMiniObject<{
|
|
542
|
+
valuation: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
543
|
+
asOf: z.ZodMiniISODateTime;
|
|
544
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
545
|
+
source: z.ZodMiniString<string>;
|
|
546
|
+
}, z.core.$strip>>;
|
|
547
|
+
}, z.core.$strip>;
|
|
548
|
+
/** Paginated list of the account's earn vault positions. */
|
|
401
549
|
const Response: z.ZodMiniObject<{
|
|
402
550
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
}, z.core.$strict
|
|
409
|
-
apy: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
410
|
-
asOf: z.ZodMiniISODateTime;
|
|
411
|
-
methodology: z.ZodMiniLiteral<"share-price-growth-annualized:v1">;
|
|
412
|
-
net: z.ZodMiniString<string>;
|
|
413
|
-
rewards: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
414
|
-
apr: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
415
|
-
asset: z.ZodMiniObject<{
|
|
416
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
417
|
-
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
418
|
-
mainnet: "mainnet";
|
|
419
|
-
testnet: "testnet";
|
|
420
|
-
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
421
|
-
decimals: z.ZodMiniNumber<number>;
|
|
422
|
-
}, z.core.$strict>;
|
|
423
|
-
calculatedThrough: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
424
|
-
campaignId: z.ZodMiniString<string>;
|
|
425
|
-
endsAt: z.ZodMiniNumber<number>;
|
|
426
|
-
startsAt: z.ZodMiniNumber<number>;
|
|
427
|
-
targetTotalApr: z.ZodMiniString<string>;
|
|
428
|
-
}, z.core.$strict>>>;
|
|
429
|
-
vault: z.ZodMiniString<string>;
|
|
430
|
-
window: z.ZodMiniEnum<{
|
|
431
|
-
"1d": "1d";
|
|
432
|
-
"1h": "1h";
|
|
433
|
-
"30d": "30d";
|
|
434
|
-
"7d": "7d";
|
|
435
|
-
}>;
|
|
436
|
-
}, z.core.$strict>>>;
|
|
551
|
+
assetAmount: z.ZodMiniObject<{
|
|
552
|
+
amount: z.ZodMiniString<string>;
|
|
553
|
+
currency: z.ZodMiniString<string>;
|
|
554
|
+
decimals: z.ZodMiniNumber<number>;
|
|
555
|
+
formatted: z.ZodMiniString<string>;
|
|
556
|
+
}, z.core.$strict>;
|
|
437
557
|
assetToken: z.ZodMiniObject<{
|
|
438
558
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
439
559
|
currency: z.ZodMiniString<string>;
|
|
@@ -444,40 +564,24 @@ export declare namespace schema {
|
|
|
444
564
|
symbol: z.ZodMiniString<string>;
|
|
445
565
|
verified: z.ZodMiniBoolean<boolean>;
|
|
446
566
|
}, z.core.$strip>;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
exactWithdraw: z.ZodMiniBoolean<boolean>;
|
|
452
|
-
inKindDeposit: z.ZodMiniBoolean<boolean>;
|
|
453
|
-
privateRouting: z.ZodMiniBoolean<boolean>;
|
|
454
|
-
redeem: z.ZodMiniBoolean<boolean>;
|
|
455
|
-
routerSwaps: z.ZodMiniBoolean<boolean>;
|
|
456
|
-
}, z.core.$strict>>>;
|
|
457
|
-
description: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
458
|
-
engine: z.ZodMiniObject<{
|
|
459
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
460
|
-
type: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
461
|
-
erc4626: "erc4626";
|
|
462
|
-
veda: "veda";
|
|
463
|
-
}>>;
|
|
464
|
-
venue: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
465
|
-
}, z.core.$strict>;
|
|
567
|
+
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
568
|
+
mainnet: "mainnet";
|
|
569
|
+
testnet: "testnet";
|
|
570
|
+
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
466
571
|
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
}, z.core.$strict
|
|
474
|
-
|
|
475
|
-
sharePrice: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
572
|
+
lifetimeCashFlows: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
573
|
+
status: z.ZodMiniLiteral<"complete">;
|
|
574
|
+
totalDeposited: z.ZodMiniString<string>;
|
|
575
|
+
totalWithdrawn: z.ZodMiniString<string>;
|
|
576
|
+
}, z.core.$strict>, z.ZodMiniObject<{
|
|
577
|
+
status: z.ZodMiniLiteral<"incomplete_history">;
|
|
578
|
+
}, z.core.$strict>]>>;
|
|
579
|
+
shareAmount: z.ZodMiniObject<{
|
|
476
580
|
amount: z.ZodMiniString<string>;
|
|
477
581
|
currency: z.ZodMiniString<string>;
|
|
478
582
|
decimals: z.ZodMiniNumber<number>;
|
|
479
583
|
formatted: z.ZodMiniString<string>;
|
|
480
|
-
}, z.core.$strict
|
|
584
|
+
}, z.core.$strict>;
|
|
481
585
|
shareToken: z.ZodMiniObject<{
|
|
482
586
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
483
587
|
currency: z.ZodMiniString<string>;
|
|
@@ -488,44 +592,22 @@ export declare namespace schema {
|
|
|
488
592
|
symbol: z.ZodMiniString<string>;
|
|
489
593
|
verified: z.ZodMiniBoolean<boolean>;
|
|
490
594
|
}, z.core.$strip>;
|
|
491
|
-
|
|
492
|
-
state: z.ZodMiniObject<{
|
|
493
|
-
depositsPaused: z.ZodMiniBoolean<boolean>;
|
|
494
|
-
engineShares: z.ZodMiniString<string>;
|
|
495
|
-
feesActive: z.ZodMiniBoolean<boolean>;
|
|
496
|
-
isAccountingAligned: z.ZodMiniBoolean<boolean>;
|
|
497
|
-
openRedeemRequestCount: z.ZodMiniNumber<number>;
|
|
498
|
-
totalAssets: z.ZodMiniString<string>;
|
|
499
|
-
totalEarnShares: z.ZodMiniString<string>;
|
|
500
|
-
}, z.core.$strict>;
|
|
501
|
-
tvl: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
595
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
502
596
|
amount: z.ZodMiniString<string>;
|
|
503
597
|
currency: z.ZodMiniString<string>;
|
|
598
|
+
}, z.core.$strip>>>;
|
|
599
|
+
valueToken: z.ZodMiniObject<{
|
|
600
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
601
|
+
currency: z.ZodMiniString<string>;
|
|
504
602
|
decimals: z.ZodMiniNumber<number>;
|
|
505
|
-
|
|
506
|
-
|
|
603
|
+
id: z.ZodMiniString<string>;
|
|
604
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
605
|
+
name: z.ZodMiniString<string>;
|
|
606
|
+
symbol: z.ZodMiniString<string>;
|
|
607
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
608
|
+
}, z.core.$strip>;
|
|
507
609
|
vaultAddress: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
508
610
|
verified: z.ZodMiniBoolean<boolean>;
|
|
509
|
-
zone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
510
|
-
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
511
|
-
mainnet: "mainnet";
|
|
512
|
-
testnet: "testnet";
|
|
513
|
-
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
514
|
-
inputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
515
|
-
name: z.ZodMiniString<string>;
|
|
516
|
-
outputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
517
|
-
}, z.core.$strict>>>;
|
|
518
|
-
zones: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
519
|
-
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
520
|
-
mainnet: "mainnet";
|
|
521
|
-
testnet: "testnet";
|
|
522
|
-
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
523
|
-
deploymentBlock: z.ZodMiniNumber<number>;
|
|
524
|
-
earnRouter: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
525
|
-
inputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
526
|
-
name: z.ZodMiniString<string>;
|
|
527
|
-
outputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
528
|
-
}, z.core.$strict>>>;
|
|
529
611
|
}, z.core.$strict>>;
|
|
530
612
|
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
531
613
|
valuation: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -537,31 +619,18 @@ export declare namespace schema {
|
|
|
537
619
|
nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
538
620
|
}, z.core.$strict>;
|
|
539
621
|
}
|
|
540
|
-
/** Schemas for the
|
|
541
|
-
namespace
|
|
542
|
-
/**
|
|
622
|
+
/** Schemas for the getEarnVault operation. */
|
|
623
|
+
namespace getEarnVault {
|
|
624
|
+
/** Path parameters identifying one earn vault. */
|
|
625
|
+
const Params: z.ZodMiniObject<{
|
|
626
|
+
vaultId: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
627
|
+
}, z.core.$strict>;
|
|
628
|
+
/** Detail query without rates or valuation, for surfaces that cannot measure them. */
|
|
543
629
|
const BaseQuery: z.ZodMiniObject<{
|
|
544
|
-
asset: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
545
|
-
capability: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
546
|
-
asyncRedeem: "asyncRedeem";
|
|
547
|
-
boundedRedeem: "boundedRedeem";
|
|
548
|
-
deposit: "deposit";
|
|
549
|
-
exactWithdraw: "exactWithdraw";
|
|
550
|
-
inKindDeposit: "inKindDeposit";
|
|
551
|
-
privateRouting: "privateRouting";
|
|
552
|
-
redeem: "redeem";
|
|
553
|
-
routerSwaps: "routerSwaps";
|
|
554
|
-
}>>>;
|
|
555
630
|
chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
556
631
|
mainnet: "mainnet";
|
|
557
632
|
testnet: "testnet";
|
|
558
633
|
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
|
|
559
|
-
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
560
|
-
'engine.type': z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
561
|
-
erc4626: "erc4626";
|
|
562
|
-
veda: "veda";
|
|
563
|
-
}>>;
|
|
564
|
-
limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
|
|
565
634
|
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
566
635
|
access: "access";
|
|
567
636
|
capabilities: "capabilities";
|
|
@@ -570,28 +639,12 @@ export declare namespace schema {
|
|
|
570
639
|
zones: "zones";
|
|
571
640
|
}>>>;
|
|
572
641
|
}, z.core.$strict>;
|
|
573
|
-
/** Query parameters
|
|
642
|
+
/** Query parameters selecting the chain containing the vault. */
|
|
574
643
|
const Query: z.ZodMiniObject<{
|
|
575
|
-
asset: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
576
|
-
capability: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
577
|
-
asyncRedeem: "asyncRedeem";
|
|
578
|
-
boundedRedeem: "boundedRedeem";
|
|
579
|
-
deposit: "deposit";
|
|
580
|
-
exactWithdraw: "exactWithdraw";
|
|
581
|
-
inKindDeposit: "inKindDeposit";
|
|
582
|
-
privateRouting: "privateRouting";
|
|
583
|
-
redeem: "redeem";
|
|
584
|
-
routerSwaps: "routerSwaps";
|
|
585
|
-
}>>>;
|
|
586
644
|
chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
587
645
|
mainnet: "mainnet";
|
|
588
646
|
testnet: "testnet";
|
|
589
647
|
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
|
|
590
|
-
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
591
|
-
'engine.type': z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
592
|
-
erc4626: "erc4626";
|
|
593
|
-
veda: "veda";
|
|
594
|
-
}>>;
|
|
595
648
|
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
596
649
|
access: "access";
|
|
597
650
|
apy: "apy";
|
|
@@ -601,7 +654,6 @@ export declare namespace schema {
|
|
|
601
654
|
zone: "zone";
|
|
602
655
|
zones: "zones";
|
|
603
656
|
}>>>;
|
|
604
|
-
limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
|
|
605
657
|
'apy.window': z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
606
658
|
"1d": "1d";
|
|
607
659
|
"1h": "1h";
|
|
@@ -609,294 +661,7 @@ export declare namespace schema {
|
|
|
609
661
|
"7d": "7d";
|
|
610
662
|
}>>;
|
|
611
663
|
}, z.core.$strict>;
|
|
612
|
-
/**
|
|
613
|
-
const Response: z.ZodMiniObject<{
|
|
614
|
-
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
615
|
-
access: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
616
|
-
status: z.ZodMiniEnum<{
|
|
617
|
-
allowlisted: "allowlisted";
|
|
618
|
-
open: "open";
|
|
619
|
-
}>;
|
|
620
|
-
}, z.core.$strict>>>;
|
|
621
|
-
apy: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
622
|
-
asOf: z.ZodMiniISODateTime;
|
|
623
|
-
methodology: z.ZodMiniLiteral<"share-price-growth-annualized:v1">;
|
|
624
|
-
net: z.ZodMiniString<string>;
|
|
625
|
-
rewards: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
626
|
-
apr: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
627
|
-
asset: z.ZodMiniObject<{
|
|
628
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
629
|
-
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
630
|
-
mainnet: "mainnet";
|
|
631
|
-
testnet: "testnet";
|
|
632
|
-
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
633
|
-
decimals: z.ZodMiniNumber<number>;
|
|
634
|
-
}, z.core.$strict>;
|
|
635
|
-
calculatedThrough: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
636
|
-
campaignId: z.ZodMiniString<string>;
|
|
637
|
-
endsAt: z.ZodMiniNumber<number>;
|
|
638
|
-
startsAt: z.ZodMiniNumber<number>;
|
|
639
|
-
targetTotalApr: z.ZodMiniString<string>;
|
|
640
|
-
}, z.core.$strict>>>;
|
|
641
|
-
vault: z.ZodMiniString<string>;
|
|
642
|
-
window: z.ZodMiniEnum<{
|
|
643
|
-
"1d": "1d";
|
|
644
|
-
"1h": "1h";
|
|
645
|
-
"30d": "30d";
|
|
646
|
-
"7d": "7d";
|
|
647
|
-
}>;
|
|
648
|
-
}, z.core.$strict>>>;
|
|
649
|
-
assetToken: z.ZodMiniObject<{
|
|
650
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
651
|
-
currency: z.ZodMiniString<string>;
|
|
652
|
-
decimals: z.ZodMiniNumber<number>;
|
|
653
|
-
id: z.ZodMiniString<string>;
|
|
654
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
655
|
-
name: z.ZodMiniString<string>;
|
|
656
|
-
symbol: z.ZodMiniString<string>;
|
|
657
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
658
|
-
}, z.core.$strip>;
|
|
659
|
-
capabilities: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
660
|
-
asyncRedeem: z.ZodMiniBoolean<boolean>;
|
|
661
|
-
boundedRedeem: z.ZodMiniBoolean<boolean>;
|
|
662
|
-
deposit: z.ZodMiniBoolean<boolean>;
|
|
663
|
-
exactWithdraw: z.ZodMiniBoolean<boolean>;
|
|
664
|
-
inKindDeposit: z.ZodMiniBoolean<boolean>;
|
|
665
|
-
privateRouting: z.ZodMiniBoolean<boolean>;
|
|
666
|
-
redeem: z.ZodMiniBoolean<boolean>;
|
|
667
|
-
routerSwaps: z.ZodMiniBoolean<boolean>;
|
|
668
|
-
}, z.core.$strict>>>;
|
|
669
|
-
description: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
670
|
-
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
671
|
-
instantLiquidity: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
672
|
-
instantLiquidityValue: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
673
|
-
amount: z.ZodMiniString<string>;
|
|
674
|
-
currency: z.ZodMiniString<string>;
|
|
675
|
-
decimals: z.ZodMiniNumber<number>;
|
|
676
|
-
formatted: z.ZodMiniString<string>;
|
|
677
|
-
}, z.core.$strict>>>;
|
|
678
|
-
label: z.ZodMiniString<string>;
|
|
679
|
-
sharePrice: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
680
|
-
amount: z.ZodMiniString<string>;
|
|
681
|
-
currency: z.ZodMiniString<string>;
|
|
682
|
-
decimals: z.ZodMiniNumber<number>;
|
|
683
|
-
formatted: z.ZodMiniString<string>;
|
|
684
|
-
}, z.core.$strict>>;
|
|
685
|
-
shareToken: z.ZodMiniObject<{
|
|
686
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
687
|
-
currency: z.ZodMiniString<string>;
|
|
688
|
-
decimals: z.ZodMiniNumber<number>;
|
|
689
|
-
id: z.ZodMiniString<string>;
|
|
690
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
691
|
-
name: z.ZodMiniString<string>;
|
|
692
|
-
symbol: z.ZodMiniString<string>;
|
|
693
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
694
|
-
}, z.core.$strip>;
|
|
695
|
-
state: z.ZodMiniObject<{
|
|
696
|
-
depositsPaused: z.ZodMiniBoolean<boolean>;
|
|
697
|
-
engineShares: z.ZodMiniString<string>;
|
|
698
|
-
feesActive: z.ZodMiniBoolean<boolean>;
|
|
699
|
-
isAccountingAligned: z.ZodMiniBoolean<boolean>;
|
|
700
|
-
openRedeemRequestCount: z.ZodMiniNumber<number>;
|
|
701
|
-
totalAssets: z.ZodMiniString<string>;
|
|
702
|
-
totalEarnShares: z.ZodMiniString<string>;
|
|
703
|
-
}, z.core.$strict>;
|
|
704
|
-
tvl: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
705
|
-
amount: z.ZodMiniString<string>;
|
|
706
|
-
currency: z.ZodMiniString<string>;
|
|
707
|
-
decimals: z.ZodMiniNumber<number>;
|
|
708
|
-
formatted: z.ZodMiniString<string>;
|
|
709
|
-
}, z.core.$strict>>>;
|
|
710
|
-
vaultAddress: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
711
|
-
zone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
712
|
-
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
713
|
-
mainnet: "mainnet";
|
|
714
|
-
testnet: "testnet";
|
|
715
|
-
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
716
|
-
inputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
717
|
-
name: z.ZodMiniString<string>;
|
|
718
|
-
outputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
719
|
-
}, z.core.$strict>>>;
|
|
720
|
-
zones: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
721
|
-
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
722
|
-
mainnet: "mainnet";
|
|
723
|
-
testnet: "testnet";
|
|
724
|
-
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
725
|
-
deploymentBlock: z.ZodMiniNumber<number>;
|
|
726
|
-
earnRouter: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
727
|
-
inputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
728
|
-
name: z.ZodMiniString<string>;
|
|
729
|
-
outputTokens: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
730
|
-
}, z.core.$strict>>>;
|
|
731
|
-
engine: z.ZodMiniObject<{
|
|
732
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
733
|
-
venue: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
734
|
-
type: z.ZodMiniEnum<{
|
|
735
|
-
erc4626: "erc4626";
|
|
736
|
-
veda: "veda";
|
|
737
|
-
}>;
|
|
738
|
-
}, z.core.$strict>;
|
|
739
|
-
slug: z.ZodMiniString<string>;
|
|
740
|
-
verified: z.ZodMiniLiteral<true>;
|
|
741
|
-
}, z.core.$strict>>;
|
|
742
|
-
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
743
|
-
valuation: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
744
|
-
asOf: z.ZodMiniISODateTime;
|
|
745
|
-
basis: z.ZodMiniLiteral<"nominal">;
|
|
746
|
-
source: z.ZodMiniString<string>;
|
|
747
|
-
}, z.core.$strip>>;
|
|
748
|
-
}, z.core.$strip>>;
|
|
749
|
-
nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
750
|
-
}, z.core.$strict>;
|
|
751
|
-
}
|
|
752
|
-
/** Schemas for the getEarnAddressPositions operation. */
|
|
753
|
-
namespace getEarnAddressPositions {
|
|
754
|
-
/** Path parameters identifying the account. */
|
|
755
|
-
const Params: z.ZodMiniObject<{
|
|
756
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
757
|
-
}, z.core.$strict>;
|
|
758
|
-
/** Query parameters for listing an account's earn positions. */
|
|
759
|
-
const Query: z.ZodMiniObject<{
|
|
760
|
-
chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
761
|
-
mainnet: "mainnet";
|
|
762
|
-
testnet: "testnet";
|
|
763
|
-
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
|
|
764
|
-
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
765
|
-
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
766
|
-
earnings: "earnings";
|
|
767
|
-
}>>>;
|
|
768
|
-
limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
|
|
769
|
-
'valuation.currency': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
|
|
770
|
-
verified: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
771
|
-
false: "false";
|
|
772
|
-
true: "true";
|
|
773
|
-
}>, z.ZodMiniTransform<boolean, "false" | "true">>>;
|
|
774
|
-
}, z.core.$strict>;
|
|
775
|
-
/** Page-level valuation rate provenance. */
|
|
776
|
-
const Meta: z.ZodMiniObject<{
|
|
777
|
-
valuation: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
778
|
-
asOf: z.ZodMiniISODateTime;
|
|
779
|
-
basis: z.ZodMiniLiteral<"nominal">;
|
|
780
|
-
source: z.ZodMiniString<string>;
|
|
781
|
-
}, z.core.$strip>>;
|
|
782
|
-
}, z.core.$strip>;
|
|
783
|
-
/** Paginated list of the account's earn vault positions. */
|
|
784
|
-
const Response: z.ZodMiniObject<{
|
|
785
|
-
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
786
|
-
assetAmount: z.ZodMiniObject<{
|
|
787
|
-
amount: z.ZodMiniString<string>;
|
|
788
|
-
currency: z.ZodMiniString<string>;
|
|
789
|
-
decimals: z.ZodMiniNumber<number>;
|
|
790
|
-
formatted: z.ZodMiniString<string>;
|
|
791
|
-
}, z.core.$strict>;
|
|
792
|
-
assetToken: z.ZodMiniObject<{
|
|
793
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
794
|
-
currency: z.ZodMiniString<string>;
|
|
795
|
-
decimals: z.ZodMiniNumber<number>;
|
|
796
|
-
id: z.ZodMiniString<string>;
|
|
797
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
798
|
-
name: z.ZodMiniString<string>;
|
|
799
|
-
symbol: z.ZodMiniString<string>;
|
|
800
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
801
|
-
}, z.core.$strip>;
|
|
802
|
-
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
803
|
-
mainnet: "mainnet";
|
|
804
|
-
testnet: "testnet";
|
|
805
|
-
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
|
|
806
|
-
id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
807
|
-
lifetimeCashFlows: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
808
|
-
status: z.ZodMiniLiteral<"complete">;
|
|
809
|
-
totalDeposited: z.ZodMiniString<string>;
|
|
810
|
-
totalWithdrawn: z.ZodMiniString<string>;
|
|
811
|
-
}, z.core.$strict>, z.ZodMiniObject<{
|
|
812
|
-
status: z.ZodMiniLiteral<"incomplete_history">;
|
|
813
|
-
}, z.core.$strict>]>>;
|
|
814
|
-
shareAmount: z.ZodMiniObject<{
|
|
815
|
-
amount: z.ZodMiniString<string>;
|
|
816
|
-
currency: z.ZodMiniString<string>;
|
|
817
|
-
decimals: z.ZodMiniNumber<number>;
|
|
818
|
-
formatted: z.ZodMiniString<string>;
|
|
819
|
-
}, z.core.$strict>;
|
|
820
|
-
shareToken: z.ZodMiniObject<{
|
|
821
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
822
|
-
currency: z.ZodMiniString<string>;
|
|
823
|
-
decimals: z.ZodMiniNumber<number>;
|
|
824
|
-
id: z.ZodMiniString<string>;
|
|
825
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
826
|
-
name: z.ZodMiniString<string>;
|
|
827
|
-
symbol: z.ZodMiniString<string>;
|
|
828
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
829
|
-
}, z.core.$strip>;
|
|
830
|
-
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
831
|
-
amount: z.ZodMiniString<string>;
|
|
832
|
-
currency: z.ZodMiniString<string>;
|
|
833
|
-
}, z.core.$strip>>>;
|
|
834
|
-
valueToken: z.ZodMiniObject<{
|
|
835
|
-
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
836
|
-
currency: z.ZodMiniString<string>;
|
|
837
|
-
decimals: z.ZodMiniNumber<number>;
|
|
838
|
-
id: z.ZodMiniString<string>;
|
|
839
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
840
|
-
name: z.ZodMiniString<string>;
|
|
841
|
-
symbol: z.ZodMiniString<string>;
|
|
842
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
843
|
-
}, z.core.$strip>;
|
|
844
|
-
vaultAddress: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
845
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
846
|
-
}, z.core.$strict>>;
|
|
847
|
-
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
848
|
-
valuation: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
849
|
-
asOf: z.ZodMiniISODateTime;
|
|
850
|
-
basis: z.ZodMiniLiteral<"nominal">;
|
|
851
|
-
source: z.ZodMiniString<string>;
|
|
852
|
-
}, z.core.$strip>>;
|
|
853
|
-
}, z.core.$strip>>;
|
|
854
|
-
nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
855
|
-
}, z.core.$strict>;
|
|
856
|
-
}
|
|
857
|
-
/** Schemas for the getEarnVault operation. */
|
|
858
|
-
namespace getEarnVault {
|
|
859
|
-
/** Path parameters identifying one earn vault. */
|
|
860
|
-
const Params: z.ZodMiniObject<{
|
|
861
|
-
vaultId: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
862
|
-
}, z.core.$strict>;
|
|
863
|
-
/** Detail query without rates or valuation, for surfaces that cannot measure them. */
|
|
864
|
-
const BaseQuery: z.ZodMiniObject<{
|
|
865
|
-
chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
866
|
-
mainnet: "mainnet";
|
|
867
|
-
testnet: "testnet";
|
|
868
|
-
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
|
|
869
|
-
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
870
|
-
access: "access";
|
|
871
|
-
capabilities: "capabilities";
|
|
872
|
-
"token.logoUri": "token.logoUri";
|
|
873
|
-
zone: "zone";
|
|
874
|
-
zones: "zones";
|
|
875
|
-
}>>>;
|
|
876
|
-
}, z.core.$strict>;
|
|
877
|
-
/** Query parameters selecting the chain containing the vault. */
|
|
878
|
-
const Query: z.ZodMiniObject<{
|
|
879
|
-
chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
880
|
-
mainnet: "mainnet";
|
|
881
|
-
testnet: "testnet";
|
|
882
|
-
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
|
|
883
|
-
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
884
|
-
access: "access";
|
|
885
|
-
apy: "apy";
|
|
886
|
-
capabilities: "capabilities";
|
|
887
|
-
"token.logoUri": "token.logoUri";
|
|
888
|
-
tvl: "tvl";
|
|
889
|
-
zone: "zone";
|
|
890
|
-
zones: "zones";
|
|
891
|
-
}>>>;
|
|
892
|
-
'apy.window': z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
893
|
-
"1d": "1d";
|
|
894
|
-
"1h": "1h";
|
|
895
|
-
"30d": "30d";
|
|
896
|
-
"7d": "7d";
|
|
897
|
-
}>>;
|
|
898
|
-
}, z.core.$strict>;
|
|
899
|
-
/** One compatible Earn vault resolved directly from current chain state. */
|
|
664
|
+
/** One compatible Earn vault resolved directly from current chain state. */
|
|
900
665
|
const Response: z.ZodMiniObject<{
|
|
901
666
|
access: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
902
667
|
status: z.ZodMiniEnum<{
|
|
@@ -952,7 +717,6 @@ export declare namespace schema {
|
|
|
952
717
|
redeem: z.ZodMiniBoolean<boolean>;
|
|
953
718
|
routerSwaps: z.ZodMiniBoolean<boolean>;
|
|
954
719
|
}, z.core.$strict>>>;
|
|
955
|
-
description: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
956
720
|
engine: z.ZodMiniObject<{
|
|
957
721
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
958
722
|
type: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
@@ -986,7 +750,6 @@ export declare namespace schema {
|
|
|
986
750
|
symbol: z.ZodMiniString<string>;
|
|
987
751
|
verified: z.ZodMiniBoolean<boolean>;
|
|
988
752
|
}, z.core.$strip>;
|
|
989
|
-
slug: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
990
753
|
state: z.ZodMiniObject<{
|
|
991
754
|
depositsPaused: z.ZodMiniBoolean<boolean>;
|
|
992
755
|
engineShares: z.ZodMiniString<string>;
|
|
@@ -1239,7 +1002,7 @@ export declare namespace schema {
|
|
|
1239
1002
|
}
|
|
1240
1003
|
}
|
|
1241
1004
|
/** Creates the public Earn-vault handlers. */
|
|
1242
|
-
export declare function earn(options?: earn.Options): import("hono/hono-base").HonoBase<App.Environment, ((((((
|
|
1005
|
+
export declare function earn(options?: earn.Options): import("hono/hono-base").HonoBase<App.Environment, (((((({
|
|
1243
1006
|
"/v1/earn/rewards/eligibility": {
|
|
1244
1007
|
$post: {
|
|
1245
1008
|
output: {
|
|
@@ -1339,7 +1102,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
1339
1102
|
} | {
|
|
1340
1103
|
output: {
|
|
1341
1104
|
error: {
|
|
1342
|
-
code: "
|
|
1105
|
+
code: "body_invalid";
|
|
1343
1106
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1344
1107
|
message: string;
|
|
1345
1108
|
};
|
|
@@ -1358,7 +1121,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
1358
1121
|
} | {
|
|
1359
1122
|
output: {
|
|
1360
1123
|
error: {
|
|
1361
|
-
code: "
|
|
1124
|
+
code: "chain_id_unsupported";
|
|
1362
1125
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1363
1126
|
message: string;
|
|
1364
1127
|
};
|
|
@@ -1550,7 +1313,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
1550
1313
|
} | {
|
|
1551
1314
|
output: {
|
|
1552
1315
|
error: {
|
|
1553
|
-
code: "
|
|
1316
|
+
code: "chain_id_invalid";
|
|
1554
1317
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1555
1318
|
message: string;
|
|
1556
1319
|
};
|
|
@@ -1571,7 +1334,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
1571
1334
|
} | {
|
|
1572
1335
|
output: {
|
|
1573
1336
|
error: {
|
|
1574
|
-
code: "
|
|
1337
|
+
code: "chain_id_unsupported";
|
|
1575
1338
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1576
1339
|
message: string;
|
|
1577
1340
|
};
|
|
@@ -1592,7 +1355,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
1592
1355
|
} | {
|
|
1593
1356
|
output: {
|
|
1594
1357
|
error: {
|
|
1595
|
-
code: "
|
|
1358
|
+
code: "sender_tag_invalid";
|
|
1596
1359
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1597
1360
|
message: string;
|
|
1598
1361
|
};
|
|
@@ -1757,7 +1520,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
1757
1520
|
} | {
|
|
1758
1521
|
output: {
|
|
1759
1522
|
error: {
|
|
1760
|
-
code: "
|
|
1523
|
+
code: "body_invalid";
|
|
1761
1524
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1762
1525
|
message: string;
|
|
1763
1526
|
};
|
|
@@ -1776,7 +1539,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
1776
1539
|
} | {
|
|
1777
1540
|
output: {
|
|
1778
1541
|
error: {
|
|
1779
|
-
code: "
|
|
1542
|
+
code: "chain_id_unsupported";
|
|
1780
1543
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1781
1544
|
message: string;
|
|
1782
1545
|
};
|
|
@@ -1869,610 +1632,56 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
1869
1632
|
};
|
|
1870
1633
|
outputFormat: "json";
|
|
1871
1634
|
status: 401;
|
|
1872
|
-
input: {
|
|
1873
|
-
query: {
|
|
1874
|
-
chainId: string | string[];
|
|
1875
|
-
cursor?: string | string[];
|
|
1876
|
-
limit?: string | string[];
|
|
1877
|
-
vaultAddress: string | string[];
|
|
1878
|
-
};
|
|
1879
|
-
};
|
|
1880
|
-
} | {
|
|
1881
|
-
output: {
|
|
1882
|
-
error: {
|
|
1883
|
-
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
1884
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1885
|
-
message: string;
|
|
1886
|
-
};
|
|
1887
|
-
requestId: string;
|
|
1888
|
-
};
|
|
1889
|
-
outputFormat: "json";
|
|
1890
|
-
status: 403;
|
|
1891
|
-
input: {
|
|
1892
|
-
query: {
|
|
1893
|
-
chainId: string | string[];
|
|
1894
|
-
cursor?: string | string[];
|
|
1895
|
-
limit?: string | string[];
|
|
1896
|
-
vaultAddress: string | string[];
|
|
1897
|
-
};
|
|
1898
|
-
};
|
|
1899
|
-
} | {
|
|
1900
|
-
output: {
|
|
1901
|
-
error: {
|
|
1902
|
-
code: "payment_required" | "rate_limit_exceeded";
|
|
1903
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1904
|
-
message: string;
|
|
1905
|
-
};
|
|
1906
|
-
requestId: string;
|
|
1907
|
-
};
|
|
1908
|
-
outputFormat: "json";
|
|
1909
|
-
status: 429;
|
|
1910
|
-
input: {
|
|
1911
|
-
query: {
|
|
1912
|
-
chainId: string | string[];
|
|
1913
|
-
cursor?: string | string[];
|
|
1914
|
-
limit?: string | string[];
|
|
1915
|
-
vaultAddress: string | string[];
|
|
1916
|
-
};
|
|
1917
|
-
};
|
|
1918
|
-
} | {
|
|
1919
|
-
output: {
|
|
1920
|
-
error: {
|
|
1921
|
-
code: "query_invalid";
|
|
1922
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1923
|
-
message: string;
|
|
1924
|
-
};
|
|
1925
|
-
requestId: string;
|
|
1926
|
-
};
|
|
1927
|
-
outputFormat: "json";
|
|
1928
|
-
status: 400;
|
|
1929
|
-
input: {
|
|
1930
|
-
query: {
|
|
1931
|
-
chainId: string | string[];
|
|
1932
|
-
cursor?: string | string[];
|
|
1933
|
-
limit?: string | string[];
|
|
1934
|
-
vaultAddress: string | string[];
|
|
1935
|
-
};
|
|
1936
|
-
};
|
|
1937
|
-
} | {
|
|
1938
|
-
output: {
|
|
1939
|
-
chainId: number;
|
|
1940
|
-
data: `0x${string}`[];
|
|
1941
|
-
nextCursor: string | null;
|
|
1942
|
-
vaultAddress: `0x${string}`;
|
|
1943
|
-
};
|
|
1944
|
-
outputFormat: "json";
|
|
1945
|
-
status: 200;
|
|
1946
|
-
input: {
|
|
1947
|
-
query: {
|
|
1948
|
-
chainId: string | string[];
|
|
1949
|
-
cursor?: string | string[];
|
|
1950
|
-
limit?: string | string[];
|
|
1951
|
-
vaultAddress: string | string[];
|
|
1952
|
-
};
|
|
1953
|
-
};
|
|
1954
|
-
};
|
|
1955
|
-
};
|
|
1956
|
-
}) & {
|
|
1957
|
-
"/v1/earn/vaults": {
|
|
1958
|
-
$get: {
|
|
1959
|
-
output: null;
|
|
1960
|
-
outputFormat: "body";
|
|
1961
|
-
status: 402;
|
|
1962
|
-
input: {
|
|
1963
|
-
query?: {
|
|
1964
|
-
asset?: string | string[];
|
|
1965
|
-
capability?: string | string[];
|
|
1966
|
-
chainId?: string | string[];
|
|
1967
|
-
cursor?: string | string[];
|
|
1968
|
-
'engine.type'?: string | string[];
|
|
1969
|
-
include?: string | string[];
|
|
1970
|
-
limit?: string | string[];
|
|
1971
|
-
'apy.window'?: string | string[];
|
|
1972
|
-
} | undefined;
|
|
1973
|
-
};
|
|
1974
|
-
} | {
|
|
1975
|
-
output: {
|
|
1976
|
-
error: {
|
|
1977
|
-
code: "api_key_malformed";
|
|
1978
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1979
|
-
message: string;
|
|
1980
|
-
};
|
|
1981
|
-
requestId: string;
|
|
1982
|
-
};
|
|
1983
|
-
outputFormat: "json";
|
|
1984
|
-
status: 400;
|
|
1985
|
-
input: {
|
|
1986
|
-
query?: {
|
|
1987
|
-
asset?: string | string[];
|
|
1988
|
-
capability?: string | string[];
|
|
1989
|
-
chainId?: string | string[];
|
|
1990
|
-
cursor?: string | string[];
|
|
1991
|
-
'engine.type'?: string | string[];
|
|
1992
|
-
include?: string | string[];
|
|
1993
|
-
limit?: string | string[];
|
|
1994
|
-
'apy.window'?: string | string[];
|
|
1995
|
-
} | undefined;
|
|
1996
|
-
};
|
|
1997
|
-
} | {
|
|
1998
|
-
output: {
|
|
1999
|
-
error: {
|
|
2000
|
-
code: "api_key_invalid" | "api_key_missing";
|
|
2001
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2002
|
-
message: string;
|
|
2003
|
-
};
|
|
2004
|
-
requestId: string;
|
|
2005
|
-
};
|
|
2006
|
-
outputFormat: "json";
|
|
2007
|
-
status: 401;
|
|
2008
|
-
input: {
|
|
2009
|
-
query?: {
|
|
2010
|
-
asset?: string | string[];
|
|
2011
|
-
capability?: string | string[];
|
|
2012
|
-
chainId?: string | string[];
|
|
2013
|
-
cursor?: string | string[];
|
|
2014
|
-
'engine.type'?: string | string[];
|
|
2015
|
-
include?: string | string[];
|
|
2016
|
-
limit?: string | string[];
|
|
2017
|
-
'apy.window'?: string | string[];
|
|
2018
|
-
} | undefined;
|
|
2019
|
-
};
|
|
2020
|
-
} | {
|
|
2021
|
-
output: {
|
|
2022
|
-
error: {
|
|
2023
|
-
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
2024
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2025
|
-
message: string;
|
|
2026
|
-
};
|
|
2027
|
-
requestId: string;
|
|
2028
|
-
};
|
|
2029
|
-
outputFormat: "json";
|
|
2030
|
-
status: 403;
|
|
2031
|
-
input: {
|
|
2032
|
-
query?: {
|
|
2033
|
-
asset?: string | string[];
|
|
2034
|
-
capability?: string | string[];
|
|
2035
|
-
chainId?: string | string[];
|
|
2036
|
-
cursor?: string | string[];
|
|
2037
|
-
'engine.type'?: string | string[];
|
|
2038
|
-
include?: string | string[];
|
|
2039
|
-
limit?: string | string[];
|
|
2040
|
-
'apy.window'?: string | string[];
|
|
2041
|
-
} | undefined;
|
|
2042
|
-
};
|
|
2043
|
-
} | {
|
|
2044
|
-
output: {
|
|
2045
|
-
error: {
|
|
2046
|
-
code: "payment_required" | "rate_limit_exceeded";
|
|
2047
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2048
|
-
message: string;
|
|
2049
|
-
};
|
|
2050
|
-
requestId: string;
|
|
2051
|
-
};
|
|
2052
|
-
outputFormat: "json";
|
|
2053
|
-
status: 429;
|
|
2054
|
-
input: {
|
|
2055
|
-
query?: {
|
|
2056
|
-
asset?: string | string[];
|
|
2057
|
-
capability?: string | string[];
|
|
2058
|
-
chainId?: string | string[];
|
|
2059
|
-
cursor?: string | string[];
|
|
2060
|
-
'engine.type'?: string | string[];
|
|
2061
|
-
include?: string | string[];
|
|
2062
|
-
limit?: string | string[];
|
|
2063
|
-
'apy.window'?: string | string[];
|
|
2064
|
-
} | undefined;
|
|
2065
|
-
};
|
|
2066
|
-
} | {
|
|
2067
|
-
output: {
|
|
2068
|
-
error: {
|
|
2069
|
-
code: "query_invalid";
|
|
2070
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2071
|
-
message: string;
|
|
2072
|
-
};
|
|
2073
|
-
requestId: string;
|
|
2074
|
-
};
|
|
2075
|
-
outputFormat: "json";
|
|
2076
|
-
status: 400;
|
|
2077
|
-
input: {
|
|
2078
|
-
query?: {
|
|
2079
|
-
asset?: string | string[];
|
|
2080
|
-
capability?: string | string[];
|
|
2081
|
-
chainId?: string | string[];
|
|
2082
|
-
cursor?: string | string[];
|
|
2083
|
-
'engine.type'?: string | string[];
|
|
2084
|
-
include?: string | string[];
|
|
2085
|
-
limit?: string | string[];
|
|
2086
|
-
'apy.window'?: string | string[];
|
|
2087
|
-
} | undefined;
|
|
2088
|
-
};
|
|
2089
|
-
} | {
|
|
2090
|
-
output: {
|
|
2091
|
-
error: {
|
|
2092
|
-
code: "upstream_error";
|
|
2093
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2094
|
-
message: string;
|
|
2095
|
-
};
|
|
2096
|
-
requestId: string;
|
|
2097
|
-
};
|
|
2098
|
-
outputFormat: "json";
|
|
2099
|
-
status: 502;
|
|
2100
|
-
input: {
|
|
2101
|
-
query?: {
|
|
2102
|
-
asset?: string | string[];
|
|
2103
|
-
capability?: string | string[];
|
|
2104
|
-
chainId?: string | string[];
|
|
2105
|
-
cursor?: string | string[];
|
|
2106
|
-
'engine.type'?: string | string[];
|
|
2107
|
-
include?: string | string[];
|
|
2108
|
-
limit?: string | string[];
|
|
2109
|
-
'apy.window'?: string | string[];
|
|
2110
|
-
} | undefined;
|
|
2111
|
-
};
|
|
2112
|
-
} | {
|
|
2113
|
-
output: {
|
|
2114
|
-
error: {
|
|
2115
|
-
code: "chain_id_invalid";
|
|
2116
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2117
|
-
message: string;
|
|
2118
|
-
};
|
|
2119
|
-
requestId: string;
|
|
2120
|
-
};
|
|
2121
|
-
outputFormat: "json";
|
|
2122
|
-
status: 400;
|
|
2123
|
-
input: {
|
|
2124
|
-
query?: {
|
|
2125
|
-
asset?: string | string[];
|
|
2126
|
-
capability?: string | string[];
|
|
2127
|
-
chainId?: string | string[];
|
|
2128
|
-
cursor?: string | string[];
|
|
2129
|
-
'engine.type'?: string | string[];
|
|
2130
|
-
include?: string | string[];
|
|
2131
|
-
limit?: string | string[];
|
|
2132
|
-
'apy.window'?: string | string[];
|
|
2133
|
-
} | undefined;
|
|
2134
|
-
};
|
|
2135
|
-
} | {
|
|
2136
|
-
output: {
|
|
2137
|
-
error: {
|
|
2138
|
-
code: "chain_id_unsupported";
|
|
2139
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2140
|
-
message: string;
|
|
2141
|
-
};
|
|
2142
|
-
requestId: string;
|
|
2143
|
-
};
|
|
2144
|
-
outputFormat: "json";
|
|
2145
|
-
status: 400;
|
|
2146
|
-
input: {
|
|
2147
|
-
query?: {
|
|
2148
|
-
asset?: string | string[];
|
|
2149
|
-
capability?: string | string[];
|
|
2150
|
-
chainId?: string | string[];
|
|
2151
|
-
cursor?: string | string[];
|
|
2152
|
-
'engine.type'?: string | string[];
|
|
2153
|
-
include?: string | string[];
|
|
2154
|
-
limit?: string | string[];
|
|
2155
|
-
'apy.window'?: string | string[];
|
|
2156
|
-
} | undefined;
|
|
2157
|
-
};
|
|
2158
|
-
} | {
|
|
2159
|
-
output: {
|
|
2160
|
-
data: {
|
|
2161
|
-
access?: {
|
|
2162
|
-
status: "allowlisted" | "open";
|
|
2163
|
-
} | undefined;
|
|
2164
|
-
apy?: {
|
|
2165
|
-
asOf: string;
|
|
2166
|
-
methodology: "share-price-growth-annualized:v1";
|
|
2167
|
-
net: string;
|
|
2168
|
-
rewards?: {
|
|
2169
|
-
apr: string | null;
|
|
2170
|
-
asset: {
|
|
2171
|
-
address: `0x${string}`;
|
|
2172
|
-
chainId: number;
|
|
2173
|
-
decimals: number;
|
|
2174
|
-
};
|
|
2175
|
-
calculatedThrough?: number | undefined;
|
|
2176
|
-
campaignId: string;
|
|
2177
|
-
endsAt: number;
|
|
2178
|
-
startsAt: number;
|
|
2179
|
-
targetTotalApr: string;
|
|
2180
|
-
}[] | undefined;
|
|
2181
|
-
vault: string;
|
|
2182
|
-
window: "1d" | "1h" | "30d" | "7d";
|
|
2183
|
-
} | null | undefined;
|
|
2184
|
-
assetToken: {
|
|
2185
|
-
address: `0x${string}`;
|
|
2186
|
-
currency: string;
|
|
2187
|
-
decimals: number;
|
|
2188
|
-
id: string;
|
|
2189
|
-
logoUri?: string | undefined;
|
|
2190
|
-
name: string;
|
|
2191
|
-
symbol: string;
|
|
2192
|
-
verified: boolean;
|
|
2193
|
-
};
|
|
2194
|
-
capabilities?: {
|
|
2195
|
-
asyncRedeem: boolean;
|
|
2196
|
-
boundedRedeem: boolean;
|
|
2197
|
-
deposit: boolean;
|
|
2198
|
-
exactWithdraw: boolean;
|
|
2199
|
-
inKindDeposit: boolean;
|
|
2200
|
-
privateRouting: boolean;
|
|
2201
|
-
redeem: boolean;
|
|
2202
|
-
routerSwaps: boolean;
|
|
2203
|
-
} | undefined;
|
|
2204
|
-
description: string | null;
|
|
2205
|
-
engine: {
|
|
2206
|
-
address: `0x${string}`;
|
|
2207
|
-
type: "erc4626" | "veda" | null;
|
|
2208
|
-
venue: `0x${string}` | null;
|
|
2209
|
-
};
|
|
2210
|
-
id: `0x${string}`;
|
|
2211
|
-
instantLiquidity: string | null;
|
|
2212
|
-
instantLiquidityValue?: {
|
|
2213
|
-
amount: string;
|
|
2214
|
-
currency: string;
|
|
2215
|
-
decimals: number;
|
|
2216
|
-
formatted: string;
|
|
2217
|
-
} | null | undefined;
|
|
2218
|
-
label: string;
|
|
2219
|
-
sharePrice: {
|
|
2220
|
-
amount: string;
|
|
2221
|
-
currency: string;
|
|
2222
|
-
decimals: number;
|
|
2223
|
-
formatted: string;
|
|
2224
|
-
} | null;
|
|
2225
|
-
shareToken: {
|
|
2226
|
-
address: `0x${string}`;
|
|
2227
|
-
currency: string;
|
|
2228
|
-
decimals: number;
|
|
2229
|
-
id: string;
|
|
2230
|
-
logoUri?: string | undefined;
|
|
2231
|
-
name: string;
|
|
2232
|
-
symbol: string;
|
|
2233
|
-
verified: boolean;
|
|
2234
|
-
};
|
|
2235
|
-
slug: string | null;
|
|
2236
|
-
state: {
|
|
2237
|
-
depositsPaused: boolean;
|
|
2238
|
-
engineShares: string;
|
|
2239
|
-
feesActive: boolean;
|
|
2240
|
-
isAccountingAligned: boolean;
|
|
2241
|
-
openRedeemRequestCount: number;
|
|
2242
|
-
totalAssets: string;
|
|
2243
|
-
totalEarnShares: string;
|
|
2244
|
-
};
|
|
2245
|
-
tvl?: {
|
|
2246
|
-
amount: string;
|
|
2247
|
-
currency: string;
|
|
2248
|
-
decimals: number;
|
|
2249
|
-
formatted: string;
|
|
2250
|
-
} | null | undefined;
|
|
2251
|
-
vaultAddress: `0x${string}`;
|
|
2252
|
-
verified: boolean;
|
|
2253
|
-
zone?: {
|
|
2254
|
-
chainId: number;
|
|
2255
|
-
inputTokens: `0x${string}`[];
|
|
2256
|
-
name: string;
|
|
2257
|
-
outputTokens: `0x${string}`[];
|
|
2258
|
-
} | null | undefined;
|
|
2259
|
-
zones?: {
|
|
2260
|
-
chainId: number;
|
|
2261
|
-
deploymentBlock: number;
|
|
2262
|
-
earnRouter: `0x${string}`;
|
|
2263
|
-
inputTokens: `0x${string}`[];
|
|
2264
|
-
name: string;
|
|
2265
|
-
outputTokens: `0x${string}`[];
|
|
2266
|
-
}[] | undefined;
|
|
2267
|
-
}[];
|
|
2268
|
-
meta?: {
|
|
2269
|
-
valuation?: {
|
|
2270
|
-
asOf: string;
|
|
2271
|
-
basis: "nominal";
|
|
2272
|
-
source: string;
|
|
2273
|
-
} | undefined;
|
|
2274
|
-
} | undefined;
|
|
2275
|
-
nextCursor: string | null;
|
|
2276
|
-
};
|
|
2277
|
-
outputFormat: "json";
|
|
2278
|
-
status: 200;
|
|
2279
|
-
input: {
|
|
2280
|
-
query?: {
|
|
2281
|
-
asset?: string | string[];
|
|
2282
|
-
capability?: string | string[];
|
|
2283
|
-
chainId?: string | string[];
|
|
2284
|
-
cursor?: string | string[];
|
|
2285
|
-
'engine.type'?: string | string[];
|
|
2286
|
-
include?: string | string[];
|
|
2287
|
-
limit?: string | string[];
|
|
2288
|
-
'apy.window'?: string | string[];
|
|
2289
|
-
} | undefined;
|
|
2290
|
-
};
|
|
2291
|
-
};
|
|
2292
|
-
};
|
|
2293
|
-
}) & {
|
|
2294
|
-
"/v1/earn/vaults/verified": {
|
|
2295
|
-
$get: {
|
|
2296
|
-
output: null;
|
|
2297
|
-
outputFormat: "body";
|
|
2298
|
-
status: 402;
|
|
2299
|
-
input: {
|
|
2300
|
-
query?: {
|
|
2301
|
-
asset?: string | string[];
|
|
2302
|
-
capability?: string | string[];
|
|
2303
|
-
chainId?: string | string[];
|
|
2304
|
-
cursor?: string | string[];
|
|
2305
|
-
'engine.type'?: string | string[];
|
|
2306
|
-
include?: string | string[];
|
|
2307
|
-
limit?: string | string[];
|
|
2308
|
-
'apy.window'?: string | string[];
|
|
2309
|
-
} | undefined;
|
|
2310
|
-
};
|
|
2311
|
-
} | {
|
|
2312
|
-
output: {
|
|
2313
|
-
error: {
|
|
2314
|
-
code: "api_key_malformed";
|
|
2315
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2316
|
-
message: string;
|
|
2317
|
-
};
|
|
2318
|
-
requestId: string;
|
|
2319
|
-
};
|
|
2320
|
-
outputFormat: "json";
|
|
2321
|
-
status: 400;
|
|
2322
|
-
input: {
|
|
2323
|
-
query?: {
|
|
2324
|
-
asset?: string | string[];
|
|
2325
|
-
capability?: string | string[];
|
|
2326
|
-
chainId?: string | string[];
|
|
2327
|
-
cursor?: string | string[];
|
|
2328
|
-
'engine.type'?: string | string[];
|
|
2329
|
-
include?: string | string[];
|
|
2330
|
-
limit?: string | string[];
|
|
2331
|
-
'apy.window'?: string | string[];
|
|
2332
|
-
} | undefined;
|
|
2333
|
-
};
|
|
2334
|
-
} | {
|
|
2335
|
-
output: {
|
|
2336
|
-
error: {
|
|
2337
|
-
code: "api_key_invalid" | "api_key_missing";
|
|
2338
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2339
|
-
message: string;
|
|
2340
|
-
};
|
|
2341
|
-
requestId: string;
|
|
2342
|
-
};
|
|
2343
|
-
outputFormat: "json";
|
|
2344
|
-
status: 401;
|
|
2345
|
-
input: {
|
|
2346
|
-
query?: {
|
|
2347
|
-
asset?: string | string[];
|
|
2348
|
-
capability?: string | string[];
|
|
2349
|
-
chainId?: string | string[];
|
|
2350
|
-
cursor?: string | string[];
|
|
2351
|
-
'engine.type'?: string | string[];
|
|
2352
|
-
include?: string | string[];
|
|
2353
|
-
limit?: string | string[];
|
|
2354
|
-
'apy.window'?: string | string[];
|
|
2355
|
-
} | undefined;
|
|
2356
|
-
};
|
|
2357
|
-
} | {
|
|
2358
|
-
output: {
|
|
2359
|
-
error: {
|
|
2360
|
-
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
2361
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2362
|
-
message: string;
|
|
2363
|
-
};
|
|
2364
|
-
requestId: string;
|
|
2365
|
-
};
|
|
2366
|
-
outputFormat: "json";
|
|
2367
|
-
status: 403;
|
|
2368
|
-
input: {
|
|
2369
|
-
query?: {
|
|
2370
|
-
asset?: string | string[];
|
|
2371
|
-
capability?: string | string[];
|
|
2372
|
-
chainId?: string | string[];
|
|
2373
|
-
cursor?: string | string[];
|
|
2374
|
-
'engine.type'?: string | string[];
|
|
2375
|
-
include?: string | string[];
|
|
2376
|
-
limit?: string | string[];
|
|
2377
|
-
'apy.window'?: string | string[];
|
|
2378
|
-
} | undefined;
|
|
2379
|
-
};
|
|
2380
|
-
} | {
|
|
2381
|
-
output: {
|
|
2382
|
-
error: {
|
|
2383
|
-
code: "payment_required" | "rate_limit_exceeded";
|
|
2384
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2385
|
-
message: string;
|
|
2386
|
-
};
|
|
2387
|
-
requestId: string;
|
|
2388
|
-
};
|
|
2389
|
-
outputFormat: "json";
|
|
2390
|
-
status: 429;
|
|
2391
|
-
input: {
|
|
2392
|
-
query?: {
|
|
2393
|
-
asset?: string | string[];
|
|
2394
|
-
capability?: string | string[];
|
|
2395
|
-
chainId?: string | string[];
|
|
2396
|
-
cursor?: string | string[];
|
|
2397
|
-
'engine.type'?: string | string[];
|
|
2398
|
-
include?: string | string[];
|
|
2399
|
-
limit?: string | string[];
|
|
2400
|
-
'apy.window'?: string | string[];
|
|
2401
|
-
} | undefined;
|
|
2402
|
-
};
|
|
2403
|
-
} | {
|
|
2404
|
-
output: {
|
|
2405
|
-
error: {
|
|
2406
|
-
code: "query_invalid";
|
|
2407
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2408
|
-
message: string;
|
|
2409
|
-
};
|
|
2410
|
-
requestId: string;
|
|
2411
|
-
};
|
|
2412
|
-
outputFormat: "json";
|
|
2413
|
-
status: 400;
|
|
2414
|
-
input: {
|
|
2415
|
-
query?: {
|
|
2416
|
-
asset?: string | string[];
|
|
2417
|
-
capability?: string | string[];
|
|
2418
|
-
chainId?: string | string[];
|
|
1635
|
+
input: {
|
|
1636
|
+
query: {
|
|
1637
|
+
chainId: string | string[];
|
|
2419
1638
|
cursor?: string | string[];
|
|
2420
|
-
'engine.type'?: string | string[];
|
|
2421
|
-
include?: string | string[];
|
|
2422
1639
|
limit?: string | string[];
|
|
2423
|
-
|
|
2424
|
-
}
|
|
1640
|
+
vaultAddress: string | string[];
|
|
1641
|
+
};
|
|
2425
1642
|
};
|
|
2426
1643
|
} | {
|
|
2427
1644
|
output: {
|
|
2428
1645
|
error: {
|
|
2429
|
-
code: "
|
|
1646
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
2430
1647
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2431
1648
|
message: string;
|
|
2432
1649
|
};
|
|
2433
1650
|
requestId: string;
|
|
2434
1651
|
};
|
|
2435
1652
|
outputFormat: "json";
|
|
2436
|
-
status:
|
|
1653
|
+
status: 403;
|
|
2437
1654
|
input: {
|
|
2438
|
-
query
|
|
2439
|
-
|
|
2440
|
-
capability?: string | string[];
|
|
2441
|
-
chainId?: string | string[];
|
|
1655
|
+
query: {
|
|
1656
|
+
chainId: string | string[];
|
|
2442
1657
|
cursor?: string | string[];
|
|
2443
|
-
'engine.type'?: string | string[];
|
|
2444
|
-
include?: string | string[];
|
|
2445
1658
|
limit?: string | string[];
|
|
2446
|
-
|
|
2447
|
-
}
|
|
1659
|
+
vaultAddress: string | string[];
|
|
1660
|
+
};
|
|
2448
1661
|
};
|
|
2449
1662
|
} | {
|
|
2450
1663
|
output: {
|
|
2451
1664
|
error: {
|
|
2452
|
-
code: "
|
|
1665
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2453
1666
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2454
1667
|
message: string;
|
|
2455
1668
|
};
|
|
2456
1669
|
requestId: string;
|
|
2457
1670
|
};
|
|
2458
1671
|
outputFormat: "json";
|
|
2459
|
-
status:
|
|
1672
|
+
status: 429;
|
|
2460
1673
|
input: {
|
|
2461
|
-
query
|
|
2462
|
-
|
|
2463
|
-
capability?: string | string[];
|
|
2464
|
-
chainId?: string | string[];
|
|
1674
|
+
query: {
|
|
1675
|
+
chainId: string | string[];
|
|
2465
1676
|
cursor?: string | string[];
|
|
2466
|
-
'engine.type'?: string | string[];
|
|
2467
|
-
include?: string | string[];
|
|
2468
1677
|
limit?: string | string[];
|
|
2469
|
-
|
|
2470
|
-
}
|
|
1678
|
+
vaultAddress: string | string[];
|
|
1679
|
+
};
|
|
2471
1680
|
};
|
|
2472
1681
|
} | {
|
|
2473
1682
|
output: {
|
|
2474
1683
|
error: {
|
|
2475
|
-
code: "
|
|
1684
|
+
code: "query_invalid";
|
|
2476
1685
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2477
1686
|
message: string;
|
|
2478
1687
|
};
|
|
@@ -2481,149 +1690,29 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
2481
1690
|
outputFormat: "json";
|
|
2482
1691
|
status: 400;
|
|
2483
1692
|
input: {
|
|
2484
|
-
query
|
|
2485
|
-
|
|
2486
|
-
capability?: string | string[];
|
|
2487
|
-
chainId?: string | string[];
|
|
1693
|
+
query: {
|
|
1694
|
+
chainId: string | string[];
|
|
2488
1695
|
cursor?: string | string[];
|
|
2489
|
-
'engine.type'?: string | string[];
|
|
2490
|
-
include?: string | string[];
|
|
2491
1696
|
limit?: string | string[];
|
|
2492
|
-
|
|
2493
|
-
}
|
|
1697
|
+
vaultAddress: string | string[];
|
|
1698
|
+
};
|
|
2494
1699
|
};
|
|
2495
1700
|
} | {
|
|
2496
1701
|
output: {
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
status: "allowlisted" | "open";
|
|
2500
|
-
} | undefined;
|
|
2501
|
-
apy?: {
|
|
2502
|
-
asOf: string;
|
|
2503
|
-
methodology: "share-price-growth-annualized:v1";
|
|
2504
|
-
net: string;
|
|
2505
|
-
rewards?: {
|
|
2506
|
-
apr: string | null;
|
|
2507
|
-
asset: {
|
|
2508
|
-
address: `0x${string}`;
|
|
2509
|
-
chainId: number;
|
|
2510
|
-
decimals: number;
|
|
2511
|
-
};
|
|
2512
|
-
calculatedThrough?: number | undefined;
|
|
2513
|
-
campaignId: string;
|
|
2514
|
-
endsAt: number;
|
|
2515
|
-
startsAt: number;
|
|
2516
|
-
targetTotalApr: string;
|
|
2517
|
-
}[] | undefined;
|
|
2518
|
-
vault: string;
|
|
2519
|
-
window: "1d" | "1h" | "30d" | "7d";
|
|
2520
|
-
} | null | undefined;
|
|
2521
|
-
assetToken: {
|
|
2522
|
-
address: `0x${string}`;
|
|
2523
|
-
currency: string;
|
|
2524
|
-
decimals: number;
|
|
2525
|
-
id: string;
|
|
2526
|
-
logoUri?: string | undefined;
|
|
2527
|
-
name: string;
|
|
2528
|
-
symbol: string;
|
|
2529
|
-
verified: boolean;
|
|
2530
|
-
};
|
|
2531
|
-
capabilities?: {
|
|
2532
|
-
asyncRedeem: boolean;
|
|
2533
|
-
boundedRedeem: boolean;
|
|
2534
|
-
deposit: boolean;
|
|
2535
|
-
exactWithdraw: boolean;
|
|
2536
|
-
inKindDeposit: boolean;
|
|
2537
|
-
privateRouting: boolean;
|
|
2538
|
-
redeem: boolean;
|
|
2539
|
-
routerSwaps: boolean;
|
|
2540
|
-
} | undefined;
|
|
2541
|
-
description: string | null;
|
|
2542
|
-
id: `0x${string}`;
|
|
2543
|
-
instantLiquidity: string | null;
|
|
2544
|
-
instantLiquidityValue?: {
|
|
2545
|
-
amount: string;
|
|
2546
|
-
currency: string;
|
|
2547
|
-
decimals: number;
|
|
2548
|
-
formatted: string;
|
|
2549
|
-
} | null | undefined;
|
|
2550
|
-
label: string;
|
|
2551
|
-
sharePrice: {
|
|
2552
|
-
amount: string;
|
|
2553
|
-
currency: string;
|
|
2554
|
-
decimals: number;
|
|
2555
|
-
formatted: string;
|
|
2556
|
-
} | null;
|
|
2557
|
-
shareToken: {
|
|
2558
|
-
address: `0x${string}`;
|
|
2559
|
-
currency: string;
|
|
2560
|
-
decimals: number;
|
|
2561
|
-
id: string;
|
|
2562
|
-
logoUri?: string | undefined;
|
|
2563
|
-
name: string;
|
|
2564
|
-
symbol: string;
|
|
2565
|
-
verified: boolean;
|
|
2566
|
-
};
|
|
2567
|
-
state: {
|
|
2568
|
-
depositsPaused: boolean;
|
|
2569
|
-
engineShares: string;
|
|
2570
|
-
feesActive: boolean;
|
|
2571
|
-
isAccountingAligned: boolean;
|
|
2572
|
-
openRedeemRequestCount: number;
|
|
2573
|
-
totalAssets: string;
|
|
2574
|
-
totalEarnShares: string;
|
|
2575
|
-
};
|
|
2576
|
-
tvl?: {
|
|
2577
|
-
amount: string;
|
|
2578
|
-
currency: string;
|
|
2579
|
-
decimals: number;
|
|
2580
|
-
formatted: string;
|
|
2581
|
-
} | null | undefined;
|
|
2582
|
-
vaultAddress: `0x${string}`;
|
|
2583
|
-
zone?: {
|
|
2584
|
-
chainId: number;
|
|
2585
|
-
inputTokens: `0x${string}`[];
|
|
2586
|
-
name: string;
|
|
2587
|
-
outputTokens: `0x${string}`[];
|
|
2588
|
-
} | null | undefined;
|
|
2589
|
-
zones?: {
|
|
2590
|
-
chainId: number;
|
|
2591
|
-
deploymentBlock: number;
|
|
2592
|
-
earnRouter: `0x${string}`;
|
|
2593
|
-
inputTokens: `0x${string}`[];
|
|
2594
|
-
name: string;
|
|
2595
|
-
outputTokens: `0x${string}`[];
|
|
2596
|
-
}[] | undefined;
|
|
2597
|
-
engine: {
|
|
2598
|
-
address: `0x${string}`;
|
|
2599
|
-
venue: `0x${string}` | null;
|
|
2600
|
-
type: "erc4626" | "veda";
|
|
2601
|
-
};
|
|
2602
|
-
slug: string;
|
|
2603
|
-
verified: true;
|
|
2604
|
-
}[];
|
|
2605
|
-
meta?: {
|
|
2606
|
-
valuation?: {
|
|
2607
|
-
asOf: string;
|
|
2608
|
-
basis: "nominal";
|
|
2609
|
-
source: string;
|
|
2610
|
-
} | undefined;
|
|
2611
|
-
} | undefined;
|
|
1702
|
+
chainId: number;
|
|
1703
|
+
data: `0x${string}`[];
|
|
2612
1704
|
nextCursor: string | null;
|
|
1705
|
+
vaultAddress: `0x${string}`;
|
|
2613
1706
|
};
|
|
2614
1707
|
outputFormat: "json";
|
|
2615
1708
|
status: 200;
|
|
2616
1709
|
input: {
|
|
2617
|
-
query
|
|
2618
|
-
|
|
2619
|
-
capability?: string | string[];
|
|
2620
|
-
chainId?: string | string[];
|
|
1710
|
+
query: {
|
|
1711
|
+
chainId: string | string[];
|
|
2621
1712
|
cursor?: string | string[];
|
|
2622
|
-
'engine.type'?: string | string[];
|
|
2623
|
-
include?: string | string[];
|
|
2624
1713
|
limit?: string | string[];
|
|
2625
|
-
|
|
2626
|
-
}
|
|
1714
|
+
vaultAddress: string | string[];
|
|
1715
|
+
};
|
|
2627
1716
|
};
|
|
2628
1717
|
};
|
|
2629
1718
|
};
|
|
@@ -4168,7 +3257,6 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
4168
3257
|
redeem: boolean;
|
|
4169
3258
|
routerSwaps: boolean;
|
|
4170
3259
|
} | undefined;
|
|
4171
|
-
description: string | null;
|
|
4172
3260
|
engine: {
|
|
4173
3261
|
address: `0x${string}`;
|
|
4174
3262
|
type: "erc4626" | "veda" | null;
|
|
@@ -4199,7 +3287,6 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
|
|
|
4199
3287
|
symbol: string;
|
|
4200
3288
|
verified: boolean;
|
|
4201
3289
|
};
|
|
4202
|
-
slug: string | null;
|
|
4203
3290
|
state: {
|
|
4204
3291
|
depositsPaused: boolean;
|
|
4205
3292
|
engineShares: string;
|
|
@@ -4418,275 +3505,6 @@ export declare namespace calculateActiveCostBasis {
|
|
|
4418
3505
|
shareBalance: bigint;
|
|
4419
3506
|
};
|
|
4420
3507
|
}
|
|
4421
|
-
/** Lists compatible deployed Earn vaults. */
|
|
4422
|
-
export declare function listVaults(c: Context<App.Environment>, options: listVaults.Options): Promise<{
|
|
4423
|
-
data: {
|
|
4424
|
-
access?: {
|
|
4425
|
-
status: "allowlisted" | "open";
|
|
4426
|
-
} | undefined;
|
|
4427
|
-
apy?: {
|
|
4428
|
-
asOf: string;
|
|
4429
|
-
methodology: "share-price-growth-annualized:v1";
|
|
4430
|
-
net: string;
|
|
4431
|
-
rewards?: {
|
|
4432
|
-
apr: string | null;
|
|
4433
|
-
asset: {
|
|
4434
|
-
address: `0x${string}`;
|
|
4435
|
-
chainId: number;
|
|
4436
|
-
decimals: number;
|
|
4437
|
-
};
|
|
4438
|
-
calculatedThrough?: number | undefined;
|
|
4439
|
-
campaignId: string;
|
|
4440
|
-
endsAt: number;
|
|
4441
|
-
startsAt: number;
|
|
4442
|
-
targetTotalApr: string;
|
|
4443
|
-
}[] | undefined;
|
|
4444
|
-
vault: string;
|
|
4445
|
-
window: "1d" | "1h" | "30d" | "7d";
|
|
4446
|
-
} | null | undefined;
|
|
4447
|
-
assetToken: {
|
|
4448
|
-
address: `0x${string}`;
|
|
4449
|
-
currency: string;
|
|
4450
|
-
decimals: number;
|
|
4451
|
-
id: string;
|
|
4452
|
-
logoUri?: string | undefined;
|
|
4453
|
-
name: string;
|
|
4454
|
-
symbol: string;
|
|
4455
|
-
verified: boolean;
|
|
4456
|
-
};
|
|
4457
|
-
capabilities?: {
|
|
4458
|
-
asyncRedeem: boolean;
|
|
4459
|
-
boundedRedeem: boolean;
|
|
4460
|
-
deposit: boolean;
|
|
4461
|
-
exactWithdraw: boolean;
|
|
4462
|
-
inKindDeposit: boolean;
|
|
4463
|
-
privateRouting: boolean;
|
|
4464
|
-
redeem: boolean;
|
|
4465
|
-
routerSwaps: boolean;
|
|
4466
|
-
} | undefined;
|
|
4467
|
-
description: string | null;
|
|
4468
|
-
engine: {
|
|
4469
|
-
address: `0x${string}`;
|
|
4470
|
-
type: "erc4626" | "veda" | null;
|
|
4471
|
-
venue: `0x${string}` | null;
|
|
4472
|
-
};
|
|
4473
|
-
id: `0x${string}`;
|
|
4474
|
-
instantLiquidity: string | null;
|
|
4475
|
-
instantLiquidityValue?: {
|
|
4476
|
-
amount: string;
|
|
4477
|
-
currency: string;
|
|
4478
|
-
decimals: number;
|
|
4479
|
-
formatted: string;
|
|
4480
|
-
} | null | undefined;
|
|
4481
|
-
label: string;
|
|
4482
|
-
sharePrice: {
|
|
4483
|
-
amount: string;
|
|
4484
|
-
currency: string;
|
|
4485
|
-
decimals: number;
|
|
4486
|
-
formatted: string;
|
|
4487
|
-
} | null;
|
|
4488
|
-
shareToken: {
|
|
4489
|
-
address: `0x${string}`;
|
|
4490
|
-
currency: string;
|
|
4491
|
-
decimals: number;
|
|
4492
|
-
id: string;
|
|
4493
|
-
logoUri?: string | undefined;
|
|
4494
|
-
name: string;
|
|
4495
|
-
symbol: string;
|
|
4496
|
-
verified: boolean;
|
|
4497
|
-
};
|
|
4498
|
-
slug: string | null;
|
|
4499
|
-
state: {
|
|
4500
|
-
depositsPaused: boolean;
|
|
4501
|
-
engineShares: string;
|
|
4502
|
-
feesActive: boolean;
|
|
4503
|
-
isAccountingAligned: boolean;
|
|
4504
|
-
openRedeemRequestCount: number;
|
|
4505
|
-
totalAssets: string;
|
|
4506
|
-
totalEarnShares: string;
|
|
4507
|
-
};
|
|
4508
|
-
tvl?: {
|
|
4509
|
-
amount: string;
|
|
4510
|
-
currency: string;
|
|
4511
|
-
decimals: number;
|
|
4512
|
-
formatted: string;
|
|
4513
|
-
} | null | undefined;
|
|
4514
|
-
vaultAddress: `0x${string}`;
|
|
4515
|
-
verified: boolean;
|
|
4516
|
-
zone?: {
|
|
4517
|
-
chainId: number;
|
|
4518
|
-
inputTokens: `0x${string}`[];
|
|
4519
|
-
name: string;
|
|
4520
|
-
outputTokens: `0x${string}`[];
|
|
4521
|
-
} | null | undefined;
|
|
4522
|
-
zones?: {
|
|
4523
|
-
chainId: number;
|
|
4524
|
-
deploymentBlock: number;
|
|
4525
|
-
earnRouter: `0x${string}`;
|
|
4526
|
-
inputTokens: `0x${string}`[];
|
|
4527
|
-
name: string;
|
|
4528
|
-
outputTokens: `0x${string}`[];
|
|
4529
|
-
}[] | undefined;
|
|
4530
|
-
}[];
|
|
4531
|
-
meta?: {
|
|
4532
|
-
valuation: {
|
|
4533
|
-
asOf: string;
|
|
4534
|
-
basis: 'nominal';
|
|
4535
|
-
source: string;
|
|
4536
|
-
};
|
|
4537
|
-
};
|
|
4538
|
-
nextCursor: string | null;
|
|
4539
|
-
}>;
|
|
4540
|
-
export declare namespace listVaults {
|
|
4541
|
-
/** One compatible deployment found while scanning TIDX. */
|
|
4542
|
-
type Match = {
|
|
4543
|
-
discovery: EarnVaults.Discovery;
|
|
4544
|
-
position: Position;
|
|
4545
|
-
record?: RegistryRecord | undefined;
|
|
4546
|
-
zoneRoutes: readonly EarnVaults.ResolvedZoneRoute[];
|
|
4547
|
-
};
|
|
4548
|
-
/** Options for listing compatible Earn vaults. */
|
|
4549
|
-
type Options = z.output<typeof schema.getEarnVaults.Query> & {
|
|
4550
|
-
chainId: z.output<typeof Schema.ChainId>;
|
|
4551
|
-
/** FX rate oracle backing TVL valuation. */
|
|
4552
|
-
oracle: FxOracle.Oracle;
|
|
4553
|
-
};
|
|
4554
|
-
/** TIDX deployment cursor position. */
|
|
4555
|
-
type Position = [number, number];
|
|
4556
|
-
}
|
|
4557
|
-
/** Lists registry-curated Earn vaults. */
|
|
4558
|
-
export declare function listVerifiedVaults(c: Context<App.Environment>, options: listVerifiedVaults.Options): Promise<{
|
|
4559
|
-
data: {
|
|
4560
|
-
access?: {
|
|
4561
|
-
status: "allowlisted" | "open";
|
|
4562
|
-
} | undefined;
|
|
4563
|
-
apy?: {
|
|
4564
|
-
asOf: string;
|
|
4565
|
-
methodology: "share-price-growth-annualized:v1";
|
|
4566
|
-
net: string;
|
|
4567
|
-
rewards?: {
|
|
4568
|
-
apr: string | null;
|
|
4569
|
-
asset: {
|
|
4570
|
-
address: `0x${string}`;
|
|
4571
|
-
chainId: number;
|
|
4572
|
-
decimals: number;
|
|
4573
|
-
};
|
|
4574
|
-
calculatedThrough?: number | undefined;
|
|
4575
|
-
campaignId: string;
|
|
4576
|
-
endsAt: number;
|
|
4577
|
-
startsAt: number;
|
|
4578
|
-
targetTotalApr: string;
|
|
4579
|
-
}[] | undefined;
|
|
4580
|
-
vault: string;
|
|
4581
|
-
window: "1d" | "1h" | "30d" | "7d";
|
|
4582
|
-
} | null | undefined;
|
|
4583
|
-
assetToken: {
|
|
4584
|
-
address: `0x${string}`;
|
|
4585
|
-
currency: string;
|
|
4586
|
-
decimals: number;
|
|
4587
|
-
id: string;
|
|
4588
|
-
logoUri?: string | undefined;
|
|
4589
|
-
name: string;
|
|
4590
|
-
symbol: string;
|
|
4591
|
-
verified: boolean;
|
|
4592
|
-
};
|
|
4593
|
-
capabilities?: {
|
|
4594
|
-
asyncRedeem: boolean;
|
|
4595
|
-
boundedRedeem: boolean;
|
|
4596
|
-
deposit: boolean;
|
|
4597
|
-
exactWithdraw: boolean;
|
|
4598
|
-
inKindDeposit: boolean;
|
|
4599
|
-
privateRouting: boolean;
|
|
4600
|
-
redeem: boolean;
|
|
4601
|
-
routerSwaps: boolean;
|
|
4602
|
-
} | undefined;
|
|
4603
|
-
description: string | null;
|
|
4604
|
-
id: `0x${string}`;
|
|
4605
|
-
instantLiquidity: string | null;
|
|
4606
|
-
instantLiquidityValue?: {
|
|
4607
|
-
amount: string;
|
|
4608
|
-
currency: string;
|
|
4609
|
-
decimals: number;
|
|
4610
|
-
formatted: string;
|
|
4611
|
-
} | null | undefined;
|
|
4612
|
-
label: string;
|
|
4613
|
-
sharePrice: {
|
|
4614
|
-
amount: string;
|
|
4615
|
-
currency: string;
|
|
4616
|
-
decimals: number;
|
|
4617
|
-
formatted: string;
|
|
4618
|
-
} | null;
|
|
4619
|
-
shareToken: {
|
|
4620
|
-
address: `0x${string}`;
|
|
4621
|
-
currency: string;
|
|
4622
|
-
decimals: number;
|
|
4623
|
-
id: string;
|
|
4624
|
-
logoUri?: string | undefined;
|
|
4625
|
-
name: string;
|
|
4626
|
-
symbol: string;
|
|
4627
|
-
verified: boolean;
|
|
4628
|
-
};
|
|
4629
|
-
state: {
|
|
4630
|
-
depositsPaused: boolean;
|
|
4631
|
-
engineShares: string;
|
|
4632
|
-
feesActive: boolean;
|
|
4633
|
-
isAccountingAligned: boolean;
|
|
4634
|
-
openRedeemRequestCount: number;
|
|
4635
|
-
totalAssets: string;
|
|
4636
|
-
totalEarnShares: string;
|
|
4637
|
-
};
|
|
4638
|
-
tvl?: {
|
|
4639
|
-
amount: string;
|
|
4640
|
-
currency: string;
|
|
4641
|
-
decimals: number;
|
|
4642
|
-
formatted: string;
|
|
4643
|
-
} | null | undefined;
|
|
4644
|
-
vaultAddress: `0x${string}`;
|
|
4645
|
-
zone?: {
|
|
4646
|
-
chainId: number;
|
|
4647
|
-
inputTokens: `0x${string}`[];
|
|
4648
|
-
name: string;
|
|
4649
|
-
outputTokens: `0x${string}`[];
|
|
4650
|
-
} | null | undefined;
|
|
4651
|
-
zones?: {
|
|
4652
|
-
chainId: number;
|
|
4653
|
-
deploymentBlock: number;
|
|
4654
|
-
earnRouter: `0x${string}`;
|
|
4655
|
-
inputTokens: `0x${string}`[];
|
|
4656
|
-
name: string;
|
|
4657
|
-
outputTokens: `0x${string}`[];
|
|
4658
|
-
}[] | undefined;
|
|
4659
|
-
engine: {
|
|
4660
|
-
address: `0x${string}`;
|
|
4661
|
-
venue: `0x${string}` | null;
|
|
4662
|
-
type: "erc4626" | "veda";
|
|
4663
|
-
};
|
|
4664
|
-
slug: string;
|
|
4665
|
-
verified: true;
|
|
4666
|
-
}[];
|
|
4667
|
-
meta?: {
|
|
4668
|
-
valuation: {
|
|
4669
|
-
asOf: string;
|
|
4670
|
-
basis: 'nominal';
|
|
4671
|
-
source: string;
|
|
4672
|
-
};
|
|
4673
|
-
};
|
|
4674
|
-
nextCursor: string | null;
|
|
4675
|
-
}>;
|
|
4676
|
-
export declare namespace listVerifiedVaults {
|
|
4677
|
-
/** One verified vault and its current onchain state. */
|
|
4678
|
-
type Match = {
|
|
4679
|
-
discovery: EarnVaults.Discovery;
|
|
4680
|
-
record: RegistryRecord;
|
|
4681
|
-
zoneRoutes: readonly EarnVaults.ResolvedZoneRoute[];
|
|
4682
|
-
};
|
|
4683
|
-
/** Options for listing verified Earn vaults. */
|
|
4684
|
-
type Options = z.output<typeof schema.getVerifiedEarnVaults.Query> & {
|
|
4685
|
-
chainId: z.output<typeof Schema.ChainId>;
|
|
4686
|
-
/** FX rate oracle backing TVL valuation. */
|
|
4687
|
-
oracle: FxOracle.Oracle;
|
|
4688
|
-
};
|
|
4689
|
-
}
|
|
4690
3508
|
/** Reads daily historical share prices for one Earn vault. */
|
|
4691
3509
|
export declare function getVaultSharePrices(c: Context<App.Environment>, options: getVaultSharePrices.Options): Promise<{
|
|
4692
3510
|
sharePrice: {
|
|
@@ -4942,7 +3760,6 @@ export declare function getVault(c: Context<App.Environment>, options: getVault.
|
|
|
4942
3760
|
redeem: boolean;
|
|
4943
3761
|
routerSwaps: boolean;
|
|
4944
3762
|
} | undefined;
|
|
4945
|
-
description: string | null;
|
|
4946
3763
|
engine: {
|
|
4947
3764
|
address: `0x${string}`;
|
|
4948
3765
|
type: "erc4626" | "veda" | null;
|
|
@@ -4973,7 +3790,6 @@ export declare function getVault(c: Context<App.Environment>, options: getVault.
|
|
|
4973
3790
|
symbol: string;
|
|
4974
3791
|
verified: boolean;
|
|
4975
3792
|
};
|
|
4976
|
-
slug: string | null;
|
|
4977
3793
|
state: {
|
|
4978
3794
|
depositsPaused: boolean;
|
|
4979
3795
|
engineShares: string;
|
|
@@ -5060,7 +3876,7 @@ export declare namespace serializeVault {
|
|
|
5060
3876
|
export declare function matchesVaultFilters(discovery: EarnVaults.Discovery, options: matchesVaultFilters.Options): boolean;
|
|
5061
3877
|
export declare namespace matchesVaultFilters {
|
|
5062
3878
|
/** Filters shared by the all-vault and verified-vault collections. */
|
|
5063
|
-
type Options = Pick<z.output<typeof schema.
|
|
3879
|
+
type Options = Pick<z.output<typeof schema.VaultCollectionQuery>, 'asset' | 'capability' | 'engine.type'>;
|
|
5064
3880
|
}
|
|
5065
3881
|
/** Returns whether a failed read proves the address is not a compatible Earn vault. */
|
|
5066
3882
|
export declare function isIncompatible(cause: unknown): boolean;
|