77 * [ Setup ` nft.storage ` key] ( #setup--nftstorage--key )
88 * [ Optional: Copy testnet node database] ( #optional--copy-testnet-node-database )
99 * [ Start services] ( #start-services )
10- * [ Start ogmios-datum-cache block fetcher] ( #start-ogmios-datum-cache-block-fetcher )
1110 * [ Optional: Mint your own NFTs] ( #optional--mint-your-own-nfts )
1211- [ Components] ( #components )
1312 * [ ` nft-marketplace ` ] ( #-nft-marketplace- )
2221## Prerequisites
2322
2423- nix
25- - arion - Use patched one from ` nix develop ` !
24+ - [ IOHK binary cache] ( https://github.com/input-output-hk/plutus#how-to-set-up-the-iohk-binary-caches )
25+ - arion - Provided by devshell
26+ - [ docker] ( https://docs.docker.com/get-docker/ )
2627- [ nami wallet] ( https://namiwallet.io/ ) installed as browser extension
2728- Funds in wallet obtained from [ faucet] ( https://testnets.cardano.org/en/testnets/cardano/tools/faucet/ )
2829
@@ -39,6 +40,7 @@ $ git clone --recurse-submodules
[email protected] :mlabs-haskell/seabug.git
3940``` shell
4041$ nix develop --extra-experimental-features nix-command --extra-experimental-features flakes
4142```
43+ From now, execute every command in devshell dropped by ` nix develop `
4244
4345### Setup ` nft.storage ` key
4446
@@ -65,24 +67,6 @@ Once the chain is synced, you should be able to view the dApp UI from `localhost
6567
6668Ensure that Nami is set to Testnet, that you have some Test Ada, and that you've set collateral in Nami.
6769
68-
69- ### Start ogmios-datum-cache block fetcher
70-
71- Necessary untill [ #20 ] ( https://github.com/mlabs-haskell/ogmios-datum-cache/issues/20 ) is implemented.
72-
73- ``` shell
74- $ curl --location --request POST ' localhost:9999/control/fetch_blocks' -i\
75- --header ' Content-Type: application/json' \
76- --data-raw '
77- {
78- "slot": 44366242,
79- "id": "d2a4249fe3d0607535daa26caf12a38da2233586bc51e79ed0b3a36170471bf5"
80- }
81- '
82- ```
83-
84- Detaild block fetcher api is described [ here] ( https://github.com/mlabs-haskell/ogmios-datum-cache/tree/9e8bcbe00f88715afdb202cd9654ec2adc72c09e#control-api ) .
85-
8670### Optional: Mint your own NFTs
8771
8872This process will be simplified in the future.
@@ -123,19 +107,21 @@ $ nix develop -L -c cabal run efficient-nft-pab
123107
124108$ # In other console
125109$ # Mint underlying CNFTs, replace "CONVERTED_CID" with the result of `ipfs` command
126- $ curl --location --request POST ' localhost:3003/api/contract/activate'
110+ $ curl --location --request POST ' localhost:3003/api/contract/activate' \
127111 --header ' Content-Type: application/json' \
128112 --data-raw '
129113 {
130- "tag":"MintCnft",
131- "contents":[
132- {
133- "mc' " '" ' name":"Cat number 123",
134- "mc' " '" ' description":"Cat eating piece of cheese",
135- "mc' " '" ' image":"ipfs://CONVERTED_CID",
136- "mc' " '" ' tokenName":"cat-123"
137- }
138- ]
114+ "caID": {
115+ "tag":"MintCnft",
116+ "contents":[
117+ {
118+ "mc' " '" ' name":"Cat number 123",
119+ "mc' " '" ' description":"Cat eating piece of cheese",
120+ "mc' " '" ' image":"ipfs://CONVERTED_CID",
121+ "mc' " '" ' tokenName":"cat-123" # This should be hex encoded (without 0x)
122+ }
123+ ]
124+ }
139125 }'
140126
141127$ # Go back to previous terminal and stop BPI
0 commit comments