sora-oracle-cli
v0.1.3
Published
Command-line helper for deploying and inspecting Sora Oracle markets.
Readme
Sora Oracle CLI
Lightweight command-line wrapper around the sora-oracle SDK for creating predictions and markets.
Install
npm install -g sora-oracle-cli
# or run without installing
npx sora-oracle --helpEnvironment
PRIVATE_KEY(required for write actions)RPC_URLandCHAIN_ID(default to the BSC public RPC and chain id 56)- Contract addresses:
PREDICTION_FACTORY,MARKET_FACTORY,BET_MARKET_FACTORY,INDEX_REGISTRY,FACILITATOR,MARKET_HELPER,USD1 - API scheduling:
ORACLE_API_URLorBASE_URLfor the/predictions/scheduleendpoint
Commands
create-prediction -p "Prompt" -o "Yes,No" [-d <deadline>]create-market -p "Prompt" -o "Yes,No" -d <deadline> -b <bettingClose> [--slot-price 10] [--builder-fee-bps 100] [--builder-fee-recipient 0x...]list-predictions [-n 25]
Run sora-oracle --help or sora-oracle <command> --help for option details.
Build / publish
- Build locally:
npm run build --workspace cli - Publish: bump the version, then
npm publish --workspace cli
