https://github.com/devlyn37/relay-rs
https://github.com/devlyn37/relay-rs
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/devlyn37/relay-rs
- Owner: devlyn37
- Created: 2023-01-25T02:04:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-26T03:01:03.000Z (about 3 years ago)
- Last Synced: 2025-02-10T02:13:20.134Z (over 1 year ago)
- Language: Rust
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Relay
An Ethereum Transaction Relay that:
- Manages the nonce of a single address
- Makes sure transactions get included
## Routes
`POST /transaction`
`GET /transaction/:id`
## Database Setup
This Project uses `MySQL` and `sqlx` right now.
First, make sure to set `DATABASE_URL` in `.env`
next, install sqlx-cli
```
cargo install sqlx-cli
```
run migrations
```
sqlx migrate run
```
You're good to go, everything should compile at this point!
## Making Schema Changes
Create a new migration file
```
sqlx migrate add
```
Then add SQL to the newly created file.
## TODO
- Init/Recovery Sequence
- Multiple Addresses
- Multi Chain
- Make sure gas estimation works reasonably across 1559 chains (looking at you polygon)
- All EVM Chains