|
|
|
@ -84,7 +84,7 @@ diff -druN governance/TimelockController.sol governance/TimelockController.sol |
|
|
|
|
* @dev Emitted when a call is scheduled as part of operation `id`.
|
|
|
|
|
diff -druN governance/utils/Votes.sol governance/utils/Votes.sol
|
|
|
|
|
--- governance/utils/Votes.sol 2023-02-27 10:59:32.655891529 +0100
|
|
|
|
|
+++ governance/utils/Votes.sol 2023-02-27 13:45:38.363620120 +0100
|
|
|
|
|
+++ governance/utils/Votes.sol 2023-02-27 13:56:39.610815192 +0100
|
|
|
|
|
@@ -35,7 +35,25 @@
|
|
|
|
|
bytes32 private constant _DELEGATION_TYPEHASH =
|
|
|
|
|
keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");
|
|
|
|
@ -102,7 +102,7 @@ diff -druN governance/utils/Votes.sol governance/utils/Votes.sol |
|
|
|
|
+ return SafeCast.toUint32(_delegateCheckpoints[account]._checkpoints.length);
|
|
|
|
|
+ }
|
|
|
|
|
+ function ckptFromBlock(address account, uint32 pos) public view returns (uint32) {
|
|
|
|
|
+ return _delegateCheckpoints[account]._checkpoints[pos]._blockNumber;
|
|
|
|
|
+ return _delegateCheckpoints[account]._checkpoints[pos]._key;
|
|
|
|
|
+ }
|
|
|
|
|
+ function ckptVotes(address account, uint32 pos) public view returns (uint224) {
|
|
|
|
|
+ return _delegateCheckpoints[account]._checkpoints[pos]._value;
|
|
|
|
|