You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/ui/src/wiz-functions.ts
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,6 @@ const repeatedOptions = {
21
21
burnable: {type: 'boolean',description: 'Whether token holders will be able to destroy their tokens'},
22
22
pausable: {type: 'boolean',description: 'Whether privileged accounts will be able to pause the functionality marked as whenNotPaused. Useful for emergency response.'},
23
23
mintable: {type: 'boolean',description: 'Whether privileged accounts will be able to create more supply or emit more tokens'},
24
-
votesBoolean: {type: 'boolean',description: 'Whether to keep track of historical balances for voting in on-chain governance, with a way to delegate one\'s voting power to a trusted account.'},
25
24
}
26
25
27
26
exportconsterc20Function={
@@ -37,7 +36,8 @@ export const erc20Function = {
37
36
premint: {type: 'number',description: 'The number of tokens to premint for the deployer.'},
38
37
mintable: repeatedOptions.mintable,
39
38
permit: {type: 'boolean',description: 'Whether without paying gas, token holders will be able to allow third parties to transfer from their account.'},
40
-
votes: repeatedOptions.votesBoolean,
39
+
// 'false' gets converted to false
40
+
votes: {type: 'string',enum: ['false','blocknumber','timestamp'],description: 'Whether to keep track of historical balances for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps.'},
41
41
flashmint: {type: 'boolean',description: 'Whether to include built-in flash loans to allow lending tokens without requiring collateral as long as they\'re returned in the same transaction.'},
42
42
...commonOptions
43
43
},
@@ -60,7 +60,8 @@ export const erc721Function = {
60
60
pausable: repeatedOptions.pausable,
61
61
mintable: repeatedOptions.mintable,
62
62
incremental: {type: 'boolean',description: 'Whether new tokens will be automatically assigned an incremental id'},
63
-
votes: repeatedOptions.votesBoolean,
63
+
// 'false' gets converted to false
64
+
votes: {type: 'string',enum: ['false','blocknumber','timestamp'],description: 'Whether to keep track of individual units for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps.'},
quorumAbsolute: {type: 'number',description: 'The absolute quorum required, in cases of quorumMode equals absolute'},
106
107
votes: {type: 'string',enum: ['erc20votes','erc721votes'],description: 'The type of voting to use'},
108
+
clockMode: {type: 'string',enum: ['blocknumber','timestamp'],description: 'The clock mode used by the voting token. For Governor, this must be chosen to match what the ERC20 or ERC721 voting token uses.'},
107
109
// 'false' gets converted to false
108
110
timelock: {type: 'string',enum: ['false','openzeppelin','compound'],description: 'The type of timelock to use'},
109
111
storage: {type: 'boolean',description: 'Enable storage of proposal details and enumerability of proposals'},
0 commit comments