Skip to content

Commit

Permalink
Add payload and registry machinery for SideStake class
Browse files Browse the repository at this point in the history
This adds the machinery to support mandatory sidestakes in the future.

It does not include the contract handling part.
  • Loading branch information
jamescowens committed Sep 29, 2023
1 parent a633217 commit c9e58d1
Show file tree
Hide file tree
Showing 3 changed files with 810 additions and 30 deletions.
2 changes: 2 additions & 0 deletions src/gridcoin/contract/payload.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ enum class ContractType
SCRAPER, //!< Scraper node authorization grants and revocations.
VOTE, //!< A vote cast by a wallet for a poll.
MRC, //!< A manual rewards claim (MRC) request to pay rewards
SIDESTAKE, //!< Mandatory sidestakes
OUT_OF_BOUND, //!< Marker value for the end of the valid range.
};

Expand All @@ -82,6 +83,7 @@ static constexpr GRC::ContractType CONTRACT_TYPES[] = {
ContractType::SCRAPER,
ContractType::VOTE,
ContractType::MRC,
ContractType::SIDESTAKE,
ContractType::OUT_OF_BOUND
};

Expand Down
Loading

0 comments on commit c9e58d1

Please sign in to comment.