ritual/projects/hello-world/contracts
vvzvlad d2ae25aaed
Update Makefile
Signed-off-by: vvzvlad <github@vvzvlad.xyz>
2024-06-08 19:56:19 +03:00
..
.github/workflows feat: publishing infernet-container-starter v0.1.0 2024-03-29 10:49:24 -04:00
lib infernet-1.0.0 update 2024-06-06 13:18:48 -04:00
script infernet-1.0.0 update 2024-06-06 13:18:48 -04:00
src infernet-1.0.0 update 2024-06-06 13:18:48 -04:00
.gitignore feat: publishing infernet-container-starter v0.1.0 2024-03-29 10:49:24 -04:00
foundry.toml feat: publishing infernet-container-starter v0.1.0 2024-03-29 10:49:24 -04:00
Makefile Update Makefile 2024-06-08 19:56:19 +03:00
README.md feat: publishing infernet-container-starter v0.2.0 2024-03-29 10:50:13 -04:00
remappings.txt infernet-1.0.0 update 2024-06-06 13:18:48 -04:00
Tutorial.md infernet-1.0.0 update 2024-06-06 13:18:48 -04:00

Hello-World Consumer Contracts

This is a foundry project that implements a simple Consumer contract, SaysGm.

This readme explains how to compile and deploy the contract to the Infernet Anvil Testnet network. For a detailed tutorial on how to write a consumer contract, refer to the tutorial doc.

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 SaysGM 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 SaysGM 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.