Skip to content

Commit 2e1951d

Browse files
committed
Merge remote-tracking branch 'origin/chore/patches' into dependabot/npm_and_yarn/types/mocha-10.0.0
2 parents 3397e3e + 8fe3b71 commit 2e1951d

File tree

10 files changed

+263
-99
lines changed

10 files changed

+263
-99
lines changed

.github/workflows/contracts-testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Setup Node.js environment
17-
uses: actions/setup-node@v3.4.1
17+
uses: actions/setup-node@v3.5.0
1818
with:
1919
node-version: 16.x
2020

2121
- uses: actions/checkout@v3
2222

2323
- name: Cache node modules
24-
uses: actions/[email protected].7
24+
uses: actions/[email protected].11
2525
env:
2626
cache-name: cache-node-modules
2727
with:

.github/workflows/deploy-bots.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ jobs:
44
build-deploy:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
8-
- uses: actions/setup-python@v2
9-
- uses: aws-actions/setup-sam@v1
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-python@v4
9+
- uses: aws-actions/setup-sam@v2
1010
- uses: aws-actions/configure-aws-credentials@v1
1111
with:
1212
aws-access-key-id: ${{ secrets.STAGING_AWS_ACCESS_KEY }}

contracts/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@
3636
"@types/mocha": "^10.0.0",
3737
"@types/node": "^16",
3838
"@typescript-eslint/eslint-plugin": "^5.38.1",
39-
"@typescript-eslint/parser": "^5.38.1",
39+
"@typescript-eslint/parser": "^5.41.0",
4040
"chai": "^4.3.6",
4141
"chai-ethers": "^0.0.1",
42-
"dotenv": "^16.0.1",
42+
"dotenv": "^16.0.3",
4343
"ethereum-waffle": "^3.4.4",
4444
"ethereumjs-util": "^7.1.4",
4545
"ethers": "^5.6.7",
4646
"follow-redirects": "^1.15.0",
4747
"hardhat": "^2.11.2",
4848
"hardhat-contract-sizer": "^2.6.1",
49-
"hardhat-deploy": "^0.11.12",
49+
"hardhat-deploy": "^0.11.18",
5050
"hardhat-deploy-ethers": "^0.3.0-beta.13",
5151
"hardhat-docgen": "^1.3.0",
5252
"hardhat-gas-reporter": "^1.0.9",

contracts/src/arbitration/KlerosCore.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ contract KlerosCore is IArbitrator {
675675
if (drawnAddress != address(0)) {
676676
// In case no one has staked at the court yet.
677677
jurors[drawnAddress].lockedTokens[dispute.subcourtID] += round.tokensAtStakePerJuror;
678+
emit Draw(drawnAddress, _disputeID, currentRound, round.drawnJurors.length);
678679
round.drawnJurors.push(drawnAddress);
679-
emit Draw(drawnAddress, _disputeID, currentRound, i);
680680
}
681681
}
682682
}
@@ -706,7 +706,7 @@ contract KlerosCore is IArbitrator {
706706
// Warning: the extra round must be created before calling disputeKit.createDispute()
707707
Round storage extraRound = dispute.rounds.push();
708708

709-
if (round.nbVotes >= courts[newDisputeKitID].jurorsForCourtJump) {
709+
if (round.nbVotes >= courts[newSubcourtID].jurorsForCourtJump) {
710710
// Jump to parent subcourt.
711711
newSubcourtID = courts[newSubcourtID].parent;
712712

contracts/src/arbitration/dispute-kits/DisputeKitClassic.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,8 @@ contract DisputeKitClassic is BaseDisputeKit, IEvidence {
654654
core.getNumberOfRounds(_coreDisputeID) - 1
655655
);
656656
(uint256 stakedTokens, uint256 lockedTokens) = core.getJurorBalance(_juror, subcourtID);
657-
return stakedTokens >= lockedTokens + lockedAmountPerJuror;
657+
(, , uint256 minStake, , , ) = core.courts(subcourtID);
658+
return stakedTokens >= lockedTokens + lockedAmountPerJuror && stakedTokens >= minStake;
658659
}
659660

660661
/** @dev Retrieves a juror's address from the stake path ID.

contracts/src/arbitration/dispute-kits/DisputeKitSybilResistant.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,8 @@ contract DisputeKitSybilResistant is BaseDisputeKit, IEvidence {
674674
core.getNumberOfRounds(_coreDisputeID) - 1
675675
);
676676
(uint256 stakedTokens, uint256 lockedTokens) = core.getJurorBalance(_juror, subcourtID);
677-
if (stakedTokens < lockedTokens + lockedAmountPerJuror) {
677+
(, , uint256 minStake, , , ) = core.courts(subcourtID);
678+
if (stakedTokens < lockedTokens + lockedAmountPerJuror || stakedTokens < minStake) {
678679
return false;
679680
} else {
680681
return proofOfHumanity(_juror);

subgraph-fastbridge/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 kleros/fastbridge-arbitrum-rinkeby"
1111
},
1212
"dependencies": {
13-
"@graphprotocol/graph-cli": "^0.33.0",
14-
"@graphprotocol/graph-ts": "^0.27.0"
13+
"@graphprotocol/graph-cli": "^0.34.0",
14+
"@graphprotocol/graph-ts": "^0.28.1"
1515
},
1616
"volta": {
1717
"node": "16.17.0"

subgraph/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 KlerosCore"
1111
},
1212
"dependencies": {
13-
"@graphprotocol/graph-cli": "^0.33.0",
14-
"@graphprotocol/graph-ts": "^0.27.0"
13+
"@graphprotocol/graph-cli": "^0.34.0",
14+
"@graphprotocol/graph-ts": "^0.28.1"
1515
}
1616
}

web/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@
3535
"@parcel/transformer-svg-react": "^2.7.0",
3636
"@types/react": "^18.0.14",
3737
"@types/react-dom": "^18.0.6",
38-
"@types/styled-components": "^5.1.21",
39-
"@typescript-eslint/eslint-plugin": "^5.33.1",
40-
"@typescript-eslint/parser": "^5.33.1",
38+
"@types/styled-components": "^5.1.26",
39+
"@typescript-eslint/eslint-plugin": "^5.38.1",
40+
"@typescript-eslint/parser": "^5.41.0",
4141
"@typescript-eslint/utils": "^5.29.0",
4242
"eslint": "^8.16.0",
4343
"eslint-config-prettier": "^8.3.0",
4444
"eslint-import-resolver-parcel": "^1.10.6",
4545
"eslint-plugin-import": "^2.25.4",
4646
"eslint-plugin-prettier": "^4.0.0",
47-
"eslint-plugin-react": "^7.30.1",
47+
"eslint-plugin-react": "^7.31.8",
4848
"eslint-plugin-react-hooks": "^4.6.0",
4949
"eslint-plugin-security": "^1.4.0",
5050
"eslint-utils": "^3.0.0",
@@ -54,7 +54,7 @@
5454
"typescript": "^4.5.5"
5555
},
5656
"dependencies": {
57-
"@graphql-codegen/cli": "^2.11.6",
57+
"@graphql-codegen/cli": "^2.13.7",
5858
"@graphql-codegen/typescript": "^2.7.3",
5959
"@graphql-codegen/typescript-operations": "^2.5.3",
6060
"@kleros/kleros-v2-contracts": "workspace:^",
@@ -68,7 +68,7 @@
6868
"core-js": "^3.21.1",
6969
"ethers": "^5.7.0",
7070
"graphql": "^16.4.0",
71-
"graphql-request": "^4.2.0",
71+
"graphql-request": "^5.0.0",
7272
"moment": "^2.29.4",
7373
"react": "^18.2.0",
7474
"react-chartjs-2": "^4.3.1",
@@ -78,7 +78,7 @@
7878
"react-jazzicon": "^1.0.4",
7979
"react-loading-skeleton": "^3.1.0",
8080
"react-modal": "^3.15.1",
81-
"react-router-dom": "^6.4.0",
81+
"react-router-dom": "^6.4.2",
8282
"styled-components": "^5.3.5",
8383
"swr": "^1.3.0"
8484
}

0 commit comments

Comments
 (0)