Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.08 KB

README.md

File metadata and controls

29 lines (17 loc) · 1.08 KB

Greeter Tutorial

greeter is a simple demo of Arbitrum's L1-to-L2 message passing system (aka "retryable tickets").

It deploys 2 contracts - one to L1, and another to L2, and has the L1 contract send a message to the L2 contract to be executed automatically.

The script and contracts demonstrate how to interact with Arbitrum's core bridge contracts to create these retryable messages, how to calculate and forward appropriate fees from L1 to L2, and how to use Arbitrum's L1-to-L2 message address aliasing.

See ./exec.js for inline explanation.

Click here for more info on retryable tickets.

Run Demo:

yarn run greeter

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)