Skip to content

Commit 82994c5

Browse files
committed
test: fix due to RandomizerMock name change and borked coverage dep
1 parent 5ee00e2 commit 82994c5

File tree

5 files changed

+49
-14
lines changed

5 files changed

+49
-14
lines changed

contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"pino-pretty": "^10.2.3",
7676
"shelljs": "^0.8.5",
7777
"solhint-plugin-prettier": "^0.1.0",
78-
"solidity-coverage": "0.8.5",
78+
"solidity-coverage": "0.8.2",
7979
"ts-node": "^10.9.2",
8080
"typechain": "^8.3.2",
8181
"typescript": "^4.9.5"

contracts/scripts/simulations/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
PNK,
77
RandomizerRNG,
88
ArbitrableExampleEthFee,
9-
RandomizerMock,
9+
RandomizerOracle,
1010
} from "../../typechain-types";
1111

1212
export enum Period {
@@ -25,7 +25,7 @@ export const getContracts = async (hre) => {
2525
const pnk = (await hre.ethers.getContract("PNK")) as PNK;
2626
const randomizerRng = (await hre.ethers.getContract("RandomizerRNG")) as RandomizerRNG;
2727
const arbitrable = (await hre.ethers.getContract("ArbitrableExampleEthFee")) as ArbitrableExampleEthFee;
28-
const randomizerMock = (await hre.ethers.getContract("RandomizerMock")) as RandomizerMock;
28+
const randomizerMock = (await hre.ethers.getContract("RandomizerOracle")) as RandomizerMock;
2929

3030
return {
3131
core,

contracts/test/arbitration/staking.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe("Staking", async () => {
4242
core = (await ethers.getContract("KlerosCore")) as KlerosCore;
4343
sortition = (await ethers.getContract("SortitionModule")) as SortitionModule;
4444
rng = (await ethers.getContract("RandomizerRNG")) as RandomizerRNG;
45-
randomizer = (await ethers.getContract("RandomizerMock")) as RandomizerMock;
45+
randomizer = (await ethers.getContract("RandomizerOracle")) as RandomizerMock;
4646
};
4747

4848
describe("When outside the Staking phase", async () => {

contracts/test/integration/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe("Integration tests", async () => {
4848
keepExistingDeployments: false,
4949
});
5050
rng = (await ethers.getContract("RandomizerRNG")) as RandomizerRNG;
51-
randomizer = (await ethers.getContract("RandomizerMock")) as RandomizerMock;
51+
randomizer = (await ethers.getContract("RandomizerOracle")) as RandomizerMock;
5252
disputeKit = (await ethers.getContract("DisputeKitClassic")) as DisputeKitClassic;
5353
pnk = (await ethers.getContract("PNK")) as PNK;
5454
core = (await ethers.getContract("KlerosCore")) as KlerosCore;

yarn.lock

Lines changed: 44 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5383,7 +5383,7 @@ __metadata:
53835383
pino-pretty: ^10.2.3
53845384
shelljs: ^0.8.5
53855385
solhint-plugin-prettier: ^0.1.0
5386-
solidity-coverage: 0.8.5
5386+
solidity-coverage: 0.8.2
53875387
ts-node: ^10.9.2
53885388
typechain: ^8.3.2
53895389
typescript: ^4.9.5
@@ -8282,7 +8282,7 @@ __metadata:
82828282
languageName: node
82838283
linkType: hard
82848284

8285-
"@solidity-parser/parser@npm:^0.14.0":
8285+
"@solidity-parser/parser@npm:^0.14.0, @solidity-parser/parser@npm:^0.14.1":
82868286
version: 0.14.5
82878287
resolution: "@solidity-parser/parser@npm:0.14.5"
82888288
dependencies:
@@ -24171,7 +24171,42 @@ __metadata:
2417124171
languageName: node
2417224172
linkType: hard
2417324173

24174-
"mocha@npm:10.2.0, mocha@npm:^10.0.0":
24174+
"mocha@npm:7.1.2":
24175+
version: 7.1.2
24176+
resolution: "mocha@npm:7.1.2"
24177+
dependencies:
24178+
ansi-colors: 3.2.3
24179+
browser-stdout: 1.3.1
24180+
chokidar: 3.3.0
24181+
debug: 3.2.6
24182+
diff: 3.5.0
24183+
escape-string-regexp: 1.0.5
24184+
find-up: 3.0.0
24185+
glob: 7.1.3
24186+
growl: 1.10.5
24187+
he: 1.2.0
24188+
js-yaml: 3.13.1
24189+
log-symbols: 3.0.0
24190+
minimatch: 3.0.4
24191+
mkdirp: 0.5.5
24192+
ms: 2.1.1
24193+
node-environment-flags: 1.0.6
24194+
object.assign: 4.1.0
24195+
strip-json-comments: 2.0.1
24196+
supports-color: 6.0.0
24197+
which: 1.3.1
24198+
wide-align: 1.1.3
24199+
yargs: 13.3.2
24200+
yargs-parser: 13.1.2
24201+
yargs-unparser: 1.6.0
24202+
bin:
24203+
_mocha: bin/_mocha
24204+
mocha: bin/mocha
24205+
checksum: 0fc9ad0dd79e43a34de03441634f58e8a3d211af4cdbcd56de150ec99f7aff3b8678bd5aeb41f82115f7df4199a24f7bb372f65e5bcba133b41a5310dee908bd
24206+
languageName: node
24207+
linkType: hard
24208+
24209+
"mocha@npm:^10.0.0":
2417524210
version: 10.2.0
2417624211
resolution: "mocha@npm:10.2.0"
2417724212
dependencies:
@@ -29589,12 +29624,12 @@ __metadata:
2958929624
languageName: node
2959029625
linkType: hard
2959129626

29592-
"solidity-coverage@npm:0.8.5":
29593-
version: 0.8.5
29594-
resolution: "solidity-coverage@npm:0.8.5"
29627+
"solidity-coverage@npm:0.8.2":
29628+
version: 0.8.2
29629+
resolution: "solidity-coverage@npm:0.8.2"
2959529630
dependencies:
2959629631
"@ethersproject/abi": ^5.0.9
29597-
"@solidity-parser/parser": ^0.16.0
29632+
"@solidity-parser/parser": ^0.14.1
2959829633
chalk: ^2.4.2
2959929634
death: ^1.1.0
2960029635
detect-port: ^1.3.0
@@ -29605,7 +29640,7 @@ __metadata:
2960529640
globby: ^10.0.1
2960629641
jsonschema: ^1.2.4
2960729642
lodash: ^4.17.15
29608-
mocha: 10.2.0
29643+
mocha: 7.1.2
2960929644
node-emoji: ^1.10.0
2961029645
pify: ^4.0.1
2961129646
recursive-readdir: ^2.2.2
@@ -29617,7 +29652,7 @@ __metadata:
2961729652
hardhat: ^2.11.0
2961829653
bin:
2961929654
solidity-coverage: plugins/bin.js
29620-
checksum: c9ca4deda9383c1db425117e72677f8908dcb2263ad41cfc1821c96afcfd5e8070146b87cd2c4b0812612fb707896928c07b776347143db838e486b4c938b394
29655+
checksum: 489f73d56a1279f2394b7a14db315532884895baa00a4016e68a4e5be0eddca90a95cb3322e6a0b15e67f2d9003b9413ee24c1c61d78f558f5a2e1e233840825
2962129656
languageName: node
2962229657
linkType: hard
2962329658

0 commit comments

Comments
 (0)