@layerzerolabs/lz-solana-sdk-v2 3.0.16 → 3.0.17

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.mjs CHANGED
@@ -17,8 +17,7 @@ var __defProp = Object.defineProperty;
17
17
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
18
18
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
19
19
  }) : x)(function(x) {
20
- if (typeof require !== "undefined")
21
- return require.apply(this, arguments);
20
+ if (typeof require !== "undefined") return require.apply(this, arguments);
22
21
  throw Error('Dynamic require of "' + x + '" is not supported');
23
22
  });
24
23
  var __export = (target, all) => {
@@ -13219,8 +13218,7 @@ async function extractSentPacketEventByTxHash(connection, program, signature, co
13219
13218
  commitment,
13220
13219
  unsafeParseErr
13221
13220
  );
13222
- if (!events)
13223
- return null;
13221
+ if (!events) return null;
13224
13222
  return events;
13225
13223
  }
13226
13224
  async function extractVerifiedPacketEventByTxHash(connection, program, signature, commitment, unsafeParseErr = false) {
@@ -13232,8 +13230,7 @@ async function extractVerifiedPacketEventByTxHash(connection, program, signature
13232
13230
  commitment,
13233
13231
  unsafeParseErr
13234
13232
  );
13235
- if (!events)
13236
- return null;
13233
+ if (!events) return null;
13237
13234
  return events;
13238
13235
  }
13239
13236
  async function extractReceivedPacketEventByTxHash(connection, program, signature, commitment, unsafeParseErr = false) {
@@ -13245,8 +13242,7 @@ async function extractReceivedPacketEventByTxHash(connection, program, signature
13245
13242
  commitment,
13246
13243
  unsafeParseErr
13247
13244
  );
13248
- if (!events)
13249
- return null;
13245
+ if (!events) return null;
13250
13246
  return events;
13251
13247
  }
13252
13248
  async function extractComposeSentEventByTxHash(connection, program, signature, commitment, unsafeParseErr = false) {
@@ -13258,8 +13254,7 @@ async function extractComposeSentEventByTxHash(connection, program, signature, c
13258
13254
  commitment,
13259
13255
  unsafeParseErr
13260
13256
  );
13261
- if (!events)
13262
- return null;
13257
+ if (!events) return null;
13263
13258
  return events;
13264
13259
  }
13265
13260
  async function extractComposeDeliveredEventByTxHash(connection, program, signature, commitment, unsafeParseErr = false) {
@@ -13271,8 +13266,7 @@ async function extractComposeDeliveredEventByTxHash(connection, program, signatu
13271
13266
  commitment,
13272
13267
  unsafeParseErr
13273
13268
  );
13274
- if (!events)
13275
- return null;
13269
+ if (!events) return null;
13276
13270
  return events;
13277
13271
  }
13278
13272
  async function extractWorkerFeePaidEventByTxHash(connection, program, signature, commitment, unsafeParseErr = false) {
@@ -13284,14 +13278,12 @@ async function extractWorkerFeePaidEventByTxHash(connection, program, signature,
13284
13278
  commitment,
13285
13279
  unsafeParseErr
13286
13280
  );
13287
- if (!events)
13288
- return null;
13281
+ if (!events) return null;
13289
13282
  return events;
13290
13283
  }
13291
13284
  async function extractEventFromTransactionSignature(connection, program, signature, eventBeet, commitment, unsafeParseErr = false) {
13292
13285
  const tx = typeof signature === "string" ? await connection.getParsedTransaction(signature, commitment) : signature;
13293
- if (tx == null)
13294
- return null;
13286
+ if (tx == null) return null;
13295
13287
  const events = new Array();
13296
13288
  if (tx.meta?.err !== null && !unsafeParseErr) {
13297
13289
  return null;
@@ -13586,8 +13578,7 @@ function retrieveAccountFromSimulatedResp(resp, payer) {
13586
13578
  const results = fixedBeet.read(resp, 0);
13587
13579
  return results.map((r) => {
13588
13580
  if (r.pubkey.toBase58() == PublicKey.default.toBase58() && r.isSigner) {
13589
- if (!payer)
13590
- throw new Error("payer is required");
13581
+ if (!payer) throw new Error("payer is required");
13591
13582
  return {
13592
13583
  pubkey: payer,
13593
13584
  isSigner: true,
@@ -20990,5 +20981,5 @@ var SetConfigType2 = /* @__PURE__ */ ((SetConfigType3) => {
20990
20981
  })(SetConfigType2 || {});
20991
20982
 
20992
20983
  export { AddressType, BaseOApp, blocked_messagelib_exports as BlockedMessageLibProgram, COMPOSED_MESSAGE_HASH_SEED, CONFIRMATIONS_SEED, COUNT_SEED, DVNDeriver, dvn_exports2 as DVNProgram, DVN_CONFIG_SEED, dvn_exports as DvnProgram, ENDPOINT_SEED, ENFORCED_OPTIONS_SEED, EVENT_SEED, EXECUTOR_CONFIG_SEED, EndpointPDADeriver, endpoint_exports as EndpointProgram, EventPDADeriver, ExecutorOptionType, ExecutorPDADeriver, executor_exports as ExecutorProgram, FAUCET_URL, IdlTypes, LZ_COMPOSE_TYPES_SEED, LZ_RECEIVE_TYPES_SEED, LzComposeParamsBeet, LzReceiveAccountBeet, LzReceiveParamsBeet, MESSAGE_LIB_SEED, MINT_SEED, MSG_TYPE_OFFSET, MaxExecutorOptionTypeLength, MessageLibPDADeriver, MessageType, NONCE_SEED, OAPP_SEED, OAppBasePDADeriver, OPTIONS_SEED, PAYLOAD_HASH_SEED, PEER_SEED, PENDING_NONCE_SEED, PRICE_FEED_SEED, PriceFeedPDADeriver, pricefeed_exports as PriceFeedProgram, RECEIVE_CONFIG_SEED, RECEIVE_LIBRARY_CONFIG_SEED, REMOTE_SEED, SEND_CONFIG_SEED, SEND_LIBRARY_CONFIG_SEED, SendHelper, SetConfigType2 as SetConfigType, simple_message_lib_exports as SimpleMessageLibProgram, ULN_CONFIG_SEED, ULN_SEED, UlnPDADeriver, uln_exports as UlnProgram, WORKER_SEED, buildMessageV0, buildVersionedTransaction, closeLookupTable, createNonceAccountTX, deactivateLookupTable, deriveLzComposeTypesAccountsPDA, deriveLzReceiveTypesAccountsPDA, extractComposeDeliveredEventByTxHash, extractComposeSentEventByTxHash, extractEventFromTransactionSignature, extractReceivedPacketEventByTxHash, extractSentPacketEventByTxHash, extractVerifiedPacketEventByTxHash, extractWorkerFeePaidEventByTxHash, generateAddressLookupTable, getBlockedMessageLibProgramId, getDVNProgramId, getEndpointProgramId, getExecutorProgramId, getLzComposeAccountMeta, getLzReceiveAccounts, getPricefeedProgramId, getProgramKeypair, getSimpleMessageLibProgramId, getULNProgramId, idlTypes, instructionDiscriminator, isAccountInitialized, lzCompose, lzReceive, messageLibs, oappIDPDA, simulateTransaction, txWithAddressLookupTable, txWithNonce };
20993
- //# sourceMappingURL=out.js.map
20984
+ //# sourceMappingURL=index.mjs.map
20994
20985
  //# sourceMappingURL=index.mjs.map