@solana/rpc-core
Advanced tools
Comparing version 2.0.0-experimental.dccb97c to 2.0.0-experimental.ed7c7b8
@@ -1,12 +0,21 @@ | ||
import { IRpcApi } from '@solana/rpc-transport/dist/types/json-rpc-transport/json-rpc-transport-types'; | ||
import { IRpcApi } from '@solana/rpc-transport/dist/types/json-rpc-types'; | ||
import { GetAccountInfoApi } from './rpc-methods/getAccountInfo'; | ||
import { GetBalanceApi } from './rpc-methods/getBalance'; | ||
import { GetBlockHeightApi } from './rpc-methods/getBlockHeight'; | ||
import { GetBlockProductionApi } from './rpc-methods/getBlockProduction'; | ||
import { GetBlocksApi } from './rpc-methods/getBlocks'; | ||
import { GetFirstAvailableBlockApi } from './rpc-methods/getFirstAvailableBlock'; | ||
import { GetInflationRewardApi } from './rpc-methods/getInflationReward'; | ||
import { GetMaxRetransmitSlotApi } from './rpc-methods/getMaxRetransmitSlot'; | ||
import { GetMaxShredInsertSlotApi } from './rpc-methods/getMaxShredInsertSlot'; | ||
import { GetSlotApi } from './rpc-methods/getSlot'; | ||
import { GetStakeMinimumDelegationApi } from './rpc-methods/getStakeMinimumDelegation'; | ||
import { GetTransactionCountApi } from './rpc-methods/getTransactionCount'; | ||
import { MinimumLedgerSlotApi } from './rpc-methods/minimumLedgerSlot'; | ||
type Config = Readonly<{ | ||
onIntegerOverflow?: (methodName: string, keyPath: (number | string)[], value: bigint) => void; | ||
}>; | ||
export type SolanaRpcMethods = GetAccountInfoApi & GetBlockHeightApi & GetBlocksApi & GetInflationRewardApi; | ||
export type SolanaRpcMethods = GetAccountInfoApi & GetBalanceApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetFirstAvailableBlockApi & GetInflationRewardApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetSlotApi & GetStakeMinimumDelegationApi & GetTransactionCountApi & MinimumLedgerSlotApi; | ||
export declare function createSolanaRpcApi(config?: Config): IRpcApi<SolanaRpcMethods>; | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,4 +6,13 @@ export type Commitment = 'confirmed' | 'finalized' | 'processed'; | ||
}>; | ||
export type LamportsUnsafeBeyond2Pow53Minus1 = bigint & { | ||
readonly __lamports: unique symbol; | ||
}; | ||
export type Slot = U64UnsafeBeyond2Pow53Minus1; | ||
export type U64UnsafeBeyond2Pow53Minus1 = bigint; | ||
export type RpcResponse<TValue> = Readonly<{ | ||
context: Readonly<{ | ||
slot: Slot; | ||
}>; | ||
value: TValue; | ||
}>; | ||
//# sourceMappingURL=common.d.ts.map |
import { Base58EncodedAddress } from '@solana/keys'; | ||
import { Commitment, DataSlice, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common'; | ||
import { Commitment, DataSlice, LamportsUnsafeBeyond2Pow53Minus1, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common'; | ||
type Base58EncodedBytes = string & { | ||
@@ -21,3 +21,3 @@ readonly __base58EncodedBytes: unique symbol; | ||
executable: boolean; | ||
lamports: U64UnsafeBeyond2Pow53Minus1; | ||
lamports: LamportsUnsafeBeyond2Pow53Minus1; | ||
owner: Base58EncodedAddress; | ||
@@ -24,0 +24,0 @@ rentEpoch: U64UnsafeBeyond2Pow53Minus1; |
import { Base58EncodedAddress } from '@solana/keys'; | ||
import { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common'; | ||
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common'; | ||
type GetInflationRewardApiResponse = Readonly<{ | ||
amount: U64UnsafeBeyond2Pow53Minus1; | ||
amount: LamportsUnsafeBeyond2Pow53Minus1; | ||
commission: number; | ||
effectiveSlot: U64UnsafeBeyond2Pow53Minus1; | ||
effectiveSlot: Slot; | ||
epoch: U64UnsafeBeyond2Pow53Minus1; | ||
postBalance: U64UnsafeBeyond2Pow53Minus1; | ||
postBalance: LamportsUnsafeBeyond2Pow53Minus1; | ||
}>; | ||
@@ -10,0 +10,0 @@ export interface GetInflationRewardApi { |
{ | ||
"name": "@solana/rpc-core", | ||
"version": "2.0.0-experimental.dccb97c", | ||
"version": "2.0.0-experimental.ed7c7b8", | ||
"description": "A library for making calls to the Solana JSON RPC API", | ||
@@ -49,3 +49,3 @@ "exports": { | ||
"dependencies": { | ||
"@solana/keys": "2.0.0-experimental.dccb97c" | ||
"@solana/keys": "2.0.0-experimental.ed7c7b8" | ||
}, | ||
@@ -66,3 +66,3 @@ "devDependencies": { | ||
"jest-environment-jsdom": "^29.5.0", | ||
"jest-fetch-mock": "^3.0.3", | ||
"jest-fetch-mock-fork": "^3.0.4", | ||
"jest-runner-eslint": "^2.0.0", | ||
@@ -74,6 +74,5 @@ "jest-runner-prettier": "^1.0.0", | ||
"tsup": "6.7.0", | ||
"turbo": "^1.6.3", | ||
"typescript": "^5.0.3", | ||
"version-from-git": "^1.1.1", | ||
"@solana/rpc-transport": "2.0.0-experimental.dccb97c", | ||
"@solana/rpc-transport": "2.0.0-experimental.ed7c7b8", | ||
"build-scripts": "0.0.0", | ||
@@ -80,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
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
103298
26
52
847
1
24
0
+ Added@solana/keys@2.0.0-experimental.ed7c7b8(transitive)
- Removed@solana/keys@2.0.0-experimental.dccb97c(transitive)