|
2 | 2 | import HelpTooltip from '../common/HelpTooltip.svelte';
|
3 | 3 |
|
4 | 4 | import type { KindedOptions, OptionsErrorMessages } from '@openzeppelin/wizard-zama';
|
5 |
| - import { erc20, premintPattern, chainIdPattern, infoDefaults } from '@openzeppelin/wizard-zama'; |
| 5 | + import { confidentialFungible, premintPattern, chainIdPattern, infoDefaults } from '@openzeppelin/wizard-zama'; |
6 | 6 |
|
7 | 7 | import InfoSection from './InfoSection.svelte';
|
8 | 8 | import ExpandableToggleRadio from '../common/ExpandableToggleRadio.svelte';
|
|
11 | 11 | import { resizeToFit } from '../common/resize-to-fit';
|
12 | 12 | import { superchainTooltipProps } from './superchain-tooltip';
|
13 | 13 |
|
14 |
| - export let opts: Required<KindedOptions['ERC20']> = { |
15 |
| - kind: 'ERC20', |
16 |
| - ...erc20.defaults, |
| 14 | + export let opts: Required<KindedOptions['ConfidentialFungible']> = { |
| 15 | + kind: 'ConfidentialFungible', |
| 16 | + ...confidentialFungible.defaults, |
17 | 17 | premint: '', // default to empty premint in UI instead of 0
|
18 | 18 | info: { ...infoDefaults }, // create new object since Info is nested
|
19 | 19 | };
|
|
57 | 57 | </label>
|
58 | 58 | </div>
|
59 | 59 | </div>
|
60 |
| - |
61 | 60 | </section>
|
62 | 61 |
|
63 | 62 | <section class="controls-section">
|
|
77 | 76 | bind:value={opts.votes}
|
78 | 77 | defaultValue="blocknumber"
|
79 | 78 | helpContent="Keeps track of historical balances for voting in on-chain governance, with a way to delegate one's voting power to a trusted account."
|
80 |
| - helpLink="https://docs.openzeppelin.com/contracts/api/token/erc20#ERC20Votes" |
| 79 | + helpLink="https://docs.openzeppelin.com/contracts/api/token/confidentialFungible#ConfidentialFungibleVotes" |
81 | 80 | >
|
82 | 81 | <div class="checkbox-group">
|
83 | 82 | <label class:checked={opts.votes === 'blocknumber'}>
|
|
0 commit comments