Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alefmanvladimir/stakemanager
https://github.com/alefmanvladimir/stakemanager
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/alefmanvladimir/stakemanager
- Owner: alefmanvladimir
- Created: 2024-01-27T18:51:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-27T18:53:02.000Z (11 months ago)
- Last Synced: 2024-01-27T19:50:50.363Z (11 months ago)
- Language: Solidity
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stake Manager
## Installation
To install the necessary dependencies, run the following command:```bash
npm install
```or
```bash
yarn install
```##Deploying the Contract
To deploy the contract to a local testnet, follow these steps:**1. Start your local Ethereum testnet, for example using Hardhat Network or Ganache.
2. Deploy the contract:
```
npx hardhat run scripts/deploy.js --network localhost
```Replace localhost with the network of your choice.
##Testing the Contract
To run the unit tests for the contract:```
npx hardhat test
```##Upgrading the Contract
To upgrade your contract:1. Make necessary changes to your Solidity contract.
2. Open the upgrade.ts file and replace the PROXY constant with the address of your deployed proxy contract. For example:
```
const PROXY = "0xYourDeployedProxyContractAddress";
```3. Deploy the new contract version using the following command:
```
npx hardhat run scripts/upgrade.ts --network localhost
```
Replace localhost with the network of your choice.