generated from Kwenta/foundry-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6bf678b
commit 2b612fb
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cryticArgs: ['--solc-remaps', '@openzeppelin/=lib/openzeppelin-contracts/'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |