@solana/web3.js 1.43.5 → 1.44.1
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/lib/index.browser.cjs.js +6 -0
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +5 -1
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +6 -0
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +12 -1
- package/lib/index.esm.js +5 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +6 -0
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +2 -2
- package/lib/index.iife.min.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/system-program.ts +9 -1
- package/src/transaction.ts +5 -0
package/lib/index.d.ts
CHANGED
|
@@ -415,6 +415,7 @@ declare module '@solana/web3.js' {
|
|
|
415
415
|
/** A recent blockhash */
|
|
416
416
|
recentBlockhash?: Blockhash;
|
|
417
417
|
};
|
|
418
|
+
export type TransactionCtorFields = TransactionCtorFields_DEPRECATED;
|
|
418
419
|
/**
|
|
419
420
|
* List of Transaction object fields that may be initialized at construction
|
|
420
421
|
*/
|
|
@@ -2981,7 +2982,8 @@ declare module '@solana/web3.js' {
|
|
|
2981
2982
|
| 'InitializeNonceAccount'
|
|
2982
2983
|
| 'Transfer'
|
|
2983
2984
|
| 'TransferWithSeed'
|
|
2984
|
-
| 'WithdrawNonceAccount'
|
|
2985
|
+
| 'WithdrawNonceAccount'
|
|
2986
|
+
| 'UpgradeNonceAccount';
|
|
2985
2987
|
/**
|
|
2986
2988
|
* Factory class for transactions to interact with the System program
|
|
2987
2989
|
*/
|
|
@@ -3415,6 +3417,15 @@ declare module '@solana/web3.js' {
|
|
|
3415
3417
|
options?: ConfirmOptions,
|
|
3416
3418
|
): Promise<TransactionSignature>;
|
|
3417
3419
|
|
|
3420
|
+
export class TransactionExpiredBlockheightExceededError extends Error {
|
|
3421
|
+
signature: string;
|
|
3422
|
+
constructor(signature: string);
|
|
3423
|
+
}
|
|
3424
|
+
export class TransactionExpiredTimeoutError extends Error {
|
|
3425
|
+
signature: string;
|
|
3426
|
+
constructor(signature: string, timeoutSeconds: number);
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3418
3429
|
export type Cluster = 'devnet' | 'testnet' | 'mainnet-beta';
|
|
3419
3430
|
/**
|
|
3420
3431
|
* Retrieves the RPC API URL for the specified cluster
|
package/lib/index.esm.js
CHANGED
|
@@ -3573,6 +3573,10 @@ const SYSTEM_INSTRUCTION_LAYOUTS = Object.freeze({
|
|
|
3573
3573
|
TransferWithSeed: {
|
|
3574
3574
|
index: 11,
|
|
3575
3575
|
layout: BufferLayout.struct([BufferLayout.u32('instruction'), u64('lamports'), rustString('seed'), publicKey('programId')])
|
|
3576
|
+
},
|
|
3577
|
+
UpgradeNonceAccount: {
|
|
3578
|
+
index: 12,
|
|
3579
|
+
layout: BufferLayout.struct([BufferLayout.u32('instruction')])
|
|
3576
3580
|
}
|
|
3577
3581
|
});
|
|
3578
3582
|
/**
|
|
@@ -9857,5 +9861,5 @@ function clusterApiUrl(cluster, tls) {
|
|
|
9857
9861
|
|
|
9858
9862
|
const LAMPORTS_PER_SOL = 1000000000;
|
|
9859
9863
|
|
|
9860
|
-
export { Account, Authorized, BLOCKHASH_CACHE_TIMEOUT_MS, BPF_LOADER_DEPRECATED_PROGRAM_ID, BPF_LOADER_PROGRAM_ID, BpfLoader, COMPUTE_BUDGET_INSTRUCTION_LAYOUTS, ComputeBudgetInstruction, ComputeBudgetProgram, Connection, Ed25519Program, Enum, EpochSchedule, FeeCalculatorLayout, Keypair, LAMPORTS_PER_SOL, Loader, Lockup, MAX_SEED_LENGTH, Message, NONCE_ACCOUNT_LENGTH, NonceAccount, PACKET_DATA_SIZE, PublicKey, SIGNATURE_LENGTH_IN_BYTES, SOLANA_SCHEMA, STAKE_CONFIG_ID, STAKE_INSTRUCTION_LAYOUTS, SYSTEM_INSTRUCTION_LAYOUTS, SYSVAR_CLOCK_PUBKEY, SYSVAR_EPOCH_SCHEDULE_PUBKEY, SYSVAR_INSTRUCTIONS_PUBKEY, SYSVAR_RECENT_BLOCKHASHES_PUBKEY, SYSVAR_RENT_PUBKEY, SYSVAR_REWARDS_PUBKEY, SYSVAR_SLOT_HASHES_PUBKEY, SYSVAR_SLOT_HISTORY_PUBKEY, SYSVAR_STAKE_HISTORY_PUBKEY, Secp256k1Program, SendTransactionError, StakeAuthorizationLayout, StakeInstruction, StakeProgram, Struct, SystemInstruction, SystemProgram, Transaction, TransactionInstruction, TransactionStatus, VALIDATOR_INFO_KEY, VOTE_PROGRAM_ID, ValidatorInfo, VoteAccount, VoteAuthorizationLayout, VoteInit, VoteInstruction, VoteProgram, clusterApiUrl, sendAndConfirmRawTransaction, sendAndConfirmTransaction };
|
|
9864
|
+
export { Account, Authorized, BLOCKHASH_CACHE_TIMEOUT_MS, BPF_LOADER_DEPRECATED_PROGRAM_ID, BPF_LOADER_PROGRAM_ID, BpfLoader, COMPUTE_BUDGET_INSTRUCTION_LAYOUTS, ComputeBudgetInstruction, ComputeBudgetProgram, Connection, Ed25519Program, Enum, EpochSchedule, FeeCalculatorLayout, Keypair, LAMPORTS_PER_SOL, Loader, Lockup, MAX_SEED_LENGTH, Message, NONCE_ACCOUNT_LENGTH, NonceAccount, PACKET_DATA_SIZE, PublicKey, SIGNATURE_LENGTH_IN_BYTES, SOLANA_SCHEMA, STAKE_CONFIG_ID, STAKE_INSTRUCTION_LAYOUTS, SYSTEM_INSTRUCTION_LAYOUTS, SYSVAR_CLOCK_PUBKEY, SYSVAR_EPOCH_SCHEDULE_PUBKEY, SYSVAR_INSTRUCTIONS_PUBKEY, SYSVAR_RECENT_BLOCKHASHES_PUBKEY, SYSVAR_RENT_PUBKEY, SYSVAR_REWARDS_PUBKEY, SYSVAR_SLOT_HASHES_PUBKEY, SYSVAR_SLOT_HISTORY_PUBKEY, SYSVAR_STAKE_HISTORY_PUBKEY, Secp256k1Program, SendTransactionError, StakeAuthorizationLayout, StakeInstruction, StakeProgram, Struct, SystemInstruction, SystemProgram, Transaction, TransactionExpiredBlockheightExceededError, TransactionExpiredTimeoutError, TransactionInstruction, TransactionStatus, VALIDATOR_INFO_KEY, VOTE_PROGRAM_ID, ValidatorInfo, VoteAccount, VoteAuthorizationLayout, VoteInit, VoteInstruction, VoteProgram, clusterApiUrl, sendAndConfirmRawTransaction, sendAndConfirmTransaction };
|
|
9861
9865
|
//# sourceMappingURL=index.esm.js.map
|