Skip to content

Commit 0077248

Browse files
authored
Add clock mode options to AI assistant (#358)
1 parent 704878d commit 0077248

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/ui/src/wiz-functions.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const repeatedOptions = {
2121
burnable: { type: 'boolean', description: 'Whether token holders will be able to destroy their tokens' },
2222
pausable: { type: 'boolean', description: 'Whether privileged accounts will be able to pause the functionality marked as whenNotPaused. Useful for emergency response.' },
2323
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.' },
2524
}
2625

2726
export const erc20Function = {
@@ -37,7 +36,8 @@ export const erc20Function = {
3736
premint: { type: 'number', description: 'The number of tokens to premint for the deployer.' },
3837
mintable: repeatedOptions.mintable,
3938
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.'},
4141
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.' },
4242
...commonOptions
4343
},
@@ -60,7 +60,8 @@ export const erc721Function = {
6060
pausable: repeatedOptions.pausable,
6161
mintable: repeatedOptions.mintable,
6262
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.'},
6465
...commonOptions
6566
},
6667
required: ['name', 'symbol'],
@@ -104,6 +105,7 @@ export const governorFunction = {
104105
// gets converted to a string to follow the API
105106
quorumAbsolute: { type: 'number', description: 'The absolute quorum required, in cases of quorumMode equals absolute' },
106107
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.' },
107109
// 'false' gets converted to false
108110
timelock: { type: 'string', enum: ['false', 'openzeppelin', 'compound'], description: 'The type of timelock to use' },
109111
storage: { type: 'boolean', description: 'Enable storage of proposal details and enumerability of proposals' },

0 commit comments

Comments
 (0)