@@ -4,6 +4,13 @@ Calamar is a block explorer for Polkadot, Kusama and their parachains. The explo
4
4
5
5
This app is based on [ Create React App] ( https://facebook.github.io/create-react-app/docs/getting-started ) .
6
6
7
+ > [ !WARNING]
8
+ > Since January 31, Calamar and its data source can only be ** self-hosted** .
9
+ > This is following the deprecation of Firesquid archives and its resulting effect on Giant Squid.
10
+ > We apologize for any inconvenience.
11
+ >
12
+ > To setup data sources follow this guide.
13
+
7
14
## Setup
8
15
9
16
Clone the repo and install the NPM dependencies.
@@ -14,6 +21,30 @@ $ cd calamar
14
21
$ npm install
15
22
```
16
23
24
+ Edit ` src/networks.json ` and configure your network and its data source's endpoints.
25
+
26
+ <details >
27
+ <summary>Network configuration structure</summary>
28
+
29
+ - ** name** : network identificator used in url's etc (required, ` "polkadot" ` )
30
+ - ** displayName** : name of the network to be displayed in the app (required, ` "Polkadot" ` )
31
+ - ** icon** : path to icon asset (required, e.g. ` "/assets/network-icons/polkadot.svg" ` )
32
+ - ** color** : color associated with the network (optional, e.g. ` "#e6007a" ` )
33
+ - ** website** : website of the network (optional, e.g. ` "https://polkadot.network/" ` )
34
+ - ** parachainId** : id of the parachaing (optional, e.g. ` 0 ` )
35
+ - ** relayChain** : ` name ` of relay chain network (optional, e.g. ` "polkadot" ` )
36
+ - ** prefix** : SS58 prefix (required, e.g. ` 0 ` )
37
+ - ** decimals** : number of decimal for the network's symbol (required, e.g. ` 10 ` )
38
+ - ** symbol** : network's symbol (required, ` "DOT" ` )
39
+ - ** squids** :
40
+ - **archive**: GraphQL API explorer of the Firesquid archive (required, e.g. `"https://polkadot.explorer.subsquid.io/graphql"`)
41
+ - **explorer**: GiantSquid explorer squid (optional, but highly recommended, e.g. `"https://squid.subsquid.io/gs-explorer-polkadot/graphql"`)
42
+ - **main**: GiantSquid main squid (optional, e.g. `"https://squid.subsquid.io/gs-main-polkadot/graphql"`)
43
+ - **identites**: GiantSquid main squid if it contains indentity data (optional, e.g. `"https://squid.subsquid.io/gs-main-polkadot/graphql"`)
44
+ - **stats**: GianSquid stats squid (optional, e.g. `"https://squid.subsquid.io/gs-stats-polkadot/graphql"`)
45
+ - ** coinGeckoId** : CoinGecko network ID to fetch USD values (optional, ` "polkadot" ` )
46
+ </details >
47
+
17
48
## Run locally
18
49
19
50
To start the application locally, run the command
0 commit comments