Skip to content

Commit

Permalink
refactor(experimental): remove UnixTimestamp from allowed numerical…
Browse files Browse the repository at this point in the history
… values (#3120)
  • Loading branch information
buffalojoec authored Aug 27, 2024
1 parent f897ee6 commit 4fa1723
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions packages/rpc-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ function getAllowedNumericKeypaths(): AllowedNumericKeypaths<RpcApi<SolanaRpcApi
memoizedKeypaths = {
getAccountInfo: jsonParsedAccountsConfigs.map(c => ['value', ...c]),
getBlock: [
['blockTime'],
['transactions', KEYPATH_WILDCARD, 'meta', 'preTokenBalances', KEYPATH_WILDCARD, 'accountIndex'],
[
'transactions',
Expand Down Expand Up @@ -236,7 +235,6 @@ function getAllowedNumericKeypaths(): AllowedNumericKeypaths<RpcApi<SolanaRpcApi
...messageConfig.map(c => ['transactions', KEYPATH_WILDCARD, 'transaction', 'message', ...c] as const),
['rewards', KEYPATH_WILDCARD, 'commission'],
],
getBlockTime: [[]],
getClusterNodes: [
[KEYPATH_WILDCARD, 'featureSet'],
[KEYPATH_WILDCARD, 'shredVersion'],
Expand Down
1 change: 0 additions & 1 deletion packages/rpc-subscriptions-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ function getAllowedNumericKeypaths(): AllowedNumericKeypaths<
memoizedKeypaths = {
accountNotifications: jsonParsedAccountsConfigs.map(c => ['value', ...c]),
blockNotifications: [
['value', 'block', 'blockTime'],
[
'value',
'block',
Expand Down

0 comments on commit 4fa1723

Please sign in to comment.