You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Shipyard
2
2
3
-
Shipyard is a Forge template for smart contract development. See [the tutorial](exampleNftTutorial/Overview.md) for detailed instructions on using Shipyard or jump down to [the usage section](#usage) below for more info on how it works.
3
+
Shipyard is a Forge template for smart contract development. See [the tutorial](exampleNftTutorial/README.md) for detailed instructions on using Shipyard or jump down to [the usage section](#usage) below for more info on how it works.
4
4
5
5
## Overview
6
6
Shipyard comes with some batteries included
@@ -23,7 +23,7 @@ Shipyard can be used as a starting point or a toolkit in a wide variety of circu
23
23
24
24
### Quick Deploy Guide
25
25
26
-
To deploy an NFT contract to the Goerli testnet, fund an address with 0.25 Goerli ETH, open a terminal window, and run the following commands:
26
+
To deploy an NFT contract to the Goerli testnet, fund an address with 0.1 Goerli ETH, open a terminal window, and run the following commands:
27
27
28
28
Create a directory and `cd` into it:
29
29
```bash
@@ -43,7 +43,7 @@ Install forge, cast, anvil, and chisel by running:
43
43
foundryup
44
44
```
45
45
46
-
Create a new Foundry project based on Shipyard, which also initializes a new git repository, all in the working directory.
46
+
Create a new Foundry project based on Shipyard, which also initializes a new git repository, in the working directory.
47
47
```bash
48
48
forge init --template projectopensea/shipyard
49
49
```
@@ -111,7 +111,7 @@ To generate reports, run
111
111
-[ ] Pin to version
112
112
-[x] Shipyard-core
113
113
-[ ] Pin to version
114
-
-[] Include a base cross-chain deploy script
114
+
-[x] Include a base cross-chain deploy script
115
115
-[ ] Figure out if there's a way we can make `forge verify-contract` more ergonomic
116
116
-[ ] Top-level helpers:
117
117
-[x] PRB's `reinit-submodules` script as top-level helper
- When experiencing irregular behavior that's difficult to explain, it's worth running `foundryup` and `forge clean` just to make sure that everything's all synced on the latest. See [https://book.getfoundry.sh/reference/forge/forge-clean](https://book.getfoundry.sh/reference/forge/forge-clean) for more.
20
+
21
+
- It's advisable to run `forge build --watch` while writing a new function to make sure the compiler is happy with your code, especially if the syntax highlighting lags. It's advisable to run `forge test -vvv --watch` while tweaking a test or tweaking code that a test targets. See [https://book.getfoundry.sh/forge/tests#watch-mode](https://book.getfoundry.sh/forge/tests#watch-mode) for more info.
22
+
23
+
- If you're searching for something in shipyard-core, but you don't want to see all of the files in shipyard-core's libraries, include `lib/shipyard-core` and exclude `lib/shipyard-core/lib`.
Copy file name to clipboardExpand all lines: exampleNftTutorial/Deploying.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,14 +87,16 @@ Once you've got a salt that produces a deploy address you're happy with, deployi
87
87
88
88
Since you're fluent with the Foundry toolset now, you could also use [`cast send`](https://book.getfoundry.sh/reference/cast/cast-send?highlight=cast%20send#cast-send) to send the transaction from the command line:
Alternatively, you can adapt the [cross chain deploy script](../script/CrossChainDeploy.s.sol) to deploy.
95
+
94
96
Finally, verify your contract [on Etherscan](https://etherscan.io/verifyContract) or [using Forge](https://book.getfoundry.sh/forge/deploying?highlight=verify#verifying-a-pre-existing-contract).
95
97
96
98
To be clear, this is mostly about the cool factor. But it also gives you gas efficiency benefits, sceurity benefits, cross-chain consistency, and more. And since you know the address before you deploy, you can code it into your frontend, etc. before you've revealed it to the rest of the world.
97
99
98
100
## Back to the table of contents
99
101
100
-
[Take it from the top](Overview.md)
102
+
[Take it from the top](README.md) or [view the appendix](Appendix.md), which contains addition info, such as useful aliases and links.
0 commit comments