Mithraic Oracle is the basis of a “built for Solana” oracle. The project is starting out as a simple Trusted Third Party (TTP) oracle. In the base form of the protocol, a Solana program developer can easily make various HTTP(S) requests and receive responses from a trusted server as a callback to their program. The TTP architecture was chosen for its simplicity due to the short time span of the hackathon. While the protocol is simple in its infancy, it’s built in such a way to be the foundation of a more ambitious decentralized oracle system built specifically for the Solana ecosystem. We’re excited about this project because it unlocks more applications on top of Solana such as a CLOB prediction market built on Serum.
see https://docs.solana.com/cli/install-solana-cli-tools
sh -c "$(curl -sSfL https://release.solana.com/v1.4.4/install)"
yarn install
yarn build
yarn localnet:up
yarn deploy:local
This will export all necessary environment variables, build, and run the oracle server.
yarn setup-server
ORACLE_ID will be generated during the server setup. Copy/paste it as the first argument
--loop (or any second argument) can be used to send requests at a .5s interval
yarn send-test [ORACLE_ID] [--loop]
docker logs solana-localnet -f | grep -E "Program log"
yarn test
yarn test:programs [PROGRAM_NAME]