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
package/dist/admin/App.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type RequestIdVariables } from 'hono/request-id';
|
|
2
|
-
import * as ApiKeySource from '../ApiKeySource.js';
|
|
3
2
|
import type * as Assets from '../Assets.js';
|
|
4
|
-
import * as
|
|
3
|
+
import type * as Db from '../db/Db.js';
|
|
5
4
|
import type * as Store from '../internal/Store.js';
|
|
5
|
+
import * as Response from '../internal/Response.js';
|
|
6
6
|
/** A verified admin identity, as returned by {@link create.Options.identify}. */
|
|
7
7
|
export type Identity = {
|
|
8
8
|
/** The admin's verified email, recorded as `createdBy` on every minted key. */
|
|
@@ -13,14 +13,14 @@ export type Environment = {
|
|
|
13
13
|
Variables: RequestIdVariables & {
|
|
14
14
|
/** Static-asset writer (e.g. the R2 icon bucket), when configured. */
|
|
15
15
|
assets: create.Assets | undefined;
|
|
16
|
+
/** Authoritative Postgres store, or a per-request factory. Resolve at the leaf with `Db.get`. */
|
|
17
|
+
db: Db.Source;
|
|
18
|
+
/** KV state store backing API-key records (mint/list/revoke). */
|
|
19
|
+
kv: {
|
|
20
|
+
store: Store.State;
|
|
21
|
+
};
|
|
16
22
|
/** The admin identity, or `null` when unauthenticated (gated routes reject). */
|
|
17
23
|
identity: Identity | null;
|
|
18
|
-
/** The API-key source provisioned against (mint/list/revoke). */
|
|
19
|
-
source: ApiKeySource.Source;
|
|
20
|
-
/** Verified-token state store, when management is enabled. */
|
|
21
|
-
verifiedTokens: {
|
|
22
|
-
store: Store.State;
|
|
23
|
-
} | undefined;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
/** The admin portal Hono app. Inferred from {@link create}. */
|
|
@@ -36,6 +36,12 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
36
36
|
}, {
|
|
37
37
|
readonly description: 'Run ad-hoc queries against the raw indexer passthrough.';
|
|
38
38
|
readonly scope: 'indexer:query';
|
|
39
|
+
}, {
|
|
40
|
+
readonly description: 'Fill and submit transactions through the relay.';
|
|
41
|
+
readonly scope: 'rpc-relay:read';
|
|
42
|
+
}, {
|
|
43
|
+
readonly description: 'Sponsor transaction fees through the relay as the managed fee payer.';
|
|
44
|
+
readonly scope: 'rpc-relay:sponsor';
|
|
39
45
|
}, {
|
|
40
46
|
readonly description: 'Read webhook subscriptions.';
|
|
41
47
|
readonly scope: 'webhooks:read';
|
|
@@ -50,6 +56,18 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
50
56
|
};
|
|
51
57
|
};
|
|
52
58
|
}, "/scopes"> | import("hono/types").MergeSchemaPath<{
|
|
59
|
+
"/backfill": {
|
|
60
|
+
$post: {
|
|
61
|
+
output: {
|
|
62
|
+
indexed: number;
|
|
63
|
+
scanned: number;
|
|
64
|
+
};
|
|
65
|
+
outputFormat: "json";
|
|
66
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
67
|
+
input: {};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
} & {
|
|
53
71
|
"/": {
|
|
54
72
|
$post: {
|
|
55
73
|
output: {
|
|
@@ -57,12 +75,13 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
57
75
|
id: string;
|
|
58
76
|
name?: string | undefined;
|
|
59
77
|
orgId: string;
|
|
78
|
+
projectId?: string | undefined;
|
|
60
79
|
rateLimits?: {
|
|
61
80
|
[x: string]: {
|
|
62
81
|
perMinute: number;
|
|
63
82
|
};
|
|
64
83
|
} | undefined;
|
|
65
|
-
scopes: readonly ("*" | "data:read" | "indexer:query" | "webhooks:read" | "webhooks:write")[];
|
|
84
|
+
scopes: readonly ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
|
|
66
85
|
createdAt: string;
|
|
67
86
|
createdBy?: string | undefined;
|
|
68
87
|
expiresAt?: string | undefined;
|
|
@@ -75,10 +94,11 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
75
94
|
json: {
|
|
76
95
|
environment?: "production" | "sandbox" | undefined;
|
|
77
96
|
name?: string | undefined;
|
|
97
|
+
projectId?: string | undefined;
|
|
78
98
|
rateLimits?: Record<string, {
|
|
79
99
|
perMinute: number;
|
|
80
100
|
}> | undefined;
|
|
81
|
-
scopes: readonly ("*" | "data:read" | "indexer:query" | "webhooks:read" | "webhooks:write")[];
|
|
101
|
+
scopes: readonly ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
|
|
82
102
|
expiresAt?: string | undefined;
|
|
83
103
|
orgId?: string | undefined;
|
|
84
104
|
};
|
|
@@ -94,12 +114,13 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
94
114
|
id: string;
|
|
95
115
|
name?: string | undefined;
|
|
96
116
|
orgId: string;
|
|
117
|
+
projectId?: string | undefined;
|
|
97
118
|
rateLimits?: {
|
|
98
119
|
[x: string]: {
|
|
99
120
|
perMinute: number;
|
|
100
121
|
};
|
|
101
122
|
} | undefined;
|
|
102
|
-
scopes: readonly ("*" | "data:read" | "indexer:query" | "webhooks:read" | "webhooks:write")[];
|
|
123
|
+
scopes: readonly ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
|
|
103
124
|
createdAt: string;
|
|
104
125
|
createdBy?: string | undefined;
|
|
105
126
|
expiresAt?: string | undefined;
|
|
@@ -146,12 +167,12 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
146
167
|
};
|
|
147
168
|
};
|
|
148
169
|
};
|
|
149
|
-
}
|
|
150
|
-
"
|
|
151
|
-
$
|
|
170
|
+
} & {
|
|
171
|
+
"/:id": {
|
|
172
|
+
$patch: {
|
|
152
173
|
output: {
|
|
153
174
|
error: {
|
|
154
|
-
code: "
|
|
175
|
+
code: "not_found";
|
|
155
176
|
details?: readonly Response.error.Detail[] | undefined;
|
|
156
177
|
message: string;
|
|
157
178
|
};
|
|
@@ -160,11 +181,50 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
160
181
|
outputFormat: "json";
|
|
161
182
|
status: 404;
|
|
162
183
|
input: {
|
|
163
|
-
|
|
164
|
-
|
|
184
|
+
param: {
|
|
185
|
+
id: string;
|
|
186
|
+
};
|
|
187
|
+
} & {
|
|
188
|
+
json: {
|
|
189
|
+
orgId?: string | undefined;
|
|
190
|
+
projectId?: string | undefined;
|
|
165
191
|
};
|
|
166
192
|
};
|
|
167
193
|
} | {
|
|
194
|
+
output: {
|
|
195
|
+
environment: "production" | "sandbox";
|
|
196
|
+
id: string;
|
|
197
|
+
name?: string | undefined;
|
|
198
|
+
orgId: string;
|
|
199
|
+
projectId?: string | undefined;
|
|
200
|
+
rateLimits?: {
|
|
201
|
+
[x: string]: {
|
|
202
|
+
perMinute: number;
|
|
203
|
+
};
|
|
204
|
+
} | undefined;
|
|
205
|
+
scopes: readonly ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
|
|
206
|
+
createdAt: string;
|
|
207
|
+
createdBy?: string | undefined;
|
|
208
|
+
expiresAt?: string | undefined;
|
|
209
|
+
tokenLast4: string;
|
|
210
|
+
};
|
|
211
|
+
outputFormat: "json";
|
|
212
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
213
|
+
input: {
|
|
214
|
+
param: {
|
|
215
|
+
id: string;
|
|
216
|
+
};
|
|
217
|
+
} & {
|
|
218
|
+
json: {
|
|
219
|
+
orgId?: string | undefined;
|
|
220
|
+
projectId?: string | undefined;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
}, "/api-keys"> | import("hono/types").MergeSchemaPath<{
|
|
226
|
+
"/": {
|
|
227
|
+
$get: {
|
|
168
228
|
output: {
|
|
169
229
|
data: {
|
|
170
230
|
address: `0x${string}`;
|
|
@@ -191,14 +251,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
191
251
|
$post: {
|
|
192
252
|
output: {
|
|
193
253
|
error: {
|
|
194
|
-
code:
|
|
254
|
+
code: string;
|
|
195
255
|
details?: readonly Response.error.Detail[] | undefined;
|
|
196
256
|
message: string;
|
|
197
257
|
};
|
|
198
258
|
requestId: string;
|
|
199
259
|
};
|
|
200
260
|
outputFormat: "json";
|
|
201
|
-
status:
|
|
261
|
+
status: 400 | 413 | 415;
|
|
202
262
|
input: {
|
|
203
263
|
json: {
|
|
204
264
|
address: `0x${string}`;
|
|
@@ -214,14 +274,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
214
274
|
} | {
|
|
215
275
|
output: {
|
|
216
276
|
error: {
|
|
217
|
-
code: "
|
|
277
|
+
code: "upstream_error";
|
|
218
278
|
details?: readonly Response.error.Detail[] | undefined;
|
|
219
279
|
message: string;
|
|
220
280
|
};
|
|
221
281
|
requestId: string;
|
|
222
282
|
};
|
|
223
283
|
outputFormat: "json";
|
|
224
|
-
status:
|
|
284
|
+
status: 502;
|
|
225
285
|
input: {
|
|
226
286
|
json: {
|
|
227
287
|
address: `0x${string}`;
|
|
@@ -260,14 +320,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
260
320
|
} | {
|
|
261
321
|
output: {
|
|
262
322
|
error: {
|
|
263
|
-
code: "
|
|
323
|
+
code: "assets_not_enabled";
|
|
264
324
|
details?: readonly Response.error.Detail[] | undefined;
|
|
265
325
|
message: string;
|
|
266
326
|
};
|
|
267
327
|
requestId: string;
|
|
268
328
|
};
|
|
269
329
|
outputFormat: "json";
|
|
270
|
-
status:
|
|
330
|
+
status: 404;
|
|
271
331
|
input: {
|
|
272
332
|
json: {
|
|
273
333
|
address: `0x${string}`;
|
|
@@ -282,38 +342,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
282
342
|
};
|
|
283
343
|
} | {
|
|
284
344
|
output: {
|
|
285
|
-
|
|
286
|
-
code: "duplicate_symbol";
|
|
287
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
288
|
-
message: string;
|
|
289
|
-
};
|
|
290
|
-
requestId: string;
|
|
291
|
-
};
|
|
292
|
-
outputFormat: "json";
|
|
293
|
-
status: 409;
|
|
294
|
-
input: {
|
|
295
|
-
json: {
|
|
345
|
+
data: {
|
|
296
346
|
address: `0x${string}`;
|
|
297
347
|
currency: string;
|
|
298
348
|
decimals: number;
|
|
299
349
|
logoUri?: string | undefined;
|
|
300
350
|
name: string;
|
|
301
351
|
symbol: string;
|
|
302
|
-
|
|
303
|
-
logo?: string | undefined;
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
} | {
|
|
307
|
-
output: {
|
|
308
|
-
error: {
|
|
309
|
-
code: "version_mismatch";
|
|
310
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
311
|
-
message: string;
|
|
352
|
+
id: string;
|
|
312
353
|
};
|
|
313
|
-
|
|
354
|
+
version: string;
|
|
314
355
|
};
|
|
315
356
|
outputFormat: "json";
|
|
316
|
-
status:
|
|
357
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
317
358
|
input: {
|
|
318
359
|
json: {
|
|
319
360
|
address: `0x${string}`;
|
|
@@ -329,14 +370,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
329
370
|
} | {
|
|
330
371
|
output: {
|
|
331
372
|
error: {
|
|
332
|
-
code: "
|
|
373
|
+
code: "duplicate_address";
|
|
333
374
|
details?: readonly Response.error.Detail[] | undefined;
|
|
334
375
|
message: string;
|
|
335
376
|
};
|
|
336
377
|
requestId: string;
|
|
337
378
|
};
|
|
338
379
|
outputFormat: "json";
|
|
339
|
-
status:
|
|
380
|
+
status: 409;
|
|
340
381
|
input: {
|
|
341
382
|
json: {
|
|
342
383
|
address: `0x${string}`;
|
|
@@ -351,19 +392,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
351
392
|
};
|
|
352
393
|
} | {
|
|
353
394
|
output: {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
logoUri?: string | undefined;
|
|
359
|
-
name: string;
|
|
360
|
-
symbol: string;
|
|
361
|
-
id: string;
|
|
395
|
+
error: {
|
|
396
|
+
code: "duplicate_symbol";
|
|
397
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
398
|
+
message: string;
|
|
362
399
|
};
|
|
363
|
-
|
|
400
|
+
requestId: string;
|
|
364
401
|
};
|
|
365
402
|
outputFormat: "json";
|
|
366
|
-
status:
|
|
403
|
+
status: 409;
|
|
367
404
|
input: {
|
|
368
405
|
json: {
|
|
369
406
|
address: `0x${string}`;
|
|
@@ -379,14 +416,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
379
416
|
} | {
|
|
380
417
|
output: {
|
|
381
418
|
error: {
|
|
382
|
-
code:
|
|
419
|
+
code: "version_mismatch";
|
|
383
420
|
details?: readonly Response.error.Detail[] | undefined;
|
|
384
421
|
message: string;
|
|
385
422
|
};
|
|
386
423
|
requestId: string;
|
|
387
424
|
};
|
|
388
425
|
outputFormat: "json";
|
|
389
|
-
status:
|
|
426
|
+
status: 412;
|
|
390
427
|
input: {
|
|
391
428
|
json: {
|
|
392
429
|
address: `0x${string}`;
|
|
@@ -406,14 +443,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
406
443
|
$put: {
|
|
407
444
|
output: {
|
|
408
445
|
error: {
|
|
409
|
-
code:
|
|
446
|
+
code: string;
|
|
410
447
|
details?: readonly Response.error.Detail[] | undefined;
|
|
411
448
|
message: string;
|
|
412
449
|
};
|
|
413
450
|
requestId: string;
|
|
414
451
|
};
|
|
415
452
|
outputFormat: "json";
|
|
416
|
-
status:
|
|
453
|
+
status: 400 | 413 | 415;
|
|
417
454
|
input: {
|
|
418
455
|
query: {
|
|
419
456
|
chainId: string | string[];
|
|
@@ -433,14 +470,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
433
470
|
} | {
|
|
434
471
|
output: {
|
|
435
472
|
error: {
|
|
436
|
-
code: "
|
|
473
|
+
code: "upstream_error";
|
|
437
474
|
details?: readonly Response.error.Detail[] | undefined;
|
|
438
475
|
message: string;
|
|
439
476
|
};
|
|
440
477
|
requestId: string;
|
|
441
478
|
};
|
|
442
479
|
outputFormat: "json";
|
|
443
|
-
status:
|
|
480
|
+
status: 502;
|
|
444
481
|
input: {
|
|
445
482
|
query: {
|
|
446
483
|
chainId: string | string[];
|
|
@@ -460,14 +497,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
460
497
|
} | {
|
|
461
498
|
output: {
|
|
462
499
|
error: {
|
|
463
|
-
code: "
|
|
500
|
+
code: "verified_token_not_found";
|
|
464
501
|
details?: readonly Response.error.Detail[] | undefined;
|
|
465
502
|
message: string;
|
|
466
503
|
};
|
|
467
504
|
requestId: string;
|
|
468
505
|
};
|
|
469
506
|
outputFormat: "json";
|
|
470
|
-
status:
|
|
507
|
+
status: 404;
|
|
471
508
|
input: {
|
|
472
509
|
query: {
|
|
473
510
|
chainId: string | string[];
|
|
@@ -487,7 +524,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
487
524
|
} | {
|
|
488
525
|
output: {
|
|
489
526
|
error: {
|
|
490
|
-
code: "
|
|
527
|
+
code: "duplicate_address";
|
|
491
528
|
details?: readonly Response.error.Detail[] | undefined;
|
|
492
529
|
message: string;
|
|
493
530
|
};
|
|
@@ -514,14 +551,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
514
551
|
} | {
|
|
515
552
|
output: {
|
|
516
553
|
error: {
|
|
517
|
-
code: "
|
|
554
|
+
code: "duplicate_symbol";
|
|
518
555
|
details?: readonly Response.error.Detail[] | undefined;
|
|
519
556
|
message: string;
|
|
520
557
|
};
|
|
521
558
|
requestId: string;
|
|
522
559
|
};
|
|
523
560
|
outputFormat: "json";
|
|
524
|
-
status:
|
|
561
|
+
status: 409;
|
|
525
562
|
input: {
|
|
526
563
|
query: {
|
|
527
564
|
chainId: string | string[];
|
|
@@ -541,14 +578,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
541
578
|
} | {
|
|
542
579
|
output: {
|
|
543
580
|
error: {
|
|
544
|
-
code: "
|
|
581
|
+
code: "version_mismatch";
|
|
545
582
|
details?: readonly Response.error.Detail[] | undefined;
|
|
546
583
|
message: string;
|
|
547
584
|
};
|
|
548
585
|
requestId: string;
|
|
549
586
|
};
|
|
550
587
|
outputFormat: "json";
|
|
551
|
-
status:
|
|
588
|
+
status: 412;
|
|
552
589
|
input: {
|
|
553
590
|
query: {
|
|
554
591
|
chainId: string | string[];
|
|
@@ -596,33 +633,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
596
633
|
}[];
|
|
597
634
|
};
|
|
598
635
|
};
|
|
599
|
-
} | {
|
|
600
|
-
output: {
|
|
601
|
-
error: {
|
|
602
|
-
code: string;
|
|
603
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
604
|
-
message: string;
|
|
605
|
-
};
|
|
606
|
-
requestId: string;
|
|
607
|
-
};
|
|
608
|
-
outputFormat: "json";
|
|
609
|
-
status: 400 | 413 | 415;
|
|
610
|
-
input: {
|
|
611
|
-
query: {
|
|
612
|
-
chainId: string | string[];
|
|
613
|
-
};
|
|
614
|
-
} & {
|
|
615
|
-
json: {
|
|
616
|
-
tokens: {
|
|
617
|
-
address: `0x${string}`;
|
|
618
|
-
currency: string;
|
|
619
|
-
decimals: number;
|
|
620
|
-
logoUri?: string | undefined;
|
|
621
|
-
name: string;
|
|
622
|
-
symbol: string;
|
|
623
|
-
}[];
|
|
624
|
-
};
|
|
625
|
-
};
|
|
626
636
|
};
|
|
627
637
|
};
|
|
628
638
|
} & {
|
|
@@ -630,14 +640,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
630
640
|
$patch: {
|
|
631
641
|
output: {
|
|
632
642
|
error: {
|
|
633
|
-
code:
|
|
643
|
+
code: string;
|
|
634
644
|
details?: readonly Response.error.Detail[] | undefined;
|
|
635
645
|
message: string;
|
|
636
646
|
};
|
|
637
647
|
requestId: string;
|
|
638
648
|
};
|
|
639
649
|
outputFormat: "json";
|
|
640
|
-
status:
|
|
650
|
+
status: 400 | 413 | 415;
|
|
641
651
|
input: {
|
|
642
652
|
param: {
|
|
643
653
|
address: `0x${string}`;
|
|
@@ -658,14 +668,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
658
668
|
} | {
|
|
659
669
|
output: {
|
|
660
670
|
error: {
|
|
661
|
-
code: "
|
|
671
|
+
code: "upstream_error";
|
|
662
672
|
details?: readonly Response.error.Detail[] | undefined;
|
|
663
673
|
message: string;
|
|
664
674
|
};
|
|
665
675
|
requestId: string;
|
|
666
676
|
};
|
|
667
677
|
outputFormat: "json";
|
|
668
|
-
status:
|
|
678
|
+
status: 502;
|
|
669
679
|
input: {
|
|
670
680
|
param: {
|
|
671
681
|
address: `0x${string}`;
|
|
@@ -686,14 +696,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
686
696
|
} | {
|
|
687
697
|
output: {
|
|
688
698
|
error: {
|
|
689
|
-
code: "
|
|
699
|
+
code: "verified_token_not_found";
|
|
690
700
|
details?: readonly Response.error.Detail[] | undefined;
|
|
691
701
|
message: string;
|
|
692
702
|
};
|
|
693
703
|
requestId: string;
|
|
694
704
|
};
|
|
695
705
|
outputFormat: "json";
|
|
696
|
-
status:
|
|
706
|
+
status: 404;
|
|
697
707
|
input: {
|
|
698
708
|
param: {
|
|
699
709
|
address: `0x${string}`;
|
|
@@ -713,15 +723,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
713
723
|
};
|
|
714
724
|
} | {
|
|
715
725
|
output: {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
726
|
+
data: {
|
|
727
|
+
address: `0x${string}`;
|
|
728
|
+
currency: string;
|
|
729
|
+
decimals: number;
|
|
730
|
+
logoUri?: string | undefined;
|
|
731
|
+
name: string;
|
|
732
|
+
symbol: string;
|
|
733
|
+
id: string;
|
|
720
734
|
};
|
|
721
|
-
|
|
735
|
+
version: string;
|
|
722
736
|
};
|
|
723
737
|
outputFormat: "json";
|
|
724
|
-
status:
|
|
738
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
725
739
|
input: {
|
|
726
740
|
param: {
|
|
727
741
|
address: `0x${string}`;
|
|
@@ -742,14 +756,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
742
756
|
} | {
|
|
743
757
|
output: {
|
|
744
758
|
error: {
|
|
745
|
-
code: "
|
|
759
|
+
code: "duplicate_address";
|
|
746
760
|
details?: readonly Response.error.Detail[] | undefined;
|
|
747
761
|
message: string;
|
|
748
762
|
};
|
|
749
763
|
requestId: string;
|
|
750
764
|
};
|
|
751
765
|
outputFormat: "json";
|
|
752
|
-
status:
|
|
766
|
+
status: 409;
|
|
753
767
|
input: {
|
|
754
768
|
param: {
|
|
755
769
|
address: `0x${string}`;
|
|
@@ -770,46 +784,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
770
784
|
} | {
|
|
771
785
|
output: {
|
|
772
786
|
error: {
|
|
773
|
-
code: "
|
|
787
|
+
code: "duplicate_symbol";
|
|
774
788
|
details?: readonly Response.error.Detail[] | undefined;
|
|
775
789
|
message: string;
|
|
776
790
|
};
|
|
777
791
|
requestId: string;
|
|
778
792
|
};
|
|
779
793
|
outputFormat: "json";
|
|
780
|
-
status:
|
|
781
|
-
input: {
|
|
782
|
-
param: {
|
|
783
|
-
address: `0x${string}`;
|
|
784
|
-
};
|
|
785
|
-
} & {
|
|
786
|
-
query: {
|
|
787
|
-
chainId: string | string[];
|
|
788
|
-
};
|
|
789
|
-
} & {
|
|
790
|
-
json: {
|
|
791
|
-
currency?: string | undefined;
|
|
792
|
-
decimals?: number | undefined;
|
|
793
|
-
logoUri?: string | undefined;
|
|
794
|
-
name?: string | undefined;
|
|
795
|
-
symbol?: string | undefined;
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
|
-
} | {
|
|
799
|
-
output: {
|
|
800
|
-
data: {
|
|
801
|
-
address: `0x${string}`;
|
|
802
|
-
currency: string;
|
|
803
|
-
decimals: number;
|
|
804
|
-
logoUri?: string | undefined;
|
|
805
|
-
name: string;
|
|
806
|
-
symbol: string;
|
|
807
|
-
id: string;
|
|
808
|
-
};
|
|
809
|
-
version: string;
|
|
810
|
-
};
|
|
811
|
-
outputFormat: "json";
|
|
812
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
794
|
+
status: 409;
|
|
813
795
|
input: {
|
|
814
796
|
param: {
|
|
815
797
|
address: `0x${string}`;
|
|
@@ -830,14 +812,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
830
812
|
} | {
|
|
831
813
|
output: {
|
|
832
814
|
error: {
|
|
833
|
-
code:
|
|
815
|
+
code: "version_mismatch";
|
|
834
816
|
details?: readonly Response.error.Detail[] | undefined;
|
|
835
817
|
message: string;
|
|
836
818
|
};
|
|
837
819
|
requestId: string;
|
|
838
820
|
};
|
|
839
821
|
outputFormat: "json";
|
|
840
|
-
status:
|
|
822
|
+
status: 412;
|
|
841
823
|
input: {
|
|
842
824
|
param: {
|
|
843
825
|
address: `0x${string}`;
|
|
@@ -862,14 +844,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
862
844
|
$delete: {
|
|
863
845
|
output: {
|
|
864
846
|
error: {
|
|
865
|
-
code:
|
|
847
|
+
code: string;
|
|
866
848
|
details?: readonly Response.error.Detail[] | undefined;
|
|
867
849
|
message: string;
|
|
868
850
|
};
|
|
869
851
|
requestId: string;
|
|
870
852
|
};
|
|
871
853
|
outputFormat: "json";
|
|
872
|
-
status:
|
|
854
|
+
status: 400 | 413 | 415;
|
|
873
855
|
input: {
|
|
874
856
|
param: {
|
|
875
857
|
address: `0x${string}`;
|
|
@@ -882,14 +864,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
882
864
|
} | {
|
|
883
865
|
output: {
|
|
884
866
|
error: {
|
|
885
|
-
code: "
|
|
867
|
+
code: "upstream_error";
|
|
886
868
|
details?: readonly Response.error.Detail[] | undefined;
|
|
887
869
|
message: string;
|
|
888
870
|
};
|
|
889
871
|
requestId: string;
|
|
890
872
|
};
|
|
891
873
|
outputFormat: "json";
|
|
892
|
-
status:
|
|
874
|
+
status: 502;
|
|
893
875
|
input: {
|
|
894
876
|
param: {
|
|
895
877
|
address: `0x${string}`;
|
|
@@ -902,14 +884,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
902
884
|
} | {
|
|
903
885
|
output: {
|
|
904
886
|
error: {
|
|
905
|
-
code: "
|
|
887
|
+
code: "verified_token_not_found";
|
|
906
888
|
details?: readonly Response.error.Detail[] | undefined;
|
|
907
889
|
message: string;
|
|
908
890
|
};
|
|
909
891
|
requestId: string;
|
|
910
892
|
};
|
|
911
893
|
outputFormat: "json";
|
|
912
|
-
status:
|
|
894
|
+
status: 404;
|
|
913
895
|
input: {
|
|
914
896
|
param: {
|
|
915
897
|
address: `0x${string}`;
|
|
@@ -922,7 +904,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
922
904
|
} | {
|
|
923
905
|
output: {
|
|
924
906
|
error: {
|
|
925
|
-
code: "
|
|
907
|
+
code: "duplicate_address";
|
|
926
908
|
details?: readonly Response.error.Detail[] | undefined;
|
|
927
909
|
message: string;
|
|
928
910
|
};
|
|
@@ -942,14 +924,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
942
924
|
} | {
|
|
943
925
|
output: {
|
|
944
926
|
error: {
|
|
945
|
-
code: "
|
|
927
|
+
code: "duplicate_symbol";
|
|
946
928
|
details?: readonly Response.error.Detail[] | undefined;
|
|
947
929
|
message: string;
|
|
948
930
|
};
|
|
949
931
|
requestId: string;
|
|
950
932
|
};
|
|
951
933
|
outputFormat: "json";
|
|
952
|
-
status:
|
|
934
|
+
status: 409;
|
|
953
935
|
input: {
|
|
954
936
|
param: {
|
|
955
937
|
address: `0x${string}`;
|
|
@@ -962,14 +944,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
962
944
|
} | {
|
|
963
945
|
output: {
|
|
964
946
|
error: {
|
|
965
|
-
code: "
|
|
947
|
+
code: "version_mismatch";
|
|
966
948
|
details?: readonly Response.error.Detail[] | undefined;
|
|
967
949
|
message: string;
|
|
968
950
|
};
|
|
969
951
|
requestId: string;
|
|
970
952
|
};
|
|
971
953
|
outputFormat: "json";
|
|
972
|
-
status:
|
|
954
|
+
status: 412;
|
|
973
955
|
input: {
|
|
974
956
|
param: {
|
|
975
957
|
address: `0x${string}`;
|
|
@@ -994,17 +976,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
994
976
|
chainId: string | string[];
|
|
995
977
|
};
|
|
996
978
|
};
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
};
|
|
1006
|
-
outputFormat: "json";
|
|
1007
|
-
status: 400 | 413 | 415;
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
} & {
|
|
982
|
+
"/:address/logo": {
|
|
983
|
+
$get: {
|
|
984
|
+
output: ArrayBuffer;
|
|
985
|
+
outputFormat: "body";
|
|
986
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1008
987
|
input: {
|
|
1009
988
|
param: {
|
|
1010
989
|
address: `0x${string}`;
|
|
@@ -1014,11 +993,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
1014
993
|
chainId: string | string[];
|
|
1015
994
|
};
|
|
1016
995
|
};
|
|
1017
|
-
}
|
|
1018
|
-
};
|
|
1019
|
-
} & {
|
|
1020
|
-
"/:address/logo": {
|
|
1021
|
-
$get: {
|
|
996
|
+
} | {
|
|
1022
997
|
output: {
|
|
1023
998
|
error: {
|
|
1024
999
|
code: "logo_not_found";
|
|
@@ -1038,19 +1013,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
1038
1013
|
chainId: string | string[];
|
|
1039
1014
|
};
|
|
1040
1015
|
};
|
|
1041
|
-
} | {
|
|
1042
|
-
output: ArrayBuffer;
|
|
1043
|
-
outputFormat: "body";
|
|
1044
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1045
|
-
input: {
|
|
1046
|
-
param: {
|
|
1047
|
-
address: `0x${string}`;
|
|
1048
|
-
};
|
|
1049
|
-
} & {
|
|
1050
|
-
query: {
|
|
1051
|
-
chainId: string | string[];
|
|
1052
|
-
};
|
|
1053
|
-
};
|
|
1054
1016
|
};
|
|
1055
1017
|
};
|
|
1056
1018
|
} & {
|
|
@@ -1098,14 +1060,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
1098
1060
|
} | {
|
|
1099
1061
|
output: {
|
|
1100
1062
|
error: {
|
|
1101
|
-
code: "
|
|
1063
|
+
code: "unsupported_media_type";
|
|
1102
1064
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1103
1065
|
message: string;
|
|
1104
1066
|
};
|
|
1105
1067
|
requestId: string;
|
|
1106
1068
|
};
|
|
1107
1069
|
outputFormat: "json";
|
|
1108
|
-
status:
|
|
1070
|
+
status: 415;
|
|
1109
1071
|
input: {
|
|
1110
1072
|
param: {
|
|
1111
1073
|
address: `0x${string}`;
|
|
@@ -1118,14 +1080,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
|
|
|
1118
1080
|
} | {
|
|
1119
1081
|
output: {
|
|
1120
1082
|
error: {
|
|
1121
|
-
code: "
|
|
1083
|
+
code: "payload_too_large";
|
|
1122
1084
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1123
1085
|
message: string;
|
|
1124
1086
|
};
|
|
1125
1087
|
requestId: string;
|
|
1126
1088
|
};
|
|
1127
1089
|
outputFormat: "json";
|
|
1128
|
-
status:
|
|
1090
|
+
status: 413;
|
|
1129
1091
|
input: {
|
|
1130
1092
|
param: {
|
|
1131
1093
|
address: `0x${string}`;
|
|
@@ -1180,16 +1142,24 @@ export declare namespace create {
|
|
|
1180
1142
|
type Assets = Assets.Assets;
|
|
1181
1143
|
/** Options for {@link create}. */
|
|
1182
1144
|
type Options = {
|
|
1183
|
-
/** API-key provisioning config (mirrors the API app's `apiKey` option). */
|
|
1184
|
-
apiKey: {
|
|
1185
|
-
/** Source to provision against (mint/list/revoke). */
|
|
1186
|
-
source: ApiKeySource.Source;
|
|
1187
|
-
};
|
|
1188
1145
|
/**
|
|
1189
1146
|
* Static-asset writer for logo uploads (shared with the main API's `assets`
|
|
1190
1147
|
* loader) to enable `PUT /verified-tokens/:address/logo`; omit for `404`.
|
|
1191
1148
|
*/
|
|
1192
1149
|
assets?: Assets | undefined;
|
|
1150
|
+
/**
|
|
1151
|
+
* Authoritative Postgres store shared with the main API (verified
|
|
1152
|
+
* tokens). Pass a long-lived `Db.postgres(...)` singleton on Node, or a
|
|
1153
|
+
* factory (`() => Db.postgres(...)`) on Workers.
|
|
1154
|
+
*/
|
|
1155
|
+
db: Db.Source;
|
|
1156
|
+
/**
|
|
1157
|
+
* KV state store backing API-key records (shared with the main API's
|
|
1158
|
+
* `kv` option), provisioned against by the `/api-keys` routes.
|
|
1159
|
+
*/
|
|
1160
|
+
kv: {
|
|
1161
|
+
store: Store.State;
|
|
1162
|
+
};
|
|
1193
1163
|
/**
|
|
1194
1164
|
* Extracts the verified admin identity from a request, or `null` to deny.
|
|
1195
1165
|
* Must only return an identity for an already-authenticated request (a
|
|
@@ -1201,14 +1171,6 @@ export declare namespace create {
|
|
|
1201
1171
|
* `loginUrl`/`logoutUrl` are surfaced in `GET /config.json`.
|
|
1202
1172
|
*/
|
|
1203
1173
|
ui?: Ui | false | undefined;
|
|
1204
|
-
/**
|
|
1205
|
-
* Verified-token management config (store shared with the main API's reads)
|
|
1206
|
-
* to enable the `/verified-tokens` routes; omit to serve them as `404`.
|
|
1207
|
-
*/
|
|
1208
|
-
verifiedTokens?: {
|
|
1209
|
-
/** Verified-token state store (shared with the main API's reads). */
|
|
1210
|
-
store: Store.State;
|
|
1211
|
-
} | undefined;
|
|
1212
1174
|
};
|
|
1213
1175
|
/** Admin UI options surfaced to the SPA via `GET /config.json`. */
|
|
1214
1176
|
type Ui = {
|