@solana/web3.js 1.41.0 → 1.41.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.iife.js CHANGED
@@ -13761,6 +13761,16 @@ var solanaWeb3 = (function (exports) {
13761
13761
  /** Factory for {@link Constant} values. */
13762
13762
  Layout$1.constant = ((value, property) => new Constant(value, property));
13763
13763
 
13764
+ /**
13765
+ * Maximum over-the-wire size of a Transaction
13766
+ *
13767
+ * 1280 is IPv6 minimum MTU
13768
+ * 40 bytes is the size of the IPv6 header
13769
+ * 8 bytes is the size of the fragment header
13770
+ */
13771
+ const PACKET_DATA_SIZE = 1280 - 40 - 8;
13772
+ const SIGNATURE_LENGTH_IN_BYTES = 64;
13773
+
13764
13774
  /**
13765
13775
  * Layout for a public key
13766
13776
  */
@@ -14020,20 +14030,8 @@ var solanaWeb3 = (function (exports) {
14020
14030
 
14021
14031
  /**
14022
14032
  * Default (empty) signature
14023
- *
14024
- * Signatures are 64 bytes in length
14025
14033
  */
14026
- const DEFAULT_SIGNATURE = buffer.Buffer.alloc(64).fill(0);
14027
- /**
14028
- * Maximum over-the-wire size of a Transaction
14029
- *
14030
- * 1280 is IPv6 minimum MTU
14031
- * 40 bytes is the size of the IPv6 header
14032
- * 8 bytes is the size of the fragment header
14033
- */
14034
-
14035
- const PACKET_DATA_SIZE = 1280 - 40 - 8;
14036
- const SIGNATURE_LENGTH = 64;
14034
+ const DEFAULT_SIGNATURE = buffer.Buffer.alloc(SIGNATURE_LENGTH_IN_BYTES).fill(0);
14037
14035
  /**
14038
14036
  * Account metadata used to define instructions
14039
14037
  */
@@ -14663,8 +14661,8 @@ var solanaWeb3 = (function (exports) {
14663
14661
  let signatures = [];
14664
14662
 
14665
14663
  for (let i = 0; i < signatureCount; i++) {
14666
- const signature = byteArray.slice(0, SIGNATURE_LENGTH);
14667
- byteArray = byteArray.slice(SIGNATURE_LENGTH);
14664
+ const signature = byteArray.slice(0, SIGNATURE_LENGTH_IN_BYTES);
14665
+ byteArray = byteArray.slice(SIGNATURE_LENGTH_IN_BYTES);
14668
14666
  signatures.push(bs58$1.encode(buffer.Buffer.from(signature)));
14669
14667
  }
14670
14668
 
@@ -15553,11 +15551,11 @@ var solanaWeb3 = (function (exports) {
15553
15551
  }
15554
15552
  SystemProgram.programId = new PublicKey('11111111111111111111111111111111');
15555
15553
 
15556
- // Keep program chunks under PACKET_DATA_SIZE, leaving enough room for the
15557
15554
  // rest of the Transaction fields
15558
15555
  //
15559
15556
  // TODO: replace 300 with a proper constant for the size of the other
15560
15557
  // Transaction fields
15558
+
15561
15559
  const CHUNK_SIZE = PACKET_DATA_SIZE - 300;
15562
15560
  /**
15563
15561
  * Program loader interface
@@ -30121,7 +30119,6 @@ var solanaWeb3 = (function (exports) {
30121
30119
  exports.Message = Message;
30122
30120
  exports.NONCE_ACCOUNT_LENGTH = NONCE_ACCOUNT_LENGTH;
30123
30121
  exports.NonceAccount = NonceAccount;
30124
- exports.PACKET_DATA_SIZE = PACKET_DATA_SIZE;
30125
30122
  exports.PublicKey = PublicKey;
30126
30123
  exports.SOLANA_SCHEMA = SOLANA_SCHEMA;
30127
30124
  exports.STAKE_CONFIG_ID = STAKE_CONFIG_ID;