@solana/accounts
Advanced tools
Comparing version 2.0.0-experimental.8488c9f to 2.0.0-experimental.8e39a42
import type { Address } from '@solana/addresses'; | ||
import type { Slot } from '@solana/rpc-core/dist/types/rpc-methods/common'; | ||
import type { GetAccountInfoApi } from '@solana/rpc-core/dist/types/rpc-methods/getAccountInfo'; | ||
import type { GetMultipleAccountsApi } from '@solana/rpc-core/dist/types/rpc-methods/getMultipleAccounts'; | ||
import type { Rpc } from '@solana/rpc-transport/dist/types/json-rpc-types'; | ||
import type { Commitment } from '@solana/rpc-types'; | ||
import type { Commitment, Rpc, Slot } from '@solana/rpc-types'; | ||
import type { MaybeAccount, MaybeEncodedAccount } from './maybe-account.js'; | ||
import type { GetAccountInfoApi, GetMultipleAccountsApi } from './rpc-api/index.js'; | ||
/** Optional configuration for fetching a singular account. */ | ||
@@ -9,0 +6,0 @@ export type FetchAccountConfig = { |
import type { Address } from '@solana/addresses'; | ||
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData } from '@solana/rpc-core/dist/types/rpc-methods/common'; | ||
import type { Account, EncodedAccount } from './account.js'; | ||
import { MaybeAccount, MaybeEncodedAccount } from './maybe-account.js'; | ||
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, JsonParsedDataResponse } from './rpc-api/index.js'; | ||
type Base64EncodedRpcAccount = AccountInfoBase & AccountInfoWithBase64EncodedData; | ||
@@ -14,9 +14,4 @@ /** Parse an account object received from a base64-encoded RPC call into an EncodedAccount or MaybeEncodedAccount type. */ | ||
type JsonParsedRpcAccount = AccountInfoBase & { | ||
readonly data: JsonParsedData<unknown>; | ||
readonly data: JsonParsedDataResponse<unknown>; | ||
}; | ||
type JsonParsedData<TData> = { | ||
readonly parsed: { | ||
readonly info: TData; | ||
}; | ||
}; | ||
/** Parse an account object received from a json-parsed RPC call into an Account or MaybeAccount type. */ | ||
@@ -23,0 +18,0 @@ export declare function parseJsonRpcAccount<TData extends object, TAddress extends string = string>(address: Address<TAddress>, rpcAccount: JsonParsedRpcAccount): Account<TData, TAddress>; |
{ | ||
"name": "@solana/accounts", | ||
"version": "2.0.0-experimental.8488c9f", | ||
"version": "2.0.0-experimental.8e39a42", | ||
"description": "Helpers for representing, fetching and decoding Solana accounts", | ||
@@ -49,8 +49,6 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-experimental.8488c9f", | ||
"@solana/codecs-core": "2.0.0-experimental.8488c9f", | ||
"@solana/codecs-strings": "2.0.0-experimental.8488c9f", | ||
"@solana/rpc-core": "2.0.0-experimental.8488c9f", | ||
"@solana/rpc-transport": "2.0.0-experimental.8488c9f", | ||
"@solana/rpc-types": "2.0.0-experimental.8488c9f" | ||
"@solana/addresses": "2.0.0-experimental.8e39a42", | ||
"@solana/codecs-core": "2.0.0-experimental.8e39a42", | ||
"@solana/codecs-strings": "2.0.0-experimental.8e39a42", | ||
"@solana/rpc-types": "2.0.0-experimental.8e39a42" | ||
}, | ||
@@ -57,0 +55,0 @@ "devDependencies": { |
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
161708
4
34
856
+ Added@solana/addresses@2.0.0-experimental.8e39a42(transitive)
+ Added@solana/assertions@2.0.0-experimental.8e39a42(transitive)
+ Added@solana/codecs-core@2.0.0-experimental.8e39a42(transitive)
+ Added@solana/codecs-numbers@2.0.0-experimental.8e39a42(transitive)
+ Added@solana/codecs-strings@2.0.0-experimental.8e39a42(transitive)
+ Added@solana/rpc-types@2.0.0-experimental.8e39a42(transitive)
- Removed@solana/addresses@2.0.0-experimental.8488c9f(transitive)
- Removed@solana/assertions@2.0.0-experimental.8488c9f(transitive)
- Removed@solana/codecs-core@2.0.0-experimental.8488c9f(transitive)
- Removed@solana/codecs-numbers@2.0.0-experimental.8488c9f(transitive)
- Removed@solana/codecs-strings@2.0.0-experimental.8488c9f(transitive)
- Removed@solana/rpc-core@2.0.0-experimental.8488c9f(transitive)
- Removed@solana/rpc-transport@2.0.0-experimental.8488c9f(transitive)
- Removed@solana/rpc-types@2.0.0-experimental.8488c9f(transitive)
- Removedws@8.18.0(transitive)