Build And Test Oracle Programs
Build the SEDA starter kit Oracle Program to WASM and run local tests before deploying, so agents can validate behavior without guessing.
Last updated
Was this helpful?
Build the SEDA starter kit Oracle Program to WASM and run local tests before deploying, so agents can validate behavior without guessing.
Authoritative references:
Getting Started: Price Feed: https://docs.seda.xyz/home/for-developers/seda-onchain/build-an-oracle-program-on-core/getting-started-price-feed
Accessing a Public API (includes test harness): https://docs.seda.xyz/home/for-developers/define-your-data-source/accessing-a-public-api
This runbook builds the SEDA starter kit Oracle Program into a WASM artifact and validates it locally before deployment.
Rule: Do not deploy until local tests pass.
You need:
Bun
Rust
Alternative:
Use the DevContainer workflow referenced in the guide (recommended if you want a predictable environment).
Checkpoint:
You can run bun --version and rustc --version.
Copy/paste:
Checkpoint:
Expected:
repo files are present
bun install completes without errors
Copy/paste:
Expected:
.wasm artifacts are placed in the build/ directory.
Checkpoint:
The docs provide a Bun test harness using @seda-protocol/dev-tools to execute WASM locally.
Action:
create or verify you have a test file under tests/ that matches the docs snippet
ensure it points to the canonical WASM path used in the docs:
target/wasm32-wasip1/release-wasm/oracle-program.wasm
Run tests:
Checkpoint:
tests pass (exit code 0)
output includes expected logs/results for the example
For PriceFeed examples, docs use symbol pairs like:
BTC-USDT
Checkpoint:
you can state the exact input format your Oracle Program expects (no guessing).
Last updated
Was this helpful?
Was this helpful?
git clone https://github.com/sedaprotocol/seda-starter-kit.git
cd seda-starter-kit
bun installlsbun run buildls -la build || true
find . -maxdepth 6 -name "*.wasm" | headbun test