feat: publishing infernet-container-starter v0.2.0
This commit is contained in:
@ -11,4 +11,4 @@ deploy:
|
||||
|
||||
# calling sayGM()
|
||||
call-contract:
|
||||
@PRIVATE_KEY=$(sender) forge script script/CallContract.s.sol:CallContract --broadcast --rpc-url $(RPC_URL)
|
||||
@PRIVATE_KEY=$(sender) forge script script/CallContract.s.sol:CallContract --broadcast --rpc-url $(RPC_URL)
|
||||
|
@ -1,15 +1,15 @@
|
||||
# `Hello-World` Consumer Contracts
|
||||
|
||||
This is a [foundry](https://book.getfoundry.sh/) project that implements a simple Consumer
|
||||
contract, [`SaysGm`](./src/SaysGM.sol).
|
||||
contract, [`SaysGm`](./src/SaysGM.sol).
|
||||
|
||||
This readme explains how to compile and deploy the contract to the Infernet Anvil Testnet network.
|
||||
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](./Tutorial.md).
|
||||
|
||||
|
||||
> [!IMPORTANT]
|
||||
> Ensure that you are running the following scripts with the Infernet Anvil Testnet network.
|
||||
> The [tutorial](./../../../README.md) at the root of this repository explains how to
|
||||
> [!IMPORTANT]
|
||||
> Ensure that you are running the following scripts with the Infernet Anvil Testnet network.
|
||||
> The [tutorial](../hello-world) at the root of this repository explains how to
|
||||
> bring up an infernet node.
|
||||
|
||||
### Installing the libraries
|
||||
@ -27,7 +27,7 @@ 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](./Makefile#L9) to deploy the contract. Refer to the Makefile
|
||||
We have the [following make target](./Makefile#L9) to deploy the contract. Refer to the Makefile
|
||||
for more understanding around the deploy scripts.
|
||||
```bash
|
||||
make deploy
|
||||
@ -35,10 +35,9 @@ 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](./script/CallContract.s.sol) for more details. Similar to deployment,
|
||||
Refer to the [script](./script/CallContract.s.sol) for more details. Similar to deployment,
|
||||
you can run that script using the following convenience make target.
|
||||
```bash
|
||||
make call-contract
|
||||
```
|
||||
Refer to the [Makefile](./Makefile#L14) for more details.
|
||||
|
||||
|
@ -218,7 +218,7 @@ PRIVATE_KEY=0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a \
|
||||
```
|
||||
|
||||
### Using a `Makefile`
|
||||
To make running these commands easier, we can add them to a `Makefile`. This allows
|
||||
To make running these commands easier, we can add them to a `Makefile`. This allows
|
||||
us to run `make deploy` and `make call` instead of typing out the full command every time.
|
||||
|
||||
Refer to [this project's Makefile](./Makefile) for an example.
|
||||
@ -226,4 +226,4 @@ Refer to [this project's Makefile](./Makefile) for an example.
|
||||
### 🎉 Done!
|
||||
|
||||
Congratulations! You've successfully created a contract that requests compute from
|
||||
our `hello-world` container.
|
||||
our `hello-world` container.
|
||||
|
Reference in New Issue
Block a user