From f46faee2511d96d021aeecea63f3e956703ec07b Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Thu, 18 Jul 2019 09:40:34 -0600 Subject: [PATCH] fix: update keybaseId to keybaseUsername --- web3.js/module.flow.js | 2 +- web3.js/src/validator-info.js | 6 +++--- web3.js/test/validator-info.test.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js index 6dea28ee42..50c6f4e430 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -147,7 +147,7 @@ declare module '@solana/web3.js' { name: string, website?: string, details?: string, - keybaseId?: string, + keybaseUsername?: string, |}; declare export class ValidatorInfo { diff --git a/web3.js/src/validator-info.js b/web3.js/src/validator-info.js index 18709a8b3f..0b2a0107a4 100644 --- a/web3.js/src/validator-info.js +++ b/web3.js/src/validator-info.js @@ -25,20 +25,20 @@ type ConfigKey = {| * @property {string} name validator name * @property {?string} website optional, validator website * @property {?string} details optional, extra information the validator chose to share - * @property {?string} keybaseId optional, used to identify validators on keybase.io + * @property {?string} keybaseUsername optional, used to identify validators on keybase.io */ export type Info = {| name: string, website?: string, details?: string, - keybaseId?: string, + keybaseUsername?: string, |}; const InfoString = struct({ name: 'string', website: 'string?', details: 'string?', - keybaseId: 'string?', + keybaseUsername: 'string?', }); /** diff --git a/web3.js/test/validator-info.test.js b/web3.js/test/validator-info.test.js index a48694991c..8cb966311b 100644 --- a/web3.js/test/validator-info.test.js +++ b/web3.js/test/validator-info.test.js @@ -13,7 +13,7 @@ test('from config account data', () => { new PublicKey(keypair.publicKey), { name: 'Validator', - keybaseId: 'validator_id', + keybaseUsername: 'validator_id', }, ); @@ -27,7 +27,7 @@ test('from config account data', () => { // 4) Use modified `solana-validator-info` tool to publish validator info // 5) And then use it again to fetch the data! (feel free to trim some A's) const configData = Buffer.from( - 'AgdRlwF0SPKsXcI8nrx6x4wKJyV6xhRFjeCk8W+AAAAAABOY9ixtGkV8UbpqS189vS9p/KkyFiGNyJl+QWvRfZPKAS8AAAAAAAAAeyJrZXliYXNlSWQiOiJ2YWxpZGF0b3JfaWQiLCJuYW1lIjoiVmFsaWRhdG9yIn0', + 'AgdRlwF0SPKsXcI8nrx6x4wKJyV6xhRFjeCk8W+AAAAAABOY9ixtGkV8UbpqS189vS9p/KkyFiGNyJl+QWvRfZPKATUAAAAAAAAAeyJrZXliYXNlVXNlcm5hbWUiOiJ2YWxpZGF0b3JfaWQiLCJuYW1lIjoiVmFsaWRhdG9yIn0', 'base64', ); const info = ValidatorInfo.fromConfigData(configData);