Demo Dapp Pet Shop

Check out this tutorial on GitHub: demo_dapp_pet_shop

demo_dapp_pet_shop is a simple sample example that allows you to deploy the adoption contract to Arbitrum and run its functions.

The contract lives entirely on the targetted chain, and involves no direct interacts from the parent chain; writing, deploying, and interacting with it works just like using a regular contract on Ethereum.

Set environment variables

Set the values shown in .env-sample as environmental variables. To copy it into a .env file:

cp .env-sample .env

You’ll still need to edit some variables, i.e., PRIVATE_KEY and CHAIN_RPC.

Note that you can also set the environment variables in an .env file in the root of the monorepo, which will be available in all tutorials.

Run demo

Install dependencies and build the contracts:

chmod +x ./build.sh && ./build.sh

Run the script:

python3 scripts/exec.py