This is a Paima DAO smart contract, to be deployed on Astar Network.
Shibuya is used as a testnet. Get test tokens here
Deployed on Shibuya: 0xe67Bd26330263b9830CD4E81e3faE298E8F5e487
- Install Foundry by following the instructions from their repository.
- Copy the
.env.template
file to.env
and fill in the variables. - Install the dependencies by running:
yarn
yarn compile
yarn compile:sizes (to see contracts sizes)
yarn anvil
yarn deploy:localhost
Deploying will automatically verify the smart contracts on Blockscout. To disable this, remove the verifying arguments from the script.
WSL2 cannot access USB devices in Windows by default, so you will need to expose your Trezor device to WSL2.
- In WSL2, run the CURL command to install the
udev
rules for Trezor from here. - In WSL2, run
sudo service udev restart
- In command prompt, run
winget install usbipd
- In command prompt, run
usbipd list
and look for the BUSID forTREZOR
- In administrator command prompt, run
usbipd bind --busid=<BUSID>
with the BUSID from step (2). - In command prompt, run
usbipd attach --wsl --busid=<BUSID>
with the BUSID from step (2). Note: you will have to re-run this specific step every time you disconnect/reconnect the device - In WSL2, install
trezorctl
by following this guide (ignore the Trezor Bridge stuff) - In WSL2, run
lsusb
and see if Trezor appears to ensure the setup worked from the USB perspective - In WSL2, run
trezorctl list
to ensure the setup worked from the Trezor perspective
# Load the environment variables from the .env file
set -a # automatically export all variables
source .env
set +a # stop automatically exporting variables
yarn deploy:testnet
yarn deploy:mainnet