Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
c56e652f
Commit
c56e652f
authored
Jun 16, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make solhint ignore `DisputeTypes`; It's outdated.
parent
b9936d07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
FaultDisputeGame.sol
.../contracts-bedrock/contracts/dispute/FaultDisputeGame.sol
+1
-3
package.json
packages/contracts-bedrock/package.json
+2
-2
No files found.
packages/contracts-bedrock/contracts/dispute/FaultDisputeGame.sol
View file @
c56e652f
...
@@ -136,9 +136,7 @@ contract FaultDisputeGame is IFaultDisputeGame, Clone {
...
@@ -136,9 +136,7 @@ contract FaultDisputeGame is IFaultDisputeGame, Clone {
// Compute the position that the claim commits to. Because the parent's position is already
// Compute the position that the claim commits to. Because the parent's position is already
// known, we can compute the next position by moving left or right depending on whether
// known, we can compute the next position by moving left or right depending on whether
// or not the move is an attack or defense.
// or not the move is an attack or defense.
Position nextPosition = _isAttack
Position nextPosition = _isAttack ? parent.position.attack() : parent.position.defend();
? parent.position.attack()
: parent.position.defend();
// At the leaf nodes of the game, the only option is to run a step to prove or disprove
// At the leaf nodes of the game, the only option is to run a step to prove or disprove
// the above claim. At this depth, the parent claim commits to the state after a single
// the above claim. At this depth, the parent claim commits to the state after a single
...
...
packages/contracts-bedrock/package.json
View file @
c56e652f
...
@@ -37,10 +37,10 @@
...
@@ -37,10 +37,10 @@
"clean"
:
"rm -rf ./dist ./artifacts ./forge-artifacts ./cache ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo ./src/contract-artifacts.ts ./test-case-generator/fuzz"
,
"clean"
:
"rm -rf ./dist ./artifacts ./forge-artifacts ./cache ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo ./src/contract-artifacts.ts ./test-case-generator/fuzz"
,
"lint:ts:check"
:
"eslint . --max-warnings=0"
,
"lint:ts:check"
:
"eslint . --max-warnings=0"
,
"lint:forge-tests:check"
:
"ts-node scripts/forge-test-names.ts"
,
"lint:forge-tests:check"
:
"ts-node scripts/forge-test-names.ts"
,
"lint:contracts:check"
:
"yarn solhint -f table 'contracts/**/
*.sol' && yarn prettier --check 'contracts/**/*
.sol' && yarn lint:forge-tests:check"
,
"lint:contracts:check"
:
"yarn solhint -f table 'contracts/**/
!(DisputeTypes).sol' && yarn prettier --check 'contracts/**/!(DisputeTypes)
.sol' && yarn lint:forge-tests:check"
,
"lint:check"
:
"yarn lint:contracts:check && yarn lint:ts:check"
,
"lint:check"
:
"yarn lint:contracts:check && yarn lint:ts:check"
,
"lint:ts:fix"
:
"eslint --fix ."
,
"lint:ts:fix"
:
"eslint --fix ."
,
"lint:contracts:fix"
:
"yarn solhint --fix 'contracts/**/
*.sol' && yarn prettier --write 'contracts/**/*
.sol'"
,
"lint:contracts:fix"
:
"yarn solhint --fix 'contracts/**/
!(DisputeTypes).sol' && yarn prettier --write 'contracts/**/!(DisputeTypes)
.sol'"
,
"lint:fix"
:
"yarn lint:contracts:fix && yarn lint:ts:fix"
,
"lint:fix"
:
"yarn lint:contracts:fix && yarn lint:ts:fix"
,
"lint"
:
"yarn lint:fix && yarn lint:check"
,
"lint"
:
"yarn lint:fix && yarn lint:check"
,
"typechain"
:
"typechain --target ethers-v5 --out-dir dist/types --glob 'artifacts/!(build-info)/**/+([a-zA-Z0-9_]).json'"
,
"typechain"
:
"typechain --target ethers-v5 --out-dir dist/types --glob 'artifacts/!(build-info)/**/+([a-zA-Z0-9_]).json'"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment