Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v3.9.0 #128

Merged
merged 109 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
110debe
chore: add RPC aliases
kevin-fruitful Mar 25, 2024
72f16f4
Merge branch 'NAY-1-boost-reset' into dev
amarinkovic Apr 12, 2024
255cea6
Merge branch 'rebasing_erc20_support' into dev
amarinkovic Apr 12, 2024
194a178
chore: fresh testnet deployments
amarinkovic Apr 12, 2024
37b0b42
fix: testnet appstorage layout
amarinkovic Apr 15, 2024
6d80800
chore: bump version to 3.8.4
amarinkovic Apr 17, 2024
99a2921
Merge branch 'main' into dev
amarinkovic May 7, 2024
f51a23f
Merge branch 'main' into dev
amarinkovic May 8, 2024
c149eac
fix: remove redundant object creation events (#127)
amarinkovic May 9, 2024
3c8cb8e
fix: remaining reward adjustment when unstaking (#129)
amarinkovic May 9, 2024
4661001
Token Holder upgrade to Capital Provider (#130)
amarinkovic May 10, 2024
1269c58
chore: bump version to 3.8.6
amarinkovic May 10, 2024
0a52e6f
chore: testnets upgraded with v3.8.6
amarinkovic May 10, 2024
d6901b3
Add support for Aurora network (#131)
amarinkovic May 10, 2024
92f9b7d
chore: add aurora contract verifier keys
amarinkovic May 10, 2024
e2fe5ea
Limit collecting rewards up to 48 intervals (#101)
kevin-fruitful May 13, 2024
28b8e69
chore: fresh deployment to aurora testnet
amarinkovic May 14, 2024
bf1831a
feat: add coin to bootstrap script
amarinkovic May 14, 2024
88599fa
chore: mint nayms coin in bootstrap script
amarinkovic May 15, 2024
348b81e
chore: fresh new deploy to Sepolia and Base Sepolia
amarinkovic May 15, 2024
f38b7a8
chore: update testnets fork addresses
amarinkovic May 15, 2024
e3c8303
Revert "Limit collecting rewards up to 48 intervals (#101)"
amarinkovic May 16, 2024
3f58637
chore: revert 48 intervals change from testnets
amarinkovic May 16, 2024
d58adcd
Merge branch 'main' into dev
amarinkovic May 16, 2024
782a3b3
test: add some coverage
amarinkovic May 17, 2024
16c7e7f
feat: unassign existing role if any, before assigning one in onboarding
amarinkovic May 20, 2024
6213637
chore: add aurora testnet fork and some deploy script logging colors
amarinkovic May 20, 2024
b6685e9
chore: upgrade testnets with latest
amarinkovic May 20, 2024
05ce0c4
feat: add ERC-1271 interface to the package
amarinkovic Mar 19, 2024
19c905c
chore: use helper method for sender ID
amarinkovic May 27, 2024
24164ff
refactor: small changes to auxiliary staking test methods
amarinkovic May 23, 2024
f1e0cfc
fix: remaining reward normalization on unstake
amarinkovic May 24, 2024
2751a9b
chore: remove leftover logging statement
amarinkovic May 24, 2024
356ba3a
chore: deploy unstake reward normalization fix to testnets
amarinkovic May 24, 2024
0a57d8e
fix: unstaking first time
amarinkovic May 24, 2024
9701c77
chore: deploy 8e372510 to testnets
amarinkovic May 24, 2024
c32f0c5
chore: fix last paid intertval state variable names in unstake()
amarinkovic May 27, 2024
a7a0e93
chore: add some comments for unstake()
amarinkovic May 27, 2024
1f839ee
chore: rename auxiliary method
amarinkovic May 27, 2024
e34da36
fix: library function addUniqueValue() visibility should be internal
kevin-fruitful May 28, 2024
a9644ba
fix: staking rewards adjustments
amarinkovic May 31, 2024
508fb53
chore: upgrade testnets with staking rewards fixes
amarinkovic Jun 3, 2024
ff65057
test: start fixing tests, added calculateBoost [WiP]
amarinkovic Jun 5, 2024
c4b73a8
feat: add simple fork test for quick troubleshooting
amarinkovic Jun 6, 2024
79d426f
test fix two stakers boost overflow test
amarinkovic Jun 6, 2024
f6b3488
fix: handle ratio calculation when current time is before staking sta…
kevin-fruitful Jun 7, 2024
6c76bfb
test: fix boost reset verification
amarinkovic Jun 7, 2024
d3adf34
chore: remove obsolete test case
amarinkovic Jun 7, 2024
27a3eb7
test: fix staking balance after unstake verification
amarinkovic Jun 7, 2024
6b5a569
test: fix skip paying an interval verification
amarinkovic Jun 7, 2024
82202b5
test: fix two reward currencies verification
amarinkovic Jun 7, 2024
ec4533c
test: test_StakingScenario1 [wip]
kevin-fruitful Jun 7, 2024
635f638
test: remove false parent change warnings
amarinkovic Jun 7, 2024
df90aeb
test: fix scenario1 and extension
amarinkovic Jun 7, 2024
8e2b025
refactor: remove unused imports
kevin-fruitful Jun 11, 2024
782205c
chore: fix double CI flow for dev to main PRs
amarinkovic Jun 11, 2024
a89d832
refactor: chage return type for external calls to get fee schedule
amarinkovic Jun 12, 2024
c42e32e
test: fix compilation issues due to changed return type
amarinkovic Jun 12, 2024
8595a6b
chore: bump version to 3.8.12 & upgrade testnets
amarinkovic Jun 13, 2024
3dfcad8
refactor: scope vTokenId to the entityId & deploy to testnets
amarinkovic Jun 13, 2024
2b17b22
chore: fix last testnet upgrade
amarinkovic Jun 14, 2024
7edd82d
Fix tracking the last collected interval (#137)
amarinkovic Jun 17, 2024
fb30114
test: add assertion messages to failing fuzz test
amarinkovic Jun 17, 2024
7f4712d
fix: add sys manager as assigner for entity insured and broker roles
amarinkovic Jun 17, 2024
b780f73
refactor: cleanup dividend tests
amarinkovic Jun 18, 2024
b8b9399
chore: delete obsolete scripts
amarinkovic Jun 20, 2024
dfa44f6
Sync state data on unstake (#138)
amarinkovic Jun 26, 2024
7a5adcb
test: revert reward payment before staking starts
amarinkovic Jun 26, 2024
21dfba6
refactor: rename variable in auxiliary method for better readability
amarinkovic Jun 26, 2024
eb88fbb
chore: remove unnecessary scoping
amarinkovic Jun 26, 2024
6d084e7
ci: update coveralls action
amarinkovic Jun 26, 2024
6f63ba3
doc: update target networks
amarinkovic Jun 26, 2024
3ca33ed
test: rename fee test contract
amarinkovic Jun 26, 2024
9d231c2
test: remove unused tests
kevin-fruitful Jun 27, 2024
76d468f
chore: add make command to run otterscan
kevin-fruitful Jun 28, 2024
57d0d1a
feat: add docker compose for bringing up anvil and otterscan
amarinkovic Jun 28, 2024
e5819c9
test: add diamond addresses for forking different networks
amarinkovic Jul 2, 2024
6a87529
chore: fix init args for fork tarets
amarinkovic Jul 3, 2024
c989659
chore: upgrade sepolia and base sepolia diamonds
kevin-fruitful Jul 11, 2024
3282b76
ci: fix RPC secrets
amarinkovic Jul 22, 2024
c940524
ci: skip fork test in coverage report
amarinkovic Jul 22, 2024
c144f8d
doc: add deployed addresses
amarinkovic Jul 25, 2024
ae8fdf0
chore: bump gemforge to v2.9.0
amarinkovic Aug 20, 2024
ea51d12
chore: remove diamond lib
amarinkovic Dec 28, 2023
f93e740
forge install: diamond-2-hardhat
amarinkovic Dec 28, 2023
1331b83
feat(cut): extendable diamond cut function
amarinkovic Dec 28, 2023
5a08403
fix: pass custom cut facet to proxy constructor, via custom gemforge …
amarinkovic Aug 20, 2024
48fd764
chore: update gitignore for .gemforge folder
amarinkovic Aug 20, 2024
32e8a6a
chore: remove unnecessary scoping
amarinkovic Aug 20, 2024
57f00a2
doc: cleanup comments
amarinkovic Aug 20, 2024
5061aec
chore: sort out gitignore mess
amarinkovic Aug 20, 2024
60c5cdf
fix: add back the IERC165 and IERC173 interfaces
amarinkovic Aug 21, 2024
0475e13
chore: sync diamond repo with upstream
amarinkovic Aug 23, 2024
52c83e3
chore: upgrade testnets and npm to v3.8.13
amarinkovic Aug 23, 2024
d73cf3c
Merge branch 'dev' into extendable_diamond_cut
amarinkovic Aug 23, 2024
14d0369
test(ownership): constrain fuzz to non zero addresses
amarinkovic Aug 26, 2024
2351888
Merge pull request #96 from nayms/extendable_diamond_cut
amarinkovic Aug 26, 2024
19a7faa
chore: purge gemforge mainnet targets attributes
amarinkovic Aug 28, 2024
e1cd308
ci: simplify env vars setup
amarinkovic Aug 30, 2024
3137ed2
refactor: no need to explicitly pass in the selector into notLocked m…
amarinkovic Aug 30, 2024
e663ddc
refactor: move solc version into pipeline env variable
amarinkovic Aug 30, 2024
9c96295
fix: unstake before staking starts
amarinkovic Sep 2, 2024
9526e5a
test(fees): refactor fee tests a bit to not use the hardcoded fees
amarinkovic Sep 3, 2024
e580eda
test: override platform fee schedule for particular entity
amarinkovic Sep 5, 2024
c3fe2c1
fix: gemforge public methods in a proxy
amarinkovic Sep 11, 2024
6867ba8
fix(anvil): fetch gtoken address from broadcast file, don't hardcode
amarinkovic Sep 11, 2024
e93d491
chore: update wallet for auroraFork gemforge target
amarinkovic Sep 11, 2024
c49415a
chore: bump version to 3.9.0
amarinkovic Sep 12, 2024
63182ee
chore: revert interface import location
amarinkovic Sep 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
export LOCAL_RPC_URL=
export ETHERSCAN_API_KEY=
export BASESCAN_API_KEY=
export BLOCKSCOUT_API_KEY=
export ETH_MAINNET_RPC_URL=
export ETH_SEPOLIA_RPC_URL=
export BASE_GOERLI_RPC_URL=
export ETH_GOERLI_RPC_URL=
export ETHERSCAN_API_KEY=
export ETH_LOCAL_RPC_URL=
export BASE_SEPOLIA_RPC_URL=
export BASE_MAINNET_RPC_URL=
export AURORA_MAINNET_RPC_URL=
export AURORA_TESTNET_RPC_URL=
export NAYMS_SALT=
export OWNER_ACCOUNT_KEY=
export SYSTEM_ADMIN_1=
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- main
- dev
pull_request:
branches:
- dev

jobs:
run-linter:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
ETH_SEPOLIA_RPC_URL: ${{ secrets.ETH_SEPOLIA_RPC_URL }}
BASE_MAINNET_RPC_URL: ${{ secrets.BASE_MAINNET_RPC_URL }}
BASE_SEPOLIA_RPC_URL: ${{ secrets.BASE_SEPOLIA_RPC_URL }}
AURORA_MAINNET_RPC_URL: ${{ secrets.AURORA_MAINNET_RPC_URL}}
AURORA_TESTNET_RPC_URL: ${{ secrets.AURORA_TESTNET_RPC_URL}}

- name: Filter ABI
run: make filter-abi
Expand Down
33 changes: 12 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- main
- dev
pull_request:
branches:
- dev

jobs:
run-tests:
Expand All @@ -16,6 +18,14 @@ jobs:
packages: read
contents: read
security-events: write
env:
SOLC_VERSION: 0.8.20
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }}
ETH_SEPOLIA_RPC_URL: ${{ secrets.ETH_SEPOLIA_RPC_URL }}
BASE_MAINNET_RPC_URL: ${{ secrets.BASE_MAINNET_RPC_URL }}
BASE_SEPOLIA_RPC_URL: ${{ secrets.BASE_SEPOLIA_RPC_URL }}
AURORA_MAINNET_RPC_URL: ${{ secrets.AURORA_MAINNET_RPC_URL}}
AURORA_TESTNET_RPC_URL: ${{ secrets.AURORA_TESTNET_RPC_URL}}
timeout-minutes: 15
container:
image: ghcr.io/nayms/contracts-builder:latest
Expand All @@ -30,7 +40,7 @@ jobs:
cache: "yarn"

- name: Install solc
run: svm install 0.7.6 && svm install 0.8.20 && svm use 0.8.20
run: svm install 0.7.6 && svm install ${SOLC_VERSION} && svm use ${SOLC_VERSION}

- name: Fix ownership
run: git config --global --add safe.directory /__w/contracts-v3/contracts-v3
Expand All @@ -41,42 +51,23 @@ jobs:
- name: Install Node dependencies
run: yarn

- name: Drop-in Test Wallet
run: echo "test test test test test test test test test test test junk" > ./nayms_mnemonic.txt && echo "test test test test test test test test test test test junk" > ./nayms_mnemonic_mainnet.txt

- name: Build solidity contracts
run: make build
env:
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }}
ETH_SEPOLIA_RPC_URL: ${{ secrets.ETH_SEPOLIA_RPC_URL }}
ETH_GOERLI_RPC_URL: ${{ secrets.ETH_GOERLI_RPC_URL }}
BASE_MAINNET_RPC_URL: ${{ secrets.BASE_MAINNET_RPC_URL }}
BASE_SEPOLIA_RPC_URL: ${{ secrets.BASE_SEPOLIA_RPC_URL }}

- name: Tests - local
run: make test
env:
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }}
ETH_SEPOLIA_RPC_URL: ${{ secrets.ETH_SEPOLIA_RPC_URL }}
ETH_GOERLI_RPC_URL: ${{ secrets.ETH_GOERLI_RPC_URL }}
BASE_MAINNET_RPC_URL: ${{ secrets.BASE_MAINNET_RPC_URL }}
BASE_SEPOLIA_RPC_URL: ${{ secrets.BASE_SEPOLIA_RPC_URL }}

- name: Coverage report
env:
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }}
run: make coverage

- name: Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./lcov-filtered.info"

- name: Slither Static Analyser
id: slither
env:
SOLC_VERSION: 0.8.20
run: make slither

- name: Upload Slither SARIF file
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ bin/
.idea/runConfigurations.xml
.idea/vcs.xml
.metals
.supermaven

broadcast/**/31337/*

Expand All @@ -61,6 +62,7 @@ cov-html

# Gemforge
# gemforge.deployments.json
.gemforge/*.json

# Generated files
script/deployment/S03UpgradeDiamond.s.sol
9 changes: 4 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
url = https://github.com/brockelmore/forge-std
[submodule "lib/solmate"]
path = lib/solmate
url = https://github.com/rari-capital/solmate
url = https://github.com/transmissions11/solmate
[submodule "lib/solidity-lib"]
path = lib/solidity-lib
url = https://github.com/uniswap/solidity-lib
Expand All @@ -20,10 +20,9 @@
path = lib/oz
url = https://github.com/openzeppelin/openzeppelin-contracts
branch = merge/release-v5.0
[submodule "lib/diamond-2-hardhat"]
path = lib/diamond-2-hardhat
url = https://github.com/gemstation/diamond-2-hardhat
branch = gemforge-2
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/Vectorized/solady
[submodule "lib/diamond-2-hardhat"]
path = lib/diamond-2-hardhat
url = https://github.com/nayms/diamond-2-hardhat
8 changes: 7 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"singleQuote": false,
"bracketSpacing": true
}
},
{
"files": "*.cjs",
"options": {
"printWidth": 180
}
}
]
}
}
36 changes: 15 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ bscript: ## build forge scripts
forge build --root . --contracts script/

test: ## forge test local, alias t. Skip "one off" tests, For example a test created for a specific upgrade only. These tests are no longer relevant after the upgrade is complete.
forge test --no-match-test testReplaceDiamondCut
forge test --no-match-test testFork
t: test

tt: ## forge test local -vv
Expand Down Expand Up @@ -80,7 +80,7 @@ cov: ## coverage report -vvv
forge coverage -vvv

coverage: ## coverage report (lcov), filtered for CI
forge coverage -vvv --report lcov --via-ir && node ./cli-tools/filter-lcov.js
forge coverage --no-match-test testFork -vvv --report lcov --via-ir && node ./cli-tools/filter-lcov.js

lcov: ## coverage report (lcov)
forge coverage --report lcov --via-ir
Expand All @@ -94,9 +94,13 @@ gencovf: ## generate filtered html coverage report
# solidity scripts
erc20: ## deploy test ERC20
forge script DeployERC20 \
-s "deploy(string memory _name, string memory _symbol, uint8 _decimals)" \
${ERC20_NAME} ${ERC20_SYMBOL} ${ERC20_DECIMALS} \
-vvvv
-s "deploy(string memory _name, string memory _symbol, uint8 _decimals)" "Ether" "ETH" 18 \
-f ${AURORA_TESTNET_RPC_URL} \
--chain-id 1313161555 \
--sender 0x931c3aC09202650148Edb2316e97815f904CF4fa \
--mnemonic-paths ./nayms_mnemonic.txt \
--mnemonic-indexes 19 \
-vvvv --broadcast --legacy --verify --delay 30 --retries 10

erc20-mainnet: ## deploy mock ERC20
forge script DeployERC20 \
Expand Down Expand Up @@ -124,20 +128,8 @@ erc20-mainnet-sim: ## simulate deploy mock ERC20
--ffi \
; node cli-tools/postproc-broadcasts.js

erc20g: ## deploy test ERC20 to Goerli
@forge script DeployERC20 -s "deploy(string memory _name, string memory _symbol, uint8 _decimals)" \
${ERC20_NAME} ${ERC20_SYMBOL} ${ERC20_DECIMALS} \
-f ${ETH_GOERLI_RPC_URL} \
--etherscan-api-key ${ETHERSCAN_API_KEY} \
--sender ${ownerAddress} \
--mnemonic-paths ./nayms_mnemonic.txt \
--mnemonic-indexes 19 \
--broadcast \
--verify \
-vvvv

anvil: ## run anvil with shared wallet
anvil --host 0.0.0.0 --chain-id 31337 --accounts 20 -m ./nayms_mnemonic.txt --state anvil.json
anvil --host 0.0.0.0 --chain-id 31337 --accounts 20 -m "${shell cat ./nayms_mnemonic.txt}" --state anvil.json

anvil-docker: ## run anvil in a container
docker run --platform linux/amd64 -d \
Expand All @@ -148,7 +140,7 @@ anvil-docker: ## run anvil in a container
-c "cd nayms && make anvil"

anvil-dbg: ## run anvil in debug mode with shared wallet
RUST_LOG=backend,api,node,rpc=warn anvil --host 0.0.0.0 --chain-id 31337 -m ./nayms_mnemonic.txt --state anvil.json
RUST_LOG=backend,api,node,rpc=warn anvil --host 0.0.0.0 --chain-id 31337 -m "${shell cat ./nayms_mnemonic.txt}" --state anvil.json

fork-mainnet: ## fork mainnet locally with anvil
anvil -f ${ETH_MAINNET_RPC_URL} --accounts 20 -m "${shell cat ./nayms_mnemonic.txt}"
Expand All @@ -168,7 +160,9 @@ fork-aurora: ## fork aurora locally with anvil
fork-aurora-testnet: ## fork aurora testnet locally with anvil
anvil -f ${AURORA_TESTNET_RPC_URL} --accounts 20 -m "${shell cat ./nayms_mnemonic.txt}"


otterscan: ## run otterscan locally. otterscan is a local block explorer
docker run --rm -p 5100:80 --name otterscan -d otterscan/otterscan:latest

anvil-gtoken: ## deploy dummy erc20 token to local node
forge script DeployERC20 \
-s "deploy(string memory, string memory, uint8)" "GToken" "GTK" 18 \
Expand Down Expand Up @@ -301,4 +295,4 @@ tu: ## Toggle upgrading the diamond in the forked tests. true == upgrade, false
filter-abi:
@jq '[.[] | select(.name !="facets")]' src/generated/abi.json | \
jq '[.[] | select(.name !="calculateUpgradeId")]' | \
jq '[.[] | select(.name !="diamondCut")]' > src/generated/naymsDiamond.json
jq '[.[] | select(.name !="diamondCut")]' > src/generated/naymsDiamond.json
49 changes: 34 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,33 @@

This repository contains Nayms V3 smart contracts.

This is a [Foundry](https://book.getfoundry.sh/) based project, so make sure you have it installed.
## Contract Deployments

| Network | Address |
| --- | --- |
| Ethereum | `0x39e2f550fef9ee15b459d16bD4B243b04b1f60e5` |
| Base | `0x546Fb1621CF8C0e8e3ED8E3508b7c5100ADdBc03` |


### Set up your project configuration

This is a [Foundry](https://book.getfoundry.sh/) based project, so make sure you have it installed.

Check `.env.example` to see some of the environment variables you should have set in `.env` in order to run some of the commands.

Create a `.env` and ensure it contains:

```
LOCAL_RPC_URL=
ETH_MAINNET_RPC_URL=
ETH_SEPOLIA_RPC_URL=
BASE_MAINNET_RPC_URL=
BASE_SEPOLIA_RPC_URL=
ETHERSCAN_API_KEY=
ETHERSCAN_API_KEY=...
BASESCAN_API_KEY=...
BLOCKSCOUT_API_KEY=...
ETH_MAINNET_RPC_URL=...
ETH_SEPOLIA_RPC_URL=...
ETH_LOCAL_RPC_URL=...
BASE_SEPOLIA_RPC_URL=...
BASE_MAINNET_RPC_URL=...
AURORA_MAINNET_RPC_URL=...
AURORA_TESTNET_RPC_URL=...
```

Create a `nayms_mnemonic.txt` file and ensure it contains the team mnemonic.
Expand Down Expand Up @@ -48,12 +60,17 @@ Currently supported deployment targets are:
- `local`: Local Anvil Node
- `sepolia`: Sepolia
- `sepoliaFork`: a local fork of Sepolia
- `mainnet`: Mainnet
- `mainnetFork`: a local for of Mainnet
- `base`: Base
- `baseFork`: Base Sepolia testnet
- `baseSepolia`: Base Sepolia testnet
- `baseSepoliaFork`: Base Sepolia testnet
- `mainnet`: Ethereum Mainnet
- `mainnetFork`: a local for of Ethereum Mainnet
- `base`: Base Mainnet
- `baseFork`: a local fork of Base Mainnet
- `baseSepolia`: Base Sepolia
- `baseSepoliaFork`: a local fork of Base Sepolia
- `aurora`: Aurora Mainnet (NEAR)
- `auroraFork`: a local fork of Aurora Mainnet (NEAR)
- `auroraTestnet`: Aurora Testnet (NEAR)
- `auroraTestnetFork`: a local fork of Aurora Testnet (NEAR)


#### Querying

Expand Down Expand Up @@ -98,8 +115,10 @@ Following commands are provided for working with `anvil`, to make it more conven
| `make anvil-add-supported-external-token` | Add `GToken` as supported external token |
| `make fork-sepolia`| Fork `Sepolia` test net locally |
| `make fork-base-sepolia`| Fork `Base Sepolia` test net locally |
| `make fork-mainnet`| Fork `Mainnet` locally |
| `make fork-base`| Fork `Base` locally |
| `make fork-mainnet`| Fork `Ethereum Mainnet` locally |
| `make fork-base`| Fork `Base Mainnet` locally |
| `make fork-aurora`| Fork `Aurora Mainnet` locally |
| `make fork-aurora-testnet`| Fork `Aurora Testnet` locally |

> :warning: Anvil state is kept in `anvil.json` file in project root, except for forks. If this file is not present, node starts fresh and creates this file. In which case you need to do the deployment and setup.

Expand Down
Loading
Loading