{"id":35136982,"url":"https://github.com/parallelchain-io/example-smart-contracts","last_synced_at":"2026-05-18T13:31:11.398Z","repository":{"id":42379849,"uuid":"476636664","full_name":"parallelchain-io/example-smart-contracts","owner":"parallelchain-io","description":"Examples of Smart Contracts Created by ParallelChain Lab to use with ParallelChain Mainnet SDK","archived":false,"fork":false,"pushed_at":"2024-03-07T02:07:57.000Z","size":55,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-04-18T12:53:06.434Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parallelchain-io.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}},"created_at":"2022-04-01T08:26:55.000Z","updated_at":"2024-04-18T12:53:06.435Z","dependencies_parsed_at":"2023-01-20T03:04:07.130Z","dependency_job_id":null,"html_url":"https://github.com/parallelchain-io/example-smart-contracts","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/parallelchain-io/example-smart-contracts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parallelchain-io%2Fexample-smart-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parallelchain-io%2Fexample-smart-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parallelchain-io%2Fexample-smart-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parallelchain-io%2Fexample-smart-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parallelchain-io","download_url":"https://codeload.github.com/parallelchain-io/example-smart-contracts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parallelchain-io%2Fexample-smart-contracts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33179405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-28T09:37:07.285Z","updated_at":"2026-05-18T13:31:11.393Z","avatar_url":"https://github.com/parallelchain-io.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example ParallelChain F Smart Contracts\n\n## Chapter 1: HelloContract\n\nHelloContract goes through the steps of creating a simple smart contract with the use of `pchain_sdk` macros, including `contract`, `contract_methods`, and `call`.\n\n\n## Chapter 2: MyLittlePony\n\nMyLittlePony demonstrates how we define entrypoint methods and fields as data in contract storage. It goes through how a contract struct can be defined, as well as the use of `contract_field` macros. It also introduces different ways of getting and setting data in contract storage.\n\n## Chapter 3: MyBank\n\nMyBank simulates banking operations with data stored in ParallelChain Mainnet. We combine the knowledge from the previous chapters and provide the basic functionalities of a bank.\n\n## Chapter 4: ContractProxy\n\nContractProxy introduces the use of the `use_contract` macro to interact with other contracts. We make use of the MyLittlePony smart contract from Chapter 2 to demonstrate the interaction between two contracts.\n\n## Chapter 5: MyCollections\n\nMyCollections illustrates the functionalities of collections provided by `pchain_sdk`. The collection structures are designed for gas efficiency, they include `Cacher`, `Vector`, `FastMap`, and `IterableMap`.\n\n## Chapter 6: MyPool\n\nMyPool shows how network commands are used in smart contracts. It demonstrates how they can be created in smart contracts and explains their characteristics.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparallelchain-io%2Fexample-smart-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparallelchain-io%2Fexample-smart-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparallelchain-io%2Fexample-smart-contracts/lists"}