
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@ericglau/wizard-stellar
Advanced tools
A boilerplate generator to get started with OpenZeppelin Stellar Soroban Contracts
Interactively build a contract out of components from OpenZeppelin Stellar Soroban Contracts. Provide parameters and desired features for the kind of contract that you want, and the Wizard will generate all of the code necessary. The resulting code is ready to be compiled and deployed, or it can serve as a starting point and customized further with application specific logic.
This package provides a programmatic API. For a web interface, see https://wizard.openzeppelin.com/stellar
npm install @openzeppelin/wizard-stellar
The following contract types are supported:
fungible
Each contract type has functions/constants as defined below.
print
function print(opts?: FungibleOptions): string
Returns a string representation of a contract generated using the provided options. If opts
is not provided, uses defaults
.
defaults
const defaults: Required<FungibleOptions>
The default options that are used for print
.
Import the contract type(s) (for example, fungible
) that you want to use from the @openzeppelin/wizard-stellar
package:
import { fungible } from '@openzeppelin/wizard-stellar';
To generate the source code for an Fungible contract with all of the default settings:
const contract = fungible.print();
To generate the source code for an Fungible contract with some custom settings:
const contract = fungible.print({
pausable: true,
});
or
const contract = fungible.print({
...fungible.defaults,
pausable: true,
});
FAQs
A boilerplate generator to get started with OpenZeppelin Stellar Soroban Contracts
We found that @ericglau/wizard-stellar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.