Skip to content

Lay3rLabs/example-rust-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WAVS Rust Gui Example

This builds off the WAVS Foundry Template and adds a GUI to the example.

Some code is shared between the Component and the Frontend

You have a choice of using Metamask, Anvil, or a Mnemonic for your wallet (via dropdown in the GUI)

Metamask support is actually via viem, so other wallets could be supported just as easily.

Getting started

First follow the WAVS Foundry Template README

In short, assuming you have all the tools installed, you can run:

1. make build
2. (in another terminal) make start-all
3. make deploy-contracts
4. TRIGGER_EVENT="NewTrigger(bytes)" make deploy-service

After you have the server running, contracts deployed, and service created (this must all be done first!), start the gui with:

make frontend-dev

You can then open http://127.0.0.1:8080/ in your browser.

Setting up Metamask with Anvil

You'll need to add Anvil to Metamask manually. Settings will look something like this:

  • Network Name: Anvil
  • Default RPC URL: localhost:8545
  • ChainID: 31337
  • Currency Symbol: ETH
  • Block Explorer URL: (leave empty)

And don't forget to add a Metamask account with the Anvil private key:

mnemonic: test test test test test test test test test test test junk
private key: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published