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
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,3 +5,28 @@ A library for interacting with Seabug smart contracts via the Cardano Transactio
5
5
## Tests
6
6
7
7
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`)
- 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