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

@solana/rpc-core

Package Overview
Dependencies
Maintainers
13
Versions
456
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc-core - npm Package Compare versions

Comparing version 2.0.0-experimental.d16acbd to 2.0.0-experimental.d2e0117

dist/types/rpc-methods/getBlockTime.d.ts

8

dist/index.browser.js

@@ -57,3 +57,9 @@ import bs58 from 'bs58';

var ALLOWED_NUMERIC_KEYPATHS = {
getInflationReward: [[KEYPATH_WILDCARD, "commission"]]
getBlockTime: [[]],
getInflationReward: [[KEYPATH_WILDCARD, "commission"]],
getRecentPerformanceSamples: [[KEYPATH_WILDCARD, "samplePeriodSecs"]],
getVoteAccounts: [
["current", KEYPATH_WILDCARD, "commission"],
["delinquent", KEYPATH_WILDCARD, "commission"]
]
};

@@ -60,0 +66,0 @@

@@ -57,3 +57,9 @@ import bs58 from 'bs58';

var ALLOWED_NUMERIC_KEYPATHS = {
getInflationReward: [[KEYPATH_WILDCARD, "commission"]]
getBlockTime: [[]],
getInflationReward: [[KEYPATH_WILDCARD, "commission"]],
getRecentPerformanceSamples: [[KEYPATH_WILDCARD, "samplePeriodSecs"]],
getVoteAccounts: [
["current", KEYPATH_WILDCARD, "commission"],
["delinquent", KEYPATH_WILDCARD, "commission"]
]
};

@@ -60,0 +66,0 @@

@@ -57,3 +57,9 @@ import bs58 from 'bs58';

var ALLOWED_NUMERIC_KEYPATHS = {
getInflationReward: [[KEYPATH_WILDCARD, "commission"]]
getBlockTime: [[]],
getInflationReward: [[KEYPATH_WILDCARD, "commission"]],
getRecentPerformanceSamples: [[KEYPATH_WILDCARD, "samplePeriodSecs"]],
getVoteAccounts: [
["current", KEYPATH_WILDCARD, "commission"],
["delinquent", KEYPATH_WILDCARD, "commission"]
]
};

@@ -60,0 +66,0 @@

2

dist/types/response-patcher-allowed-numeric-values.d.ts

@@ -0,3 +1,3 @@

import { KeyPath } from './response-patcher';
import { createSolanaRpcApi } from './rpc-methods';
import { KeyPath } from './response-patcher';
/**

@@ -4,0 +4,0 @@ * These are keypaths at the end of which you will find a numeric value that should *not* be upcast

@@ -0,5 +1,5 @@

import { KeyPathWildcard } from './response-patcher-types';
import { createSolanaRpcApi } from './rpc-methods';
import { KeyPathWildcard } from './response-patcher-types';
export type KeyPath = ReadonlyArray<KeyPathWildcard | number | string | KeyPath>;
export declare function patchResponseForSolanaLabsRpc<T>(rawResponse: unknown, methodName?: keyof ReturnType<typeof createSolanaRpcApi>): T;
//# sourceMappingURL=response-patcher.d.ts.map

@@ -1,2 +0,2 @@

import { U64UnsafeBeyond2Pow53Minus1, Commitment, Slot } from './common';
import { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
type GetBlockHeightApiResponse = U64UnsafeBeyond2Pow53Minus1;

@@ -3,0 +3,0 @@ export interface GetBlockHeightApi {

@@ -1,2 +0,2 @@

import { Slot, Commitment } from './common';
import { Commitment, Slot } from './common';
type GetBlocksApiResponse = Slot[];

@@ -3,0 +3,0 @@ export interface GetBlocksApi {

@@ -1,2 +0,2 @@

import { U64UnsafeBeyond2Pow53Minus1, Commitment, Slot } from './common';
import { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
type GetTransactionCountApiResponse = U64UnsafeBeyond2Pow53Minus1;

@@ -3,0 +3,0 @@ export interface GetTransactionCountApi {

@@ -7,2 +7,4 @@ import { IRpcApi } from '@solana/rpc-transport/dist/types/json-rpc-types';

import { GetBlocksApi } from './getBlocks';
import { GetBlockTimeApi } from './getBlockTime';
import { GetEpochInfoApi } from './getEpochInfo';
import { GetFirstAvailableBlockApi } from './getFirstAvailableBlock';

@@ -13,5 +15,9 @@ import { GetInflationRewardApi } from './getInflationReward';

import { GetMaxShredInsertSlotApi } from './getMaxShredInsertSlot';
import { GetRecentPerformanceSamplesApi } from './getRecentPerformanceSamples';
import { GetSignaturesForAddressApi } from './getSignaturesForAddress';
import { GetSlotApi } from './getSlot';
import { GetStakeMinimumDelegationApi } from './getStakeMinimumDelegation';
import { GetSupplyApi } from './getSupply';
import { GetTransactionCountApi } from './getTransactionCount';
import { GetVoteAccountsApi } from './getVoteAccounts';
import { MinimumLedgerSlotApi } from './minimumLedgerSlot';

@@ -21,5 +27,5 @@ type Config = Readonly<{

}>;
export type SolanaRpcMethods = GetAccountInfoApi & GetBalanceApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetFirstAvailableBlockApi & GetInflationRewardApi & GetLatestBlockhashApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetSlotApi & GetStakeMinimumDelegationApi & GetTransactionCountApi & MinimumLedgerSlotApi;
export type SolanaRpcMethods = GetAccountInfoApi & GetBalanceApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetBlockTimeApi & GetEpochInfoApi & GetFirstAvailableBlockApi & GetInflationRewardApi & GetLatestBlockhashApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetRecentPerformanceSamplesApi & GetSignaturesForAddressApi & GetSlotApi & GetStakeMinimumDelegationApi & GetSupplyApi & GetTransactionCountApi & GetVoteAccountsApi & MinimumLedgerSlotApi;
export declare function createSolanaRpcApi(config?: Config): IRpcApi<SolanaRpcMethods>;
export {};
//# sourceMappingURL=index.d.ts.map
{
"name": "@solana/rpc-core",
"version": "2.0.0-experimental.d16acbd",
"version": "2.0.0-experimental.d2e0117",
"description": "A library for making calls to the Solana JSON RPC API",

@@ -50,6 +50,6 @@ "exports": {

"bs58": "^5.0.0",
"@solana/keys": "2.0.0-experimental.d16acbd"
"@solana/keys": "2.0.0-experimental.d2e0117"
},
"devDependencies": {
"@solana/eslint-config-solana": "^1.0.0",
"@solana/eslint-config-solana": "^1.0.1",
"@swc/core": "^1.3.18",

@@ -76,3 +76,3 @@ "@swc/jest": "^0.2.23",

"version-from-git": "^1.1.1",
"@solana/rpc-transport": "2.0.0-experimental.d16acbd",
"@solana/rpc-transport": "2.0.0-experimental.d2e0117",
"build-scripts": "0.0.0",

@@ -79,0 +79,0 @@ "test-config": "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

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