Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solana/accounts

Package Overview
Dependencies
Maintainers
15
Versions
958
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/accounts - npm Package Compare versions

Comparing version 2.0.0-experimental.8488c9f to 2.0.0-experimental.8e39a42

dist/types/rpc-api/common.d.ts

7

dist/types/fetch-account.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc