@solana/rpc-core
Advanced tools
Comparing version 2.0.0-experimental.f965d44 to 2.0.0-experimental.fbdf21a
@@ -1,2 +0,2 @@ | ||
import bs58 from 'bs58'; | ||
import { base58 } from '@metaplex-foundation/umi-serializers-encodings'; | ||
@@ -13,3 +13,3 @@ // src/blockhash.ts | ||
} | ||
const bytes = bs58.decode(putativeBlockhash); | ||
const bytes = base58.serialize(putativeBlockhash); | ||
const numBytes = bytes.byteLength; | ||
@@ -61,2 +61,6 @@ if (numBytes !== 32) { | ||
getRecentPerformanceSamples: [[KEYPATH_WILDCARD, "samplePeriodSecs"]], | ||
getTokenLargestAccounts: [ | ||
["value", KEYPATH_WILDCARD, "decimals"], | ||
["value", KEYPATH_WILDCARD, "uiAmount"] | ||
], | ||
getTransaction: [ | ||
@@ -63,0 +67,0 @@ ["meta", "preTokenBalances", KEYPATH_WILDCARD, "accountIndex"], |
@@ -1,2 +0,2 @@ | ||
import bs58 from 'bs58'; | ||
import { base58 } from '@metaplex-foundation/umi-serializers-encodings'; | ||
@@ -13,3 +13,3 @@ // src/blockhash.ts | ||
} | ||
const bytes = bs58.decode(putativeBlockhash); | ||
const bytes = base58.serialize(putativeBlockhash); | ||
const numBytes = bytes.byteLength; | ||
@@ -61,2 +61,6 @@ if (numBytes !== 32) { | ||
getRecentPerformanceSamples: [[KEYPATH_WILDCARD, "samplePeriodSecs"]], | ||
getTokenLargestAccounts: [ | ||
["value", KEYPATH_WILDCARD, "decimals"], | ||
["value", KEYPATH_WILDCARD, "uiAmount"] | ||
], | ||
getTransaction: [ | ||
@@ -63,0 +67,0 @@ ["meta", "preTokenBalances", KEYPATH_WILDCARD, "accountIndex"], |
@@ -1,2 +0,2 @@ | ||
import bs58 from 'bs58'; | ||
import { base58 } from '@metaplex-foundation/umi-serializers-encodings'; | ||
@@ -13,3 +13,3 @@ // src/blockhash.ts | ||
} | ||
const bytes = bs58.decode(putativeBlockhash); | ||
const bytes = base58.serialize(putativeBlockhash); | ||
const numBytes = bytes.byteLength; | ||
@@ -61,2 +61,6 @@ if (numBytes !== 32) { | ||
getRecentPerformanceSamples: [[KEYPATH_WILDCARD, "samplePeriodSecs"]], | ||
getTokenLargestAccounts: [ | ||
["value", KEYPATH_WILDCARD, "decimals"], | ||
["value", KEYPATH_WILDCARD, "uiAmount"] | ||
], | ||
getTransaction: [ | ||
@@ -63,0 +67,0 @@ ["meta", "preTokenBalances", KEYPATH_WILDCARD, "accountIndex"], |
import { Base58EncodedAddress } from '@solana/keys'; | ||
import { Blockhash } from '../blockhash'; | ||
import { StringifiedBigInt } from '../stringified-bigint'; | ||
import { TransactionError } from '../transaction-error'; | ||
@@ -17,3 +18,3 @@ import { UnixTimestamp } from '../unix-timestamp'; | ||
/** Raw amount of tokens as a string, ignoring decimals. */ | ||
amount: string; | ||
amount: StringifiedBigInt; | ||
/** Number of decimals configured for token's mint. */ | ||
@@ -20,0 +21,0 @@ decimals: number; |
@@ -9,2 +9,3 @@ import { IRpcApi } from '@solana/rpc-transport/dist/types/json-rpc-types'; | ||
import { GetEpochInfoApi } from './getEpochInfo'; | ||
import { GetEpochScheduleApi } from './getEpochSchedule'; | ||
import { GetFirstAvailableBlockApi } from './getFirstAvailableBlock'; | ||
@@ -20,2 +21,3 @@ import { GetInflationRewardApi } from './getInflationReward'; | ||
import { GetSupplyApi } from './getSupply'; | ||
import { GetTokenLargestAccountsApi } from './getTokenLargestAccounts'; | ||
import { GetTransactionApi } from './getTransaction'; | ||
@@ -28,5 +30,5 @@ import { GetTransactionCountApi } from './getTransactionCount'; | ||
}>; | ||
export type SolanaRpcMethods = GetAccountInfoApi & GetBalanceApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetBlockTimeApi & GetEpochInfoApi & GetFirstAvailableBlockApi & GetInflationRewardApi & GetLatestBlockhashApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetRecentPerformanceSamplesApi & GetSignaturesForAddressApi & GetSlotApi & GetStakeMinimumDelegationApi & GetSupplyApi & GetTransactionApi & GetTransactionCountApi & GetVoteAccountsApi & MinimumLedgerSlotApi; | ||
export type SolanaRpcMethods = GetAccountInfoApi & GetBalanceApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetBlockTimeApi & GetEpochInfoApi & GetEpochScheduleApi & GetFirstAvailableBlockApi & GetInflationRewardApi & GetLatestBlockhashApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetRecentPerformanceSamplesApi & GetSignaturesForAddressApi & GetSlotApi & GetStakeMinimumDelegationApi & GetSupplyApi & GetTokenLargestAccountsApi & GetTransactionApi & 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.f965d44", | ||
"version": "2.0.0-experimental.fbdf21a", | ||
"description": "A library for making calls to the Solana JSON RPC API", | ||
@@ -49,4 +49,4 @@ "exports": { | ||
"dependencies": { | ||
"bs58": "^5.0.0", | ||
"@solana/keys": "2.0.0-experimental.f965d44" | ||
"@metaplex-foundation/umi-serializers-encodings": "^0.8.2", | ||
"@solana/keys": "2.0.0-development" | ||
}, | ||
@@ -56,3 +56,3 @@ "devDependencies": { | ||
"@swc/core": "^1.3.18", | ||
"@swc/jest": "^0.2.23", | ||
"@swc/jest": "^0.2.26", | ||
"@types/jest": "^29.5.1", | ||
@@ -69,3 +69,3 @@ "@typescript-eslint/eslint-plugin": "^5.57.1", | ||
"jest-fetch-mock-fork": "^3.0.4", | ||
"jest-runner-eslint": "^2.0.0", | ||
"jest-runner-eslint": "^2.1.0", | ||
"jest-runner-prettier": "^1.0.0", | ||
@@ -78,3 +78,3 @@ "postcss": "^8.4.12", | ||
"version-from-git": "^1.1.1", | ||
"@solana/rpc-transport": "2.0.0-experimental.f965d44", | ||
"@solana/rpc-transport": "2.0.0-development", | ||
"build-scripts": "0.0.0", | ||
@@ -81,0 +81,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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
186106
84
1652
+ Added@metaplex-foundation/umi-serializers-encodings@^0.8.2
+ Added@metaplex-foundation/umi-serializers-core@0.8.9(transitive)
+ Added@metaplex-foundation/umi-serializers-encodings@0.8.9(transitive)
- Removedbs58@^5.0.0
- Removed@solana/keys@2.0.0-experimental.f965d44(transitive)
- Removedbase-x@4.0.0(transitive)
- Removedbs58@5.0.0(transitive)