fix: update keybaseId to keybaseUsername

This commit is contained in:
Tyera Eulberg 2019-07-18 09:40:34 -06:00 committed by Michael Vines
parent 408e8e7500
commit f46faee251
3 changed files with 6 additions and 6 deletions

View File

@ -147,7 +147,7 @@ declare module '@solana/web3.js' {
name: string, name: string,
website?: string, website?: string,
details?: string, details?: string,
keybaseId?: string, keybaseUsername?: string,
|}; |};
declare export class ValidatorInfo { declare export class ValidatorInfo {

View File

@ -25,20 +25,20 @@ type ConfigKey = {|
* @property {string} name validator name * @property {string} name validator name
* @property {?string} website optional, validator website * @property {?string} website optional, validator website
* @property {?string} details optional, extra information the validator chose to share * @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 = {| export type Info = {|
name: string, name: string,
website?: string, website?: string,
details?: string, details?: string,
keybaseId?: string, keybaseUsername?: string,
|}; |};
const InfoString = struct({ const InfoString = struct({
name: 'string', name: 'string',
website: 'string?', website: 'string?',
details: 'string?', details: 'string?',
keybaseId: 'string?', keybaseUsername: 'string?',
}); });
/** /**

View File

@ -13,7 +13,7 @@ test('from config account data', () => {
new PublicKey(keypair.publicKey), new PublicKey(keypair.publicKey),
{ {
name: 'Validator', 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 // 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) // 5) And then use it again to fetch the data! (feel free to trim some A's)
const configData = Buffer.from( const configData = Buffer.from(
'AgdRlwF0SPKsXcI8nrx6x4wKJyV6xhRFjeCk8W+AAAAAABOY9ixtGkV8UbpqS189vS9p/KkyFiGNyJl+QWvRfZPKAS8AAAAAAAAAeyJrZXliYXNlSWQiOiJ2YWxpZGF0b3JfaWQiLCJuYW1lIjoiVmFsaWRhdG9yIn0', 'AgdRlwF0SPKsXcI8nrx6x4wKJyV6xhRFjeCk8W+AAAAAABOY9ixtGkV8UbpqS189vS9p/KkyFiGNyJl+QWvRfZPKATUAAAAAAAAAeyJrZXliYXNlVXNlcm5hbWUiOiJ2YWxpZGF0b3JfaWQiLCJuYW1lIjoiVmFsaWRhdG9yIn0',
'base64', 'base64',
); );
const info = ValidatorInfo.fromConfigData(configData); const info = ValidatorInfo.fromConfigData(configData);