@layerzerolabs/lz-solana-sdk-v2 2.3.31 → 2.3.33

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/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @layerzerolabs/lz-solana-sdk-v2
2
2
 
3
+ ## 2.3.33
4
+
5
+ ### Patch Changes
6
+
7
+ - d9c0c10: testnets: new solana devnet, codex(evm), bahamut (evm)
8
+ - 1099b5f: testnets: lif3,iota,lyra,lightlink
9
+ - Updated dependencies [d9c0c10]
10
+ - Updated dependencies [1099b5f]
11
+ - @layerzerolabs/lz-corekit-solana@2.3.33
12
+ - @layerzerolabs/lz-definitions@2.3.33
13
+ - @layerzerolabs/lz-v2-utilities@2.3.33
14
+
15
+ ## 2.3.32
16
+
17
+ ### Patch Changes
18
+
19
+ - e846939: testnets: lif3,iota,lyra,lightlink
20
+ - 334b51e: endpoints, including flare mainnet
21
+ - 334b51e: zklink mainnet, and testnets
22
+ - 334b51e: testnet endpoints
23
+ - Updated dependencies [e846939]
24
+ - Updated dependencies [334b51e]
25
+ - Updated dependencies [334b51e]
26
+ - Updated dependencies [334b51e]
27
+ - @layerzerolabs/lz-corekit-solana@2.3.32
28
+ - @layerzerolabs/lz-definitions@2.3.32
29
+ - @layerzerolabs/lz-v2-utilities@2.3.32
30
+
3
31
  ## 2.3.31
4
32
 
5
33
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -13,7 +13,6 @@ var base58 = require('bs58');
13
13
  require('@ethersproject/abi');
14
14
  var bignumber = require('@ethersproject/bignumber');
15
15
  require('@ethersproject/solidity');
16
- var lzCorekitSolana = require('@layerzerolabs/lz-corekit-solana');
17
16
  var lzDefinitions = require('@layerzerolabs/lz-definitions');
18
17
  var crypto = require('crypto');
19
18
  var sha2 = require('@ethersproject/sha2');
@@ -9116,15 +9115,11 @@ var Endpoint = class {
9116
9115
  if (messageLibInfo2) {
9117
9116
  const { timeout: timeout2 } = defaultInfo;
9118
9117
  if (timeout2) {
9119
- const slot = await connection.getSlot();
9120
- const timestamp = await connection.getBlockTime(slot);
9121
- invariant5__default.default(timestamp, "timestamp should not be null");
9122
- const isValid = parseInt(timeout2.expiry.toString()) > timestamp;
9123
9118
  return {
9124
9119
  programId: defaultInfo.messageLib,
9125
9120
  msgLib: defaultInfo.messageLib,
9126
9121
  isDefault: true,
9127
- timeout: { msgLib: timeout2.messageLib, isValid }
9122
+ timeout: { msgLib: timeout2.messageLib, expiry: BigInt(timeout2.expiry.toString()) }
9128
9123
  };
9129
9124
  }
9130
9125
  }
@@ -9139,15 +9134,11 @@ var Endpoint = class {
9139
9134
  invariant5__default.default(messageLibInfo, "messageLibInfo should not be null");
9140
9135
  const { timeout } = info;
9141
9136
  if (timeout) {
9142
- const slot = await connection.getSlot();
9143
- const timestamp = await connection.getBlockTime(slot);
9144
- invariant5__default.default(timestamp, "timestamp should not be null");
9145
- const isValid = parseInt(timeout.expiry.toString()) > timestamp;
9146
9137
  return {
9147
9138
  programId: messageLibInfo.owner,
9148
9139
  msgLib: info.messageLib,
9149
9140
  isDefault: false,
9150
- timeout: { msgLib: timeout.messageLib, isValid }
9141
+ timeout: { msgLib: timeout.messageLib, expiry: BigInt(timeout.expiry.toString()) }
9151
9142
  };
9152
9143
  }
9153
9144
  return { programId: messageLibInfo.owner, msgLib: info.messageLib, isDefault: false, timeout: null };
@@ -13150,7 +13141,8 @@ var SolanaSignerExt = class _SolanaSignerExt {
13150
13141
  return new _SolanaSignerExt(signers);
13151
13142
  }
13152
13143
  async sign(message) {
13153
- return Promise.all(this.signers.map(async (s) => lzCorekitSolana.signWithECDSA(message, s.ECDSAPrivateKey)));
13144
+ const { signWithECDSA } = await import('@layerzerolabs/lz-corekit-solana');
13145
+ return Promise.all(this.signers.map(async (s) => signWithECDSA(message, s.ECDSAPrivateKey)));
13154
13146
  }
13155
13147
  };
13156
13148
  var DVN = class {