Skip to content

Commit 177d280

Browse files
committed
apply changes for portal
1 parent 77e7533 commit 177d280

File tree

51 files changed

+99
-145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+99
-145
lines changed

.github/workflows/deploy.yml

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
deploy:
10+
permissions:
11+
contents: write
1012
runs-on: ubuntu-latest
1113

1214
steps:

.github/workflows/update.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Check updates
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '0 * * * *'
6+
- cron: '0 */2 * * *'
77

88
env:
99
BRANCH_PREFIX: sign-me
10-
NOTIFY_MATRIX: true
10+
NOTIFY_MATRIX: false
1111

1212
jobs:
1313
update:
@@ -41,8 +41,8 @@ jobs:
4141
- name: ⚙ Update QRs from RPC nodes
4242
run: cargo run --release -- update --source node
4343

44-
- name: ⚙ Update QRs from GitHub releases
45-
run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} cargo run --release -- update --source github
44+
# - name: ⚙ Update QRs from GitHub releases
45+
# run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} cargo run --release -- update --source github
4646

4747
- name: 📌 Commit changes if PR exists
4848
if: ${{ steps.checkout-pr.outputs.switched == 'true' }}

README.md

+12-1

config.toml

+7-123
Original file line numberDiff line numberDiff line change
@@ -3,130 +3,14 @@ public_dir = "public"
33
qr_dir = "public/qr"
44

55
[verifier]
6-
name = "Parity"
7-
public_key = "c46a22b9da19540a77cbde23197e5fd90485c72b4ecf3c599ecca6998f39bd57"
6+
name = "Local Metadata Signer"
7+
public_key = "ee6a7cd8146e9f02e4ae9f59908a5b513186e786696c6afe9644ff59bdbdbe7c"
88

99
[[chains]]
10-
name = "polkadot"
11-
rpc_endpoint = "wss://rpc.polkadot.io"
12-
color = "#e6007a"
10+
name = "node-subtensor"
11+
rpc_endpoint = "wss://lite.chain.opentensor.ai:443"
1312

1413
[chains.github_release]
15-
owner = "paritytech"
16-
repo = "polkadot"
17-
genesis_hash = "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"
18-
19-
[[chains]]
20-
name = "statemint"
21-
title = "Asset Hub"
22-
rpc_endpoint = "wss://polkadot-asset-hub-rpc.polkadot.io"
23-
color = "#86e62a"
24-
relay_chain = "polkadot"
25-
26-
[[chains]]
27-
name = "bridge-hub-polkadot"
28-
title = "Bridge Hub"
29-
rpc_endpoint = "wss://polkadot-bridge-hub-rpc.polkadot.io"
30-
relay_chain = "polkadot"
31-
32-
[[chains]]
33-
name = "collectives"
34-
title = "Collectives"
35-
rpc_endpoint = "wss://polkadot-collectives-rpc.polkadot.io"
36-
color = "#e6777a"
37-
relay_chain = "polkadot"
38-
39-
[[chains]]
40-
name = "people-polkadot"
41-
title = "People"
42-
rpc_endpoint = "wss://polkadot-people-rpc.polkadot.io"
43-
color = "#000000"
44-
relay_chain = "polkadot"
45-
46-
[[chains]]
47-
name = "kusama"
48-
rpc_endpoint = "wss://kusama-rpc.polkadot.io"
49-
color = "#000000"
50-
51-
[chains.github_release]
52-
owner = "paritytech"
53-
repo = "polkadot"
54-
genesis_hash = "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe"
55-
56-
[[chains]]
57-
name = "statemine"
58-
title = "Asset Hub"
59-
rpc_endpoint = "wss://kusama-asset-hub-rpc.polkadot.io"
60-
color = "#113911"
61-
relay_chain = "kusama"
62-
63-
[[chains]]
64-
name = "bridge-hub-kusama"
65-
title = "Bridge Hub"
66-
rpc_endpoint = "wss://kusama-bridge-hub-rpc.polkadot.io"
67-
relay_chain = "kusama"
68-
69-
[[chains]]
70-
name = "coretime-kusama"
71-
title = "Coretime"
72-
rpc_endpoint = "wss://kusama-coretime-rpc.polkadot.io"
73-
relay_chain = "kusama"
74-
75-
[[chains]]
76-
name = "encointer-parachain"
77-
title = "Encointer"
78-
rpc_endpoint = "wss://kusama.api.encointer.org"
79-
color = "#0000cc"
80-
relay_chain = "kusama"
81-
82-
[[chains]]
83-
name = "people-kusama"
84-
title = "People"
85-
rpc_endpoint = "wss://kusama-people-rpc.polkadot.io"
86-
color = "#000000"
87-
relay_chain = "kusama"
88-
89-
[[chains]]
90-
name = "westend"
91-
rpc_endpoint = "wss://westend-rpc.polkadot.io"
92-
color = "#f27230"
93-
94-
[chains.github_release]
95-
owner = "paritytech"
96-
repo = "polkadot"
97-
genesis_hash = "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
98-
99-
[[chains]]
100-
name = "westmint"
101-
title = "Asset Hub"
102-
rpc_endpoint = "wss://westend-asset-hub-rpc.polkadot.io"
103-
color = "#77bb77"
104-
relay_chain = "westend"
105-
106-
[[chains]]
107-
name = "bridge-hub-westend"
108-
title = "Bridge Hub"
109-
rpc_endpoint = "wss://westend-bridge-hub-rpc.polkadot.io"
110-
color = "#B878B4"
111-
relay_chain = "westend"
112-
113-
[[chains]]
114-
name = "collectives-westend"
115-
title = "Collectives"
116-
rpc_endpoint = "wss://westend-collectives-rpc.polkadot.io"
117-
color = "#e6777a"
118-
relay_chain = "westend"
119-
120-
[[chains]]
121-
name = "coretime-westend"
122-
title = "Coretime"
123-
rpc_endpoint = "wss://westend-coretime-rpc.polkadot.io"
124-
color = "#82B7B7"
125-
relay_chain = "westend"
126-
127-
[[chains]]
128-
name = "people-westend"
129-
title = "People"
130-
rpc_endpoint = "wss://westend-people-rpc.polkadot.io"
131-
color = "#0A672A"
132-
relay_chain = "westend"
14+
owner = "opentensor"
15+
repo = "subtensorv3"
16+
genesis_hash = "0x2f0555cc76fc2840a25a6ea3b9637146806f1f44b090c175ffde2a7e5ab36c03"

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "metadata-portal",
33
"version": "0.1.0",
4-
"homepage": "https://metadata.parity.io/",
4+
"homepage": "https://metadata.opentensor.ai/",
55
"private": true,
66
"dependencies": {
77
"@headlessui/react": "^1.7.10",
@@ -16,7 +16,7 @@
1616
"@types/react-dom": "^18.0.10",
1717
"husky": "^8.0.3",
1818
"lint-staged": "^13.1.1",
19-
"prettier": "^2.8.4",
19+
"prettier": "^3.0.3",
2020
"react": "^18.2.0",
2121
"react-dom": "^18.2.0",
2222
"react-router-dom": "^6.8.1",

public/CNAME

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
metadata.parity.io
1+
metadata.opentensor.ai

public/portals.json

+4
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66
"novasama": {
77
"name": "Novasama",
88
"url": "https://metadata.novasama.io/"
9+
},
10+
"opentensor": {
11+
"name": "OpenTensor Fdn",
12+
"url": "https://metadata.opentensor.ai/"
913
}
1014
}
Binary file not shown.
-6.12 KB
Binary file not shown.
Binary file not shown.
-6.03 KB
Binary file not shown.
Binary file not shown.
-6.05 KB
Binary file not shown.
Binary file not shown.
-5.52 KB
Binary file not shown.
-1.58 MB
Binary file not shown.

public/qr/kusama-statemine_specs.png

-5.45 KB
Binary file not shown.
-2.33 MB
Binary file not shown.

public/qr/kusama_specs.png

-2.6 KB
Binary file not shown.
Binary file not shown.
-6.14 KB
Binary file not shown.
Binary file not shown.
-5.55 KB
Binary file not shown.
Binary file not shown.
-6.2 KB
Binary file not shown.
Binary file not shown.
-5.28 KB
Binary file not shown.
-2.01 MB
Binary file not shown.

public/qr/polkadot_specs.png

-2.8 KB
Binary file not shown.
Binary file not shown.
3.55 KB
Binary file not shown.
-6.22 KB
Binary file not shown.
Binary file not shown.
-6.18 KB
Binary file not shown.
Binary file not shown.
-6.09 KB
Binary file not shown.
Binary file not shown.
-5.44 KB
Binary file not shown.
-1.76 MB
Binary file not shown.

public/qr/westend-westmint_specs.png

-5.29 KB
Binary file not shown.
-2.14 MB
Binary file not shown.

public/qr/westend_specs.png

-2.53 KB
Binary file not shown.

src/assets/icons/bittensor.svg

+24

src/components/FAQ.tsx

+17-3
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ export const FAQ = () => (
5858
<div className="pt-1">
5959
The first step is to locate the network that needs metadata
6060
updating in <strong className="font-bold">Parity</strong> or{" "}
61-
<strong className="font-bold">Novasama</strong>. Note: To
62-
navigate between the two portals, use the Metadata Portal
61+
<strong className="font-bold">Novasama</strong>, or{" "}
62+
<strong className="font-bold">OpenTensor</strong>. Note: To
63+
navigate between the three portals, use the Metadata Portal
6364
dropdown at the top of the page.
6465
</div>
6566
</li>
@@ -128,7 +129,7 @@ export const FAQ = () => (
128129
</Disclosure.Button>
129130
<Disclosure.Panel className="px-6 pt-0 pb-8 max-w-3xl">
130131
<p className="pb-4">
131-
Metadata about networks chain specs is stored in two places:
132+
Metadata about networks chain specs is stored in three places:
132133
</p>
133134
<ol className="space-y-2 pb-4">
134135
<li className="flex items-top">
@@ -157,6 +158,19 @@ export const FAQ = () => (
157158
for Parachains and Solochains
158159
</div>
159160
</li>
161+
<li className="flex items-top">
162+
<OrdinalNumber>3</OrdinalNumber>
163+
<div className="pt-1">
164+
<a
165+
href="https://metadata.opentensor.ai/#/"
166+
rel="noopener noreferrer"
167+
className="font-bold underline"
168+
>
169+
OpenTensor
170+
</a>{" "}
171+
for Bittensor (as signed by the OpenTensor Foundation)
172+
</div>
173+
</li>
160174
</ol>
161175
<p>
162176
If you cannot find the network you are looking for, contact the

src/components/Links.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
const LINKS = [
2-
["GitHub", "https://github.com/paritytech/metadata-portal"],
3-
["Terms of Service", "https://www.parity.io/terms/"],
4-
];
1+
const LINKS = [["GitHub", "https://github.com/opentensor/metadata-portal"]];
52

63
export const Links = () => {
74
return (

src/components/Network.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const Network = ({
4949

5050
const createGithubIssueLink = (
5151
<a
52-
href="https://github.com/paritytech/metadata-portal/issues/new"
52+
href="https://github.com/opentensor/metadata-portal/issues/new"
5353
className="block mt-10 font-extrabold"
5454
style={{
5555
color: `${spec.color}`,
@@ -69,7 +69,11 @@ export const Network = ({
6969
src={icon(chainPortalId)}
7070
className="w-14 h-14 rounded-full bg-neutral-200"
7171
/>
72-
<span>{formatTitle(spec.title)}</span>
72+
<span>
73+
{formatTitle(
74+
spec.title === "node-subtensor" ? "Bittensor" : spec.title,
75+
)}
76+
</span>
7377
</div>
7478
<Links />
7579
</div>
@@ -100,7 +104,7 @@ export const Network = ({
100104
{!metadataQr && (
101105
<div className="flex aspect-square text-center">
102106
<div className="m-auto">
103-
The metadata for {spec.title} Network is out of date.
107+
The metadata for {spec.title === "node-subtensor" ? "Bittensor" : spec.title} Network is out of date.
104108
Request the new metadata version by creating a Github
105109
issue.
106110
{createGithubIssueLink}

src/components/NetworkAndPortalSelectMobile.tsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ export const NetworkAndPortalSelectMobile = ({
8181
Selected Network
8282
</div>
8383
<div className="flex items-center justify-between w-full text-lg">
84-
<span>{formatTitle(chains[currentChain]?.title)}</span>
84+
{formatTitle(
85+
chains[currentChain]?.title === "node-subtensor"
86+
? "Bittensor"
87+
: chains[currentChain]?.title,
88+
)}
8589
<ChevronIcon />
8690
</div>
8791
</Listbox.Button>
@@ -104,7 +108,11 @@ export const NetworkAndPortalSelectMobile = ({
104108
>
105109
<img src={icon(chain)} className="w-8 rounded-full" />
106110
<div className="text-xl">
107-
{formatTitle(chains[chain].title)}
111+
{formatTitle(
112+
chains[chain].title === "node-subtensor"
113+
? "Bittensor"
114+
: chains[chain].title,
115+
)}
108116
</div>
109117
</div>
110118
)}

src/components/NetworkSelect.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ export const NetworkSelect = ({
4949
>
5050
<img src={icon(chain)} className="w-8 rounded-full" />
5151
<div className="text-lg">
52-
{formatTitle(chains[chain].title)}
52+
{formatTitle(
53+
chains[chain].title === "node-subtensor"
54+
? "Bittensor"
55+
: chains[chain].title,
56+
)}
5357
</div>
5458
</div>
5559
)}

0 commit comments

Comments
 (0)