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