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 = {
|
export type ParsedAccountData = {
|
||||||
program: string;
|
program: string;
|
||||||
parsed: any;
|
parsed: any;
|
||||||
|
space: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type KeyedAccountInfo = {
|
export type KeyedAccountInfo = {
|
||||||
|
|
|
@ -174,6 +174,7 @@ declare module '@solana/web3.js' {
|
||||||
declare export type ParsedAccountData = {
|
declare export type ParsedAccountData = {
|
||||||
program: string,
|
program: string,
|
||||||
parsed: any,
|
parsed: any,
|
||||||
|
space: number,
|
||||||
};
|
};
|
||||||
|
|
||||||
declare export type ParsedMessageAccount = {
|
declare export type ParsedMessageAccount = {
|
||||||
|
|
|
@ -712,6 +712,7 @@ const GetParsedTokenAccountsByOwner = jsonRpcResultAndContext(
|
||||||
data: struct.pick({
|
data: struct.pick({
|
||||||
program: 'string',
|
program: 'string',
|
||||||
parsed: 'any',
|
parsed: 'any',
|
||||||
|
space: 'number',
|
||||||
}),
|
}),
|
||||||
rentEpoch: 'number?',
|
rentEpoch: 'number?',
|
||||||
}),
|
}),
|
||||||
|
@ -776,6 +777,7 @@ const ParsedAccountInfoResult = struct.object({
|
||||||
struct.pick({
|
struct.pick({
|
||||||
program: 'string',
|
program: 'string',
|
||||||
parsed: 'any',
|
parsed: 'any',
|
||||||
|
space: 'number',
|
||||||
}),
|
}),
|
||||||
]),
|
]),
|
||||||
rentEpoch: 'number?',
|
rentEpoch: 'number?',
|
||||||
|
@ -1168,10 +1170,12 @@ type SlotInfo = {
|
||||||
* @typedef {Object} ParsedAccountData
|
* @typedef {Object} ParsedAccountData
|
||||||
* @property {string} program Name of the program that owns this account
|
* @property {string} program Name of the program that owns this account
|
||||||
* @property {any} parsed Parsed account data
|
* @property {any} parsed Parsed account data
|
||||||
|
* @property {number} space Space used by account data
|
||||||
*/
|
*/
|
||||||
type ParsedAccountData = {
|
type ParsedAccountData = {
|
||||||
program: string,
|
program: string,
|
||||||
parsed: any,
|
parsed: any,
|
||||||
|
space: number,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue