{"id":21177321,"url":"https://github.com/codechain-io/codechain-exchange","last_synced_at":"2025-07-09T22:30:41.363Z","repository":{"id":39745216,"uuid":"160605893","full_name":"CodeChain-io/codechain-exchange","owner":"CodeChain-io","description":" A decentralized exchange platform for CodeChain","archived":false,"fork":false,"pushed_at":"2023-01-07T04:31:38.000Z","size":2441,"stargazers_count":17,"open_issues_count":31,"forks_count":6,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-05T07:51:18.386Z","etag":null,"topics":["asset","decentralized","exchange"],"latest_commit_sha":null,"homepage":"","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/CodeChain-io.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}},"created_at":"2018-12-06T02:19:38.000Z","updated_at":"2024-02-09T21:44:58.000Z","dependencies_parsed_at":"2023-02-06T11:45:47.963Z","dependency_job_id":null,"html_url":"https://github.com/CodeChain-io/codechain-exchange","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeChain-io/codechain-exchange","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-exchange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-exchange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-exchange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-exchange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeChain-io","download_url":"https://codeload.github.com/CodeChain-io/codechain-exchange/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-exchange/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504571,"owners_count":23618824,"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":["asset","decentralized","exchange"],"created_at":"2024-11-20T17:15:36.006Z","updated_at":"2025-07-09T22:30:41.096Z","avatar_url":"https://github.com/CodeChain-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeChain Exchange\n\nDecentralized exchange platform for an asset on the CodeChain\n\n## Getting Started\n\n## Download CodeChain exchange code\n\n```\n# git clone https://github.com/CodeChain-io/codechain-exchange.git\n# cp codechain-exchange\n```\n\n## Prerequisites\n\n```\n# yarn install\n# sudo service postgresql start\n# yarn migration\n```\n\n### Account setting\nBefore All, you need to set a fee recipient asset address in the `/server/config/dex.json`\n#### Development mode\nMatched transactions are signed by secret. You don't actually need to do nothing\n#### Test mode\nMatched transactions are singed by secret. You need to add platform and its secret into the `/server/config/dex.json`\n#### Production mode\nMatched transactions are signed with the local keystore `/server/config/keystore.db`. The local keystore should store only one key.\n\n## Start server\n\n```\n# yarn start\n```\n\n## Start server in develop mode\n\n```\n# yarn start-dev\n```\n\n## Start client (Not implemented)\n\n```\n# cd client\n# yarn serve\n```\n\n## Running the tests\n\n```\n# yarn test\n```\n\n## Deployment\n\n## DB migration and undo migration\n\n```\n# yarn migration\n# yarn undo-migration\n```\n\n## Insert seed data into DB\n\n```\n# yarn seed\n# yarn undo-seed\n```\n\n## Formatting\n\n```\n# yarn fmt\n```\n\n## Market ID\nIn development and test environment, market ID of transaction is `0`.\ns far as market ID is `0`, the engine does not apply market rules on the transactions.\nOn the other hand, in production mode, all the transactions have to meet the market rules\n\n## dex.json\n__structure__\n```json\n{\n  \"dex-asset-address\": {\n    \"production\": \"\",\n    \"test\": \"\",\n    \"development\": \"\"\n  },\n  \"dex-passphrase\": \"\",\n  \"fee-rate\": ,\n  \"fee-asset-type\": \"0x0000000000000000000000000000000000000000\",\n  \"test-account\": \"\",\n  \"test-secret\": \"\",\n  \"market\": {\n    \"testMarket\": {\n      \"id\": 0,\n      \"asset1\": \"0x\",\n      \"asset2\": \"0x\"\n    }\n  },\n  \"node\": {\n    \"production\": {\n      \"rpc\": \"https://rpc.codechain.io/\",\n      \"network-id\": \"cc\"\n    },\n    \"test\": {\n      \"rpc\": \"https://corgi-rpc.codechain.io\",\n      \"network-id\": \"wc\"\n    },\n    \"development\": {\n      \"rpc\": \"http://127.0.0.1:8080\",\n      \"network-id\": \"tc\"\n    }\n  }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodechain-io%2Fcodechain-exchange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodechain-io%2Fcodechain-exchange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodechain-io%2Fcodechain-exchange/lists"}