@solana/rpc-api 2.0.0-rc.0 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +8 -8
  2. package/dist/index.browser.cjs +2 -4
  3. package/dist/index.browser.cjs.map +1 -1
  4. package/dist/index.browser.mjs +4 -6
  5. package/dist/index.browser.mjs.map +1 -1
  6. package/dist/index.native.mjs +4 -6
  7. package/dist/index.native.mjs.map +1 -1
  8. package/dist/index.node.cjs +2 -4
  9. package/dist/index.node.cjs.map +1 -1
  10. package/dist/index.node.mjs +4 -6
  11. package/dist/index.node.mjs.map +1 -1
  12. package/dist/types/getAccountInfo.d.ts +2 -3
  13. package/dist/types/getAccountInfo.d.ts.map +1 -1
  14. package/dist/types/getBalance.d.ts +4 -5
  15. package/dist/types/getBalance.d.ts.map +1 -1
  16. package/dist/types/getBlock.d.ts +5 -6
  17. package/dist/types/getBlock.d.ts.map +1 -1
  18. package/dist/types/getBlockCommitment.d.ts +5 -6
  19. package/dist/types/getBlockCommitment.d.ts.map +1 -1
  20. package/dist/types/getBlockHeight.d.ts +4 -5
  21. package/dist/types/getBlockHeight.d.ts.map +1 -1
  22. package/dist/types/getBlockProduction.d.ts +5 -6
  23. package/dist/types/getBlockProduction.d.ts.map +1 -1
  24. package/dist/types/getBlockTime.d.ts +2 -3
  25. package/dist/types/getBlockTime.d.ts.map +1 -1
  26. package/dist/types/getBlocks.d.ts +2 -3
  27. package/dist/types/getBlocks.d.ts.map +1 -1
  28. package/dist/types/getBlocksWithLimit.d.ts +2 -3
  29. package/dist/types/getBlocksWithLimit.d.ts.map +1 -1
  30. package/dist/types/getClusterNodes.d.ts +16 -3
  31. package/dist/types/getClusterNodes.d.ts.map +1 -1
  32. package/dist/types/getEpochInfo.d.ts +8 -9
  33. package/dist/types/getEpochInfo.d.ts.map +1 -1
  34. package/dist/types/getEpochSchedule.d.ts +6 -8
  35. package/dist/types/getEpochSchedule.d.ts.map +1 -1
  36. package/dist/types/getFeeForMessage.d.ts +4 -5
  37. package/dist/types/getFeeForMessage.d.ts.map +1 -1
  38. package/dist/types/getFirstAvailableBlock.d.ts +2 -3
  39. package/dist/types/getFirstAvailableBlock.d.ts.map +1 -1
  40. package/dist/types/getGenesisHash.d.ts +2 -3
  41. package/dist/types/getGenesisHash.d.ts.map +1 -1
  42. package/dist/types/getHealth.d.ts +2 -3
  43. package/dist/types/getHealth.d.ts.map +1 -1
  44. package/dist/types/getHighestSnapshotSlot.d.ts +2 -3
  45. package/dist/types/getHighestSnapshotSlot.d.ts.map +1 -1
  46. package/dist/types/getIdentity.d.ts +2 -3
  47. package/dist/types/getIdentity.d.ts.map +1 -1
  48. package/dist/types/getInflationGovernor.d.ts +2 -3
  49. package/dist/types/getInflationGovernor.d.ts.map +1 -1
  50. package/dist/types/getInflationRate.d.ts +4 -5
  51. package/dist/types/getInflationRate.d.ts.map +1 -1
  52. package/dist/types/getInflationReward.d.ts +7 -8
  53. package/dist/types/getInflationReward.d.ts.map +1 -1
  54. package/dist/types/getLargestAccounts.d.ts +4 -5
  55. package/dist/types/getLargestAccounts.d.ts.map +1 -1
  56. package/dist/types/getLatestBlockhash.d.ts +4 -5
  57. package/dist/types/getLatestBlockhash.d.ts.map +1 -1
  58. package/dist/types/getLeaderSchedule.d.ts +2 -3
  59. package/dist/types/getLeaderSchedule.d.ts.map +1 -1
  60. package/dist/types/getMaxRetransmitSlot.d.ts +2 -3
  61. package/dist/types/getMaxRetransmitSlot.d.ts.map +1 -1
  62. package/dist/types/getMaxShredInsertSlot.d.ts +2 -3
  63. package/dist/types/getMaxShredInsertSlot.d.ts.map +1 -1
  64. package/dist/types/getMinimumBalanceForRentExemption.d.ts +5 -6
  65. package/dist/types/getMinimumBalanceForRentExemption.d.ts.map +1 -1
  66. package/dist/types/getMultipleAccounts.d.ts +2 -3
  67. package/dist/types/getMultipleAccounts.d.ts.map +1 -1
  68. package/dist/types/getProgramAccounts.d.ts +2 -3
  69. package/dist/types/getProgramAccounts.d.ts.map +1 -1
  70. package/dist/types/getRecentPerformanceSamples.d.ts +6 -7
  71. package/dist/types/getRecentPerformanceSamples.d.ts.map +1 -1
  72. package/dist/types/getRecentPrioritizationFees.d.ts +4 -5
  73. package/dist/types/getRecentPrioritizationFees.d.ts.map +1 -1
  74. package/dist/types/getSignatureStatuses.d.ts +4 -5
  75. package/dist/types/getSignatureStatuses.d.ts.map +1 -1
  76. package/dist/types/getSignaturesForAddress.d.ts +2 -3
  77. package/dist/types/getSignaturesForAddress.d.ts.map +1 -1
  78. package/dist/types/getSlot.d.ts +2 -3
  79. package/dist/types/getSlot.d.ts.map +1 -1
  80. package/dist/types/getSlotLeader.d.ts +2 -3
  81. package/dist/types/getSlotLeader.d.ts.map +1 -1
  82. package/dist/types/getSlotLeaders.d.ts +2 -3
  83. package/dist/types/getSlotLeaders.d.ts.map +1 -1
  84. package/dist/types/getStakeMinimumDelegation.d.ts +4 -5
  85. package/dist/types/getStakeMinimumDelegation.d.ts.map +1 -1
  86. package/dist/types/getSupply.d.ts +6 -7
  87. package/dist/types/getSupply.d.ts.map +1 -1
  88. package/dist/types/getTokenAccountBalance.d.ts +2 -3
  89. package/dist/types/getTokenAccountBalance.d.ts.map +1 -1
  90. package/dist/types/getTokenAccountsByDelegate.d.ts +4 -5
  91. package/dist/types/getTokenAccountsByDelegate.d.ts.map +1 -1
  92. package/dist/types/getTokenAccountsByOwner.d.ts +4 -5
  93. package/dist/types/getTokenAccountsByOwner.d.ts.map +1 -1
  94. package/dist/types/getTokenLargestAccounts.d.ts +2 -3
  95. package/dist/types/getTokenLargestAccounts.d.ts.map +1 -1
  96. package/dist/types/getTokenSupply.d.ts +2 -3
  97. package/dist/types/getTokenSupply.d.ts.map +1 -1
  98. package/dist/types/getTransaction.d.ts +7 -8
  99. package/dist/types/getTransaction.d.ts.map +1 -1
  100. package/dist/types/getTransactionCount.d.ts +4 -5
  101. package/dist/types/getTransactionCount.d.ts.map +1 -1
  102. package/dist/types/getVersion.d.ts +2 -3
  103. package/dist/types/getVersion.d.ts.map +1 -1
  104. package/dist/types/getVoteAccounts.d.ts +8 -10
  105. package/dist/types/getVoteAccounts.d.ts.map +1 -1
  106. package/dist/types/index.d.ts +4 -5
  107. package/dist/types/index.d.ts.map +1 -1
  108. package/dist/types/isBlockhashValid.d.ts +2 -3
  109. package/dist/types/isBlockhashValid.d.ts.map +1 -1
  110. package/dist/types/minimumLedgerSlot.d.ts +2 -3
  111. package/dist/types/minimumLedgerSlot.d.ts.map +1 -1
  112. package/dist/types/requestAirdrop.d.ts +4 -5
  113. package/dist/types/requestAirdrop.d.ts.map +1 -1
  114. package/dist/types/sendTransaction.d.ts +2 -3
  115. package/dist/types/sendTransaction.d.ts.map +1 -1
  116. package/dist/types/simulateTransaction.d.ts +6 -7
  117. package/dist/types/simulateTransaction.d.ts.map +1 -1
  118. package/package.json +24 -13
  119. package/dist/types/getStakeActivation.d.ts +0 -26
  120. package/dist/types/getStakeActivation.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;AAuLO,SAAS,mBAEd,MAAsC,EAAA;AACpC,EAAA,OAAO,YAA0B,CAAA;AAAA,IAC7B,qBAAA,EAAuB,wCAAwC,MAAM,CAAA;AAAA,IACrE,qBAAqB,yCAA0C,CAAA;AAAA,MAC3D,wBAAwB,yBAA0B,EAAA;AAAA,KACrD,CAAA;AAAA,GACJ,CAAA,CAAA;AACL,CAAA;AAEA,IAAI,gBAAA,CAAA;AAMJ,SAAS,yBAA0E,GAAA;AAC/E,EAAA,IAAI,CAAC,gBAAkB,EAAA;AACnB,IAAmB,gBAAA,GAAA;AAAA,MACf,cAAA,EAAgB,0BAA0B,GAAI,CAAA,CAAA,CAAA,KAAK,CAAC,OAAS,EAAA,GAAG,CAAC,CAAC,CAAA;AAAA,MAClE,QAAU,EAAA;AAAA,QACN,CAAC,WAAW,CAAA;AAAA,QACZ,CAAC,cAA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AA,KACJ,CAAA;AAAA,GACJ;AACA,EAAO,OAAA,gBAAA,CAAA;AACX","file":"index.node.mjs","sourcesContent":["import { createRpcApi, RpcApi } from '@solana/rpc-spec';\nimport {\n AllowedNumericKeypaths,\n getDefaultParamsTransformerForSolanaRpc,\n getDefaultResponseTransformerForSolanaRpc,\n innerInstructionsConfigs,\n jsonParsedAccountsConfigs,\n jsonParsedTokenAccountsConfigs,\n KEYPATH_WILDCARD,\n messageConfig,\n ParamsTransformerConfig,\n} from '@solana/rpc-transformers';\n\nimport { GetAccountInfoApi } from './getAccountInfo';\nimport { GetBalanceApi } from './getBalance';\nimport { GetBlockApi } from './getBlock';\nimport { GetBlockCommitmentApi } from './getBlockCommitment';\nimport { GetBlockHeightApi } from './getBlockHeight';\nimport { GetBlockProductionApi } from './getBlockProduction';\nimport { GetBlocksApi } from './getBlocks';\nimport { GetBlocksWithLimitApi } from './getBlocksWithLimit';\nimport { GetBlockTimeApi } from './getBlockTime';\nimport { GetClusterNodesApi } from './getClusterNodes';\nimport { GetEpochInfoApi } from './getEpochInfo';\nimport { GetEpochScheduleApi } from './getEpochSchedule';\nimport { GetFeeForMessageApi } from './getFeeForMessage';\nimport { GetFirstAvailableBlockApi } from './getFirstAvailableBlock';\nimport { GetGenesisHashApi } from './getGenesisHash';\nimport { GetHealthApi } from './getHealth';\nimport { GetHighestSnapshotSlotApi } from './getHighestSnapshotSlot';\nimport { GetIdentityApi } from './getIdentity';\nimport { GetInflationGovernorApi } from './getInflationGovernor';\nimport { GetInflationRateApi } from './getInflationRate';\nimport { GetInflationRewardApi } from './getInflationReward';\nimport { GetLargestAccountsApi } from './getLargestAccounts';\nimport { GetLatestBlockhashApi } from './getLatestBlockhash';\nimport { GetLeaderScheduleApi } from './getLeaderSchedule';\nimport { GetMaxRetransmitSlotApi } from './getMaxRetransmitSlot';\nimport { GetMaxShredInsertSlotApi } from './getMaxShredInsertSlot';\nimport { GetMinimumBalanceForRentExemptionApi } from './getMinimumBalanceForRentExemption';\nimport { GetMultipleAccountsApi } from './getMultipleAccounts';\nimport { GetProgramAccountsApi } from './getProgramAccounts';\nimport { GetRecentPerformanceSamplesApi } from './getRecentPerformanceSamples';\nimport { GetRecentPrioritizationFeesApi } from './getRecentPrioritizationFees';\nimport { GetSignaturesForAddressApi } from './getSignaturesForAddress';\nimport { GetSignatureStatusesApi } from './getSignatureStatuses';\nimport { GetSlotApi } from './getSlot';\nimport { GetSlotLeaderApi } from './getSlotLeader';\nimport { GetSlotLeadersApi } from './getSlotLeaders';\nimport { GetStakeActivationApi } from './getStakeActivation';\nimport { GetStakeMinimumDelegationApi } from './getStakeMinimumDelegation';\nimport { GetSupplyApi } from './getSupply';\nimport { GetTokenAccountBalanceApi } from './getTokenAccountBalance';\nimport { GetTokenAccountsByDelegateApi } from './getTokenAccountsByDelegate';\nimport { GetTokenAccountsByOwnerApi } from './getTokenAccountsByOwner';\nimport { GetTokenLargestAccountsApi } from './getTokenLargestAccounts';\nimport { GetTokenSupplyApi } from './getTokenSupply';\nimport { GetTransactionApi } from './getTransaction';\nimport { GetTransactionCountApi } from './getTransactionCount';\nimport { GetVersionApi } from './getVersion';\nimport { GetVoteAccountsApi } from './getVoteAccounts';\nimport { IsBlockhashValidApi } from './isBlockhashValid';\nimport { MinimumLedgerSlotApi } from './minimumLedgerSlot';\nimport { RequestAirdropApi } from './requestAirdrop';\nimport { SendTransactionApi } from './sendTransaction';\nimport { SimulateTransactionApi } from './simulateTransaction';\n\ntype SolanaRpcApiForAllClusters = GetAccountInfoApi &\n GetBalanceApi &\n GetBlockApi &\n GetBlockCommitmentApi &\n GetBlockHeightApi &\n GetBlockProductionApi &\n GetBlocksApi &\n GetBlocksWithLimitApi &\n GetBlockTimeApi &\n GetClusterNodesApi &\n GetEpochInfoApi &\n GetEpochScheduleApi &\n GetFeeForMessageApi &\n GetFirstAvailableBlockApi &\n GetGenesisHashApi &\n GetHealthApi &\n GetHighestSnapshotSlotApi &\n GetIdentityApi &\n GetInflationGovernorApi &\n GetInflationRateApi &\n GetInflationRewardApi &\n GetLargestAccountsApi &\n GetLatestBlockhashApi &\n GetLeaderScheduleApi &\n GetMaxRetransmitSlotApi &\n GetMaxShredInsertSlotApi &\n GetMinimumBalanceForRentExemptionApi &\n GetMultipleAccountsApi &\n GetProgramAccountsApi &\n GetRecentPerformanceSamplesApi &\n GetRecentPrioritizationFeesApi &\n GetSignaturesForAddressApi &\n GetSignatureStatusesApi &\n GetSlotApi &\n GetSlotLeaderApi &\n GetSlotLeadersApi &\n GetStakeActivationApi &\n GetStakeMinimumDelegationApi &\n GetSupplyApi &\n GetTokenAccountBalanceApi &\n GetTokenAccountsByDelegateApi &\n GetTokenAccountsByOwnerApi &\n GetTokenLargestAccountsApi &\n GetTokenSupplyApi &\n GetTransactionApi &\n GetTransactionCountApi &\n GetVersionApi &\n GetVoteAccountsApi &\n IsBlockhashValidApi &\n MinimumLedgerSlotApi &\n SendTransactionApi &\n SimulateTransactionApi;\ntype SolanaRpcApiForTestClusters = RequestAirdropApi & SolanaRpcApiForAllClusters;\nexport type SolanaRpcApi = SolanaRpcApiForTestClusters;\nexport type SolanaRpcApiDevnet = SolanaRpcApiForTestClusters;\nexport type SolanaRpcApiTestnet = SolanaRpcApiForTestClusters;\nexport type SolanaRpcApiMainnet = SolanaRpcApiForAllClusters;\n\nexport type {\n GetAccountInfoApi,\n GetBalanceApi,\n GetBlockApi,\n GetBlockCommitmentApi,\n GetBlockHeightApi,\n GetBlockProductionApi,\n GetBlocksApi,\n GetBlocksWithLimitApi,\n GetBlockTimeApi,\n GetClusterNodesApi,\n GetEpochInfoApi,\n GetEpochScheduleApi,\n GetFeeForMessageApi,\n GetFirstAvailableBlockApi,\n GetGenesisHashApi,\n GetHealthApi,\n GetHighestSnapshotSlotApi,\n GetIdentityApi,\n GetInflationGovernorApi,\n GetInflationRateApi,\n GetInflationRewardApi,\n GetLargestAccountsApi,\n GetLatestBlockhashApi,\n GetLeaderScheduleApi,\n GetMaxRetransmitSlotApi,\n GetMaxShredInsertSlotApi,\n GetMinimumBalanceForRentExemptionApi,\n GetMultipleAccountsApi,\n GetProgramAccountsApi,\n GetRecentPerformanceSamplesApi,\n GetRecentPrioritizationFeesApi,\n GetSignaturesForAddressApi,\n GetSignatureStatusesApi,\n GetSlotApi,\n GetSlotLeaderApi,\n GetSlotLeadersApi,\n GetStakeActivationApi,\n GetStakeMinimumDelegationApi,\n GetSupplyApi,\n GetTokenAccountBalanceApi,\n GetTokenAccountsByDelegateApi,\n GetTokenAccountsByOwnerApi,\n GetTokenLargestAccountsApi,\n GetTokenSupplyApi,\n GetTransactionApi,\n GetTransactionCountApi,\n GetVersionApi,\n GetVoteAccountsApi,\n IsBlockhashValidApi,\n MinimumLedgerSlotApi,\n RequestAirdropApi,\n SendTransactionApi,\n SimulateTransactionApi,\n};\n\ntype Config = ParamsTransformerConfig;\n\nexport function createSolanaRpcApi<\n TRpcMethods extends SolanaRpcApi | SolanaRpcApiDevnet | SolanaRpcApiMainnet | SolanaRpcApiTestnet = SolanaRpcApi,\n>(config?: Config): RpcApi<TRpcMethods> {\n return createRpcApi<TRpcMethods>({\n parametersTransformer: getDefaultParamsTransformerForSolanaRpc(config) as (params: unknown[]) => unknown[],\n responseTransformer: getDefaultResponseTransformerForSolanaRpc({\n allowedNumericKeyPaths: getAllowedNumericKeypaths(),\n }),\n });\n}\n\nlet memoizedKeypaths: AllowedNumericKeypaths<RpcApi<SolanaRpcApi>>;\n\n/**\n * These are keypaths at the end of which you will find a numeric value that should *not* be upcast\n * to a `bigint`. These are values that are legitimately defined as `u8` or `usize` on the backend.\n */\nfunction getAllowedNumericKeypaths(): AllowedNumericKeypaths<RpcApi<SolanaRpcApi>> {\n if (!memoizedKeypaths) {\n memoizedKeypaths = {\n getAccountInfo: jsonParsedAccountsConfigs.map(c => ['value', ...c]),\n getBlock: [\n ['blockTime'],\n ['transactions', KEYPATH_WILDCARD, 'meta', 'preTokenBalances', KEYPATH_WILDCARD, 'accountIndex'],\n [\n 'transactions',\n KEYPATH_WILDCARD,\n 'meta',\n 'preTokenBalances',\n KEYPATH_WILDCARD,\n 'uiTokenAmount',\n 'decimals',\n ],\n ['transactions', KEYPATH_WILDCARD, 'meta', 'postTokenBalances', KEYPATH_WILDCARD, 'accountIndex'],\n [\n 'transactions',\n KEYPATH_WILDCARD,\n 'meta',\n 'postTokenBalances',\n KEYPATH_WILDCARD,\n 'uiTokenAmount',\n 'decimals',\n ],\n ['transactions', KEYPATH_WILDCARD, 'meta', 'rewards', KEYPATH_WILDCARD, 'commission'],\n ...innerInstructionsConfigs.map(c => [\n 'transactions',\n KEYPATH_WILDCARD,\n 'meta',\n 'innerInstructions',\n KEYPATH_WILDCARD,\n ...c,\n ]),\n ...messageConfig.map(c => ['transactions', KEYPATH_WILDCARD, 'transaction', 'message', ...c] as const),\n ['rewards', KEYPATH_WILDCARD, 'commission'],\n ],\n getBlockTime: [[]],\n getClusterNodes: [\n [KEYPATH_WILDCARD, 'featureSet'],\n [KEYPATH_WILDCARD, 'shredVersion'],\n ],\n getInflationGovernor: [['initial'], ['foundation'], ['foundationTerm'], ['taper'], ['terminal']],\n getInflationRate: [['foundation'], ['total'], ['validator']],\n getInflationReward: [[KEYPATH_WILDCARD, 'commission']],\n getMultipleAccounts: jsonParsedAccountsConfigs.map(c => ['value', KEYPATH_WILDCARD, ...c]),\n getProgramAccounts: jsonParsedAccountsConfigs.flatMap(c => [\n ['value', KEYPATH_WILDCARD, 'account', ...c],\n [KEYPATH_WILDCARD, 'account', ...c],\n ]),\n getRecentPerformanceSamples: [[KEYPATH_WILDCARD, 'samplePeriodSecs']],\n getTokenAccountBalance: [\n ['value', 'decimals'],\n ['value', 'uiAmount'],\n ],\n getTokenAccountsByDelegate: jsonParsedTokenAccountsConfigs.map(c => [\n 'value',\n KEYPATH_WILDCARD,\n 'account',\n ...c,\n ]),\n getTokenAccountsByOwner: jsonParsedTokenAccountsConfigs.map(c => [\n 'value',\n KEYPATH_WILDCARD,\n 'account',\n ...c,\n ]),\n getTokenLargestAccounts: [\n ['value', KEYPATH_WILDCARD, 'decimals'],\n ['value', KEYPATH_WILDCARD, 'uiAmount'],\n ],\n getTokenSupply: [\n ['value', 'decimals'],\n ['value', 'uiAmount'],\n ],\n getTransaction: [\n ['meta', 'preTokenBalances', KEYPATH_WILDCARD, 'accountIndex'],\n ['meta', 'preTokenBalances', KEYPATH_WILDCARD, 'uiTokenAmount', 'decimals'],\n ['meta', 'postTokenBalances', KEYPATH_WILDCARD, 'accountIndex'],\n ['meta', 'postTokenBalances', KEYPATH_WILDCARD, 'uiTokenAmount', 'decimals'],\n ['meta', 'rewards', KEYPATH_WILDCARD, 'commission'],\n ...innerInstructionsConfigs.map(c => ['meta', 'innerInstructions', KEYPATH_WILDCARD, ...c]),\n ...messageConfig.map(c => ['transaction', 'message', ...c] as const),\n ],\n getVersion: [['feature-set']],\n getVoteAccounts: [\n ['current', KEYPATH_WILDCARD, 'commission'],\n ['delinquent', KEYPATH_WILDCARD, 'commission'],\n ],\n simulateTransaction: [\n ...jsonParsedAccountsConfigs.map(c => ['value', 'accounts', KEYPATH_WILDCARD, ...c]),\n ...innerInstructionsConfigs.map(c => ['value', 'innerInstructions', KEYPATH_WILDCARD, ...c]),\n ],\n };\n }\n return memoizedKeypaths;\n}\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;AAoLO,SAAS,mBAGd,MAAsC,EAAA;AACpC,EAAA,OAAO,gBAA8B,CAAA;AAAA,IACjC,kBAAA,EAAoB,yCAAyC,MAAM,CAAA;AAAA,IACnE,qBAAqB,yCAA0C,CAAA;AAAA,MAC3D,wBAAwB,yBAA0B,EAAA;AAAA,KACrD,CAAA;AAAA,GACJ,CAAA,CAAA;AACL,CAAA;AAEA,IAAI,gBAAA,CAAA;AAMJ,SAAS,yBAA0E,GAAA;AAC/E,EAAA,IAAI,CAAC,gBAAkB,EAAA;AACnB,IAAmB,gBAAA,GAAA;AAAA,MACf,cAAA,EAAgB,0BAA0B,GA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AS,mBAAqB,EAAA,gBAAA,EAAkB,GAAG,CAAC,CAAC,CAAA;AAAA,OAC/F;AAAA,KACJ,CAAA;AAAA,GACJ;AACA,EAAO,OAAA,gBAAA,CAAA;AACX","file":"index.node.mjs","sourcesContent":["import { createJsonRpcApi, RpcApi } from '@solana/rpc-spec';\nimport {\n AllowedNumericKeypaths,\n getDefaultRequestTransformerForSolanaRpc,\n getDefaultResponseTransformerForSolanaRpc,\n innerInstructionsConfigs,\n jsonParsedAccountsConfigs,\n jsonParsedTokenAccountsConfigs,\n KEYPATH_WILDCARD,\n messageConfig,\n RequestTransformerConfig,\n} from '@solana/rpc-transformers';\n\nimport { GetAccountInfoApi } from './getAccountInfo';\nimport { GetBalanceApi } from './getBalance';\nimport { GetBlockApi } from './getBlock';\nimport { GetBlockCommitmentApi } from './getBlockCommitment';\nimport { GetBlockHeightApi } from './getBlockHeight';\nimport { GetBlockProductionApi } from './getBlockProduction';\nimport { GetBlocksApi } from './getBlocks';\nimport { GetBlocksWithLimitApi } from './getBlocksWithLimit';\nimport { GetBlockTimeApi } from './getBlockTime';\nimport { GetClusterNodesApi } from './getClusterNodes';\nimport { GetEpochInfoApi } from './getEpochInfo';\nimport { GetEpochScheduleApi } from './getEpochSchedule';\nimport { GetFeeForMessageApi } from './getFeeForMessage';\nimport { GetFirstAvailableBlockApi } from './getFirstAvailableBlock';\nimport { GetGenesisHashApi } from './getGenesisHash';\nimport { GetHealthApi } from './getHealth';\nimport { GetHighestSnapshotSlotApi } from './getHighestSnapshotSlot';\nimport { GetIdentityApi } from './getIdentity';\nimport { GetInflationGovernorApi } from './getInflationGovernor';\nimport { GetInflationRateApi } from './getInflationRate';\nimport { GetInflationRewardApi } from './getInflationReward';\nimport { GetLargestAccountsApi } from './getLargestAccounts';\nimport { GetLatestBlockhashApi } from './getLatestBlockhash';\nimport { GetLeaderScheduleApi } from './getLeaderSchedule';\nimport { GetMaxRetransmitSlotApi } from './getMaxRetransmitSlot';\nimport { GetMaxShredInsertSlotApi } from './getMaxShredInsertSlot';\nimport { GetMinimumBalanceForRentExemptionApi } from './getMinimumBalanceForRentExemption';\nimport { GetMultipleAccountsApi } from './getMultipleAccounts';\nimport { GetProgramAccountsApi } from './getProgramAccounts';\nimport { GetRecentPerformanceSamplesApi } from './getRecentPerformanceSamples';\nimport { GetRecentPrioritizationFeesApi } from './getRecentPrioritizationFees';\nimport { GetSignaturesForAddressApi } from './getSignaturesForAddress';\nimport { GetSignatureStatusesApi } from './getSignatureStatuses';\nimport { GetSlotApi } from './getSlot';\nimport { GetSlotLeaderApi } from './getSlotLeader';\nimport { GetSlotLeadersApi } from './getSlotLeaders';\nimport { GetStakeMinimumDelegationApi } from './getStakeMinimumDelegation';\nimport { GetSupplyApi } from './getSupply';\nimport { GetTokenAccountBalanceApi } from './getTokenAccountBalance';\nimport { GetTokenAccountsByDelegateApi } from './getTokenAccountsByDelegate';\nimport { GetTokenAccountsByOwnerApi } from './getTokenAccountsByOwner';\nimport { GetTokenLargestAccountsApi } from './getTokenLargestAccounts';\nimport { GetTokenSupplyApi } from './getTokenSupply';\nimport { GetTransactionApi } from './getTransaction';\nimport { GetTransactionCountApi } from './getTransactionCount';\nimport { GetVersionApi } from './getVersion';\nimport { GetVoteAccountsApi } from './getVoteAccounts';\nimport { IsBlockhashValidApi } from './isBlockhashValid';\nimport { MinimumLedgerSlotApi } from './minimumLedgerSlot';\nimport { RequestAirdropApi } from './requestAirdrop';\nimport { SendTransactionApi } from './sendTransaction';\nimport { SimulateTransactionApi } from './simulateTransaction';\n\ntype SolanaRpcApiForAllClusters = GetAccountInfoApi &\n GetBalanceApi &\n GetBlockApi &\n GetBlockCommitmentApi &\n GetBlockHeightApi &\n GetBlockProductionApi &\n GetBlocksApi &\n GetBlocksWithLimitApi &\n GetBlockTimeApi &\n GetClusterNodesApi &\n GetEpochInfoApi &\n GetEpochScheduleApi &\n GetFeeForMessageApi &\n GetFirstAvailableBlockApi &\n GetGenesisHashApi &\n GetHealthApi &\n GetHighestSnapshotSlotApi &\n GetIdentityApi &\n GetInflationGovernorApi &\n GetInflationRateApi &\n GetInflationRewardApi &\n GetLargestAccountsApi &\n GetLatestBlockhashApi &\n GetLeaderScheduleApi &\n GetMaxRetransmitSlotApi &\n GetMaxShredInsertSlotApi &\n GetMinimumBalanceForRentExemptionApi &\n GetMultipleAccountsApi &\n GetProgramAccountsApi &\n GetRecentPerformanceSamplesApi &\n GetRecentPrioritizationFeesApi &\n GetSignaturesForAddressApi &\n GetSignatureStatusesApi &\n GetSlotApi &\n GetSlotLeaderApi &\n GetSlotLeadersApi &\n GetStakeMinimumDelegationApi &\n GetSupplyApi &\n GetTokenAccountBalanceApi &\n GetTokenAccountsByDelegateApi &\n GetTokenAccountsByOwnerApi &\n GetTokenLargestAccountsApi &\n GetTokenSupplyApi &\n GetTransactionApi &\n GetTransactionCountApi &\n GetVersionApi &\n GetVoteAccountsApi &\n IsBlockhashValidApi &\n MinimumLedgerSlotApi &\n SendTransactionApi &\n SimulateTransactionApi;\ntype SolanaRpcApiForTestClusters = RequestAirdropApi & SolanaRpcApiForAllClusters;\nexport type SolanaRpcApi = SolanaRpcApiForTestClusters;\nexport type SolanaRpcApiDevnet = SolanaRpcApiForTestClusters;\nexport type SolanaRpcApiTestnet = SolanaRpcApiForTestClusters;\nexport type SolanaRpcApiMainnet = SolanaRpcApiForAllClusters;\n\nexport type {\n GetAccountInfoApi,\n GetBalanceApi,\n GetBlockApi,\n GetBlockCommitmentApi,\n GetBlockHeightApi,\n GetBlockProductionApi,\n GetBlocksApi,\n GetBlocksWithLimitApi,\n GetBlockTimeApi,\n GetClusterNodesApi,\n GetEpochInfoApi,\n GetEpochScheduleApi,\n GetFeeForMessageApi,\n GetFirstAvailableBlockApi,\n GetGenesisHashApi,\n GetHealthApi,\n GetHighestSnapshotSlotApi,\n GetIdentityApi,\n GetInflationGovernorApi,\n GetInflationRateApi,\n GetInflationRewardApi,\n GetLargestAccountsApi,\n GetLatestBlockhashApi,\n GetLeaderScheduleApi,\n GetMaxRetransmitSlotApi,\n GetMaxShredInsertSlotApi,\n GetMinimumBalanceForRentExemptionApi,\n GetMultipleAccountsApi,\n GetProgramAccountsApi,\n GetRecentPerformanceSamplesApi,\n GetRecentPrioritizationFeesApi,\n GetSignaturesForAddressApi,\n GetSignatureStatusesApi,\n GetSlotApi,\n GetSlotLeaderApi,\n GetSlotLeadersApi,\n GetStakeMinimumDelegationApi,\n GetSupplyApi,\n GetTokenAccountBalanceApi,\n GetTokenAccountsByDelegateApi,\n GetTokenAccountsByOwnerApi,\n GetTokenLargestAccountsApi,\n GetTokenSupplyApi,\n GetTransactionApi,\n GetTransactionCountApi,\n GetVersionApi,\n GetVoteAccountsApi,\n IsBlockhashValidApi,\n MinimumLedgerSlotApi,\n RequestAirdropApi,\n SendTransactionApi,\n SimulateTransactionApi,\n};\n\ntype Config = RequestTransformerConfig;\n\nexport function createSolanaRpcApi<\n // eslint-disable-next-line @typescript-eslint/no-duplicate-type-constituents\n TRpcMethods extends SolanaRpcApi | SolanaRpcApiDevnet | SolanaRpcApiMainnet | SolanaRpcApiTestnet = SolanaRpcApi,\n>(config?: Config): RpcApi<TRpcMethods> {\n return createJsonRpcApi<TRpcMethods>({\n requestTransformer: getDefaultRequestTransformerForSolanaRpc(config),\n responseTransformer: getDefaultResponseTransformerForSolanaRpc({\n allowedNumericKeyPaths: getAllowedNumericKeypaths(),\n }),\n });\n}\n\nlet memoizedKeypaths: AllowedNumericKeypaths<RpcApi<SolanaRpcApi>>;\n\n/**\n * These are keypaths at the end of which you will find a numeric value that should *not* be upcast\n * to a `bigint`. These are values that are legitimately defined as `u8` or `usize` on the backend.\n */\nfunction getAllowedNumericKeypaths(): AllowedNumericKeypaths<RpcApi<SolanaRpcApi>> {\n if (!memoizedKeypaths) {\n memoizedKeypaths = {\n getAccountInfo: jsonParsedAccountsConfigs.map(c => ['value', ...c]),\n getBlock: [\n ['transactions', KEYPATH_WILDCARD, 'meta', 'preTokenBalances', KEYPATH_WILDCARD, 'accountIndex'],\n [\n 'transactions',\n KEYPATH_WILDCARD,\n 'meta',\n 'preTokenBalances',\n KEYPATH_WILDCARD,\n 'uiTokenAmount',\n 'decimals',\n ],\n ['transactions', KEYPATH_WILDCARD, 'meta', 'postTokenBalances', KEYPATH_WILDCARD, 'accountIndex'],\n [\n 'transactions',\n KEYPATH_WILDCARD,\n 'meta',\n 'postTokenBalances',\n KEYPATH_WILDCARD,\n 'uiTokenAmount',\n 'decimals',\n ],\n ['transactions', KEYPATH_WILDCARD, 'meta', 'rewards', KEYPATH_WILDCARD, 'commission'],\n ...innerInstructionsConfigs.map(c => [\n 'transactions',\n KEYPATH_WILDCARD,\n 'meta',\n 'innerInstructions',\n KEYPATH_WILDCARD,\n ...c,\n ]),\n ...messageConfig.map(c => ['transactions', KEYPATH_WILDCARD, 'transaction', 'message', ...c] as const),\n ['rewards', KEYPATH_WILDCARD, 'commission'],\n ],\n getClusterNodes: [\n [KEYPATH_WILDCARD, 'featureSet'],\n [KEYPATH_WILDCARD, 'shredVersion'],\n ],\n getInflationGovernor: [['initial'], ['foundation'], ['foundationTerm'], ['taper'], ['terminal']],\n getInflationRate: [['foundation'], ['total'], ['validator']],\n getInflationReward: [[KEYPATH_WILDCARD, 'commission']],\n getMultipleAccounts: jsonParsedAccountsConfigs.map(c => ['value', KEYPATH_WILDCARD, ...c]),\n getProgramAccounts: jsonParsedAccountsConfigs.flatMap(c => [\n ['value', KEYPATH_WILDCARD, 'account', ...c],\n [KEYPATH_WILDCARD, 'account', ...c],\n ]),\n getRecentPerformanceSamples: [[KEYPATH_WILDCARD, 'samplePeriodSecs']],\n getTokenAccountBalance: [\n ['value', 'decimals'],\n ['value', 'uiAmount'],\n ],\n getTokenAccountsByDelegate: jsonParsedTokenAccountsConfigs.map(c => [\n 'value',\n KEYPATH_WILDCARD,\n 'account',\n ...c,\n ]),\n getTokenAccountsByOwner: jsonParsedTokenAccountsConfigs.map(c => [\n 'value',\n KEYPATH_WILDCARD,\n 'account',\n ...c,\n ]),\n getTokenLargestAccounts: [\n ['value', KEYPATH_WILDCARD, 'decimals'],\n ['value', KEYPATH_WILDCARD, 'uiAmount'],\n ],\n getTokenSupply: [\n ['value', 'decimals'],\n ['value', 'uiAmount'],\n ],\n getTransaction: [\n ['meta', 'preTokenBalances', KEYPATH_WILDCARD, 'accountIndex'],\n ['meta', 'preTokenBalances', KEYPATH_WILDCARD, 'uiTokenAmount', 'decimals'],\n ['meta', 'postTokenBalances', KEYPATH_WILDCARD, 'accountIndex'],\n ['meta', 'postTokenBalances', KEYPATH_WILDCARD, 'uiTokenAmount', 'decimals'],\n ['meta', 'rewards', KEYPATH_WILDCARD, 'commission'],\n ...innerInstructionsConfigs.map(c => ['meta', 'innerInstructions', KEYPATH_WILDCARD, ...c]),\n ...messageConfig.map(c => ['transaction', 'message', ...c] as const),\n ],\n getVersion: [['feature-set']],\n getVoteAccounts: [\n ['current', KEYPATH_WILDCARD, 'commission'],\n ['delinquent', KEYPATH_WILDCARD, 'commission'],\n ],\n simulateTransaction: [\n ...jsonParsedAccountsConfigs.map(c => ['value', 'accounts', KEYPATH_WILDCARD, ...c]),\n ...innerInstructionsConfigs.map(c => ['value', 'innerInstructions', KEYPATH_WILDCARD, ...c]),\n ],\n };\n }\n return memoizedKeypaths;\n}\n"]}
@@ -1,5 +1,4 @@
1
1
  import type { Address } from '@solana/addresses';
2
- import type { RpcApiMethods } from '@solana/rpc-spec';
3
2
  import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types';
4
3
  type GetAccountInfoApiResponse<T> = (AccountInfoBase & T) | null;
5
4
  type GetAccountInfoApiCommonConfig = Readonly<{
@@ -9,7 +8,7 @@ type GetAccountInfoApiCommonConfig = Readonly<{
9
8
  type GetAccountInfoApiSliceableCommonConfig = Readonly<{
10
9
  dataSlice?: DataSlice;
11
10
  }>;
12
- export interface GetAccountInfoApi extends RpcApiMethods {
11
+ export type GetAccountInfoApi = {
13
12
  /**
14
13
  * Returns all information associated with the account of provided public key
15
14
  */
@@ -26,6 +25,6 @@ export interface GetAccountInfoApi extends RpcApiMethods {
26
25
  encoding: 'base58';
27
26
  }>): SolanaRpcResponse<GetAccountInfoApiResponse<AccountInfoWithBase58EncodedData>>;
28
27
  getAccountInfo(address: Address, config?: GetAccountInfoApiCommonConfig): SolanaRpcResponse<GetAccountInfoApiResponse<AccountInfoWithBase58Bytes>>;
29
- }
28
+ };
30
29
  export {};
31
30
  //# sourceMappingURL=getAccountInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAccountInfo.d.ts","sourceRoot":"","sources":["../../src/getAccountInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EACR,eAAe,EACf,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,8CAA8C,EAC9C,uBAAuB,EACvB,UAAU,EACV,SAAS,EACT,IAAI,EACJ,iBAAiB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,yBAAyB,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;AAEjE,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAE1C,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC,CAAC;AAEH,KAAK,sCAAsC,GAAG,QAAQ,CAAC;IAEnD,SAAS,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACpD;;OAEG;IACH,cAAc,CACV,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,6BAA6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,8 +1,7 @@
1
1
  import type { Address } from '@solana/addresses';
2
- import type { RpcApiMethods } from '@solana/rpc-spec';
3
- import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, Slot, SolanaRpcResponse } from '@solana/rpc-types';
4
- type GetBalanceApiResponse = SolanaRpcResponse<LamportsUnsafeBeyond2Pow53Minus1>;
5
- export interface GetBalanceApi extends RpcApiMethods {
2
+ import type { Commitment, Lamports, Slot, SolanaRpcResponse } from '@solana/rpc-types';
3
+ type GetBalanceApiResponse = SolanaRpcResponse<Lamports>;
4
+ export type GetBalanceApi = {
6
5
  /**
7
6
  * Returns the balance of the account of provided Pubkey
8
7
  */
@@ -10,6 +9,6 @@ export interface GetBalanceApi extends RpcApiMethods {
10
9
  commitment?: Commitment;
11
10
  minContextSlot?: Slot;
12
11
  }>): GetBalanceApiResponse;
13
- }
12
+ };
14
13
  export {};
15
14
  //# sourceMappingURL=getBalance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../src/getBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,gCAAgC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/G,KAAK,qBAAqB,GAAG,iBAAiB,CAAC,gCAAgC,CAAC,CAAC;AAEjF,MAAM,WAAW,aAAc,SAAQ,aAAa;IAChD;;OAEG;IACH,UAAU,CACN,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,qBAAqB,CAAC;CAC5B"}
1
+ {"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../src/getBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEvF,KAAK,qBAAqB,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAEzD,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,UAAU,CACN,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,qBAAqB,CAAC;CAC5B,CAAC"}
@@ -1,10 +1,9 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
- import type { Base58EncodedBytes, Blockhash, Commitment, Reward, Slot, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types';
1
+ import type { Base58EncodedBytes, Blockhash, Commitment, Reward, Slot, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed, UnixTimestamp } from '@solana/rpc-types';
3
2
  import type { TransactionVersion } from '@solana/transaction-messages';
4
3
  type GetBlockApiResponseBase = Readonly<{
5
4
  /** The number of blocks beneath this block */
6
- blockHeight: U64UnsafeBeyond2Pow53Minus1;
7
- /** The number of blocks beneath this block */
5
+ blockHeight: bigint;
6
+ /** Estimated production time, as Unix timestamp */
8
7
  blockTime: UnixTimestamp;
9
8
  /** the blockhash of this block */
10
9
  blockhash: Blockhash;
@@ -30,7 +29,7 @@ type GetBlockCommonConfig = Readonly<{
30
29
  }>;
31
30
  type GetBlockEncoding = 'base58' | 'base64' | 'json' | 'jsonParsed';
32
31
  type GetBlockMaxSupportedTransactionVersion = Exclude<TransactionVersion, 'legacy'>;
33
- export interface GetBlockApi extends RpcApiMethods {
32
+ export type GetBlockApi = {
34
33
  /**
35
34
  * Returns identity and transaction information about a confirmed block in the ledger
36
35
  */
@@ -168,6 +167,6 @@ export interface GetBlockApi extends RpcApiMethods {
168
167
  rewards?: boolean;
169
168
  transactionDetails?: 'full';
170
169
  }>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForFullJson<void>>) | null;
171
- }
170
+ };
172
171
  export {};
173
172
  //# sourceMappingURL=getBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBlock.d.ts","sourceRoot":"","sources":["../../src/getBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EACR,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,MAAM,EACN,IAAI,EACJ,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,4BAA4B,EAC5B,2BAA2B,EAC3B,aAAa,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAIvE,KAAK,uBAAuB,GAAG,QAAQ,CAAC;IACpC,8CAA8C;IAC9C,WAAW,EAAE,2BAA2B,CAAC;IACzC,8CAA8C;IAC9C,SAAS,EAAE,aAAa,CAAC;IACzB,kCAAkC;IAClC,SAAS,EAAE,SAAS,CAAC;IACrB,4CAA4C;IAC5C,UAAU,EAAE,IAAI,CAAC;IACjB,2CAA2C;IAC3C,iBAAiB,EAAE,SAAS,CAAC;CAChC,CAAC,CAAC;AAEH,KAAK,8BAA8B,GAAG,QAAQ,CAAC;IAC3C,0BAA0B;IAC1B,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,CAAC,CAAC;AAEH,KAAK,iCAAiC,GAAG,QAAQ,CAAC;IAC9C,+DAA+D;IAC/D,UAAU,EAAE,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EJ,CAAC,uBAAuB,GACpB,mCAAmC,CAAC,sBAAsB,CAAC,sCAAsC,CAAC,CAAC,CAAC,GACxG,IAAI,CAAC;IAEX,QAAQ,CACJ,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,oBAAoB,GACxB,QAAQ,CAAC;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,KAAK,CAAC;QACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC/B,CAAC,GACP,CAAC,uBAAuB,GAAG,mCAAmC,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAExG,QAAQ,CACJ,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,oBAAoB,GACxB,QAAQ,CAAC;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,8BAA8B,EAAE,sCAAsC,CAAC;QACvE,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC/B,CAAC,GAEJ,CAAC,uBAAuB,GACpB,8BAA8B,GAC9B,mCAAmC,CAAC,sBAAsB,CAAC,sCAAsC,CAAC,CAAC,CAAC,GACxG,IAAI,CAAC;IAEX,QAAQ,CACJ,IAAI,EAAE,IAAI,EACV,MAAM,CAAC,EAAE,oBAAoB,GACzB,QAAQ,CAAC;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC/B,CAAC,GAEJ,CAAC,uBAAuB,GACpB,8BAA8B,GAC9B,mCAAmC,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,GACtE,IAAI,CAAC;CACd,CAAC"}
@@ -1,15 +1,14 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
- import type { LamportsUnsafeBeyond2Pow53Minus1, Slot } from '@solana/rpc-types';
1
+ import type { Lamports, Slot } from '@solana/rpc-types';
3
2
  type GetBlockCommitmentApiResponse = Readonly<{
4
- commitment: LamportsUnsafeBeyond2Pow53Minus1[] | null;
5
- totalStake: LamportsUnsafeBeyond2Pow53Minus1;
3
+ commitment: Lamports[] | null;
4
+ totalStake: Lamports;
6
5
  }>;
7
- export interface GetBlockCommitmentApi extends RpcApiMethods {
6
+ export type GetBlockCommitmentApi = {
8
7
  /**
9
8
  * Returns the amount of cluster stake in lamports that has voted on
10
9
  * a particular block, as well as the stake attributed to each vote account
11
10
  */
12
11
  getBlockCommitment(slot: Slot): GetBlockCommitmentApiResponse;
13
- }
12
+ };
14
13
  export {};
15
14
  //# sourceMappingURL=getBlockCommitment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBlockCommitment.d.ts","sourceRoot":"","sources":["../../src/getBlockCommitment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,gCAAgC,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEhF,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAC1C,UAAU,EAAE,gCAAgC,EAAE,GAAG,IAAI,CAAC;IACtD,UAAU,EAAE,gCAAgC,CAAC;CAChD,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;;OAGG;IACH,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,6BAA6B,CAAC;CACjE"}
1
+ {"version":3,"file":"getBlockCommitment.d.ts","sourceRoot":"","sources":["../../src/getBlockCommitment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAExD,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAC1C,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,QAAQ,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG;IAChC;;;OAGG;IACH,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,6BAA6B,CAAC;CACjE,CAAC"}
@@ -1,7 +1,6 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
- import type { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
3
- type GetBlockHeightApiResponse = U64UnsafeBeyond2Pow53Minus1;
4
- export interface GetBlockHeightApi extends RpcApiMethods {
1
+ import type { Commitment, Slot } from '@solana/rpc-types';
2
+ type GetBlockHeightApiResponse = bigint;
3
+ export type GetBlockHeightApi = {
5
4
  /**
6
5
  * Returns the current block height of the node
7
6
  */
@@ -9,6 +8,6 @@ export interface GetBlockHeightApi extends RpcApiMethods {
9
8
  commitment?: Commitment;
10
9
  minContextSlot?: Slot;
11
10
  }>): GetBlockHeightApiResponse;
12
- }
11
+ };
13
12
  export {};
14
13
  //# sourceMappingURL=getBlockHeight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBlockHeight.d.ts","sourceRoot":"","sources":["../../src/getBlockHeight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEvF,KAAK,yBAAyB,GAAG,2BAA2B,CAAC;AAE7D,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACpD;;OAEG;IACH,cAAc,CACV,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,UAAU,CAAC;QAExB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,yBAAyB,CAAC;CAChC"}
1
+ {"version":3,"file":"getBlockHeight.d.ts","sourceRoot":"","sources":["../../src/getBlockHeight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,yBAAyB,GAAG,MAAM,CAAC;AAExC,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,cAAc,CACV,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,UAAU,CAAC;QAExB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,yBAAyB,CAAC;CAChC,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import type { Address } from '@solana/addresses';
2
- import type { RpcApiMethods } from '@solana/rpc-spec';
3
- import type { Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
4
- type NumberOfLeaderSlots = U64UnsafeBeyond2Pow53Minus1;
5
- type NumberOfBlocksProduced = U64UnsafeBeyond2Pow53Minus1;
2
+ import type { Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types';
3
+ type NumberOfLeaderSlots = bigint;
4
+ type NumberOfBlocksProduced = bigint;
6
5
  type SlotRange = Readonly<{
7
6
  firstSlot: Slot;
8
7
  lastSlot: Slot;
@@ -27,7 +26,7 @@ type GetBlockProductionApiResponse<T> = Readonly<{
27
26
  byIdentity: T;
28
27
  range: SlotRange;
29
28
  }>;
30
- export interface GetBlockProductionApi extends RpcApiMethods {
29
+ export type GetBlockProductionApi = {
31
30
  /**
32
31
  * Returns recent block production information from the current or previous epoch.
33
32
  */
@@ -35,6 +34,6 @@ export interface GetBlockProductionApi extends RpcApiMethods {
35
34
  identity: TIdentity;
36
35
  }>): SolanaRpcResponse<GetBlockProductionApiResponse<BlockProductionWithSingleIdentity<TIdentity>>>;
37
36
  getBlockProduction(config?: GetBlockProductionApiConfigBase): SolanaRpcResponse<GetBlockProductionApiResponse<BlockProductionWithAllIdentities>>;
38
- }
37
+ };
39
38
  export {};
40
39
  //# sourceMappingURL=getBlockProduction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBlockProduction.d.ts","sourceRoot":"","sources":["../../src/getBlockProduction.ts"],"names":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AC,CAAC;KAC9E,CAAC,CAAC;CACN,CAAC,CAAC;AAEH,KAAK,6BAA6B,CAAC,CAAC,IAAI,QAAQ,CAAC;IAC7C,UAAU,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG;IAChC;;OAEG;IACH,kBAAkB,CAAC,SAAS,SAAS,OAAO,EACxC,MAAM,EAAE,+BAA+B,GACnC,QAAQ,CAAC;QACL,QAAQ,EAAE,SAAS,CAAC;KACvB,CAAC,GACP,iBAAiB,CAAC,6BAA6B,CAAC,iCAAiC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAClG,kBAAkB,CACd,MAAM,CAAC,EAAE,+BAA+B,GACzC,iBAAiB,CAAC,6BAA6B,CAAC,gCAAgC,CAAC,CAAC,CAAC;CACzF,CAAC"}
@@ -1,14 +1,13 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
1
  import type { Slot, UnixTimestamp } from '@solana/rpc-types';
3
2
  /** Estimated production time, as Unix timestamp (seconds since the Unix epoch) */
4
3
  type GetBlockTimeApiResponse = UnixTimestamp;
5
- export interface GetBlockTimeApi extends RpcApiMethods {
4
+ export type GetBlockTimeApi = {
6
5
  /**
7
6
  * Returns the estimated production time of a block.
8
7
  */
9
8
  getBlockTime(
10
9
  /** block number, identified by Slot */
11
10
  blockNumber: Slot): GetBlockTimeApiResponse;
12
- }
11
+ };
13
12
  export {};
14
13
  //# sourceMappingURL=getBlockTime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBlockTime.d.ts","sourceRoot":"","sources":["../../src/getBlockTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7D,kFAAkF;AAClF,KAAK,uBAAuB,GAAG,aAAa,CAAC;AAE7C,MAAM,WAAW,eAAgB,SAAQ,aAAa;IAClD;;OAEG;IACH,YAAY;IACR,uCAAuC;IACvC,WAAW,EAAE,IAAI,GAClB,uBAAuB,CAAC;CAC9B"}
1
+ {"version":3,"file":"getBlockTime.d.ts","sourceRoot":"","sources":["../../src/getBlockTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7D,kFAAkF;AAClF,KAAK,uBAAuB,GAAG,aAAa,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG;IAC1B;;OAEG;IACH,YAAY;IACR,uCAAuC;IACvC,WAAW,EAAE,IAAI,GAClB,uBAAuB,CAAC;CAC9B,CAAC"}
@@ -1,13 +1,12 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
1
  import type { Commitment, Slot } from '@solana/rpc-types';
3
2
  type GetBlocksApiResponse = Slot[];
4
- export interface GetBlocksApi extends RpcApiMethods {
3
+ export type GetBlocksApi = {
5
4
  /**
6
5
  * Returns a list of confirmed blocks between two slots
7
6
  */
8
7
  getBlocks(startSlot: Slot, endSlotInclusive?: Slot, config?: Readonly<{
9
8
  commitment?: Exclude<Commitment, 'processed'>;
10
9
  }>): GetBlocksApiResponse;
11
- }
10
+ };
12
11
  export {};
13
12
  //# sourceMappingURL=getBlocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBlocks.d.ts","sourceRoot":"","sources":["../../src/getBlocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,oBAAoB,GAAG,IAAI,EAAE,CAAC;AAEnC,MAAM,WAAW,YAAa,SAAQ,aAAa;IAC/C;;OAEG;IACH,SAAS,CACL,SAAS,EAAE,IAAI,EACf,gBAAgB,CAAC,EAAE,IAAI,EACvB,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;KACjD,CAAC,GACH,oBAAoB,CAAC;CAC3B"}
1
+ {"version":3,"file":"getBlocks.d.ts","sourceRoot":"","sources":["../../src/getBlocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,oBAAoB,GAAG,IAAI,EAAE,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG;IACvB;;OAEG;IACH,SAAS,CACL,SAAS,EAAE,IAAI,EACf,gBAAgB,CAAC,EAAE,IAAI,EACvB,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;KACjD,CAAC,GACH,oBAAoB,CAAC;CAC3B,CAAC"}
@@ -1,7 +1,6 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
1
  import type { Commitment, Slot } from '@solana/rpc-types';
3
2
  type GetBlocksWithLimitApiResponse = Slot[];
4
- export interface GetBlocksWithLimitApi extends RpcApiMethods {
3
+ export type GetBlocksWithLimitApi = {
5
4
  /**
6
5
  * Returns a list of confirmed blocks starting at the given slot
7
6
  * for up to `limit` blocks
@@ -9,6 +8,6 @@ export interface GetBlocksWithLimitApi extends RpcApiMethods {
9
8
  getBlocksWithLimit(startSlot: Slot, limit: number, config?: Readonly<{
10
9
  commitment?: Exclude<Commitment, 'processed'>;
11
10
  }>): GetBlocksWithLimitApiResponse;
12
- }
11
+ };
13
12
  export {};
14
13
  //# sourceMappingURL=getBlocksWithLimit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBlocksWithLimit.d.ts","sourceRoot":"","sources":["../../src/getBlocksWithLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,6BAA6B,GAAG,IAAI,EAAE,CAAC;AAE5C,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;;OAGG;IACH,kBAAkB,CACd,SAAS,EAAE,IAAI,EAGf,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;KACjD,CAAC,GACH,6BAA6B,CAAC;CACpC"}
1
+ {"version":3,"file":"getBlocksWithLimit.d.ts","sourceRoot":"","sources":["../../src/getBlocksWithLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,6BAA6B,GAAG,IAAI,EAAE,CAAC;AAE5C,MAAM,MAAM,qBAAqB,GAAG;IAChC;;;OAGG;IACH,kBAAkB,CACd,SAAS,EAAE,IAAI,EAGf,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;KACjD,CAAC,GACH,6BAA6B,CAAC;CACpC,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { Address } from '@solana/addresses';
2
- import type { RpcApiMethods } from '@solana/rpc-spec';
3
2
  type ClusterNode = Readonly<{
4
3
  /** The unique identifier of the node's feature set */
5
4
  featureSet: number | null;
@@ -7,15 +6,29 @@ type ClusterNode = Readonly<{
7
6
  gossip: string | null;
8
7
  /** Node public key, as base-58 encoded string */
9
8
  pubkey: Address;
9
+ /** WebSocket PubSub network address for the node */
10
+ pubsub: string | null;
10
11
  /**
11
12
  * JSON RPC network address for the node,
12
13
  * or `null` if the JSON RPC service is not enabled
13
14
  */
14
15
  rpc: string | null;
16
+ /** Server repair UDP network address for the node */
17
+ serveRepair: string | null;
15
18
  /** The shred version the node has been configured to use */
16
19
  shredVersion: number | null;
17
20
  /** TPU network address for the node */
18
21
  tpu: string | null;
22
+ /** Tpu UDP forwards network address for the node */
23
+ tpuForwards: string | null;
24
+ /** Tpu QUIC forwards network address for the node */
25
+ tpuForwardsQuic: string | null;
26
+ /** Tpu QUIC network address for the node */
27
+ tpuQuic: string | null;
28
+ /** Tpu UDP vote network address for the node */
29
+ tpuVote: string | null;
30
+ /** Tvu UDP network address for the node */
31
+ tvu: string | null;
19
32
  /**
20
33
  * The software version of the node,
21
34
  * or `null` if the version information is not available
@@ -23,12 +36,12 @@ type ClusterNode = Readonly<{
23
36
  version: string | null;
24
37
  }>;
25
38
  type GetClusterNodesApiResponse = readonly ClusterNode[];
26
- export interface GetClusterNodesApi extends RpcApiMethods {
39
+ export type GetClusterNodesApi = {
27
40
  /**
28
41
  * Returns information about all the nodes participating in the cluster
29
42
  * Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
30
43
  */
31
44
  getClusterNodes(NO_CONFIG?: Record<string, never>): GetClusterNodesApiResponse;
32
- }
45
+ };
33
46
  export {};
34
47
  //# sourceMappingURL=getClusterNodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getClusterNodes.d.ts","sourceRoot":"","sources":["../../src/getClusterNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,WAAW,GAAG,QAAQ,CAAC;IACxB,sDAAsD;IACtD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,iDAAiD;IACjD,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,4DAA4D;IAC5D,Y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IAC3C,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC,CAAC;AAEH,KAAK,0BAA0B,GAAG,SAAS,WAAW,EAAE,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;;OAGG;IACH,eAAe,CAEX,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,0BAA0B,CAAC;CACjC,CAAC"}
@@ -1,20 +1,19 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
- import type { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
1
+ import type { Commitment, Slot } from '@solana/rpc-types';
3
2
  type GetEpochInfoApiResponse = Readonly<{
4
3
  /** the current slot */
5
4
  absoluteSlot: Slot;
6
5
  /** the current block height */
7
- blockHeight: U64UnsafeBeyond2Pow53Minus1;
6
+ blockHeight: bigint;
8
7
  /** the current epoch */
9
- epoch: U64UnsafeBeyond2Pow53Minus1;
8
+ epoch: bigint;
10
9
  /** the current slot relative to the start of the current epoch */
11
- slotIndex: U64UnsafeBeyond2Pow53Minus1;
10
+ slotIndex: bigint;
12
11
  /** the number of slots in this epoch */
13
- slotsInEpoch: U64UnsafeBeyond2Pow53Minus1;
12
+ slotsInEpoch: bigint;
14
13
  /** total number of transactions processed without error since genesis */
15
- transactionCount: U64UnsafeBeyond2Pow53Minus1 | null;
14
+ transactionCount: bigint | null;
16
15
  }>;
17
- export interface GetEpochInfoApi extends RpcApiMethods {
16
+ export type GetEpochInfoApi = {
18
17
  /**
19
18
  * Returns the balance of the account of provided Pubkey
20
19
  */
@@ -22,6 +21,6 @@ export interface GetEpochInfoApi extends RpcApiMethods {
22
21
  commitment?: Commitment;
23
22
  minContextSlot?: Slot;
24
23
  }>): GetEpochInfoApiResponse;
25
- }
24
+ };
26
25
  export {};
27
26
  //# sourceMappingURL=getEpochInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getEpochInfo.d.ts","sourceRoot":"","sources":["../../src/getEpochInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEvF,KAAK,uBAAuB,GAAG,QAAQ,CAAC;IACpC,uBAAuB;IACvB,YAAY,EAAE,IAAI,CAAC;IACnB,+BAA+B;IAC/B,WAAW,EAAE,2BAA2B,CAAC;IACzC,wBAAwB;IACxB,KAAK,EAAE,2BAA2B,CAAC;IACnC,kEAAkE;IAClE,SAAS,EAAE,2BAA2B,CAAC;IACvC,wCAAwC;IACxC,YAAY,EAAE,2BAA2B,CAAC;IAC1C,yEAAyE;IACzE,gBAAgB,EAAE,2BAA2B,GAAG,IAAI,CAAC;CACxD,CAAC,CAAC;AAEH,MAAM,WAAW,eAAgB,SAAQ,aAAa;IAClD;;OAEG;IACH,YAAY,CACR,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,uBAAuB,CAAC;CAC9B"}
1
+ {"version":3,"file":"getEpochInfo.d.ts","sourceRoot":"","sources":["../../src/getEpochInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,uBAAuB,GAAG,QAAQ,CAAC;IACpC,uBAAuB;IACvB,YAAY,EAAE,IAAI,CAAC;IACnB,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG;IAC1B;;OAEG;IACH,YAAY,CACR,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,uBAAuB,CAAC;CAC9B,CAAC"}
@@ -1,23 +1,21 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
- import type { U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
3
1
  type GetEpochScheduleApiResponse = Readonly<{
4
2
  /** first normal-length epoch, log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH) */
5
- firstNormalEpoch: U64UnsafeBeyond2Pow53Minus1;
3
+ firstNormalEpoch: bigint;
6
4
  /** MINIMUM_SLOTS_PER_EPOCH * (2^(firstNormalEpoch) - 1) */
7
- firstNormalSlot: U64UnsafeBeyond2Pow53Minus1;
5
+ firstNormalSlot: bigint;
8
6
  /** the number of slots before beginning of an epoch to calculate a leader schedule for that epoch */
9
- leaderScheduleSlotOffset: U64UnsafeBeyond2Pow53Minus1;
7
+ leaderScheduleSlotOffset: bigint;
10
8
  /** the maximum number of slots in each epoch */
11
- slotsPerEpoch: U64UnsafeBeyond2Pow53Minus1;
9
+ slotsPerEpoch: bigint;
12
10
  /** whether epochs start short and grow */
13
11
  warmup: boolean;
14
12
  }>;
15
- export interface GetEpochScheduleApi extends RpcApiMethods {
13
+ export type GetEpochScheduleApi = {
16
14
  /**
17
15
  * Returns the epoch schedule information from this cluster's genesis config
18
16
  * Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
19
17
  */
20
18
  getEpochSchedule(NO_CONFIG?: Record<string, never>): GetEpochScheduleApiResponse;
21
- }
19
+ };
22
20
  export {};
23
21
  //# sourceMappingURL=getEpochSchedule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getEpochSchedule.d.ts","sourceRoot":"","sources":["../../src/getEpochSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErE,KAAK,2BAA2B,GAAG,QAAQ,CAAC;IACxC,qFAAqF;IACrF,gBAAgB,EAAE,2BAA2B,CAAC;IAC9C,2DAA2D;IAC3D,eAAe,EAAE,2BAA2B,CAAC;IAC7C,qGAAqG;IACrG,wBAAwB,EAAE,2BAA2B,CAAC;IACtD,gDAAgD;IAChD,aAAa,EAAE,2BAA2B,CAAC;IAC3C,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD;;;OAGG;IACH,gBAAgB,CAEZ,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,2BAA2B,CAAC;CAClC"}
1
+ {"version":3,"file":"getEpochSchedule.d.ts","sourceRoot":"","sources":["../../src/getEpochSchedule.ts"],"names":[],"mappings":"AAAA,KAAK,2BAA2B,GAAG,QAAQ,CAAC;IACxC,qFAAqF;IACrF,gBAAgB,EAAE,MAAM,CAAC;IACzB,2DAA2D;IAC3D,eAAe,EAAE,MAAM,CAAC;IACxB,qGAAqG;IACrG,wBAAwB,EAAE,MAAM,CAAC;IACjC,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;;OAGG;IACH,gBAAgB,CAEZ,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,2BAA2B,CAAC;CAClC,CAAC"}
@@ -1,9 +1,8 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
- import type { Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
1
+ import type { Commitment, Lamports, Slot, SolanaRpcResponse } from '@solana/rpc-types';
3
2
  import type { TransactionMessageBytesBase64 } from '@solana/transactions';
4
3
  /** Fee corresponding to the message at the specified blockhash */
5
- type GetFeeForMessageApiResponse = U64UnsafeBeyond2Pow53Minus1 | null;
6
- export interface GetFeeForMessageApi extends RpcApiMethods {
4
+ type GetFeeForMessageApiResponse = Lamports | null;
5
+ export type GetFeeForMessageApi = {
7
6
  /**
8
7
  * Returns the fee the network will charge for a particular Message
9
8
  */
@@ -11,6 +10,6 @@ export interface GetFeeForMessageApi extends RpcApiMethods {
11
10
  commitment?: Commitment;
12
11
  minContextSlot?: Slot;
13
12
  }>): SolanaRpcResponse<GetFeeForMessageApiResponse>;
14
- }
13
+ };
15
14
  export {};
16
15
  //# sourceMappingURL=getFeeForMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFeeForMessage.d.ts","sourceRoot":"","sources":["../../src/getFeeForMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAC1G,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAE1E,kEAAkE;AAClE,KAAK,2BAA2B,GAAG,2BAA2B,GAAG,IAAI,CAAC;AAEtE,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD;;OAEG;IACH,gBAAgB,CACZ,OAAO,EAAE,6BAA6B,EACtC,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,iBAAiB,CAAC,2BAA2B,CAAC,CAAC;CACrD"}
1
+ {"version":3,"file":"getFeeForMessage.d.ts","sourceRoot":"","sources":["../../src/getFeeForMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAE1E,kEAAkE;AAClE,KAAK,2BAA2B,GAAG,QAAQ,GAAG,IAAI,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,gBAAgB,CACZ,OAAO,EAAE,6BAA6B,EACtC,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,iBAAiB,CAAC,2BAA2B,CAAC,CAAC;CACrD,CAAC"}
@@ -1,12 +1,11 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
1
  import type { Slot } from '@solana/rpc-types';
3
2
  type GetFirstAvailableBlockApiResponse = Slot;
4
- export interface GetFirstAvailableBlockApi extends RpcApiMethods {
3
+ export type GetFirstAvailableBlockApi = {
5
4
  /**
6
5
  * Returns the slot of the lowest confirmed block that has not been purged from the ledger
7
6
  * Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
8
7
  */
9
8
  getFirstAvailableBlock(NO_CONFIG?: Record<string, never>): GetFirstAvailableBlockApiResponse;
10
- }
9
+ };
11
10
  export {};
12
11
  //# sourceMappingURL=getFirstAvailableBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFirstAvailableBlock.d.ts","sourceRoot":"","sources":["../../src/getFirstAvailableBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,iCAAiC,GAAG,IAAI,CAAC;AAE9C,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC5D;;;OAGG;IACH,sBAAsB,CAElB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,iCAAiC,CAAC;CACxC"}
1
+ {"version":3,"file":"getFirstAvailableBlock.d.ts","sourceRoot":"","sources":["../../src/getFirstAvailableBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,iCAAiC,GAAG,IAAI,CAAC;AAE9C,MAAM,MAAM,yBAAyB,GAAG;IACpC;;;OAGG;IACH,sBAAsB,CAElB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,iCAAiC,CAAC;CACxC,CAAC"}
@@ -1,11 +1,10 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
1
  import type { Blockhash } from '@solana/rpc-types';
3
2
  type GetGenesisHashApiResponse = Blockhash;
4
- export interface GetGenesisHashApi extends RpcApiMethods {
3
+ export type GetGenesisHashApi = {
5
4
  /**
6
5
  * Returns the genesis hash
7
6
  */
8
7
  getGenesisHash(NO_CONFIG?: Record<string, never>): GetGenesisHashApiResponse;
9
- }
8
+ };
10
9
  export {};
11
10
  //# sourceMappingURL=getGenesisHash.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getGenesisHash.d.ts","sourceRoot":"","sources":["../../src/getGenesisHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,yBAAyB,GAAG,SAAS,CAAC;AAE3C,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACpD;;OAEG;IACH,cAAc,CAEV,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,yBAAyB,CAAC;CAChC"}
1
+ {"version":3,"file":"getGenesisHash.d.ts","sourceRoot":"","sources":["../../src/getGenesisHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,yBAAyB,GAAG,SAAS,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,cAAc,CAEV,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,yBAAyB,CAAC;CAChC,CAAC"}
@@ -1,10 +1,9 @@
1
- import type { RpcApiMethods } from '@solana/rpc-spec';
2
1
  type GetHealthApiResponse = 'ok';
3
- export interface GetHealthApi extends RpcApiMethods {
2
+ export type GetHealthApi = {
4
3
  /**
5
4
  * Returns the health status of the node ("ok" if healthy).
6
5
  */
7
6
  getHealth(NO_CONFIG?: Record<string, never>): GetHealthApiResponse;
8
- }
7
+ };
9
8
  export {};
10
9
  //# sourceMappingURL=getHealth.d.ts.map