Skip to content

Commit

Permalink
echidna
Browse files Browse the repository at this point in the history
  • Loading branch information
cmontecoding committed Aug 21, 2023
1 parent 6bf678b commit 2b612fb
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions crytic-export/combined_solc.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions echidna.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cryticArgs: ['--solc-remaps', '@openzeppelin/=lib/openzeppelin-contracts/']
31 changes: 31 additions & 0 deletions test/Echidna.t.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.19;

import {AutomatedVoting} from "../src/AutomatedVoting.sol";
import {StakingRewards} from "../lib/token/contracts/StakingRewards.sol";
import {Kwenta} from "../lib/token/contracts/Kwenta.sol";
import {RewardEscrow} from "../lib/token/contracts/RewardEscrow.sol";

contract EchidnaTest is AutomatedVoting {

Kwenta public kwenta;
RewardEscrow public rewardEscrow;
address public admin;

constructor() AutomatedVoting(new address[](1), address(0)) {
council[0] = address(0x1);
admin = address(0x2);
kwenta = new Kwenta("Kwenta", "Kwe", 100_000, admin, address(this));
rewardEscrow = new RewardEscrow(admin, address(kwenta));
stakingRewards = new StakingRewards(
address(kwenta),
address(rewardEscrow),
address(this)
);
}

function echidna_test_example() public view returns (bool) {
return council.length >= 1;
}

}

0 comments on commit 2b612fb

Please sign in to comment.