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
Add optional `decimals` to `erc7984`, which overrides `decimals()` when set to a non-default value. Defaults to 6 as before, with a maximum of 10 since confidential token amounts are represented as uint64. Incompatible with `wrappable`, which derives its decimals from the underlying token (capped at 6).
Add `decimals` to the AI schemas, MCP tools, and CLI for Solidity `erc20`, `stablecoin`, `realWorldAsset`, Confidential `erc7984`, and Stellar `fungible`, `stablecoin`.
Add optional `decimals` to `erc20`, `stablecoin`, and `realWorldAsset`, which overrides `decimals()` when set to a non-default value. Defaults to 18 as before.
Copy file name to clipboardExpand all lines: packages/cli/src/cli.test.ts.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ Generated by [AVA](https://avajs.dev).
43
43
--symbol <string> The short symbol for the token␊
44
44
␊
45
45
Options:␊
46
+
--decimals <string> The number of decimals used to represent token amounts. Defaults to 18.␊
46
47
--burnable Whether token holders will be able to destroy their tokens␊
47
48
--pausable Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response.␊
48
49
--premint <string> The number of tokens to premint for the deployer.␊
@@ -120,6 +121,7 @@ Generated by [AVA](https://avajs.dev).
120
121
--symbol <string> The short symbol for the token␊
121
122
␊
122
123
Options:␊
124
+
--decimals <string> The number of decimals used to represent token amounts. Defaults to 18.␊
123
125
--burnable Whether token holders will be able to destroy their tokens␊
124
126
--pausable Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response.␊
125
127
--premint <string> The number of tokens to premint for the deployer.␊
@@ -150,6 +152,7 @@ Generated by [AVA](https://avajs.dev).
150
152
--symbol <string> The short symbol for the token␊
151
153
␊
152
154
Options:␊
155
+
--decimals <string> The number of decimals used to represent token amounts. Defaults to 18.␊
153
156
--burnable Whether token holders will be able to destroy their tokens␊
154
157
--pausable Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response.␊
155
158
--premint <string> The number of tokens to premint for the deployer.␊
@@ -449,6 +452,7 @@ Generated by [AVA](https://avajs.dev).
449
452
--symbol <string> The short symbol for the token␊
450
453
␊
451
454
Options:␊
455
+
--decimals <string> The number of decimals used to represent token amounts. Defaults to 7.␊
452
456
--burnable Whether token holders will be able to destroy their tokens␊
453
457
--votes Whether to enable vote checkpoints and delegation for governance.␊
454
458
--pausable Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response.␊
@@ -495,6 +499,7 @@ Generated by [AVA](https://avajs.dev).
495
499
--symbol <string> The short symbol for the token␊
496
500
␊
497
501
Options:␊
502
+
--decimals <string> The number of decimals used to represent token amounts. Defaults to 7.␊
498
503
--burnable Whether token holders will be able to destroy their tokens␊
499
504
--votes Whether to enable vote checkpoints and delegation for governance.␊
500
505
--pausable Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response.␊
@@ -596,8 +601,9 @@ Generated by [AVA](https://avajs.dev).
596
601
--networkConfig <zama-ethereum> Specify the provider and network configuration to use for FHEVM contracts.␊
597
602
␊
598
603
Options:␊
604
+
--decimals <string> The number of decimals used to represent token amounts. Defaults to 6, with a maximum of 10, since confidential token amounts are represented as uint64 and higher decimals would make the maximum total supply too limited. Incompatible with wrappable, which derives its decimals from the underlying token (capped at 6).␊
599
605
--premint <string> The number of tokens to premint for the deployer. Cannot be used with wrappable, since preminted tokens would not be backed by the underlying token.␊
600
-
--wrappable Whether to allow wrapping an ERC20 token into a confidential fungible token. Cannot be used with premint, since preminted tokens would not be backed by the underlying token.␊
606
+
--wrappable Whether to allow wrapping an ERC20 token into a confidential fungible token. Derives its decimals from the underlying token (capped at 6), so it cannot be used with custom decimals. Cannot be used with premint, since preminted tokens would not be backed by the underlying token.␊
601
607
--votes <blocknumber|timestamp> Whether to keep track of historical balances for voting in on-chain governance. Voting durations must be expressed as block numbers or timestamps.␊
602
608
--info.securityContact <string> Email where people can contact you to report security issues. Will only be visible if contract source code is verified.␊
603
609
--info.license <string> The license used by the contract, default is "MIT"␊
'The metadata URI for the token. Should follow the schema defined in [ERC-7572](https://eips.ethereum.org/EIPS/eip-7572).',
12
+
decimals:
13
+
'The number of decimals used to represent token amounts. Defaults to 6, with a maximum of 10, since confidential token amounts are represented as uint64 and higher decimals would make the maximum total supply too limited. Incompatible with wrappable, which derives its decimals from the underlying token (capped at 6).',
12
14
premint:
13
15
'The number of tokens to premint for the deployer. Cannot be used with wrappable, since preminted tokens would not be backed by the underlying token.',
14
16
networkConfig: 'Specify the provider and network configuration to use for FHEVM contracts.',
15
17
wrappable:
16
-
'Whether to allow wrapping an ERC20 token into a confidential fungible token. Cannot be used with premint, since preminted tokens would not be backed by the underlying token.',
18
+
'Whether to allow wrapping an ERC20 token into a confidential fungible token. Derives its decimals from the underlying token (capped at 6), so it cannot be used with custom decimals. Cannot be used with premint, since preminted tokens would not be backed by the underlying token.',
17
19
votes:
18
20
'Whether to keep track of historical balances for voting in on-chain governance. Voting durations must be expressed as block numbers or timestamps.',
0 commit comments