@layerzerolabs/lz-solana-sdk-v2 3.0.122 → 3.0.124
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 +26 -0
- package/dist/index-CvZUDmni.d.mts +9272 -0
- package/dist/index-CvZUDmni.d.ts +9272 -0
- package/dist/index.cjs +15760 -356
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +15651 -247
- package/dist/index.mjs.map +1 -1
- package/dist/umi.cjs +174 -43
- package/dist/umi.cjs.map +1 -1
- package/dist/umi.d.mts +7 -9068
- package/dist/umi.d.ts +7 -9068
- package/dist/umi.mjs +174 -43
- package/dist/umi.mjs.map +1 -1
- package/package.json +9 -9
- package/src/generated/kinobi/executor/instructions/execute.ts +159 -0
- package/src/generated/kinobi/executor/instructions/index.ts +2 -0
- package/src/generated/kinobi/executor/instructions/version.ts +80 -0
- package/src/generated/kinobi/executor/types/index.ts +3 -1
- package/src/generated/kinobi/executor/types/lzReceiveParams.ts +50 -0
- package/src/generated/kinobi/executor/types/version.ts +28 -0
- package/src/solita/index.ts +1 -0
package/dist/umi.mjs
CHANGED
|
@@ -285,11 +285,11 @@ var _ExecutorPDA = class _ExecutorPDA {
|
|
|
285
285
|
config() {
|
|
286
286
|
return EDDSA.findPda(this.program, [Buffer.from(_ExecutorPDA.EXECUTOR_CONFIG_SEED, "utf8")]);
|
|
287
287
|
}
|
|
288
|
-
context(executor,
|
|
288
|
+
context(executor, version5) {
|
|
289
289
|
return EDDSA.findPda(this.program, [
|
|
290
290
|
Buffer.from(_ExecutorPDA.EXECUTION_CONTEXT_SEED, "utf8"),
|
|
291
291
|
publicKeyBytes(executor),
|
|
292
|
-
u8().serialize(
|
|
292
|
+
u8().serialize(version5)
|
|
293
293
|
]);
|
|
294
294
|
}
|
|
295
295
|
};
|
|
@@ -6309,7 +6309,7 @@ var Endpoint = class _Endpoint {
|
|
|
6309
6309
|
*/
|
|
6310
6310
|
async getMessageLibVersion(rpc, payer, messageLibProgram, commitment = "confirmed") {
|
|
6311
6311
|
const msgLibProgramInWeb3Js = toWeb3JsPublicKey(messageLibProgram);
|
|
6312
|
-
const
|
|
6312
|
+
const version5 = await simulateWeb3JsTransaction(
|
|
6313
6313
|
rpc.getEndpoint(),
|
|
6314
6314
|
[
|
|
6315
6315
|
new TransactionInstruction({
|
|
@@ -6325,7 +6325,7 @@ var Endpoint = class _Endpoint {
|
|
|
6325
6325
|
simple_message_lib_exports.types.getVersionSerializer(),
|
|
6326
6326
|
commitment
|
|
6327
6327
|
);
|
|
6328
|
-
return
|
|
6328
|
+
return version5;
|
|
6329
6329
|
}
|
|
6330
6330
|
/**
|
|
6331
6331
|
* Transfers the admin role to a new admin.
|
|
@@ -8487,8 +8487,10 @@ __export(types_exports4, {
|
|
|
8487
8487
|
getExecutionStateSerializer: () => getExecutionStateSerializer,
|
|
8488
8488
|
getLzComposeParamsSerializer: () => getLzComposeParamsSerializer,
|
|
8489
8489
|
getLzOptionSerializer: () => getLzOptionSerializer2,
|
|
8490
|
+
getLzReceiveParamsSerializer: () => getLzReceiveParamsSerializer,
|
|
8490
8491
|
getNativeDropRequestSerializer: () => getNativeDropRequestSerializer,
|
|
8491
8492
|
getOwnerSetConfigParamsSerializer: () => getOwnerSetConfigParamsSerializer,
|
|
8493
|
+
getVersionSerializer: () => getVersionSerializer2,
|
|
8492
8494
|
isAdminSetConfigParams: () => isAdminSetConfigParams,
|
|
8493
8495
|
isOwnerSetConfigParams: () => isOwnerSetConfigParams,
|
|
8494
8496
|
ownerSetConfigParams: () => ownerSetConfigParams
|
|
@@ -8578,6 +8580,19 @@ function getLzOptionSerializer2() {
|
|
|
8578
8580
|
{ description: "LzOption" }
|
|
8579
8581
|
);
|
|
8580
8582
|
}
|
|
8583
|
+
function getLzReceiveParamsSerializer() {
|
|
8584
|
+
return struct(
|
|
8585
|
+
[
|
|
8586
|
+
["srcEid", u32()],
|
|
8587
|
+
["sender", bytes({ size: 32 })],
|
|
8588
|
+
["nonce", u64()],
|
|
8589
|
+
["guid", bytes({ size: 32 })],
|
|
8590
|
+
["message", bytes({ size: u32() })],
|
|
8591
|
+
["extraData", bytes({ size: u32() })]
|
|
8592
|
+
],
|
|
8593
|
+
{ description: "LzReceiveParams" }
|
|
8594
|
+
);
|
|
8595
|
+
}
|
|
8581
8596
|
function getNativeDropRequestSerializer() {
|
|
8582
8597
|
return struct(
|
|
8583
8598
|
[
|
|
@@ -8642,6 +8657,15 @@ function ownerSetConfigParams(kind, data) {
|
|
|
8642
8657
|
function isOwnerSetConfigParams(kind, value) {
|
|
8643
8658
|
return value.__kind === kind;
|
|
8644
8659
|
}
|
|
8660
|
+
function getVersionSerializer2() {
|
|
8661
|
+
return struct(
|
|
8662
|
+
[
|
|
8663
|
+
["major", u64()],
|
|
8664
|
+
["minor", u8()]
|
|
8665
|
+
],
|
|
8666
|
+
{ description: "Version" }
|
|
8667
|
+
);
|
|
8668
|
+
}
|
|
8645
8669
|
|
|
8646
8670
|
// src/generated/kinobi/executor/accounts/executorConfig.ts
|
|
8647
8671
|
function getExecutorConfigAccountDataSerializer() {
|
|
@@ -9075,10 +9099,12 @@ __export(instructions_exports4, {
|
|
|
9075
9099
|
adminSetConfig: () => adminSetConfig,
|
|
9076
9100
|
compose: () => compose,
|
|
9077
9101
|
executable: () => executable,
|
|
9102
|
+
execute: () => execute,
|
|
9078
9103
|
extendExecutorConfig: () => extendExecutorConfig,
|
|
9079
9104
|
getAdminSetConfigInstructionDataSerializer: () => getAdminSetConfigInstructionDataSerializer,
|
|
9080
9105
|
getComposeInstructionDataSerializer: () => getComposeInstructionDataSerializer,
|
|
9081
9106
|
getExecutableInstructionDataSerializer: () => getExecutableInstructionDataSerializer,
|
|
9107
|
+
getExecuteInstructionDataSerializer: () => getExecuteInstructionDataSerializer,
|
|
9082
9108
|
getExtendExecutorConfigInstructionDataSerializer: () => getExtendExecutorConfigInstructionDataSerializer,
|
|
9083
9109
|
getInitExecutorInstructionDataSerializer: () => getInitExecutorInstructionDataSerializer,
|
|
9084
9110
|
getNativeDropInstructionDataSerializer: () => getNativeDropInstructionDataSerializer,
|
|
@@ -9086,12 +9112,14 @@ __export(instructions_exports4, {
|
|
|
9086
9112
|
getPostExecuteInstructionDataSerializer: () => getPostExecuteInstructionDataSerializer,
|
|
9087
9113
|
getPreExecuteInstructionDataSerializer: () => getPreExecuteInstructionDataSerializer,
|
|
9088
9114
|
getQuoteExecutorInstructionDataSerializer: () => getQuoteExecutorInstructionDataSerializer,
|
|
9115
|
+
getVersionInstructionDataSerializer: () => getVersionInstructionDataSerializer2,
|
|
9089
9116
|
initExecutor: () => initExecutor,
|
|
9090
9117
|
nativeDrop: () => nativeDrop,
|
|
9091
9118
|
ownerSetConfig: () => ownerSetConfig,
|
|
9092
9119
|
postExecute: () => postExecute,
|
|
9093
9120
|
preExecute: () => preExecute,
|
|
9094
|
-
quoteExecutor: () => quoteExecutor
|
|
9121
|
+
quoteExecutor: () => quoteExecutor,
|
|
9122
|
+
version: () => version2
|
|
9095
9123
|
});
|
|
9096
9124
|
function getAccountMetasAndSigners4(accounts, optionalAccountStrategy, programId) {
|
|
9097
9125
|
const keys = [];
|
|
@@ -9286,6 +9314,78 @@ function executable(context, accounts, args) {
|
|
|
9286
9314
|
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
9287
9315
|
]);
|
|
9288
9316
|
}
|
|
9317
|
+
function getExecuteInstructionDataSerializer() {
|
|
9318
|
+
return mapSerializer(
|
|
9319
|
+
struct(
|
|
9320
|
+
[
|
|
9321
|
+
["discriminator", bytes({ size: 8 })],
|
|
9322
|
+
["receiver", publicKey$1()],
|
|
9323
|
+
["lzReceive", getLzReceiveParamsSerializer()],
|
|
9324
|
+
["value", u64()],
|
|
9325
|
+
["computeUnits", u64()]
|
|
9326
|
+
],
|
|
9327
|
+
{ description: "ExecuteInstructionData" }
|
|
9328
|
+
),
|
|
9329
|
+
(value) => ({
|
|
9330
|
+
...value,
|
|
9331
|
+
discriminator: new Uint8Array([130, 221, 242, 154, 13, 193, 189, 29])
|
|
9332
|
+
})
|
|
9333
|
+
);
|
|
9334
|
+
}
|
|
9335
|
+
function execute(context, input) {
|
|
9336
|
+
const programId = context.programs.getPublicKey(
|
|
9337
|
+
"executor",
|
|
9338
|
+
"6doghB248px58JSSwG4qejQ46kFMW4AMj7vzJnWZHNZn"
|
|
9339
|
+
);
|
|
9340
|
+
const resolvedAccounts = {
|
|
9341
|
+
executor: {
|
|
9342
|
+
index: 0,
|
|
9343
|
+
isWritable: true,
|
|
9344
|
+
value: input.executor ?? null
|
|
9345
|
+
},
|
|
9346
|
+
config: {
|
|
9347
|
+
index: 1,
|
|
9348
|
+
isWritable: false,
|
|
9349
|
+
value: input.config ?? null
|
|
9350
|
+
},
|
|
9351
|
+
endpointProgram: {
|
|
9352
|
+
index: 2,
|
|
9353
|
+
isWritable: false,
|
|
9354
|
+
value: input.endpointProgram ?? null
|
|
9355
|
+
},
|
|
9356
|
+
endpointEventAuthority: {
|
|
9357
|
+
index: 3,
|
|
9358
|
+
isWritable: false,
|
|
9359
|
+
value: input.endpointEventAuthority ?? null
|
|
9360
|
+
},
|
|
9361
|
+
eventAuthority: {
|
|
9362
|
+
index: 4,
|
|
9363
|
+
isWritable: false,
|
|
9364
|
+
value: input.eventAuthority ?? null
|
|
9365
|
+
},
|
|
9366
|
+
program: {
|
|
9367
|
+
index: 5,
|
|
9368
|
+
isWritable: false,
|
|
9369
|
+
value: input.program ?? null
|
|
9370
|
+
}
|
|
9371
|
+
};
|
|
9372
|
+
const resolvedArgs = { ...input };
|
|
9373
|
+
const orderedAccounts = Object.values(
|
|
9374
|
+
resolvedAccounts
|
|
9375
|
+
).sort((a, b) => a.index - b.index);
|
|
9376
|
+
const [keys, signers] = getAccountMetasAndSigners4(
|
|
9377
|
+
orderedAccounts,
|
|
9378
|
+
"programId",
|
|
9379
|
+
programId
|
|
9380
|
+
);
|
|
9381
|
+
const data = getExecuteInstructionDataSerializer().serialize(
|
|
9382
|
+
resolvedArgs
|
|
9383
|
+
);
|
|
9384
|
+
const bytesCreatedOnChain = 0;
|
|
9385
|
+
return transactionBuilder([
|
|
9386
|
+
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
9387
|
+
]);
|
|
9388
|
+
}
|
|
9289
9389
|
function getExtendExecutorConfigInstructionDataSerializer() {
|
|
9290
9390
|
return mapSerializer(
|
|
9291
9391
|
struct(
|
|
@@ -9723,6 +9823,37 @@ function quoteExecutor(context, input) {
|
|
|
9723
9823
|
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
9724
9824
|
]);
|
|
9725
9825
|
}
|
|
9826
|
+
function getVersionInstructionDataSerializer2() {
|
|
9827
|
+
return mapSerializer(
|
|
9828
|
+
struct([["discriminator", bytes({ size: 8 })]], {
|
|
9829
|
+
description: "VersionInstructionData"
|
|
9830
|
+
}),
|
|
9831
|
+
(value) => ({
|
|
9832
|
+
...value,
|
|
9833
|
+
discriminator: new Uint8Array([118, 65, 195, 198, 129, 216, 252, 192])
|
|
9834
|
+
})
|
|
9835
|
+
);
|
|
9836
|
+
}
|
|
9837
|
+
function version2(context) {
|
|
9838
|
+
const programId = context.programs.getPublicKey(
|
|
9839
|
+
"executor",
|
|
9840
|
+
"6doghB248px58JSSwG4qejQ46kFMW4AMj7vzJnWZHNZn"
|
|
9841
|
+
);
|
|
9842
|
+
const resolvedAccounts = {};
|
|
9843
|
+
const orderedAccounts = Object.values(
|
|
9844
|
+
resolvedAccounts
|
|
9845
|
+
);
|
|
9846
|
+
const [keys, signers] = getAccountMetasAndSigners4(
|
|
9847
|
+
orderedAccounts,
|
|
9848
|
+
"programId",
|
|
9849
|
+
programId
|
|
9850
|
+
);
|
|
9851
|
+
const data = getVersionInstructionDataSerializer2().serialize({});
|
|
9852
|
+
const bytesCreatedOnChain = 0;
|
|
9853
|
+
return transactionBuilder([
|
|
9854
|
+
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
9855
|
+
]);
|
|
9856
|
+
}
|
|
9726
9857
|
|
|
9727
9858
|
// src/generated/kinobi/executor/programs/executor.ts
|
|
9728
9859
|
var EXECUTOR_PROGRAM_ID = "6doghB248px58JSSwG4qejQ46kFMW4AMj7vzJnWZHNZn";
|
|
@@ -9733,7 +9864,7 @@ var MessageType = /* @__PURE__ */ ((MessageType2) => {
|
|
|
9733
9864
|
MessageType2[MessageType2["ABA"] = 3] = "ABA";
|
|
9734
9865
|
return MessageType2;
|
|
9735
9866
|
})(MessageType || {});
|
|
9736
|
-
function
|
|
9867
|
+
function getLzReceiveParamsSerializer2() {
|
|
9737
9868
|
return struct(
|
|
9738
9869
|
[
|
|
9739
9870
|
["srcEid", u32()],
|
|
@@ -9910,7 +10041,7 @@ __export(types_exports5, {
|
|
|
9910
10041
|
getTreasuryFeeSerializer: () => getTreasuryFeeSerializer,
|
|
9911
10042
|
getTreasurySerializer: () => getTreasurySerializer,
|
|
9912
10043
|
getUlnConfigSerializer: () => getUlnConfigSerializer2,
|
|
9913
|
-
getVersionSerializer: () =>
|
|
10044
|
+
getVersionSerializer: () => getVersionSerializer3,
|
|
9914
10045
|
getWorkerFeeSerializer: () => getWorkerFeeSerializer,
|
|
9915
10046
|
isConfig: () => isConfig
|
|
9916
10047
|
});
|
|
@@ -10020,7 +10151,7 @@ function getUlnConfigSerializer2() {
|
|
|
10020
10151
|
{ description: "UlnConfig" }
|
|
10021
10152
|
);
|
|
10022
10153
|
}
|
|
10023
|
-
function
|
|
10154
|
+
function getVersionSerializer3() {
|
|
10024
10155
|
return struct(
|
|
10025
10156
|
[
|
|
10026
10157
|
["major", u64()],
|
|
@@ -10569,9 +10700,9 @@ async function getLzComposeTypesInfo(rpc, payer, to, composerProgram, params, co
|
|
|
10569
10700
|
bytes(),
|
|
10570
10701
|
commitment
|
|
10571
10702
|
);
|
|
10572
|
-
const
|
|
10573
|
-
if (
|
|
10574
|
-
throw new Error(`Invalid version ${
|
|
10703
|
+
const version5 = resp.at(0);
|
|
10704
|
+
if (version5 !== 2) {
|
|
10705
|
+
throw new Error(`Invalid version ${version5}. Expected version 2.`);
|
|
10575
10706
|
}
|
|
10576
10707
|
return getLzComposeTypesV2AccountsSerializer().deserialize(resp, 1)[0];
|
|
10577
10708
|
}
|
|
@@ -10623,7 +10754,7 @@ async function getLzReceiveAccountsFromTypesV1(rpc, payer, receiver, receiverPro
|
|
|
10623
10754
|
});
|
|
10624
10755
|
}
|
|
10625
10756
|
}
|
|
10626
|
-
const data =
|
|
10757
|
+
const data = getLzReceiveParamsSerializer2().serialize(params);
|
|
10627
10758
|
const lzReceiveTypesIx = {
|
|
10628
10759
|
programId: receiverProgram,
|
|
10629
10760
|
keys: accounts,
|
|
@@ -10659,7 +10790,7 @@ function updateAccountFromSimulatedResp2(accounts, payer) {
|
|
|
10659
10790
|
}
|
|
10660
10791
|
async function buildLzReceiveExecutionPlan(rpc, executorProgram, payer, receiver, receiverProgram, params, receiveTypesAccounts, commitment = "confirmed") {
|
|
10661
10792
|
receiveTypesAccounts = receiveTypesAccounts ?? await getLzReceiveTypesInfo(rpc, payer, receiver, receiverProgram, params, commitment);
|
|
10662
|
-
const data =
|
|
10793
|
+
const data = getLzReceiveParamsSerializer2().serialize(params);
|
|
10663
10794
|
const lzReceiveTypesIx = {
|
|
10664
10795
|
programId: receiverProgram,
|
|
10665
10796
|
keys: receiveTypesAccounts.accounts.map((pubkey) => {
|
|
@@ -10760,7 +10891,7 @@ async function getLzReceiveTypesInfo(rpc, payer, receiver, receiverProgram, para
|
|
|
10760
10891
|
],
|
|
10761
10892
|
data: Buffer.concat([
|
|
10762
10893
|
instructionDiscriminator("lz_receive_types_info"),
|
|
10763
|
-
|
|
10894
|
+
getLzReceiveParamsSerializer2().serialize(params)
|
|
10764
10895
|
])
|
|
10765
10896
|
};
|
|
10766
10897
|
const resp = await simulateWeb3JsTransaction(
|
|
@@ -10771,9 +10902,9 @@ async function getLzReceiveTypesInfo(rpc, payer, receiver, receiverProgram, para
|
|
|
10771
10902
|
bytes(),
|
|
10772
10903
|
commitment
|
|
10773
10904
|
);
|
|
10774
|
-
const
|
|
10775
|
-
if (
|
|
10776
|
-
throw new Error(`Invalid version ${
|
|
10905
|
+
const version5 = resp.at(0);
|
|
10906
|
+
if (version5 !== 2) {
|
|
10907
|
+
throw new Error(`Invalid version ${version5}. Expected version 2.`);
|
|
10777
10908
|
}
|
|
10778
10909
|
return getLzReceiveTypesV2AccountsSerializer().deserialize(resp, 1)[0];
|
|
10779
10910
|
}
|
|
@@ -10822,7 +10953,7 @@ async function lzReceive(rpc, payer, packet, callerParams = Uint8Array.from([0,
|
|
|
10822
10953
|
const receiverInfo = await rpc.getAccount(receiverPubkey, { commitment });
|
|
10823
10954
|
invariant3(receiverInfo.exists, `Receiver account not found: ${receiverPubkey}`);
|
|
10824
10955
|
const receiverProgram = publicKey(receiverInfo.owner);
|
|
10825
|
-
let
|
|
10956
|
+
let version5 = 1;
|
|
10826
10957
|
let receiveTypesAccounts;
|
|
10827
10958
|
try {
|
|
10828
10959
|
receiveTypesAccounts = await getLzReceiveTypesInfo(
|
|
@@ -10833,11 +10964,11 @@ async function lzReceive(rpc, payer, packet, callerParams = Uint8Array.from([0,
|
|
|
10833
10964
|
params,
|
|
10834
10965
|
commitment
|
|
10835
10966
|
);
|
|
10836
|
-
|
|
10967
|
+
version5 = 2;
|
|
10837
10968
|
} catch (e) {
|
|
10838
|
-
|
|
10969
|
+
version5 = 1;
|
|
10839
10970
|
}
|
|
10840
|
-
if (
|
|
10971
|
+
if (version5 === 2) {
|
|
10841
10972
|
return buildLzReceiveExecutionPlan(
|
|
10842
10973
|
rpc,
|
|
10843
10974
|
executorProgram,
|
|
@@ -10857,7 +10988,7 @@ async function lzReceive(rpc, payer, packet, callerParams = Uint8Array.from([0,
|
|
|
10857
10988
|
params,
|
|
10858
10989
|
commitment
|
|
10859
10990
|
);
|
|
10860
|
-
const data =
|
|
10991
|
+
const data = getLzReceiveParamsSerializer2().serialize(params);
|
|
10861
10992
|
return {
|
|
10862
10993
|
instruction: {
|
|
10863
10994
|
programId: receiverProgram,
|
|
@@ -10883,15 +11014,15 @@ async function lzCompose(rpc, payer, event, extraData = Uint8Array.from([0, 0]),
|
|
|
10883
11014
|
throw new Error(`Account not found: ${to}`);
|
|
10884
11015
|
}
|
|
10885
11016
|
const composerProgram = accountInfo.owner;
|
|
10886
|
-
let
|
|
11017
|
+
let version5 = 1;
|
|
10887
11018
|
let composeTypesAccounts;
|
|
10888
11019
|
try {
|
|
10889
11020
|
composeTypesAccounts = await getLzComposeTypesInfo(rpc, payer, to, composerProgram, params, commitment);
|
|
10890
|
-
|
|
11021
|
+
version5 = 2;
|
|
10891
11022
|
} catch (e) {
|
|
10892
|
-
|
|
11023
|
+
version5 = 1;
|
|
10893
11024
|
}
|
|
10894
|
-
if (
|
|
11025
|
+
if (version5 === 2) {
|
|
10895
11026
|
return buildLzComposeExecutionPlan(
|
|
10896
11027
|
rpc,
|
|
10897
11028
|
executorProgram,
|
|
@@ -11192,16 +11323,16 @@ var Executor = class {
|
|
|
11192
11323
|
instructions.push(this.postExecute(executor, contextVersion).instruction);
|
|
11193
11324
|
return { signers, instructions, addressLookupTables };
|
|
11194
11325
|
}
|
|
11195
|
-
preExecute(executor,
|
|
11196
|
-
const context = this.pda.context(executor.publicKey,
|
|
11326
|
+
preExecute(executor, version5, feeLimit) {
|
|
11327
|
+
const context = this.pda.context(executor.publicKey, version5);
|
|
11197
11328
|
return preExecute(
|
|
11198
11329
|
{ programs: this.programRepo },
|
|
11199
|
-
{ executor, context, feeLimit, contextVersion:
|
|
11330
|
+
{ executor, context, feeLimit, contextVersion: version5 }
|
|
11200
11331
|
).items[0];
|
|
11201
11332
|
}
|
|
11202
|
-
postExecute(executor,
|
|
11203
|
-
const context = this.pda.context(executor.publicKey,
|
|
11204
|
-
return postExecute({ programs: this.programRepo }, { context, executor, contextVersion:
|
|
11333
|
+
postExecute(executor, version5) {
|
|
11334
|
+
const context = this.pda.context(executor.publicKey, version5);
|
|
11335
|
+
return postExecute({ programs: this.programRepo }, { context, executor, contextVersion: version5 }).items[0];
|
|
11205
11336
|
}
|
|
11206
11337
|
};
|
|
11207
11338
|
|
|
@@ -11924,7 +12055,7 @@ __export(instructions_exports5, {
|
|
|
11924
12055
|
getSetTreasuryInstructionDataSerializer: () => getSetTreasuryInstructionDataSerializer,
|
|
11925
12056
|
getTransferAdminInstructionDataSerializer: () => getTransferAdminInstructionDataSerializer3,
|
|
11926
12057
|
getVerifyInstructionDataSerializer: () => getVerifyInstructionDataSerializer2,
|
|
11927
|
-
getVersionInstructionDataSerializer: () =>
|
|
12058
|
+
getVersionInstructionDataSerializer: () => getVersionInstructionDataSerializer3,
|
|
11928
12059
|
getWithdrawRentInstructionDataSerializer: () => getWithdrawRentInstructionDataSerializer2,
|
|
11929
12060
|
initConfig: () => initConfig3,
|
|
11930
12061
|
initDefaultConfig: () => initDefaultConfig2,
|
|
@@ -11938,7 +12069,7 @@ __export(instructions_exports5, {
|
|
|
11938
12069
|
setTreasury: () => setTreasury,
|
|
11939
12070
|
transferAdmin: () => transferAdmin3,
|
|
11940
12071
|
verify: () => verify2,
|
|
11941
|
-
version: () =>
|
|
12072
|
+
version: () => version3,
|
|
11942
12073
|
withdrawRent: () => withdrawRent2
|
|
11943
12074
|
});
|
|
11944
12075
|
function getAccountMetasAndSigners5(accounts, optionalAccountStrategy, programId) {
|
|
@@ -12935,7 +13066,7 @@ function verify2(context, accounts, args) {
|
|
|
12935
13066
|
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
12936
13067
|
]);
|
|
12937
13068
|
}
|
|
12938
|
-
function
|
|
13069
|
+
function getVersionInstructionDataSerializer3() {
|
|
12939
13070
|
return mapSerializer(
|
|
12940
13071
|
struct([["discriminator", bytes({ size: 8 })]], {
|
|
12941
13072
|
description: "VersionInstructionData"
|
|
@@ -12946,7 +13077,7 @@ function getVersionInstructionDataSerializer2() {
|
|
|
12946
13077
|
})
|
|
12947
13078
|
);
|
|
12948
13079
|
}
|
|
12949
|
-
function
|
|
13080
|
+
function version3(context) {
|
|
12950
13081
|
const programId = context.programs.getPublicKey(
|
|
12951
13082
|
"uln",
|
|
12952
13083
|
"7a4WjyR8VZ7yZz5XJAKm39BUGn5iT9CKcv2pmG9tdXVH"
|
|
@@ -12960,7 +13091,7 @@ function version2(context) {
|
|
|
12960
13091
|
"programId",
|
|
12961
13092
|
programId
|
|
12962
13093
|
);
|
|
12963
|
-
const data =
|
|
13094
|
+
const data = getVersionInstructionDataSerializer3().serialize({});
|
|
12964
13095
|
const bytesCreatedOnChain = 0;
|
|
12965
13096
|
return transactionBuilder([
|
|
12966
13097
|
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
@@ -14642,8 +14773,8 @@ __export(blocked_messagelib_exports, {
|
|
|
14642
14773
|
getBlockedMessagelibErrorFromName: () => getBlockedMessagelibErrorFromName,
|
|
14643
14774
|
getBlockedMessagelibProgram: () => getBlockedMessagelibProgram,
|
|
14644
14775
|
getBlockedMessagelibProgramId: () => getBlockedMessagelibProgramId,
|
|
14645
|
-
getVersionInstructionDataSerializer: () =>
|
|
14646
|
-
version: () =>
|
|
14776
|
+
getVersionInstructionDataSerializer: () => getVersionInstructionDataSerializer4,
|
|
14777
|
+
version: () => version4
|
|
14647
14778
|
});
|
|
14648
14779
|
|
|
14649
14780
|
// src/generated/kinobi/blocked_messagelib/errors/blockedMessagelib.ts
|
|
@@ -14697,7 +14828,7 @@ function getAccountMetasAndSigners7(accounts, optionalAccountStrategy, programId
|
|
|
14697
14828
|
}
|
|
14698
14829
|
|
|
14699
14830
|
// src/generated/kinobi/blocked_messagelib/instructions/version.ts
|
|
14700
|
-
function
|
|
14831
|
+
function getVersionInstructionDataSerializer4() {
|
|
14701
14832
|
return mapSerializer(
|
|
14702
14833
|
struct([["discriminator", bytes({ size: 8 })]], {
|
|
14703
14834
|
description: "VersionInstructionData"
|
|
@@ -14708,7 +14839,7 @@ function getVersionInstructionDataSerializer3() {
|
|
|
14708
14839
|
})
|
|
14709
14840
|
);
|
|
14710
14841
|
}
|
|
14711
|
-
function
|
|
14842
|
+
function version4(context) {
|
|
14712
14843
|
const programId = context.programs.getPublicKey(
|
|
14713
14844
|
"blockedMessagelib",
|
|
14714
14845
|
"2XrYqmhBMPJgDsb4SVbjV1PnJBprurd5bzRCkHwiFCJB"
|
|
@@ -14722,7 +14853,7 @@ function version3(context) {
|
|
|
14722
14853
|
"programId",
|
|
14723
14854
|
programId
|
|
14724
14855
|
);
|
|
14725
|
-
const data =
|
|
14856
|
+
const data = getVersionInstructionDataSerializer4().serialize({});
|
|
14726
14857
|
const bytesCreatedOnChain = 0;
|
|
14727
14858
|
return transactionBuilder([
|
|
14728
14859
|
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
@@ -15207,6 +15338,6 @@ var SetConfigType2 = /* @__PURE__ */ ((SetConfigType3) => {
|
|
|
15207
15338
|
return SetConfigType3;
|
|
15208
15339
|
})(SetConfigType2 || {});
|
|
15209
15340
|
|
|
15210
|
-
export { blocked_messagelib_exports as BlockedMessageLibProgram, dvn_exports2 as DVNProgram, DvnPDA, dvn_exports as DvnProgram, EDDSA, ENFORCED_OPTIONS_SEED, EndpointPDA, endpoint_exports as EndpointProgram, EventPDA, ExecutorOptionType, ExecutorPDA, executor_exports as ExecutorProgram, FAUCET_URL, MINT_SEED, MSG_TYPE_OFFSET, MaxExecutorOptionTypeLength, MessageLibPDA, MessageType, OmniAppPDA, PEER_SEED, PriceFeedPDA, pricefeed_exports as PriceFeedProgram, SendHelper, SetConfigType2 as SetConfigType, simple_message_lib_exports as SimpleMessageLibProgram, UlnPDA, uln_exports as UlnProgram, addressLocator, buildLzComposeExecutionPlan, buildLzReceiveExecutionPlan, buildMessageV0, buildVersionedTransaction, closeLookupTable, createNonceAccountTX, deactivateLookupTable, extractComposeDeliveredEventByTxHash, extractComposeSentEventByTxHash, extractEventFromTransactionSignature, extractPacketSentEventByTxHash, extractReceivedPacketEventByTxHash, extractVerifiedPacketEventByTxHash, extractWorkerFeePaidEventByTxHash, generateAddressLookupTable, getAccountMetaRefSerializer, getAddressLocatorSerializer, getBlockedMessageLibProgramId, getDVNProgramId, getEndpointProgramId, getExecutorProgramId, getInstructionForLzComposeSerializer, getInstructionForLzReceiveSerializer, getLzComposeAccountsFromTypesV1, getLzComposeParamsSerializer2 as getLzComposeParamsSerializer, getLzComposeTypesInfo, getLzComposeTypesV2AccountsSerializer, getLzComposeTypesV2ResultSerializer, getLzReceiveAccountSerializer, getLzReceiveAccountsFromTypesV1, getLzReceiveParamsSerializer, getLzReceiveTypesInfo, getLzReceiveTypesV2AccountsSerializer, getLzReceiveTypesV2ResultSerializer, getNextNonceInstructionDataSerializer, getPricefeedProgramId, getProgramKeypair, getSimpleMessageLibProgramId, getULNProgramId, idlTypes, instructionDiscriminator, isAccountInitialized, isAddressLocator, lzCompose, lzReceive, messageLibs, nextNonce, simulateWeb3JsTransaction, toWeb3Connection, txWithAddressLookupTable, txWithNonce };
|
|
15341
|
+
export { blocked_messagelib_exports as BlockedMessageLibProgram, dvn_exports2 as DVNProgram, DvnPDA, dvn_exports as DvnProgram, EDDSA, ENFORCED_OPTIONS_SEED, EndpointPDA, endpoint_exports as EndpointProgram, EventPDA, ExecutorOptionType, ExecutorPDA, executor_exports as ExecutorProgram, FAUCET_URL, MINT_SEED, MSG_TYPE_OFFSET, MaxExecutorOptionTypeLength, MessageLibPDA, MessageType, OmniAppPDA, PEER_SEED, PriceFeedPDA, pricefeed_exports as PriceFeedProgram, SendHelper, SetConfigType2 as SetConfigType, simple_message_lib_exports as SimpleMessageLibProgram, UlnPDA, uln_exports as UlnProgram, addressLocator, buildLzComposeExecutionPlan, buildLzReceiveExecutionPlan, buildMessageV0, buildVersionedTransaction, closeLookupTable, createNonceAccountTX, deactivateLookupTable, extractComposeDeliveredEventByTxHash, extractComposeSentEventByTxHash, extractEventFromTransactionSignature, extractPacketSentEventByTxHash, extractReceivedPacketEventByTxHash, extractVerifiedPacketEventByTxHash, extractWorkerFeePaidEventByTxHash, generateAddressLookupTable, getAccountMetaRefSerializer, getAddressLocatorSerializer, getBlockedMessageLibProgramId, getDVNProgramId, getEndpointProgramId, getExecutorProgramId, getInstructionForLzComposeSerializer, getInstructionForLzReceiveSerializer, getLzComposeAccountsFromTypesV1, getLzComposeParamsSerializer2 as getLzComposeParamsSerializer, getLzComposeTypesInfo, getLzComposeTypesV2AccountsSerializer, getLzComposeTypesV2ResultSerializer, getLzReceiveAccountSerializer, getLzReceiveAccountsFromTypesV1, getLzReceiveParamsSerializer2 as getLzReceiveParamsSerializer, getLzReceiveTypesInfo, getLzReceiveTypesV2AccountsSerializer, getLzReceiveTypesV2ResultSerializer, getNextNonceInstructionDataSerializer, getPricefeedProgramId, getProgramKeypair, getSimpleMessageLibProgramId, getULNProgramId, idlTypes, instructionDiscriminator, isAccountInitialized, isAddressLocator, lzCompose, lzReceive, messageLibs, nextNonce, simulateWeb3JsTransaction, toWeb3Connection, txWithAddressLookupTable, txWithNonce };
|
|
15211
15342
|
//# sourceMappingURL=umi.mjs.map
|
|
15212
15343
|
//# sourceMappingURL=umi.mjs.map
|