-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor for staking token to be generic (#43)
* feat: refactor for staking token to be generic * adds all miissing files * clean up * more cleanup * feat: wagmi config, regen, and renamg imports in rewards-distribution --------- Co-authored-by: gomes <[email protected]>
- Loading branch information
1 parent
ddc25b9
commit c8d12d2
Showing
24 changed files
with
392 additions
and
324 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ETHERSCAN_API_KEY="" # this must be an arbiscan api key | ||
FOX_TOKEN_ADDRESS="" | ||
STAKING_TOKEN_ADDRESS="" | ||
PRIVATE_KEY="" | ||
RPC_URL="https://arbitrum-mainnet.infura.io/v3/<INFURA_API_KEY>" | ||
VERIFIER_URL="https://api.arbiscan.io/api" |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ETHERSCAN_API_KEY="" # this must be an arbiscan api key | ||
FOX_TOKEN_ADDRESS="" | ||
STAKING_TOKEN_ADDRESS="" | ||
PRIVATE_KEY="" | ||
RPC_URL="https://arbitrum-sepolia.infura.io/v3/<INFURA_API_KEY>" | ||
VERIFIER_URL="https://api-sepolia.arbiscan.io/api" |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ETHERSCAN_API_KEY="not-required" | ||
FOX_TOKEN_ADDRESS="0xc770EEfAd204B5180dF6a14Ee197D99d808ee52d" | ||
STAKING_TOKEN_ADDRESS="0xc770EEfAd204B5180dF6a14Ee197D99d808ee52d" | ||
PRIVATE_KEY="" | ||
RPC_URL="http://localhost:8545" | ||
VERIFIER_URL="not-required" |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ETHERSCAN_API_KEY="" | ||
FOX_TOKEN_ADDRESS="0xc770EEfAd204B5180dF6a14Ee197D99d808ee52d" | ||
STAKING_TOKEN_ADDRESS="0xc770EEfAd204B5180dF6a14Ee197D99d808ee52d" | ||
PRIVATE_KEY="" | ||
RPC_URL="https://mainnet.infura.io/v3/<INFURA_API_KEY>" | ||
VERIFIER_URL="https://api.etherscan.io/api" |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ETHERSCAN_API_KEY="" | ||
FOX_TOKEN_ADDRESS="" | ||
STAKING_TOKEN_ADDRESS="" | ||
PRIVATE_KEY="" | ||
RPC_URL="https://sepolia.infura.io/v3/<INFURA_API_KEY>" | ||
VERIFIER_URL="https://api-sepolia.etherscan.io/api" |
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
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
This file was deleted.
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,25 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.25; | ||
|
||
import "forge-std/Script.sol"; | ||
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; | ||
import {Upgrades} from "openzeppelin-foundry-upgrades/Upgrades.sol"; | ||
import {StakingV1} from "../src/StakingV1.sol"; | ||
|
||
contract DeployStaking is Script { | ||
address stakingTokenAddress; | ||
|
||
function setUp() public { | ||
stakingTokenAddress = vm.envAddress("STAKING_TOKEN_ADDRESS"); | ||
} | ||
|
||
function run() public { | ||
vm.startBroadcast(); | ||
address stakingProxy = Upgrades.deployUUPSProxy( | ||
"StakingV1.sol", | ||
abi.encodeCall(StakingV1.initialize, (stakingTokenAddress)) | ||
); | ||
vm.stopBroadcast(); | ||
console.log("Contract deployed at:", stakingProxy); | ||
} | ||
} |
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
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
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
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
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
Oops, something went wrong.