Access Manager (#4416)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Francisco Giordano <fg@frang.io>
This commit is contained in:
Hadrien Croubois
2023-08-07 06:57:10 +02:00
committed by GitHub
parent 1169bb1e51
commit 9bb8008c23
15 changed files with 2184 additions and 878 deletions

View File

@ -7,6 +7,5 @@ module.exports = {
ProposalState: Enum('Pending', 'Active', 'Canceled', 'Defeated', 'Succeeded', 'Queued', 'Expired', 'Executed'),
VoteType: Enum('Against', 'For', 'Abstain'),
Rounding: Enum('Floor', 'Ceil', 'Trunc', 'Expand'),
AccessMode: Enum('Custom', 'Closed', 'Open'),
OperationState: Enum('Unset', 'Waiting', 'Ready', 'Done'),
};

5
test/helpers/methods.js Normal file
View File

@ -0,0 +1,5 @@
const { soliditySha3 } = require('web3-utils');
module.exports = {
selector: signature => soliditySha3(signature).substring(0, 10),
};