Skip to content

Commit

Permalink
Merge pull request polkascan#27 from polkascan/ksm-referendum-83
Browse files Browse the repository at this point in the history
Ksm referendum 83
  • Loading branch information
Kriekkop authored Jul 10, 2023
2 parents b474c77 + 13cbc62 commit 30d2d5e
Show file tree
Hide file tree
Showing 184 changed files with 9,723 additions and 7,997 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ RUN cd projects/polkascan-explorer && npm i
COPY polkadapt/projects/coingecko/package.json projects/coingecko/package.json
RUN cd projects/coingecko && npm i

COPY polkadapt/projects/subsquid/package.json projects/subsquid/package.json
RUN cd projects/subsquid && npm i

# Copy the rest of the files and build all PolkADAPT libraries.

COPY polkadapt .
RUN npm exec ng build -- --configuration production substrate-rpc
RUN npm exec ng build -- --configuration production polkascan-explorer
RUN npm exec ng build -- --configuration production coingecko
RUN npm exec ng build -- --configuration production subsquid

# Install the application dependencies.

Expand Down
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,38 @@ You will need to add a file named `config.json` in `src/assets/`. This file cont

The order in which the networks are shown in the UI is also based on this configuration. It is advised to add multiple endpoints for fallback and custom switching capabilities.

Explorer UI can run on the Polkacan Explorer API or Subsquid. Or both.
Make sure that 'explorerWsUrlArray' and/or 'subsquid' is added to your networks.

```shell
{
"polkadot": {
"substrateRpcUrlArray": ["wss://rpc.polkadot.io"],
"explorerWsUrlArray": ["wss://mycustomnode.io/polkadot"]
"explorerWsUrlArray": ["wss://mycustomnode.io/polkadot"],
"coingecko": {
"coinId": "polkadot"
},
"subsquid": {
"archiveUrl": "https://polkadot.explorer.subsquid.io/graphql",
"explorerUrl": "https://squid.subsquid.io/polkadot-explorer/graphql",
"giantSquidExplorerUrl": "https://squid.subsquid.io/gs-explorer-polkadot/graphql",
"giantSquidMainUrl": "https://squid.subsquid.io/gs-main-polkadot/graphql",
"balancesUrl": "https://squid.subsquid.io/polkadot-balances/graphql"
}
},
"kusama": {
"substrateRpcUrlArray": ["wss://kusama-rpc.polkadot.io", "wss://other-kusama-node.io"],
"explorerWsUrlArray": ["wss://mycustomnode.io/kusama"]
"explorerWsUrlArray": ["wss://mycustomnode.io/kusama"],
"coingecko": {
"coinId": "kusama"
},
"subsquid": {
"archiveUrl": "https://kusama.explorer.subsquid.io/graphql",
"explorerUrl": "https://squid.subsquid.io/kusama-explorer/graphql",
"giantSquidExplorerUrl": "https://squid.subsquid.io/gs-explorer-kusama/graphql",
"giantSquidMainUrl": "https://squid.subsquid.io/gs-main-kusama/graphql",
"balancesUrl": "https://squid.subsquid.io/kusama-balances/graphql"
}
}
}
```
Expand Down
4 changes: 1 addition & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"path": ".cache",
"environment": "all"
},
"defaultCollection": "@angular-eslint/schematics",
"analytics": false
},
"projects": {
Expand Down Expand Up @@ -128,6 +127,5 @@
}
}
}
},
"defaultProject": "explorer-ui"
}
}
2 changes: 1 addition & 1 deletion e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Polkascan Explorer UI
* Copyright (C) 2018-2022 Polkascan Foundation (NL)
* Copyright (C) 2018-2023 Polkascan Foundation (NL)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/app.po.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Polkascan Explorer UI
* Copyright (C) 2018-2022 Polkascan Foundation (NL)
* Copyright (C) 2018-2023 Polkascan Foundation (NL)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
Loading

0 comments on commit 30d2d5e

Please sign in to comment.