@solana/transaction-messages 2.2.1 → 2.3.0-canary-20250708190258
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 +9 -9
- package/dist/index.browser.cjs +34 -32
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +34 -34
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.native.mjs +34 -34
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +34 -32
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +34 -34
- package/dist/index.node.mjs.map +1 -1
- package/dist/types/blockhash.d.ts +2 -3
- package/dist/types/blockhash.d.ts.map +1 -1
- package/dist/types/compilable-transaction-message.d.ts +4 -5
- package/dist/types/compilable-transaction-message.d.ts.map +1 -1
- package/dist/types/compile/accounts.d.ts +3 -3
- package/dist/types/compile/accounts.d.ts.map +1 -1
- package/dist/types/compile/instructions.d.ts +2 -2
- package/dist/types/compile/instructions.d.ts.map +1 -1
- package/dist/types/compress-transaction-message.d.ts +5 -5
- package/dist/types/compress-transaction-message.d.ts.map +1 -1
- package/dist/types/create-transaction-message.d.ts +7 -3
- package/dist/types/create-transaction-message.d.ts.map +1 -1
- package/dist/types/decompile-message.d.ts.map +1 -1
- package/dist/types/deprecated.d.ts +65 -0
- package/dist/types/deprecated.d.ts.map +1 -0
- 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 +47 -49
- package/dist/types/durable-nonce.d.ts.map +1 -1
- package/dist/types/fee-payer.d.ts +8 -3
- package/dist/types/fee-payer.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/instructions.d.ts +21 -6
- package/dist/types/instructions.d.ts.map +1 -1
- package/dist/types/lifetime.d.ts +12 -0
- package/dist/types/lifetime.d.ts.map +1 -0
- package/dist/types/transaction-message-size.d.ts +13 -0
- package/dist/types/transaction-message-size.d.ts.map +1 -0
- package/dist/types/transaction-message.d.ts +5 -5
- package/dist/types/transaction-message.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NominalType } from '@solana/nominal-types';
|
|
2
|
+
import type { BaseTransactionMessage } from './transaction-message';
|
|
3
|
+
/**
|
|
4
|
+
* A type guard that checks if a transaction message is within the size limit
|
|
5
|
+
* when compiled into a transaction.
|
|
6
|
+
*/
|
|
7
|
+
export type TransactionMessageWithinSizeLimit = NominalType<'transactionSize', 'withinLimit'>;
|
|
8
|
+
/**
|
|
9
|
+
* Helper type that removes the `TransactionMessageWithinSizeLimit` flag
|
|
10
|
+
* from a transaction message.
|
|
11
|
+
*/
|
|
12
|
+
export type ExcludeTransactionMessageWithinSizeLimit<TTransactionMessage extends BaseTransactionMessage> = Omit<TTransactionMessage, '__transactionSize:@solana/kit'>;
|
|
13
|
+
//# sourceMappingURL=transaction-message-size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-message-size.d.ts","sourceRoot":"","sources":["../../src/transaction-message-size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,iCAAiC,GAAG,WAAW,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;AAE9F;;;GAGG;AACH,MAAM,MAAM,wCAAwC,CAAC,mBAAmB,SAAS,sBAAsB,IAAI,IAAI,CAC3G,mBAAmB,EACnB,+BAA+B,CAClC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type BaseTransactionMessage<TVersion extends TransactionVersion = TransactionVersion, TInstruction extends
|
|
1
|
+
import { AccountMeta, Instruction } from '@solana/instructions';
|
|
2
|
+
export type BaseTransactionMessage<TVersion extends TransactionVersion = TransactionVersion, TInstruction extends Instruction = Instruction> = Readonly<{
|
|
3
3
|
instructions: readonly TInstruction[];
|
|
4
4
|
version: TVersion;
|
|
5
5
|
}>;
|
|
6
|
-
type
|
|
7
|
-
type LegacyTransactionMessage = BaseTransactionMessage<'legacy',
|
|
8
|
-
type V0TransactionMessage = BaseTransactionMessage<0,
|
|
6
|
+
type LegacyInstruction<TProgramAddress extends string = string> = Instruction<TProgramAddress, readonly AccountMeta[]>;
|
|
7
|
+
type LegacyTransactionMessage = BaseTransactionMessage<'legacy', LegacyInstruction>;
|
|
8
|
+
type V0TransactionMessage = BaseTransactionMessage<0, Instruction>;
|
|
9
9
|
export type TransactionMessage = LegacyTransactionMessage | V0TransactionMessage;
|
|
10
10
|
export type TransactionVersion = 'legacy' | 0;
|
|
11
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-message.d.ts","sourceRoot":"","sources":["../../src/transaction-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"transaction-message.d.ts","sourceRoot":"","sources":["../../src/transaction-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,sBAAsB,CAC9B,QAAQ,SAAS,kBAAkB,GAAG,kBAAkB,EACxD,YAAY,SAAS,WAAW,GAAG,WAAW,IAC9C,QAAQ,CAAC;IACT,YAAY,EAAE,SAAS,YAAY,EAAE,CAAC;IACtC,OAAO,EAAE,QAAQ,CAAC;CACrB,CAAC,CAAC;AAEH,KAAK,iBAAiB,CAAC,eAAe,SAAS,MAAM,GAAG,MAAM,IAAI,WAAW,CAAC,eAAe,EAAE,SAAS,WAAW,EAAE,CAAC,CAAC;AACvH,KAAK,wBAAwB,GAAG,sBAAsB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;AACpF,KAAK,oBAAoB,GAAG,sBAAsB,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG,oBAAoB,CAAC;AACjF,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/transaction-messages",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-canary-20250708190258",
|
|
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.
|
|
58
|
-
"@solana/codecs-core": "2.
|
|
59
|
-
"@solana/codecs-data-structures": "2.
|
|
60
|
-
"@solana/
|
|
61
|
-
"@solana/
|
|
62
|
-
"@solana/
|
|
63
|
-
"@solana/
|
|
64
|
-
"@solana/
|
|
65
|
-
"@solana/
|
|
57
|
+
"@solana/addresses": "2.3.0-canary-20250708190258",
|
|
58
|
+
"@solana/codecs-core": "2.3.0-canary-20250708190258",
|
|
59
|
+
"@solana/codecs-data-structures": "2.3.0-canary-20250708190258",
|
|
60
|
+
"@solana/codecs-numbers": "2.3.0-canary-20250708190258",
|
|
61
|
+
"@solana/errors": "2.3.0-canary-20250708190258",
|
|
62
|
+
"@solana/functional": "2.3.0-canary-20250708190258",
|
|
63
|
+
"@solana/instructions": "2.3.0-canary-20250708190258",
|
|
64
|
+
"@solana/nominal-types": "2.3.0-canary-20250708190258",
|
|
65
|
+
"@solana/rpc-types": "2.3.0-canary-20250708190258"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"typescript": ">=5.3.3"
|