@solana/transaction-messages 2.1.2-canary-20250514101103 → 2.2.0-canary-20250514101537

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.
@@ -1,12 +1,12 @@
1
1
  import { IInstruction } from '@solana/instructions';
2
2
  import { TransactionMessageWithBlockhashLifetime } from './blockhash';
3
3
  import { TransactionMessageWithDurableNonceLifetime } from './durable-nonce';
4
- import { ITransactionMessageWithFeePayer } from './fee-payer';
4
+ import { TransactionMessageWithFeePayer } from './fee-payer';
5
5
  import { BaseTransactionMessage, TransactionVersion } from './transaction-message';
6
6
  /**
7
7
  * A transaction message having sufficient detail to be compiled for execution on the network.
8
8
  *
9
9
  * In essence, this means that it has at minimum a version, a fee payer, and a lifetime constraint.
10
10
  */
11
- export type CompilableTransactionMessage<TVersion extends TransactionVersion = TransactionVersion, TInstruction extends IInstruction = IInstruction> = BaseTransactionMessage<TVersion, TInstruction> & ITransactionMessageWithFeePayer & (TransactionMessageWithBlockhashLifetime | TransactionMessageWithDurableNonceLifetime);
11
+ export type CompilableTransactionMessage<TVersion extends TransactionVersion = TransactionVersion, TInstruction extends IInstruction = IInstruction> = BaseTransactionMessage<TVersion, TInstruction> & TransactionMessageWithFeePayer & (TransactionMessageWithBlockhashLifetime | TransactionMessageWithDurableNonceLifetime);
12
12
  //# sourceMappingURL=compilable-transaction-message.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compilable-transaction-message.d.ts","sourceRoot":"","sources":["../../src/compilable-transaction-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,uCAAuC,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,0CAA0C,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEnF;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,CACpC,QAAQ,SAAS,kBAAkB,GAAG,kBAAkB,EACxD,YAAY,SAAS,YAAY,GAAG,YAAY,IAChD,sBAAsB,CAAC,QAAQ,EAAE,YAAY,CAAC,GAC9C,+BAA+B,GAC/B,CAAC,uCAAuC,GAAG,0CAA0C,CAAC,CAAC"}
1
+ {"version":3,"file":"compilable-transaction-message.d.ts","sourceRoot":"","sources":["../../src/compilable-transaction-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,uCAAuC,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,0CAA0C,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEnF;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,CACpC,QAAQ,SAAS,kBAAkB,GAAG,kBAAkB,EACxD,YAAY,SAAS,YAAY,GAAG,YAAY,IAChD,sBAAsB,CAAC,QAAQ,EAAE,YAAY,CAAC,GAC9C,8BAA8B,GAC9B,CAAC,uCAAuC,GAAG,0CAA0C,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Address } from '@solana/addresses';
2
+ /**
3
+ * Represents a transaction message for which a fee payer has been declared. A transaction must
4
+ * conform to this type to be compiled and landed on the network.
5
+ *
6
+ * @deprecated Use {@link TransactionMessageWithFeePayer} instead. It was only renamed.
7
+ */
8
+ export interface ITransactionMessageWithFeePayer<TAddress extends string = string> {
9
+ readonly feePayer: Readonly<{
10
+ address: Address<TAddress>;
11
+ }>;
12
+ }
13
+ //# sourceMappingURL=deprecated.d.ts.map
@@ -0,0 +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"}
@@ -4,14 +4,14 @@ import { BaseTransactionMessage } from './transaction-message';
4
4
  * Represents a transaction message for which a fee payer has been declared. A transaction must
5
5
  * conform to this type to be compiled and landed on the network.
6
6
  */
7
- export interface ITransactionMessageWithFeePayer<TAddress extends string = string> {
7
+ export interface TransactionMessageWithFeePayer<TAddress extends string = string> {
8
8
  readonly feePayer: Readonly<{
9
9
  address: Address<TAddress>;
10
10
  }>;
11
11
  }
12
12
  /**
13
13
  * Given a base58-encoded address of a system account, this method will return a new transaction
14
- * message having the same type as the one supplied plus the {@link ITransactionMessageWithFeePayer}
14
+ * message having the same type as the one supplied plus the {@link TransactionMessageWithFeePayer}
15
15
  * type.
16
16
  *
17
17
  * @example
@@ -23,5 +23,5 @@ export interface ITransactionMessageWithFeePayer<TAddress extends string = strin
23
23
  * const txPaidByMe = setTransactionMessageFeePayer(myAddress, tx);
24
24
  * ```
25
25
  */
26
- export declare function setTransactionMessageFeePayer<TFeePayerAddress extends string, TTransactionMessage extends BaseTransactionMessage & Partial<ITransactionMessageWithFeePayer>>(feePayer: Address<TFeePayerAddress>, transactionMessage: TTransactionMessage): ITransactionMessageWithFeePayer<TFeePayerAddress> & Omit<TTransactionMessage, 'feePayer'>;
26
+ export declare function setTransactionMessageFeePayer<TFeePayerAddress extends string, TTransactionMessage extends BaseTransactionMessage & Partial<TransactionMessageWithFeePayer>>(feePayer: Address<TFeePayerAddress>, transactionMessage: TTransactionMessage): Omit<TTransactionMessage, 'feePayer'> & TransactionMessageWithFeePayer<TFeePayerAddress>;
27
27
  //# sourceMappingURL=fee-payer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fee-payer.d.ts","sourceRoot":"","sources":["../../src/fee-payer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;GAGG;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;;;;;;;;;;;;;GAaG;AACH,wBAAgB,6BAA6B,CACzC,gBAAgB,SAAS,MAAM,EAC/B,mBAAmB,SAAS,sBAAsB,GAAG,OAAO,CAAC,+BAA+B,CAAC,EAE7F,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,EACnC,kBAAkB,EAAE,mBAAmB,GACxC,+BAA+B,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAe3F"}
1
+ {"version":3,"file":"fee-payer.d.ts","sourceRoot":"","sources":["../../src/fee-payer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,8BAA8B,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM;IAC5E,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;KAAE,CAAC,CAAC;CAC/D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,6BAA6B,CACzC,gBAAgB,SAAS,MAAM,EAC/B,mBAAmB,SAAS,sBAAsB,GAAG,OAAO,CAAC,8BAA8B,CAAC,EAE5F,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,EACnC,kBAAkB,EAAE,mBAAmB,GACxC,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG,8BAA8B,CAAC,gBAAgB,CAAC,CAe1F"}
@@ -39,4 +39,5 @@ export * from './durable-nonce';
39
39
  export * from './fee-payer';
40
40
  export * from './instructions';
41
41
  export * from './transaction-message';
42
+ export * from './deprecated';
42
43
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/transaction-messages",
3
- "version": "2.1.2-canary-20250514101103",
3
+ "version": "2.2.0-canary-20250514101537",
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.1.2-canary-20250514101103",
58
- "@solana/codecs-data-structures": "2.1.2-canary-20250514101103",
59
- "@solana/codecs-numbers": "2.1.2-canary-20250514101103",
60
- "@solana/codecs-core": "2.1.2-canary-20250514101103",
61
- "@solana/errors": "2.1.2-canary-20250514101103",
62
- "@solana/functional": "2.1.2-canary-20250514101103",
63
- "@solana/instructions": "2.1.2-canary-20250514101103",
64
- "@solana/nominal-types": "2.1.2-canary-20250514101103",
65
- "@solana/rpc-types": "2.1.2-canary-20250514101103"
57
+ "@solana/addresses": "2.2.0-canary-20250514101537",
58
+ "@solana/codecs-core": "2.2.0-canary-20250514101537",
59
+ "@solana/errors": "2.2.0-canary-20250514101537",
60
+ "@solana/codecs-data-structures": "2.2.0-canary-20250514101537",
61
+ "@solana/codecs-numbers": "2.2.0-canary-20250514101537",
62
+ "@solana/functional": "2.2.0-canary-20250514101537",
63
+ "@solana/instructions": "2.2.0-canary-20250514101537",
64
+ "@solana/nominal-types": "2.2.0-canary-20250514101537",
65
+ "@solana/rpc-types": "2.2.0-canary-20250514101537"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "typescript": ">=5.3.3"