-
Notifications
You must be signed in to change notification settings - Fork 3
Validator UI Update #366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validator UI Update #366
Changes from all commits
193bcfe
1780d2e
2900667
d9885d9
1ec6348
7bc1261
5a2c3fd
56b92ea
f34cfd0
b3fedfb
c4829de
f3dd78a
106d976
a77a496
693975e
1a3de41
18c0ac8
7bae324
c34a82d
8efee2b
152679c
4c9277c
796f3b7
ca4dde2
c2be79a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 14 | ||
| 16 |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,15 +31,21 @@ const listeners = { | |
| "stop-proxy-router": handlers.stopProxyRouter, | ||
| "claim-faucet": handlers.claimFaucet, | ||
| 'get-private-key': handlers.getAddressAndPrivateKey, | ||
LumerinIO marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "get-marketplace-fee": handlers.getMarketplaceFee | ||
| "get-marketplace-fee": handlers.getMarketplaceFee, | ||
| 'get-validators': handlers.getValidators, | ||
| 'get-validators-minimal-stake': handlers.getValidatorsMinimalStake, | ||
| 'get-validators-register-stake': handlers.getValidatorsRegisterStake, | ||
| 'get-validator': handlers.getValidator, | ||
| 'register-validator': handlers.registerValidator, | ||
| 'deregister-validator': handlers.deregisterValidator, | ||
| }; | ||
|
|
||
| let coreListeners = {}; | ||
|
|
||
| // Subscribe to messages where only one particular core has to react | ||
| function subscribeSingleCore(core) { | ||
| coreListeners[core.chain] = {}; | ||
| Object.keys(listeners).forEach(function(key) { | ||
| Object.keys(listeners).forEach(function (key) { | ||
| coreListeners[core.chain][key] = withCore(core)(listeners[key]); | ||
|
Comment on lines
+48
to
49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The function if (listeners[key]) {
coreListeners[core.chain][key] = withCore(core)(listeners[key]);
} else {
console.error('Handler for ' + key + ' is undefined.');
} |
||
| }); | ||
abs2023 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.