Skip to content

Commit f0b17fb

Browse files
committed
rename
1 parent 0bd7843 commit f0b17fb

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

packages/core/zama/src/confidentialFungible.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ testPremint(
8888
testPremint('e notation', '1e59');
8989
testPremint('e notation arithmetic overflow', '1e60', 'Amount would overflow uint256 after applying decimals');
9090

91-
testConfidentialFungible('confidentialFungible mintable', {
92-
mintable: true,
91+
testConfidentialFungible('confidentialFungible wrappable', {
92+
wrappable: true,
9393
access: 'ownable',
9494
});
9595

96-
testConfidentialFungible('confidentialFungible mintable with roles', {
97-
mintable: true,
96+
testConfidentialFungible('confidentialFungible wrappable with roles', {
97+
wrappable: true,
9898
access: 'roles',
9999
});
100100

@@ -138,7 +138,7 @@ testAPIEquivalence('confidentialFungible API full upgradeable', {
138138
tokenURI: 'http://example.com',
139139
premint: '2000',
140140
access: 'roles',
141-
mintable: true,
141+
wrappable: true,
142142
votes: true,
143143
});
144144

packages/core/zama/src/confidentialFungible.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface ConfidentialFungibleOptions extends CommonOptions {
1717
symbol: string;
1818
tokenURI: string;
1919
premint?: string;
20-
mintable?: boolean;
20+
wrappable?: boolean;
2121
/**
2222
* Whether to keep track of historical balances for voting in on-chain governance, and optionally specify the clock mode.
2323
* Setting `true` is equivalent to 'blocknumber'. Setting a clock mode implies voting is enabled.
@@ -30,7 +30,7 @@ export const defaults: Required<ConfidentialFungibleOptions> = {
3030
symbol: 'MTK',
3131
tokenURI: '',
3232
premint: '0',
33-
mintable: false,
33+
wrappable: false,
3434
votes: false,
3535
access: commonDefaults.access,
3636
upgradeable: commonDefaults.upgradeable,
@@ -42,7 +42,7 @@ export function withDefaults(opts: ConfidentialFungibleOptions): Required<Confid
4242
...opts,
4343
...withCommonDefaults(opts),
4444
premint: opts.premint || defaults.premint,
45-
mintable: opts.mintable ?? defaults.mintable,
45+
wrappable: opts.wrappable ?? defaults.wrappable,
4646
votes: opts.votes ?? defaults.votes,
4747
};
4848
}
@@ -64,7 +64,7 @@ export function buildConfidentialFungible(opts: ConfidentialFungibleOptions): Co
6464
addPremint(c, allOpts.premint);
6565
}
6666

67-
if (allOpts.mintable) {
67+
if (allOpts.wrappable) {
6868
addWrappable(c);
6969
}
7070

packages/core/zama/src/zip-hardhat.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test.serial('erc20 full', async t => {
3636
tokenURI: 'https://example.com',
3737
symbol: 'MTK',
3838
premint: '2000',
39-
mintable: true,
39+
wrappable: true,
4040
votes: true,
4141
};
4242
const c = buildConfidentialFungible(opts);

packages/ui/src/zama/ConfidentialFungibleControls.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
<h1>Features</h1>
6464

6565
<div class="checkbox-group">
66-
<label class:checked={opts.mintable}>
67-
<input type="checkbox" bind:checked={opts.mintable} />
66+
<label class:checked={opts.wrappable}>
67+
<input type="checkbox" bind:checked={opts.wrappable} />
6868
Wrappable
6969
<HelpTooltip>TBD</HelpTooltip>
7070
</label>

0 commit comments

Comments
 (0)