setup-stellar-contracts

Configure Soroban smart contract projects with OpenZeppelin crates in Cargo.toml.

1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/barolivera/avalon --skill setup-stellar-contracts-barolivera
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-stellar-contracts
Source: https://github.com/barolivera/avalon/tree/main/docs/skills/setup-stellar-contracts
Command: npx skills add https://github.com/barolivera/avalon --skill setup-stellar-contracts-barolivera

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamline the setup of Stellar/Soroban smart contract projects by providing a ready-to-use workflow that installs the required toolchains, scaffolds a Soroban project, and wires in OpenZeppelin crates for Stellar integration.

Core Features & Use Cases

  • Project scaffolding for Soroban with the Stellar CLI and Rust toolchain prerequisites.
  • Workspace configuration by adding OpenZeppelin crates to Cargo.toml under [workspace.dependencies] and aligning per-contract Cargo.toml.
  • Guidance on standard contract patterns, import conventions, and best practices for OpenZeppelin in Soroban contracts.

Quick Start

Create a new Soroban project and configure the workspace by adding OpenZeppelin Stellar crates to Cargo.toml.

Frequently Asked Questions about setup-stellar-contracts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Stellar Soroban smart contract project with OpenZeppelin?

To set up a Stellar Soroban smart contract project with OpenZeppelin, scaffold a new project using the Stellar CLI, ensure the Rust toolchain is installed, and add OpenZeppelin crates to your Cargo.toml workspace dependencies for immediate contract integration.

What prerequisites do I need to start building Soroban contracts?

To start building Soroban contracts, you need the Rust toolchain and the Soroban CLI installed. These prerequisites are required to scaffold the project and manage workspace dependencies via Cargo.toml before adding OpenZeppelin crates.

How do I add OpenZeppelin crates to a Soroban Rust workspace?

To add OpenZeppelin crates to a Soroban Rust workspace, configure your root Cargo.toml under the [workspace.dependencies] section, then align each per-contract Cargo.toml file to reference those workspace dependencies for consistent OpenZeppelin integration.

What are the best practices for importing OpenZeppelin contracts in Soroban?

Best practices for importing OpenZeppelin contracts in Soroban include following standard contract patterns, using proper import conventions, and aligning per-contract Cargo.toml configurations with workspace dependencies to maintain a consistent Rust project structure.

Does the OpenZeppelin Stellar integration work with standard Rust Cargo workspaces?

Yes, the OpenZeppelin Stellar integration works with standard Rust Cargo workspaces by adding the OpenZeppelin crates under [workspace.dependencies] in Cargo.toml and aligning individual per-contract Cargo.toml files to inherit those dependencies.

Why configure per-contract Cargo.toml files when using OpenZeppelin in Soroban?

Configuring per-contract Cargo.toml files when using OpenZeppelin in Soroban ensures each contract correctly inherits the workspace dependencies defined in the root Cargo.toml, maintaining dependency alignment and preventing build conflicts across the Rust workspace.