scrypto-dev
v1.1.2
Published
CLI tool for Scrypto development on Radix DLT - deploy packages, generate types, manage accounts, and more
Downloads
18
Maintainers
Readme
Scrypto Dev CLI
A powerful CLI tool for Scrypto development on Radix DLT. Deploy packages, generate types, manage accounts, and streamline your Radix development workflow.
Features
- 🚀 Package Deployment: Deploy
.wasmand.rpdfiles to Radix networks - 📝 Transaction Manifests: Submit
.rtmmanifest files for custom transactions - 🔑 Account Management: Create, import, and manage Radix accounts
- 🌐 Network Support: Works with both Stokenet (testnet) and Mainnet
- 💰 Faucet Integration: Request test tokens on Stokenet
- 📊 Asset Management: List fungible tokens and NFTs
- 🔧 Type Generation: Generate TypeScript types for deployed packages
- 🔐 Mnemonic Support: Generate and import from 24-word mnemonics
Installation
npm install -g scrypto-devQuick Start
Set up your environment:
scrypto-dev set-env stokenetCreate or import an account:
# Generate a new account scrypto-dev new-address # Or import from mnemonic scrypto-dev import-mnemonic "your 24-word mnemonic phrase here"Set active account:
scrypto-dev list-address scrypto-dev set-address <account-id>Get test tokens (Stokenet only):
scrypto-dev faucetDeploy a package:
# Navigate to your Scrypto project directory cd your-scrypto-project # Deploy scrypto-dev deploy
Commands
Environment Management
scrypto-dev set-env <network>- Set environment (stokenet/mainnet)scrypto-dev show-env- Show current environment
Account Management
scrypto-dev new-address- Generate new accountscrypto-dev import-address <input>- Import from passphrase/private keyscrypto-dev import-mnemonic <mnemonic>- Import from 24-word mnemonicscrypto-dev generate-mnemonic- Generate new 24-word mnemonicscrypto-dev list-address- List all accountsscrypto-dev set-address <account-id>- Set active account
Asset Management
scrypto-dev list-fungibles- List fungible tokensscrypto-dev list-nfts- List NFTsscrypto-dev faucet- Request test tokens (Stokenet only)
Development Tools
scrypto-dev deploy- Deploy package from current directoryscrypto-dev generate-types <package-address>- Generate TypeScript typesscrypto-dev submit <file-path.rtm>- Submit transaction manifest filescrypto-dev create-manifest [template]- Create manifest template (basic/faucet)
Package Deployment
The deploy command automatically:
- Finds your
.wasmand.rpdfiles intarget/wasm32-unknown-unknown/release/ - Decodes the RPD content properly
- Creates a deployment manifest with fee locking
- Submits the transaction to the configured network
- Provides transaction status and package address
Prerequisites for Deployment
- Built Scrypto project with artifacts in the expected directory
- Active account with sufficient XRD for fees
- Network environment configured
Example Directory Structure
your-scrypto-project/
├── Cargo.toml
├── src/
│ └── lib.rs
└── target/
└── wasm32-unknown-unknown/
└── release/
├── your_package.wasm
└── your_package.rpdNetwork Support
- Stokenet: Test network for development and testing
- Mainnet: Production network
Always test thoroughly on Stokenet before deploying to Mainnet!
Requirements
- Node.js 18+
- npm or yarn
- Rust and Scrypto toolchain (for building Scrypto packages)
Note: Type generation works out of the box with precompiled binaries - no Rust installation required!
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file for details
Support
- Report issues: GitHub Issues
- Documentation:
Changelog
v1.0.0
- Initial release
- Package deployment functionality
- Transaction manifest submission
- Manifest template generation
- Account management
- Network configuration
- Type generation
- Mnemonic support
- Faucet integration
