-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from soramitsu/revert-42-feature/code_document…
…ation Revert "[Documentation] include NatSpec comments for factory and interfaces"
- Loading branch information
Showing
14 changed files
with
29 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,2 @@ | ||
|
||
# StakePad Staking Pool | ||
|
||
This repository contains the smart contracts and tests for an ERC20 Lockup Staking Pool. | ||
|
||
## Setup | ||
|
||
### Installation | ||
|
||
Install the required dependencies by running: | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
### Environment Variables | ||
|
||
Before running the project, you need to set up the environment variables. Create a `.env` file in the root directory of the project and add the following variables: | ||
|
||
``` | ||
AMOY_API_KEY="Your_Amoy_API_Key" | ||
PRIVATE_KEY="0xYour_Wallet_Private_Key" | ||
``` | ||
|
||
To get your AMOY API key, please refer to the [AMOY Documentation](https://docs.polygonscan.com/getting-started/viewing-api-usage-statistics#creating-an-api-key). | ||
|
||
## Running Tests | ||
|
||
To run all unit tests, use the following command: | ||
|
||
``` | ||
npx hardhat test | ||
``` | ||
|
||
Make sure you have provided the necessary environment variables in the `.env` file before running the tests. | ||
|
||
## Deployment | ||
|
||
Before deploying the smart contracts, ensure you have set up all required parameters in your `.env` file as described above. | ||
|
||
### Deploying the Contracts | ||
|
||
To deploy the ERC20 Lockup Staking Pool smart contracts, run the following command: | ||
|
||
``` | ||
npx hardhat run scripts/deployStakingPool.ts --network `network` | ||
``` | ||
|
||
Replace `network` with the desired network name. The network should be configured in your `hardhat.config.ts` file under the `networks` section. Please refer to the [Hardhat Networks Configuration](https://hardhat.org/hardhat-runner/docs/config#networks-configuration) guide for more information. | ||
|
||
Currently, the following networks are already configured: | ||
|
||
- hardhat (default) | ||
|
||
|
||
Example for deploying to the default hardhat network: | ||
|
||
```bash | ||
npx hardhat ignition deploy ignition\modules\factories.ts -network 'your_netwrok' | ||
``` | ||
|
||
## Documentation | ||
|
||
This repository contains the specifications and audit reports for the ERC20 Lockup Staking Pool smart contracts. For more detailed information, please refer to the [Documentation](./docs/README.md). | ||
|
||
## Support | ||
|
||
If you have any questions or need further assistance, feel free to open an issue on the repository or contact the maintainers. | ||
|
||
Happy coding! | ||
# stakepad-contracts | ||
Designing a Better World Through Decentralized Technologies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.