The Phat Contract VrfOracle, deployed on Phala Network (or testnet):
- Listens the requests from the Smart Contract, deployed on Astar Network (or testnet)
- Generates a random value between min and max values
- Sends the value to the Smart Contract, deployed on Astar Network (or testnet)
To build the contract:
cargo contract buildUnfortunately, the cross contract call doesn't work in a local environment. It means the JS contract used to compute the random value can not been reached and the tests can not be run for the time being.