Skip to content

Commit

Permalink
Merge pull request #6 from SnakeFi-Polkadot/0xHarryRiddle/Dex
Browse files Browse the repository at this point in the history
update: update the S_N_A_K_E Governance
  • Loading branch information
0xharryriddle authored Dec 28, 2024
2 parents 8b9c5b8 + 4e23e33 commit 2879a7b
Show file tree
Hide file tree
Showing 39 changed files with 1,759 additions and 4,879 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/vectorized/solady
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
39 changes: 8 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,17 @@
# <h1 align="center"> SnakeFi - Decentralize Exchange incentive Ve(3,3) </h1>

**Template repository for getting started quickly with Foundry projects**
## Deployment

![Github Actions](https://github.com/foundry-rs/forge-template/workflows/CI/badge.svg)
The deployer address:

## Getting Started
- EVM: `0x1cb3D844C968D30E80babe134B299BE2c66d899e`

Click "Use this template" on [GitHub](https://github.com/foundry-rs/forge-template) to create a new repository with this repo as the initial state.
- Westend Asset Hub: `5CiLd61pypFCa8uDND1S6XihW6PNF8SSirnBns4BoHJ4JvmU`

Or, if your repo already exists, run:
This is the list of deployed contract, consists of:

```sh
forge init
forge build
forge test
```
- WrappedWND contract:

## Writing your first test
- EVM address: `0xb576972a36f18365ECE226C29b3564F4bf79CFaD`

All you need is to `import forge-std/Test.sol` and then inherit it from your test contract. Forge-std's Test contract comes with a pre-instatiated [cheatcodes environment](https://book.getfoundry.sh/cheatcodes/), the `vm`. It also has support for [ds-test](https://book.getfoundry.sh/reference/ds-test.html)-style logs and assertions. Finally, it supports Hardhat's [console.log](https://github.com/brockelmore/forge-std/blob/master/src/console.sol). The logging functionalities require `-vvvv`.

```solidity
pragma solidity 0.8.10;
import "forge-std/Test.sol";
contract ContractTest is Test {
function testExample() public {
vm.roll(100);
console.log(1);
emit log("hi");
assertTrue(true);
}
}
```

## Development

This project uses [Foundry](https://getfoundry.sh). See the [book](https://book.getfoundry.sh/getting-started/installation.html) for instructions on how to install and use Foundry.
- Westend Asset Hub address: `5GAdkdRw3LSV27vjqs6rg5xzHNQVUwoR8EfHE7UVGG8s6bYG`
1 change: 1 addition & 0 deletions lib/forge-std
Submodule forge-std added at b93cf4
21 changes: 0 additions & 21 deletions lib/forge-std/.github/workflows/tests.yml

This file was deleted.

2 changes: 0 additions & 2 deletions lib/forge-std/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions lib/forge-std/.gitmodules

This file was deleted.

203 changes: 0 additions & 203 deletions lib/forge-std/LICENSE-APACHE

This file was deleted.

25 changes: 0 additions & 25 deletions lib/forge-std/LICENSE-MIT

This file was deleted.

Loading

0 comments on commit 2879a7b

Please sign in to comment.