Skip to content

Commit 782f4b5

Browse files
authored
Cleanup old JIP-5 account page (#61)
- **Cleanup dev account pre-jip5 stuff** - **update yarn deps** --------- Signed-off-by: Oliver Tale-Yazdi <oliver@tasty.limo>
1 parent 53952fb commit 782f4b5

10 files changed

Lines changed: 1053 additions & 1511 deletions

File tree

docs/knowledge/advanced/rpc/jip2-gav.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_position: 1
66
slug: /advanced/rpc/jip2-node-rpc
77
---
88

9-
(source https://hackmd.io/@polkadot/jip2 from 2025-06-21)
9+
(source https://hackmd.io/@polkadot/jip2 from 2025-09-19)
1010

1111
<!-- The raw MD from above will be downloaded and appended -->
1212
# JIP-2: Node RPC

docs/knowledge/advanced/simple-networking/spec.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_label: Spec
44
sidebar_position: 1
55
---
66

7-
(source https://github.com/zdave-parity/jam-np/blob/main/simple.md from 2025-06-21)
7+
(source https://github.com/zdave-parity/jam-np/blob/main/simple.md from 2025-09-19)
88

99
<!-- The raw MD from above will be downloaded and appended -->
1010
# JAM Simple Networking Protocol (JAMNP-S)
@@ -252,7 +252,10 @@ There are two types of request:
252252
- Descending inclusive: The sequence of blocks in the response should start with the given block,
253253
followed by its parent, grandparent, and so on.
254254

255-
The number of blocks in the response should be limited to the given maximum.
255+
The number of blocks in the response should be limited to the given maximum. The response should
256+
not contain blocks which, from the responding node's perspective, cannot be finalized. If it is not
257+
possible to satisfy the request with this constraint (for example, because a block which cannot be
258+
finalized is explicitly requested), the stream should simply be reset/stopped.
256259

257260
```
258261
Direction = 0 (Ascending exclusive) OR 1 (Descending inclusive) (Single byte)

docs/knowledge/basics/dev-accounts.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
11
---
2-
id: Dev Accounts (JIP-5)
3-
sidebar_label: Dev Accounts (JIP-5)
2+
id: Dev Accounts
3+
sidebar_label: Dev Accounts
44
sidebar_position: 1
55
slug: /basics/dev-accounts
66
---
77

8-
These well known accounts can be used for testing and are known by all JAM node implementations.
9-
10-
:::warning
11-
This page is assumes that [JIP-5@7048f79](https://github.com/polkadot-fellows/JIPs/pull/2) is accepted. The pre-JIP-5 version is available [here](../../old/dev-accounts-pre-jip5.md).
12-
:::
8+
The well known accounts can be used for testing and are known by all JAM implementations.
9+
The values are specified by [JIP-5](https://github.com/polkadot-fellows/JIPs/pull/2).
1310

1411
## Seeds
1512

16-
The 256 bit seeds for the dev accounts are generated by encoding the index of the validator as unsigned 32-bit little endian integer and repeating that sequence of bits 8 times. You should *not hash* these seeds - otherwise the created accounts will be different.
17-
18-
With the following indices for the accounts:
13+
The 256 bit seeds for the dev accounts are generated by encoding the index of the validator as unsigned 32-bit little endian integer and repeating that sequence of bits 8 times. You should not hash these seeds, otherwise the created accounts will be different.
1914

20-
| Name | Index |
21-
|--------|-------|
22-
| Alice | 0 |
23-
| Bob | 1 |
24-
| Carol | 2 |
25-
| David | 3 |
26-
| Eve | 4 |
27-
| Fergie | 5 |
15+
There are $2^{32}$ dev seeds in total, but only the first six have canonical names:
16+
- **0** Alice
17+
- **1** Bob
18+
- **2** Carol
19+
- **3** David
20+
- **4** Eve
21+
- **5** Fergie
2822

2923
## Bandersnatch Nomenclature
3024

@@ -100,7 +94,7 @@ dns_alt_name: "elfaiiixcuzmzroa34lajwp52cdsucikaxdviaoeuvnygdi3imtba"
10094
10195
<details>
10296
103-
<summary>Yaml File</summary>
97+
<summary>All In One YAML</summary>
10498
10599
```yaml
106100
Alice:
@@ -153,5 +147,3 @@ Fergie:
153147
```
154148
155149
</details>
156-
157-
... there are 2^32 dev accounts in total that continue in the same pattern but are unnamed.

docs/knowledge/basics/genesis-config.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
---
2-
id: Genesis Config (JIP-5)
3-
sidebar_label: Genesis Config (JIP-5)
2+
id: Genesis Config
3+
sidebar_label: Genesis Config
44
sidebar_position: 2
55
slug: /basics/genesis-config
66
---
77

88
The genesis config provides the initial values that are needed by all nodes to start the JAM chain. Each field is explained below.
99

10-
:::warning
11-
This page is assumes that [JIP-5@7048f79](https://github.com/polkadot-fellows/JIPs/pull/2) is accepted. The pre-JIP-5 version is available [here](../../old/genesis-config-pre-jip5.md).
12-
:::
13-
1410
## Authorities
1511

1612
A list of Validator Key Tuples, called $\mathbb{K}$ in the Graypaper. This defines the validators that are permissioned to seal blocks for the current epoch. The accounts are the [Dev Accounts](./dev-accounts.md).

docs/knowledge/testing/pvm/host-call-log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_label: Log Host Call
44
sidebar_position: 1
55
---
66

7-
(source https://hackmd.io/@polkadot/jip1 from 2025-06-21)
7+
(source https://hackmd.io/@polkadot/jip1 from 2025-09-19)
88

99
<!-- The raw MD from above will be downloaded and appended -->
1010
# JIP-1: Debug message host call

docs/old/dev-accounts-pre-jip5.md

Lines changed: 0 additions & 139 deletions
This file was deleted.

docs/old/genesis-config-pre-jip5.md

Lines changed: 0 additions & 103 deletions
This file was deleted.

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ dev:
55

66
build:
77
sh build.sh
8+
9+
update:
10+
yarn upgrade --latest

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@
1717
"convert-yaml": "node scripts/yml-to-md.js"
1818
},
1919
"dependencies": {
20-
"@docusaurus/core": "3.7.0",
21-
"@docusaurus/preset-classic": "3.7.0",
22-
"@mdx-js/react": "^3.0.0",
20+
"@docusaurus/core": "3.8.1",
21+
"@docusaurus/preset-classic": "3.8.1",
22+
"@mdx-js/react": "^3.1.1",
2323
"clsx": "^2.0.0",
2424
"prism-react-renderer": "^2.3.0",
25-
"react": "^19.1.0",
26-
"react-dom": "^19.1.0",
25+
"react": "^19.1.1",
26+
"react-dom": "^19.1.1",
2727
"rehype-katex": "^7.0.1",
2828
"remark-math": "^6.0.0"
2929
},
3030
"devDependencies": {
31-
"@docusaurus/module-type-aliases": "3.7.0",
32-
"@docusaurus/tsconfig": "3.7.0",
33-
"@docusaurus/types": "3.7.0",
34-
"typescript": "~5.8.3"
31+
"@docusaurus/module-type-aliases": "3.8.1",
32+
"@docusaurus/tsconfig": "3.8.1",
33+
"@docusaurus/types": "3.8.1",
34+
"typescript": "~5.9.2"
3535
},
3636
"browserslist": {
3737
"production": [

0 commit comments

Comments
 (0)