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 Oct 2, 2023
1 parent 01acb91 commit a4c5114
Show file tree
Hide file tree
Showing 3 changed files with 798 additions and 31 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 a4c5114

Please sign in to comment.