EVM contracts for the Subnet 2 network.
- NodeJS (18)
pnpm installpnpm devpnpm testThis is for advanced SC debugging. It will get very loud very quick, be prepared for an onslaught of logs. This uses hardhat-tracer to fully trace SC calls.
pnpm test:debugpnpm deployThe owner of the contract is the deployer of the contract. The owner has the following privileges:
- Pause the contract
- Unpause the contract
- Change the owner
- Renounce ownership
- Allow withdrawals of ERC20s and ETH
- Disable withdrawals of ERC20s and ETH
The user of the contract is the depositor of the contract. The user has the following privileges:
- Deposit ERC20s when not paused
- Deposit ETH when not paused
- Withdraw ERC20s when not paused, withdrawals enabled
- Withdraw ETH when not paused, withdrawals enabled
- Access read methods
In the event of any emergency situation within the contract, defined as:
- A security incident occurs
- A critical issue is found
The contract owner shall immediately:
- Pause the contract
- Investigate the issue
- Fix the issue or take necessary steps to mitigate the issue
- Unpause the contract