@solana/rpc-api 2.0.0-rc.1 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.browser.cjs +2 -4
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +4 -6
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.native.mjs +4 -6
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +2 -4
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +4 -6
- package/dist/index.node.mjs.map +1 -1
- package/dist/types/getAccountInfo.d.ts +2 -3
- package/dist/types/getAccountInfo.d.ts.map +1 -1
- package/dist/types/getBalance.d.ts +4 -5
- package/dist/types/getBalance.d.ts.map +1 -1
- package/dist/types/getBlock.d.ts +5 -6
- package/dist/types/getBlock.d.ts.map +1 -1
- package/dist/types/getBlockCommitment.d.ts +5 -6
- package/dist/types/getBlockCommitment.d.ts.map +1 -1
- package/dist/types/getBlockHeight.d.ts +4 -5
- package/dist/types/getBlockHeight.d.ts.map +1 -1
- package/dist/types/getBlockProduction.d.ts +5 -6
- package/dist/types/getBlockProduction.d.ts.map +1 -1
- package/dist/types/getBlockTime.d.ts +2 -3
- package/dist/types/getBlockTime.d.ts.map +1 -1
- package/dist/types/getBlocks.d.ts +2 -3
- package/dist/types/getBlocks.d.ts.map +1 -1
- package/dist/types/getBlocksWithLimit.d.ts +2 -3
- package/dist/types/getBlocksWithLimit.d.ts.map +1 -1
- package/dist/types/getClusterNodes.d.ts +16 -3
- package/dist/types/getClusterNodes.d.ts.map +1 -1
- package/dist/types/getEpochInfo.d.ts +8 -9
- package/dist/types/getEpochInfo.d.ts.map +1 -1
- package/dist/types/getEpochSchedule.d.ts +6 -8
- package/dist/types/getEpochSchedule.d.ts.map +1 -1
- package/dist/types/getFeeForMessage.d.ts +4 -5
- package/dist/types/getFeeForMessage.d.ts.map +1 -1
- package/dist/types/getFirstAvailableBlock.d.ts +2 -3
- package/dist/types/getFirstAvailableBlock.d.ts.map +1 -1
- package/dist/types/getGenesisHash.d.ts +2 -3
- package/dist/types/getGenesisHash.d.ts.map +1 -1
- package/dist/types/getHealth.d.ts +2 -3
- package/dist/types/getHealth.d.ts.map +1 -1
- package/dist/types/getHighestSnapshotSlot.d.ts +2 -3
- package/dist/types/getHighestSnapshotSlot.d.ts.map +1 -1
- package/dist/types/getIdentity.d.ts +2 -3
- package/dist/types/getIdentity.d.ts.map +1 -1
- package/dist/types/getInflationGovernor.d.ts +2 -3
- package/dist/types/getInflationGovernor.d.ts.map +1 -1
- package/dist/types/getInflationRate.d.ts +4 -5
- package/dist/types/getInflationRate.d.ts.map +1 -1
- package/dist/types/getInflationReward.d.ts +7 -8
- package/dist/types/getInflationReward.d.ts.map +1 -1
- package/dist/types/getLargestAccounts.d.ts +4 -5
- package/dist/types/getLargestAccounts.d.ts.map +1 -1
- package/dist/types/getLatestBlockhash.d.ts +4 -5
- package/dist/types/getLatestBlockhash.d.ts.map +1 -1
- package/dist/types/getLeaderSchedule.d.ts +2 -3
- package/dist/types/getLeaderSchedule.d.ts.map +1 -1
- package/dist/types/getMaxRetransmitSlot.d.ts +2 -3
- package/dist/types/getMaxRetransmitSlot.d.ts.map +1 -1
- package/dist/types/getMaxShredInsertSlot.d.ts +2 -3
- package/dist/types/getMaxShredInsertSlot.d.ts.map +1 -1
- package/dist/types/getMinimumBalanceForRentExemption.d.ts +5 -6
- package/dist/types/getMinimumBalanceForRentExemption.d.ts.map +1 -1
- package/dist/types/getMultipleAccounts.d.ts +2 -3
- package/dist/types/getMultipleAccounts.d.ts.map +1 -1
- package/dist/types/getProgramAccounts.d.ts +2 -3
- package/dist/types/getProgramAccounts.d.ts.map +1 -1
- package/dist/types/getRecentPerformanceSamples.d.ts +6 -7
- package/dist/types/getRecentPerformanceSamples.d.ts.map +1 -1
- package/dist/types/getRecentPrioritizationFees.d.ts +4 -5
- package/dist/types/getRecentPrioritizationFees.d.ts.map +1 -1
- package/dist/types/getSignatureStatuses.d.ts +4 -5
- package/dist/types/getSignatureStatuses.d.ts.map +1 -1
- package/dist/types/getSignaturesForAddress.d.ts +2 -3
- package/dist/types/getSignaturesForAddress.d.ts.map +1 -1
- package/dist/types/getSlot.d.ts +2 -3
- package/dist/types/getSlot.d.ts.map +1 -1
- package/dist/types/getSlotLeader.d.ts +2 -3
- package/dist/types/getSlotLeader.d.ts.map +1 -1
- package/dist/types/getSlotLeaders.d.ts +2 -3
- package/dist/types/getSlotLeaders.d.ts.map +1 -1
- package/dist/types/getStakeMinimumDelegation.d.ts +4 -5
- package/dist/types/getStakeMinimumDelegation.d.ts.map +1 -1
- package/dist/types/getSupply.d.ts +6 -7
- package/dist/types/getSupply.d.ts.map +1 -1
- package/dist/types/getTokenAccountBalance.d.ts +2 -3
- package/dist/types/getTokenAccountBalance.d.ts.map +1 -1
- package/dist/types/getTokenAccountsByDelegate.d.ts +4 -5
- package/dist/types/getTokenAccountsByDelegate.d.ts.map +1 -1
- package/dist/types/getTokenAccountsByOwner.d.ts +4 -5
- package/dist/types/getTokenAccountsByOwner.d.ts.map +1 -1
- package/dist/types/getTokenLargestAccounts.d.ts +2 -3
- package/dist/types/getTokenLargestAccounts.d.ts.map +1 -1
- package/dist/types/getTokenSupply.d.ts +2 -3
- package/dist/types/getTokenSupply.d.ts.map +1 -1
- package/dist/types/getTransaction.d.ts +7 -8
- package/dist/types/getTransaction.d.ts.map +1 -1
- package/dist/types/getTransactionCount.d.ts +4 -5
- package/dist/types/getTransactionCount.d.ts.map +1 -1
- package/dist/types/getVersion.d.ts +2 -3
- package/dist/types/getVersion.d.ts.map +1 -1
- package/dist/types/getVoteAccounts.d.ts +8 -10
- package/dist/types/getVoteAccounts.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/isBlockhashValid.d.ts +2 -3
- package/dist/types/isBlockhashValid.d.ts.map +1 -1
- package/dist/types/minimumLedgerSlot.d.ts +2 -3
- package/dist/types/minimumLedgerSlot.d.ts.map +1 -1
- package/dist/types/requestAirdrop.d.ts +4 -5
- package/dist/types/requestAirdrop.d.ts.map +1 -1
- package/dist/types/sendTransaction.d.ts +2 -3
- package/dist/types/sendTransaction.d.ts.map +1 -1
- package/dist/types/simulateTransaction.d.ts +6 -7
- package/dist/types/simulateTransaction.d.ts.map +1 -1
- package/package.json +24 -13
- package/dist/types/getStakeActivation.d.ts +0 -26
- package/dist/types/getStakeActivation.d.ts.map +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
|
-
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
2
|
import type { Slot } from '@solana/rpc-types';
|
|
4
3
|
/** array of Node identity public keys as base-58 encoded strings */
|
|
5
4
|
type GetSlotLeadersApiResponse = Address[];
|
|
6
|
-
export
|
|
5
|
+
export type GetSlotLeadersApi = {
|
|
7
6
|
/**
|
|
8
7
|
* Returns the slot leaders for a given slot range
|
|
9
8
|
*/
|
|
@@ -12,6 +11,6 @@ export interface GetSlotLeadersApi extends RpcApiMethods {
|
|
|
12
11
|
startSlot: Slot,
|
|
13
12
|
/** Limit (between 1 and 5000) */
|
|
14
13
|
limit: number): GetSlotLeadersApiResponse;
|
|
15
|
-
}
|
|
14
|
+
};
|
|
16
15
|
export {};
|
|
17
16
|
//# sourceMappingURL=getSlotLeaders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSlotLeaders.d.ts","sourceRoot":"","sources":["../../src/getSlotLeaders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getSlotLeaders.d.ts","sourceRoot":"","sources":["../../src/getSlotLeaders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,oEAAoE;AACpE,KAAK,yBAAyB,GAAG,OAAO,EAAE,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,cAAc;IACV,iCAAiC;IACjC,SAAS,EAAE,IAAI;IACf,iCAAiC;IACjC,KAAK,EAAE,MAAM,GACd,yBAAyB,CAAC;CAChC,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
export interface GetStakeMinimumDelegationApi extends RpcApiMethods {
|
|
1
|
+
import type { Commitment, Lamports, SolanaRpcResponse } from '@solana/rpc-types';
|
|
2
|
+
type GetStakeMinimumDelegationApiResponse = Lamports;
|
|
3
|
+
export type GetStakeMinimumDelegationApi = {
|
|
5
4
|
/**
|
|
6
5
|
* Returns the stake minimum delegation, in lamports.
|
|
7
6
|
*/
|
|
8
7
|
getStakeMinimumDelegation(config?: Readonly<{
|
|
9
8
|
commitment?: Commitment;
|
|
10
9
|
}>): SolanaRpcResponse<GetStakeMinimumDelegationApiResponse>;
|
|
11
|
-
}
|
|
10
|
+
};
|
|
12
11
|
export {};
|
|
13
12
|
//# sourceMappingURL=getStakeMinimumDelegation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getStakeMinimumDelegation.d.ts","sourceRoot":"","sources":["../../src/getStakeMinimumDelegation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getStakeMinimumDelegation.d.ts","sourceRoot":"","sources":["../../src/getStakeMinimumDelegation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEjF,KAAK,oCAAoC,GAAG,QAAQ,CAAC;AAErD,MAAM,MAAM,4BAA4B,GAAG;IACvC;;OAEG;IACH,yBAAyB,CACrB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,iBAAiB,CAAC,oCAAoC,CAAC,CAAC;CAC9D,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
|
-
import type {
|
|
3
|
-
import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, SolanaRpcResponse } from '@solana/rpc-types';
|
|
2
|
+
import type { Commitment, Lamports, SolanaRpcResponse } from '@solana/rpc-types';
|
|
4
3
|
type GetSupplyConfig = Readonly<{
|
|
5
4
|
commitment?: Commitment;
|
|
6
5
|
}>;
|
|
7
6
|
type GetSupplyApiResponseBase = Readonly<{
|
|
8
7
|
/** Circulating supply in lamports */
|
|
9
|
-
circulating:
|
|
8
|
+
circulating: Lamports;
|
|
10
9
|
/** Non-circulating supply in lamports */
|
|
11
|
-
nonCirculating:
|
|
10
|
+
nonCirculating: Lamports;
|
|
12
11
|
/** Total supply in lamports */
|
|
13
|
-
total:
|
|
12
|
+
total: Lamports;
|
|
14
13
|
}>;
|
|
15
14
|
type GetSupplyApiResponseWithNonCirculatingAccounts = GetSupplyApiResponseBase & Readonly<{
|
|
16
15
|
/** an array of account addresses of non-circulating accounts */
|
|
@@ -23,7 +22,7 @@ type GetSupplyApiResponseWithoutNonCirculatingAccounts = GetSupplyApiResponseBas
|
|
|
23
22
|
*/
|
|
24
23
|
nonCirculatingAccounts: never[];
|
|
25
24
|
}>;
|
|
26
|
-
export
|
|
25
|
+
export type GetSupplyApi = {
|
|
27
26
|
/**
|
|
28
27
|
* Returns information about the current supply.
|
|
29
28
|
*/
|
|
@@ -33,6 +32,6 @@ export interface GetSupplyApi extends RpcApiMethods {
|
|
|
33
32
|
getSupply(config?: GetSupplyConfig & Readonly<{
|
|
34
33
|
excludeNonCirculatingAccountsList?: false;
|
|
35
34
|
}>): SolanaRpcResponse<GetSupplyApiResponseWithNonCirculatingAccounts>;
|
|
36
|
-
}
|
|
35
|
+
};
|
|
37
36
|
export {};
|
|
38
37
|
//# sourceMappingURL=getSupply.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSupply.d.ts","sourceRoot":"","sources":["../../src/getSupply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getSupply.d.ts","sourceRoot":"","sources":["../../src/getSupply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEjF,KAAK,eAAe,GAAG,QAAQ,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC,CAAC;AAEH,KAAK,wBAAwB,GAAG,QAAQ,CAAC;IACrC,qCAAqC;IACrC,WAAW,EAAE,QAAQ,CAAC;IACtB,yCAAyC;IACzC,cAAc,EAAE,QAAQ,CAAC;IACzB,+BAA+B;IAC/B,KAAK,EAAE,QAAQ,CAAC;CACnB,CAAC,CAAC;AAEH,KAAK,8CAA8C,GAAG,wBAAwB,GAC1E,QAAQ,CAAC;IACL,gEAAgE;IAChE,sBAAsB,EAAE,OAAO,EAAE,CAAC;CACrC,CAAC,CAAC;AAEP,KAAK,iDAAiD,GAAG,wBAAwB,GAC7E,QAAQ,CAAC;IACL;;;OAGG;IACH,sBAAsB,EAAE,KAAK,EAAE,CAAC;CACnC,CAAC,CAAC;AAEP,MAAM,MAAM,YAAY,GAAG;IACvB;;OAEG;IACH,SAAS,CACL,MAAM,EAAE,eAAe,GACnB,QAAQ,CAAC;QACL,iCAAiC,EAAE,IAAI,CAAC;KAC3C,CAAC,GACP,iBAAiB,CAAC,iDAAiD,CAAC,CAAC;IACxE,SAAS,CACL,MAAM,CAAC,EAAE,eAAe,GACpB,QAAQ,CAAC;QACL,iCAAiC,CAAC,EAAE,KAAK,CAAC;KAC7C,CAAC,GACP,iBAAiB,CAAC,8CAA8C,CAAC,CAAC;CACxE,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
|
-
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
2
|
import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';
|
|
4
3
|
type GetTokenAccountBalanceApiResponse = TokenAmount;
|
|
5
|
-
export
|
|
4
|
+
export type GetTokenAccountBalanceApi = {
|
|
6
5
|
/**
|
|
7
6
|
* Returns the token balance of an SPL Token account
|
|
8
7
|
*/
|
|
@@ -11,6 +10,6 @@ export interface GetTokenAccountBalanceApi extends RpcApiMethods {
|
|
|
11
10
|
address: Address, config?: Readonly<{
|
|
12
11
|
commitment?: Commitment;
|
|
13
12
|
}>): SolanaRpcResponse<GetTokenAccountBalanceApiResponse>;
|
|
14
|
-
}
|
|
13
|
+
};
|
|
15
14
|
export {};
|
|
16
15
|
//# sourceMappingURL=getTokenAccountBalance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTokenAccountBalance.d.ts","sourceRoot":"","sources":["../../src/getTokenAccountBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getTokenAccountBalance.d.ts","sourceRoot":"","sources":["../../src/getTokenAccountBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEpF,KAAK,iCAAiC,GAAG,WAAW,CAAC;AAErD,MAAM,MAAM,yBAAyB,GAAG;IACpC;;OAEG;IACH,sBAAsB;IAClB,kEAAkE;IAClE,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,iBAAiB,CAAC,iCAAiC,CAAC,CAAC;CAC3D,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
2
|
import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types';
|
|
3
|
-
import type {
|
|
4
|
-
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types';
|
|
5
4
|
type TokenAccountInfoWithJsonData = Readonly<{
|
|
6
5
|
data: Readonly<{
|
|
7
6
|
parsed: {
|
|
@@ -10,7 +9,7 @@ type TokenAccountInfoWithJsonData = Readonly<{
|
|
|
10
9
|
};
|
|
11
10
|
/** Name of the program that owns this account. */
|
|
12
11
|
program: Address;
|
|
13
|
-
space:
|
|
12
|
+
space: bigint;
|
|
14
13
|
}>;
|
|
15
14
|
}>;
|
|
16
15
|
type GetTokenAccountsByDelegateResponse<T> = readonly AccountInfoWithPubkey<AccountInfoBase & T>[];
|
|
@@ -33,7 +32,7 @@ type GetTokenAccountsByDelegateApiSliceableCommonConfig = Readonly<{
|
|
|
33
32
|
/** Limit the returned account data */
|
|
34
33
|
dataSlice?: DataSlice;
|
|
35
34
|
}>;
|
|
36
|
-
export
|
|
35
|
+
export type GetTokenAccountsByDelegateApi = {
|
|
37
36
|
/**
|
|
38
37
|
* Returns all SPL Token accounts by approved Delegate.
|
|
39
38
|
*/
|
|
@@ -50,6 +49,6 @@ export interface GetTokenAccountsByDelegateApi extends RpcApiMethods {
|
|
|
50
49
|
encoding: 'base58';
|
|
51
50
|
}>): SolanaRpcResponse<GetTokenAccountsByDelegateResponse<AccountInfoWithBase58EncodedData>>;
|
|
52
51
|
getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config?: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig): SolanaRpcResponse<GetTokenAccountsByDelegateResponse<AccountInfoWithBase58Bytes>>;
|
|
53
|
-
}
|
|
52
|
+
};
|
|
54
53
|
export {};
|
|
55
54
|
//# sourceMappingURL=getTokenAccountsByDelegate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTokenAccountsByDelegate.d.ts","sourceRoot":"","sources":["../../src/getTokenAccountsByDelegate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"getTokenAccountsByDelegate.d.ts","sourceRoot":"","sources":["../../src/getTokenAccountsByDelegate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EACR,eAAe,EACf,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,8CAA8C,EAC9C,qBAAqB,EACrB,UAAU,EACV,SAAS,EACT,IAAI,EACJ,iBAAiB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,4BAA4B,GAAG,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kDAAkD,GAClD,QAAQ,CAAC;QACL,QAAQ,EAAE,aAAa,CAAC;KAC3B,CAAC,GACP,iBAAiB,CAAC,kCAAkC,CAAC,8CAA8C,CAAC,CAAC,CAAC;IAEzG,0BAA0B,CACtB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,yCAAyC,GAC7C,QAAQ,CAAC;QACL,QAAQ,EAAE,YAAY,CAAC;KAC1B,CAAC,GACP,iBAAiB,CAAC,kCAAkC,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAEvF,0BAA0B,CACtB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,yCAAyC,GAC7C,kDAAkD,GAClD,QAAQ,CAAC;QACL,QAAQ,EAAE,QAAQ,CAAC;KACtB,CAAC,GACP,iBAAiB,CAAC,kCAAkC,CAAC,gCAAgC,CAAC,CAAC,CAAC;IAE3F,0BAA0B,CACtB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,cAAc,EACtB,MAAM,CAAC,EAAE,yCAAyC,GAAG,kDAAkD,GACxG,iBAAiB,CAAC,kCAAkC,CAAC,0BAA0B,CAAC,CAAC,CAAC;CACxF,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
2
|
import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types';
|
|
3
|
-
import type {
|
|
4
|
-
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types';
|
|
5
4
|
type TokenAccountInfoWithJsonData = Readonly<{
|
|
6
5
|
data: Readonly<{
|
|
7
6
|
parsed: {
|
|
@@ -10,7 +9,7 @@ type TokenAccountInfoWithJsonData = Readonly<{
|
|
|
10
9
|
};
|
|
11
10
|
/** Name of the program that owns this account. */
|
|
12
11
|
program: Address;
|
|
13
|
-
space:
|
|
12
|
+
space: bigint;
|
|
14
13
|
}>;
|
|
15
14
|
}>;
|
|
16
15
|
type GetTokenAccountsByOwnerResponse<T> = readonly AccountInfoWithPubkey<AccountInfoBase & T>[];
|
|
@@ -33,7 +32,7 @@ type GetTokenAccountsByOwnerApiSliceableCommonConfig = Readonly<{
|
|
|
33
32
|
/** Limit the returned account data */
|
|
34
33
|
dataSlice?: DataSlice;
|
|
35
34
|
}>;
|
|
36
|
-
export
|
|
35
|
+
export type GetTokenAccountsByOwnerApi = {
|
|
37
36
|
/**
|
|
38
37
|
* Returns all SPL Token accounts by token owner.
|
|
39
38
|
*/
|
|
@@ -50,6 +49,6 @@ export interface GetTokenAccountsByOwnerApi extends RpcApiMethods {
|
|
|
50
49
|
encoding: 'base58';
|
|
51
50
|
}>): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase58EncodedData>>;
|
|
52
51
|
getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config?: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase58Bytes>>;
|
|
53
|
-
}
|
|
52
|
+
};
|
|
54
53
|
export {};
|
|
55
54
|
//# sourceMappingURL=getTokenAccountsByOwner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTokenAccountsByOwner.d.ts","sourceRoot":"","sources":["../../src/getTokenAccountsByOwner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAA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A0B,CAAC,CAAC,CAAC;CACrF,CAAC"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
|
-
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
2
|
import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';
|
|
4
3
|
type TokenLargestAccount = Readonly<{
|
|
5
4
|
address: Address;
|
|
6
5
|
}> & TokenAmount;
|
|
7
6
|
type GetTokenLargestAccountsApiResponse = readonly TokenLargestAccount[];
|
|
8
|
-
export
|
|
7
|
+
export type GetTokenLargestAccountsApi = {
|
|
9
8
|
/**
|
|
10
9
|
* Returns the 20 largest accounts of a particular SPL Token type.
|
|
11
10
|
*/
|
|
12
11
|
getTokenLargestAccounts(tokenMint: Address, config?: Readonly<{
|
|
13
12
|
commitment?: Commitment;
|
|
14
13
|
}>): SolanaRpcResponse<GetTokenLargestAccountsApiResponse>;
|
|
15
|
-
}
|
|
14
|
+
};
|
|
16
15
|
export {};
|
|
17
16
|
//# sourceMappingURL=getTokenLargestAccounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTokenLargestAccounts.d.ts","sourceRoot":"","sources":["../../src/getTokenLargestAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getTokenLargestAccounts.d.ts","sourceRoot":"","sources":["../../src/getTokenLargestAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEpF,KAAK,mBAAmB,GAAG,QAAQ,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,GAAG,WAAW,CAAC;AAExE,KAAK,kCAAkC,GAAG,SAAS,mBAAmB,EAAE,CAAC;AAEzE,MAAM,MAAM,0BAA0B,GAAG;IACrC;;OAEG;IACH,uBAAuB,CACnB,SAAS,EAAE,OAAO,EAClB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,iBAAiB,CAAC,kCAAkC,CAAC,CAAC;CAC5D,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
|
-
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
2
|
import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';
|
|
4
3
|
type GetTokenSupplyApiResponse = TokenAmount;
|
|
5
|
-
export
|
|
4
|
+
export type GetTokenSupplyApi = {
|
|
6
5
|
/**
|
|
7
6
|
* Returns the total supply of an SPL Token mint
|
|
8
7
|
*/
|
|
@@ -11,6 +10,6 @@ export interface GetTokenSupplyApi extends RpcApiMethods {
|
|
|
11
10
|
address: Address, config?: Readonly<{
|
|
12
11
|
commitment?: Commitment;
|
|
13
12
|
}>): SolanaRpcResponse<GetTokenSupplyApiResponse>;
|
|
14
|
-
}
|
|
13
|
+
};
|
|
15
14
|
export {};
|
|
16
15
|
//# sourceMappingURL=getTokenSupply.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTokenSupply.d.ts","sourceRoot":"","sources":["../../src/getTokenSupply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getTokenSupply.d.ts","sourceRoot":"","sources":["../../src/getTokenSupply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEpF,KAAK,yBAAyB,GAAG,WAAW,CAAC;AAE7C,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,cAAc;IACV,mEAAmE;IACnE,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,iBAAiB,CAAC,yBAAyB,CAAC,CAAC;CACnD,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
2
|
import type { Signature } from '@solana/keys';
|
|
3
|
-
import type {
|
|
4
|
-
import type { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Blockhash, Commitment, LamportsUnsafeBeyond2Pow53Minus1, Reward, Slot, TokenBalance, TransactionError, TransactionStatus, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types';
|
|
3
|
+
import type { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Blockhash, Commitment, Lamports, Reward, Slot, TokenBalance, TransactionError, TransactionStatus, UnixTimestamp } from '@solana/rpc-types';
|
|
5
4
|
import type { TransactionVersion } from '@solana/transaction-messages';
|
|
6
5
|
type ReturnData = {
|
|
7
6
|
/** the return data itself */
|
|
@@ -11,19 +10,19 @@ type ReturnData = {
|
|
|
11
10
|
};
|
|
12
11
|
type TransactionMetaBase = Readonly<{
|
|
13
12
|
/** number of compute units consumed by the transaction */
|
|
14
|
-
computeUnitsConsumed?:
|
|
13
|
+
computeUnitsConsumed?: bigint;
|
|
15
14
|
/** Error if transaction failed, null if transaction succeeded. */
|
|
16
15
|
err: TransactionError | null;
|
|
17
16
|
/** fee this transaction was charged */
|
|
18
|
-
fee:
|
|
17
|
+
fee: Lamports;
|
|
19
18
|
/** array of string log messages or null if log message recording was not enabled during this transaction */
|
|
20
19
|
logMessages: readonly string[] | null;
|
|
21
20
|
/** array of account balances after the transaction was processed */
|
|
22
|
-
postBalances: readonly
|
|
21
|
+
postBalances: readonly Lamports[];
|
|
23
22
|
/** List of token balances from after the transaction was processed or omitted if token balance recording was not yet enabled during this transaction */
|
|
24
23
|
postTokenBalances?: readonly TokenBalance[];
|
|
25
24
|
/** array of account balances from before the transaction was processed */
|
|
26
|
-
preBalances: readonly
|
|
25
|
+
preBalances: readonly Lamports[];
|
|
27
26
|
/** List of token balances from before the transaction was processed or omitted if token balance recording was not yet enabled during this transaction */
|
|
28
27
|
preTokenBalances?: readonly TokenBalance[];
|
|
29
28
|
/** the most-recent return data generated by an instruction in the transaction */
|
|
@@ -126,7 +125,7 @@ type TransactionAddressTableLookups = Readonly<{
|
|
|
126
125
|
addressTableLookups: readonly AddressTableLookup[];
|
|
127
126
|
}>;
|
|
128
127
|
}>;
|
|
129
|
-
export
|
|
128
|
+
export type GetTransactionApi = {
|
|
130
129
|
/**
|
|
131
130
|
* Returns transaction details for a confirmed transaction
|
|
132
131
|
*/
|
|
@@ -162,6 +161,6 @@ export interface GetTransactionApi extends RpcApiMethods {
|
|
|
162
161
|
meta: (TransactionMetaBase & TransactionMetaInnerInstructionsNotParsed & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionMetaLoadedAddresses)) | null;
|
|
163
162
|
transaction: TransactionJson & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionAddressTableLookups);
|
|
164
163
|
}) | null;
|
|
165
|
-
}
|
|
164
|
+
};
|
|
166
165
|
export {};
|
|
167
166
|
//# sourceMappingURL=getTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTransaction.d.ts","sourceRoot":"","sources":["../../src/getTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"getTransaction.d.ts","sourceRoot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ACE,CAAC,mBAAmB,GAChB,yCAAyC,GACzC,CAAC,+BAA+B,SAAS,IAAI,GACvC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACrB,8BAA8B,CAAC,CAAC,GAC1C,IAAI,CAAC;QACX,WAAW,EAAE,eAAe,GACxB,CAAC,+BAA+B,SAAS,IAAI,GACvC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACrB,8BAA8B,CAAC,CAAC;KAC7C,CAAC,GACN,IAAI,CAAC;CACd,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
export interface GetTransactionCountApi extends RpcApiMethods {
|
|
1
|
+
import type { Commitment, Slot } from '@solana/rpc-types';
|
|
2
|
+
type GetTransactionCountApiResponse = bigint;
|
|
3
|
+
export type GetTransactionCountApi = {
|
|
5
4
|
/**
|
|
6
5
|
* Returns the current Transaction count from the ledger
|
|
7
6
|
*/
|
|
@@ -9,6 +8,6 @@ export interface GetTransactionCountApi extends RpcApiMethods {
|
|
|
9
8
|
commitment?: Commitment;
|
|
10
9
|
minContextSlot?: Slot;
|
|
11
10
|
}>): GetTransactionCountApiResponse;
|
|
12
|
-
}
|
|
11
|
+
};
|
|
13
12
|
export {};
|
|
14
13
|
//# sourceMappingURL=getTransactionCount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionCount.d.ts","sourceRoot":"","sources":["../../src/getTransactionCount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getTransactionCount.d.ts","sourceRoot":"","sources":["../../src/getTransactionCount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,8BAA8B,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,sBAAsB,GAAG;IACjC;;OAEG;IACH,mBAAmB,CACf,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,UAAU,CAAC;QAExB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,8BAA8B,CAAC;CACrC,CAAC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
1
|
type GetVersionApiResponse = Readonly<{
|
|
3
2
|
/** Unique identifier of the current software's feature set */
|
|
4
3
|
'feature-set': number;
|
|
5
4
|
/** Software version of `solana-core` */
|
|
6
5
|
'solana-core': string;
|
|
7
6
|
}>;
|
|
8
|
-
export
|
|
7
|
+
export type GetVersionApi = {
|
|
9
8
|
/**
|
|
10
9
|
* Returns the current Solana version running on the node
|
|
11
10
|
*/
|
|
12
11
|
getVersion(NO_CONFIG?: Record<string, never>): GetVersionApiResponse;
|
|
13
|
-
}
|
|
12
|
+
};
|
|
14
13
|
export {};
|
|
15
14
|
//# sourceMappingURL=getVersion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVersion.d.ts","sourceRoot":"","sources":["../../src/getVersion.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"getVersion.d.ts","sourceRoot":"","sources":["../../src/getVersion.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,QAAQ,CAAC;IAClC,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,UAAU,CAEN,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,qBAAqB,CAAC;CAC5B,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
type
|
|
5
|
-
type Credits = U64UnsafeBeyond2Pow53Minus1;
|
|
6
|
-
type PreviousCredits = U64UnsafeBeyond2Pow53Minus1;
|
|
2
|
+
import type { Commitment, Epoch, Slot } from '@solana/rpc-types';
|
|
3
|
+
type Credits = bigint;
|
|
4
|
+
type PreviousCredits = bigint;
|
|
7
5
|
type EpochCredit = [Epoch, Credits, PreviousCredits];
|
|
8
6
|
type VoteAccount<TVotePubkey extends Address> = Readonly<{
|
|
9
7
|
/** the stake, in lamports, delegated to this vote account and active in this epoch */
|
|
10
|
-
activatedStake:
|
|
8
|
+
activatedStake: bigint;
|
|
11
9
|
/** percentage (0-100) of rewards payout owed to the vote account */
|
|
12
10
|
commission: number;
|
|
13
11
|
/** Latest history of earned credits for up to five epochs */
|
|
@@ -15,7 +13,7 @@ type VoteAccount<TVotePubkey extends Address> = Readonly<{
|
|
|
15
13
|
/** whether the vote account is staked for this epoch */
|
|
16
14
|
epochVoteAccount: boolean;
|
|
17
15
|
/** Most recent slot voted on by this vote account */
|
|
18
|
-
lastVote:
|
|
16
|
+
lastVote: bigint;
|
|
19
17
|
/** Validator identity */
|
|
20
18
|
nodePubkey: Address;
|
|
21
19
|
/** Current root slot for this vote account */
|
|
@@ -30,15 +28,15 @@ type GetVoteAccountsApiResponse<TVotePubkey extends Address> = Readonly<{
|
|
|
30
28
|
type GetVoteAccountsConfig<TVotePubkey extends Address> = Readonly<{
|
|
31
29
|
commitment?: Commitment;
|
|
32
30
|
/** Specify the number of slots behind the tip that a validator must fall to be considered delinquent. **NOTE:** For the sake of consistency between ecosystem products, _it is **not** recommended that this argument be specified._ */
|
|
33
|
-
delinquentSlotDistance?:
|
|
31
|
+
delinquentSlotDistance?: bigint;
|
|
34
32
|
/** Do not filter out delinquent validators with no stake */
|
|
35
33
|
keepUnstakedDelinquents?: boolean;
|
|
36
34
|
/** Only return results for this validator vote address */
|
|
37
35
|
votePubkey?: TVotePubkey;
|
|
38
36
|
}>;
|
|
39
|
-
export
|
|
37
|
+
export type GetVoteAccountsApi = {
|
|
40
38
|
/** Returns the account info and associated stake for all the voting accounts in the current bank. */
|
|
41
39
|
getVoteAccounts<TVoteAccount extends Address>(config?: GetVoteAccountsConfig<TVoteAccount>): GetVoteAccountsApiResponse<TVoteAccount>;
|
|
42
|
-
}
|
|
40
|
+
};
|
|
43
41
|
export {};
|
|
44
42
|
//# sourceMappingURL=getVoteAccounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVoteAccounts.d.ts","sourceRoot":"","sources":["../../src/getVoteAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getVoteAccounts.d.ts","sourceRoot":"","sources":["../../src/getVoteAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEjE,KAAK,OAAO,GAAG,MAAM,CAAC;AACtB,KAAK,eAAe,GAAG,MAAM,CAAC;AAE9B,KAAK,WAAW,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;AAErD,KAAK,WAAW,CAAC,WAAW,SAAS,OAAO,IAAI,QAAQ,CAAC;IACrD,sFAAsF;IACtF,cAAc,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;IACrC,wDAAwD;IACxD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,EAAE,IAAI,CAAC;IACf,2BAA2B;IAC3B,UAAU,EAAE,WAAW,CAAC;CAC3B,CAAC,CAAC;AAEH,KAAK,0BAA0B,CAAC,WAAW,SAAS,OAAO,IAAI,QAAQ,CAAC;IACpE,OAAO,EAAE,SAAS,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC;IAC7C,UAAU,EAAE,SAAS,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC;CACnD,CAAC,CAAC;AAEH,KAAK,qBAAqB,CAAC,WAAW,SAAS,OAAO,IAAI,QAAQ,CAAC;IAC/D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,wOAAwO;IACxO,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,4DAA4D;IAC5D,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,WAAW,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,qGAAqG;IACrG,eAAe,CAAC,YAAY,SAAS,OAAO,EACxC,MAAM,CAAC,EAAE,qBAAqB,CAAC,YAAY,CAAC,GAC7C,0BAA0B,CAAC,YAAY,CAAC,CAAC;CAC/C,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RpcApi } from '@solana/rpc-spec';
|
|
2
|
-
import {
|
|
2
|
+
import { RequestTransformerConfig } from '@solana/rpc-transformers';
|
|
3
3
|
import { GetAccountInfoApi } from './getAccountInfo';
|
|
4
4
|
import { GetBalanceApi } from './getBalance';
|
|
5
5
|
import { GetBlockApi } from './getBlock';
|
|
@@ -36,7 +36,6 @@ import { GetSignatureStatusesApi } from './getSignatureStatuses';
|
|
|
36
36
|
import { GetSlotApi } from './getSlot';
|
|
37
37
|
import { GetSlotLeaderApi } from './getSlotLeader';
|
|
38
38
|
import { GetSlotLeadersApi } from './getSlotLeaders';
|
|
39
|
-
import { GetStakeActivationApi } from './getStakeActivation';
|
|
40
39
|
import { GetStakeMinimumDelegationApi } from './getStakeMinimumDelegation';
|
|
41
40
|
import { GetSupplyApi } from './getSupply';
|
|
42
41
|
import { GetTokenAccountBalanceApi } from './getTokenAccountBalance';
|
|
@@ -53,13 +52,13 @@ import { MinimumLedgerSlotApi } from './minimumLedgerSlot';
|
|
|
53
52
|
import { RequestAirdropApi } from './requestAirdrop';
|
|
54
53
|
import { SendTransactionApi } from './sendTransaction';
|
|
55
54
|
import { SimulateTransactionApi } from './simulateTransaction';
|
|
56
|
-
type SolanaRpcApiForAllClusters = GetAccountInfoApi & GetBalanceApi & GetBlockApi & GetBlockCommitmentApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetBlocksWithLimitApi & GetBlockTimeApi & GetClusterNodesApi & GetEpochInfoApi & GetEpochScheduleApi & GetFeeForMessageApi & GetFirstAvailableBlockApi & GetGenesisHashApi & GetHealthApi & GetHighestSnapshotSlotApi & GetIdentityApi & GetInflationGovernorApi & GetInflationRateApi & GetInflationRewardApi & GetLargestAccountsApi & GetLatestBlockhashApi & GetLeaderScheduleApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetMinimumBalanceForRentExemptionApi & GetMultipleAccountsApi & GetProgramAccountsApi & GetRecentPerformanceSamplesApi & GetRecentPrioritizationFeesApi & GetSignaturesForAddressApi & GetSignatureStatusesApi & GetSlotApi & GetSlotLeaderApi & GetSlotLeadersApi &
|
|
55
|
+
type SolanaRpcApiForAllClusters = GetAccountInfoApi & GetBalanceApi & GetBlockApi & GetBlockCommitmentApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetBlocksWithLimitApi & GetBlockTimeApi & GetClusterNodesApi & GetEpochInfoApi & GetEpochScheduleApi & GetFeeForMessageApi & GetFirstAvailableBlockApi & GetGenesisHashApi & GetHealthApi & GetHighestSnapshotSlotApi & GetIdentityApi & GetInflationGovernorApi & GetInflationRateApi & GetInflationRewardApi & GetLargestAccountsApi & GetLatestBlockhashApi & GetLeaderScheduleApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetMinimumBalanceForRentExemptionApi & GetMultipleAccountsApi & GetProgramAccountsApi & GetRecentPerformanceSamplesApi & GetRecentPrioritizationFeesApi & GetSignaturesForAddressApi & GetSignatureStatusesApi & GetSlotApi & GetSlotLeaderApi & GetSlotLeadersApi & GetStakeMinimumDelegationApi & GetSupplyApi & GetTokenAccountBalanceApi & GetTokenAccountsByDelegateApi & GetTokenAccountsByOwnerApi & GetTokenLargestAccountsApi & GetTokenSupplyApi & GetTransactionApi & GetTransactionCountApi & GetVersionApi & GetVoteAccountsApi & IsBlockhashValidApi & MinimumLedgerSlotApi & SendTransactionApi & SimulateTransactionApi;
|
|
57
56
|
type SolanaRpcApiForTestClusters = RequestAirdropApi & SolanaRpcApiForAllClusters;
|
|
58
57
|
export type SolanaRpcApi = SolanaRpcApiForTestClusters;
|
|
59
58
|
export type SolanaRpcApiDevnet = SolanaRpcApiForTestClusters;
|
|
60
59
|
export type SolanaRpcApiTestnet = SolanaRpcApiForTestClusters;
|
|
61
60
|
export type SolanaRpcApiMainnet = SolanaRpcApiForAllClusters;
|
|
62
|
-
export type { GetAccountInfoApi, GetBalanceApi, GetBlockApi, GetBlockCommitmentApi, GetBlockHeightApi, GetBlockProductionApi, GetBlocksApi, GetBlocksWithLimitApi, GetBlockTimeApi, GetClusterNodesApi, GetEpochInfoApi, GetEpochScheduleApi, GetFeeForMessageApi, GetFirstAvailableBlockApi, GetGenesisHashApi, GetHealthApi, GetHighestSnapshotSlotApi, GetIdentityApi, GetInflationGovernorApi, GetInflationRateApi, GetInflationRewardApi, GetLargestAccountsApi, GetLatestBlockhashApi, GetLeaderScheduleApi, GetMaxRetransmitSlotApi, GetMaxShredInsertSlotApi, GetMinimumBalanceForRentExemptionApi, GetMultipleAccountsApi, GetProgramAccountsApi, GetRecentPerformanceSamplesApi, GetRecentPrioritizationFeesApi, GetSignaturesForAddressApi, GetSignatureStatusesApi, GetSlotApi, GetSlotLeaderApi, GetSlotLeadersApi,
|
|
63
|
-
type Config =
|
|
61
|
+
export type { GetAccountInfoApi, GetBalanceApi, GetBlockApi, GetBlockCommitmentApi, GetBlockHeightApi, GetBlockProductionApi, GetBlocksApi, GetBlocksWithLimitApi, GetBlockTimeApi, GetClusterNodesApi, GetEpochInfoApi, GetEpochScheduleApi, GetFeeForMessageApi, GetFirstAvailableBlockApi, GetGenesisHashApi, GetHealthApi, GetHighestSnapshotSlotApi, GetIdentityApi, GetInflationGovernorApi, GetInflationRateApi, GetInflationRewardApi, GetLargestAccountsApi, GetLatestBlockhashApi, GetLeaderScheduleApi, GetMaxRetransmitSlotApi, GetMaxShredInsertSlotApi, GetMinimumBalanceForRentExemptionApi, GetMultipleAccountsApi, GetProgramAccountsApi, GetRecentPerformanceSamplesApi, GetRecentPrioritizationFeesApi, GetSignaturesForAddressApi, GetSignatureStatusesApi, GetSlotApi, GetSlotLeaderApi, GetSlotLeadersApi, GetStakeMinimumDelegationApi, GetSupplyApi, GetTokenAccountBalanceApi, GetTokenAccountsByDelegateApi, GetTokenAccountsByOwnerApi, GetTokenLargestAccountsApi, GetTokenSupplyApi, GetTransactionApi, GetTransactionCountApi, GetVersionApi, GetVoteAccountsApi, IsBlockhashValidApi, MinimumLedgerSlotApi, RequestAirdropApi, SendTransactionApi, SimulateTransactionApi, };
|
|
62
|
+
type Config = RequestTransformerConfig;
|
|
64
63
|
export declare function createSolanaRpcApi<TRpcMethods extends SolanaRpcApi | SolanaRpcApiDevnet | SolanaRpcApiMainnet | SolanaRpcApiTestnet = SolanaRpcApi>(config?: Config): RpcApi<TRpcMethods>;
|
|
65
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,kBAAkB,CAAC;A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,mBAAmB,GAAG,2BAA2B,CAAC;AAC9D,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AAE7D,YAAY,EACR,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,yBAAyB,EACzB,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,oCAAoC,EACpC,sBAAsB,EACtB,qBAAqB,EACrB,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,4BAA4B,EAC5B,YAAY,EACZ,yBAAyB,EACzB,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,GACzB,CAAC;AAEF,KAAK,MAAM,GAAG,wBAAwB,CAAC;AAEvC,wBAAgB,kBAAkB,CAE9B,WAAW,SAAS,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,YAAY,EAClH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAOtC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
1
|
import type { Blockhash, Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types';
|
|
3
2
|
type IsBlockhashValidApiResponse = boolean;
|
|
4
|
-
export
|
|
3
|
+
export type IsBlockhashValidApi = {
|
|
5
4
|
/**
|
|
6
5
|
* Returns whether a blockhash is still valid or not
|
|
7
6
|
*/
|
|
@@ -13,6 +12,6 @@ export interface IsBlockhashValidApi extends RpcApiMethods {
|
|
|
13
12
|
/** The minimum slot that the request can be evaluated at */
|
|
14
13
|
minContextSlot?: Slot;
|
|
15
14
|
}>): SolanaRpcResponse<IsBlockhashValidApiResponse>;
|
|
16
|
-
}
|
|
15
|
+
};
|
|
17
16
|
export {};
|
|
18
17
|
//# sourceMappingURL=isBlockhashValid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isBlockhashValid.d.ts","sourceRoot":"","sources":["../../src/isBlockhashValid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"isBlockhashValid.d.ts","sourceRoot":"","sources":["../../src/isBlockhashValid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAExF,KAAK,2BAA2B,GAAG,OAAO,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,gBAAgB;IACZ,mDAAmD;IACnD,SAAS,EAAE,SAAS,EACpB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,8BAA8B;QAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,4DAA4D;QAC5D,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,iBAAiB,CAAC,2BAA2B,CAAC,CAAC;CACrD,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
1
|
import type { Slot } from '@solana/rpc-types';
|
|
3
2
|
type MinimumLedgerSlotApiResponse = Slot;
|
|
4
|
-
export
|
|
3
|
+
export type MinimumLedgerSlotApi = {
|
|
5
4
|
/**
|
|
6
5
|
* Returns the lowest slot that the node has information about in its ledger.
|
|
7
6
|
* This value may increase over time if the node is configured to purge older ledger data.
|
|
8
7
|
*/
|
|
9
8
|
minimumLedgerSlot(): MinimumLedgerSlotApiResponse;
|
|
10
|
-
}
|
|
9
|
+
};
|
|
11
10
|
export {};
|
|
12
11
|
//# sourceMappingURL=minimumLedgerSlot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minimumLedgerSlot.d.ts","sourceRoot":"","sources":["../../src/minimumLedgerSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"minimumLedgerSlot.d.ts","sourceRoot":"","sources":["../../src/minimumLedgerSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,4BAA4B,GAAG,IAAI,CAAC;AAEzC,MAAM,MAAM,oBAAoB,GAAG;IAC/B;;;OAGG;IACH,iBAAiB,IAAI,4BAA4B,CAAC;CACrD,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
2
|
import type { Signature } from '@solana/keys';
|
|
3
|
-
import type {
|
|
4
|
-
import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
import type { Commitment, Lamports } from '@solana/rpc-types';
|
|
5
4
|
type RequestAirdropConfig = Readonly<{
|
|
6
5
|
commitment?: Commitment;
|
|
7
6
|
}>;
|
|
8
7
|
type RequestAirdropResponse = Signature;
|
|
9
|
-
export
|
|
8
|
+
export type RequestAirdropApi = {
|
|
10
9
|
/**
|
|
11
10
|
* Requests an airdrop of lamports to a Pubkey
|
|
12
11
|
*/
|
|
13
|
-
requestAirdrop(recipientAccount: Address, lamports:
|
|
14
|
-
}
|
|
12
|
+
requestAirdrop(recipientAccount: Address, lamports: Lamports, config?: RequestAirdropConfig): RequestAirdropResponse;
|
|
13
|
+
};
|
|
15
14
|
export {};
|
|
16
15
|
//# sourceMappingURL=requestAirdrop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestAirdrop.d.ts","sourceRoot":"","sources":["../../src/requestAirdrop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"requestAirdrop.d.ts","sourceRoot":"","sources":["../../src/requestAirdrop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE9D,KAAK,oBAAoB,GAAG,QAAQ,CAAC;IACjC,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC,CAAC;AAEH,KAAK,sBAAsB,GAAG,SAAS,CAAC;AAExC,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,cAAc,CACV,gBAAgB,EAAE,OAAO,EACzB,QAAQ,EAAE,QAAQ,EAClB,MAAM,CAAC,EAAE,oBAAoB,GAC9B,sBAAsB,CAAC;CAC7B,CAAC"}
|