@solana/rpc-api
Advanced tools
Comparing version 2.0.0-experimental.12ae1c6 to 2.0.0-experimental.e15a66f
import type { Address } from '@solana/addresses'; | ||
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types'; | ||
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, DataSlice } from './common.js'; | ||
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types'; | ||
type GetAccountInfoApiResponseBase = SolanaRpcResponse<AccountInfoBase | null>; | ||
@@ -6,0 +5,0 @@ type NestInRpcResponseOrNull<T> = Readonly<{ |
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { Base58EncodedBytes, Blockhash, Commitment, Slot, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types'; | ||
import type { Base58EncodedBytes, Blockhash, Commitment, Reward, Slot, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types'; | ||
import type { TransactionVersion } from '@solana/transactions'; | ||
import { Reward, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed } from './common-transactions.js'; | ||
type GetBlockApiResponseBase = Readonly<{ | ||
@@ -6,0 +5,0 @@ /** the blockhash of this block */ |
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { Commitment } from '@solana/rpc-types'; | ||
import type { F64UnsafeSeeDocumentation } from './common.js'; | ||
import type { Commitment, F64UnsafeSeeDocumentation } from '@solana/rpc-types'; | ||
type GetInflationGovernorApiResponse = Readonly<{ | ||
@@ -5,0 +4,0 @@ /** The initial inflation percentage from time 0 */ |
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; | ||
import type { F64UnsafeSeeDocumentation } from './common.js'; | ||
import type { F64UnsafeSeeDocumentation, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; | ||
type GetInflationRateApiResponse = Readonly<{ | ||
@@ -5,0 +4,0 @@ /** Epoch for which these values are valid */ |
import type { Address } from '@solana/addresses'; | ||
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types'; | ||
import { AccountInfoBase, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, DataSlice } from './common.js'; | ||
import type { AccountInfoBase, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types'; | ||
type GetMultipleAccountsApiResponseBase = AccountInfoBase | null; | ||
@@ -6,0 +5,0 @@ type GetMultipleAccountsApiCommonConfig = Readonly<{ |
import type { Address } from '@solana/addresses'; | ||
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types'; | ||
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, AccountInfoWithPubkey, DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter } from './common.js'; | ||
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, AccountInfoWithPubkey, Commitment, DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot, SolanaRpcResponse } from '@solana/rpc-types'; | ||
type GetProgramAccountsApiCommonConfig = Readonly<{ | ||
@@ -6,0 +5,0 @@ /** @defaultValue "finalized" */ |
import type { Address } from '@solana/addresses'; | ||
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { Slot } from '@solana/rpc-types'; | ||
import { MicroLamportsUnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
import type { MicroLamportsUnsafeBeyond2Pow53Minus1, Slot } from '@solana/rpc-types'; | ||
type GetRecentPrioritizationFeesApiResponse = Readonly<{ | ||
@@ -6,0 +5,0 @@ /** |
import type { Address } from '@solana/addresses'; | ||
import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types'; | ||
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; | ||
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice } from './common.js'; | ||
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; | ||
type TokenAccountInfoWithJsonData = Readonly<{ | ||
@@ -7,0 +6,0 @@ data: Readonly<{ |
import type { Address } from '@solana/addresses'; | ||
import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types'; | ||
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; | ||
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice } from './common.js'; | ||
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; | ||
type TokenAccountInfoWithJsonData = Readonly<{ | ||
@@ -7,0 +6,0 @@ data: Readonly<{ |
@@ -1,2 +0,2 @@ | ||
import { Address } from '@solana/addresses'; | ||
import type { Address } from '@solana/addresses'; | ||
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
@@ -3,0 +3,0 @@ import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types'; |
import type { Address } from '@solana/addresses'; | ||
import type { Signature } from '@solana/keys'; | ||
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Blockhash, Commitment, LamportsUnsafeBeyond2Pow53Minus1, Slot, TransactionError, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types'; | ||
import type { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Blockhash, Commitment, LamportsUnsafeBeyond2Pow53Minus1, Reward, Slot, TokenBalance, TransactionError, TransactionStatus, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types'; | ||
import type { TransactionVersion } from '@solana/transactions'; | ||
import type { TokenBalance } from './common.js'; | ||
import type { Reward, TransactionStatus } from './common-transactions.js'; | ||
type ReturnData = { | ||
@@ -9,0 +7,0 @@ /** the program that generated the return data */ |
@@ -56,10 +56,11 @@ import { RpcApi } from '@solana/rpc-spec'; | ||
import { SimulateTransactionApi } from './simulateTransaction.js'; | ||
export type SolanaRpcApi = GetAccountInfoApi & GetBalanceApi & GetBlockApi & GetBlockCommitmentApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetBlocksWithLimitApi & GetBlockTimeApi & GetClusterNodesApi & GetEpochInfoApi & GetEpochScheduleApi & GetFeeForMessageApi & GetFirstAvailableBlockApi & GetGenesisHashApi & GetHealthApi & GetHighestSnapshotSlotApi & GetIdentityApi & GetInflationGovernorApi & GetInflationRateApi & GetInflationRewardApi & GetLargestAccountsApi & GetLatestBlockhashApi & GetLeaderScheduleApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetMinimumBalanceForRentExemptionApi & GetMultipleAccountsApi & GetProgramAccountsApi & GetRecentPerformanceSamplesApi & GetRecentPrioritizationFeesApi & GetSignaturesForAddressApi & GetSignatureStatusesApi & GetSlotApi & GetSlotLeaderApi & GetSlotLeadersApi & GetStakeActivationApi & GetStakeMinimumDelegationApi & GetSupplyApi & GetTokenAccountBalanceApi & GetTokenAccountsByDelegateApi & GetTokenAccountsByOwnerApi & GetTokenLargestAccountsApi & GetTokenSupplyApi & GetTransactionApi & GetTransactionCountApi & GetVersionApi & GetVoteAccountsApi & IsBlockhashValidApi & MinimumLedgerSlotApi & RequestAirdropApi & SendTransactionApi & SimulateTransactionApi; | ||
export type SolanaRpcApiDevnet = SolanaRpcApi; | ||
export type SolanaRpcApiTestnet = SolanaRpcApi; | ||
export type SolanaRpcApiMainnet = Omit<SolanaRpcApi, 'requestAirdrop'>; | ||
type SolanaRpcApiForAllClusters = GetAccountInfoApi & GetBalanceApi & GetBlockApi & GetBlockCommitmentApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetBlocksWithLimitApi & GetBlockTimeApi & GetClusterNodesApi & GetEpochInfoApi & GetEpochScheduleApi & GetFeeForMessageApi & GetFirstAvailableBlockApi & GetGenesisHashApi & GetHealthApi & GetHighestSnapshotSlotApi & GetIdentityApi & GetInflationGovernorApi & GetInflationRateApi & GetInflationRewardApi & GetLargestAccountsApi & GetLatestBlockhashApi & GetLeaderScheduleApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetMinimumBalanceForRentExemptionApi & GetMultipleAccountsApi & GetProgramAccountsApi & GetRecentPerformanceSamplesApi & GetRecentPrioritizationFeesApi & GetSignaturesForAddressApi & GetSignatureStatusesApi & GetSlotApi & GetSlotLeaderApi & GetSlotLeadersApi & GetStakeActivationApi & GetStakeMinimumDelegationApi & GetSupplyApi & GetTokenAccountBalanceApi & GetTokenAccountsByDelegateApi & GetTokenAccountsByOwnerApi & GetTokenLargestAccountsApi & GetTokenSupplyApi & GetTransactionApi & GetTransactionCountApi & GetVersionApi & GetVoteAccountsApi & IsBlockhashValidApi & MinimumLedgerSlotApi & SendTransactionApi & SimulateTransactionApi; | ||
type SolanaRpcApiForTestClusters = SolanaRpcApiForAllClusters & RequestAirdropApi; | ||
export type SolanaRpcApi = SolanaRpcApiForTestClusters; | ||
export type SolanaRpcApiDevnet = SolanaRpcApiForTestClusters; | ||
export type SolanaRpcApiTestnet = SolanaRpcApiForTestClusters; | ||
export type SolanaRpcApiMainnet = SolanaRpcApiForAllClusters; | ||
export type { GetAccountInfoApi, GetBalanceApi, GetBlockApi, GetBlockCommitmentApi, GetBlockHeightApi, GetBlockProductionApi, GetBlocksApi, GetBlocksWithLimitApi, GetBlockTimeApi, GetClusterNodesApi, GetEpochInfoApi, GetEpochScheduleApi, GetFeeForMessageApi, GetFirstAvailableBlockApi, GetGenesisHashApi, GetHealthApi, GetHighestSnapshotSlotApi, GetIdentityApi, GetInflationGovernorApi, GetInflationRateApi, GetInflationRewardApi, GetLargestAccountsApi, GetLatestBlockhashApi, GetLeaderScheduleApi, GetMaxRetransmitSlotApi, GetMaxShredInsertSlotApi, GetMinimumBalanceForRentExemptionApi, GetMultipleAccountsApi, GetProgramAccountsApi, GetRecentPerformanceSamplesApi, GetRecentPrioritizationFeesApi, GetSignaturesForAddressApi, GetSignatureStatusesApi, GetSlotApi, GetSlotLeaderApi, GetSlotLeadersApi, GetStakeActivationApi, GetStakeMinimumDelegationApi, GetSupplyApi, GetTokenAccountBalanceApi, GetTokenAccountsByDelegateApi, GetTokenAccountsByOwnerApi, GetTokenLargestAccountsApi, GetTokenSupplyApi, GetTransactionApi, GetTransactionCountApi, GetVersionApi, GetVoteAccountsApi, IsBlockhashValidApi, MinimumLedgerSlotApi, RequestAirdropApi, SendTransactionApi, SimulateTransactionApi, }; | ||
export type { DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter } from './common.js'; | ||
type Config = ParamsTransformerConfig; | ||
export declare function createSolanaRpcApi<TRpcMethods extends SolanaRpcApi | SolanaRpcApiDevnet | SolanaRpcApiTestnet | SolanaRpcApiMainnet = SolanaRpcApi>(config?: Config): RpcApi<TRpcMethods>; | ||
//# sourceMappingURL=index.d.ts.map |
import type { Address } from '@solana/addresses'; | ||
import type { RpcApiMethods } from '@solana/rpc-spec'; | ||
import type { Base58EncodedBytes, Base64EncodedDataResponse, Commitment, Slot, SolanaRpcResponse, TransactionError, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; | ||
import type { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedDataResponse, Commitment, Slot, SolanaRpcResponse, TransactionError, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; | ||
import type { Base64EncodedWireTransaction } from '@solana/transactions'; | ||
import { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData } from './common.js'; | ||
type SimulateTransactionConfigBase = Readonly<{ | ||
@@ -7,0 +6,0 @@ /** |
{ | ||
"name": "@solana/rpc-api", | ||
"version": "2.0.0-experimental.12ae1c6", | ||
"version": "2.0.0-experimental.e15a66f", | ||
"description": "Defines all default Solana RPC methods as types", | ||
@@ -49,11 +49,11 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-development", | ||
"@solana/codecs-core": "2.0.0-development", | ||
"@solana/codecs-strings": "2.0.0-development", | ||
"@solana/keys": "2.0.0-development", | ||
"@solana/rpc-parsed-types": "2.0.0-development", | ||
"@solana/rpc-spec": "2.0.0-development", | ||
"@solana/rpc-transformers": "2.0.0-development", | ||
"@solana/transactions": "2.0.0-development", | ||
"@solana/rpc-types": "2.0.0-development" | ||
"@solana/addresses": "2.0.0-experimental.e15a66f", | ||
"@solana/codecs-core": "2.0.0-experimental.e15a66f", | ||
"@solana/codecs-strings": "2.0.0-experimental.e15a66f", | ||
"@solana/keys": "2.0.0-experimental.e15a66f", | ||
"@solana/rpc-parsed-types": "2.0.0-experimental.e15a66f", | ||
"@solana/rpc-spec": "2.0.0-experimental.e15a66f", | ||
"@solana/rpc-transformers": "2.0.0-experimental.e15a66f", | ||
"@solana/rpc-types": "2.0.0-experimental.e15a66f", | ||
"@solana/transactions": "2.0.0-experimental.e15a66f" | ||
}, | ||
@@ -60,0 +60,0 @@ "bundlewatch": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
293009
122
2862
+ Added@solana/addresses@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/assertions@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/codecs-core@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/codecs-data-structures@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/codecs-numbers@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/codecs-strings@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/errors@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/functional@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/keys@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/rpc-parsed-types@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/rpc-spec@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/rpc-spec-types@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/rpc-subscriptions-spec@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/rpc-transformers@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/rpc-types@2.0.0-experimental.e15a66f(transitive)
+ Added@solana/transactions@2.0.0-experimental.e15a66f(transitive)
+ Addedchalk@5.4.1(transitive)
+ Addedcommander@11.1.0(transitive)
+ Addedfastestsmallesttextencoderdecoder@1.0.22(transitive)
- Removed@solana/rpc-types@2.0.0-development(transitive)