mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
21 lines
438 B
Markdown
21 lines
438 B
Markdown
|
|
# Ethereum
|
||
|
|
|
||
|
|
This package contains Ethereum-related functionality, specifically deploying and interacting with Serai contracts.
|
||
|
|
|
||
|
|
## Requirements
|
||
|
|
|
||
|
|
- anvil & solc & geth's abigen (see [here](https://github.com/gakonst/ethers-rs#running-the-tests))
|
||
|
|
|
||
|
|
## To test
|
||
|
|
|
||
|
|
To compile contracts:
|
||
|
|
```
|
||
|
|
cargo build
|
||
|
|
```
|
||
|
|
|
||
|
|
This places the compiled artifact into `artifacts/`.
|
||
|
|
|
||
|
|
To run Rust tests (you must have compiled the contracts first):
|
||
|
|
```
|
||
|
|
cargo test
|
||
|
|
```
|