Skip to content

Commit

Permalink
chore: add local ignition deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
0xApotheosis committed Sep 16, 2024
1 parent 81b10e4 commit 0b50a32
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
Compile: `npx hardhat compile`

Test: `npx hardhat test`

## Deploy with Ignition

`npx hardhat ignition deploy ignition/modules/StakingRewards.ts`
19 changes: 19 additions & 0 deletions ignition/modules/StakingRewards.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { buildModule } from '@nomicfoundation/hardhat-ignition/modules';

const OWNER = '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266';
const REWARDS_DISTRIBUTION = '0x70997970C51812dc3A010C7d01b50e0d17dc79C8';
const REWARDS_TOKEN = '0xc770eefad204b5180df6a14ee197d99d808ee52d';
const STAKING_TOKEN = '0x470e8de2ebaef52014a47cb5e6af86884947f08c'; // ETH/FOX Pool

const StakingRewardsModule = buildModule('StakingRewardsModule', (m) => {
const owner = m.getParameter('owner', OWNER);
const rewardsDistribution = m.getParameter('rewardsDistribution', REWARDS_DISTRIBUTION);
const rewardsToken = m.getParameter('rewardsToken', REWARDS_TOKEN);
const stakingToken = m.getParameter('stakingToken', STAKING_TOKEN);

const stakingRewards = m.contract('StakingRewards', [owner, rewardsDistribution, rewardsToken, stakingToken]);

return { stakingRewards };
});

export default StakingRewardsModule;

0 comments on commit 0b50a32

Please sign in to comment.