This project is a final case project for Rise In Solidity & BNB Chain Development Bootcamp.
The Smart Transfer DApp provides to the users can be transfer their balances to the other users, lock and unlock their balances, get reward from contract. You can analyze contract on BSC Testnet: https://testnet.bscscan.com/address/0xba8D43495B3e7c7FD7FBb131336d2d1531b5F1ab#code
- Buy token from contract.
- Transfer the tokens to the other users.
- Lock and unlock your tokens.
- Get your rewards which calculated by time when you unlock your locked balances.
- Sell tokens to the contract and get paid.
- Ethereum Wallet Integration: Connect your Ethereum wallet (e.g., MetaMask) to participate directly.
Follow these steps to set up the project locally and start participating in web3 auctions.
- Node.js: Ensure Node.js is installed. Download it from nodejs.org.
- Clone the repository:
git clone https://github.com/melihgunduz/rise-in-solidity-bnb-chain-development-bootcamp-final-project.git
- Navigate to the project directory:
cd rise-in-solidity-bnb-chain-development-bootcamp-final-project
- Install required npm packages:
npm install
- Create secrets.json at root of the project:
{
"MNEMONIC": "your 12-word seed phrase",
"BSCAPIKEY": "bscscanApiKey"
}
Smart contract tests are located in the test
folder. These tests ensure the correct functioning of the smart contract. To run the tests, follow these steps:
- Open a terminal in the project directory.
- Run the following command to execute the tests:
npx hardhat test ./test/SmartTransfer.ts
or
npx hardhat test ./test/YourTestScript
This command will initiate the smart contract tests and display the results in the terminal.
Contributions to this project are welcome! To contribute:
- Fork the repository.
- Create a new branch for your feature/bug fix.
- Make changes and test thoroughly.
- Commit with clear and concise messages.
- Push changes to your fork.
- Submit a pull request describing your changes.
This project is licensed under the MIT License.