This repo is specific for handling all smart contract-based contributions.
- Language: Rust
- Network: Stellar
Check out the main petchain repo to get a clear overview of the entire PetChain project—its purpose, how it works
Install Stellar CLI:
cargo install --locked stellar-cli --features optcd stellar-contracts
cargo build --target wasm32-unknown-unknown --releaseThis compiles the Stellar smart contracts. Run this after making changes to confirm everything still compiles correctly.
cd stellar-contracts
cargo testThis runs the test suite for the contracts. Use it to make sure your changes don't break existing functionality.
The contract includes comprehensive gas optimization improvements. Run the gas benchmarks:
cd stellar-contracts
cargo test gas_benchmarksSee GAS_OPTIMIZATION.md for detailed performance analysis.
stellar contract deploy \
--wasm target/wasm32-unknown-unknown/release/petchain_stellar.wasm \
--network testnetWe're excited to have you contribute! Check out our Contribution Guide to explore:
- Code of Conduct
- Step-by-step contribution process
- Open tasks and other ways to get involved
Explore other parts of the PetChain ecosystem:
For feedback, questions or collaboration:
- Contact project lead: @llins_x
- Join Community Chat: @PetChain Telegram Group Have questions or feedback?
Star this repo to stay updated on new features and releases.
PetChain is licensed under the MIT License.