fix: update keybaseId to keybaseUsername
This commit is contained in:
parent
408e8e7500
commit
f46faee251
|
@ -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 {
|
||||||
|
|
|
@ -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?',
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue