tapimo 0.0.2 → 0.2.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 +38 -16
- package/dist/ApiKey.d.ts +14 -11
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/ApiKey.js +11 -12
- package/dist/ApiKey.js.map +1 -1
- package/dist/ApiKeys.d.ts +207 -0
- package/dist/ApiKeys.d.ts.map +1 -0
- package/dist/ApiKeys.js +282 -0
- package/dist/ApiKeys.js.map +1 -0
- package/dist/App.d.ts +6771 -3819
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +145 -317
- package/dist/App.js.map +1 -1
- package/dist/Handler.d.ts +86 -0
- package/dist/Handler.d.ts.map +1 -0
- package/dist/Handler.js +83 -0
- package/dist/Handler.js.map +1 -0
- package/dist/Scope.d.ts +14 -4
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +16 -4
- package/dist/Scope.js.map +1 -1
- package/dist/Webhooks.d.ts +5 -7
- package/dist/Webhooks.d.ts.map +1 -1
- package/dist/Webhooks.js +11 -4
- package/dist/Webhooks.js.map +1 -1
- package/dist/admin/Access.d.ts +1 -3
- package/dist/admin/Access.d.ts.map +1 -1
- package/dist/admin/Access.js +1 -3
- package/dist/admin/Access.js.map +1 -1
- package/dist/admin/App.d.ts +167 -205
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +2 -4
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +105 -5
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +75 -9
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/scopes.d.ts +6 -0
- package/dist/admin/apps/scopes.d.ts.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +35 -149
- package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
- package/dist/admin/apps/verified-tokens.js +18 -39
- package/dist/admin/apps/verified-tokens.js.map +1 -1
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.js +1 -1
- package/dist/apps/data/App.d.ts +19176 -0
- package/dist/apps/data/App.d.ts.map +1 -0
- package/dist/apps/data/App.js +236 -0
- package/dist/apps/data/App.js.map +1 -0
- package/dist/apps/data/index.d.ts +3 -0
- package/dist/apps/data/index.d.ts.map +1 -0
- package/dist/apps/data/index.js +3 -0
- package/dist/apps/data/index.js.map +1 -0
- package/dist/apps/{activities.d.ts → data/routes/activities.d.ts} +32 -32
- package/dist/apps/{activities.d.ts.map → data/routes/activities.d.ts.map} +1 -1
- package/dist/apps/{activities.js → data/routes/activities.js} +13 -13
- package/dist/apps/data/routes/activities.js.map +1 -0
- package/dist/apps/{addresses.d.ts → data/routes/addresses.d.ts} +22 -22
- package/dist/apps/{addresses.d.ts.map → data/routes/addresses.d.ts.map} +1 -1
- package/dist/apps/{addresses.js → data/routes/addresses.js} +5 -5
- package/dist/apps/data/routes/addresses.js.map +1 -0
- package/dist/apps/{balances.d.ts → data/routes/balances.d.ts} +49 -49
- package/dist/apps/data/routes/balances.d.ts.map +1 -0
- package/dist/apps/{balances.js → data/routes/balances.js} +42 -11
- package/dist/apps/data/routes/balances.js.map +1 -0
- package/dist/apps/{blocks.d.ts → data/routes/blocks.d.ts} +47 -47
- package/dist/apps/data/routes/blocks.d.ts.map +1 -0
- package/dist/apps/{blocks.js → data/routes/blocks.js} +13 -13
- package/dist/apps/data/routes/blocks.js.map +1 -0
- package/dist/apps/{coingecko.d.ts → data/routes/coingecko.d.ts} +183 -183
- package/dist/apps/data/routes/coingecko.d.ts.map +1 -0
- package/dist/apps/{coingecko.js → data/routes/coingecko.js} +13 -13
- package/dist/apps/data/routes/coingecko.js.map +1 -0
- package/dist/apps/{exchanges.d.ts → data/routes/exchanges.d.ts} +460 -460
- package/dist/apps/data/routes/exchanges.d.ts.map +1 -0
- package/dist/apps/{exchanges.js → data/routes/exchanges.js} +19 -19
- package/dist/apps/data/routes/exchanges.js.map +1 -0
- package/dist/apps/{fee-amm.d.ts → data/routes/fee-amm.d.ts} +94 -94
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -0
- package/dist/apps/{fee-amm.js → data/routes/fee-amm.js} +17 -17
- package/dist/apps/data/routes/fee-amm.js.map +1 -0
- package/dist/apps/{indexer.d.ts → data/routes/indexer.d.ts} +4 -4
- package/dist/apps/data/routes/indexer.d.ts.map +1 -0
- package/dist/apps/{indexer.js → data/routes/indexer.js} +13 -9
- package/dist/apps/data/routes/indexer.js.map +1 -0
- package/dist/apps/{receipts.d.ts → data/routes/receipts.d.ts} +6 -6
- package/dist/apps/data/routes/receipts.d.ts.map +1 -0
- package/dist/apps/{receipts.js → data/routes/receipts.js} +12 -12
- package/dist/apps/data/routes/receipts.js.map +1 -0
- package/dist/apps/{rpc.d.ts → data/routes/rpc.d.ts} +4 -4
- package/dist/apps/data/routes/rpc.d.ts.map +1 -0
- package/dist/apps/{rpc.js → data/routes/rpc.js} +6 -6
- package/dist/apps/data/routes/rpc.js.map +1 -0
- package/dist/apps/{tokenlist.d.ts → data/routes/tokenlist.d.ts} +4 -4
- package/dist/apps/data/routes/tokenlist.d.ts.map +1 -0
- package/dist/apps/{tokenlist.js → data/routes/tokenlist.js} +8 -8
- package/dist/apps/data/routes/tokenlist.js.map +1 -0
- package/dist/apps/{tokens.d.ts → data/routes/tokens.d.ts} +11 -11
- package/dist/apps/data/routes/tokens.d.ts.map +1 -0
- package/dist/apps/{tokens.js → data/routes/tokens.js} +19 -19
- package/dist/apps/data/routes/tokens.js.map +1 -0
- package/dist/apps/{transactions.d.ts → data/routes/transactions.d.ts} +288 -288
- package/dist/apps/data/routes/transactions.d.ts.map +1 -0
- package/dist/apps/{transactions.js → data/routes/transactions.js} +13 -13
- package/dist/apps/data/routes/transactions.js.map +1 -0
- package/dist/apps/{transfers.d.ts → data/routes/transfers.d.ts} +35 -35
- package/dist/apps/data/routes/transfers.d.ts.map +1 -0
- package/dist/apps/{transfers.js → data/routes/transfers.js} +13 -13
- package/dist/apps/data/routes/transfers.js.map +1 -0
- package/dist/apps/{verified-tokens.d.ts → data/routes/verified-tokens.d.ts} +42 -42
- package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -0
- package/dist/apps/{verified-tokens.js → data/routes/verified-tokens.js} +9 -9
- package/dist/apps/data/routes/verified-tokens.js.map +1 -0
- package/dist/apps/{webhooks.d.ts → data/routes/webhooks.d.ts} +66 -63
- package/dist/apps/{webhooks.d.ts.map → data/routes/webhooks.d.ts.map} +1 -1
- package/dist/apps/{webhooks.js → data/routes/webhooks.js} +67 -59
- package/dist/apps/data/routes/webhooks.js.map +1 -0
- package/dist/apps/docs/App.d.ts +27 -0
- package/dist/apps/docs/App.d.ts.map +1 -0
- package/dist/apps/docs/App.js +122 -0
- package/dist/apps/docs/App.js.map +1 -0
- package/dist/{internal/OpenApi.fonts.d.ts → apps/docs/fonts.d.ts} +1 -1
- package/dist/apps/docs/fonts.d.ts.map +1 -0
- package/dist/{internal/OpenApi.fonts.js → apps/docs/fonts.js} +1 -1
- package/dist/apps/docs/fonts.js.map +1 -0
- package/dist/apps/docs/index.d.ts +2 -0
- package/dist/apps/docs/index.d.ts.map +1 -0
- package/dist/apps/docs/index.js +2 -0
- package/dist/apps/docs/index.js.map +1 -0
- package/dist/{internal/OpenApi.logo.d.ts → apps/docs/logo.d.ts} +1 -1
- package/dist/apps/docs/logo.d.ts.map +1 -0
- package/dist/{internal/OpenApi.logo.js → apps/docs/logo.js} +1 -1
- package/dist/apps/docs/logo.js.map +1 -0
- package/dist/apps/index.d.ts +4 -0
- package/dist/apps/index.d.ts.map +1 -0
- package/dist/apps/index.js +4 -0
- package/dist/apps/index.js.map +1 -0
- package/dist/apps/metadata.d.ts +7 -0
- package/dist/apps/metadata.d.ts.map +1 -0
- package/dist/apps/metadata.js +15 -0
- package/dist/apps/metadata.js.map +1 -0
- package/dist/apps/platform/App.d.ts +2985 -0
- package/dist/apps/platform/App.d.ts.map +1 -0
- package/dist/apps/platform/App.js +74 -0
- package/dist/apps/platform/App.js.map +1 -0
- package/dist/apps/platform/index.d.ts +2 -0
- package/dist/apps/platform/index.d.ts.map +1 -0
- package/dist/apps/platform/index.js +2 -0
- package/dist/apps/platform/index.js.map +1 -0
- package/dist/apps/platform/routes/api-keys.d.ts +681 -0
- package/dist/apps/platform/routes/api-keys.d.ts.map +1 -0
- package/dist/apps/platform/routes/api-keys.js +328 -0
- package/dist/apps/platform/routes/api-keys.js.map +1 -0
- package/dist/apps/platform/routes/invitations.d.ts +733 -0
- package/dist/apps/platform/routes/invitations.d.ts.map +1 -0
- package/dist/apps/platform/routes/invitations.js +413 -0
- package/dist/apps/platform/routes/invitations.js.map +1 -0
- package/dist/apps/platform/routes/me.d.ts +95 -0
- package/dist/apps/platform/routes/me.d.ts.map +1 -0
- package/dist/apps/platform/routes/me.js +81 -0
- package/dist/apps/platform/routes/me.js.map +1 -0
- package/dist/apps/platform/routes/members.d.ts +554 -0
- package/dist/apps/platform/routes/members.d.ts.map +1 -0
- package/dist/apps/platform/routes/members.js +251 -0
- package/dist/apps/platform/routes/members.js.map +1 -0
- package/dist/apps/platform/routes/orgs.d.ts +582 -0
- package/dist/apps/platform/routes/orgs.d.ts.map +1 -0
- package/dist/apps/platform/routes/orgs.js +265 -0
- package/dist/apps/platform/routes/orgs.js.map +1 -0
- package/dist/apps/platform/routes/projects.d.ts +740 -0
- package/dist/apps/platform/routes/projects.d.ts.map +1 -0
- package/dist/apps/platform/routes/projects.js +286 -0
- package/dist/apps/platform/routes/projects.js.map +1 -0
- package/dist/apps/relay/App.d.ts +41 -0
- package/dist/apps/relay/App.d.ts.map +1 -0
- package/dist/apps/relay/App.js +103 -0
- package/dist/apps/relay/App.js.map +1 -0
- package/dist/apps/relay/Sponsorships.d.ts +107 -0
- package/dist/apps/relay/Sponsorships.d.ts.map +1 -0
- package/dist/apps/relay/Sponsorships.js +193 -0
- package/dist/apps/relay/Sponsorships.js.map +1 -0
- package/dist/apps/relay/index.d.ts +3 -0
- package/dist/apps/relay/index.d.ts.map +1 -0
- package/dist/apps/relay/index.js +3 -0
- package/dist/apps/relay/index.js.map +1 -0
- package/dist/{Cli.d.ts → cli/Cli.d.ts} +13 -2
- package/dist/cli/Cli.d.ts.map +1 -0
- package/dist/cli/Cli.js +19 -0
- package/dist/cli/Cli.js.map +1 -0
- package/dist/cli/bin.d.ts +3 -0
- package/dist/cli/bin.d.ts.map +1 -0
- package/dist/cli/bin.js +4 -0
- package/dist/cli/bin.js.map +1 -0
- package/dist/cli/commands/admin.d.ts +15 -0
- package/dist/cli/commands/admin.d.ts.map +1 -0
- package/dist/cli/commands/admin.js +60 -0
- package/dist/cli/commands/admin.js.map +1 -0
- package/dist/cloudflare.d.ts +7 -0
- package/dist/cloudflare.d.ts.map +1 -1
- package/dist/cloudflare.js +9 -0
- package/dist/cloudflare.js.map +1 -1
- package/dist/db/Db.d.ts +113 -0
- package/dist/db/Db.d.ts.map +1 -0
- package/dist/db/Db.js +402 -0
- package/dist/db/Db.js.map +1 -0
- package/dist/db/Schema.d.ts +168 -0
- package/dist/db/Schema.d.ts.map +1 -0
- package/dist/db/Schema.js +229 -0
- package/dist/db/Schema.js.map +1 -0
- package/dist/db/tables/invitations.d.ts +84 -0
- package/dist/db/tables/invitations.d.ts.map +1 -0
- package/dist/db/tables/invitations.js +165 -0
- package/dist/db/tables/invitations.js.map +1 -0
- package/dist/db/tables/memberships.d.ts +108 -0
- package/dist/db/tables/memberships.d.ts.map +1 -0
- package/dist/db/tables/memberships.js +153 -0
- package/dist/db/tables/memberships.js.map +1 -0
- package/dist/db/tables/organizations.d.ts +123 -0
- package/dist/db/tables/organizations.d.ts.map +1 -0
- package/dist/db/tables/organizations.js +170 -0
- package/dist/db/tables/organizations.js.map +1 -0
- package/dist/db/tables/projects.d.ts +65 -0
- package/dist/db/tables/projects.d.ts.map +1 -0
- package/dist/db/tables/projects.js +75 -0
- package/dist/db/tables/projects.js.map +1 -0
- package/dist/db/tables/sponsoredTransactions.d.ts +120 -0
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -0
- package/dist/db/tables/sponsoredTransactions.js +161 -0
- package/dist/db/tables/sponsoredTransactions.js.map +1 -0
- package/dist/db/tables/users.d.ts +48 -0
- package/dist/db/tables/users.d.ts.map +1 -0
- package/dist/db/tables/users.js +65 -0
- package/dist/db/tables/users.js.map +1 -0
- package/dist/db/tables/verifiedTokens.d.ts +53 -0
- package/dist/db/tables/verifiedTokens.d.ts.map +1 -0
- package/dist/db/tables/verifiedTokens.js +74 -0
- package/dist/db/tables/verifiedTokens.js.map +1 -0
- package/dist/db/tables/webhookDeliveries.d.ts +71 -0
- package/dist/db/tables/webhookDeliveries.d.ts.map +1 -0
- package/dist/db/tables/webhookDeliveries.js +119 -0
- package/dist/db/tables/webhookDeliveries.js.map +1 -0
- package/dist/db/tables/webhookSubscriptions.d.ts +158 -0
- package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -0
- package/dist/db/tables/webhookSubscriptions.js +272 -0
- package/dist/db/tables/webhookSubscriptions.js.map +1 -0
- package/dist/handlers/internal/executionError.d.ts +25 -0
- package/dist/handlers/internal/executionError.d.ts.map +1 -0
- package/dist/handlers/internal/executionError.js +186 -0
- package/dist/handlers/internal/executionError.js.map +1 -0
- package/dist/handlers/internal/multisig.d.ts +233 -0
- package/dist/handlers/internal/multisig.d.ts.map +1 -0
- package/dist/handlers/internal/multisig.js +542 -0
- package/dist/handlers/internal/multisig.js.map +1 -0
- package/dist/handlers/internal/requestListener.d.ts +124 -0
- package/dist/handlers/internal/requestListener.d.ts.map +1 -0
- package/dist/handlers/internal/requestListener.js +173 -0
- package/dist/handlers/internal/requestListener.js.map +1 -0
- package/dist/handlers/internal/sponsorship.d.ts +113 -0
- package/dist/handlers/internal/sponsorship.d.ts.map +1 -0
- package/dist/handlers/internal/sponsorship.js +128 -0
- package/dist/handlers/internal/sponsorship.js.map +1 -0
- package/dist/handlers/internal/types.d.ts +284 -0
- package/dist/handlers/internal/types.d.ts.map +1 -0
- package/dist/handlers/internal/types.js +2 -0
- package/dist/handlers/internal/types.js.map +1 -0
- package/dist/handlers/internal/utils.d.ts +34 -0
- package/dist/handlers/internal/utils.d.ts.map +1 -0
- package/dist/handlers/internal/utils.js +131 -0
- package/dist/handlers/internal/utils.js.map +1 -0
- package/dist/handlers/relay.d.ts +123 -0
- package/dist/handlers/relay.d.ts.map +1 -0
- package/dist/handlers/relay.js +1278 -0
- package/dist/handlers/relay.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/internal/Auth.d.ts +224 -16
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +572 -33
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Log.d.ts +7 -3
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +4 -0
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/OpenApi.d.ts +0 -19
- package/dist/internal/OpenApi.d.ts.map +1 -1
- package/dist/internal/OpenApi.js +0 -57
- package/dist/internal/OpenApi.js.map +1 -1
- package/dist/internal/RpcSchema.d.ts +10 -0
- package/dist/internal/RpcSchema.d.ts.map +1 -0
- package/dist/internal/RpcSchema.js +2 -0
- package/dist/internal/RpcSchema.js.map +1 -0
- package/dist/internal/Store.d.ts +49 -4
- package/dist/internal/Store.d.ts.map +1 -1
- package/dist/internal/Store.js +81 -5
- package/dist/internal/Store.js.map +1 -1
- package/dist/internal/VerifiedTokens.d.ts +15 -34
- package/dist/internal/VerifiedTokens.d.ts.map +1 -1
- package/dist/internal/VerifiedTokens.js +115 -159
- package/dist/internal/VerifiedTokens.js.map +1 -1
- package/dist/internal/Viem.d.ts +84 -0
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Webhooks.d.ts +50 -36
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +92 -205
- package/dist/internal/Webhooks.js.map +1 -1
- package/package.json +37 -6
- package/src/ApiKey.test.ts +3 -3
- package/src/ApiKey.ts +11 -12
- package/src/ApiKeys.test.ts +278 -0
- package/src/ApiKeys.ts +358 -0
- package/src/App.test-d.ts +1 -1
- package/src/App.test.ts +40508 -19083
- package/src/App.ts +239 -416
- package/src/Client.test-d.ts +307 -16
- package/src/Handler.ts +154 -0
- package/src/Scope.ts +17 -4
- package/src/Webhooks.test.ts +8 -7
- package/src/Webhooks.ts +13 -7
- package/src/admin/Access.ts +1 -3
- package/src/admin/App.ts +19 -24
- package/src/admin/apps/api-keys.test.ts +70 -18
- package/src/admin/apps/api-keys.ts +92 -9
- package/src/admin/apps/scopes.test.ts +8 -0
- package/src/admin/apps/verified-tokens.test.ts +3 -30
- package/src/admin/apps/verified-tokens.ts +18 -37
- package/src/admin/ui.generated.ts +1 -1
- package/src/apps/composition.test.ts +66 -0
- package/src/apps/data/App.ts +295 -0
- package/src/apps/data/index.ts +2 -0
- package/src/apps/{activities.test.ts → data/routes/activities.test.ts} +3 -3
- package/src/apps/{activities.ts → data/routes/activities.ts} +15 -15
- package/src/apps/{addresses.ts → data/routes/addresses.ts} +6 -6
- package/src/apps/{balances.test.ts → data/routes/balances.test.ts} +6 -5
- package/src/apps/{balances.ts → data/routes/balances.ts} +46 -12
- package/src/apps/{blocks.test.ts → data/routes/blocks.test.ts} +4 -4
- package/src/apps/{blocks.ts → data/routes/blocks.ts} +14 -14
- package/src/apps/{coingecko.test.ts → data/routes/coingecko.test.ts} +2 -2
- package/src/apps/{coingecko.ts → data/routes/coingecko.ts} +14 -14
- package/src/apps/{exchanges.test.ts → data/routes/exchanges.test.ts} +2 -2
- package/src/apps/{exchanges.ts → data/routes/exchanges.ts} +20 -20
- package/src/apps/{fee-amm.test.ts → data/routes/fee-amm.test.ts} +3 -3
- package/src/apps/{fee-amm.ts → data/routes/fee-amm.ts} +18 -18
- package/src/apps/{indexer.test.ts → data/routes/indexer.test.ts} +27 -6
- package/src/apps/{indexer.ts → data/routes/indexer.ts} +13 -10
- package/src/apps/{receipts.test.ts → data/routes/receipts.test.ts} +4 -4
- package/src/apps/{receipts.ts → data/routes/receipts.ts} +13 -13
- package/src/apps/{rpc.test.ts → data/routes/rpc.test.ts} +142 -13
- package/src/apps/{rpc.ts → data/routes/rpc.ts} +7 -7
- package/src/apps/{tokenlist.test.ts → data/routes/tokenlist.test.ts} +8 -10
- package/src/apps/{tokenlist.ts → data/routes/tokenlist.ts} +9 -9
- package/src/apps/{tokens.test.ts → data/routes/tokens.test.ts} +6 -5
- package/src/apps/{tokens.ts → data/routes/tokens.ts} +20 -20
- package/src/apps/{transactions.test.ts → data/routes/transactions.test.ts} +4 -4
- package/src/apps/{transactions.ts → data/routes/transactions.ts} +15 -15
- package/src/apps/{transfers.test.ts → data/routes/transfers.test.ts} +3 -3
- package/src/apps/{transfers.ts → data/routes/transfers.ts} +15 -15
- package/src/apps/{verified-tokens.test.ts → data/routes/verified-tokens.test.ts} +27 -15
- package/src/apps/{verified-tokens.ts → data/routes/verified-tokens.ts} +10 -10
- package/src/apps/{webhooks.test.ts → data/routes/webhooks.test.ts} +137 -150
- package/src/apps/{webhooks.ts → data/routes/webhooks.ts} +83 -81
- package/src/apps/docs/App.ts +136 -0
- package/src/apps/docs/index.ts +1 -0
- package/src/apps/index.ts +3 -0
- package/src/apps/metadata.ts +23 -0
- package/src/apps/platform/App.ts +130 -0
- package/src/apps/platform/index.ts +1 -0
- package/src/apps/platform/routes/api-keys.test.ts +330 -0
- package/src/apps/platform/routes/api-keys.ts +427 -0
- package/src/apps/platform/routes/invitations.test.ts +361 -0
- package/src/apps/platform/routes/invitations.ts +519 -0
- package/src/apps/platform/routes/me.test.ts +121 -0
- package/src/apps/platform/routes/me.ts +106 -0
- package/src/apps/platform/routes/members.test.ts +195 -0
- package/src/apps/platform/routes/members.ts +313 -0
- package/src/apps/platform/routes/orgs.test.ts +313 -0
- package/src/apps/platform/routes/orgs.ts +343 -0
- package/src/apps/platform/routes/projects.test.ts +181 -0
- package/src/apps/platform/routes/projects.ts +367 -0
- package/src/apps/relay/App.test.ts +484 -0
- package/src/apps/relay/App.ts +128 -0
- package/src/apps/relay/Sponsorships.test.ts +375 -0
- package/src/apps/relay/Sponsorships.ts +305 -0
- package/src/apps/relay/index.ts +2 -0
- package/src/{Cli.test.ts → cli/Cli.test.ts} +10 -9
- package/src/{Cli.ts → cli/Cli.ts} +16 -9
- package/src/cli/bin.ts +4 -0
- package/src/cli/commands/admin.test.ts +71 -0
- package/src/cli/commands/admin.ts +60 -0
- package/src/cloudflare.ts +10 -0
- package/src/db/Db.test.ts +84 -0
- package/src/db/Db.ts +542 -0
- package/src/db/Schema.ts +301 -0
- package/src/db/tables/invitations.ts +198 -0
- package/src/db/tables/memberships.ts +208 -0
- package/src/db/tables/organizations.test.ts +160 -0
- package/src/db/tables/organizations.ts +232 -0
- package/src/db/tables/projects.ts +107 -0
- package/src/db/tables/sponsoredTransactions.test.ts +218 -0
- package/src/db/tables/sponsoredTransactions.ts +236 -0
- package/src/db/tables/users.ts +85 -0
- package/src/db/tables/verifiedTokens.ts +111 -0
- package/src/db/tables/webhookDeliveries.ts +159 -0
- package/src/db/tables/webhookSubscriptions.ts +358 -0
- package/src/handlers/internal/executionError.ts +207 -0
- package/src/handlers/internal/multisig.test.ts +818 -0
- package/src/handlers/internal/multisig.ts +823 -0
- package/src/handlers/internal/requestListener.ts +273 -0
- package/src/handlers/internal/sponsorship.ts +245 -0
- package/src/handlers/internal/types.ts +378 -0
- package/src/handlers/internal/utils.ts +153 -0
- package/src/handlers/relay.test.ts +2035 -0
- package/src/handlers/relay.ts +1623 -0
- package/src/index.ts +4 -2
- package/src/internal/Auth.test.ts +337 -21
- package/src/internal/Auth.ts +783 -44
- package/src/internal/Cursor.test.ts +3 -2
- package/src/internal/Log.test.ts +1 -1
- package/src/internal/Log.ts +11 -3
- package/src/internal/MetricSink.ts +1 -1
- package/src/internal/OpenApi.ts +0 -59
- package/src/internal/RateLimit.test.ts +1 -1
- package/src/internal/RpcSchema.ts +10 -0
- package/src/internal/Store.test.ts +150 -10
- package/src/internal/Store.ts +136 -11
- package/src/internal/Tidx.local.test.ts +1 -1
- package/src/internal/VerifiedTokens.test.ts +99 -115
- package/src/internal/VerifiedTokens.ts +123 -175
- package/src/internal/WebhookDestination.test.ts +1 -1
- package/src/internal/Webhooks.test.ts +111 -111
- package/src/internal/Webhooks.ts +103 -221
- package/dist/ApiKeySource.d.ts +0 -166
- package/dist/ApiKeySource.d.ts.map +0 -1
- package/dist/ApiKeySource.js +0 -234
- package/dist/ApiKeySource.js.map +0 -1
- package/dist/Cli.d.ts.map +0 -1
- package/dist/Cli.js +0 -13
- package/dist/Cli.js.map +0 -1
- package/dist/apps/activities.js.map +0 -1
- package/dist/apps/addresses.js.map +0 -1
- package/dist/apps/balances.d.ts.map +0 -1
- package/dist/apps/balances.js.map +0 -1
- package/dist/apps/blocks.d.ts.map +0 -1
- package/dist/apps/blocks.js.map +0 -1
- package/dist/apps/coingecko.d.ts.map +0 -1
- package/dist/apps/coingecko.js.map +0 -1
- package/dist/apps/exchanges.d.ts.map +0 -1
- package/dist/apps/exchanges.js.map +0 -1
- package/dist/apps/fee-amm.d.ts.map +0 -1
- package/dist/apps/fee-amm.js.map +0 -1
- package/dist/apps/indexer.d.ts.map +0 -1
- package/dist/apps/indexer.js.map +0 -1
- package/dist/apps/receipts.d.ts.map +0 -1
- package/dist/apps/receipts.js.map +0 -1
- package/dist/apps/rpc.d.ts.map +0 -1
- package/dist/apps/rpc.js.map +0 -1
- package/dist/apps/tokenlist.d.ts.map +0 -1
- package/dist/apps/tokenlist.js.map +0 -1
- package/dist/apps/tokens.d.ts.map +0 -1
- package/dist/apps/tokens.js.map +0 -1
- package/dist/apps/transactions.d.ts.map +0 -1
- package/dist/apps/transactions.js.map +0 -1
- package/dist/apps/transfers.d.ts.map +0 -1
- package/dist/apps/transfers.js.map +0 -1
- package/dist/apps/verified-tokens.d.ts.map +0 -1
- package/dist/apps/verified-tokens.js.map +0 -1
- package/dist/apps/webhooks.js.map +0 -1
- package/dist/internal/OpenApi.fonts.d.ts.map +0 -1
- package/dist/internal/OpenApi.fonts.js.map +0 -1
- package/dist/internal/OpenApi.logo.d.ts.map +0 -1
- package/dist/internal/OpenApi.logo.js.map +0 -1
- package/seeds/31318/icons/0x20c0000000000000000000000000000000000000.svg +0 -1
- package/seeds/31318/icons/0x20c0000000000000000000000000000000000001.svg +0 -1
- package/seeds/31318/icons/0x20c0000000000000000000000000000000000002.svg +0 -1
- package/seeds/31318/icons/0x20c0000000000000000000000000000000000003.svg +0 -1
- package/seeds/31318/verified-tokens.json +0 -30
- package/seeds/4217/icons/0x20c0000000000000000000000000000000000000.svg +0 -25
- package/seeds/4217/icons/0x20c000000000000000000000048c8f36df1c9a4a.svg +0 -1
- package/seeds/4217/icons/0x20c0000000000000000000000520792dcccccccc.svg +0 -1
- package/seeds/4217/icons/0x20c0000000000000000000000a6da882d075a4c3.svg +0 -4
- package/seeds/4217/icons/0x20c000000000000000000000111111111e910f0f.svg +0 -30
- package/seeds/4217/icons/0x20c00000000000000000000014f22ca97301eb73.svg +0 -1
- package/seeds/4217/icons/0x20c0000000000000000000001621e21f71cf12fb.svg +0 -1
- package/seeds/4217/icons/0x20c0000000000000000000002f52d5cc21a3207b.svg +0 -1
- package/seeds/4217/icons/0x20c0000000000000000000003158081efd85bfc2.svg +0 -11
- package/seeds/4217/icons/0x20c0000000000000000000003554d28269e0f3c2.svg +0 -1
- package/seeds/4217/icons/0x20c000000000000000000000383a23bacb546ab9.svg +0 -1
- package/seeds/4217/icons/0x20c00000000000000000000042109aef2f8b28e1.png +0 -0
- package/seeds/4217/icons/0x20c0000000000000000000005c0bac7cef389a11.svg +0 -1
- package/seeds/4217/icons/0x20c0000000000000000000006fd9a167923ba194.png +0 -0
- package/seeds/4217/icons/0x20c0000000000000000000007f7ba549dd0251b9.svg +0 -1
- package/seeds/4217/icons/0x20c0000000000000000000008191667423f70e67.svg +0 -5
- package/seeds/4217/icons/0x20c0000000000000000000008ee4fcff88888888.svg +0 -1
- package/seeds/4217/icons/0x20c0000000000000000000009a4a4b17e0dc6651.svg +0 -1
- package/seeds/4217/icons/0x20c000000000000000000000ab02d39df30bd17e.svg +0 -1
- package/seeds/4217/icons/0x20c000000000000000000000ae247a1130450f09.svg +0 -1
- package/seeds/4217/icons/0x20c000000000000000000000aeed2ec36a54d0e5.svg +0 -1
- package/seeds/4217/icons/0x20c000000000000000000000b9537d11c60e8b50.svg +0 -1
- package/seeds/4217/icons/0x20c000000000000000000000bd95bfb69fbe6ce3.svg +0 -1
- package/seeds/4217/icons/0x20c000000000000000000000c412ec89d0c08be5.svg +0 -1
- package/seeds/4217/icons/0x20c000000000000000000000f047dd7018e50367.png +0 -0
- package/seeds/4217/verified-tokens.json +0 -177
- package/seeds/42431/icons/0x20c0000000000000000000000000000000000000.svg +0 -25
- package/seeds/42431/icons/0x20c0000000000000000000000000000000000001.svg +0 -1
- package/seeds/42431/icons/0x20c0000000000000000000000000000000000002.svg +0 -1
- package/seeds/42431/icons/0x20c0000000000000000000000000000000000003.svg +0 -1
- package/seeds/42431/icons/0x20c0000000000000000000009e8d7eb59b783726.svg +0 -1
- package/seeds/42431/icons/0x20c000000000000000000000d72572838bbee59c.svg +0 -1
- package/seeds/42431/verified-tokens.json +0 -44
- package/seeds/openrpc/README.md +0 -27
- package/seeds/openrpc/execution-apis.json +0 -8989
- package/src/ApiKeySource.test-d.ts +0 -11
- package/src/ApiKeySource.test.ts +0 -295
- package/src/ApiKeySource.ts +0 -303
- /package/src/{internal/OpenApi.fonts.ts → apps/docs/fonts.ts} +0 -0
- /package/src/{internal/OpenApi.logo.ts → apps/docs/logo.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Context } from 'hono';
|
|
2
2
|
import * as z from 'zod/mini';
|
|
3
|
-
import type * as App from '
|
|
4
|
-
import * as Response from '
|
|
5
|
-
import * as Schema from '
|
|
3
|
+
import type * as App from '../../../App.js';
|
|
4
|
+
import * as Response from '../../../internal/Response.js';
|
|
5
|
+
import * as Schema from '../../../internal/Schema.js';
|
|
6
6
|
/** Zod schemas owned by the exchange handlers. */
|
|
7
7
|
export declare namespace schema {
|
|
8
8
|
/**
|
|
@@ -973,11 +973,71 @@ export declare namespace schema {
|
|
|
973
973
|
* DEX-escrow balance is zero are excluded from the liquidity ranking.
|
|
974
974
|
*/
|
|
975
975
|
export declare function exchanges(): import("hono/hono-base").HonoBase<App.Environment, {
|
|
976
|
-
"/swaps": {
|
|
976
|
+
"/v1/exchange/swaps": {
|
|
977
977
|
$get: {
|
|
978
|
-
output:
|
|
979
|
-
|
|
980
|
-
|
|
978
|
+
output: {
|
|
979
|
+
data: {
|
|
980
|
+
blockNumber: number;
|
|
981
|
+
destinationToken: {
|
|
982
|
+
address: `0x${string}`;
|
|
983
|
+
currency?: string | undefined;
|
|
984
|
+
decimals?: number | undefined;
|
|
985
|
+
logoUri?: string | undefined;
|
|
986
|
+
name?: string | undefined;
|
|
987
|
+
symbol?: string | undefined;
|
|
988
|
+
verified?: boolean | undefined;
|
|
989
|
+
amount: string;
|
|
990
|
+
};
|
|
991
|
+
filledAt: string;
|
|
992
|
+
fills: {
|
|
993
|
+
destinationToken: {
|
|
994
|
+
address: `0x${string}`;
|
|
995
|
+
currency?: string | undefined;
|
|
996
|
+
decimals?: number | undefined;
|
|
997
|
+
logoUri?: string | undefined;
|
|
998
|
+
name?: string | undefined;
|
|
999
|
+
symbol?: string | undefined;
|
|
1000
|
+
verified?: boolean | undefined;
|
|
1001
|
+
amount: string;
|
|
1002
|
+
};
|
|
1003
|
+
logIndex: number;
|
|
1004
|
+
maker: `0x${string}`;
|
|
1005
|
+
orderId: string;
|
|
1006
|
+
partialFill: boolean;
|
|
1007
|
+
price: string;
|
|
1008
|
+
sourceToken: {
|
|
1009
|
+
address: `0x${string}`;
|
|
1010
|
+
currency?: string | undefined;
|
|
1011
|
+
decimals?: number | undefined;
|
|
1012
|
+
logoUri?: string | undefined;
|
|
1013
|
+
name?: string | undefined;
|
|
1014
|
+
symbol?: string | undefined;
|
|
1015
|
+
verified?: boolean | undefined;
|
|
1016
|
+
amount: string;
|
|
1017
|
+
};
|
|
1018
|
+
}[];
|
|
1019
|
+
id: string;
|
|
1020
|
+
logIndex: number;
|
|
1021
|
+
mode: "exactDestination" | "exactSource" | null;
|
|
1022
|
+
rate: string;
|
|
1023
|
+
route: `0x${string}`[];
|
|
1024
|
+
sourceToken: {
|
|
1025
|
+
address: `0x${string}`;
|
|
1026
|
+
currency?: string | undefined;
|
|
1027
|
+
decimals?: number | undefined;
|
|
1028
|
+
logoUri?: string | undefined;
|
|
1029
|
+
name?: string | undefined;
|
|
1030
|
+
symbol?: string | undefined;
|
|
1031
|
+
verified?: boolean | undefined;
|
|
1032
|
+
amount: string;
|
|
1033
|
+
};
|
|
1034
|
+
taker: `0x${string}`;
|
|
1035
|
+
transactionHash: `0x${string}`;
|
|
1036
|
+
}[];
|
|
1037
|
+
nextCursor: string | null;
|
|
1038
|
+
};
|
|
1039
|
+
outputFormat: "json";
|
|
1040
|
+
status: 200;
|
|
981
1041
|
input: {
|
|
982
1042
|
query?: {
|
|
983
1043
|
'blockNumber.from'?: string | string[];
|
|
@@ -998,14 +1058,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
998
1058
|
} | {
|
|
999
1059
|
output: {
|
|
1000
1060
|
error: {
|
|
1001
|
-
code: "
|
|
1061
|
+
code: "api_key_malformed";
|
|
1002
1062
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1003
1063
|
message: string;
|
|
1004
1064
|
};
|
|
1005
1065
|
requestId: string;
|
|
1006
1066
|
};
|
|
1007
1067
|
outputFormat: "json";
|
|
1008
|
-
status:
|
|
1068
|
+
status: 400;
|
|
1009
1069
|
input: {
|
|
1010
1070
|
query?: {
|
|
1011
1071
|
'blockNumber.from'?: string | string[];
|
|
@@ -1026,7 +1086,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1026
1086
|
} | {
|
|
1027
1087
|
output: {
|
|
1028
1088
|
error: {
|
|
1029
|
-
code: "
|
|
1089
|
+
code: "query_invalid";
|
|
1030
1090
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1031
1091
|
message: string;
|
|
1032
1092
|
};
|
|
@@ -1079,6 +1139,27 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1079
1139
|
transactionHash?: string | string[];
|
|
1080
1140
|
} | undefined;
|
|
1081
1141
|
};
|
|
1142
|
+
} | {
|
|
1143
|
+
output: null;
|
|
1144
|
+
outputFormat: "body";
|
|
1145
|
+
status: 402;
|
|
1146
|
+
input: {
|
|
1147
|
+
query?: {
|
|
1148
|
+
'blockNumber.from'?: string | string[];
|
|
1149
|
+
'blockNumber.to'?: string | string[];
|
|
1150
|
+
chainId?: string | string[];
|
|
1151
|
+
cursor?: string | string[];
|
|
1152
|
+
include?: string | string[];
|
|
1153
|
+
limit?: string | string[];
|
|
1154
|
+
maker?: string | string[];
|
|
1155
|
+
order?: string | string[];
|
|
1156
|
+
participant?: string | string[];
|
|
1157
|
+
taker?: string | string[];
|
|
1158
|
+
'timestamp.from'?: string | string[];
|
|
1159
|
+
'timestamp.to'?: string | string[];
|
|
1160
|
+
transactionHash?: string | string[];
|
|
1161
|
+
} | undefined;
|
|
1162
|
+
};
|
|
1082
1163
|
} | {
|
|
1083
1164
|
output: {
|
|
1084
1165
|
error: {
|
|
@@ -1138,14 +1219,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1138
1219
|
} | {
|
|
1139
1220
|
output: {
|
|
1140
1221
|
error: {
|
|
1141
|
-
code: "
|
|
1222
|
+
code: "upstream_error";
|
|
1142
1223
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1143
1224
|
message: string;
|
|
1144
1225
|
};
|
|
1145
1226
|
requestId: string;
|
|
1146
1227
|
};
|
|
1147
1228
|
outputFormat: "json";
|
|
1148
|
-
status:
|
|
1229
|
+
status: 502;
|
|
1149
1230
|
input: {
|
|
1150
1231
|
query?: {
|
|
1151
1232
|
'blockNumber.from'?: string | string[];
|
|
@@ -1163,11 +1244,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1163
1244
|
transactionHash?: string | string[];
|
|
1164
1245
|
} | undefined;
|
|
1165
1246
|
};
|
|
1166
|
-
}
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
} & {
|
|
1250
|
+
"/v1/exchange/pairs": {
|
|
1251
|
+
$get: {
|
|
1167
1252
|
output: {
|
|
1168
1253
|
data: {
|
|
1169
|
-
|
|
1170
|
-
destinationToken: {
|
|
1254
|
+
base: {
|
|
1171
1255
|
address: `0x${string}`;
|
|
1172
1256
|
currency?: string | undefined;
|
|
1173
1257
|
decimals?: number | undefined;
|
|
@@ -1175,42 +1259,12 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1175
1259
|
name?: string | undefined;
|
|
1176
1260
|
symbol?: string | undefined;
|
|
1177
1261
|
verified?: boolean | undefined;
|
|
1178
|
-
amount: string;
|
|
1179
1262
|
};
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
decimals?: number | undefined;
|
|
1186
|
-
logoUri?: string | undefined;
|
|
1187
|
-
name?: string | undefined;
|
|
1188
|
-
symbol?: string | undefined;
|
|
1189
|
-
verified?: boolean | undefined;
|
|
1190
|
-
amount: string;
|
|
1191
|
-
};
|
|
1192
|
-
logIndex: number;
|
|
1193
|
-
maker: `0x${string}`;
|
|
1194
|
-
orderId: string;
|
|
1195
|
-
partialFill: boolean;
|
|
1196
|
-
price: string;
|
|
1197
|
-
sourceToken: {
|
|
1198
|
-
address: `0x${string}`;
|
|
1199
|
-
currency?: string | undefined;
|
|
1200
|
-
decimals?: number | undefined;
|
|
1201
|
-
logoUri?: string | undefined;
|
|
1202
|
-
name?: string | undefined;
|
|
1203
|
-
symbol?: string | undefined;
|
|
1204
|
-
verified?: boolean | undefined;
|
|
1205
|
-
amount: string;
|
|
1206
|
-
};
|
|
1207
|
-
}[];
|
|
1208
|
-
id: string;
|
|
1209
|
-
logIndex: number;
|
|
1210
|
-
mode: "exactDestination" | "exactSource" | null;
|
|
1211
|
-
rate: string;
|
|
1212
|
-
route: `0x${string}`[];
|
|
1213
|
-
sourceToken: {
|
|
1263
|
+
blockNumber: number;
|
|
1264
|
+
id: `0x${string}`;
|
|
1265
|
+
key: `0x${string}`;
|
|
1266
|
+
liquidity?: string | undefined;
|
|
1267
|
+
quote: {
|
|
1214
1268
|
address: `0x${string}`;
|
|
1215
1269
|
currency?: string | undefined;
|
|
1216
1270
|
decimals?: number | undefined;
|
|
@@ -1218,40 +1272,18 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1218
1272
|
name?: string | undefined;
|
|
1219
1273
|
symbol?: string | undefined;
|
|
1220
1274
|
verified?: boolean | undefined;
|
|
1221
|
-
amount: string;
|
|
1222
1275
|
};
|
|
1223
|
-
|
|
1276
|
+
timestamp: string;
|
|
1224
1277
|
transactionHash: `0x${string}`;
|
|
1225
1278
|
}[];
|
|
1279
|
+
meta?: {
|
|
1280
|
+
totalCountCapped: boolean;
|
|
1281
|
+
totalCount: number;
|
|
1282
|
+
} | undefined;
|
|
1226
1283
|
nextCursor: string | null;
|
|
1227
1284
|
};
|
|
1228
1285
|
outputFormat: "json";
|
|
1229
1286
|
status: 200;
|
|
1230
|
-
input: {
|
|
1231
|
-
query?: {
|
|
1232
|
-
'blockNumber.from'?: string | string[];
|
|
1233
|
-
'blockNumber.to'?: string | string[];
|
|
1234
|
-
chainId?: string | string[];
|
|
1235
|
-
cursor?: string | string[];
|
|
1236
|
-
include?: string | string[];
|
|
1237
|
-
limit?: string | string[];
|
|
1238
|
-
maker?: string | string[];
|
|
1239
|
-
order?: string | string[];
|
|
1240
|
-
participant?: string | string[];
|
|
1241
|
-
taker?: string | string[];
|
|
1242
|
-
'timestamp.from'?: string | string[];
|
|
1243
|
-
'timestamp.to'?: string | string[];
|
|
1244
|
-
transactionHash?: string | string[];
|
|
1245
|
-
} | undefined;
|
|
1246
|
-
};
|
|
1247
|
-
};
|
|
1248
|
-
};
|
|
1249
|
-
} & {
|
|
1250
|
-
"/pairs": {
|
|
1251
|
-
$get: {
|
|
1252
|
-
output: null;
|
|
1253
|
-
outputFormat: "body";
|
|
1254
|
-
status: 402;
|
|
1255
1287
|
input: {
|
|
1256
1288
|
query?: {
|
|
1257
1289
|
chainId?: string | string[];
|
|
@@ -1266,14 +1298,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1266
1298
|
} | {
|
|
1267
1299
|
output: {
|
|
1268
1300
|
error: {
|
|
1269
|
-
code: "
|
|
1301
|
+
code: "api_key_malformed";
|
|
1270
1302
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1271
1303
|
message: string;
|
|
1272
1304
|
};
|
|
1273
1305
|
requestId: string;
|
|
1274
1306
|
};
|
|
1275
1307
|
outputFormat: "json";
|
|
1276
|
-
status:
|
|
1308
|
+
status: 400;
|
|
1277
1309
|
input: {
|
|
1278
1310
|
query?: {
|
|
1279
1311
|
chainId?: string | string[];
|
|
@@ -1288,7 +1320,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1288
1320
|
} | {
|
|
1289
1321
|
output: {
|
|
1290
1322
|
error: {
|
|
1291
|
-
code: "
|
|
1323
|
+
code: "query_invalid";
|
|
1292
1324
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1293
1325
|
message: string;
|
|
1294
1326
|
};
|
|
@@ -1330,16 +1362,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1330
1362
|
} | undefined;
|
|
1331
1363
|
};
|
|
1332
1364
|
} | {
|
|
1333
|
-
output:
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1337
|
-
message: string;
|
|
1338
|
-
};
|
|
1339
|
-
requestId: string;
|
|
1340
|
-
};
|
|
1341
|
-
outputFormat: "json";
|
|
1342
|
-
status: 403;
|
|
1365
|
+
output: null;
|
|
1366
|
+
outputFormat: "body";
|
|
1367
|
+
status: 402;
|
|
1343
1368
|
input: {
|
|
1344
1369
|
query?: {
|
|
1345
1370
|
chainId?: string | string[];
|
|
@@ -1354,14 +1379,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1354
1379
|
} | {
|
|
1355
1380
|
output: {
|
|
1356
1381
|
error: {
|
|
1357
|
-
code: "
|
|
1382
|
+
code: "api_key_forbidden";
|
|
1358
1383
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1359
1384
|
message: string;
|
|
1360
1385
|
};
|
|
1361
1386
|
requestId: string;
|
|
1362
1387
|
};
|
|
1363
1388
|
outputFormat: "json";
|
|
1364
|
-
status:
|
|
1389
|
+
status: 403;
|
|
1365
1390
|
input: {
|
|
1366
1391
|
query?: {
|
|
1367
1392
|
chainId?: string | string[];
|
|
@@ -1376,14 +1401,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1376
1401
|
} | {
|
|
1377
1402
|
output: {
|
|
1378
1403
|
error: {
|
|
1379
|
-
code: "
|
|
1404
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1380
1405
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1381
1406
|
message: string;
|
|
1382
1407
|
};
|
|
1383
1408
|
requestId: string;
|
|
1384
1409
|
};
|
|
1385
1410
|
outputFormat: "json";
|
|
1386
|
-
status:
|
|
1411
|
+
status: 429;
|
|
1387
1412
|
input: {
|
|
1388
1413
|
query?: {
|
|
1389
1414
|
chainId?: string | string[];
|
|
@@ -1397,40 +1422,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1397
1422
|
};
|
|
1398
1423
|
} | {
|
|
1399
1424
|
output: {
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
name?: string | undefined;
|
|
1407
|
-
symbol?: string | undefined;
|
|
1408
|
-
verified?: boolean | undefined;
|
|
1409
|
-
};
|
|
1410
|
-
blockNumber: number;
|
|
1411
|
-
id: `0x${string}`;
|
|
1412
|
-
key: `0x${string}`;
|
|
1413
|
-
liquidity?: string | undefined;
|
|
1414
|
-
quote: {
|
|
1415
|
-
address: `0x${string}`;
|
|
1416
|
-
currency?: string | undefined;
|
|
1417
|
-
decimals?: number | undefined;
|
|
1418
|
-
logoUri?: string | undefined;
|
|
1419
|
-
name?: string | undefined;
|
|
1420
|
-
symbol?: string | undefined;
|
|
1421
|
-
verified?: boolean | undefined;
|
|
1422
|
-
};
|
|
1423
|
-
timestamp: string;
|
|
1424
|
-
transactionHash: `0x${string}`;
|
|
1425
|
-
}[];
|
|
1426
|
-
meta?: {
|
|
1427
|
-
totalCountCapped: boolean;
|
|
1428
|
-
totalCount: number;
|
|
1429
|
-
} | undefined;
|
|
1430
|
-
nextCursor: string | null;
|
|
1425
|
+
error: {
|
|
1426
|
+
code: "upstream_error";
|
|
1427
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1428
|
+
message: string;
|
|
1429
|
+
};
|
|
1430
|
+
requestId: string;
|
|
1431
1431
|
};
|
|
1432
1432
|
outputFormat: "json";
|
|
1433
|
-
status:
|
|
1433
|
+
status: 502;
|
|
1434
1434
|
input: {
|
|
1435
1435
|
query?: {
|
|
1436
1436
|
chainId?: string | string[];
|
|
@@ -1445,11 +1445,36 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1445
1445
|
};
|
|
1446
1446
|
};
|
|
1447
1447
|
} & {
|
|
1448
|
-
"/pairs/:base": {
|
|
1448
|
+
"/v1/exchange/pairs/:base": {
|
|
1449
1449
|
$get: {
|
|
1450
|
-
output:
|
|
1451
|
-
|
|
1452
|
-
|
|
1450
|
+
output: {
|
|
1451
|
+
base: {
|
|
1452
|
+
address: `0x${string}`;
|
|
1453
|
+
currency?: string | undefined;
|
|
1454
|
+
decimals?: number | undefined;
|
|
1455
|
+
logoUri?: string | undefined;
|
|
1456
|
+
name?: string | undefined;
|
|
1457
|
+
symbol?: string | undefined;
|
|
1458
|
+
verified?: boolean | undefined;
|
|
1459
|
+
};
|
|
1460
|
+
blockNumber: number;
|
|
1461
|
+
id: `0x${string}`;
|
|
1462
|
+
key: `0x${string}`;
|
|
1463
|
+
liquidity?: string | undefined;
|
|
1464
|
+
quote: {
|
|
1465
|
+
address: `0x${string}`;
|
|
1466
|
+
currency?: string | undefined;
|
|
1467
|
+
decimals?: number | undefined;
|
|
1468
|
+
logoUri?: string | undefined;
|
|
1469
|
+
name?: string | undefined;
|
|
1470
|
+
symbol?: string | undefined;
|
|
1471
|
+
verified?: boolean | undefined;
|
|
1472
|
+
};
|
|
1473
|
+
timestamp: string;
|
|
1474
|
+
transactionHash: `0x${string}`;
|
|
1475
|
+
};
|
|
1476
|
+
outputFormat: "json";
|
|
1477
|
+
status: 200;
|
|
1453
1478
|
input: {
|
|
1454
1479
|
param: {
|
|
1455
1480
|
base: `0x${string}`;
|
|
@@ -1463,14 +1488,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1463
1488
|
} | {
|
|
1464
1489
|
output: {
|
|
1465
1490
|
error: {
|
|
1466
|
-
code: "
|
|
1491
|
+
code: "api_key_malformed";
|
|
1467
1492
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1468
1493
|
message: string;
|
|
1469
1494
|
};
|
|
1470
1495
|
requestId: string;
|
|
1471
1496
|
};
|
|
1472
1497
|
outputFormat: "json";
|
|
1473
|
-
status:
|
|
1498
|
+
status: 400;
|
|
1474
1499
|
input: {
|
|
1475
1500
|
param: {
|
|
1476
1501
|
base: `0x${string}`;
|
|
@@ -1484,7 +1509,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1484
1509
|
} | {
|
|
1485
1510
|
output: {
|
|
1486
1511
|
error: {
|
|
1487
|
-
code: "
|
|
1512
|
+
code: "query_invalid";
|
|
1488
1513
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1489
1514
|
message: string;
|
|
1490
1515
|
};
|
|
@@ -1505,14 +1530,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1505
1530
|
} | {
|
|
1506
1531
|
output: {
|
|
1507
1532
|
error: {
|
|
1508
|
-
code: "
|
|
1533
|
+
code: "pair_invalid";
|
|
1509
1534
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1510
1535
|
message: string;
|
|
1511
1536
|
};
|
|
1512
1537
|
requestId: string;
|
|
1513
1538
|
};
|
|
1514
1539
|
outputFormat: "json";
|
|
1515
|
-
status:
|
|
1540
|
+
status: 400;
|
|
1516
1541
|
input: {
|
|
1517
1542
|
param: {
|
|
1518
1543
|
base: `0x${string}`;
|
|
@@ -1526,14 +1551,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1526
1551
|
} | {
|
|
1527
1552
|
output: {
|
|
1528
1553
|
error: {
|
|
1529
|
-
code: "
|
|
1554
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1530
1555
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1531
1556
|
message: string;
|
|
1532
1557
|
};
|
|
1533
1558
|
requestId: string;
|
|
1534
1559
|
};
|
|
1535
1560
|
outputFormat: "json";
|
|
1536
|
-
status:
|
|
1561
|
+
status: 401;
|
|
1537
1562
|
input: {
|
|
1538
1563
|
param: {
|
|
1539
1564
|
base: `0x${string}`;
|
|
@@ -1545,16 +1570,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1545
1570
|
} | undefined;
|
|
1546
1571
|
};
|
|
1547
1572
|
} | {
|
|
1548
|
-
output:
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1552
|
-
message: string;
|
|
1553
|
-
};
|
|
1554
|
-
requestId: string;
|
|
1555
|
-
};
|
|
1556
|
-
outputFormat: "json";
|
|
1557
|
-
status: 429;
|
|
1573
|
+
output: null;
|
|
1574
|
+
outputFormat: "body";
|
|
1575
|
+
status: 402;
|
|
1558
1576
|
input: {
|
|
1559
1577
|
param: {
|
|
1560
1578
|
base: `0x${string}`;
|
|
@@ -1568,14 +1586,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1568
1586
|
} | {
|
|
1569
1587
|
output: {
|
|
1570
1588
|
error: {
|
|
1571
|
-
code: "
|
|
1589
|
+
code: "api_key_forbidden";
|
|
1572
1590
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1573
1591
|
message: string;
|
|
1574
1592
|
};
|
|
1575
1593
|
requestId: string;
|
|
1576
1594
|
};
|
|
1577
1595
|
outputFormat: "json";
|
|
1578
|
-
status:
|
|
1596
|
+
status: 403;
|
|
1579
1597
|
input: {
|
|
1580
1598
|
param: {
|
|
1581
1599
|
base: `0x${string}`;
|
|
@@ -1589,14 +1607,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1589
1607
|
} | {
|
|
1590
1608
|
output: {
|
|
1591
1609
|
error: {
|
|
1592
|
-
code: "
|
|
1610
|
+
code: "pair_not_found";
|
|
1593
1611
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1594
1612
|
message: string;
|
|
1595
1613
|
};
|
|
1596
1614
|
requestId: string;
|
|
1597
1615
|
};
|
|
1598
1616
|
outputFormat: "json";
|
|
1599
|
-
status:
|
|
1617
|
+
status: 404;
|
|
1600
1618
|
input: {
|
|
1601
1619
|
param: {
|
|
1602
1620
|
base: `0x${string}`;
|
|
@@ -1610,14 +1628,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1610
1628
|
} | {
|
|
1611
1629
|
output: {
|
|
1612
1630
|
error: {
|
|
1613
|
-
code: "
|
|
1631
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1614
1632
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1615
1633
|
message: string;
|
|
1616
1634
|
};
|
|
1617
1635
|
requestId: string;
|
|
1618
1636
|
};
|
|
1619
1637
|
outputFormat: "json";
|
|
1620
|
-
status:
|
|
1638
|
+
status: 429;
|
|
1621
1639
|
input: {
|
|
1622
1640
|
param: {
|
|
1623
1641
|
base: `0x${string}`;
|
|
@@ -1630,33 +1648,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1630
1648
|
};
|
|
1631
1649
|
} | {
|
|
1632
1650
|
output: {
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
logoUri?: string | undefined;
|
|
1638
|
-
name?: string | undefined;
|
|
1639
|
-
symbol?: string | undefined;
|
|
1640
|
-
verified?: boolean | undefined;
|
|
1641
|
-
};
|
|
1642
|
-
blockNumber: number;
|
|
1643
|
-
id: `0x${string}`;
|
|
1644
|
-
key: `0x${string}`;
|
|
1645
|
-
liquidity?: string | undefined;
|
|
1646
|
-
quote: {
|
|
1647
|
-
address: `0x${string}`;
|
|
1648
|
-
currency?: string | undefined;
|
|
1649
|
-
decimals?: number | undefined;
|
|
1650
|
-
logoUri?: string | undefined;
|
|
1651
|
-
name?: string | undefined;
|
|
1652
|
-
symbol?: string | undefined;
|
|
1653
|
-
verified?: boolean | undefined;
|
|
1651
|
+
error: {
|
|
1652
|
+
code: "upstream_error";
|
|
1653
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1654
|
+
message: string;
|
|
1654
1655
|
};
|
|
1655
|
-
|
|
1656
|
-
transactionHash: `0x${string}`;
|
|
1656
|
+
requestId: string;
|
|
1657
1657
|
};
|
|
1658
1658
|
outputFormat: "json";
|
|
1659
|
-
status:
|
|
1659
|
+
status: 502;
|
|
1660
1660
|
input: {
|
|
1661
1661
|
param: {
|
|
1662
1662
|
base: `0x${string}`;
|
|
@@ -1670,11 +1670,54 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1670
1670
|
};
|
|
1671
1671
|
};
|
|
1672
1672
|
} & {
|
|
1673
|
-
"/orders": {
|
|
1673
|
+
"/v1/exchange/orders": {
|
|
1674
1674
|
$get: {
|
|
1675
|
-
output:
|
|
1676
|
-
|
|
1677
|
-
|
|
1675
|
+
output: {
|
|
1676
|
+
data: {
|
|
1677
|
+
amount: string;
|
|
1678
|
+
blockNumber: number;
|
|
1679
|
+
id: string;
|
|
1680
|
+
logIndex: number;
|
|
1681
|
+
maker: `0x${string}`;
|
|
1682
|
+
orderId: string;
|
|
1683
|
+
placedAt: string;
|
|
1684
|
+
price: string;
|
|
1685
|
+
rate: string;
|
|
1686
|
+
remaining: string;
|
|
1687
|
+
side: "ask" | "bid";
|
|
1688
|
+
tick: number;
|
|
1689
|
+
transactionHash: `0x${string}`;
|
|
1690
|
+
pair: {
|
|
1691
|
+
base: {
|
|
1692
|
+
address: `0x${string}`;
|
|
1693
|
+
currency?: string | undefined;
|
|
1694
|
+
decimals?: number | undefined;
|
|
1695
|
+
logoUri?: string | undefined;
|
|
1696
|
+
name?: string | undefined;
|
|
1697
|
+
symbol?: string | undefined;
|
|
1698
|
+
verified?: boolean | undefined;
|
|
1699
|
+
};
|
|
1700
|
+
key: `0x${string}`;
|
|
1701
|
+
quote: {
|
|
1702
|
+
address: `0x${string}`;
|
|
1703
|
+
currency?: string | undefined;
|
|
1704
|
+
decimals?: number | undefined;
|
|
1705
|
+
logoUri?: string | undefined;
|
|
1706
|
+
name?: string | undefined;
|
|
1707
|
+
symbol?: string | undefined;
|
|
1708
|
+
verified?: boolean | undefined;
|
|
1709
|
+
};
|
|
1710
|
+
};
|
|
1711
|
+
}[];
|
|
1712
|
+
meta?: {
|
|
1713
|
+
totalCountCapped: boolean;
|
|
1714
|
+
totalCount: number;
|
|
1715
|
+
} | undefined;
|
|
1716
|
+
nextCursor: string | null;
|
|
1717
|
+
truncated: boolean;
|
|
1718
|
+
};
|
|
1719
|
+
outputFormat: "json";
|
|
1720
|
+
status: 200;
|
|
1678
1721
|
input: {
|
|
1679
1722
|
query?: {
|
|
1680
1723
|
base?: string | string[];
|
|
@@ -1692,14 +1735,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1692
1735
|
} | {
|
|
1693
1736
|
output: {
|
|
1694
1737
|
error: {
|
|
1695
|
-
code: "
|
|
1738
|
+
code: "api_key_malformed";
|
|
1696
1739
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1697
1740
|
message: string;
|
|
1698
1741
|
};
|
|
1699
1742
|
requestId: string;
|
|
1700
1743
|
};
|
|
1701
1744
|
outputFormat: "json";
|
|
1702
|
-
status:
|
|
1745
|
+
status: 400;
|
|
1703
1746
|
input: {
|
|
1704
1747
|
query?: {
|
|
1705
1748
|
base?: string | string[];
|
|
@@ -1717,7 +1760,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1717
1760
|
} | {
|
|
1718
1761
|
output: {
|
|
1719
1762
|
error: {
|
|
1720
|
-
code: "
|
|
1763
|
+
code: "query_invalid";
|
|
1721
1764
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1722
1765
|
message: string;
|
|
1723
1766
|
};
|
|
@@ -1765,16 +1808,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1765
1808
|
} | undefined;
|
|
1766
1809
|
};
|
|
1767
1810
|
} | {
|
|
1768
|
-
output:
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1772
|
-
message: string;
|
|
1773
|
-
};
|
|
1774
|
-
requestId: string;
|
|
1775
|
-
};
|
|
1776
|
-
outputFormat: "json";
|
|
1777
|
-
status: 403;
|
|
1811
|
+
output: null;
|
|
1812
|
+
outputFormat: "body";
|
|
1813
|
+
status: 402;
|
|
1778
1814
|
input: {
|
|
1779
1815
|
query?: {
|
|
1780
1816
|
base?: string | string[];
|
|
@@ -1792,14 +1828,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1792
1828
|
} | {
|
|
1793
1829
|
output: {
|
|
1794
1830
|
error: {
|
|
1795
|
-
code: "
|
|
1831
|
+
code: "api_key_forbidden";
|
|
1796
1832
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1797
1833
|
message: string;
|
|
1798
1834
|
};
|
|
1799
1835
|
requestId: string;
|
|
1800
1836
|
};
|
|
1801
1837
|
outputFormat: "json";
|
|
1802
|
-
status:
|
|
1838
|
+
status: 403;
|
|
1803
1839
|
input: {
|
|
1804
1840
|
query?: {
|
|
1805
1841
|
base?: string | string[];
|
|
@@ -1817,14 +1853,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1817
1853
|
} | {
|
|
1818
1854
|
output: {
|
|
1819
1855
|
error: {
|
|
1820
|
-
code: "
|
|
1856
|
+
code: "pair_not_found";
|
|
1821
1857
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1822
1858
|
message: string;
|
|
1823
1859
|
};
|
|
1824
1860
|
requestId: string;
|
|
1825
1861
|
};
|
|
1826
1862
|
outputFormat: "json";
|
|
1827
|
-
status:
|
|
1863
|
+
status: 404;
|
|
1828
1864
|
input: {
|
|
1829
1865
|
query?: {
|
|
1830
1866
|
base?: string | string[];
|
|
@@ -1842,14 +1878,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1842
1878
|
} | {
|
|
1843
1879
|
output: {
|
|
1844
1880
|
error: {
|
|
1845
|
-
code: "
|
|
1881
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1846
1882
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1847
1883
|
message: string;
|
|
1848
1884
|
};
|
|
1849
1885
|
requestId: string;
|
|
1850
1886
|
};
|
|
1851
1887
|
outputFormat: "json";
|
|
1852
|
-
status:
|
|
1888
|
+
status: 429;
|
|
1853
1889
|
input: {
|
|
1854
1890
|
query?: {
|
|
1855
1891
|
base?: string | string[];
|
|
@@ -1866,51 +1902,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1866
1902
|
};
|
|
1867
1903
|
} | {
|
|
1868
1904
|
output: {
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
orderId: string;
|
|
1876
|
-
placedAt: string;
|
|
1877
|
-
price: string;
|
|
1878
|
-
rate: string;
|
|
1879
|
-
remaining: string;
|
|
1880
|
-
side: "ask" | "bid";
|
|
1881
|
-
tick: number;
|
|
1882
|
-
transactionHash: `0x${string}`;
|
|
1883
|
-
pair: {
|
|
1884
|
-
base: {
|
|
1885
|
-
address: `0x${string}`;
|
|
1886
|
-
currency?: string | undefined;
|
|
1887
|
-
decimals?: number | undefined;
|
|
1888
|
-
logoUri?: string | undefined;
|
|
1889
|
-
name?: string | undefined;
|
|
1890
|
-
symbol?: string | undefined;
|
|
1891
|
-
verified?: boolean | undefined;
|
|
1892
|
-
};
|
|
1893
|
-
key: `0x${string}`;
|
|
1894
|
-
quote: {
|
|
1895
|
-
address: `0x${string}`;
|
|
1896
|
-
currency?: string | undefined;
|
|
1897
|
-
decimals?: number | undefined;
|
|
1898
|
-
logoUri?: string | undefined;
|
|
1899
|
-
name?: string | undefined;
|
|
1900
|
-
symbol?: string | undefined;
|
|
1901
|
-
verified?: boolean | undefined;
|
|
1902
|
-
};
|
|
1903
|
-
};
|
|
1904
|
-
}[];
|
|
1905
|
-
meta?: {
|
|
1906
|
-
totalCountCapped: boolean;
|
|
1907
|
-
totalCount: number;
|
|
1908
|
-
} | undefined;
|
|
1909
|
-
nextCursor: string | null;
|
|
1910
|
-
truncated: boolean;
|
|
1905
|
+
error: {
|
|
1906
|
+
code: "upstream_error";
|
|
1907
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1908
|
+
message: string;
|
|
1909
|
+
};
|
|
1910
|
+
requestId: string;
|
|
1911
1911
|
};
|
|
1912
1912
|
outputFormat: "json";
|
|
1913
|
-
status:
|
|
1913
|
+
status: 502;
|
|
1914
1914
|
input: {
|
|
1915
1915
|
query?: {
|
|
1916
1916
|
base?: string | string[];
|
|
@@ -1928,11 +1928,45 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1928
1928
|
};
|
|
1929
1929
|
};
|
|
1930
1930
|
} & {
|
|
1931
|
-
"/orders/:orderId": {
|
|
1931
|
+
"/v1/exchange/orders/:orderId": {
|
|
1932
1932
|
$get: {
|
|
1933
|
-
output:
|
|
1934
|
-
|
|
1935
|
-
|
|
1933
|
+
output: {
|
|
1934
|
+
amount: string;
|
|
1935
|
+
flipTick: number;
|
|
1936
|
+
id: string;
|
|
1937
|
+
isBid: boolean;
|
|
1938
|
+
isFlipOrder: boolean;
|
|
1939
|
+
maker: `0x${string}`;
|
|
1940
|
+
mode: "exactDestination" | "exactSource";
|
|
1941
|
+
orderId: string;
|
|
1942
|
+
pair: {
|
|
1943
|
+
base: {
|
|
1944
|
+
address: `0x${string}`;
|
|
1945
|
+
currency?: string | undefined;
|
|
1946
|
+
decimals?: number | undefined;
|
|
1947
|
+
logoUri?: string | undefined;
|
|
1948
|
+
name?: string | undefined;
|
|
1949
|
+
symbol?: string | undefined;
|
|
1950
|
+
verified?: boolean | undefined;
|
|
1951
|
+
};
|
|
1952
|
+
key: `0x${string}`;
|
|
1953
|
+
quote: {
|
|
1954
|
+
address: `0x${string}`;
|
|
1955
|
+
currency?: string | undefined;
|
|
1956
|
+
decimals?: number | undefined;
|
|
1957
|
+
logoUri?: string | undefined;
|
|
1958
|
+
name?: string | undefined;
|
|
1959
|
+
symbol?: string | undefined;
|
|
1960
|
+
verified?: boolean | undefined;
|
|
1961
|
+
};
|
|
1962
|
+
};
|
|
1963
|
+
price: string;
|
|
1964
|
+
rate: string;
|
|
1965
|
+
remaining: string;
|
|
1966
|
+
tick: number;
|
|
1967
|
+
};
|
|
1968
|
+
outputFormat: "json";
|
|
1969
|
+
status: 200;
|
|
1936
1970
|
input: {
|
|
1937
1971
|
param: {
|
|
1938
1972
|
orderId: string;
|
|
@@ -1946,14 +1980,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1946
1980
|
} | {
|
|
1947
1981
|
output: {
|
|
1948
1982
|
error: {
|
|
1949
|
-
code: "
|
|
1983
|
+
code: "api_key_malformed";
|
|
1950
1984
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1951
1985
|
message: string;
|
|
1952
1986
|
};
|
|
1953
1987
|
requestId: string;
|
|
1954
1988
|
};
|
|
1955
1989
|
outputFormat: "json";
|
|
1956
|
-
status:
|
|
1990
|
+
status: 400;
|
|
1957
1991
|
input: {
|
|
1958
1992
|
param: {
|
|
1959
1993
|
orderId: string;
|
|
@@ -1967,7 +2001,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1967
2001
|
} | {
|
|
1968
2002
|
output: {
|
|
1969
2003
|
error: {
|
|
1970
|
-
code: "
|
|
2004
|
+
code: "query_invalid";
|
|
1971
2005
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1972
2006
|
message: string;
|
|
1973
2007
|
};
|
|
@@ -1988,14 +2022,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1988
2022
|
} | {
|
|
1989
2023
|
output: {
|
|
1990
2024
|
error: {
|
|
1991
|
-
code: "
|
|
2025
|
+
code: "order_invalid";
|
|
1992
2026
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1993
2027
|
message: string;
|
|
1994
2028
|
};
|
|
1995
2029
|
requestId: string;
|
|
1996
2030
|
};
|
|
1997
2031
|
outputFormat: "json";
|
|
1998
|
-
status:
|
|
2032
|
+
status: 400;
|
|
1999
2033
|
input: {
|
|
2000
2034
|
param: {
|
|
2001
2035
|
orderId: string;
|
|
@@ -2009,14 +2043,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2009
2043
|
} | {
|
|
2010
2044
|
output: {
|
|
2011
2045
|
error: {
|
|
2012
|
-
code: "
|
|
2046
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2013
2047
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2014
2048
|
message: string;
|
|
2015
2049
|
};
|
|
2016
2050
|
requestId: string;
|
|
2017
2051
|
};
|
|
2018
2052
|
outputFormat: "json";
|
|
2019
|
-
status:
|
|
2053
|
+
status: 401;
|
|
2020
2054
|
input: {
|
|
2021
2055
|
param: {
|
|
2022
2056
|
orderId: string;
|
|
@@ -2028,16 +2062,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2028
2062
|
} | undefined;
|
|
2029
2063
|
};
|
|
2030
2064
|
} | {
|
|
2031
|
-
output:
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2035
|
-
message: string;
|
|
2036
|
-
};
|
|
2037
|
-
requestId: string;
|
|
2038
|
-
};
|
|
2039
|
-
outputFormat: "json";
|
|
2040
|
-
status: 429;
|
|
2065
|
+
output: null;
|
|
2066
|
+
outputFormat: "body";
|
|
2067
|
+
status: 402;
|
|
2041
2068
|
input: {
|
|
2042
2069
|
param: {
|
|
2043
2070
|
orderId: string;
|
|
@@ -2051,14 +2078,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2051
2078
|
} | {
|
|
2052
2079
|
output: {
|
|
2053
2080
|
error: {
|
|
2054
|
-
code: "
|
|
2081
|
+
code: "api_key_forbidden";
|
|
2055
2082
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2056
2083
|
message: string;
|
|
2057
2084
|
};
|
|
2058
2085
|
requestId: string;
|
|
2059
2086
|
};
|
|
2060
2087
|
outputFormat: "json";
|
|
2061
|
-
status:
|
|
2088
|
+
status: 403;
|
|
2062
2089
|
input: {
|
|
2063
2090
|
param: {
|
|
2064
2091
|
orderId: string;
|
|
@@ -2072,14 +2099,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2072
2099
|
} | {
|
|
2073
2100
|
output: {
|
|
2074
2101
|
error: {
|
|
2075
|
-
code: "
|
|
2102
|
+
code: "order_not_found";
|
|
2076
2103
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2077
2104
|
message: string;
|
|
2078
2105
|
};
|
|
2079
2106
|
requestId: string;
|
|
2080
2107
|
};
|
|
2081
2108
|
outputFormat: "json";
|
|
2082
|
-
status:
|
|
2109
|
+
status: 404;
|
|
2083
2110
|
input: {
|
|
2084
2111
|
param: {
|
|
2085
2112
|
orderId: string;
|
|
@@ -2093,14 +2120,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2093
2120
|
} | {
|
|
2094
2121
|
output: {
|
|
2095
2122
|
error: {
|
|
2096
|
-
code: "
|
|
2123
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2097
2124
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2098
2125
|
message: string;
|
|
2099
2126
|
};
|
|
2100
2127
|
requestId: string;
|
|
2101
2128
|
};
|
|
2102
2129
|
outputFormat: "json";
|
|
2103
|
-
status:
|
|
2130
|
+
status: 429;
|
|
2104
2131
|
input: {
|
|
2105
2132
|
param: {
|
|
2106
2133
|
orderId: string;
|
|
@@ -2113,42 +2140,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2113
2140
|
};
|
|
2114
2141
|
} | {
|
|
2115
2142
|
output: {
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
isFlipOrder: boolean;
|
|
2121
|
-
maker: `0x${string}`;
|
|
2122
|
-
mode: "exactDestination" | "exactSource";
|
|
2123
|
-
orderId: string;
|
|
2124
|
-
pair: {
|
|
2125
|
-
base: {
|
|
2126
|
-
address: `0x${string}`;
|
|
2127
|
-
currency?: string | undefined;
|
|
2128
|
-
decimals?: number | undefined;
|
|
2129
|
-
logoUri?: string | undefined;
|
|
2130
|
-
name?: string | undefined;
|
|
2131
|
-
symbol?: string | undefined;
|
|
2132
|
-
verified?: boolean | undefined;
|
|
2133
|
-
};
|
|
2134
|
-
key: `0x${string}`;
|
|
2135
|
-
quote: {
|
|
2136
|
-
address: `0x${string}`;
|
|
2137
|
-
currency?: string | undefined;
|
|
2138
|
-
decimals?: number | undefined;
|
|
2139
|
-
logoUri?: string | undefined;
|
|
2140
|
-
name?: string | undefined;
|
|
2141
|
-
symbol?: string | undefined;
|
|
2142
|
-
verified?: boolean | undefined;
|
|
2143
|
-
};
|
|
2143
|
+
error: {
|
|
2144
|
+
code: "upstream_error";
|
|
2145
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2146
|
+
message: string;
|
|
2144
2147
|
};
|
|
2145
|
-
|
|
2146
|
-
rate: string;
|
|
2147
|
-
remaining: string;
|
|
2148
|
-
tick: number;
|
|
2148
|
+
requestId: string;
|
|
2149
2149
|
};
|
|
2150
2150
|
outputFormat: "json";
|
|
2151
|
-
status:
|
|
2151
|
+
status: 502;
|
|
2152
2152
|
input: {
|
|
2153
2153
|
param: {
|
|
2154
2154
|
orderId: string;
|
|
@@ -2162,11 +2162,28 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2162
2162
|
};
|
|
2163
2163
|
};
|
|
2164
2164
|
} & {
|
|
2165
|
-
"/orders/:orderId/fills": {
|
|
2165
|
+
"/v1/exchange/orders/:orderId/fills": {
|
|
2166
2166
|
$get: {
|
|
2167
|
-
output:
|
|
2168
|
-
|
|
2169
|
-
|
|
2167
|
+
output: {
|
|
2168
|
+
data: {
|
|
2169
|
+
amountFilled: string;
|
|
2170
|
+
blockNumber: number;
|
|
2171
|
+
filledAt: string;
|
|
2172
|
+
id: string;
|
|
2173
|
+
logIndex: number;
|
|
2174
|
+
orderId: string;
|
|
2175
|
+
partialFill: boolean;
|
|
2176
|
+
taker: `0x${string}`;
|
|
2177
|
+
transactionHash: `0x${string}`;
|
|
2178
|
+
}[];
|
|
2179
|
+
meta?: {
|
|
2180
|
+
totalCountCapped: boolean;
|
|
2181
|
+
totalCount: number;
|
|
2182
|
+
} | undefined;
|
|
2183
|
+
nextCursor: string | null;
|
|
2184
|
+
};
|
|
2185
|
+
outputFormat: "json";
|
|
2186
|
+
status: 200;
|
|
2170
2187
|
input: {
|
|
2171
2188
|
param: {
|
|
2172
2189
|
orderId: string;
|
|
@@ -2184,14 +2201,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2184
2201
|
} | {
|
|
2185
2202
|
output: {
|
|
2186
2203
|
error: {
|
|
2187
|
-
code: "
|
|
2204
|
+
code: "api_key_malformed";
|
|
2188
2205
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2189
2206
|
message: string;
|
|
2190
2207
|
};
|
|
2191
2208
|
requestId: string;
|
|
2192
2209
|
};
|
|
2193
2210
|
outputFormat: "json";
|
|
2194
|
-
status:
|
|
2211
|
+
status: 400;
|
|
2195
2212
|
input: {
|
|
2196
2213
|
param: {
|
|
2197
2214
|
orderId: string;
|
|
@@ -2209,7 +2226,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2209
2226
|
} | {
|
|
2210
2227
|
output: {
|
|
2211
2228
|
error: {
|
|
2212
|
-
code: "
|
|
2229
|
+
code: "query_invalid";
|
|
2213
2230
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2214
2231
|
message: string;
|
|
2215
2232
|
};
|
|
@@ -2234,14 +2251,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2234
2251
|
} | {
|
|
2235
2252
|
output: {
|
|
2236
2253
|
error: {
|
|
2237
|
-
code: "
|
|
2254
|
+
code: "order_invalid";
|
|
2238
2255
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2239
2256
|
message: string;
|
|
2240
2257
|
};
|
|
2241
2258
|
requestId: string;
|
|
2242
2259
|
};
|
|
2243
2260
|
outputFormat: "json";
|
|
2244
|
-
status:
|
|
2261
|
+
status: 400;
|
|
2245
2262
|
input: {
|
|
2246
2263
|
param: {
|
|
2247
2264
|
orderId: string;
|
|
@@ -2259,14 +2276,32 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2259
2276
|
} | {
|
|
2260
2277
|
output: {
|
|
2261
2278
|
error: {
|
|
2262
|
-
code: "
|
|
2279
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2263
2280
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2264
2281
|
message: string;
|
|
2265
2282
|
};
|
|
2266
2283
|
requestId: string;
|
|
2267
2284
|
};
|
|
2268
|
-
outputFormat: "json";
|
|
2269
|
-
status:
|
|
2285
|
+
outputFormat: "json";
|
|
2286
|
+
status: 401;
|
|
2287
|
+
input: {
|
|
2288
|
+
param: {
|
|
2289
|
+
orderId: string;
|
|
2290
|
+
};
|
|
2291
|
+
} & {
|
|
2292
|
+
query?: {
|
|
2293
|
+
chainId?: string | string[];
|
|
2294
|
+
cursor?: string | string[];
|
|
2295
|
+
include?: string | string[];
|
|
2296
|
+
limit?: string | string[];
|
|
2297
|
+
order?: string | string[];
|
|
2298
|
+
page?: string | string[];
|
|
2299
|
+
} | undefined;
|
|
2300
|
+
};
|
|
2301
|
+
} | {
|
|
2302
|
+
output: null;
|
|
2303
|
+
outputFormat: "body";
|
|
2304
|
+
status: 402;
|
|
2270
2305
|
input: {
|
|
2271
2306
|
param: {
|
|
2272
2307
|
orderId: string;
|
|
@@ -2284,14 +2319,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2284
2319
|
} | {
|
|
2285
2320
|
output: {
|
|
2286
2321
|
error: {
|
|
2287
|
-
code: "
|
|
2322
|
+
code: "api_key_forbidden";
|
|
2288
2323
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2289
2324
|
message: string;
|
|
2290
2325
|
};
|
|
2291
2326
|
requestId: string;
|
|
2292
2327
|
};
|
|
2293
2328
|
outputFormat: "json";
|
|
2294
|
-
status:
|
|
2329
|
+
status: 403;
|
|
2295
2330
|
input: {
|
|
2296
2331
|
param: {
|
|
2297
2332
|
orderId: string;
|
|
@@ -2309,14 +2344,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2309
2344
|
} | {
|
|
2310
2345
|
output: {
|
|
2311
2346
|
error: {
|
|
2312
|
-
code: "
|
|
2347
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2313
2348
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2314
2349
|
message: string;
|
|
2315
2350
|
};
|
|
2316
2351
|
requestId: string;
|
|
2317
2352
|
};
|
|
2318
2353
|
outputFormat: "json";
|
|
2319
|
-
status:
|
|
2354
|
+
status: 429;
|
|
2320
2355
|
input: {
|
|
2321
2356
|
param: {
|
|
2322
2357
|
orderId: string;
|
|
@@ -2334,14 +2369,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2334
2369
|
} | {
|
|
2335
2370
|
output: {
|
|
2336
2371
|
error: {
|
|
2337
|
-
code: "
|
|
2372
|
+
code: "upstream_error";
|
|
2338
2373
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2339
2374
|
message: string;
|
|
2340
2375
|
};
|
|
2341
2376
|
requestId: string;
|
|
2342
2377
|
};
|
|
2343
2378
|
outputFormat: "json";
|
|
2344
|
-
status:
|
|
2379
|
+
status: 502;
|
|
2345
2380
|
input: {
|
|
2346
2381
|
param: {
|
|
2347
2382
|
orderId: string;
|
|
@@ -2356,49 +2391,72 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2356
2391
|
page?: string | string[];
|
|
2357
2392
|
} | undefined;
|
|
2358
2393
|
};
|
|
2359
|
-
}
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
} & {
|
|
2397
|
+
"/v1/exchange/pairs/:base/ohlc": {
|
|
2398
|
+
$get: {
|
|
2360
2399
|
output: {
|
|
2400
|
+
base: {
|
|
2401
|
+
address: `0x${string}`;
|
|
2402
|
+
currency?: string | undefined;
|
|
2403
|
+
decimals?: number | undefined;
|
|
2404
|
+
logoUri?: string | undefined;
|
|
2405
|
+
name?: string | undefined;
|
|
2406
|
+
symbol?: string | undefined;
|
|
2407
|
+
verified?: boolean | undefined;
|
|
2408
|
+
};
|
|
2361
2409
|
data: {
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2410
|
+
close: string;
|
|
2411
|
+
fillCount: number;
|
|
2412
|
+
high: string;
|
|
2365
2413
|
id: string;
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2414
|
+
low: string;
|
|
2415
|
+
open: string;
|
|
2416
|
+
timestamp: string;
|
|
2417
|
+
volume: {
|
|
2418
|
+
base: string;
|
|
2419
|
+
quote: string;
|
|
2420
|
+
};
|
|
2371
2421
|
}[];
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2422
|
+
interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
|
|
2423
|
+
quote: {
|
|
2424
|
+
address: `0x${string}`;
|
|
2425
|
+
currency?: string | undefined;
|
|
2426
|
+
decimals?: number | undefined;
|
|
2427
|
+
logoUri?: string | undefined;
|
|
2428
|
+
name?: string | undefined;
|
|
2429
|
+
symbol?: string | undefined;
|
|
2430
|
+
verified?: boolean | undefined;
|
|
2431
|
+
};
|
|
2432
|
+
truncated: boolean;
|
|
2433
|
+
window: "1h" | "24h" | "30d" | "7d";
|
|
2377
2434
|
};
|
|
2378
2435
|
outputFormat: "json";
|
|
2379
2436
|
status: 200;
|
|
2380
2437
|
input: {
|
|
2381
2438
|
param: {
|
|
2382
|
-
|
|
2439
|
+
base: `0x${string}`;
|
|
2383
2440
|
};
|
|
2384
2441
|
} & {
|
|
2385
2442
|
query?: {
|
|
2386
2443
|
chainId?: string | string[];
|
|
2387
|
-
cursor?: string | string[];
|
|
2388
2444
|
include?: string | string[];
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
page?: string | string[];
|
|
2445
|
+
interval?: string | string[];
|
|
2446
|
+
window?: string | string[];
|
|
2392
2447
|
} | undefined;
|
|
2393
2448
|
};
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2449
|
+
} | {
|
|
2450
|
+
output: {
|
|
2451
|
+
error: {
|
|
2452
|
+
code: "api_key_malformed";
|
|
2453
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2454
|
+
message: string;
|
|
2455
|
+
};
|
|
2456
|
+
requestId: string;
|
|
2457
|
+
};
|
|
2458
|
+
outputFormat: "json";
|
|
2459
|
+
status: 400;
|
|
2402
2460
|
input: {
|
|
2403
2461
|
param: {
|
|
2404
2462
|
base: `0x${string}`;
|
|
@@ -2414,14 +2472,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2414
2472
|
} | {
|
|
2415
2473
|
output: {
|
|
2416
2474
|
error: {
|
|
2417
|
-
code: "
|
|
2475
|
+
code: "query_invalid";
|
|
2418
2476
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2419
2477
|
message: string;
|
|
2420
2478
|
};
|
|
2421
2479
|
requestId: string;
|
|
2422
2480
|
};
|
|
2423
2481
|
outputFormat: "json";
|
|
2424
|
-
status:
|
|
2482
|
+
status: 400;
|
|
2425
2483
|
input: {
|
|
2426
2484
|
param: {
|
|
2427
2485
|
base: `0x${string}`;
|
|
@@ -2437,7 +2495,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2437
2495
|
} | {
|
|
2438
2496
|
output: {
|
|
2439
2497
|
error: {
|
|
2440
|
-
code: "
|
|
2498
|
+
code: "pair_invalid";
|
|
2441
2499
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2442
2500
|
message: string;
|
|
2443
2501
|
};
|
|
@@ -2481,16 +2539,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2481
2539
|
} | undefined;
|
|
2482
2540
|
};
|
|
2483
2541
|
} | {
|
|
2484
|
-
output:
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2488
|
-
message: string;
|
|
2489
|
-
};
|
|
2490
|
-
requestId: string;
|
|
2491
|
-
};
|
|
2492
|
-
outputFormat: "json";
|
|
2493
|
-
status: 403;
|
|
2542
|
+
output: null;
|
|
2543
|
+
outputFormat: "body";
|
|
2544
|
+
status: 402;
|
|
2494
2545
|
input: {
|
|
2495
2546
|
param: {
|
|
2496
2547
|
base: `0x${string}`;
|
|
@@ -2506,14 +2557,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2506
2557
|
} | {
|
|
2507
2558
|
output: {
|
|
2508
2559
|
error: {
|
|
2509
|
-
code: "
|
|
2560
|
+
code: "api_key_forbidden";
|
|
2510
2561
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2511
2562
|
message: string;
|
|
2512
2563
|
};
|
|
2513
2564
|
requestId: string;
|
|
2514
2565
|
};
|
|
2515
2566
|
outputFormat: "json";
|
|
2516
|
-
status:
|
|
2567
|
+
status: 403;
|
|
2517
2568
|
input: {
|
|
2518
2569
|
param: {
|
|
2519
2570
|
base: `0x${string}`;
|
|
@@ -2529,14 +2580,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2529
2580
|
} | {
|
|
2530
2581
|
output: {
|
|
2531
2582
|
error: {
|
|
2532
|
-
code: "
|
|
2583
|
+
code: "pair_not_found";
|
|
2533
2584
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2534
2585
|
message: string;
|
|
2535
2586
|
};
|
|
2536
2587
|
requestId: string;
|
|
2537
2588
|
};
|
|
2538
2589
|
outputFormat: "json";
|
|
2539
|
-
status:
|
|
2590
|
+
status: 404;
|
|
2540
2591
|
input: {
|
|
2541
2592
|
param: {
|
|
2542
2593
|
base: `0x${string}`;
|
|
@@ -2552,14 +2603,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2552
2603
|
} | {
|
|
2553
2604
|
output: {
|
|
2554
2605
|
error: {
|
|
2555
|
-
code: "
|
|
2606
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2556
2607
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2557
2608
|
message: string;
|
|
2558
2609
|
};
|
|
2559
2610
|
requestId: string;
|
|
2560
2611
|
};
|
|
2561
2612
|
outputFormat: "json";
|
|
2562
|
-
status:
|
|
2613
|
+
status: 429;
|
|
2563
2614
|
input: {
|
|
2564
2615
|
param: {
|
|
2565
2616
|
base: `0x${string}`;
|
|
@@ -2575,14 +2626,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2575
2626
|
} | {
|
|
2576
2627
|
output: {
|
|
2577
2628
|
error: {
|
|
2578
|
-
code: "
|
|
2629
|
+
code: "upstream_error";
|
|
2579
2630
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2580
2631
|
message: string;
|
|
2581
2632
|
};
|
|
2582
2633
|
requestId: string;
|
|
2583
2634
|
};
|
|
2584
2635
|
outputFormat: "json";
|
|
2585
|
-
status:
|
|
2636
|
+
status: 502;
|
|
2586
2637
|
input: {
|
|
2587
2638
|
param: {
|
|
2588
2639
|
base: `0x${string}`;
|
|
@@ -2595,8 +2646,19 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2595
2646
|
window?: string | string[];
|
|
2596
2647
|
} | undefined;
|
|
2597
2648
|
};
|
|
2598
|
-
}
|
|
2649
|
+
};
|
|
2650
|
+
};
|
|
2651
|
+
} & {
|
|
2652
|
+
"/v1/exchange/pairs/:base/depth": {
|
|
2653
|
+
$get: {
|
|
2599
2654
|
output: {
|
|
2655
|
+
asks: {
|
|
2656
|
+
cumulativeSize: string;
|
|
2657
|
+
id: string;
|
|
2658
|
+
price: string;
|
|
2659
|
+
size: string;
|
|
2660
|
+
tick: number;
|
|
2661
|
+
}[];
|
|
2600
2662
|
base: {
|
|
2601
2663
|
address: `0x${string}`;
|
|
2602
2664
|
currency?: string | undefined;
|
|
@@ -2606,20 +2668,13 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2606
2668
|
symbol?: string | undefined;
|
|
2607
2669
|
verified?: boolean | undefined;
|
|
2608
2670
|
};
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
fillCount: number;
|
|
2612
|
-
high: string;
|
|
2671
|
+
bids: {
|
|
2672
|
+
cumulativeSize: string;
|
|
2613
2673
|
id: string;
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
volume: {
|
|
2618
|
-
base: string;
|
|
2619
|
-
quote: string;
|
|
2620
|
-
};
|
|
2674
|
+
price: string;
|
|
2675
|
+
size: string;
|
|
2676
|
+
tick: number;
|
|
2621
2677
|
}[];
|
|
2622
|
-
interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
|
|
2623
2678
|
quote: {
|
|
2624
2679
|
address: `0x${string}`;
|
|
2625
2680
|
currency?: string | undefined;
|
|
@@ -2629,31 +2684,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2629
2684
|
symbol?: string | undefined;
|
|
2630
2685
|
verified?: boolean | undefined;
|
|
2631
2686
|
};
|
|
2632
|
-
truncated: boolean;
|
|
2633
|
-
window: "1h" | "24h" | "30d" | "7d";
|
|
2634
2687
|
};
|
|
2635
2688
|
outputFormat: "json";
|
|
2636
2689
|
status: 200;
|
|
2637
|
-
input: {
|
|
2638
|
-
param: {
|
|
2639
|
-
base: `0x${string}`;
|
|
2640
|
-
};
|
|
2641
|
-
} & {
|
|
2642
|
-
query?: {
|
|
2643
|
-
chainId?: string | string[];
|
|
2644
|
-
include?: string | string[];
|
|
2645
|
-
interval?: string | string[];
|
|
2646
|
-
window?: string | string[];
|
|
2647
|
-
} | undefined;
|
|
2648
|
-
};
|
|
2649
|
-
};
|
|
2650
|
-
};
|
|
2651
|
-
} & {
|
|
2652
|
-
"/pairs/:base/depth": {
|
|
2653
|
-
$get: {
|
|
2654
|
-
output: null;
|
|
2655
|
-
outputFormat: "body";
|
|
2656
|
-
status: 402;
|
|
2657
2690
|
input: {
|
|
2658
2691
|
param: {
|
|
2659
2692
|
base: `0x${string}`;
|
|
@@ -2668,14 +2701,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2668
2701
|
} | {
|
|
2669
2702
|
output: {
|
|
2670
2703
|
error: {
|
|
2671
|
-
code: "
|
|
2704
|
+
code: "api_key_malformed";
|
|
2672
2705
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2673
2706
|
message: string;
|
|
2674
2707
|
};
|
|
2675
2708
|
requestId: string;
|
|
2676
2709
|
};
|
|
2677
2710
|
outputFormat: "json";
|
|
2678
|
-
status:
|
|
2711
|
+
status: 400;
|
|
2679
2712
|
input: {
|
|
2680
2713
|
param: {
|
|
2681
2714
|
base: `0x${string}`;
|
|
@@ -2690,7 +2723,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2690
2723
|
} | {
|
|
2691
2724
|
output: {
|
|
2692
2725
|
error: {
|
|
2693
|
-
code: "
|
|
2726
|
+
code: "query_invalid";
|
|
2694
2727
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2695
2728
|
message: string;
|
|
2696
2729
|
};
|
|
@@ -2712,14 +2745,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2712
2745
|
} | {
|
|
2713
2746
|
output: {
|
|
2714
2747
|
error: {
|
|
2715
|
-
code: "
|
|
2748
|
+
code: "pair_invalid";
|
|
2716
2749
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2717
2750
|
message: string;
|
|
2718
2751
|
};
|
|
2719
2752
|
requestId: string;
|
|
2720
2753
|
};
|
|
2721
2754
|
outputFormat: "json";
|
|
2722
|
-
status:
|
|
2755
|
+
status: 400;
|
|
2723
2756
|
input: {
|
|
2724
2757
|
param: {
|
|
2725
2758
|
base: `0x${string}`;
|
|
@@ -2734,14 +2767,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2734
2767
|
} | {
|
|
2735
2768
|
output: {
|
|
2736
2769
|
error: {
|
|
2737
|
-
code: "
|
|
2770
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2738
2771
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2739
2772
|
message: string;
|
|
2740
2773
|
};
|
|
2741
2774
|
requestId: string;
|
|
2742
2775
|
};
|
|
2743
2776
|
outputFormat: "json";
|
|
2744
|
-
status:
|
|
2777
|
+
status: 401;
|
|
2745
2778
|
input: {
|
|
2746
2779
|
param: {
|
|
2747
2780
|
base: `0x${string}`;
|
|
@@ -2754,16 +2787,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2754
2787
|
} | undefined;
|
|
2755
2788
|
};
|
|
2756
2789
|
} | {
|
|
2757
|
-
output:
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2761
|
-
message: string;
|
|
2762
|
-
};
|
|
2763
|
-
requestId: string;
|
|
2764
|
-
};
|
|
2765
|
-
outputFormat: "json";
|
|
2766
|
-
status: 429;
|
|
2790
|
+
output: null;
|
|
2791
|
+
outputFormat: "body";
|
|
2792
|
+
status: 402;
|
|
2767
2793
|
input: {
|
|
2768
2794
|
param: {
|
|
2769
2795
|
base: `0x${string}`;
|
|
@@ -2778,14 +2804,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2778
2804
|
} | {
|
|
2779
2805
|
output: {
|
|
2780
2806
|
error: {
|
|
2781
|
-
code: "
|
|
2807
|
+
code: "api_key_forbidden";
|
|
2782
2808
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2783
2809
|
message: string;
|
|
2784
2810
|
};
|
|
2785
2811
|
requestId: string;
|
|
2786
2812
|
};
|
|
2787
2813
|
outputFormat: "json";
|
|
2788
|
-
status:
|
|
2814
|
+
status: 403;
|
|
2789
2815
|
input: {
|
|
2790
2816
|
param: {
|
|
2791
2817
|
base: `0x${string}`;
|
|
@@ -2800,14 +2826,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2800
2826
|
} | {
|
|
2801
2827
|
output: {
|
|
2802
2828
|
error: {
|
|
2803
|
-
code: "
|
|
2829
|
+
code: "pair_not_found";
|
|
2804
2830
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2805
2831
|
message: string;
|
|
2806
2832
|
};
|
|
2807
2833
|
requestId: string;
|
|
2808
2834
|
};
|
|
2809
2835
|
outputFormat: "json";
|
|
2810
|
-
status:
|
|
2836
|
+
status: 404;
|
|
2811
2837
|
input: {
|
|
2812
2838
|
param: {
|
|
2813
2839
|
base: `0x${string}`;
|
|
@@ -2822,14 +2848,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2822
2848
|
} | {
|
|
2823
2849
|
output: {
|
|
2824
2850
|
error: {
|
|
2825
|
-
code: "
|
|
2851
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2826
2852
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2827
2853
|
message: string;
|
|
2828
2854
|
};
|
|
2829
2855
|
requestId: string;
|
|
2830
2856
|
};
|
|
2831
2857
|
outputFormat: "json";
|
|
2832
|
-
status:
|
|
2858
|
+
status: 429;
|
|
2833
2859
|
input: {
|
|
2834
2860
|
param: {
|
|
2835
2861
|
base: `0x${string}`;
|
|
@@ -2843,41 +2869,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2843
2869
|
};
|
|
2844
2870
|
} | {
|
|
2845
2871
|
output: {
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
size: string;
|
|
2851
|
-
tick: number;
|
|
2852
|
-
}[];
|
|
2853
|
-
base: {
|
|
2854
|
-
address: `0x${string}`;
|
|
2855
|
-
currency?: string | undefined;
|
|
2856
|
-
decimals?: number | undefined;
|
|
2857
|
-
logoUri?: string | undefined;
|
|
2858
|
-
name?: string | undefined;
|
|
2859
|
-
symbol?: string | undefined;
|
|
2860
|
-
verified?: boolean | undefined;
|
|
2861
|
-
};
|
|
2862
|
-
bids: {
|
|
2863
|
-
cumulativeSize: string;
|
|
2864
|
-
id: string;
|
|
2865
|
-
price: string;
|
|
2866
|
-
size: string;
|
|
2867
|
-
tick: number;
|
|
2868
|
-
}[];
|
|
2869
|
-
quote: {
|
|
2870
|
-
address: `0x${string}`;
|
|
2871
|
-
currency?: string | undefined;
|
|
2872
|
-
decimals?: number | undefined;
|
|
2873
|
-
logoUri?: string | undefined;
|
|
2874
|
-
name?: string | undefined;
|
|
2875
|
-
symbol?: string | undefined;
|
|
2876
|
-
verified?: boolean | undefined;
|
|
2872
|
+
error: {
|
|
2873
|
+
code: "upstream_error";
|
|
2874
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2875
|
+
message: string;
|
|
2877
2876
|
};
|
|
2877
|
+
requestId: string;
|
|
2878
2878
|
};
|
|
2879
2879
|
outputFormat: "json";
|
|
2880
|
-
status:
|
|
2880
|
+
status: 502;
|
|
2881
2881
|
input: {
|
|
2882
2882
|
param: {
|
|
2883
2883
|
base: `0x${string}`;
|
|
@@ -2891,7 +2891,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2891
2891
|
};
|
|
2892
2892
|
};
|
|
2893
2893
|
};
|
|
2894
|
-
}, "/", "/pairs/:base/depth">;
|
|
2894
|
+
}, "/", "/v1/exchange/pairs/:base/depth">;
|
|
2895
2895
|
/**
|
|
2896
2896
|
* Resolves the point-in-time order-state streams for a set of `orderId`s
|
|
2897
2897
|
* from the raw `OrderPlaced`/`OrderFlipped` logs.
|