Skip to content

Commit

Permalink
chore: update bytecode and abi
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean McCaffery committed Sep 11, 2024
1 parent 7653d2a commit 4186d60
Show file tree
Hide file tree
Showing 8 changed files with 6,732 additions and 6 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2205,8 +2205,9 @@ abstract contract Governor is GovernorSorting, GovernorMerkleVotes {
uint256 public constant METADATAS_COUNT = uint256(type(Metadatas).max) + 1;
uint256 public constant MAX_FIELDS_METADATA_LENGTH = 10;
uint256 public constant AMOUNT_FOR_SUMBITTER_PROOF = 10000000000000000000;
uint256 public constant MAX_SLICE_LENGTH = 25;
address public constant JK_LABS_ADDRESS = 0xDc652C746A8F85e18Ce632d97c6118e8a52fa738; // our hot wallet that we operate from if need be, and collect revenue to on most chains
string private constant VERSION = "4.33"; // Private as to not clutter the ABI
string private constant VERSION = "5.1"; // Private as to not clutter the ABI

string public name; // The title of the contest
string public prompt;
Expand Down Expand Up @@ -2247,6 +2248,10 @@ abstract contract Governor is GovernorSorting, GovernorMerkleVotes {
error UnexpectedMetadata(Metadatas unexpectedMetadata);
error EmptyProposalDescription();

error CannotSliceZeroLengthProposalIds();
error EndMustBeGreaterThanStartToSlice();
error CannotSliceMoreThanMax();

error IncorrectCostSent(uint256 msgValue, uint256 costToVote);

error AddressNotPermissionedToSubmit();
Expand Down Expand Up @@ -2338,6 +2343,30 @@ abstract contract Governor is GovernorSorting, GovernorMerkleVotes {
return proposalIds;
}

/**
* @dev Return total number of proposals.
*/
function getProposalIdsLength() public view returns (uint256) {
return proposalIds.length;
}

/**
* @dev Return slice of proposalIds.
* startIndex is inclusive, endIndex is exclusive.
*/
function getProposalIdsSlice(uint256 startIndex, uint256 endIndex) public view returns (uint256[] memory) {
if (proposalIds.length == 0) revert CannotSliceZeroLengthProposalIds();
if (endIndex <= startIndex) revert EndMustBeGreaterThanStartToSlice();
if (endIndex - startIndex > MAX_SLICE_LENGTH) revert CannotSliceMoreThanMax();

uint256[] memory slicedArray = new uint256[](endIndex - startIndex);
for (uint256 i = 0; i < slicedArray.length; i++) {
slicedArray[i] = proposalIds[startIndex + i];
}

return slicedArray;
}

/**
* @dev Return all proposal authors.
*/
Expand Down Expand Up @@ -3092,7 +3121,7 @@ contract RewardsModule {
mapping(uint256 => uint256) public shares; // Getter for the amount of shares held by a ranking.
mapping(uint256 => uint256) public released; // Getter for the amount of Ether already released to a ranking.
uint256[] public payees;
string private constant VERSION = "4.33"; // Private as to not clutter the ABI
string private constant VERSION = "5.1"; // Private as to not clutter the ABI

mapping(IERC20 => uint256) public erc20TotalReleased;
mapping(IERC20 => mapping(uint256 => uint256)) public erc20Released;
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 4186d60

Please sign in to comment.