Skip to content

Commit

Permalink
Merge branch 'main' into fuzz-and-e2e-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daopunk committed May 23, 2024
2 parents 7ab99dd + 9cbb92d commit 1239066
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 72 deletions.
4 changes: 1 addition & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
ARB_MAINNET_DEPLOYER_PK=0x
ARB_ETHERSCAN_API_KEY=
ARB_MAINNET_RPC=

ARB_NEW_DELEGATE=
ARB_NEW_ADMIN=
ARB_MAINNET_DEPLOYER_PK=0x
14 changes: 14 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Copyright (C) 2024 OpenFi Foundation

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
76 changes: 15 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,20 @@
## Foundry
<p align="center">
<img width="60" height="60" src="https://raw.githubusercontent.com/open-dollar/.github/main/od-logo.svg">
</p>
<h1 align="center">
Open Dollar
</h1>

**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**
<p align="center">
<a href="https://twitter.com/open_dollar" target="_blank">
<img alt="Twitter: open_dollar" src="https://img.shields.io/twitter/follow/open_dollar.svg?style=social" />
</a>
</p>

Foundry consists of:

- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network.
- **Chisel**: Fast, utilitarian, and verbose solidity REPL.
Template for projects using `@opendollar/contracts` with Foundry

## Documentation

https://book.getfoundry.sh/

## Usage

### Build

```shell
$ forge build
```

### Test

```shell
$ forge test
```

### Format

```shell
$ forge fmt
```

### Gas Snapshots

```shell
$ forge snapshot
```

### Anvil

```shell
$ anvil
```

### Deploy

```shell
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
```

### Cast

```shell
$ cast <subcommand>
```

### Help

```shell
$ forge --help
$ anvil --help
$ cast --help
```
- https://docs.opendollar.com
- https://contracts.opendollar.com
- https://book.getfoundry.sh/
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "arbitrum-vault-saviour",
"name": "treasury-backed-vault-saviour",
"version": "1.6.5",
"private": true,
"description": "Vault Saviour for Arbitrum on Open Dollar protocol",
"homepage": "https://www.opendollar.com/",
"description": "Vault saviour using treasury funds to prevent liquidation",
"homepage": "https://opendollar.com/",
"repository": {
"type": "git",
"url": "https://github.com/open-dollar/arbitrum-vault-saviour"
"url": "https://github.com/open-dollar/treasury-backed-vault-saviour"
},
"license": "MIT",
"license": "GNU AGPL",
"author": "OpenFi Foundation",
"contributors": [
"pi0neerpat (https://github.com/pi0neerpat)",
Expand Down
3 changes: 0 additions & 3 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@openzeppelin/=node_modules/@openzeppelin/contracts/
@openzeppelin-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/

@defi-wonderland/solidity-utils/=node_modules/@defi-wonderland/solidity-utils/solidity/

@opendollar/contracts/=node_modules/@opendollar/contracts/src/contracts/
Expand All @@ -10,8 +9,6 @@

@console2/=forge-std/console2.sol;

@defi-wonderland/solidity-utils/=node_modules/@defi-wonderland/solidity-utils/solidity/

@script/=script/
@contracts/=src/contracts/
@test/=test/
Expand Down

0 comments on commit 1239066

Please sign in to comment.