@solana/accounts
Advanced tools
Comparing version 2.0.0-experimental.dbe6a73 to 2.0.0-experimental.dd2096e
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.dbe6a73", | ||
"version": "2.0.0-experimental.dd2096e", | ||
"description": "Helpers for representing, fetching and decoding Solana accounts", | ||
@@ -49,8 +49,6 @@ "exports": { | ||
"dependencies": { | ||
"@solana/codecs-core": "2.0.0-experimental.dbe6a73", | ||
"@solana/addresses": "2.0.0-experimental.dbe6a73", | ||
"@solana/rpc-core": "2.0.0-experimental.dbe6a73", | ||
"@solana/codecs-strings": "2.0.0-experimental.dbe6a73", | ||
"@solana/rpc-transport": "2.0.0-experimental.dbe6a73", | ||
"@solana/rpc-types": "2.0.0-experimental.dbe6a73" | ||
"@solana/addresses": "2.0.0-experimental.dd2096e", | ||
"@solana/codecs-core": "2.0.0-experimental.dd2096e", | ||
"@solana/codecs-strings": "2.0.0-experimental.dd2096e", | ||
"@solana/rpc-types": "2.0.0-experimental.dd2096e" | ||
}, | ||
@@ -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.dd2096e(transitive)
+ Added@solana/assertions@2.0.0-experimental.dd2096e(transitive)
+ Added@solana/codecs-core@2.0.0-experimental.dd2096e(transitive)
+ Added@solana/codecs-numbers@2.0.0-experimental.dd2096e(transitive)
+ Added@solana/codecs-strings@2.0.0-experimental.dd2096e(transitive)
+ Added@solana/rpc-types@2.0.0-experimental.dd2096e(transitive)
- Removed@solana/addresses@2.0.0-experimental.dbe6a73(transitive)
- Removed@solana/assertions@2.0.0-experimental.dbe6a73(transitive)
- Removed@solana/codecs-core@2.0.0-experimental.dbe6a73(transitive)
- Removed@solana/codecs-numbers@2.0.0-experimental.dbe6a73(transitive)
- Removed@solana/codecs-strings@2.0.0-experimental.dbe6a73(transitive)
- Removed@solana/rpc-core@2.0.0-experimental.dbe6a73(transitive)
- Removed@solana/rpc-transport@2.0.0-experimental.dbe6a73(transitive)
- Removed@solana/rpc-types@2.0.0-experimental.dbe6a73(transitive)
- Removedws@8.18.0(transitive)