|
6 | 6 | * [Enter nix shell](#enter-nix-shell) |
7 | 7 | * [Setup `nft.storage` key](#setup--nftstorage--key) |
8 | 8 | * [Optional: Copy testnet node database](#optional--copy-testnet-node-database) |
9 | | - * [Optional: Mint your own NFTs](#optional--mint-your-own-nfts) |
10 | 9 | * [Start services](#start-services) |
11 | 10 | * [Start ogmios-datum-cache block fetcher](#start-ogmios-datum-cache-block-fetcher) |
| 11 | + * [Optional: Mint your own NFTs](#optional--mint-your-own-nfts) |
12 | 12 | - [Components](#components) |
13 | 13 | * [`nft-marketplace`](#-nft-marketplace-) |
14 | 14 | * [`ogmios-datum-cache`](#-ogmios-datum-cache-) |
@@ -52,6 +52,37 @@ $ mkdir -p data/cardano-node/cardano-node-data |
52 | 52 | $ cp -r /path/to/old/db data/cardano-node/cardano-node-data/. |
53 | 53 | ``` |
54 | 54 |
|
| 55 | +### Start services |
| 56 | + |
| 57 | +```shell |
| 58 | +$ ./buildFrontend.sh |
| 59 | +$ arion up |
| 60 | +``` |
| 61 | + |
| 62 | +Please note that `arion up` will require a full cardano node to sync, which can take some time. At time of writing (April, 2022), the current tip is at slot 56000000 and counting. |
| 63 | + |
| 64 | +Once the chain is synced, you should be able to view the dApp UI from `localhost:8080` |
| 65 | + |
| 66 | +Ensure that Nami is set to Testnet, that you have some Test Ada, and that you've set collateral in Nami. |
| 67 | + |
| 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 | + |
55 | 86 | ### Optional: Mint your own NFTs |
56 | 87 |
|
57 | 88 | This process will be simplified in the future. |
@@ -121,36 +152,6 @@ $ cd ../cardano-transaction-lib |
121 | 152 | $ # Replace value of "mintingPolicy1" in seabug_contracts/MintingPolicy.js with policy noted from BPI |
122 | 153 | ``` |
123 | 154 |
|
124 | | -### Start services |
125 | | - |
126 | | -```shell |
127 | | -$ ./buildFrontend.sh |
128 | | -$ arion up |
129 | | -``` |
130 | | - |
131 | | -please note that `arion up` will require a full cardano node to sync, which can take some time. At time of writing (April, 2022), the current tip is at slot 56000000 and counting. |
132 | | - |
133 | | -Once the chain is synced, you should be able to view the dApp UI from `localhost:8080` |
134 | | - |
135 | | -Ensure that Nami is set to Testnet, that you have some Test Ada, and that you've set collateral in Nami. |
136 | | - |
137 | | - |
138 | | -### Start ogmios-datum-cache block fetcher |
139 | | - |
140 | | -```shell |
141 | | -$ curl --location --request POST 'localhost:9999/control/fetch_blocks' -i\ |
142 | | - --header 'Content-Type: application/json' \ |
143 | | - --data-raw ' |
144 | | - { |
145 | | - "slot": 44366242, |
146 | | - "id": "d2a4249fe3d0607535daa26caf12a38da2233586bc51e79ed0b3a36170471bf5" |
147 | | - } |
148 | | - ' |
149 | | -``` |
150 | | - |
151 | | -Detailed block fetcher api is described [here](https://github.com/mlabs-haskell/ogmios-datum-cache/tree/9e8bcbe00f88715afdb202cd9654ec2adc72c09e#control-api). |
152 | | - |
153 | | - |
154 | 155 | ## Components |
155 | 156 |
|
156 | 157 | ### `nft-marketplace` |
|
0 commit comments