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 Stellar tokenized `Vault` contract type, a Fungible Token that issues shares for an underlying asset (ERC-4626-style), with support for pausable, upgradeable, and access control options.
Generated contract source code is printed to stdout.␊
31
31
␊
@@ -539,6 +539,26 @@ Generated by [AVA](https://avajs.dev).
539
539
--info.license <string> The license used by the contract, default is "MIT"␊
540
540
`
541
541
542
+
## stellar-vault --help
543
+
544
+
> Snapshot 1
545
+
546
+
`stellar-vault: Make a tokenized vault that issues Fungible Token shares for an underlying asset, similar to ERC-4626.␊
547
+
␊
548
+
Required:␊
549
+
--name <string> The name of the contract␊
550
+
--symbol <string> The short symbol for the token␊
551
+
␊
552
+
Options:␊
553
+
--decimalsOffset <string> Virtual decimals offset added to the underlying asset decimals to derive the vault share decimals, used to mitigate inflation (donation) attacks via virtual shares. The default of 0 is already safe: it makes such attacks non-profitable. Higher values make attacks orders of magnitude more costly, at the cost of virtual shares absorbing a tiny portion of the value accrued to the vault. Must be between 0 and 10.␊
554
+
--pausable Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response.␊
555
+
--access <ownable|roles> 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.␊
556
+
--explicitImplementations Whether the contract should use explicit trait implementations instead of using the default ones provided by the library.␊
557
+
--upgradeable Whether the contract can be upgraded.␊
558
+
--info.securityContact <string> Email where people can contact you to report security issues. Will only be visible if contract source code is verified.␊
559
+
--info.license <string> The license used by the contract, default is "MIT"␊
votes: 'Whether to enable vote checkpoints and delegation for governance.',
39
40
};
40
41
42
+
exportconststellarVaultDescriptions={
43
+
decimalsOffset:
44
+
'Virtual decimals offset added to the underlying asset decimals to derive the vault share decimals, used to mitigate inflation (donation) attacks via virtual shares. The default of 0 is already safe: it makes such attacks non-profitable. Higher values make attacks orders of magnitude more costly, at the cost of virtual shares absorbing a tiny portion of the value accrued to the vault. Must be between 0 and 10.',
45
+
};
46
+
41
47
exportconststellarGovernorDescriptions={
42
48
version: 'The semantic version label returned by the governor contract.',
43
49
votingDelay: 'Number of ledgers between proposal creation and voting start (17,000 ledgers are approx. 1 day).',
0 commit comments