Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
File renamed without changes.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.sol]
[*.{sol,toml}]
indent_size = 4
5 changes: 2 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
BOB_PRIVATE_KEY="private key"
INFURA_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
MNEMONIC="here is where your twelve words mnemonic should be put my friend"
export ETH_FROM="YOUR_DEFAULT_SENDER_ACCOUNT"
export ETH_RPC_URL="https://rinkeby.infura.io/v3/INFURA_API_KEY"
23 changes: 0 additions & 23 deletions .eslintignore

This file was deleted.

21 changes: 0 additions & 21 deletions .eslintrc.yaml

This file was deleted.

File renamed without changes.
48 changes: 0 additions & 48 deletions .github/workflows/integration.yaml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Continuous Integration"

on:
pull_request:
branches:
- "main"
push:
branches:
- "main"

jobs:
integration:
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"
with:
submodules: "recursive"

- name: "Install Foundry"
uses: "onbjerg/foundry-toolchain@v1"
with:
version: "nightly"

- name: "Install Node.js"
uses: "actions/setup-node@v3"
with:
cache: "yarn"
node-version: "16"

- name: "Install the Node.Js dependencies"
run: "yarn install --immutable"

- name: "Lint the contracts"
run: "yarn lint"

- name: "Add lint summary"
run: |
echo "## Lint results" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY

- name: "Show the Foundry config"
run: "forge config"

- name: "Run the tests"
run: "forge test"

- name: "Add test summary"
run: |
echo "## Test results" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,17 @@
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
**/artifacts
**/build
**/cache
**/coverage
**/dist
**/node_modules
**/out

# files
*.env
*.log
*.tsbuildinfo
contracts/README.md
coverage.json
.DS_Store
.pnp.*
npm-debug.log*
src/CHANGELOG.md
src/README.md
yarn-debug.log*
yarn-error.log*
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/prb-math"]
path = lib/prb-math
url = https://github.com/paulrberg/prb-math
4 changes: 2 additions & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*.{js,json,md,sol,ts,yaml,yml}": [
"prettier --config ./.prettierrc.yaml --write"
"*.{md,sol,yaml,yml}": [
"prettier --config ./.prettierrc.yml --write"
]
}
10 changes: 1 addition & 9 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
# directories
.yarn/
**/.coverage_artifacts
**/.coverage_cache
**/.coverage_contracts
**/artifacts
**/build
**/cache
**/coverage
**/dist
**/out
**/node_modules
**/src/types

# files
*.env
*.log
*.tsbuildinfo
.pnp.*
coverage.json
npm-debug.log*
Expand Down
16 changes: 0 additions & 16 deletions .prettierrc.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
arrowParens: "avoid"
bracketSpacing: true
endOfLine: "auto"
printWidth: 120
singleQuote: false
tabWidth: 2
trailingComma: "all"

overrides:
- files: ["*.sol", "*.toml"]
options:
tabWidth: 4
9 changes: 0 additions & 9 deletions .solcover.js

This file was deleted.

5 changes: 4 additions & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
"func-name-mixedcase": "off",
"func-visibility": ["error", { "ignoreConstructors": true }],
"max-line-length": ["error", 120],
"no-empty-blocks": "off",
"no-inline-assembly": "off",
"not-rely-on-time": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"reason-string": ["warn", { "maxLength": 64 }]
"reason-string": ["warn", { "maxLength": 64 }],
"var-name-mixedcase": "off"
}
}
3 changes: 0 additions & 3 deletions .solhintignore

This file was deleted.

6 changes: 3 additions & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nodeLinker: node-modules
nodeLinker: "node-modules"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
- path: ".yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs"
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.2.0.cjs
yarnPath: ".yarn/releases/yarn-3.2.0.cjs"
File renamed without changes.
File renamed without changes.
Loading