Skip to content

Commit 5a78363

Browse files
committed
chore(vibenet): migrate API calls to api.vibes.base.org
The vibenet dataplane API is moving off the apex host onto a dedicated hostname. Point every apex API reference at api.vibes.base.org so nothing here breaks when vibes.base.org later becomes a redirect: - client.ts DEFAULT_BASE_URL and .env.example NEXT_PUBLIC_VIBENET_API_BASE_URL -> https://api.vibes.base.org (this also repoints the account rpc/payer/ bundler URLs, which derive from it) - SKILL.md + chains.ts doc references to /api/vibenet/* on the apex RPC (rpc.vibes.base.org) is a separate host and is intentionally unchanged. Verified api.vibes.base.org returns identical 200s (health/config/contracts/ explorer/faucet). typecheck/lint/build/tests pass.
1 parent e7df0cf commit 5a78363

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Vibenet dataplane API and RPC (public URLs, safe to expose to the client).
2-
NEXT_PUBLIC_VIBENET_API_BASE_URL=https://vibes.base.org
2+
NEXT_PUBLIC_VIBENET_API_BASE_URL=https://api.vibes.base.org
33
NEXT_PUBLIC_VIBENET_RPC_URL=https://rpc.vibes.base.org
44

55
# Snapshots: Cloudflare R2 credentials, read server-side by /api/snapshots.

app/vibenet/demos/account/build/build-with-viem-eip8130.SKILL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ sponsorship. The tooling lives in viem's `experimental/eip8130` module.
2828
- Public execution RPC — `https://rpc.vibes.base.org`. This **is** 8130-capable
2929
(`AA_TX_TYPE` / `0x79`); use it for reads, estimates, and broadcasts from
3030
Node/scripts.
31-
- Browser proxy — `https://vibes.base.org/api/vibenet/account/rpc`. Same
31+
- Browser proxy — `https://api.vibes.base.org/api/vibenet/account/rpc`. Same
3232
upstream chain, exposed as a same-origin Next.js proxy so the web UI can
3333
call `eth_*` without CORS. Prefer this from the browser; from Node either
3434
URL works.
35-
- Hosted payer — `https://vibes.base.org/api/vibenet/account/payer`.
36-
- Faucet — `POST https://vibes.base.org/api/vibenet/faucet/drip`
35+
- Hosted payer — `https://api.vibes.base.org/api/vibenet/account/payer`.
36+
- Faucet — `POST https://api.vibes.base.org/api/vibenet/faucet/drip`
3737
with `{ "address": "0x…" }`.
3838
- **Base Sepolia**`https://sepolia.base.org`, chain id `84532`.
3939

@@ -95,7 +95,7 @@ const chain = {
9595
rpcUrls: { default: { http: [RPC_URL] } },
9696
};
9797
const client = createPublicClient({ chain, transport: http(RPC_URL) });
98-
// Browser apps: use https://vibes.base.org/api/vibenet/account/rpc instead
98+
// Browser apps: use https://api.vibes.base.org/api/vibenet/account/rpc instead
9999
// (same chain, CORS-safe proxy).
100100

101101
// 1) Signer = LocalAccount (NOT key.k1 — that builds an actor identity).
@@ -110,7 +110,7 @@ const signer = privateKeyToAccount(generatePrivateKey());
110110
// the primary actor — you only call key.* when authorizing extra actors.
111111

112112
// 3) Fund account.address (faucet), then estimate + send.
113-
await fetch("https://vibes.base.org/api/vibenet/faucet/drip", {
113+
await fetch("https://api.vibes.base.org/api/vibenet/faucet/drip", {
114114
method: "POST",
115115
headers: { "content-type": "application/json" },
116116
body: JSON.stringify({ address: account.address }),
@@ -241,7 +241,7 @@ import { createPayerClient, sendSponsoredCalls } from "viem/experimental/eip8168
241241
import { waitForTransactionReceipt8130 } from "viem/experimental/eip8130";
242242

243243
const payerClient = createPayerClient({
244-
url: "https://vibes.base.org/api/vibenet/account/payer",
244+
url: "https://api.vibes.base.org/api/vibenet/account/payer",
245245
});
246246

247247
// Default mode:"send" — payer co-signs and broadcasts.

app/vibenet/demos/account/library/chains.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { isAddress } from "../../../library/format";
1919
* address does not match the sender".
2020
*
2121
* Rather than re-hardcode after every reset, the demo resolves these at runtime
22-
* from https://vibes.base.org/api/vibenet/contracts via {@link deploymentFromContracts}.
22+
* from https://api.vibes.base.org/api/vibenet/contracts via {@link deploymentFromContracts}.
2323
* This constant is used only until that fetch lands (or if it fails). The K1
2424
* authenticator (ecrecover precompile) and p256/webAuthn/alwaysValid
2525
* authenticators are deterministic across resets; `accounts.upgradeable`/

app/vibenet/library/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import type {
2727
VibesRecentResponse,
2828
} from './api-types';
2929

30-
const DEFAULT_BASE_URL = 'https://vibes.base.org';
30+
const DEFAULT_BASE_URL = 'https://api.vibes.base.org';
3131

3232
// An unset OR empty env var falls back to the default. Trailing slash trimmed
3333
// so `${BASE}${path}` never doubles up.

0 commit comments

Comments
 (0)