@solana/web3.js 1.70.1 → 1.70.3
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 -6
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +6 -6
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +2451 -71
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +12 -8
- package/lib/index.esm.js +2444 -69
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +6 -6
- 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/lib/index.native.js +6 -6
- package/lib/index.native.js.map +1 -1
- package/package.json +2 -1
- package/src/connection.ts +35 -28
- package/src/publickey.ts +4 -3
- package/src/utils/send-and-confirm-raw-transaction.ts +5 -8
- package/src/agent-manager.ts +0 -44
package/lib/index.d.ts
CHANGED
|
@@ -66,11 +66,11 @@ declare module '@solana/web3.js' {
|
|
|
66
66
|
toBase58(): string;
|
|
67
67
|
toJSON(): string;
|
|
68
68
|
/**
|
|
69
|
-
* Return the byte array representation of the public key
|
|
69
|
+
* Return the byte array representation of the public key in big endian
|
|
70
70
|
*/
|
|
71
71
|
toBytes(): Uint8Array;
|
|
72
72
|
/**
|
|
73
|
-
* Return the Buffer representation of the public key
|
|
73
|
+
* Return the Buffer representation of the public key in big endian
|
|
74
74
|
*/
|
|
75
75
|
toBuffer(): Buffer;
|
|
76
76
|
get [Symbol.toStringTag](): string;
|
|
@@ -2051,6 +2051,12 @@ declare module '@solana/web3.js' {
|
|
|
2051
2051
|
abortSignal?: AbortSignal;
|
|
2052
2052
|
signature: TransactionSignature;
|
|
2053
2053
|
}>;
|
|
2054
|
+
/**
|
|
2055
|
+
* This type represents all transaction confirmation strategies
|
|
2056
|
+
*/
|
|
2057
|
+
type TransactionConfirmationStrategy =
|
|
2058
|
+
| BlockheightBasedTransactionConfirmationStrategy
|
|
2059
|
+
| DurableNonceTransactionConfirmationStrategy;
|
|
2054
2060
|
/**
|
|
2055
2061
|
* The level of commitment desired when querying state
|
|
2056
2062
|
* <pre>
|
|
@@ -3496,12 +3502,10 @@ declare module '@solana/web3.js' {
|
|
|
3496
3502
|
}>
|
|
3497
3503
|
>;
|
|
3498
3504
|
confirmTransaction(
|
|
3499
|
-
strategy:
|
|
3500
|
-
| BlockheightBasedTransactionConfirmationStrategy
|
|
3501
|
-
| DurableNonceTransactionConfirmationStrategy,
|
|
3505
|
+
strategy: TransactionConfirmationStrategy,
|
|
3502
3506
|
commitment?: Commitment,
|
|
3503
3507
|
): Promise<RpcResponseAndContext<SignatureResult>>;
|
|
3504
|
-
/** @deprecated Instead, call `confirmTransaction`
|
|
3508
|
+
/** @deprecated Instead, call `confirmTransaction` and pass in {@link TransactionConfirmationStrategy} */
|
|
3505
3509
|
confirmTransaction(
|
|
3506
3510
|
strategy: TransactionSignature,
|
|
3507
3511
|
commitment?: Commitment,
|
|
@@ -4360,14 +4364,14 @@ declare module '@solana/web3.js' {
|
|
|
4360
4364
|
*
|
|
4361
4365
|
* @param {Connection} connection
|
|
4362
4366
|
* @param {Buffer} rawTransaction
|
|
4363
|
-
* @param {
|
|
4367
|
+
* @param {TransactionConfirmationStrategy} confirmationStrategy
|
|
4364
4368
|
* @param {ConfirmOptions} [options]
|
|
4365
4369
|
* @returns {Promise<TransactionSignature>}
|
|
4366
4370
|
*/
|
|
4367
4371
|
export function sendAndConfirmRawTransaction(
|
|
4368
4372
|
connection: Connection,
|
|
4369
4373
|
rawTransaction: Buffer,
|
|
4370
|
-
confirmationStrategy:
|
|
4374
|
+
confirmationStrategy: TransactionConfirmationStrategy,
|
|
4371
4375
|
options?: ConfirmOptions,
|
|
4372
4376
|
): Promise<TransactionSignature>;
|
|
4373
4377
|
/**
|