Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EVM-Equivalence-Yul] ERC20 example #1871

Merged
merged 12 commits into from
May 22, 2024

Conversation

gianbelinche
Copy link

@gianbelinche gianbelinche commented May 7, 2024

What ❔

This PR adds an execution example for a ERC20, which:

  • Inits a wallet
  • Deposits some funds into the wallet
  • Deploys a sample ERC20 contract
  • Query the contract for the token name and symbol
  • Mint 100000 tokens into the address CD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826
  • Transfer 1000 tokens from CD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826 to bBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB

And outputs:

Deploy L2 tx gas used:
Mint L2 tx gas used:
Transfer L2 tx gas used:

Run the server

Run the following command:

zk && zk clean --all && zk init && zk server --components "api,tree,eth,state_keeper,housekeeper"

Run the example

In this example we're going to run some transactions.

Once the server is running, run this command in other terminal:

cargo run --release --bin erc20_example

It is related to the following PR

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.
  • Spellcheck has been run via zk spellcheck.
  • Linkcheck has been run via zk linkcheck.

@jrchatruc jrchatruc merged commit 8def9dd into matter-labs:evm-equivalence-yul May 22, 2024
5 of 11 checks passed
@jrchatruc jrchatruc deleted the evm-erc20 branch May 22, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants