Skip to content

DogStark/PetChain-Contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

162 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PetMedTracka-Contracts

This repo is specific for handling all smart contract-based contributions.

Teck Stack

  • Language: Rust
  • Network: Stellar

Getting Started

Check out the main petchain repo to get a clear overview of the entire PetChain project—its purpose, how it works

Build and Test Smart Contracts

Prerequisites

Install Stellar CLI:

cargo install --locked stellar-cli --features opt

Build the Stellar Contracts

cd stellar-contracts
cargo build --target wasm32-unknown-unknown --release

This compiles the Stellar smart contracts. Run this after making changes to confirm everything still compiles correctly.

Run Tests

cd stellar-contracts
cargo test

This runs the test suite for the contracts. Use it to make sure your changes don't break existing functionality.

Gas Optimization Benchmarks

The contract includes comprehensive gas optimization improvements. Run the gas benchmarks:

cd stellar-contracts
cargo test gas_benchmarks

See GAS_OPTIMIZATION.md for detailed performance analysis.

Deploy to Testnet

stellar contract deploy \
  --wasm target/wasm32-unknown-unknown/release/petchain_stellar.wasm \
  --network testnet

Contributing

We'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

Related Repositories

Explore other parts of the PetChain ecosystem:


Contact & Community

For feedback, questions or collaboration:

Star this repo to stay updated on new features and releases.

License

PetChain is licensed under the MIT License.

About

Smart Contract Contributions are here

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 23