Skip to content

Commit

Permalink
convert the rest
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Jan 8, 2025
1 parent 15cbdec commit f1a9ddd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ export type SimulatedTransactionAccountInfo = {
/** Optional data assigned to the account */
data: string[];
/** Optional rent epoch info for account */
rentEpoch?: number;
rentEpoch?: bigint;
};

export type TransactionReturnDataEncoding = 'base64';
Expand Down Expand Up @@ -1009,7 +1009,7 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(
owner: string(),
lamports: number(),
data: array(string()),
rentEpoch: optional(number()),
rentEpoch: optional(bigint()),
}),
),
),
Expand Down Expand Up @@ -1873,7 +1873,7 @@ const GetTokenAccountsByOwner = jsonRpcResultAndContext(
owner: PublicKeyFromString,
lamports: number(),
data: BufferFromRawAccountData,
rentEpoch: number(),
rentEpoch: bigint(),
}),
}),
),
Expand All @@ -1897,7 +1897,7 @@ const GetParsedTokenAccountsByOwner = jsonRpcResultAndContext(
owner: PublicKeyFromString,
lamports: number(),
data: ParsedAccountDataResult,
rentEpoch: number(),
rentEpoch: bigint(),
}),
}),
),
Expand Down Expand Up @@ -1962,7 +1962,7 @@ const ParsedAccountInfoResult = pick({
owner: PublicKeyFromString,
lamports: number(),
data: ParsedOrRawAccountData,
rentEpoch: number(),
rentEpoch: bigint(),
});

const KeyedParsedAccountInfoResult = pick({
Expand Down Expand Up @@ -2880,7 +2880,7 @@ export type AccountInfo<T> = {
/** Optional data assigned to the account */
data: T;
/** Optional rent epoch info for account */
rentEpoch?: number;
rentEpoch?: bigint;
};

/**
Expand Down

0 comments on commit f1a9ddd

Please sign in to comment.