Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giveth/giveconomy-foundry
https://github.com/giveth/giveconomy-foundry
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/giveth/giveconomy-foundry
- Owner: Giveth
- License: gpl-3.0
- Created: 2022-05-20T12:48:38.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-08-01T12:46:02.000Z (3 months ago)
- Last Synced: 2024-08-01T14:19:13.229Z (3 months ago)
- Language: Solidity
- Size: 656 KB
- Stars: 29
- Watchers: 5
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Foundry Tests](https://github.com/Giveth/givpower/actions/workflows/test.yml/badge.svg)](https://github.com/Giveth/givpower/actions/workflows/test.yml)
[![Slither Analysis](https://github.com/Giveth/givpower/actions/workflows/slither.yml/badge.svg)](https://github.com/Giveth/givpower/actions/workflows/slither.yml)## Background
TBD
### Upgrade script
1. Deploy a new instance of GIVpower by script
```
forge create --rpc-url --private-key contracts/GIVpower.sol:GIVpower
```
> **_NOTE:_** The verification part (--verify --etherscan-api-key ) is optional
2. Grab the address of new GIVpower instance deployed above and use it in calling `upgrade` method on `ProxyAdmin` contract by a privilaged account.
```
upgrade(, )
```## Deployments
Network
GardenUnipool (TransparentUpgradeableProxy)
ProxyAdminGnosis Chain
[0xD93d3bDBa18ebcB3317a57119ea44ed2Cf41C2F2](https://blockscout.com/xdai/mainnet/address/0xD93d3bDBa18ebcB3317a57119ea44ed2Cf41C2F2)
[0x076C250700D210e6cf8A27D1EB1Fd754FB487986](https://blockscout.com/xdai/mainnet/address/0x076C250700D210e6cf8A27D1EB1Fd754FB487986)
## Diagram
## Foundry
This project use [Foundry](https://github.com/foundry-rs/foundry). To install (assuming a Linux or macOS system):
```
curl -L https://foundry.paradigm.xyz | bash
```This will download foundryup. To start Foundry, run:
```
foundryup
```To install dependencies:
```
forge install
```To run tests:
```
forge test
```