Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
[submodule "nft-marketplace"]
path = nft-marketplace
url = https://github.com/mlabs-haskell/nft-marketplace
[submodule "plutus-use-cases"]
path = plutus-use-cases
url = https://github.com/mlabs-haskell/plutus-use-cases
[submodule "seabug-contracts"]
path = seabug-contracts
url = [email protected]:mlabs-haskell/seabug-contracts.git
[submodule "seabug-onchain"]
path = seabug-onchain
url = https://github.com/mlabs-haskell/seabug-onchain
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ Relay node of Cardano blockchain.

### Onchain SmartContracts

- [Minting policy](https://github.com/mlabs-haskell/plutus-use-cases/blob/927eade6aa9ad37bf2e9acaf8a14ae2fc304b5ba/mlabs/src/Mlabs/EfficientNFT/Token.hs)
- [Locking script](https://github.com/mlabs-haskell/plutus-use-cases/blob/927eade6aa9ad37bf2e9acaf8a14ae2fc304b5ba/mlabs/src/Mlabs/EfficientNFT/Lock.hs)
- [Marketplace script](https://github.com/mlabs-haskell/plutus-use-cases/blob/927eade6aa9ad37bf2e9acaf8a14ae2fc304b5ba/mlabs/src/Mlabs/EfficientNFT/Marketplace.hs)
- [Fee collecting script](https://github.com/mlabs-haskell/plutus-use-cases/blob/927eade6aa9ad37bf2e9acaf8a14ae2fc304b5ba/mlabs/src/Mlabs/EfficientNFT/Dao.hs)
The onchain contracts are in the following files at the relevant commit of [seabug-onchain](https://github.com/mlabs-haskell/seabug-onchain/):

- [Minting policy](https://github.com/mlabs-haskell/seabug-onchain/blob/master/src/SeabugOnchain/Token.hs)
- [Locking script](https://github.com/mlabs-haskell/seabug-onchain/blob/master/src/SeabugOnchain/Lock.hs)
- [Marketplace script](https://github.com/mlabs-haskell/seabug-onchain/blob/master/src/SeabugOnchain/Marketplace.hs)
- [Fee collecting script](https://github.com/mlabs-haskell/seabug-onchain/blob/master/src/SeabugOnchain/Dao.hs)
2 changes: 1 addition & 1 deletion doc/protocol-notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Self-Governed NFTs Protocol Notes

This document is my notes on the paper "Self-Governed NFTs on Cardano: Meta-Standard for Standards with Vertical and Horizontal Version Travel for a Decentralized Future" by Maksymilian Brodowicz, which describes the protocol used by the Seabug NFT marketplace. I wrote this because I found the paper hard to understand; this document is meant to be referenced alongside the paper to aid understanding. Also see the code [here](https://github.com/mlabs-haskell/plutus-use-cases/tree/main/mlabs/src/Mlabs/EfficientNFT) for a reference implementation of the protocol.
This document is my notes on the paper "Self-Governed NFTs on Cardano: Meta-Standard for Standards with Vertical and Horizontal Version Travel for a Decentralized Future" by Maksymilian Brodowicz, which describes the protocol used by the Seabug NFT marketplace. I wrote this because I found the paper hard to understand; this document is meant to be referenced alongside the paper to aid understanding. Also see the code [here](https://github.com/mlabs-haskell/seabug-onchain) for Seabug's implementation of the protocol.

- Protocol involves two separate NFTs:
- "Collection NFT" aka "underlying NFT": a traditional Cardano NFT to be imported to seabug
Expand Down
1 change: 0 additions & 1 deletion plutus-use-cases
Submodule plutus-use-cases deleted from a82512
29 changes: 20 additions & 9 deletions scripts/prepare-wallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,31 @@

set -e
TESTNET_MAGIC=1097911063
WALLETS_DIR=data/wallets

cd plutus-use-cases/mlabs
mkdir -p $WALLETS_DIR

pushd $WALLETS_DIR
cardano-cli address key-gen --verification-key-file payment.vkey --signing-key-file payment.skey
cardano-cli address build --payment-verification-key-file payment.vkey --out-file payment.addr --testnet-magic $TESTNET_MAGIC

PHK=$(cardano-cli address key-hash --payment-verification-key-file payment.vkey)
PKH=$(cardano-cli address key-hash --payment-verification-key-file payment.vkey)

mv payment.skey signing-key-$PKH.skey

ADDR=$(cat payment.addr)

mkdir -p pab/signing-keys
mv payment.skey pab/signing-keys/signing-key-$PHK.skey
mkdir $ADDR

mv payment.addr $ADDR/payment.addr
mv payment.vkey $ADDR/payment.vkey
mv signing-key-$PKH.skey $ADDR/signing-key-$PKH.skey

echo new wallet generated:
echo address: $(cat payment.addr)
echo PHK: $PHK
echo address: $ADDR
echo PKH: $PKH

popd

echo file: $(ls payment.addr)
echo file: $(ls payment.vkey)
echo file: $(ls pab/signing-keys/signing-key-$PHK.skey)
echo $WALLETS_DIR/$ADDR:
echo $(ls $WALLETS_DIR/$ADDR)
1 change: 1 addition & 0 deletions seabug-onchain
Submodule seabug-onchain added at 77f9cb