|
8 | 8 | * [Optional: Copy testnet node database](#optional--copy-testnet-node-database)
|
9 | 9 | * [Start services](#start-services)
|
10 | 10 | * [Optional: Mint your own NFTs](#optional--mint-your-own-nfts)
|
| 11 | +- [Maintenance](#maintenance) |
| 12 | + * [Updating dependencies](#updating-dependencies) |
| 13 | + * [Targeting different networks](#targeting-different-networks) |
| 14 | + * [Adding new off-chain contracts](#adding-new-off-chain-contracts) |
| 15 | + * [Known errors](#known-errors) |
11 | 16 | - [Components](#components)
|
12 | 17 | * [`nft-marketplace`](#-nft-marketplace-)
|
13 | 18 | * [`ogmios-datum-cache`](#-ogmios-datum-cache-)
|
|
25 | 30 | - arion - Provided by devshell
|
26 | 31 | - [docker](https://docs.docker.com/get-docker/)
|
27 | 32 | - [nami wallet](https://namiwallet.io/) installed as browser extension
|
28 |
| -- Funds in wallet obtained from [faucet](https://testnets.cardano.org/en/testnets/cardano/tools/faucet/) |
| 33 | +- Funds in wallet obtained from [faucet](https://faucet.preview.world.dev.cardano.org/basic-faucet) |
29 | 34 |
|
30 | 35 | ## Usage
|
31 | 36 |
|
@@ -68,7 +73,7 @@ Please note that `arion up` will require a full cardano node to sync, which can
|
68 | 73 |
|
69 | 74 | Once the chain is synced, you should be able to view the dApp UI from `localhost:8080`
|
70 | 75 |
|
71 |
| -Ensure that Nami is set to Testnet, that you have some Test Ada, and that you've set collateral in Nami. |
| 76 | +Ensure that Nami is set to Preview, that you have some Test Ada (see [the faucet](https://faucet.preview.world.dev.cardano.org/basic-faucet)), and that you've set collateral in Nami. |
72 | 77 |
|
73 | 78 | ### Optional: Mint your own NFTs
|
74 | 79 |
|
@@ -98,6 +103,37 @@ DESC: Description
|
98 | 103 |
|
99 | 104 | The `IPFS Base36 CID` value can be used to continue the minting process.
|
100 | 105 |
|
| 106 | +## Maintenance |
| 107 | + |
| 108 | +### Updating dependencies |
| 109 | + |
| 110 | +- CTL: see [the docs](https://github.com/Plutonomicon/cardano-transaction-lib/blob/develop/doc/ctl-as-dependency.md) |
| 111 | +- Submodules: assuming submodules have been setup locally ([see docs](https://git-scm.com/book/en/v2/Git-Tools-Submodules)), just change to the new commit in the submodule, then stage and commit in the main `seabug` repo. |
| 112 | +- Purescript/JavaScript dependencies: these are managed in the submodules through the standard package management systems for the languages. For submodules using CTL (`seabug-contracts`), just be sure to follow the CTL docs to avoid conflicts in dependencies |
| 113 | +- Haskell dependencies: managed in [nix flakes](https://nixos.wiki/wiki/Flakes) |
| 114 | +- Runtime dependencies: also managed by flakes and [Arion](https://docs.hercules-ci.com/arion/) |
| 115 | + |
| 116 | +### Targeting different networks |
| 117 | + |
| 118 | +See [this PR](https://github.com/mlabs-haskell/seabug/pull/25) as an example of switching to the preview network. The general steps are: |
| 119 | + |
| 120 | +- Update the [network in arion-compose.nix](https://github.com/mlabs-haskell/seabug/blob/68cdadfcd364076be467fe2dd2de4c06d35d4f3b/arion-compose.nix#L13-16) |
| 121 | +- Make a blockfrost project pointing to the correct network, and update the blockfrost project ids throughout the project |
| 122 | +- Update the network ids throughout the project |
| 123 | +- Update the blockfrost api url in `seabug-contracts` |
| 124 | + |
| 125 | +### Adding new off-chain contracts |
| 126 | + |
| 127 | +See the [CTL docs](https://github.com/Plutonomicon/cardano-transaction-lib/tree/develop/doc). Off-chain contracts are stored in the `seabug-contracts` submodule. |
| 128 | + |
| 129 | +### Known errors |
| 130 | + |
| 131 | +> WebSocket connection to ws://localho.st:9999/ws failed: WebSocket is closed before the connection is established |
| 132 | +> Error: [object Object] |
| 133 | +> at push.../seabug-contracts/output.js.exports.error |
| 134 | +
|
| 135 | +Try waiting a bit and reloading the page. Likely just ODC needing some time to start up. |
| 136 | + |
101 | 137 | ## Components
|
102 | 138 |
|
103 | 139 | ### `nft-marketplace`
|
|
0 commit comments