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

Create project with wAZERO implementation in Solidity #1

Merged
merged 13 commits into from
Aug 8, 2024
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: test

on:
pull_request:
branches:
- main
push:
branches:
- main

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
id: test
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Compiler files
krzysztofziobro marked this conversation as resolved.
Show resolved Hide resolved
cache/
out/

# Dotenv file
.env
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Wrapped AZERO Solidity implementation

A simple AZERO wrapped token based on WETH9 Solidity implementation.

### Testing

To test the contract, run the following commands:

```bash
forge test
```

### Deployment

To deploy the contract, run the following commands:

```bash
forge create --rpc-url <your_rpc_url> \
--private-key <your_private_key> \
--verify \
src/wAZERO.sol:WAZERO
```

## Addresses and ABIs

Contract ABI and bytecode can be found in the `artifacts` directory.

Addresses of deployed (and verified contracts) for Aleph Zero EVM networks:

- Testnet: `???`
- Mainnet: `???`



6 changes: 6 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[profile.default]
src = "src"
out = "out"
libs = ["lib"]

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
1 change: 1 addition & 0 deletions lib/forge-std
Submodule forge-std added at 1714be
Loading