@solana/rpc-core
Advanced tools
Comparing version 2.0.0-experimental.d16acbd to 2.0.0-experimental.d2e0117
@@ -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 @@ |
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
123131
45
1263
0
+ Added@solana/keys@2.0.0-experimental.d2e0117(transitive)
- Removed@solana/keys@2.0.0-experimental.d16acbd(transitive)