{"id":27063861,"url":"https://github.com/stephanfward/rust-pegged-cryptocurrency","last_synced_at":"2025-07-12T05:09:19.865Z","repository":{"id":213137140,"uuid":"733106347","full_name":"StephanFWard/rust-pegged-cryptocurrency","owner":"StephanFWard","description":"A simple pegged cryptocurrency using Rust and the Substrate blockchain framework","archived":false,"fork":false,"pushed_at":"2023-12-18T16:38:39.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-18T18:56:33.042Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StephanFWard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-18T15:20:08.000Z","updated_at":"2023-12-18T18:56:33.813Z","dependencies_parsed_at":"2023-12-18T18:56:33.755Z","dependency_job_id":"d6cdb62f-566d-4f66-9513-6e9528fedde4","html_url":"https://github.com/StephanFWard/rust-pegged-cryptocurrency","commit_stats":null,"previous_names":["stephanfward/rust-pegged-cryptocurrency"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2Frust-pegged-cryptocurrency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2Frust-pegged-cryptocurrency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2Frust-pegged-cryptocurrency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2Frust-pegged-cryptocurrency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephanFWard","download_url":"https://codeload.github.com/StephanFWard/rust-pegged-cryptocurrency/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247368734,"owners_count":20927913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-05T16:35:19.081Z","updated_at":"2025-04-05T16:35:19.590Z","avatar_url":"https://github.com/StephanFWard.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-pegged-cryptocurrency\nA simple pegged cryptocurrency using Rust and the Substrate blockchain framework\n\n# Pegged Cryptocurrency Example with Substrate and Rust\n\nThis example demonstrates the implementation of a pegged cryptocurrency using the Substrate blockchain framework and Rust programming language.\n\n## Overview\n\nThe pegged cryptocurrency allows users to mint new tokens by depositing an equivalent amount in the reserve and burn tokens to withdraw the corresponding amount from the reserve. The example is a basic demonstration and should be extended for a production environment.\n\n## Getting Started\n\n### Prerequisites\n\n- Rust: [Install Rust](https://www.rust-lang.org/tools/install)\n- Substrate: [Install Substrate](https://substrate.dev/docs/en/knowledgebase/getting-started/)\n\n### Building and Running\n\n1. **Clone the repository:**\n\n   ```\n   git clone https://github.com/StephanFWard/rust-pegged-cryptocurrency.git\n   cd rust-pegged-cryptocurrency\n\n2. **Build the project:**\n   ```\n   cargo build --release\n\n3. **Run the substrate node:**\n   ```\n   ./target/release/rust-pegged-cryptocurrency --dev\n\n4. **Interact with the node using the Substrate UI or Polkadot JS Apps.**\nMint new tokens:\n\n   ```\n   ./target/release/rust-pegged-cryptocurrency mint \u003cyour-account-id\u003e \u003camount\u003e\n\n5. **Burn tokens:**\n\n   ```\n   ./target/release/rust-pegged-cryptocurrency burn \u003cyour-account-id\u003e \u003camount\u003e\n\n6. **Run tests using:**\n\n   ```\n   cargo test\n\nLicense\nThis project is licensed under general public use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanfward%2Frust-pegged-cryptocurrency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephanfward%2Frust-pegged-cryptocurrency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanfward%2Frust-pegged-cryptocurrency/lists"}