An asset wrapping protocol that upgrades tokens with custom logic
Run the command below to install from scratch:
make fresh-install
Build the contracts:
forge build
forge test
Adding -m nameOfTestContract
will run a specific test.
Run a local blockchain:
anvil
Deploy the contracts to the local blockchain
make deploy-local
Deploy to all supported testnets (if not already deployed)
export PRIVATE_KEY=YOUR_KEY
make deploy-testnets
If you wish to redeploy to a specific testnet, delete the desired contract address in contractAddresses.json.
Foundry compiles, deploys, tests, and manages dependencies for your contracts. It also lets you interact with the chain from the command-line and via Solidity scripts. Check out the Foundry Book for more specifics.
forge update
will update all dependencies at once.
(TODO: this currently doesn't work)
Run npm run solhint
for linting to see Solidity warnings and errors.
Use npm run prettier:ts
and npm run prettier:solidity
to manually format TypeScript and Solidity.
These commands are automatically run pre-push via Husky Git hooks.