Skip to content

Latest commit

 

History

History
 
 

demo-dapp-pet-shop

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

demo-dapp-pet-shop Tutorial

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 L2 / involves no direct L1 interacts; writing, deploying, and interacting with it works just like using an L1 contract.

Config 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., DEVNET_PRIVKEY)

Run Demo

yarn run exec

Curious to see the output on the Arbitrum chain?

Once the script is successfully executed, you can go to the Arbitrum block explorer, enter your L2 address, and see the corresponding transactions on the Arbitrum chain!