{"id":19935557,"url":"https://github.com/diem/liquidity-emulator","last_synced_at":"2025-05-03T12:31:22.254Z","repository":{"id":54501139,"uuid":"299708187","full_name":"diem/liquidity-emulator","owner":"diem","description":"A liquidity emulator to support the Diem reference projects","archived":false,"fork":false,"pushed_at":"2021-02-15T08:02:05.000Z","size":90,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-04-07T15:54:35.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/diem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2020-09-29T18:45:16.000Z","updated_at":"2024-12-10T03:19:24.000Z","dependencies_parsed_at":"2022-08-13T17:51:01.560Z","dependency_job_id":null,"html_url":"https://github.com/diem/liquidity-emulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diem%2Fliquidity-emulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diem%2Fliquidity-emulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diem%2Fliquidity-emulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diem%2Fliquidity-emulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diem","download_url":"https://codeload.github.com/diem/liquidity-emulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252190924,"owners_count":21708980,"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":"2024-11-12T23:20:37.753Z","updated_at":"2025-05-03T12:31:21.905Z","avatar_url":"https://github.com/diem.png","language":"Python","readme":"# Liquidity Service Emulator\n\n## Development\n\nThis project used the following tools:\n\n- Flask as the HTTP server.\n- Black for automatic code formatting.\n- Flake8 for linting.\n\n### Testnet setup\n\n```shell script\npipenv install --dev\npipenv run pre-commit install\npipenv run python setup_env.py\n./run.sh\n```\n\nThe last command will install the git hooks that will run code formatting\nand linting on each commit.\n\n### Premainnet setup\n\nPremainnet setup works identically to the testnet setup, but requires two\nenvironment variables to be present: `BLOCKCHAIN` and `LIQUIDITY_ACCOUNT_PRIVATE_KEY`.\n\nThe value of `BLOCKCHAIN` must be `premainnet`; the value of\n`LIQUIDITY_ACCOUNT_PRIVATE_KEY` must be the private key of the Designated\nDealer account, encoded as a hexadecimal string.\n\n\n### PyCharm configuration\n- Add Black to `Settings/Tools/File Watchers` as described in the [documentation][1].\n\n### Helper scripts\n- `run.sh` Starts the HTTP server\n- `develop.sh` Starts the HTTP server with code auto-reloading.\n- `lint.sh` Fix code formatting and run linting\n\n\n[1]: https://black.readthedocs.io/en/stable/editor_integration.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiem%2Fliquidity-emulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiem%2Fliquidity-emulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiem%2Fliquidity-emulator/lists"}