mirror of
https://github.com/logos-co/staking.git
synced 2025-02-09 09:14:43 +00:00
This commit migrates the repo to our foundry template, which ensures we have consistent tooling across smart contract repositories that are maintained by Vac. This removes all hardhat related files and workflows and replaces them with more perfomant foundry workflows. It also sets up tests, CI and linting.
26 lines
802 B
Solidity
26 lines
802 B
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity ^0.8.19;
|
|
|
|
import { Test } from "forge-std/Test.sol";
|
|
import { Deploy } from "../script/Deploy.s.sol";
|
|
import { DeploymentConfig } from "../script/DeploymentConfig.s.sol";
|
|
import { StakeManager } from "../contracts/StakeManager.sol";
|
|
|
|
contract StakeManagerTest is Test {
|
|
address internal deployer;
|
|
|
|
DeploymentConfig internal deploymentConfig;
|
|
StakeManager internal stakeManager;
|
|
|
|
function setUp() public virtual {
|
|
Deploy deployment = new Deploy();
|
|
(stakeManager, deploymentConfig) = deployment.run();
|
|
(deployer,) = deploymentConfig.activeNetworkConfig();
|
|
}
|
|
|
|
function testDeployment() public {
|
|
assertEq(stakeManager.owner(), deployer);
|
|
assertEq(stakeManager.totalSupply(), 0);
|
|
}
|
|
}
|