7
7
* [ Setup ` nft.storage ` key] ( #setup--nftstorage--key )
8
8
* [ Optional: Copy testnet node database] ( #optional--copy-testnet-node-database )
9
9
* [ Start services] ( #start-services )
10
- * [ Start ogmios-datum-cache block fetcher] ( #start-ogmios-datum-cache-block-fetcher )
11
10
* [ Optional: Mint your own NFTs] ( #optional--mint-your-own-nfts )
12
11
- [ Components] ( #components )
13
12
* [ ` nft-marketplace ` ] ( #-nft-marketplace- )
22
21
## Prerequisites
23
22
24
23
- 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/ )
26
27
- [ nami wallet] ( https://namiwallet.io/ ) installed as browser extension
27
28
- Funds in wallet obtained from [ faucet] ( https://testnets.cardano.org/en/testnets/cardano/tools/faucet/ )
28
29
@@ -39,6 +40,7 @@ $ git clone --recurse-submodules
[email protected] :mlabs-haskell/seabug.git
39
40
``` shell
40
41
$ nix develop --extra-experimental-features nix-command --extra-experimental-features flakes
41
42
```
43
+ From now, execute every command in devshell dropped by ` nix develop `
42
44
43
45
### Setup ` nft.storage ` key
44
46
@@ -65,24 +67,6 @@ Once the chain is synced, you should be able to view the dApp UI from `localhost
65
67
66
68
Ensure that Nami is set to Testnet, that you have some Test Ada, and that you've set collateral in Nami.
67
69
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
-
86
70
### Optional: Mint your own NFTs
87
71
88
72
This process will be simplified in the future.
@@ -123,19 +107,21 @@ $ nix develop -L -c cabal run efficient-nft-pab
123
107
124
108
$ # In other console
125
109
$ # 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' \
127
111
--header ' Content-Type: application/json' \
128
112
--data-raw '
129
113
{
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
+ }
139
125
}'
140
126
141
127
$ # Go back to previous terminal and stop BPI
0 commit comments