{"id":19163722,"url":"https://github.com/spandan114/token-exchange","last_synced_at":"2026-04-13T06:35:37.051Z","repository":{"id":121648195,"uuid":"453736347","full_name":"spandan114/Token-exchange","owner":"spandan114","description":"Decentralized ERC-20 token (Brownie token ) exchange .","archived":false,"fork":false,"pushed_at":"2022-03-03T19:37:11.000Z","size":1730,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T15:46:21.538Z","etag":null,"topics":["crypto-exchange","cryptocurrency","dapp","erc20","ethereum-dapp","etherjs","hardhat","mocha-chai","reactjs","smart-contracts","solidity","testcase","web3","web3js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/spandan114.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":"2022-01-30T16:37:08.000Z","updated_at":"2023-08-21T18:41:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ffc1e3b-2d4c-4685-8138-7e2a7f56e3af","html_url":"https://github.com/spandan114/Token-exchange","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spandan114/Token-exchange","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spandan114%2FToken-exchange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spandan114%2FToken-exchange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spandan114%2FToken-exchange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spandan114%2FToken-exchange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spandan114","download_url":"https://codeload.github.com/spandan114/Token-exchange/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spandan114%2FToken-exchange/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268388990,"owners_count":24242699,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["crypto-exchange","cryptocurrency","dapp","erc20","ethereum-dapp","etherjs","hardhat","mocha-chai","reactjs","smart-contracts","solidity","testcase","web3","web3js"],"created_at":"2024-11-09T09:16:27.249Z","updated_at":"2026-04-13T06:35:36.970Z","avatar_url":"https://github.com/spandan114.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Token exchange :money_mouth_face:\ndecentralized ERC-20 token (Brownie token ) exchange .\n\n\u003cimg src=\"./TokenExchange.png\" alt=\"Exchange image\"\u003e\n\n### Tech stack \u0026 packages used :man_technologist:\n- React.js ,solidity ,hardhat ,mocha, chai, ether.js, web3.js,lodash, apexcharts \u0026 waffle\n### Token exchange features :tada:\n- [x] Deposite \u0026 withdraw ether.\n- [x] Deposite \u0026 withdraw token.\n- [x] Buy \u0026 sell token.\n- [x] Maintain trade (Create order,fill order \u0026 cancel order).\n- [x] Realtime updates.\n\n### How to run :runner: :\n----------------\n- Run hardhat node\n    ```\n    npx hardhat node\n    ```\n- Run test cases\n    ```\n    npx hardhat test\n    ```\n- Deploy contract in local hardhat node\n    ```\n    npx hardhat run scripts/deploy.js --network localhost\n    ```\n- Connect hardhat with metamask\n- Run react frontend\n    ```\n    cd client\n    npm start\n    ```\n### Web3.js \n------------\n- [Load web3](https://web3js.readthedocs.io/en/v1.2.11/web3-eth.html#web3-eth)\n- [Connect with contract](https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html#web3-eth-contract)\n    ```\n    new web3.eth.Contract(jsonInterface[, address][, options])\n    ```\n- [Callback promises events](https://web3js.readthedocs.io/en/v1.2.11/callbacks-promises-events.html#callbacks-promises-events)\n    ```\n    .on('transactionHash', function(hash){ ... })\n    .on('error', function(error){ ... })\n    ```\n- [Subscribe to event](https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html#contract-events)\n    ```\n    contractName.events.EventName([options][, callback])\n    ```\n- [Fetch all data from contract event](https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html#getpastevents)\n    - \u003csmall\u003e An array with the past event Objects, matching the given event name and filter.\u003c/small\u003e\n\n    ```\n    contractName.getPastEvents(EventName[, options][, callback])\n    ```\n\n### Hardhat commands\n```shell\nnpx hardhat accounts\nnpx hardhat compile\nnpx hardhat clean\nnpx hardhat test\nnpx hardhat node\nnode scripts/deploy.js\nnpx hardhat run scripts/seed.js\nnpx hardhat help\nnpx hardhat run scripts/deploy.js --network \u003cnetwork name\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspandan114%2Ftoken-exchange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspandan114%2Ftoken-exchange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspandan114%2Ftoken-exchange/lists"}