@solana/rpc-api 2.0.0-rc.0 → 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 +8 -8
- 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,5 +1,4 @@
|
|
|
1
1
|
import type { Signature } from '@solana/keys';
|
|
2
|
-
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
2
|
import type { Commitment, Slot } from '@solana/rpc-types';
|
|
4
3
|
import type { Base64EncodedWireTransaction } from '@solana/transactions';
|
|
5
4
|
type SendTransactionConfig = Readonly<{
|
|
@@ -9,7 +8,7 @@ type SendTransactionConfig = Readonly<{
|
|
|
9
8
|
skipPreflight?: boolean;
|
|
10
9
|
}>;
|
|
11
10
|
type SendTransactionResponse = Signature;
|
|
12
|
-
export
|
|
11
|
+
export type SendTransactionApi = {
|
|
13
12
|
/** @deprecated Set `encoding` to `'base64'` when calling this method */
|
|
14
13
|
sendTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config?: SendTransactionConfig & {
|
|
15
14
|
encoding?: 'base58';
|
|
@@ -44,6 +43,6 @@ export interface SendTransactionApi extends RpcApiMethods {
|
|
|
44
43
|
sendTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config?: SendTransactionConfig & {
|
|
45
44
|
encoding: 'base64';
|
|
46
45
|
}): SendTransactionResponse;
|
|
47
|
-
}
|
|
46
|
+
};
|
|
48
47
|
export {};
|
|
49
48
|
//# sourceMappingURL=sendTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../src/sendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../src/sendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEzE,KAAK,qBAAqB,GAAG,QAAQ,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC,CAAC;AAEH,KAAK,uBAAuB,GAAG,SAAS,CAAC;AAEzC,MAAM,MAAM,kBAAkB,GAAG;IAC7B,wEAAwE;IACxE,eAAe,CACX,4BAA4B,EAAE,4BAA4B,EAC1D,MAAM,CAAC,EAAE,qBAAqB,GAAG;QAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;KAAE,GACzD,uBAAuB,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,eAAe,CACX,4BAA4B,EAAE,4BAA4B,EAC1D,MAAM,CAAC,EAAE,qBAAqB,GAAG;QAAE,QAAQ,EAAE,QAAQ,CAAA;KAAE,GACxD,uBAAuB,CAAC;CAC9B,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type { Base64EncodedWireTransaction } from '@solana/transactions';
|
|
2
|
+
import type { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedDataResponse, Commitment, Slot, SolanaRpcResponse, TransactionError, TransactionForFullMetaInnerInstructionsParsed, TransactionForFullMetaInnerInstructionsUnparsed } from '@solana/rpc-types';
|
|
3
|
+
import type { Base64EncodedWireTransaction, TransactionBlockhashLifetime } from '@solana/transactions';
|
|
5
4
|
type SimulateTransactionConfigBase = Readonly<{
|
|
6
5
|
/**
|
|
7
6
|
* Commitment level to simulate the transaction at
|
|
@@ -66,7 +65,7 @@ type SimulateTransactionApiResponseBase = Readonly<{
|
|
|
66
65
|
/** Array of log messages the transaction instructions output during execution, null if simulation failed before the transaction was able to execute (for example due to an invalid blockhash or signature verification failure) */
|
|
67
66
|
logs: string[] | null;
|
|
68
67
|
/** The blockhash that was used to simulate the transaction when `replaceRecentBlockhash` is `true` */
|
|
69
|
-
replacementBlockhash?:
|
|
68
|
+
replacementBlockhash?: TransactionBlockhashLifetime;
|
|
70
69
|
/** The most-recent return data generated by an instruction in the transaction */
|
|
71
70
|
returnData: Readonly<{
|
|
72
71
|
/** The return data itself, as base-64 encoded binary data */
|
|
@@ -75,14 +74,14 @@ type SimulateTransactionApiResponseBase = Readonly<{
|
|
|
75
74
|
programId: Address;
|
|
76
75
|
}> | null;
|
|
77
76
|
/** The number of compute budget units consumed during the processing of this transaction */
|
|
78
|
-
unitsConsumed?:
|
|
77
|
+
unitsConsumed?: bigint;
|
|
79
78
|
}>;
|
|
80
79
|
type SimulateTransactionApiResponseWithAccounts<T extends AccountInfoBase> = Readonly<{
|
|
81
80
|
/** Array of accounts with the same length as the `accounts.addresses` array in the request */
|
|
82
81
|
accounts: (T | null)[];
|
|
83
82
|
}>;
|
|
84
83
|
type SimulateTransactionApiResponseWithInnerInstructions = Readonly<TransactionForFullMetaInnerInstructionsParsed | TransactionForFullMetaInnerInstructionsUnparsed>;
|
|
85
|
-
export
|
|
84
|
+
export type SimulateTransactionApi = {
|
|
86
85
|
/** @deprecated Set `encoding` to `'base64'` when calling this method */
|
|
87
86
|
simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config: AccountsConfigWithBase64Encoding & SigVerifyAndReplaceRecentBlockhashConfig & SimulateTransactionConfigBase & WithInnerInstructionsConfig): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithInnerInstructions>;
|
|
88
87
|
/** @deprecated Set `encoding` to `'base64'` when calling this method */
|
|
@@ -139,6 +138,6 @@ export interface SimulateTransactionApi extends RpcApiMethods {
|
|
|
139
138
|
}): SolanaRpcResponse<Readonly<{
|
|
140
139
|
readonly accounts: null;
|
|
141
140
|
}> & SimulateTransactionApiResponseBase>;
|
|
142
|
-
}
|
|
141
|
+
};
|
|
143
142
|
export {};
|
|
144
143
|
//# sourceMappingURL=simulateTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulateTransaction.d.ts","sourceRoot":"","sources":["../../src/simulateTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"simulateTransaction.d.ts","sourceRoot":"","sources":["../../src/simulateTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EACR,eAAe,EACf,gCAAgC,EAChC,8CAA8C,EAC9C,uBAAuB,EACvB,kBAAkB,EAClB,yBAAyB,EACzB,UAAU,EACV,IAAI,EACJ,iBAAiB,EACjB,gBAAgB,EAChB,6CAA6C,EAC7C,+CAA+C,EAClD,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEvG,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAC1C;;;SAGK;IACL,UAAU,CAAC,EAAE,UAAU,CAAC;IACx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CAChB,kCAAkC,GAC9B,0CAA0C,CAAC,eAAe,GAAG,uBAAuB,CAAC,GACrF,mDAAmD,CAC1D,CAAC;IAEF,qCAAqC;IACrC,mBAAmB,CACf,4BAA4B,EAAE,4BAA4B,EAC1D,MAAM,EAAE,oCAAoC,GACxC,wCAAwC,GACxC,6BAA6B,GAAG;QAAE,QAAQ,EAAE,QAAQ,CAAA;KAAE,GAC3D,iBAAiB,CAChB,kCAAkC,GAC9B,0CAA0C,CAAC,eAAe,GAAG,uBAAuB,CAAC,CAC5F,CAAC;IAEF,qCAAqC;IACrC,mBAAmB,CACf,4BAA4B,EAAE,4BAA4B,EAC1D,MAAM,EAAE,wCAAwC,GAC5C,6BAA6B,GAC7B,2BAA2B,GAAG;QAAE,QAAQ,EAAE,QAAQ,CAAA;KAAE,GACzD,iBAAiB,CAChB,QAAQ,CAAC;QAAE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;KAAE,CAAC,GACjC,kCAAkC,GAClC,mDAAmD,CAC1D,CAAC;IAEF,qCAAqC;IACrC,mBAAmB,CACf,4BAA4B,EAAE,4BAA4B,EAC1D,MAAM,EAAE,wCAAwC,GAAG,6BAA6B,GAAG;QAAE,QAAQ,EAAE,QAAQ,CAAA;KAAE,GAC1G,iBAAiB,CAAC,QAAQ,CAAC;QAAE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;KAAE,CAAC,GAAG,kCAAkC,CAAC,CAAC;CACpG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/rpc-api",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.2",
|
|
4
4
|
"description": "Defines all default Solana RPC methods as types",
|
|
5
5
|
"exports": {
|
|
6
|
+
"edge-light": {
|
|
7
|
+
"import": "./dist/index.node.mjs",
|
|
8
|
+
"require": "./dist/index.node.cjs"
|
|
9
|
+
},
|
|
10
|
+
"workerd": {
|
|
11
|
+
"import": "./dist/index.node.mjs",
|
|
12
|
+
"require": "./dist/index.node.cjs"
|
|
13
|
+
},
|
|
6
14
|
"browser": {
|
|
7
15
|
"import": "./dist/index.browser.mjs",
|
|
8
16
|
"require": "./dist/index.browser.cjs"
|
|
@@ -46,17 +54,17 @@
|
|
|
46
54
|
"maintained node versions"
|
|
47
55
|
],
|
|
48
56
|
"dependencies": {
|
|
49
|
-
"@solana/addresses": "2.0.0-rc.
|
|
50
|
-
"@solana/codecs-core": "2.0.0-rc.
|
|
51
|
-
"@solana/codecs-strings": "2.0.0-rc.
|
|
52
|
-
"@solana/errors": "2.0.0-rc.
|
|
53
|
-
"@solana/keys": "2.0.0-rc.
|
|
54
|
-
"@solana/rpc-parsed-types": "2.0.0-rc.
|
|
55
|
-
"@solana/rpc-spec": "2.0.0-rc.
|
|
56
|
-
"@solana/rpc-transformers": "2.0.0-rc.
|
|
57
|
-
"@solana/
|
|
58
|
-
"@solana/
|
|
59
|
-
"@solana/transactions": "2.0.0-rc.
|
|
57
|
+
"@solana/addresses": "2.0.0-rc.2",
|
|
58
|
+
"@solana/codecs-core": "2.0.0-rc.2",
|
|
59
|
+
"@solana/codecs-strings": "2.0.0-rc.2",
|
|
60
|
+
"@solana/errors": "2.0.0-rc.2",
|
|
61
|
+
"@solana/keys": "2.0.0-rc.2",
|
|
62
|
+
"@solana/rpc-parsed-types": "2.0.0-rc.2",
|
|
63
|
+
"@solana/rpc-spec": "2.0.0-rc.2",
|
|
64
|
+
"@solana/rpc-transformers": "2.0.0-rc.2",
|
|
65
|
+
"@solana/transaction-messages": "2.0.0-rc.2",
|
|
66
|
+
"@solana/rpc-types": "2.0.0-rc.2",
|
|
67
|
+
"@solana/transactions": "2.0.0-rc.2"
|
|
60
68
|
},
|
|
61
69
|
"peerDependencies": {
|
|
62
70
|
"typescript": ">=5"
|
|
@@ -69,13 +77,16 @@
|
|
|
69
77
|
}
|
|
70
78
|
]
|
|
71
79
|
},
|
|
80
|
+
"engines": {
|
|
81
|
+
"node": ">=20.18.0"
|
|
82
|
+
},
|
|
72
83
|
"scripts": {
|
|
73
84
|
"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
|
|
74
85
|
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
|
|
75
86
|
"dev": "jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --watch",
|
|
76
87
|
"publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag ${PUBLISH_TAG:-canary} --access public --no-git-checks",
|
|
77
88
|
"publish-packages": "pnpm prepublishOnly && pnpm publish-impl",
|
|
78
|
-
"style:fix": "pnpm eslint --fix src
|
|
89
|
+
"style:fix": "pnpm eslint --fix src && pnpm prettier --log-level warn --ignore-unknown --write ./*",
|
|
79
90
|
"test:lint": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
|
|
80
91
|
"test:prettier": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
|
|
81
92
|
"test:treeshakability:browser": "agadoo dist/index.browser.mjs",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Address } from '@solana/addresses';
|
|
2
|
-
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
-
import type { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
4
|
-
type GetStakeActivationApiResponse = Readonly<{
|
|
5
|
-
/** Stake active during the epoch */
|
|
6
|
-
active: U64UnsafeBeyond2Pow53Minus1;
|
|
7
|
-
/** Stake inactive during the epoch */
|
|
8
|
-
inactive: U64UnsafeBeyond2Pow53Minus1;
|
|
9
|
-
/** The stake account's activation state */
|
|
10
|
-
state: 'activating' | 'active' | 'deactivating' | 'inactive';
|
|
11
|
-
}>;
|
|
12
|
-
export interface GetStakeActivationApi extends RpcApiMethods {
|
|
13
|
-
/**
|
|
14
|
-
* Returns epoch activation information for a stake account
|
|
15
|
-
*
|
|
16
|
-
* @deprecated Deprecated since RPC v1.18; will be removed in a future version.
|
|
17
|
-
*/
|
|
18
|
-
getStakeActivation(address: Address, config?: Readonly<{
|
|
19
|
-
commitment?: Commitment;
|
|
20
|
-
/** Defaults to current epoch */
|
|
21
|
-
epoch?: U64UnsafeBeyond2Pow53Minus1;
|
|
22
|
-
minContextSlot?: Slot;
|
|
23
|
-
}>): GetStakeActivationApiResponse;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=getStakeActivation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getStakeActivation.d.ts","sourceRoot":"","sources":["../../src/getStakeActivation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEvF,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAC1C,oCAAoC;IACpC,MAAM,EAAE,2BAA2B,CAAC;IACpC,sCAAsC;IACtC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,2CAA2C;IAC3C,KAAK,EAAE,YAAY,GAAG,QAAQ,GAAG,cAAc,GAAG,UAAU,CAAC;CAChE,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;;;OAIG;IACH,kBAAkB,CACd,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,gCAAgC;QAChC,KAAK,CAAC,EAAE,2BAA2B,CAAC;QACpC,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,6BAA6B,CAAC;CACpC"}
|