fix: add space to ParsedAccountData (#11521)
This commit is contained in:
parent
9290e561e1
commit
5f05086ed6
|
@ -185,6 +185,7 @@ declare module '@solana/web3.js' {
|
|||
export type ParsedAccountData = {
|
||||
program: string;
|
||||
parsed: any;
|
||||
space: number;
|
||||
};
|
||||
|
||||
export type KeyedAccountInfo = {
|
||||
|
|
|
@ -174,6 +174,7 @@ declare module '@solana/web3.js' {
|
|||
declare export type ParsedAccountData = {
|
||||
program: string,
|
||||
parsed: any,
|
||||
space: number,
|
||||
};
|
||||
|
||||
declare export type ParsedMessageAccount = {
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue