@solana/rpc-core
Advanced tools
Comparing version 2.0.0-experimental.6d27574 to 2.0.0-experimental.6d93188
import { Address } from '@solana/addresses'; | ||
import { LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; | ||
import { Blockhash, TransactionVersion } from '@solana/transactions'; | ||
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Blockhash, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; | ||
import { TransactionVersion } from '@solana/transactions'; | ||
import { TransactionError } from '../transaction-error.js'; | ||
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, SignedLamportsAsI64Unsafe, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
import { SignedLamportsAsI64Unsafe, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
type AddressTableLookup = Readonly<{ | ||
@@ -7,0 +7,0 @@ /** public key for an address lookup table account. */ |
import { Address } from '@solana/addresses'; | ||
import { LamportsUnsafeBeyond2Pow53Minus1, StringifiedBigInt, StringifiedNumber } from '@solana/rpc-types'; | ||
import type { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Base64EncodedZStdCompressedDataResponse } from '@solana/rpc-types'; | ||
import { LamportsUnsafeBeyond2Pow53Minus1, TokenAmount } from '@solana/rpc-types'; | ||
export type DataSlice = Readonly<{ | ||
@@ -20,14 +21,2 @@ offset: number; | ||
}>; | ||
export type Base58EncodedBytes = string & { | ||
readonly __brand: unique symbol; | ||
}; | ||
export type Base64EncodedBytes = string & { | ||
readonly __brand: unique symbol; | ||
}; | ||
export type Base64EncodedZStdCompressedBytes = string & { | ||
readonly __brand: unique symbol; | ||
}; | ||
export type Base58EncodedDataResponse = [Base58EncodedBytes, 'base58']; | ||
export type Base64EncodedDataResponse = [Base64EncodedBytes, 'base64']; | ||
export type Base64EncodedZStdCompressedDataResponse = [Base64EncodedZStdCompressedBytes, 'base64+zstd']; | ||
export type AccountInfoBase = Readonly<{ | ||
@@ -71,8 +60,2 @@ /** indicates if the account contains a program (and is strictly read-only) */ | ||
}>; | ||
export type TokenAmount = Readonly<{ | ||
amount: StringifiedBigInt; | ||
decimals: number; | ||
uiAmount: number | null; | ||
uiAmountString: StringifiedNumber; | ||
}>; | ||
export type TokenBalance = Readonly<{ | ||
@@ -89,15 +72,2 @@ /** Index of the account in which the token balance is provided for. */ | ||
}>; | ||
type TokenAccountState = 'initialized' | 'uninitialized' | 'frozen'; | ||
export type TokenAccount = Readonly<{ | ||
mint: Address; | ||
owner: Address; | ||
tokenAmount: TokenAmount; | ||
delegate?: Address; | ||
state: TokenAccountState; | ||
isNative: boolean; | ||
rentExemptReserve?: TokenAmount; | ||
delegatedAmount?: TokenAmount; | ||
closeAuthority?: Address; | ||
extensions?: unknown[]; | ||
}>; | ||
export type GetProgramAccountsMemcmpFilter = Readonly<{ | ||
@@ -111,3 +81,2 @@ offset: U64UnsafeBeyond2Pow53Minus1; | ||
}>; | ||
export {}; | ||
//# sourceMappingURL=common.d.ts.map |
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Commitment, UnixTimestamp } from '@solana/rpc-types'; | ||
import { Blockhash, TransactionVersion } from '@solana/transactions'; | ||
import { Base58EncodedBytes, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
import type { Base58EncodedBytes, Blockhash, Commitment, UnixTimestamp } from '@solana/rpc-types'; | ||
import { TransactionVersion } from '@solana/transactions'; | ||
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
import { Reward, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed } from './common-transactions.js'; | ||
@@ -6,0 +6,0 @@ type GetBlockApiResponseBase = Readonly<{ |
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Blockhash } from '@solana/transactions'; | ||
import type { Blockhash } from '@solana/rpc-types'; | ||
type GetGenesisHashApiResponse = Blockhash; | ||
@@ -4,0 +4,0 @@ export interface GetGenesisHashApi extends IRpcApiMethods { |
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import { Blockhash } from '@solana/transactions'; | ||
import type { Blockhash, Commitment } from '@solana/rpc-types'; | ||
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
@@ -5,0 +4,0 @@ type GetLatestBlockhashApiResponse = RpcResponse<{ |
import { Address } from '@solana/addresses'; | ||
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import { RpcResponse, TokenAmount } from './common.js'; | ||
import { Commitment, TokenAmount } from '@solana/rpc-types'; | ||
import { RpcResponse } from './common.js'; | ||
type GetTokenAccountBalanceApiResponse = RpcResponse<TokenAmount>; | ||
@@ -6,0 +6,0 @@ export interface GetTokenAccountBalanceApi extends IRpcApiMethods { |
import { Address } from '@solana/addresses'; | ||
import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types'; | ||
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice, RpcResponse, Slot, TokenAccount, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
type TokenAccountInfoWithJsonData = Readonly<{ | ||
data: Readonly<{ | ||
/** Name of the program that owns this account. */ | ||
program: { | ||
info: TokenAccount; | ||
program: Address; | ||
parsed: { | ||
info: JsonParsedTokenAccount; | ||
type: 'account'; | ||
}; | ||
parsed: unknown; | ||
space: U64UnsafeBeyond2Pow53Minus1; | ||
@@ -14,0 +15,0 @@ }>; |
import { Address } from '@solana/addresses'; | ||
import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types'; | ||
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice, RpcResponse, Slot, TokenAccount, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
type TokenAccountInfoWithJsonData = Readonly<{ | ||
data: Readonly<{ | ||
/** Name of the program that owns this account. */ | ||
program: { | ||
info: TokenAccount; | ||
program: Address; | ||
parsed: { | ||
info: JsonParsedTokenAccount; | ||
type: 'account'; | ||
}; | ||
parsed: unknown; | ||
space: U64UnsafeBeyond2Pow53Minus1; | ||
@@ -14,0 +15,0 @@ }>; |
import { Address } from '@solana/addresses'; | ||
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import { RpcResponse, TokenAmount } from './common.js'; | ||
import { Commitment, TokenAmount } from '@solana/rpc-types'; | ||
import { RpcResponse } from './common.js'; | ||
type GetTokenLargestAccountsApiResponse = RpcResponse<TokenAmount & { | ||
@@ -6,0 +6,0 @@ address: Address; |
import { Address } from '@solana/addresses'; | ||
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import { RpcResponse, TokenAmount } from './common.js'; | ||
import { Commitment, TokenAmount } from '@solana/rpc-types'; | ||
import { RpcResponse } from './common.js'; | ||
type GetTokenSupplyApiResponse = RpcResponse<TokenAmount>; | ||
@@ -6,0 +6,0 @@ export interface GetTokenSupplyApi extends IRpcApiMethods { |
import { Address } from '@solana/addresses'; | ||
import { Signature } from '@solana/keys'; | ||
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types'; | ||
import { Blockhash, TransactionVersion } from '@solana/transactions'; | ||
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Blockhash, Commitment, LamportsUnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types'; | ||
import { TransactionVersion } from '@solana/transactions'; | ||
import { TransactionError } from '../transaction-error.js'; | ||
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Slot, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
import { Slot, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
import { Reward, TransactionStatus } from './common-transactions.js'; | ||
@@ -9,0 +9,0 @@ type ReturnData = { |
@@ -59,4 +59,4 @@ import { IRpcApi } from '@solana/rpc-transport'; | ||
export declare function createSolanaRpcApi(config?: Config): IRpcApi<SolanaRpcMethods>; | ||
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, GetStakeActivationApi, GetStakeMinimumDelegationApi, GetSupplyApi, GetTokenAccountBalanceApi, GetTokenAccountsByDelegateApi, GetTokenAccountsByOwnerApi, GetTokenLargestAccountsApi, GetTokenSupplyApi, GetTransactionApi, GetTransactionCountApi, GetVersionApi, GetVoteAccountsApi, IsBlockhashValidApi, MinimumLedgerSlotApi, RequestAirdropApi, SendTransactionApi, SimulateTransactionApi, }; | ||
export type { Base64EncodedDataResponse, DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot, } from './common.js'; | ||
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, Slot } from './common.js'; | ||
//# sourceMappingURL=index.d.ts.map |
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import { Blockhash } from '@solana/transactions'; | ||
import type { Blockhash, Commitment } from '@solana/rpc-types'; | ||
import { RpcResponse, Slot } from './common.js'; | ||
@@ -5,0 +4,0 @@ type IsBlockhashValidApiResponse = RpcResponse<boolean>; |
import { Address } from '@solana/addresses'; | ||
import type { IRpcApiMethods } from '@solana/rpc-transport'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import { Base58EncodedBytes, Base64EncodedDataResponse, Commitment } from '@solana/rpc-types'; | ||
import { Base64EncodedWireTransaction } from '@solana/transactions'; | ||
import { TransactionError } from '../transaction-error.js'; | ||
import { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedDataResponse, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
import { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js'; | ||
type SimulateTransactionConfigBase = Readonly<{ | ||
@@ -8,0 +8,0 @@ /** |
import type { IRpcApiSubscriptions } from '@solana/rpc-transport'; | ||
import { Commitment, UnixTimestamp } from '@solana/rpc-types'; | ||
import { Blockhash, TransactionVersion } from '@solana/transactions'; | ||
import { Base58EncodedBytes, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from '../rpc-methods/common.js'; | ||
import type { Base58EncodedBytes, Blockhash, Commitment, UnixTimestamp } from '@solana/rpc-types'; | ||
import { TransactionVersion } from '@solana/transactions'; | ||
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from '../rpc-methods/common.js'; | ||
import { Reward, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed } from '../rpc-methods/common-transactions.js'; | ||
@@ -6,0 +6,0 @@ type BlockNotificationsNotificationBase = Readonly<{ |
@@ -18,3 +18,3 @@ import { IRpcSubscriptionsApi } from '@solana/rpc-transport'; | ||
export declare function createSolanaRpcSubscriptionsApi_UNSTABLE(config?: Config): IRpcSubscriptionsApi<SolanaRpcSubscriptions & SolanaRpcSubscriptionsUnstable>; | ||
export type { AccountNotificationsApi, SignatureNotificationsApi, SlotNotificationsApi }; | ||
export type { AccountNotificationsApi, BlockNotificationsApi, LogsNotificationsApi, ProgramNotificationsApi, RootNotificationsApi, SignatureNotificationsApi, SlotNotificationsApi, SlotsUpdatesNotificationsApi, VoteNotificationsApi, }; | ||
//# sourceMappingURL=index.d.ts.map |
import { Address } from '@solana/addresses'; | ||
import type { IRpcApiSubscriptions } from '@solana/rpc-transport'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedBytes, RpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '../rpc-methods/common.js'; | ||
import { Base58EncodedBytes, Base64EncodedBytes, Commitment } from '@solana/rpc-types'; | ||
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, RpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '../rpc-methods/common.js'; | ||
type ProgramNotificationsMemcmpFilterBase58 = Readonly<{ | ||
@@ -6,0 +6,0 @@ offset: U64UnsafeBeyond2Pow53Minus1; |
import { Address } from '@solana/addresses'; | ||
import { Signature } from '@solana/keys'; | ||
import { UnixTimestamp } from '@solana/rpc-types'; | ||
import { Blockhash } from '@solana/transactions'; | ||
import type { Blockhash, UnixTimestamp } from '@solana/rpc-types'; | ||
import { Slot } from '../rpc-methods/common.js'; | ||
@@ -6,0 +5,0 @@ type VoteNotificationsApiNotification = Readonly<{ |
{ | ||
"name": "@solana/rpc-core", | ||
"version": "2.0.0-experimental.6d27574", | ||
"version": "2.0.0-experimental.6d93188", | ||
"description": "A library for making calls to the Solana JSON RPC API", | ||
@@ -67,10 +67,11 @@ "exports": { | ||
"version-from-git": "^1.1.1", | ||
"@solana/addresses": "2.0.0-experimental.6d27574", | ||
"@solana/codecs-strings": "2.0.0-experimental.6d27574", | ||
"@solana/keys": "2.0.0-experimental.6d27574", | ||
"@solana/codecs-core": "2.0.0-experimental.6d27574", | ||
"@solana/rpc-transport": "2.0.0-experimental.6d27574", | ||
"@solana/rpc-types": "2.0.0-experimental.6d27574", | ||
"@solana/codecs-strings": "2.0.0-experimental.6d93188", | ||
"@solana/keys": "2.0.0-experimental.6d93188", | ||
"@solana/codecs-core": "2.0.0-experimental.6d93188", | ||
"@solana/rpc-parsed-types": "2.0.0-experimental.6d93188", | ||
"@solana/rpc-transport": "2.0.0-experimental.6d93188", | ||
"@solana/rpc-types": "2.0.0-experimental.6d93188", | ||
"@solana/transactions": "2.0.0-experimental.6d93188", | ||
"@solana/addresses": "2.0.0-experimental.6d93188", | ||
"build-scripts": "0.0.0", | ||
"@solana/transactions": "2.0.0-experimental.6d27574", | ||
"test-config": "0.0.0", | ||
@@ -77,0 +78,0 @@ "tsconfig": "0.0.0" |
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
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
685558
29
6673