Repository navigation
Releases: vibecodermaxi/websitekit
Releases · vibecodermaxi/websitekit
Release list
websitekit 0.2.0 — live on mainnet
websitekit is live on Robinhood Chain mainnet (4663), and boards settle in USDG.
npm create websitekit my-site
cd my-site && pnpm install && pnpm devThe first run needs no credentials. It reads a live, already-traded demo board on mainnet. Set NEXT_PUBLIC_WEBSITEKIT_CHAIN_ID=46630 to use the free testnet instead.
Unaudited, and no audit is planned. The contracts are not upgradeable, and on mainnet the money is real.
Packages
@websitekit/sdk0.2.0@websitekit/react0.2.0create-websitekit0.2.0
Contracts
- Render escrow:
EscrowFactory,EscrowVaultandAttestor, outside the frozen core. A board's publisher revenue is held for a window and paid to slot holders if the page goes dark. These have an owner; see SECURITY.md. SlotSitegainsSiteConfig.pinTreasury, the only bytecode escrow needs.- All seven mainnet contracts are verified on Sourcify as exact matches. Addresses are in
addresses.ts.
SDK
chainFornames a chain;deploymentForstill throws for one with nothing deployed.ROBINHOOD_MAINNETandROBINHOOD_MAINNET_ESCROW.settlementTokenFor(chainId): USDG on mainnet, a mintable tUSD stand-in on testnet.readSettlementCurrencyreads a board's decimals instead of assuming 18.approvalFor(buyRequest, token): the ERC-20 approval a purchase needs, sized to themaxPriceit authorises.demoSiteFor(chainId)and the escrow reads and builders.
React
<BuyDialog>shows amounts in the board's own currency. It printed "ETH" on every board.- On a token board it says the wallet will ask twice, and passes the approval to
onConfirmas a third argument.useBuygainsbuildApproval.
Scaffold
- Defaults to mainnet and USDG. The chain, addresses, settlement token and demo board all come from the SDK, so the template holds no chain literal.
- Floors are in dollars. The deploy script settles in the chain's dollar and refuses a decimals mismatch.
Upgrading from 0.1.x
<BuyDialog onConfirm>gets a third argument,approval. On a USDG board, send it and wait for its receipt before sending the purchase; it isnullon a native board.BuyQuotegainscurrency. Format amounts with it, not withformatEther.@websitekit/react0.2.0 needs@websitekit/sdk^0.2.0.