fix: add space to ParsedAccountData (#11521)

This commit is contained in:
Tyera Eulberg 2020-08-11 21:44:28 -06:00 committed by GitHub
parent 9290e561e1
commit 5f05086ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

1
web3.js/module.d.ts vendored
View File

@ -185,6 +185,7 @@ declare module '@solana/web3.js' {
export type ParsedAccountData = {
program: string;
parsed: any;
space: number;
};
export type KeyedAccountInfo = {

View File

@ -174,6 +174,7 @@ declare module '@solana/web3.js' {
declare export type ParsedAccountData = {
program: string,
parsed: any,
space: number,
};
declare export type ParsedMessageAccount = {

View File

@ -712,6 +712,7 @@ const GetParsedTokenAccountsByOwner = jsonRpcResultAndContext(
data: struct.pick({
program: 'string',
parsed: 'any',
space: 'number',
}),
rentEpoch: 'number?',
}),
@ -776,6 +777,7 @@ const ParsedAccountInfoResult = struct.object({
struct.pick({
program: 'string',
parsed: 'any',
space: 'number',
}),
]),
rentEpoch: 'number?',
@ -1168,10 +1170,12 @@ type SlotInfo = {
* @typedef {Object} ParsedAccountData
* @property {string} program Name of the program that owns this account
* @property {any} parsed Parsed account data
* @property {number} space Space used by account data
*/
type ParsedAccountData = {
program: string,
parsed: any,
space: number,
};
/**