{"id":19107299,"url":"https://github.com/govtechsg/cbdc-purpose-bound-money","last_synced_at":"2026-04-13T03:49:15.936Z","repository":{"id":214455026,"uuid":"700695289","full_name":"GovTechSG/cbdc-purpose-bound-money","owner":"GovTechSG","description":"The monorepo for the Purpose Bound Money (PBM) smart contracts and websites.","archived":false,"fork":false,"pushed_at":"2024-04-04T16:09:34.000Z","size":6259,"stargazers_count":4,"open_issues_count":12,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-02-22T10:31:37.998Z","etag":null,"topics":["blockchain","cbdc","defi","digital-currency","digital-money","ethereum","evm","javascript","pbm","polygon","reactjs","smart-contracts","solidity","typescript"],"latest_commit_sha":null,"homepage":"https://pbm.money","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GovTechSG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-05T05:39:15.000Z","updated_at":"2025-02-12T07:28:53.000Z","dependencies_parsed_at":"2023-12-28T10:26:45.986Z","dependency_job_id":"2d32411c-e3d5-4164-9bc4-bbe4b3af0bb0","html_url":"https://github.com/GovTechSG/cbdc-purpose-bound-money","commit_stats":null,"previous_names":["govtechsg/cbdc-purpose-bound-money"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GovTechSG/cbdc-purpose-bound-money","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GovTechSG%2Fcbdc-purpose-bound-money","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GovTechSG%2Fcbdc-purpose-bound-money/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GovTechSG%2Fcbdc-purpose-bound-money/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GovTechSG%2Fcbdc-purpose-bound-money/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GovTechSG","download_url":"https://codeload.github.com/GovTechSG/cbdc-purpose-bound-money/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GovTechSG%2Fcbdc-purpose-bound-money/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31739050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T03:27:07.512Z","status":"ssl_error","status_checked_at":"2026-04-13T03:26:53.610Z","response_time":93,"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":["blockchain","cbdc","defi","digital-currency","digital-money","ethereum","evm","javascript","pbm","polygon","reactjs","smart-contracts","solidity","typescript"],"created_at":"2024-11-09T04:12:03.711Z","updated_at":"2026-04-13T03:49:15.919Z","avatar_url":"https://github.com/GovTechSG.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    \u003ca href=\"https://www.pbm.money\"\u003e\u003cimg src=\"docs/images/logo.png\" alt=\"Purpose Bound Money (PBM)\" /\u003e\u003c/a\u003e\n    \u003cp align=\"center\"\u003eProject Orchid:\u003cbr/\u003ePurpose Bound Money (PBM)\u003c/p\u003e\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    🔗 Website: \u003ca href=\"https://www.pbm.money\" target=\"_blank\"\u003epbm.money\u003c/a\u003e\n\u003c/p\u003e\n\n## Introduction\n\nThe Purpose Bound Money (PBM) proposes a protocol for the use of digital money under specified conditions. As part of a wider pilot in \u003ca href=\"https://www.mas.gov.sg/publications/monographs-or-information-paper/2022/project-orchid-whitepaper\" target=\"_blank\"\u003eProject Orchid\u003c/a\u003e, this version of the protocol releases escrow payments automatically after a specified period. Visit \u003ca href=\"https://www.pbm.money\" target=\"_blank\"\u003epbm.money\u003c/a\u003e for more information on the key features.\n\n## Setup\n\n```bash\nyarn install\n```\n\n## Packages\n\nThis repository is a monorepo of the source files, including the smart contracts, implemented for the PBM protocol.\n\n| Package          | Description                                                            | Actual Site                   |\n| ---------------- | ---------------------------------------------------------------------- | ----------------------------- |\n| `@pbm/contracts` | Smart contracts used for the PBM token                                 | –                             |\n| `@pbm/app`       | The Web3 application frontend for interacting with the smart contracts | [Link](https://app.pbm.money) |\n| `@pbm/web`       | The main website at pbm.money homepage                                 | [Link](https://pbm.money)     |\n\n## Getting Started\n\n### Smart Contract Deployments\n\nThe following tasks have been implemented using Hardhat for both deploying the smart contracts to the blockchain and verifying them.\n\n| Task Name            | Description                               |\n| -------------------- | ----------------------------------------- |\n| `deploy:pbm`         | Deploy PBM token                          |\n| `deploy:vault`       | Deploy PBM vault                          |\n| `dsgd:mint`          | Mint underlying asset token (for testing) |\n| `verify:pbm`         | Verify PBM token                          |\n| `verify:pbm:proxy`   | Verify PBM token proxy                    |\n| `verify:vault`       | Verify PBM vault                          |\n| `verify:vault:proxy` | Verify PBM vault proxy                    |\n\n##### Usage\n\n```bash\nyarn hardhat \u003ctask-name\u003e --network \u003cnetwork\u003e --\u003carg-name\u003e \u003carg-value\u003e\n```\n\n### Start Application Frontend\n\n#### Production mode\n\n```bash\nyarn build:app \u0026\u0026 yarn start:app\n```\n\n#### Development mode\n\n```bash\nyarn start:app:dev\n```\n\n### Start Main Website\n\n#### Production mode\n\n```bash\nyarn build:web \u0026\u0026 yarn start:web\n```\n\n#### Development mode\n\n```bash\nyarn start:web:dev\n```\n\n### Run Smart Contract Tests\n\n```bash\nyarn test:contracts:coverage\n```\n\n### Continuous Integration/Deployment\n\nThe CI pipeline is setup to deploy to a staging and production environment based on their branches, `staging` and `main`, respectively.\n\n#### Staging Environment\n\nPlease raise an issue on Github to request for access to the staging environment if needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgovtechsg%2Fcbdc-purpose-bound-money","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgovtechsg%2Fcbdc-purpose-bound-money","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgovtechsg%2Fcbdc-purpose-bound-money/lists"}