@layerzerolabs/lz-solana-sdk-v2 3.0.66 → 3.0.68-ton.0

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,18 @@
1
1
  # @layerzerolabs/lz-solana-sdk-v2
2
2
 
3
+ ## 3.0.67
4
+
5
+ ### Patch Changes
6
+
7
+ - 4a04284: Deploy movement mainnet
8
+ - Updated dependencies [4a04284]
9
+ - @layerzerolabs/lz-corekit-solana@3.0.67
10
+ - @layerzerolabs/lz-definitions@3.0.67
11
+ - @layerzerolabs/lz-foundation@3.0.67
12
+ - @layerzerolabs/lz-serdes@3.0.67
13
+ - @layerzerolabs/lz-utilities@3.0.67
14
+ - @layerzerolabs/lz-v2-utilities@3.0.67
15
+
3
16
  ## 3.0.66
4
17
 
5
18
  ### Patch Changes
package/dist/umi.cjs CHANGED
@@ -7419,7 +7419,9 @@ function getMultisigConfigSetEventSerializer() {
7419
7419
  var instructions_exports3 = {};
7420
7420
  __export(instructions_exports3, {
7421
7421
  closeExecute: () => closeExecute,
7422
+ extendDvnConfig: () => extendDvnConfig,
7422
7423
  getCloseExecuteInstructionDataSerializer: () => getCloseExecuteInstructionDataSerializer,
7424
+ getExtendDvnConfigInstructionDataSerializer: () => getExtendDvnConfigInstructionDataSerializer,
7423
7425
  getInitDvnInstructionDataSerializer: () => getInitDvnInstructionDataSerializer,
7424
7426
  getInvokeInstructionDataSerializer: () => getInvokeInstructionDataSerializer,
7425
7427
  getQuoteDvnInstructionDataSerializer: () => getQuoteDvnInstructionDataSerializer,
@@ -7527,6 +7529,61 @@ function closeExecute(context, input) {
7527
7529
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
7528
7530
  ]);
7529
7531
  }
7532
+ function getExtendDvnConfigInstructionDataSerializer() {
7533
+ return serializers.mapSerializer(
7534
+ serializers.struct(
7535
+ [["discriminator", serializers.bytes({ size: 8 })]],
7536
+ { description: "ExtendDvnConfigInstructionData" }
7537
+ ),
7538
+ (value) => ({
7539
+ ...value,
7540
+ discriminator: new Uint8Array([183, 248, 24, 49, 110, 229, 169, 66])
7541
+ })
7542
+ );
7543
+ }
7544
+ function extendDvnConfig(context, input) {
7545
+ const programId = context.programs.getPublicKey(
7546
+ "dvn",
7547
+ "HtEYV4xB4wvsj5fgTkcfuChYpvGYzgzwvNhgDZQNh7wW"
7548
+ );
7549
+ const resolvedAccounts = {
7550
+ admin: {
7551
+ index: 0,
7552
+ isWritable: true,
7553
+ value: input.admin ?? null
7554
+ },
7555
+ config: {
7556
+ index: 1,
7557
+ isWritable: true,
7558
+ value: input.config ?? null
7559
+ },
7560
+ systemProgram: {
7561
+ index: 2,
7562
+ isWritable: false,
7563
+ value: input.systemProgram ?? null
7564
+ }
7565
+ };
7566
+ if (!resolvedAccounts.systemProgram.value) {
7567
+ resolvedAccounts.systemProgram.value = context.programs.getPublicKey(
7568
+ "splSystem",
7569
+ "11111111111111111111111111111111"
7570
+ );
7571
+ resolvedAccounts.systemProgram.isWritable = false;
7572
+ }
7573
+ const orderedAccounts = Object.values(
7574
+ resolvedAccounts
7575
+ ).sort((a, b) => a.index - b.index);
7576
+ const [keys, signers] = getAccountMetasAndSigners3(
7577
+ orderedAccounts,
7578
+ "programId",
7579
+ programId
7580
+ );
7581
+ const data = getExtendDvnConfigInstructionDataSerializer().serialize({});
7582
+ const bytesCreatedOnChain = 0;
7583
+ return umi.transactionBuilder([
7584
+ { instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
7585
+ ]);
7586
+ }
7530
7587
  function getInitDvnInstructionDataSerializer() {
7531
7588
  return serializers.mapSerializer(
7532
7589
  serializers.struct(
@@ -7948,6 +8005,7 @@ __export(dvn_exports, {
7948
8005
  expectPda: () => expectPda,
7949
8006
  expectPublicKey: () => expectPublicKey,
7950
8007
  expectSome: () => expectSome,
8008
+ extendDvnConfig: () => extendDvnConfig,
7951
8009
  fetchAllDvnConfig: () => fetchAllDvnConfig,
7952
8010
  fetchAllExecuteHash: () => fetchAllExecuteHash,
7953
8011
  fetchAllReceiveConfig: () => fetchAllReceiveConfig,
@@ -7969,6 +8027,7 @@ __export(dvn_exports, {
7969
8027
  getExecuteHashGpaBuilder: () => getExecuteHashGpaBuilder,
7970
8028
  getExecuteHashSize: () => getExecuteHashSize,
7971
8029
  getExecuteTransactionDigestSerializer: () => getExecuteTransactionDigestSerializer,
8030
+ getExtendDvnConfigInstructionDataSerializer: () => getExtendDvnConfigInstructionDataSerializer,
7972
8031
  getInitDvnInstructionDataSerializer: () => getInitDvnInstructionDataSerializer,
7973
8032
  getInvokeInstructionDataSerializer: () => getInvokeInstructionDataSerializer,
7974
8033
  getLzOptionSerializer: () => getLzOptionSerializer,
@@ -8933,10 +8992,12 @@ __export(instructions_exports4, {
8933
8992
  compose: () => compose,
8934
8993
  executable: () => executable,
8935
8994
  execute: () => execute,
8995
+ extendExecutorConfig: () => extendExecutorConfig,
8936
8996
  getAdminSetConfigInstructionDataSerializer: () => getAdminSetConfigInstructionDataSerializer,
8937
8997
  getComposeInstructionDataSerializer: () => getComposeInstructionDataSerializer,
8938
8998
  getExecutableInstructionDataSerializer: () => getExecutableInstructionDataSerializer,
8939
8999
  getExecuteInstructionDataSerializer: () => getExecuteInstructionDataSerializer,
9000
+ getExtendExecutorConfigInstructionDataSerializer: () => getExtendExecutorConfigInstructionDataSerializer,
8940
9001
  getInitExecutorInstructionDataSerializer: () => getInitExecutorInstructionDataSerializer,
8941
9002
  getNativeDropInstructionDataSerializer: () => getNativeDropInstructionDataSerializer,
8942
9003
  getOwnerSetConfigInstructionDataSerializer: () => getOwnerSetConfigInstructionDataSerializer,
@@ -9211,6 +9272,61 @@ function execute(context, input) {
9211
9272
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
9212
9273
  ]);
9213
9274
  }
9275
+ function getExtendExecutorConfigInstructionDataSerializer() {
9276
+ return serializers.mapSerializer(
9277
+ serializers.struct(
9278
+ [["discriminator", serializers.bytes({ size: 8 })]],
9279
+ { description: "ExtendExecutorConfigInstructionData" }
9280
+ ),
9281
+ (value) => ({
9282
+ ...value,
9283
+ discriminator: new Uint8Array([238, 223, 196, 220, 61, 71, 72, 85])
9284
+ })
9285
+ );
9286
+ }
9287
+ function extendExecutorConfig(context, input) {
9288
+ const programId = context.programs.getPublicKey(
9289
+ "executor",
9290
+ "6doghB248px58JSSwG4qejQ46kFMW4AMj7vzJnWZHNZn"
9291
+ );
9292
+ const resolvedAccounts = {
9293
+ admin: {
9294
+ index: 0,
9295
+ isWritable: true,
9296
+ value: input.admin ?? null
9297
+ },
9298
+ config: {
9299
+ index: 1,
9300
+ isWritable: true,
9301
+ value: input.config ?? null
9302
+ },
9303
+ systemProgram: {
9304
+ index: 2,
9305
+ isWritable: false,
9306
+ value: input.systemProgram ?? null
9307
+ }
9308
+ };
9309
+ if (!resolvedAccounts.systemProgram.value) {
9310
+ resolvedAccounts.systemProgram.value = context.programs.getPublicKey(
9311
+ "splSystem",
9312
+ "11111111111111111111111111111111"
9313
+ );
9314
+ resolvedAccounts.systemProgram.isWritable = false;
9315
+ }
9316
+ const orderedAccounts = Object.values(
9317
+ resolvedAccounts
9318
+ ).sort((a, b) => a.index - b.index);
9319
+ const [keys, signers] = getAccountMetasAndSigners4(
9320
+ orderedAccounts,
9321
+ "programId",
9322
+ programId
9323
+ );
9324
+ const data = getExtendExecutorConfigInstructionDataSerializer().serialize({});
9325
+ const bytesCreatedOnChain = 0;
9326
+ return umi.transactionBuilder([
9327
+ { instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
9328
+ ]);
9329
+ }
9214
9330
  function getInitExecutorInstructionDataSerializer() {
9215
9331
  return serializers.mapSerializer(
9216
9332
  serializers.struct(
@@ -9811,7 +9927,7 @@ async function extractWorkerFeePaidEventByTxHash(connection, program, signature,
9811
9927
  if (!events) return null;
9812
9928
  return events;
9813
9929
  }
9814
- async function extractEventFromTransactionSignature(connection, _program, signature, serializer, commitment, unsafeParseErr = false) {
9930
+ async function extractEventFromTransactionSignature(rpc, _program, signature, serializer, commitment, unsafeParseErr = false) {
9815
9931
  let program;
9816
9932
  if (typeof _program === "string" && umi.isPublicKey(_program)) {
9817
9933
  program = umiWeb3jsAdapters.toWeb3JsPublicKey(_program);
@@ -9820,13 +9936,8 @@ async function extractEventFromTransactionSignature(connection, _program, signat
9820
9936
  }
9821
9937
  let tx;
9822
9938
  if (typeof signature === "string") {
9823
- if (connection instanceof web3__namespace.Connection) {
9824
- tx = await connection.getParsedTransaction(signature, commitment);
9825
- } else if ("connection" in connection && connection.connection instanceof web3__namespace.Connection) {
9826
- tx = await connection.connection.getParsedTransaction(signature, commitment);
9827
- } else {
9828
- throw new Error("Invalid connection");
9829
- }
9939
+ const connection = toWeb3Connection(rpc);
9940
+ tx = await connection.getParsedTransaction(signature, commitment);
9830
9941
  } else {
9831
9942
  tx = signature;
9832
9943
  }
@@ -9977,12 +10088,8 @@ async function simulateWeb3JsTransaction(_connection, _instructions, _programId,
9977
10088
  let connection;
9978
10089
  if (typeof _connection === "string") {
9979
10090
  connection = new web3__namespace.Connection(_connection, commitment);
9980
- } else if (_connection instanceof web3__namespace.Connection) {
9981
- connection = _connection;
9982
- } else if ("connection" in _connection && _connection.connection instanceof web3__namespace.Connection) {
9983
- ({ connection } = _connection);
9984
10091
  } else {
9985
- throw new Error("Invalid connection");
10092
+ connection = toWeb3Connection(_connection);
9986
10093
  }
9987
10094
  let instructions;
9988
10095
  if (_instructions.length === 0) {
@@ -10033,6 +10140,15 @@ async function simulateWeb3JsTransaction(_connection, _instructions, _programId,
10033
10140
  return serializer.deserialize(resp, 0)[0];
10034
10141
  }
10035
10142
  }
10143
+ function toWeb3Connection(rpc) {
10144
+ if (rpc instanceof web3__namespace.Connection) {
10145
+ return rpc;
10146
+ } else if ("connection" in rpc && rpc.connection instanceof web3__namespace.Connection) {
10147
+ return rpc.connection;
10148
+ } else {
10149
+ throw new Error("Invalid connection");
10150
+ }
10151
+ }
10036
10152
 
10037
10153
  // src/receive.ts
10038
10154
  async function lzReceive(rpc, payer, packet, callerParams = Uint8Array.from([0, 0]), commitment = "confirmed") {
@@ -13337,6 +13453,8 @@ function getPricefeedErrorFromName(name, program, cause) {
13337
13453
  // src/generated/kinobi/pricefeed/instructions/index.ts
13338
13454
  var instructions_exports6 = {};
13339
13455
  __export(instructions_exports6, {
13456
+ extendPriceFeed: () => extendPriceFeed,
13457
+ getExtendPriceFeedInstructionDataSerializer: () => getExtendPriceFeedInstructionDataSerializer,
13340
13458
  getFee: () => getFee,
13341
13459
  getGetFeeInstructionDataSerializer: () => getGetFeeInstructionDataSerializer,
13342
13460
  getInitPriceFeedInstructionDataSerializer: () => getInitPriceFeedInstructionDataSerializer,
@@ -13370,7 +13488,62 @@ function getAccountMetasAndSigners6(accounts, optionalAccountStrategy, programId
13370
13488
  return [keys, signers];
13371
13489
  }
13372
13490
 
13373
- // src/generated/kinobi/pricefeed/instructions/getFee.ts
13491
+ // src/generated/kinobi/pricefeed/instructions/extendPriceFeed.ts
13492
+ function getExtendPriceFeedInstructionDataSerializer() {
13493
+ return serializers.mapSerializer(
13494
+ serializers.struct(
13495
+ [["discriminator", serializers.bytes({ size: 8 })]],
13496
+ { description: "ExtendPriceFeedInstructionData" }
13497
+ ),
13498
+ (value) => ({
13499
+ ...value,
13500
+ discriminator: new Uint8Array([16, 95, 1, 5, 220, 54, 15, 80])
13501
+ })
13502
+ );
13503
+ }
13504
+ function extendPriceFeed(context, input) {
13505
+ const programId = context.programs.getPublicKey(
13506
+ "pricefeed",
13507
+ "8ahPGPjEbpgGaZx2NV1iG5Shj7TDwvsjkEDcGWjt94TP"
13508
+ );
13509
+ const resolvedAccounts = {
13510
+ admin: {
13511
+ index: 0,
13512
+ isWritable: true,
13513
+ value: input.admin ?? null
13514
+ },
13515
+ priceFeed: {
13516
+ index: 1,
13517
+ isWritable: true,
13518
+ value: input.priceFeed ?? null
13519
+ },
13520
+ systemProgram: {
13521
+ index: 2,
13522
+ isWritable: false,
13523
+ value: input.systemProgram ?? null
13524
+ }
13525
+ };
13526
+ if (!resolvedAccounts.systemProgram.value) {
13527
+ resolvedAccounts.systemProgram.value = context.programs.getPublicKey(
13528
+ "splSystem",
13529
+ "11111111111111111111111111111111"
13530
+ );
13531
+ resolvedAccounts.systemProgram.isWritable = false;
13532
+ }
13533
+ const orderedAccounts = Object.values(
13534
+ resolvedAccounts
13535
+ ).sort((a, b) => a.index - b.index);
13536
+ const [keys, signers] = getAccountMetasAndSigners6(
13537
+ orderedAccounts,
13538
+ "programId",
13539
+ programId
13540
+ );
13541
+ const data = getExtendPriceFeedInstructionDataSerializer().serialize({});
13542
+ const bytesCreatedOnChain = 0;
13543
+ return umi.transactionBuilder([
13544
+ { instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
13545
+ ]);
13546
+ }
13374
13547
  function getGetFeeInstructionDataSerializer() {
13375
13548
  return serializers.mapSerializer(
13376
13549
  serializers.struct(
@@ -14480,6 +14653,7 @@ exports.lzCompose = lzCompose;
14480
14653
  exports.lzReceive = lzReceive;
14481
14654
  exports.messageLibs = messageLibs;
14482
14655
  exports.simulateWeb3JsTransaction = simulateWeb3JsTransaction;
14656
+ exports.toWeb3Connection = toWeb3Connection;
14483
14657
  exports.txWithAddressLookupTable = txWithAddressLookupTable;
14484
14658
  exports.txWithNonce = txWithNonce;
14485
14659
  //# sourceMappingURL=umi.cjs.map