@solana/accounts
Advanced tools
Comparing version 2.0.0-experimental.6d93188 to 2.0.0-experimental.71dcc4e
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.6d93188", | ||
"version": "2.0.0-experimental.71dcc4e", | ||
"description": "Helpers for representing, fetching and decoding Solana accounts", | ||
@@ -49,8 +49,6 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-experimental.6d93188", | ||
"@solana/codecs-core": "2.0.0-experimental.6d93188", | ||
"@solana/codecs-strings": "2.0.0-experimental.6d93188", | ||
"@solana/rpc-transport": "2.0.0-experimental.6d93188", | ||
"@solana/rpc-types": "2.0.0-experimental.6d93188", | ||
"@solana/rpc-core": "2.0.0-experimental.6d93188" | ||
"@solana/addresses": "2.0.0-experimental.71dcc4e", | ||
"@solana/codecs-core": "2.0.0-experimental.71dcc4e", | ||
"@solana/codecs-strings": "2.0.0-experimental.71dcc4e", | ||
"@solana/rpc-types": "2.0.0-experimental.71dcc4e" | ||
}, | ||
@@ -73,4 +71,4 @@ "devDependencies": { | ||
"version-from-git": "^1.1.1", | ||
"build-scripts": "0.0.0", | ||
"test-config": "0.0.0", | ||
"build-scripts": "0.0.0", | ||
"test-matchers": "0.0.0", | ||
@@ -77,0 +75,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
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.71dcc4e(transitive)
+ Added@solana/assertions@2.0.0-experimental.71dcc4e(transitive)
+ Added@solana/codecs-core@2.0.0-experimental.71dcc4e(transitive)
+ Added@solana/codecs-numbers@2.0.0-experimental.71dcc4e(transitive)
+ Added@solana/codecs-strings@2.0.0-experimental.71dcc4e(transitive)
+ Added@solana/rpc-types@2.0.0-experimental.71dcc4e(transitive)
- Removed@solana/addresses@2.0.0-experimental.6d93188(transitive)
- Removed@solana/assertions@2.0.0-experimental.6d93188(transitive)
- Removed@solana/codecs-core@2.0.0-experimental.6d93188(transitive)
- Removed@solana/codecs-numbers@2.0.0-experimental.6d93188(transitive)
- Removed@solana/codecs-strings@2.0.0-experimental.6d93188(transitive)
- Removed@solana/rpc-core@2.0.0-experimental.6d93188(transitive)
- Removed@solana/rpc-transport@2.0.0-experimental.6d93188(transitive)
- Removed@solana/rpc-types@2.0.0-experimental.6d93188(transitive)
- Removedws@8.18.0(transitive)