Skip to content

Commit a33375d

Browse files
committed
Add minting process description
1 parent cda8882 commit a33375d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,28 @@ A library for interacting with Seabug smart contracts via the Cardano Transactio
55
## Tests
66

77
Use `spago test` to run the tests. Something like `nix build .#checks.<system>.seabug-contracts` can also be used, where `<system>` is something like `x86_64-linux`.
8+
9+
## Minting
10+
11+
The minting process currently requires some manual steps. To mint a new NFT:
12+
13+
- Upload a new image to nft.storage (e.g. using `seabug/scripts/mint-nft.sh`)
14+
- Uncomment [this line](https://github.com/mlabs-haskell/seabug-contracts/blob/cda88824f87e0b961b738c66a428b7ade77454be/index.js#L39)
15+
- Update the image info [here](https://github.com/mlabs-haskell/seabug-contracts/blob/cda88824f87e0b961b738c66a428b7ade77454be/src/Seabug/Seabug.purs#L34)
16+
- Make sure you're using the base36 encoded CID (`mint-nft.sh` prints this out)
17+
- Run `make run-dev` and open the link from the console in chrome; this will trigger the minting
18+
- If Nami/Gero are giving you trouble, this snippet can be used to use a key wallet instead:
19+
```
20+
wallet =
21+
cborBytesFromAscii "<secret key>"
22+
>>= unwrap
23+
>>> wrap
24+
>>> privateKeyFromBytes
25+
>>= wrap
26+
>>> flip mkKeyWalletFromPrivateKey Nothing
27+
>>> pure
28+
```
29+
- The secret key can be obtained through e.g. `seabug/scripts/prepare-wallet.sh` (make sure to add ada to that wallet)
30+
- Once the sgNft mint transaction has gone through, add its hash [here](https://github.com/mlabs-haskell/seabug-contracts/blob/cda88824f87e0b961b738c66a428b7ade77454be/src/Seabug/Contract/MarketPlaceListNft.purs#L63)
31+
- Add the wallet that you minted with as an artist to the
32+
`nft-marketplace-server` database with `admin/create_artist`

0 commit comments

Comments
 (0)