端到端示例 Soroban Dapp
Soroban Crowdfunding Dapp 示例 =======================
这是一个 Next.js 项目,演示如何在 Stellar 上使用智能合约构建 Dapp 前端。
安装依赖项 ------------------------ 1. rustc >= 1.71.0,并安装了 wasm32-unknown-unknown 目标。请参阅 https://soroban.stellar.org/docs/getting-started/setup#install-rust。如果您已安装了较低版本,最简单的升级方法是卸载(`rustup self uninstall)并重新安装。 2. soroban-cli。请参阅 https://soroban.stellar.org/docs/getting-started/setup#install-the-soroban-cli,,但不要使用 cargo install soroban-cli,而是运行 cargo install_soroban。这是在 [.cargo/config.toml](./.cargo/config.toml) 中设置的别名,该别名将本地的 soroban-cli固定到特定版本。如果将./target/bin/添加到您的 PATH 中(https://linuxize.com/post/how-to-add-directory-to-path-in-linux/),那么当您在该目录中时,您将自动使用此版本的soroban-cli。 3. 如果您想在本地运行所有内容:Docker(您可以使用它运行 Standalone 和 Futurenet 后端) 4. Node.js v18 5. [Freighter Wallet](https://www.freighter.app/) ≥[v5.0.2](https://github.com/stellar/freighter/releases/tag/2.9.1)。或者从 Firefox/Chrome 扩展程序商店中安装。一旦安装完成,请在设置中启用“实验模式”(齿轮图标)。 6. 如果您想跳过步骤 (1) 和 (2),并避免安装特定的 rustc或soroban-cli版本,请构建soroban-preview` Docker 镜像:
暂无开放 Issues,或尚未同步最近议题。