@solana/transaction-messages 2.2.0-canary-20250514101537 → 2.2.0-canary-20250514102324
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 +2 -2
- package/dist/index.browser.cjs +15 -7
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +14 -8
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.native.mjs +14 -8
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +15 -7
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +14 -8
- package/dist/index.node.mjs.map +1 -1
- package/dist/types/decompile-message.d.ts.map +1 -1
- package/dist/types/deprecated.d.ts +52 -0
- package/dist/types/deprecated.d.ts.map +1 -1
- package/dist/types/durable-nonce-instruction.d.ts +43 -0
- package/dist/types/durable-nonce-instruction.d.ts.map +1 -0
- package/dist/types/durable-nonce.d.ts +26 -49
- package/dist/types/durable-nonce.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decompile-message.d.ts","sourceRoot":"","sources":["../../src/decompile-message.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEpF,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"decompile-message.d.ts","sourceRoot":"","sources":["../../src/decompile-message.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEpF,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AA4KvD,MAAM,MAAM,iCAAiC,GAAG;IAC5C;;;;;;OAMG;IACH,6BAA6B,CAAC,EAAE,6BAA6B,CAAC;IAC9D;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACvC,0BAA0B,EAAE,0BAA0B,EACtD,MAAM,CAAC,EAAE,iCAAiC,GAC3C,4BAA4B,CAyC9B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address } from '@solana/addresses';
|
|
2
|
+
import { assertIsTransactionMessageWithDurableNonceLifetime, isTransactionMessageWithDurableNonceLifetime } from './durable-nonce';
|
|
2
3
|
/**
|
|
3
4
|
* Represents a transaction message for which a fee payer has been declared. A transaction must
|
|
4
5
|
* conform to this type to be compiled and landed on the network.
|
|
@@ -10,4 +11,55 @@ export interface ITransactionMessageWithFeePayer<TAddress extends string = strin
|
|
|
10
11
|
address: Address<TAddress>;
|
|
11
12
|
}>;
|
|
12
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* From time to time you might acquire a transaction message, that you expect to have a
|
|
16
|
+
* nonce-based lifetime, from an untrusted network API or user input. Use this function to assert
|
|
17
|
+
* that such a transaction message actually has a nonce-based lifetime.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated Use {@link assertIsTransactionMessageWithDurableNonceLifetime} instead. It was only renamed.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { assertIsDurableNonceTransactionMessage } from '@solana/transaction-messages';
|
|
24
|
+
*
|
|
25
|
+
* try {
|
|
26
|
+
* // If this type assertion function doesn't throw, then
|
|
27
|
+
* // Typescript will upcast `message` to `TransactionMessageWithDurableNonceLifetime`.
|
|
28
|
+
* assertIsDurableNonceTransactionMessage(message);
|
|
29
|
+
* // At this point, `message` is a `TransactionMessageWithDurableNonceLifetime` that can be used
|
|
30
|
+
* // with the RPC.
|
|
31
|
+
* const { nonce, nonceAccountAddress } = message.lifetimeConstraint;
|
|
32
|
+
* const { data: { blockhash: actualNonce } } = await fetchNonce(nonceAccountAddress);
|
|
33
|
+
* } catch (e) {
|
|
34
|
+
* // `message` turned out not to have a nonce-based lifetime
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare const assertIsDurableNonceTransactionMessage: typeof assertIsTransactionMessageWithDurableNonceLifetime;
|
|
39
|
+
/**
|
|
40
|
+
* A type guard that returns `true` if the transaction message conforms to the
|
|
41
|
+
* {@link TransactionMessageWithDurableNonceLifetime} type, and refines its type for use in your
|
|
42
|
+
* program.
|
|
43
|
+
*
|
|
44
|
+
* @deprecated Use {@link isTransactionMessageWithDurableNonceLifetime} instead. It was only renamed.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* import { isDurableNonceTransaction } from '@solana/transaction-messages';
|
|
49
|
+
* import { fetchNonce } from "@solana-program/system";
|
|
50
|
+
*
|
|
51
|
+
* if (isDurableNonceTransaction(message)) {
|
|
52
|
+
* // At this point, `message` has been refined to a
|
|
53
|
+
* // `TransactionMessageWithDurableNonceLifetime`.
|
|
54
|
+
* const { nonce, nonceAccountAddress } = message.lifetimeConstraint;
|
|
55
|
+
* const { data: { blockhash: actualNonce } } = await fetchNonce(nonceAccountAddress);
|
|
56
|
+
* setNonceIsValid(nonce === actualNonce);
|
|
57
|
+
* } else {
|
|
58
|
+
* setError(
|
|
59
|
+
* `${getSignatureFromTransaction(transaction)} does not have a nonce-based lifetime`,
|
|
60
|
+
* );
|
|
61
|
+
* }
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export declare const isDurableNonceTransaction: typeof isTransactionMessageWithDurableNonceLifetime;
|
|
13
65
|
//# sourceMappingURL=deprecated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../../src/deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM;IAC7E,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;KAAE,CAAC,CAAC;CAC/D"}
|
|
1
|
+
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../../src/deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EACH,kDAAkD,EAClD,4CAA4C,EAC/C,MAAM,iBAAiB,CAAC;AAEzB;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM;IAC7E,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;KAAE,CAAC,CAAC;CAC/D;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,sCAAsC,2DAAqD,CAAC;AAEzG;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,yBAAyB,qDAA+C,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlyAccount, ReadonlySignerAccount, WritableAccount, WritableSignerAccount } from '@solana/instructions';
|
|
3
|
+
import { Brand } from '@solana/nominal-types';
|
|
4
|
+
export type AdvanceNonceAccountInstruction<TNonceAccountAddress extends string = string, TNonceAuthorityAddress extends string = string> = IInstruction<'11111111111111111111111111111111'> & IInstructionWithAccounts<readonly [
|
|
5
|
+
WritableAccount<TNonceAccountAddress>,
|
|
6
|
+
ReadonlyAccount<'SysvarRecentB1ockHashes11111111111111111111'>,
|
|
7
|
+
ReadonlySignerAccount<TNonceAuthorityAddress> | WritableSignerAccount<TNonceAuthorityAddress>
|
|
8
|
+
]> & IInstructionWithData<AdvanceNonceAccountInstructionData>;
|
|
9
|
+
type AdvanceNonceAccountInstructionData = Brand<Uint8Array, 'AdvanceNonceAccountInstructionData'>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates an instruction for the System program to advance a nonce.
|
|
12
|
+
*
|
|
13
|
+
* This instruction is a prerequisite for a transaction with a nonce-based lifetime to be landed on
|
|
14
|
+
* the network. In order to be considered valid, the transaction must meet all of these criteria.
|
|
15
|
+
*
|
|
16
|
+
* 1. Its lifetime constraint must be a {@link NonceLifetimeConstraint}.
|
|
17
|
+
* 2. The value contained in the on-chain account at the address `nonceAccountAddress` must be equal
|
|
18
|
+
* to {@link NonceLifetimeConstraint.nonce} at the time the transaction is landed.
|
|
19
|
+
* 3. The first instruction in that transaction message must be the one returned by this function.
|
|
20
|
+
*
|
|
21
|
+
* You could also use the `getAdvanceNonceAccountInstruction` method of `@solana-program/system`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function createAdvanceNonceAccountInstruction<TNonceAccountAddress extends string = string, TNonceAuthorityAddress extends string = string>(nonceAccountAddress: Address<TNonceAccountAddress>, nonceAuthorityAddress: Address<TNonceAuthorityAddress>): AdvanceNonceAccountInstruction<TNonceAccountAddress, TNonceAuthorityAddress>;
|
|
24
|
+
/**
|
|
25
|
+
* A type guard that returns `true` if the instruction conforms to the
|
|
26
|
+
* {@link AdvanceNonceAccountInstruction} type, and refines its type for use in your program.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* import { isAdvanceNonceAccountInstruction } from '@solana/transaction-messages';
|
|
31
|
+
*
|
|
32
|
+
* if (isAdvanceNonceAccountInstruction(message.instructions[0])) {
|
|
33
|
+
* // At this point, the first instruction in the message has been refined to a
|
|
34
|
+
* // `AdvanceNonceAccountInstruction`.
|
|
35
|
+
* setNonceAccountAddress(message.instructions[0].accounts[0].address);
|
|
36
|
+
* } else {
|
|
37
|
+
* setError('The first instruction is not an `AdvanceNonce` instruction');
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare function isAdvanceNonceAccountInstruction(instruction: IInstruction): instruction is AdvanceNonceAccountInstruction;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=durable-nonce-instruction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"durable-nonce-instruction.d.ts","sourceRoot":"","sources":["../../src/durable-nonce-instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAEH,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EAEpB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,MAAM,MAAM,8BAA8B,CACtC,oBAAoB,SAAS,MAAM,GAAG,MAAM,EAC5C,sBAAsB,SAAS,MAAM,GAAG,MAAM,IAC9C,YAAY,CAAC,kCAAkC,CAAC,GAChD,wBAAwB,CACpB,SAAS;IACL,eAAe,CAAC,oBAAoB,CAAC;IACrC,eAAe,CAAC,6CAA6C,CAAC;IAC9D,qBAAqB,CAAC,sBAAsB,CAAC,GAAG,qBAAqB,CAAC,sBAAsB,CAAC;CAChG,CACJ,GACD,oBAAoB,CAAC,kCAAkC,CAAC,CAAC;AAE7D,KAAK,kCAAkC,GAAG,KAAK,CAAC,UAAU,EAAE,oCAAoC,CAAC,CAAC;AAMlG;;;;;;;;;;;;GAYG;AACH,wBAAgB,oCAAoC,CAChD,oBAAoB,SAAS,MAAM,GAAG,MAAM,EAC5C,sBAAsB,SAAS,MAAM,GAAG,MAAM,EAE9C,mBAAmB,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAClD,qBAAqB,EAAE,OAAO,CAAC,sBAAsB,CAAC,GACvD,8BAA8B,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAa9E;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gCAAgC,CAC5C,WAAW,EAAE,YAAY,GAC1B,WAAW,IAAI,8BAA8B,CAkB/C"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { Address } from '@solana/addresses';
|
|
2
|
-
import { IInstruction
|
|
2
|
+
import { IInstruction } from '@solana/instructions';
|
|
3
3
|
import { Brand } from '@solana/nominal-types';
|
|
4
|
+
import { AdvanceNonceAccountInstruction } from './durable-nonce-instruction';
|
|
4
5
|
import { BaseTransactionMessage } from './transaction-message';
|
|
5
|
-
type AdvanceNonceAccountInstruction<TNonceAccountAddress extends string = string, TNonceAuthorityAddress extends string = string> = IInstruction<'11111111111111111111111111111111'> & IInstructionWithAccounts<readonly [
|
|
6
|
-
WritableAccount<TNonceAccountAddress>,
|
|
7
|
-
ReadonlyAccount<'SysvarRecentB1ockHashes11111111111111111111'>,
|
|
8
|
-
ReadonlySignerAccount<TNonceAuthorityAddress> | WritableSignerAccount<TNonceAuthorityAddress>
|
|
9
|
-
]> & IInstructionWithData<AdvanceNonceAccountInstructionData>;
|
|
10
|
-
type AdvanceNonceAccountInstructionData = Brand<Uint8Array, 'AdvanceNonceAccountInstructionData'>;
|
|
11
6
|
type DurableNonceConfig<TNonceAccountAddress extends string = string, TNonceAuthorityAddress extends string = string, TNonceValue extends string = string> = Readonly<{
|
|
12
7
|
readonly nonce: Nonce<TNonceValue>;
|
|
13
8
|
readonly nonceAccountAddress: Address<TNonceAccountAddress>;
|
|
@@ -45,47 +40,6 @@ export interface TransactionMessageWithDurableNonceLifetime<TNonceAccountAddress
|
|
|
45
40
|
];
|
|
46
41
|
readonly lifetimeConstraint: NonceLifetimeConstraint<TNonceValue>;
|
|
47
42
|
}
|
|
48
|
-
/**
|
|
49
|
-
* From time to time you might acquire a transaction message, that you expect to have a
|
|
50
|
-
* nonce-based lifetime, from an untrusted network API or user input. Use this function to assert
|
|
51
|
-
* that such a transaction message actually has a nonce-based lifetime.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```ts
|
|
55
|
-
* import { assertIsDurableNonceTransactionMessage } from '@solana/transaction-messages';
|
|
56
|
-
*
|
|
57
|
-
* try {
|
|
58
|
-
* // If this type assertion function doesn't throw, then
|
|
59
|
-
* // Typescript will upcast `message` to `TransactionMessageWithDurableNonceLifetime`.
|
|
60
|
-
* assertIsDurableNonceTransactionMessage(message);
|
|
61
|
-
* // At this point, `message` is a `TransactionMessageWithDurableNonceLifetime` that can be used
|
|
62
|
-
* // with the RPC.
|
|
63
|
-
* const { nonce, nonceAccountAddress } = message.lifetimeConstraint;
|
|
64
|
-
* const { data: { blockhash: actualNonce } } = await fetchNonce(nonceAccountAddress);
|
|
65
|
-
* } catch (e) {
|
|
66
|
-
* // `message` turned out not to have a nonce-based lifetime
|
|
67
|
-
* }
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
export declare function assertIsDurableNonceTransactionMessage(transactionMessage: BaseTransactionMessage | (BaseTransactionMessage & TransactionMessageWithDurableNonceLifetime)): asserts transactionMessage is BaseTransactionMessage & TransactionMessageWithDurableNonceLifetime;
|
|
71
|
-
/**
|
|
72
|
-
* A type guard that returns `true` if the instruction conforms to the
|
|
73
|
-
* {@link AdvanceNonceAccountInstruction} type, and refines its type for use in your program.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* import { isAdvanceNonceAccountInstruction } from '@solana/transaction-messages';
|
|
78
|
-
*
|
|
79
|
-
* if (isAdvanceNonceAccountInstruction(message.instructions[0])) {
|
|
80
|
-
* // At this point, the first instruction in the message has been refined to a
|
|
81
|
-
* // `AdvanceNonceAccountInstruction`.
|
|
82
|
-
* setNonceAccountAddress(message.instructions[0].accounts[0].address);
|
|
83
|
-
* } else {
|
|
84
|
-
* setError('The first instruction is not an `AdvanceNonce` instruction');
|
|
85
|
-
* }
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
export declare function isAdvanceNonceAccountInstruction(instruction: IInstruction): instruction is AdvanceNonceAccountInstruction;
|
|
89
43
|
/**
|
|
90
44
|
* A type guard that returns `true` if the transaction message conforms to the
|
|
91
45
|
* {@link TransactionMessageWithDurableNonceLifetime} type, and refines its type for use in your
|
|
@@ -109,7 +63,30 @@ export declare function isAdvanceNonceAccountInstruction(instruction: IInstructi
|
|
|
109
63
|
* }
|
|
110
64
|
* ```
|
|
111
65
|
*/
|
|
112
|
-
export declare function
|
|
66
|
+
export declare function isTransactionMessageWithDurableNonceLifetime(transactionMessage: BaseTransactionMessage | (BaseTransactionMessage & TransactionMessageWithDurableNonceLifetime)): transactionMessage is BaseTransactionMessage & TransactionMessageWithDurableNonceLifetime;
|
|
67
|
+
/**
|
|
68
|
+
* From time to time you might acquire a transaction message, that you expect to have a
|
|
69
|
+
* nonce-based lifetime, from an untrusted network API or user input. Use this function to assert
|
|
70
|
+
* that such a transaction message actually has a nonce-based lifetime.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* import { assertIsDurableNonceTransactionMessage } from '@solana/transaction-messages';
|
|
75
|
+
*
|
|
76
|
+
* try {
|
|
77
|
+
* // If this type assertion function doesn't throw, then
|
|
78
|
+
* // Typescript will upcast `message` to `TransactionMessageWithDurableNonceLifetime`.
|
|
79
|
+
* assertIsDurableNonceTransactionMessage(message);
|
|
80
|
+
* // At this point, `message` is a `TransactionMessageWithDurableNonceLifetime` that can be used
|
|
81
|
+
* // with the RPC.
|
|
82
|
+
* const { nonce, nonceAccountAddress } = message.lifetimeConstraint;
|
|
83
|
+
* const { data: { blockhash: actualNonce } } = await fetchNonce(nonceAccountAddress);
|
|
84
|
+
* } catch (e) {
|
|
85
|
+
* // `message` turned out not to have a nonce-based lifetime
|
|
86
|
+
* }
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export declare function assertIsTransactionMessageWithDurableNonceLifetime(transactionMessage: BaseTransactionMessage | (BaseTransactionMessage & TransactionMessageWithDurableNonceLifetime)): asserts transactionMessage is BaseTransactionMessage & TransactionMessageWithDurableNonceLifetime;
|
|
113
90
|
/**
|
|
114
91
|
* Given a nonce, the account where the value of the nonce is stored, and the address of the account
|
|
115
92
|
* authorized to consume that nonce, this method will return a new transaction having the same type
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-nonce.d.ts","sourceRoot":"","sources":["../../src/durable-nonce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"durable-nonce.d.ts","sourceRoot":"","sources":["../../src/durable-nonce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EACH,8BAA8B,EAGjC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,KAAK,kBAAkB,CACnB,oBAAoB,SAAS,MAAM,GAAG,MAAM,EAC5C,sBAAsB,SAAS,MAAM,GAAG,MAAM,EAC9C,WAAW,SAAS,MAAM,GAAG,MAAM,IACnC,QAAQ,CAAC;IACT,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACnC,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC5D,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACnE,CAAC,CAAC;AAEH,gGAAgG;AAChG,MAAM,MAAM,KAAK,CAAC,WAAW,SAAS,MAAM,GAAG,MAAM,IAAI,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAErF;;;;;;;GAOG;AACH,KAAK,uBAAuB,CAAC,WAAW,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC;IACzE;;;;;OAKG;IACH,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC7B,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,WAAW,0CAA0C,CACvD,oBAAoB,SAAS,MAAM,GAAG,MAAM,EAC5C,sBAAsB,SAAS,MAAM,GAAG,MAAM,EAC9C,WAAW,SAAS,MAAM,GAAG,MAAM;IAEnC,QAAQ,CAAC,YAAY,EAAE,SAAS;QAE5B,8BAA8B,CAAC,oBAAoB,EAAE,sBAAsB,CAAC;QAC5E,GAAG,YAAY,EAAE;KACpB,CAAC;IACF,QAAQ,CAAC,kBAAkB,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;CACrE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,4CAA4C,CACxD,kBAAkB,EAAE,sBAAsB,GAAG,CAAC,sBAAsB,GAAG,0CAA0C,CAAC,GACnH,kBAAkB,IAAI,sBAAsB,GAAG,0CAA0C,CAO3F;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kDAAkD,CAC9D,kBAAkB,EAAE,sBAAsB,GAAG,CAAC,sBAAsB,GAAG,0CAA0C,CAAC,GACnH,OAAO,CAAC,kBAAkB,IAAI,sBAAsB,GAAG,0CAA0C,CAInG;AAgBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,8CAA8C,CAC1D,mBAAmB,SAAS,sBAAsB,EAClD,oBAAoB,SAAS,MAAM,GAAG,MAAM,EAC5C,sBAAsB,SAAS,MAAM,GAAG,MAAM,EAC9C,WAAW,SAAS,MAAM,GAAG,MAAM,EAEnC,EACI,KAAK,EACL,mBAAmB,EACnB,qBAAqB,GACxB,EAAE,kBAAkB,CAAC,oBAAoB,EAAE,sBAAsB,EAAE,WAAW,CAAC,EAChF,kBAAkB,EAAE,mBAAmB,GAAG,CAAC,0CAA0C,GAAG,mBAAmB,CAAC,GAC7G,0CAA0C,CAAC,oBAAoB,EAAE,sBAAsB,EAAE,WAAW,CAAC,GACpG,mBAAmB,CA8CtB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export * from './compress-transaction-message';
|
|
|
36
36
|
export * from './create-transaction-message';
|
|
37
37
|
export * from './decompile-message';
|
|
38
38
|
export * from './durable-nonce';
|
|
39
|
+
export { isAdvanceNonceAccountInstruction } from './durable-nonce-instruction';
|
|
39
40
|
export * from './fee-payer';
|
|
40
41
|
export * from './instructions';
|
|
41
42
|
export * from './transaction-message';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,cAAc,qCAAqC,CAAC;AACpD,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kCAAkC,CAAC;AACjD,cAAc,WAAW,CAAC;AAC1B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AAGtC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,cAAc,qCAAqC,CAAC;AACpD,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kCAAkC,CAAC;AACjD,cAAc,WAAW,CAAC;AAC1B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAC/E,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AAGtC,cAAc,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/transaction-messages",
|
|
3
|
-
"version": "2.2.0-canary-
|
|
3
|
+
"version": "2.2.0-canary-20250514102324",
|
|
4
4
|
"description": "Helpers for creating transaction messages",
|
|
5
5
|
"exports": {
|
|
6
6
|
"edge-light": {
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"maintained node versions"
|
|
55
55
|
],
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@solana/addresses": "2.2.0-canary-
|
|
58
|
-
"@solana/codecs-
|
|
59
|
-
"@solana/
|
|
60
|
-
"@solana/
|
|
61
|
-
"@solana/codecs-
|
|
62
|
-
"@solana/functional": "2.2.0-canary-
|
|
63
|
-
"@solana/instructions": "2.2.0-canary-
|
|
64
|
-
"@solana/
|
|
65
|
-
"@solana/
|
|
57
|
+
"@solana/addresses": "2.2.0-canary-20250514102324",
|
|
58
|
+
"@solana/codecs-data-structures": "2.2.0-canary-20250514102324",
|
|
59
|
+
"@solana/codecs-numbers": "2.2.0-canary-20250514102324",
|
|
60
|
+
"@solana/errors": "2.2.0-canary-20250514102324",
|
|
61
|
+
"@solana/codecs-core": "2.2.0-canary-20250514102324",
|
|
62
|
+
"@solana/functional": "2.2.0-canary-20250514102324",
|
|
63
|
+
"@solana/instructions": "2.2.0-canary-20250514102324",
|
|
64
|
+
"@solana/rpc-types": "2.2.0-canary-20250514102324",
|
|
65
|
+
"@solana/nominal-types": "2.2.0-canary-20250514102324"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"typescript": ">=5.3.3"
|