@layerzerolabs/lz-solana-sdk-v2 2.3.32 → 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/dist/index.d.mts CHANGED
@@ -6581,7 +6581,7 @@ declare class Endpoint {
6581
6581
  isDefault: boolean;
6582
6582
  timeout: {
6583
6583
  msgLib: PublicKey;
6584
- isValid: boolean;
6584
+ expiry: bigint;
6585
6585
  } | null;
6586
6586
  } | null>;
6587
6587
  getInboundPayloadHash(connection: Connection, receiver: PublicKey, srcEid: number, sender: Uint8Array, nonce: number, _payloadHash: Uint8Array, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<PayloadHash | null>;
package/dist/index.d.ts CHANGED
@@ -6581,7 +6581,7 @@ declare class Endpoint {
6581
6581
  isDefault: boolean;
6582
6582
  timeout: {
6583
6583
  msgLib: PublicKey;
6584
- isValid: boolean;
6584
+ expiry: bigint;
6585
6585
  } | null;
6586
6586
  } | null>;
6587
6587
  getInboundPayloadHash(connection: Connection, receiver: PublicKey, srcEid: number, sender: Uint8Array, nonce: number, _payloadHash: Uint8Array, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<PayloadHash | null>;
package/dist/index.mjs CHANGED
@@ -9087,15 +9087,11 @@ var Endpoint = class {
9087
9087
  if (messageLibInfo2) {
9088
9088
  const { timeout: timeout2 } = defaultInfo;
9089
9089
  if (timeout2) {
9090
- const slot = await connection.getSlot();
9091
- const timestamp = await connection.getBlockTime(slot);
9092
- invariant5(timestamp, "timestamp should not be null");
9093
- const isValid = parseInt(timeout2.expiry.toString()) > timestamp;
9094
9090
  return {
9095
9091
  programId: defaultInfo.messageLib,
9096
9092
  msgLib: defaultInfo.messageLib,
9097
9093
  isDefault: true,
9098
- timeout: { msgLib: timeout2.messageLib, isValid }
9094
+ timeout: { msgLib: timeout2.messageLib, expiry: BigInt(timeout2.expiry.toString()) }
9099
9095
  };
9100
9096
  }
9101
9097
  }
@@ -9110,15 +9106,11 @@ var Endpoint = class {
9110
9106
  invariant5(messageLibInfo, "messageLibInfo should not be null");
9111
9107
  const { timeout } = info;
9112
9108
  if (timeout) {
9113
- const slot = await connection.getSlot();
9114
- const timestamp = await connection.getBlockTime(slot);
9115
- invariant5(timestamp, "timestamp should not be null");
9116
- const isValid = parseInt(timeout.expiry.toString()) > timestamp;
9117
9109
  return {
9118
9110
  programId: messageLibInfo.owner,
9119
9111
  msgLib: info.messageLib,
9120
9112
  isDefault: false,
9121
- timeout: { msgLib: timeout.messageLib, isValid }
9113
+ timeout: { msgLib: timeout.messageLib, expiry: BigInt(timeout.expiry.toString()) }
9122
9114
  };
9123
9115
  }
9124
9116
  return { programId: messageLibInfo.owner, msgLib: info.messageLib, isDefault: false, timeout: null };