Skip to content

Commit

Permalink
Merge branch 'main' of github.com:waterfall-mkt/curta-golf into sabno…
Browse files Browse the repository at this point in the history
…ck/check-runtime-purity
  • Loading branch information
Sabnock01 committed Dec 19, 2023
2 parents 76a3b6c + 114aaef commit 6f279bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: test

on: workflow_dispatch
on: [push]

env:
FOUNDRY_PROFILE: ci
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The goal of players is to view [**Courses**](https://github.com/waterfall-mkt/cu
</tr>
<tr>
<td><code><a href="https://github.com/waterfall-mkt/curta-golf/blob/1449e59227a30ca720c04785339406515a0a2fea/src/Par.sol">Par</a></code></td>
<td><code><a href="https://basescan.org/address/ 0x6B780314f95452E37D88A2F950Bbd3885851fD10"> 0x6B780314f95452E37D88A2F950Bbd3885851fD10</code></td>
<td><code><a href="https://basescan.org/address/0x6B780314f95452E37D88A2F950Bbd3885851fD10">0x6B780314f95452E37D88A2F950Bbd3885851fD10</code></td>
</tr>
<tr>
<td><code><a href="https://github.com/waterfall-mkt/curta-golf/blob/1449e59227a30ca720c04785339406515a0a2fea/src/utils/PurityChecker.sol">PurityChecker</a></code></td>
Expand Down Expand Up @@ -76,7 +76,7 @@ forge coverage --report lcov
## Deploying

There are three core contracts that get deployed in [`Deploy.s.sol`](https://github.com/waterfall-mkt/curta-golf/blob/main/script/Deploy.s.sol): `PurityChecker.sol`, `Par.sol`, and `CurtaGolf.sol`. We also make use of three external libraries included in [`foundry.toml`](https://github.com/waterfall-mkt/curta-golf/blob/main/foundry.toml#L16-L20C2). These are: `Perlin.sol`, `ParArt.sol`, and `KingArt.sol`. `Perlin.sol` is used by `KingArt.sol`, which is used by `KingERC721.sol`, which is inherited by `CurtaGolf.sol`, and `ParArt.sol` is used by `Par.sol`. We include these in `foundry.toml` if we *don't* want them to be deployed alongside the contracts that use them. Otherwise, as an example, `Perlin.sol` and `KingArt.sol` would be deployed alongside `CurtaGolf.sol`.
There are three core contracts that get deployed in [`Deploy.s.sol`](https://github.com/waterfall-mkt/curta-golf/blob/main/script/Deploy.s.sol): `PurityChecker.sol`, `Par.sol`, and `CurtaGolf.sol`. We also make use of three external libraries. These are: `Perlin.sol`, `ParArt.sol`, and `KingArt.sol`. `Perlin.sol` is used by `KingArt.sol`, which is used by `KingERC721.sol`, which is inherited by `CurtaGolf.sol`, and `ParArt.sol` is used by `Par.sol`. We include these in `foundry.toml` if we *don't* want them to be deployed alongside the contracts that use them. Otherwise, as an example, `Perlin.sol` and `KingArt.sol` would be deployed alongside `CurtaGolf.sol`.

A standard example for deploying everything would look like this:
```sh
Expand Down
9 changes: 0 additions & 9 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ remappings = [
'solmate/=lib/solmate/src/',
]

# These external libraries have already been so we reference them this way
# They would otherwise be deployed again via the contracts that use them.
libraries = [
"src/utils/Perlin.sol:Perlin:0x5499e963931d359553380bCA52077ecB0E2419d6",
"src/utils/metadata/KingArt.sol:KingArt:0xcD1842728b73611445c87801889CAE24CF5502c6",
"src/utils/metadata/ParArt.sol:ParArt:0xBc475ce743B5C331A62d55Ce19A83De47d978e1C"
]


[fmt]
line_length = 100
tab_width = 4
Expand Down

0 comments on commit 6f279bb

Please sign in to comment.