Skip to content

add versioning to contracts #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions contracts/RewardRatePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
contract RewardRatePool is Initializable, Ownable2StepUpgradeable {
using SafeERC20 for IERC20;

uint256 public constant VERSION = 1;

// solhint-disable-next-line var-name-mixedcase
IERC20 public SESH;

Expand Down
2 changes: 2 additions & 0 deletions contracts/SESH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import "./libraries/Shared.sol";
* @notice The SESH utility token with Arbitrum Custom Gateway support
*/
contract SESH is ICustomToken, ERC20, ERC20Permit, Shared {
uint256 public constant VERSION = 1;

address public immutable gateway;
address public immutable router;
bool private shouldRegisterGateway;
Expand Down
3 changes: 3 additions & 0 deletions contracts/SESHL2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import "./libraries/arbitrum-bridge/IArbToken.sol";
* @notice L2 representation of the SESH token, bridged from L1
*/
contract SESHL2 is Initializable, ERC20Upgradeable, IArbToken {

uint256 public constant VERSION = 1;

address public l2Gateway;
address public l1Address;

Expand Down
3 changes: 3 additions & 0 deletions contracts/ServiceNodeContributionFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol";

contract ServiceNodeContributionFactory is Initializable, Ownable2StepUpgradeable, PausableUpgradeable, IServiceNodeContributionFactory {

uint256 public constant VERSION = 1;

IServiceNodeRewards public stakingRewardsContract;

/// Tracks the contribution contracts that have been deployed from this
Expand Down
3 changes: 3 additions & 0 deletions contracts/ServiceNodeRewards.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
/// @title Service Node Rewards Contract
/// @notice This contract manages the rewards and public keys for service nodes.
contract ServiceNodeRewards is Initializable, Ownable2StepUpgradeable, PausableUpgradeable, IServiceNodeRewards {

uint256 public constant VERSION = 1;

using SafeERC20 for IERC20;

bool public isStarted;
Expand Down