Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
1bb41eb
Make it clear that settings apply only to list view
cmichi Mar 19, 2019
138b4af
Add Jdenticon
cmichi Mar 21, 2019
8c26dc8
Add Grandpa consensus visualisation
cmichi Apr 3, 2019
3c830af
Remove fade-in animation
cmichi Apr 4, 2019
c570cbc
Update packages and yarn.lock
cmichi Apr 4, 2019
e4de35c
Broadcast only delta of what changed
cmichi Apr 6, 2019
1e824c7
Minor code improvements
cmichi Apr 7, 2019
a7ba531
Use NodeId instead of Address in first dimension
cmichi Apr 8, 2019
672a33f
Refactoring and improving naming
cmichi Apr 8, 2019
e4b4916
Display boxes only after size has been detected
cmichi Apr 8, 2019
b2253e0
Fix cache
cmichi Apr 8, 2019
a3e9f06
Send consensus info on first subscribe
cmichi Apr 8, 2019
4b5505b
Increase cache size
cmichi Apr 8, 2019
5c48daa
Send deltas only if block in cache
cmichi Apr 8, 2019
0623e5b
Adjust cache size
cmichi Apr 8, 2019
064506a
Make cache sizes dependent
cmichi Apr 8, 2019
bde604a
Ensure authority caches are aligned
cmichi Apr 8, 2019
5b590ba
Extract function
cmichi Apr 10, 2019
062866a
Handle restarts on authority set changes properly
cmichi Apr 10, 2019
a569f54
Fix backfill mechanism
cmichi Apr 10, 2019
003aace
Display only blocks since last authority set change
cmichi Apr 10, 2019
b3d3507
Handle authority set sent on connect
cmichi Apr 12, 2019
03b3ae4
Introduce Authority type
cmichi Apr 12, 2019
fdc86c5
Handle corner case
cmichi Apr 15, 2019
b8d689b
Display placeholder if name not yet available
cmichi Apr 15, 2019
0a0acce
Replace with camelCase
cmichi Apr 23, 2019
23c254e
Replace with correct types
cmichi May 6, 2019
44bf2a5
Replace grandpa icon
cmichi May 6, 2019
3a4ea63
Merge branch 'master' into cmichi-display-state-of-consensus
maciejhirsz May 6, 2019
3a6427a
Change consensus icon to cube (finalized block icon)
cmichi May 13, 2019
bf4d9ea
Upgrade dependencies
cmichi May 15, 2019
7040545
Implement thin backend instead of thick
cmichi May 15, 2019
ca5d29b
Cleanup and minor improvements
cmichi May 16, 2019
0bc61dc
Minor refactoring
cmichi May 16, 2019
019d1f5
Extract common code into function
cmichi May 16, 2019
ed429c6
Switch module to class
cmichi May 16, 2019
6fe140a
Remove unused code
cmichi May 16, 2019
4e73e8f
Clean markup
cmichi May 16, 2019
5e0dbdf
Remove unused code
cmichi May 16, 2019
174eba4
Revert "Upgrade dependencies"
cmichi May 19, 2019
0da0c44
Update polkadot-identicon in frontend
cmichi May 19, 2019
64d08c3
Run yarn install
cmichi May 19, 2019
acd1218
Update react-measure to 2.3.0
cmichi May 19, 2019
f198278
Improve typing by introducing partial type
cmichi May 19, 2019
5da7937
Reduce indexing operations
cmichi May 19, 2019
b02f72d
Shorten function
cmichi May 19, 2019
12fd5c9
Shorten function
cmichi May 19, 2019
770b10f
Introduce initialiseConsensusViewByRef
cmichi May 19, 2019
0bafe84
Remove dead conditional branch
cmichi May 19, 2019
bce0576
Return consensusView ref from initialiseConsensusView
cmichi May 19, 2019
44863a5
Handle consensusView ref returned from initialiseConsensusView
cmichi May 20, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace with correct types
  • Loading branch information
cmichi committed May 6, 2019
commit 23c254e174f2c04e33913da38e2859bb70f18809
12 changes: 3 additions & 9 deletions packages/common/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,9 @@ export declare type Authority = {
};
export declare type Authorities = Array<Address>;
export declare type AuthoritySetId = Opaque<number, 'AuthoritySetId'>;
export declare type ConsensusInfo = {
BlockNumber: ConsensusView;
};
export declare type ConsensusView = {
NodeId: ConsensusState;
};
export declare type ConsensusState = {
Address: ConsensusDetail;
};
export declare type ConsensusInfo = Map<BlockNumber, ConsensusView>;
export declare type ConsensusView = Map<NodeId, ConsensusState>;
export declare type ConsensusState = Map<Address, ConsensusDetail>;
export declare type ConsensusDetail = {
Precommit: Precommit;
ImplicitPrecommit: ImplicitPrecommit;
Expand Down