.. | ||
script | ||
src | ||
.gitignore | ||
foundry.toml | ||
Makefile | ||
README.md | ||
remappings.txt |
ONNX
Consumer Contracts
This is a foundry project that implements a simple Consumer
contract, IrisClassifier
.
This readme explains how to compile and deploy the contract to the Infernet Anvil Testnet network.
Important
Ensure that you are running the following scripts with the Infernet Anvil Testnet network. The tutorial at the root of this repository explains how to bring up an infernet node.
Installing the libraries
forge install
Compiling the contracts
forge compile
Deploying the contracts
The deploy script at script/Deploy.s.sol
deploys the IrisClassifier
contract to the Infernet Anvil Testnet network.
We have the following make target to deploy the contract. Refer to the Makefile for more understanding around the deploy scripts.
make deploy
Requesting a job
We also have a script called CallContract.s.sol
that requests a job to the IrisClassifier
contract.
Refer to the script for more details. Similar to deployment,
you can run that script using the following convenience make target.
make call-contract
Refer to the Makefile for more details.