https://github.com/lfscamargo/stellar.staking
Staking Contract for Stellar network boilerplate
https://github.com/lfscamargo/stellar.staking
Last synced: over 1 year ago
JSON representation
Staking Contract for Stellar network boilerplate
- Host: GitHub
- URL: https://github.com/lfscamargo/stellar.staking
- Owner: LFSCamargo
- Created: 2024-10-27T02:21:59.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-18T18:39:46.000Z (over 1 year ago)
- Last Synced: 2025-01-22T05:19:24.620Z (over 1 year ago)
- Language: Rust
- Size: 175 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Soroban Boilerplate
## What has been added to this boilerplate?
This project has been initialized using `stellar contract init`, so its almost the same as the official Soroban boilerplate. I've added some things like a configuration to the rust formatter `rustfmt.toml` where you can customize the formatting of the code and the linting rules, and also added a github workflow for checking code on pull request.
## Project Structure
This repository uses the recommended structure for a Soroban project:
```text
.
├── contracts
│ └── hello_world
│ ├── src
│ │ ├── lib.rs
│ │ └── test.rs
│ └── Cargo.toml
├── Cargo.toml
└── README.md
```
- New Soroban contracts can be put in `contracts`, each in their own directory. There is already a `hello_world` contract in there to get you started.
- If you initialized this project with any other example contracts via `--with-example`, those contracts will be in the `contracts` directory as well.
- Contracts should have their own `Cargo.toml` files that rely on the top-level `Cargo.toml` workspace for their dependencies.
- Frontend libraries can be added to the top-level directory as well. If you initialized this project with a frontend template via `--frontend-template` you will have those files already included.