@solana/rpc-core
Advanced tools
Comparing version 0.0.0-experimental.2 to 2.0.0-experimental.093f058
import { GetAccountInfoApi } from './rpc-methods/getAccountInfo'; | ||
import { GetBlockHeightApi } from './rpc-methods/getBlockHeight'; | ||
import { GetBlocksApi } from './rpc-methods/getBlocks'; | ||
export interface SolanaJsonRpcApi extends GetAccountInfoApi, GetBlockHeightApi, GetBlocksApi { | ||
import { GetInflationRewardApi } from './rpc-methods/getInflationReward'; | ||
export interface SolanaJsonRpcApi extends GetAccountInfoApi, GetBlockHeightApi, GetBlocksApi, GetInflationRewardApi { | ||
} | ||
//# sourceMappingURL=jsonRpcApi.d.ts.map |
import { Base58EncodedAddress } from '@solana/keys'; | ||
import { Commitment, DataSlice, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common'; | ||
type Base58EncodedBytes = string & { | ||
readonly __base58EncodedBytes: unique symbol; | ||
}; | ||
type Base64EncodedBytes = string & { | ||
@@ -9,2 +12,3 @@ readonly __base64EncodedBytes: unique symbol; | ||
}; | ||
type Base58EncodedDataResponse = [Base58EncodedBytes, 'base58']; | ||
type Base64EncodedDataResponse = [Base64EncodedBytes, 'base64']; | ||
@@ -24,8 +28,18 @@ type Base64EncodedZStdCompressedDataResponse = [Base64EncodedZStdCompressedBytes, 'base64+zstd']; | ||
}>; | ||
type GetAccountInfoApiResponseWithEncodedData = Readonly<{ | ||
type GetAccountInfoApiResponseWithDefaultData = Readonly<{ | ||
value: Readonly<{ | ||
data: Base58EncodedBytes; | ||
}> | null; | ||
}>; | ||
type GetAccountInfoApiResponseWithBase58EncodedData_DEPRECATED = Readonly<{ | ||
value: Readonly<{ | ||
data: Base58EncodedDataResponse; | ||
}> | null; | ||
}>; | ||
type GetAccountInfoApiResponseWithBase64EncodedData = Readonly<{ | ||
value: Readonly<{ | ||
data: Base64EncodedDataResponse; | ||
}> | null; | ||
}>; | ||
type GetAccountInfoApiResponseWithEncodedZStdCompressedData = Readonly<{ | ||
type GetAccountInfoApiResponseWithBase64EncodedZStdCompressedData = Readonly<{ | ||
value: Readonly<{ | ||
@@ -48,3 +62,3 @@ data: Base64EncodedZStdCompressedDataResponse; | ||
}>; | ||
type GetAccountInfoApiBase64EncodingCommonConfig = Readonly<{ | ||
type GetAccountInfoApiSliceableCommonConfig = Readonly<{ | ||
dataSlice?: DataSlice; | ||
@@ -56,13 +70,17 @@ }>; | ||
*/ | ||
getAccountInfo(address: Base58EncodedAddress, config?: Readonly<{ | ||
getAccountInfo(address: Base58EncodedAddress, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{ | ||
encoding: 'base64'; | ||
}> & GetAccountInfoApiCommonConfig & GetAccountInfoApiBase64EncodingCommonConfig): GetAccountInfoApiResponseBase & GetAccountInfoApiResponseWithEncodedData; | ||
getAccountInfo(address: Base58EncodedAddress, config?: Readonly<{ | ||
}>): GetAccountInfoApiResponseBase & GetAccountInfoApiResponseWithBase64EncodedData; | ||
getAccountInfo(address: Base58EncodedAddress, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{ | ||
encoding: 'base64+zstd'; | ||
}> & GetAccountInfoApiCommonConfig & GetAccountInfoApiBase64EncodingCommonConfig): GetAccountInfoApiResponseBase & GetAccountInfoApiResponseWithEncodedZStdCompressedData; | ||
getAccountInfo(address: Base58EncodedAddress, config?: Readonly<{ | ||
}>): GetAccountInfoApiResponseBase & GetAccountInfoApiResponseWithBase64EncodedZStdCompressedData; | ||
getAccountInfo(address: Base58EncodedAddress, config: GetAccountInfoApiCommonConfig & Readonly<{ | ||
encoding: 'jsonParsed'; | ||
}> & GetAccountInfoApiCommonConfig): GetAccountInfoApiResponseBase & GetAccountInfoApiResponseWithJsonData; | ||
}>): GetAccountInfoApiResponseBase & GetAccountInfoApiResponseWithJsonData; | ||
getAccountInfo(address: Base58EncodedAddress, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{ | ||
encoding: 'base58'; | ||
}>): GetAccountInfoApiResponseBase & GetAccountInfoApiResponseWithBase58EncodedData_DEPRECATED; | ||
getAccountInfo(address: Base58EncodedAddress, config?: GetAccountInfoApiCommonConfig): GetAccountInfoApiResponseBase & GetAccountInfoApiResponseWithDefaultData; | ||
} | ||
export {}; | ||
//# sourceMappingURL=getAccountInfo.d.ts.map |
{ | ||
"name": "@solana/rpc-core", | ||
"version": "0.0.0-experimental.2", | ||
"version": "2.0.0-experimental.093f058", | ||
"description": "A library for making calls to the Solana JSON RPC API", | ||
@@ -49,3 +49,3 @@ "exports": { | ||
"dependencies": { | ||
"@solana/keys": "0.0.0-experimental.1" | ||
"@solana/keys": "2.0.0-experimental.093f058" | ||
}, | ||
@@ -66,3 +66,3 @@ "devDependencies": { | ||
"jest-environment-jsdom": "^29.5.0", | ||
"jest-runner-eslint": "^1.1.0", | ||
"jest-runner-eslint": "^2.0.0", | ||
"jest-runner-prettier": "^1.0.0", | ||
@@ -72,5 +72,6 @@ "postcss": "^8.4.12", | ||
"ts-node": "^10.9.1", | ||
"tsup": "6.5.0", | ||
"tsup": "6.7.0", | ||
"turbo": "^1.6.3", | ||
"typescript": "^4.9", | ||
"version-from-git": "^1.1.1", | ||
"build-scripts": "0.0.0", | ||
@@ -92,2 +93,3 @@ "test-config": "0.0.0", | ||
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", | ||
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", | ||
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", | ||
@@ -94,0 +96,0 @@ "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
15796
27
147
0
25
727
2
3
+ Added@solana/keys@2.0.0-experimental.093f058(transitive)
- Removed@solana/keys@0.0.0-experimental.1(transitive)