Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alefmanvladimir/stakemanager


https://github.com/alefmanvladimir/stakemanager

Last synced: about 1 month ago
JSON representation

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.