Proven App
@provenapp/sdk

Sealed launches and private trading in a single package

Give any Elysium launchpad fair launches with locked liquidity, and give its users private balances, swaps, batches and transfers. Written in TypeScript on viem, with proofs generated in the browser.

@provenapp/sdk · packages/sdk · TypeScript
import { Proven, elysiumTestnet } from "@provenapp/sdk";

const proven = new Proven(publicClient, walletClient, FACTORY);

// create a sealed-bid launch with liquidity locked at the clearing price
const { auction, token } = await proven.createLaunch({
  name: "Shade", symbol: "SHADE",
  saleSupply: 1_000_000n * 10n ** 18n,
  minPrice: 10n ** 12n, tickSize: 10n ** 12n, numTicks: 100,
  commitEnd, revealEnd,
  lpBps: 5000, lpLockUntil: "burn",
});

Install with npm install @provenapp/sdk viem. Published with provenance from this repository. Contract addresses are built in: deploymentFor(99901).

Launchpads

Fair-launch mode in one call

Call createLaunch from your backend, or ProvenFactory.createLaunch from your contracts with the project set as creator.

Wallets & apps

Private balances for your users

Unlock with a single signature, then shield, swap, batch, send and withdraw. Proofs never leave the device.

Operators

Run a keeper

Reveal bids, settle launches and rounds, and relay private transactions. The role is permissionless, and several keepers can operate at the same time.

API

Proven App · Launches
createLaunch(params)Deploys a token together with its sealed-bid auction. Returns { auction, token }.
bid(auction, { maxPrice, quantity, deposit? })Seals and commits a bid (tlock-encrypted, bucketed deposit). Returns the bid secret.
revealAll(auction)Decrypts every sealed bid whose drand round has elapsed and reveals them in batches.
settle(auction) · claimAll(auction)Calculates the clearing price and seeds the pool, then sends tokens and refunds to bidders.
payOut(auction)Withdraws a settled launch's funds: the creator's proceeds, and the launch fee to the treasury.
getAuction · demandCurve · bidsOf · listLaunchesReads state: phase, clearing price, revealed demand at each price level, and a bidder's bids.
PrivateBalance · Private balances
PrivateBalance.unlock(wallet, config)Opens the private account from a single EIP-712 signature bound to this chain only, on every vault. The same wallet always restores it.
claimPrivately(wallet, auction, bidId)Claims a winning sealed bid to the wallet and shields it, so later activity with the tokens cannot be linked to the bid.
bidPrivately(auction, …) · finishPrivateBids(auction)Places a sealed bid funded from the private balance, then returns the tokens and any refund to it once the launch settles.
shieldHype · shieldToken(wallet, …, amount)Converts public HYPE or a token into a private note.
buy · sell(token, amount)Performs an instant private swap through the launch's Uniswap v4 pool, submitted by the relayer.
trade(tokenIn, tokenOut, amount) · tradePlan(…)Swaps between any two markets in one private trade, routed through HYPE (for example USDC to a launch token). Amounts above a vault's per-deposit cap are split into parts, and tradePlan shows how many beforehand.
depositCaps(token)Returns a vault's current limits: the largest single deposit and the remaining capacity. Shields, trades and bids are split automatically to fit.
receiveAddress(n) · collectReceived()Provides a regular address anyone can pay (a wallet, an exchange or a bridge), and moves whatever arrives into the private balance.
batch(token, side, amount)Splits an order into standard sizes and enters sealed orders in the current round.
send(token, address, amount)Transfers privately within the vault, with no sender, recipient or amount visible on-chain.
unshieldHype · unshieldToken(…, to, amount) · planSplitWithdrawWithdraws to any address, either at once or in pieces over time.
balance(pool) · address() · roundInfo()Returns your private balance, your proven: address and the batch round timing.
Payment links
newLinkSecret() · linkKeys(secret, passcode?) · linkAddress(keys)Creates a link's disposable private account: funds are sent to its address, and whoever holds the secret (and passcode) controls them.
buildClaimLink({ secret, block, token, amount, message, locked, hint, shares }) · parseClaimLink(url)Builds a claim link and parses it back. All data sits after the #, so servers never see it.
priv.sweep(token, to, onStatus?, { one? })Empties a balance in a single relayed call to a proven: or 0x address (no gas required). one claims just one share of a split link.
buildRequestLink({ to, token, amount?, note?, name? }) · parseRequestLink(url)Builds a link requesting payment in HYPE or USDC to a proven: or 0x address.
Helpers
provers() · holderProver("funds")Provers for the circuits (final keys, hash-verified) that run on the user's device.
relaySubmitter(url) · walletCoreSubmitter(…)Defines how private calls are submitted: through the relay (private) or a wallet (for testing).
sealBid · unsealBid · drandRoundAtdrand timelock primitives that power sealed bids.
relayQuote · relayStatusBridges into Elysium through Relay, from 20 chains or an exchange, to a receive address.
standardSizesFor(amount, notes, max) · budgetBuckets(cost)Calculates standard batch sizes and deposit buckets for bids.