Skip to content

Commit 3fdd641

Browse files
committed
Merge branch 'dev' into uniswap-v4
2 parents 0145d37 + 9952799 commit 3fdd641

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1298
-1043
lines changed

.gitmodules

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77
[submodule "lib/solmate"]
88
path = lib/solmate
99
url = https://github.com/transmissions11/solmate
10-
[submodule "lib/solidity-lib"]
11-
path = lib/solidity-lib
12-
url = https://github.com/uniswap/solidity-lib
13-
[submodule "lib/v3-periphery-foundry"]
14-
path = lib/v3-periphery-foundry
15-
url = https://github.com/gakonst/v3-periphery-foundry
16-
[submodule "lib/solidity-stringutils"]
17-
path = lib/solidity-stringutils
18-
url = https://github.com/arachnid/solidity-stringutils
1910
[submodule "lib/oz"]
2011
path = lib/oz
2112
url = https://github.com/openzeppelin/openzeppelin-contracts

Makefile

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ gasforksnap: ## gas snapshot mainnet fork
6363
forge snapshot --snap .gas-snapshot \
6464
-f ${ETH_MAINNET_RPC_URL} \
6565
--fork-block-number 15078000
66-
66+
6767
gasforkcheck: ## gas check mainnet fork
6868
forge snapshot --check \
6969
-f ${ETH_MAINNET_RPC_URL} \
@@ -82,9 +82,6 @@ cov: ## coverage report -vvv
8282
coverage: ## coverage report (lcov), filtered for CI
8383
forge coverage --no-match-test testFork -vvv --report lcov --via-ir && node ./cli-tools/filter-lcov.js
8484

85-
lcov: ## coverage report (lcov)
86-
forge coverage --report lcov --via-ir
87-
8885
gencov: ## generate html coverage report
8986
forge coverage --report lcov && genhtml -o cov-html --branch-coverage lcov.info
9087

@@ -139,9 +136,6 @@ anvil-docker: ## run anvil in a container
139136
ghcr.io/nayms/contracts-builder:latest \
140137
-c "cd nayms && make anvil"
141138

142-
anvil-dbg: ## run anvil in debug mode with shared wallet
143-
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
144-
145139
fork-mainnet: ## fork mainnet locally with anvil
146140
anvil -f ${ETH_MAINNET_RPC_URL} --accounts 20 -m "${shell cat ./nayms_mnemonic.txt}"
147141

@@ -208,72 +202,9 @@ create-entity: ## create an entity on the Nayms platform (using some default val
208202
-vv \
209203
--broadcast
210204

211-
update-entity: ## update
212-
forge script UpdateEntity \
213-
-f ${ETH_GOERLI_RPC_URL} \
214-
--chain-id 5 \
215-
--sender ${ownerAddress} \
216-
--mnemonic-paths ./nayms_mnemonic.txt \
217-
--mnemonic-indexes 19 \
218-
-vvvv \
219-
--broadcast
220-
221-
update-commissions: ## update trading and premium commissions
222-
forge script UpdateCommissions \
223-
-s "tradingAndPremium(address)" ${naymsDiamondAddress} \
224-
-f ${ETH_GOERLI_RPC_URL} \
225-
--chain-id 5 \
226-
--sender ${ownerAddress} \
227-
--mnemonic-paths ./nayms_mnemonic.txt \
228-
--mnemonic-indexes 19 \
229-
-vv \
230-
--broadcast
231-
232-
docs: ## generate docs from natspec comments
233-
yarn docgen
234-
235205
slither: ## run slither static analysis
236206
slither src/generated --config-file=slither.config.json --fail-none
237207

238-
verify-dry-run: ## dry run verify script, prints out commands to be executed
239-
node cli-tools/verify.js --dry-run
240-
241-
verify: ## verify contracts on chain (goerli)
242-
node cli-tools/verify.js
243-
244-
coderecon: ## code recon
245-
@forge script CodeRecon \
246-
-s "run(string[] memory)" ${contractNames} \
247-
-f ${ETH_MAINNET_RPC_URL} \
248-
--chain-id 1 \
249-
--etherscan-api-key ${ETHERSCAN_API_KEY} \
250-
-vv \
251-
; node cli-tools/parse-json.js
252-
253-
compb: ## Compare bytecode
254-
@forge script CheckBytecode \
255-
-s "run(uint8)" ${checkBytecodeAction} \
256-
-f ${ETH_MAINNET_RPC_URL} \
257-
--chain-id 1 \
258-
--etherscan-api-key ${ETHERSCAN_API_KEY} \
259-
--sender ${senderAddress} \
260-
--mnemonic-paths ./nayms_mnemonic.txt \
261-
--mnemonic-indexes 19 \
262-
-v \
263-
--ffi
264-
265-
checkf: ## Check if facet exists in a diamond
266-
@forge script DiamondChecker \
267-
-s "run(address, bytes4)" ${chkFacetAddress} ${selectorChk} \
268-
-f ${ETH_SEPOLIA_RPC_URL} \
269-
--chain-id 11155111 \
270-
--etherscan-api-key ${ETHERSCAN_API_KEY} \
271-
--sender ${ownerAddress} \
272-
--mnemonic-paths ./nayms_mnemonic.txt \
273-
--mnemonic-indexes 19 \
274-
-vv \
275-
--ffi
276-
277208
bn-mainnet: ## get block number for mainnet and replace FORK_BLOCK_1 in .env
278209
@result=$$(cast bn -r mainnet) && \
279210
sed -i '' "s/^export FORK_BLOCK_1=.*/export FORK_BLOCK_1=$$result/" .env

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@ Following commands are provided for working with `anvil`, to make it more conven
108108
| Command | Description |
109109
| ----------- | ----------- |
110110
| `make anvil` | Run the local node seeding it with Nayms' shared wallet |
111-
| `make anvil-debug` | Run Anvil in debug mode to get verbose log output |
112-
| `make anvil-deploy` | Do a full deployment of Nayms' contracts to local node |
113-
| `make anvil-upgrade` | Upgrade deployment of Nayms' contracts on local node |
114-
| `make anvil-gtoken` | Deploy `GToken` to local node |
111+
| `make anvil-docker` | Rund the local node inside a container, also seeding it with Nayms' shared wallet |
115112
| `make anvil-add-supported-external-token` | Add `GToken` as supported external token |
116113
| `make fork-sepolia`| Fork `Sepolia` test net locally |
117114
| `make fork-base-sepolia`| Fork `Base Sepolia` test net locally |

cli-tools/contract.hbs

Lines changed: 0 additions & 83 deletions
This file was deleted.

cli-tools/contract_original.hbs

Lines changed: 0 additions & 77 deletions
This file was deleted.

cli-tools/docgen.js

Lines changed: 0 additions & 65 deletions
This file was deleted.

docs/src/src/libs/LibAdmin.sol/library.LibAdmin.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
function _getSystemId() internal pure returns (bytes32);
1111
```
1212

13-
### _getEmptyId
14-
15-
16-
```solidity
17-
function _getEmptyId() internal pure returns (bytes32);
18-
```
19-
2013
### _updateMaxDividendDenominations
2114

2215

0 commit comments

Comments
 (0)