Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
4f7f191
Initial work on adding purchase metadata
rynoV Jun 29, 2022
b9d2874
Use patched CTL to fix build
rynoV Jun 30, 2022
a9b19bf
Move metadata-adding to its own function
rynoV Jun 30, 2022
409be24
Update policyId to use collectionNftCs
rynoV Jul 1, 2022
3c0714d
Update policyId creation to use CTL built-in function
rynoV Jul 1, 2022
6e1298e
Use liftContractM instead of liftedM
rynoV Jul 1, 2022
d2018a4
Merge remote-tracking branch 'origin/neil/typescript-api' into calum/…
rynoV Jul 6, 2022
969e65a
Auto-formatting change
rynoV Jul 6, 2022
35cc0da
Merge branch 'neil/typescript-api' of https://github.com/mlabs-haskel…
rynoV Jul 8, 2022
4892ef2
Fix build following CTL update
rynoV Jul 8, 2022
af51048
Update CTL version to calum/metadata-invalid-char-fix HEAD
rynoV Jul 8, 2022
d210a62
Use Contract.Value.CurrencySymbol in SeabugMetadata
rynoV Jul 8, 2022
9b65c0a
Remove other usage of Cardano.Types.Value.CurrencySymbol
rynoV Jul 8, 2022
437458b
Remove fakeAuthor field
rynoV Jul 12, 2022
29f2e09
Testing out cnft minting policy
rynoV Jul 14, 2022
8dca3ba
Initial port of "mintWithCollection" and locking script
rynoV Jul 14, 2022
267165e
Merge branch 'calum/purchase-metadata' into calum/minting-contract
rynoV Jul 14, 2022
9cae4e9
Add metadata to NFT mint
rynoV Jul 14, 2022
e05ce49
Merge branch 'neil/typescript-api' of https://github.com/mlabs-haskel…
rynoV Jul 14, 2022
e7220bd
Merge branch 'calum/purchase-metadata' of https://github.com/mlabs-ha…
rynoV Jul 14, 2022
434002a
Initial work on CNFT mint contract
rynoV Jul 15, 2022
38661fa
Finish cnft mint contract and update seabug metadata policy id
rynoV Jul 15, 2022
67b7b8b
Clean up minting policy
rynoV Jul 15, 2022
25a0735
Fix up blockfrost metadata parsing for cnfts
rynoV Jul 15, 2022
9d9872f
Fix up locking script
rynoV Jul 15, 2022
5bdee3f
Initial minting invocation code
rynoV Jul 15, 2022
2927f6b
flake.lock update
rynoV Jul 15, 2022
0a87700
Update CTL for awaitTxConfirmed and fully automate minting
rynoV Jul 18, 2022
101d098
Move `setSeabugMetadata` to a better spot
rynoV Jul 20, 2022
cda8882
Only fetch and show NFTs that are known to work
rynoV Jul 20, 2022
a33375d
Add minting process description
rynoV Jul 20, 2022
4071818
Fix key wallet setup description
rynoV Jul 20, 2022
0fb7214
Update nft filter
rynoV Jul 20, 2022
d34140c
Remove unnecessary cnft testing function
rynoV Jul 21, 2022
bba5da5
Minor doc and names updates
rynoV Jul 21, 2022
c8721f8
Use min ada constant instead of heuristic value for nft filter
rynoV Jul 21, 2022
cc0b419
Unused import
rynoV Jul 21, 2022
ca4c703
Remove old TODO comment
rynoV Jul 21, 2022
5aecc5a
Update minting to use a base address (#29)
rynoV Jul 22, 2022
e8153c5
Update cnft mint policy to use minor refactor
rynoV Jul 22, 2022
1ac993d
Don't use "ref" for CTL flake input
rynoV Jul 22, 2022
ecfa183
Fix nix build
rynoV Jul 22, 2022
f4a4930
Merge remote-tracking branch 'origin/neil/typescript-api' into calum/…
rynoV Jul 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,28 @@ A library for interacting with Seabug smart contracts via the Cardano Transactio
## Tests

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`.

## Minting

The minting process currently requires some manual steps. To mint a new NFT:

- Upload a new image to nft.storage (e.g. using `seabug/scripts/mint-nft.sh`)
- Uncomment [this line](https://github.com/mlabs-haskell/seabug-contracts/blob/cda88824f87e0b961b738c66a428b7ade77454be/index.js#L39)
- Update the image info [here](https://github.com/mlabs-haskell/seabug-contracts/blob/cda88824f87e0b961b738c66a428b7ade77454be/src/Seabug/Seabug.purs#L34)
Comment on lines +14 to +15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're using branch specific links here, we'll want to change this to main when we merge up

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are permalinks so they should continue to work (I think). The lines will probably get moved around, but this seems like a good way to do this since it should be easy to figure out what lines need to be acted on by comparing the old linked version with the updated version

- Make sure you're using the base36 encoded CID (`mint-nft.sh` prints this out)
- Run `make run-dev` and open the link from the console in chrome; this will trigger the minting
- If Nami/Gero are giving you trouble, this snippet can be used to use a key wallet instead:
```
privateKey <- liftM (error "Failed to parse private key") $
privateKeyFromBytes
=<< hexToRawBytes "<secret key>"
privateStakeKey <- liftM (error "Failed to parse private stake key")
$ privateKeyFromBytes
=<< hexToRawBytes "<secret stake key>"
let wallet = Just $ mkKeyWallet (wrap privateKey) (Just $ wrap privateStakeKey)
```
- The secret key can be obtained through e.g. `seabug/scripts/prepare-wallet.sh` (make sure to add ada to that wallet)
- Note you may have to remove the "5820" from the start of the "cborHex" in the skey file
- The stake key will also be necessary for minting, the command `cardano-cli stake-address key-gen --signing-key-file stake.skey --verification-key-file stake.vkey` can be used to get a stake key
- Add the wallet that you minted with as an artist to the
`nft-marketplace-server` database with `admin/create_artist`
Loading