Skip to content

Commit

Permalink
add provisional demo clip
Browse files Browse the repository at this point in the history
  • Loading branch information
djviau committed Sep 28, 2023
1 parent af34458 commit 478198a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Binary file added .github/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Shipyard comes with some batteries included
- no extra injected `solc` metadata for simpler Etherscan verification and [deterministic cross-chain deploys via CREATE2](https://0xfoobar.substack.com/p/vanity-addresses).
- a separate build profile for CI with increased fuzz runs for quicker local iteration, while still ensuring your contracts are well-tested

![](.github/demo.gif)

## Usage

Shipyard can be used as a starting point or a toolkit in a wide variety of circumstances. In general, if you're building something NFT related, you're likely to find something useful here. For the sake of exploring some of what Shipyard has to offer in concrete terms, here's a guide on how to deploy an NFT contract.
Expand Down
7 changes: 5 additions & 2 deletions script/DeployAndMint.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@ contract DeployScript is Script {
string memory openSeaPrefix =
block.chainid == 5 ? "https://testnets.opensea.io/assets/goerli/" : "https://opensea.io/assets/ethereum/";

string memory etherscanPrefix =
block.chainid == 5 ? "https://goerli.etherscan.io/address/" : "https://etherscan.io/address/";

console.log("\x1b[1m%s\x1b[0m", "Deployed an NFT contract at:");
console.log(address(targetContract));
console.log(string(abi.encodePacked(etherscanPrefix, vm.toString(address(targetContract)))));
console.log("");
console.log("\x1b[1m%s\x1b[0m", "Minted a token to the caller:");
console.log(string(abi.encodePacked(openSeaPrefix, vm.toString(address(targetContract)), "/1")));
console.log("");
console.log(
"\x1b[1m%s\x1b[0m",
"Please note that it will take perhaps 15 seconds"
"Please note that it will take perhaps 15 seconds "
"for the transaction to be mined and a few additional seconds for "
"OpenSea to pick up the transaction and reflect the existence of the NFT."
);
Expand Down

0 comments on commit 478198a

Please sign in to comment.