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
'The type of access control to provision. Ownable is a simple mechanism with a single account authorized for all privileged actions. Roles is a flexible mechanism with a separate role for each privileged action. A role can have many authorized accounts. Managed enables a central contract to define a policy that allows certain callers to access certain functions.',
8
13
},
9
14
10
-
// 'false' gets converted to false
11
15
upgradeable: {
12
-
type: 'string',
13
-
enum: ['false','transparent','uups'],
16
+
anyOf: [
17
+
{type: 'boolean',enum: [false]},
18
+
{type: 'string',enum: ['transparent','uups']},
19
+
],
14
20
description:
15
21
'Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract.Can also be used with beacons. UUPS uses simpler proxy with less overhead, requires including extra code in your contract. Allows flexibility for authorizing upgrades.',
16
22
},
@@ -30,50 +36,38 @@ const commonOptions = {
30
36
},
31
37
},
32
38
},
33
-
};
34
-
35
-
constrepeatedOptions={
36
-
name: {type: 'string',description: 'The name of the contract'},
37
-
symbol: {type: 'string',description: 'The short symbol for the token'},
38
-
burnable: {
39
-
type: 'boolean',
40
-
description: 'Whether token holders will be able to destroy their tokens',
41
-
},
42
-
pausable: {
43
-
type: 'boolean',
44
-
description:
45
-
'Whether privileged accounts will be able to pause the functionality marked as whenNotPaused. Useful for emergency response.',
46
-
},
47
-
mintable: {
48
-
type: 'boolean',
49
-
description: 'Whether privileged accounts will be able to create more supply or emit more tokens',
"Whether to include built-in flash loans to allow lending tokens without requiring collateral as long as they're returned in the same transaction.",
84
78
},
85
79
crossChainBridging: {
86
-
type: 'string',
87
-
enum: ['false','custom','superchain'],
80
+
anyOf: [
81
+
{type: 'boolean',enum: [false]},
82
+
{type: 'string',enum: ['custom','superchain']},
83
+
],
88
84
description:
89
85
'Whether to allow authorized bridge contracts to mint and burn tokens for cross-chain transfers. Options are to use custom bridges on any chain, or the SuperchainERC20 standard with the predeployed SuperchainTokenBridge. Emphasize that these features are experimental, not audited and are subject to change. The SuperchainERC20 feature is only available on chains in the Superchain, and requires deploying your contract to the same address on every chain in the Superchain.',
90
86
},
91
-
...commonOptions,
87
+
premintChainId: {
88
+
type: 'string',
89
+
description: 'The chain ID of the network on which to premint tokens.',
90
+
},
91
+
callback: {
92
+
type: 'boolean',
93
+
description:
94
+
'Whether to includes supports for code execution after transfers and approvals on recipient contracts in a single transaction.',
'Make a stablecoin token that uses the ERC-20 standard. Emphasize that this is experimental, and some features are not audited and subject to change.',
'Whether authorized accounts can freeze and unfreeze accounts for regulatory or security purposes. This feature is experimental, not audited and is subject to change.',
176
192
},
177
-
// 'false' gets converted to false
178
193
limitations: {
179
-
type: 'string',
180
-
enum: ['false','allowlist','blocklist'],
194
+
anyOf: [
195
+
{type: 'boolean',enum: [false]},
196
+
{type: 'string',enum: ['allowlist','blocklist']},
197
+
],
181
198
description:
182
199
'Whether to restrict certain users from transferring tokens, either via allowing or blocking them. This feature is experimental, not audited and is subject to change.',
183
200
},
184
201
upgradeable: {
185
202
type: 'string',
186
-
enum: ['false'],
203
+
enum: [false],
187
204
description: 'Upgradeability is not yet available for features that use @openzeppelin/community-contracts',
'Make a real-world asset token that uses the ERC-20 standard. Emphasize that this is experimental, and some features are not audited and subject to change.',
0 commit comments