Skip to content

Commit c7eeeb3

Browse files
committed
Merge branch 'master' into feat(web)/demo-staging
2 parents 8ffc8d2 + 5165a28 commit c7eeeb3

File tree

9 files changed

+41
-0
lines changed

9 files changed

+41
-0
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "contracts/lib/forge-std"]
2+
path = contracts/lib/forge-std
3+
url = https://github.com/foundry-rs/forge-std
4+
[submodule "contracts/lib/solmate"]
5+
path = contracts/lib/solmate
6+
url = https://github.com/rari-capital/solmate

contracts/foundry.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
[profile.default]
3+
src = 'src'
4+
out = 'out'
5+
libs = ['../node_modules', 'lib']
6+
7+
# See more config options https://book.getfoundry.sh/reference/config.html

contracts/hardhat.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const config: HardhatUserConfig = {
2727
},
2828
paths: {
2929
sources: "./src",
30+
cache: "./cache_hardhat",
3031
},
3132
networks: {
3233
hardhat: {

contracts/lib/forge-std

Submodule forge-std added at 066ff16

contracts/lib/solmate

Submodule solmate added at 3998897

contracts/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"size": "hardhat size-contracts --no-compile",
2626
"watch": "hardhat watch",
2727
"docgen": "hardhat docgen",
28+
"docserve": "scripts/docPreprocess.sh && forge doc --serve",
29+
"docbuild": "scripts/docPreprocess.sh && forge doc --build --out dist",
2830
"publish": "yarn npm publish --access public --tag $(cat package.json | jq .version)"
2931
},
3032
"devDependencies": {

contracts/remappings.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@ensdomains/=../node_modules/@ensdomains/
2+
@openzeppelin/=../node_modules/@openzeppelin/
3+
@kleros/=../node_modules/@kleros/
4+
ds-test/=lib/forge-std/lib/ds-test/src/
5+
eth-gas-reporter/=../node_modules/eth-gas-reporter/
6+
forge-std/=lib/forge-std/src/
7+
hardhat-deploy/=../node_modules/hardhat-deploy/
8+
hardhat/=../node_modules/hardhat/
9+
solmate/=lib/solmate/src/

contracts/scripts/docPreprocess.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4+
5+
# Remove unsupported natspec tags
6+
# Known issue: https://github.com/foundry-rs/foundry/issues/4118
7+
for tag in authors reviewers auditors bounties deployments tools
8+
do
9+
find $SCRIPT_DIR/../src/ -type f -name '*.sol' | xargs sed -i.bak "/^.*@$tag.*$/d"
10+
done
11+
12+
echo "Use 'git restore src/ && rm src/**/*.sol.bak' to revert the changes"
13+
14+

contracts/test/foundry/Contract.t.sol

Whitespace-only changes.

0 commit comments

Comments
 (0)