@layerzerolabs/lz-solana-sdk-v2 3.0.123 → 3.0.124-placeholder.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 +13 -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.cjs
CHANGED
|
@@ -309,11 +309,11 @@ var _ExecutorPDA = class _ExecutorPDA {
|
|
|
309
309
|
config() {
|
|
310
310
|
return EDDSA.findPda(this.program, [Buffer.from(_ExecutorPDA.EXECUTOR_CONFIG_SEED, "utf8")]);
|
|
311
311
|
}
|
|
312
|
-
context(executor,
|
|
312
|
+
context(executor, version5) {
|
|
313
313
|
return EDDSA.findPda(this.program, [
|
|
314
314
|
Buffer.from(_ExecutorPDA.EXECUTION_CONTEXT_SEED, "utf8"),
|
|
315
315
|
umi.publicKeyBytes(executor),
|
|
316
|
-
serializers.u8().serialize(
|
|
316
|
+
serializers.u8().serialize(version5)
|
|
317
317
|
]);
|
|
318
318
|
}
|
|
319
319
|
};
|
|
@@ -6333,7 +6333,7 @@ var Endpoint = class _Endpoint {
|
|
|
6333
6333
|
*/
|
|
6334
6334
|
async getMessageLibVersion(rpc, payer, messageLibProgram, commitment = "confirmed") {
|
|
6335
6335
|
const msgLibProgramInWeb3Js = umiWeb3jsAdapters.toWeb3JsPublicKey(messageLibProgram);
|
|
6336
|
-
const
|
|
6336
|
+
const version5 = await simulateWeb3JsTransaction(
|
|
6337
6337
|
rpc.getEndpoint(),
|
|
6338
6338
|
[
|
|
6339
6339
|
new web3.TransactionInstruction({
|
|
@@ -6349,7 +6349,7 @@ var Endpoint = class _Endpoint {
|
|
|
6349
6349
|
simple_message_lib_exports.types.getVersionSerializer(),
|
|
6350
6350
|
commitment
|
|
6351
6351
|
);
|
|
6352
|
-
return
|
|
6352
|
+
return version5;
|
|
6353
6353
|
}
|
|
6354
6354
|
/**
|
|
6355
6355
|
* Transfers the admin role to a new admin.
|
|
@@ -8511,8 +8511,10 @@ __export(types_exports4, {
|
|
|
8511
8511
|
getExecutionStateSerializer: () => getExecutionStateSerializer,
|
|
8512
8512
|
getLzComposeParamsSerializer: () => getLzComposeParamsSerializer,
|
|
8513
8513
|
getLzOptionSerializer: () => getLzOptionSerializer2,
|
|
8514
|
+
getLzReceiveParamsSerializer: () => getLzReceiveParamsSerializer,
|
|
8514
8515
|
getNativeDropRequestSerializer: () => getNativeDropRequestSerializer,
|
|
8515
8516
|
getOwnerSetConfigParamsSerializer: () => getOwnerSetConfigParamsSerializer,
|
|
8517
|
+
getVersionSerializer: () => getVersionSerializer2,
|
|
8516
8518
|
isAdminSetConfigParams: () => isAdminSetConfigParams,
|
|
8517
8519
|
isOwnerSetConfigParams: () => isOwnerSetConfigParams,
|
|
8518
8520
|
ownerSetConfigParams: () => ownerSetConfigParams
|
|
@@ -8602,6 +8604,19 @@ function getLzOptionSerializer2() {
|
|
|
8602
8604
|
{ description: "LzOption" }
|
|
8603
8605
|
);
|
|
8604
8606
|
}
|
|
8607
|
+
function getLzReceiveParamsSerializer() {
|
|
8608
|
+
return serializers.struct(
|
|
8609
|
+
[
|
|
8610
|
+
["srcEid", serializers.u32()],
|
|
8611
|
+
["sender", serializers.bytes({ size: 32 })],
|
|
8612
|
+
["nonce", serializers.u64()],
|
|
8613
|
+
["guid", serializers.bytes({ size: 32 })],
|
|
8614
|
+
["message", serializers.bytes({ size: serializers.u32() })],
|
|
8615
|
+
["extraData", serializers.bytes({ size: serializers.u32() })]
|
|
8616
|
+
],
|
|
8617
|
+
{ description: "LzReceiveParams" }
|
|
8618
|
+
);
|
|
8619
|
+
}
|
|
8605
8620
|
function getNativeDropRequestSerializer() {
|
|
8606
8621
|
return serializers.struct(
|
|
8607
8622
|
[
|
|
@@ -8666,6 +8681,15 @@ function ownerSetConfigParams(kind, data) {
|
|
|
8666
8681
|
function isOwnerSetConfigParams(kind, value) {
|
|
8667
8682
|
return value.__kind === kind;
|
|
8668
8683
|
}
|
|
8684
|
+
function getVersionSerializer2() {
|
|
8685
|
+
return serializers.struct(
|
|
8686
|
+
[
|
|
8687
|
+
["major", serializers.u64()],
|
|
8688
|
+
["minor", serializers.u8()]
|
|
8689
|
+
],
|
|
8690
|
+
{ description: "Version" }
|
|
8691
|
+
);
|
|
8692
|
+
}
|
|
8669
8693
|
|
|
8670
8694
|
// src/generated/kinobi/executor/accounts/executorConfig.ts
|
|
8671
8695
|
function getExecutorConfigAccountDataSerializer() {
|
|
@@ -9099,10 +9123,12 @@ __export(instructions_exports4, {
|
|
|
9099
9123
|
adminSetConfig: () => adminSetConfig,
|
|
9100
9124
|
compose: () => compose,
|
|
9101
9125
|
executable: () => executable,
|
|
9126
|
+
execute: () => execute,
|
|
9102
9127
|
extendExecutorConfig: () => extendExecutorConfig,
|
|
9103
9128
|
getAdminSetConfigInstructionDataSerializer: () => getAdminSetConfigInstructionDataSerializer,
|
|
9104
9129
|
getComposeInstructionDataSerializer: () => getComposeInstructionDataSerializer,
|
|
9105
9130
|
getExecutableInstructionDataSerializer: () => getExecutableInstructionDataSerializer,
|
|
9131
|
+
getExecuteInstructionDataSerializer: () => getExecuteInstructionDataSerializer,
|
|
9106
9132
|
getExtendExecutorConfigInstructionDataSerializer: () => getExtendExecutorConfigInstructionDataSerializer,
|
|
9107
9133
|
getInitExecutorInstructionDataSerializer: () => getInitExecutorInstructionDataSerializer,
|
|
9108
9134
|
getNativeDropInstructionDataSerializer: () => getNativeDropInstructionDataSerializer,
|
|
@@ -9110,12 +9136,14 @@ __export(instructions_exports4, {
|
|
|
9110
9136
|
getPostExecuteInstructionDataSerializer: () => getPostExecuteInstructionDataSerializer,
|
|
9111
9137
|
getPreExecuteInstructionDataSerializer: () => getPreExecuteInstructionDataSerializer,
|
|
9112
9138
|
getQuoteExecutorInstructionDataSerializer: () => getQuoteExecutorInstructionDataSerializer,
|
|
9139
|
+
getVersionInstructionDataSerializer: () => getVersionInstructionDataSerializer2,
|
|
9113
9140
|
initExecutor: () => initExecutor,
|
|
9114
9141
|
nativeDrop: () => nativeDrop,
|
|
9115
9142
|
ownerSetConfig: () => ownerSetConfig,
|
|
9116
9143
|
postExecute: () => postExecute,
|
|
9117
9144
|
preExecute: () => preExecute,
|
|
9118
|
-
quoteExecutor: () => quoteExecutor
|
|
9145
|
+
quoteExecutor: () => quoteExecutor,
|
|
9146
|
+
version: () => version2
|
|
9119
9147
|
});
|
|
9120
9148
|
function getAccountMetasAndSigners4(accounts, optionalAccountStrategy, programId) {
|
|
9121
9149
|
const keys = [];
|
|
@@ -9310,6 +9338,78 @@ function executable(context, accounts, args) {
|
|
|
9310
9338
|
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
9311
9339
|
]);
|
|
9312
9340
|
}
|
|
9341
|
+
function getExecuteInstructionDataSerializer() {
|
|
9342
|
+
return serializers.mapSerializer(
|
|
9343
|
+
serializers.struct(
|
|
9344
|
+
[
|
|
9345
|
+
["discriminator", serializers.bytes({ size: 8 })],
|
|
9346
|
+
["receiver", serializers.publicKey()],
|
|
9347
|
+
["lzReceive", getLzReceiveParamsSerializer()],
|
|
9348
|
+
["value", serializers.u64()],
|
|
9349
|
+
["computeUnits", serializers.u64()]
|
|
9350
|
+
],
|
|
9351
|
+
{ description: "ExecuteInstructionData" }
|
|
9352
|
+
),
|
|
9353
|
+
(value) => ({
|
|
9354
|
+
...value,
|
|
9355
|
+
discriminator: new Uint8Array([130, 221, 242, 154, 13, 193, 189, 29])
|
|
9356
|
+
})
|
|
9357
|
+
);
|
|
9358
|
+
}
|
|
9359
|
+
function execute(context, input) {
|
|
9360
|
+
const programId = context.programs.getPublicKey(
|
|
9361
|
+
"executor",
|
|
9362
|
+
"6doghB248px58JSSwG4qejQ46kFMW4AMj7vzJnWZHNZn"
|
|
9363
|
+
);
|
|
9364
|
+
const resolvedAccounts = {
|
|
9365
|
+
executor: {
|
|
9366
|
+
index: 0,
|
|
9367
|
+
isWritable: true,
|
|
9368
|
+
value: input.executor ?? null
|
|
9369
|
+
},
|
|
9370
|
+
config: {
|
|
9371
|
+
index: 1,
|
|
9372
|
+
isWritable: false,
|
|
9373
|
+
value: input.config ?? null
|
|
9374
|
+
},
|
|
9375
|
+
endpointProgram: {
|
|
9376
|
+
index: 2,
|
|
9377
|
+
isWritable: false,
|
|
9378
|
+
value: input.endpointProgram ?? null
|
|
9379
|
+
},
|
|
9380
|
+
endpointEventAuthority: {
|
|
9381
|
+
index: 3,
|
|
9382
|
+
isWritable: false,
|
|
9383
|
+
value: input.endpointEventAuthority ?? null
|
|
9384
|
+
},
|
|
9385
|
+
eventAuthority: {
|
|
9386
|
+
index: 4,
|
|
9387
|
+
isWritable: false,
|
|
9388
|
+
value: input.eventAuthority ?? null
|
|
9389
|
+
},
|
|
9390
|
+
program: {
|
|
9391
|
+
index: 5,
|
|
9392
|
+
isWritable: false,
|
|
9393
|
+
value: input.program ?? null
|
|
9394
|
+
}
|
|
9395
|
+
};
|
|
9396
|
+
const resolvedArgs = { ...input };
|
|
9397
|
+
const orderedAccounts = Object.values(
|
|
9398
|
+
resolvedAccounts
|
|
9399
|
+
).sort((a, b) => a.index - b.index);
|
|
9400
|
+
const [keys, signers] = getAccountMetasAndSigners4(
|
|
9401
|
+
orderedAccounts,
|
|
9402
|
+
"programId",
|
|
9403
|
+
programId
|
|
9404
|
+
);
|
|
9405
|
+
const data = getExecuteInstructionDataSerializer().serialize(
|
|
9406
|
+
resolvedArgs
|
|
9407
|
+
);
|
|
9408
|
+
const bytesCreatedOnChain = 0;
|
|
9409
|
+
return umi.transactionBuilder([
|
|
9410
|
+
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
9411
|
+
]);
|
|
9412
|
+
}
|
|
9313
9413
|
function getExtendExecutorConfigInstructionDataSerializer() {
|
|
9314
9414
|
return serializers.mapSerializer(
|
|
9315
9415
|
serializers.struct(
|
|
@@ -9747,6 +9847,37 @@ function quoteExecutor(context, input) {
|
|
|
9747
9847
|
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
9748
9848
|
]);
|
|
9749
9849
|
}
|
|
9850
|
+
function getVersionInstructionDataSerializer2() {
|
|
9851
|
+
return serializers.mapSerializer(
|
|
9852
|
+
serializers.struct([["discriminator", serializers.bytes({ size: 8 })]], {
|
|
9853
|
+
description: "VersionInstructionData"
|
|
9854
|
+
}),
|
|
9855
|
+
(value) => ({
|
|
9856
|
+
...value,
|
|
9857
|
+
discriminator: new Uint8Array([118, 65, 195, 198, 129, 216, 252, 192])
|
|
9858
|
+
})
|
|
9859
|
+
);
|
|
9860
|
+
}
|
|
9861
|
+
function version2(context) {
|
|
9862
|
+
const programId = context.programs.getPublicKey(
|
|
9863
|
+
"executor",
|
|
9864
|
+
"6doghB248px58JSSwG4qejQ46kFMW4AMj7vzJnWZHNZn"
|
|
9865
|
+
);
|
|
9866
|
+
const resolvedAccounts = {};
|
|
9867
|
+
const orderedAccounts = Object.values(
|
|
9868
|
+
resolvedAccounts
|
|
9869
|
+
);
|
|
9870
|
+
const [keys, signers] = getAccountMetasAndSigners4(
|
|
9871
|
+
orderedAccounts,
|
|
9872
|
+
"programId",
|
|
9873
|
+
programId
|
|
9874
|
+
);
|
|
9875
|
+
const data = getVersionInstructionDataSerializer2().serialize({});
|
|
9876
|
+
const bytesCreatedOnChain = 0;
|
|
9877
|
+
return umi.transactionBuilder([
|
|
9878
|
+
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
9879
|
+
]);
|
|
9880
|
+
}
|
|
9750
9881
|
|
|
9751
9882
|
// src/generated/kinobi/executor/programs/executor.ts
|
|
9752
9883
|
var EXECUTOR_PROGRAM_ID = "6doghB248px58JSSwG4qejQ46kFMW4AMj7vzJnWZHNZn";
|
|
@@ -9757,7 +9888,7 @@ var MessageType = /* @__PURE__ */ ((MessageType2) => {
|
|
|
9757
9888
|
MessageType2[MessageType2["ABA"] = 3] = "ABA";
|
|
9758
9889
|
return MessageType2;
|
|
9759
9890
|
})(MessageType || {});
|
|
9760
|
-
function
|
|
9891
|
+
function getLzReceiveParamsSerializer2() {
|
|
9761
9892
|
return serializers.struct(
|
|
9762
9893
|
[
|
|
9763
9894
|
["srcEid", serializers.u32()],
|
|
@@ -9934,7 +10065,7 @@ __export(types_exports5, {
|
|
|
9934
10065
|
getTreasuryFeeSerializer: () => getTreasuryFeeSerializer,
|
|
9935
10066
|
getTreasurySerializer: () => getTreasurySerializer,
|
|
9936
10067
|
getUlnConfigSerializer: () => getUlnConfigSerializer2,
|
|
9937
|
-
getVersionSerializer: () =>
|
|
10068
|
+
getVersionSerializer: () => getVersionSerializer3,
|
|
9938
10069
|
getWorkerFeeSerializer: () => getWorkerFeeSerializer,
|
|
9939
10070
|
isConfig: () => isConfig
|
|
9940
10071
|
});
|
|
@@ -10044,7 +10175,7 @@ function getUlnConfigSerializer2() {
|
|
|
10044
10175
|
{ description: "UlnConfig" }
|
|
10045
10176
|
);
|
|
10046
10177
|
}
|
|
10047
|
-
function
|
|
10178
|
+
function getVersionSerializer3() {
|
|
10048
10179
|
return serializers.struct(
|
|
10049
10180
|
[
|
|
10050
10181
|
["major", serializers.u64()],
|
|
@@ -10593,9 +10724,9 @@ async function getLzComposeTypesInfo(rpc, payer, to, composerProgram, params, co
|
|
|
10593
10724
|
serializers.bytes(),
|
|
10594
10725
|
commitment
|
|
10595
10726
|
);
|
|
10596
|
-
const
|
|
10597
|
-
if (
|
|
10598
|
-
throw new Error(`Invalid version ${
|
|
10727
|
+
const version5 = resp.at(0);
|
|
10728
|
+
if (version5 !== 2) {
|
|
10729
|
+
throw new Error(`Invalid version ${version5}. Expected version 2.`);
|
|
10599
10730
|
}
|
|
10600
10731
|
return getLzComposeTypesV2AccountsSerializer().deserialize(resp, 1)[0];
|
|
10601
10732
|
}
|
|
@@ -10647,7 +10778,7 @@ async function getLzReceiveAccountsFromTypesV1(rpc, payer, receiver, receiverPro
|
|
|
10647
10778
|
});
|
|
10648
10779
|
}
|
|
10649
10780
|
}
|
|
10650
|
-
const data =
|
|
10781
|
+
const data = getLzReceiveParamsSerializer2().serialize(params);
|
|
10651
10782
|
const lzReceiveTypesIx = {
|
|
10652
10783
|
programId: receiverProgram,
|
|
10653
10784
|
keys: accounts,
|
|
@@ -10683,7 +10814,7 @@ function updateAccountFromSimulatedResp2(accounts, payer) {
|
|
|
10683
10814
|
}
|
|
10684
10815
|
async function buildLzReceiveExecutionPlan(rpc, executorProgram, payer, receiver, receiverProgram, params, receiveTypesAccounts, commitment = "confirmed") {
|
|
10685
10816
|
receiveTypesAccounts = receiveTypesAccounts ?? await getLzReceiveTypesInfo(rpc, payer, receiver, receiverProgram, params, commitment);
|
|
10686
|
-
const data =
|
|
10817
|
+
const data = getLzReceiveParamsSerializer2().serialize(params);
|
|
10687
10818
|
const lzReceiveTypesIx = {
|
|
10688
10819
|
programId: receiverProgram,
|
|
10689
10820
|
keys: receiveTypesAccounts.accounts.map((pubkey) => {
|
|
@@ -10784,7 +10915,7 @@ async function getLzReceiveTypesInfo(rpc, payer, receiver, receiverProgram, para
|
|
|
10784
10915
|
],
|
|
10785
10916
|
data: Buffer.concat([
|
|
10786
10917
|
instructionDiscriminator("lz_receive_types_info"),
|
|
10787
|
-
|
|
10918
|
+
getLzReceiveParamsSerializer2().serialize(params)
|
|
10788
10919
|
])
|
|
10789
10920
|
};
|
|
10790
10921
|
const resp = await simulateWeb3JsTransaction(
|
|
@@ -10795,9 +10926,9 @@ async function getLzReceiveTypesInfo(rpc, payer, receiver, receiverProgram, para
|
|
|
10795
10926
|
serializers.bytes(),
|
|
10796
10927
|
commitment
|
|
10797
10928
|
);
|
|
10798
|
-
const
|
|
10799
|
-
if (
|
|
10800
|
-
throw new Error(`Invalid version ${
|
|
10929
|
+
const version5 = resp.at(0);
|
|
10930
|
+
if (version5 !== 2) {
|
|
10931
|
+
throw new Error(`Invalid version ${version5}. Expected version 2.`);
|
|
10801
10932
|
}
|
|
10802
10933
|
return getLzReceiveTypesV2AccountsSerializer().deserialize(resp, 1)[0];
|
|
10803
10934
|
}
|
|
@@ -10846,7 +10977,7 @@ async function lzReceive(rpc, payer, packet, callerParams = Uint8Array.from([0,
|
|
|
10846
10977
|
const receiverInfo = await rpc.getAccount(receiverPubkey, { commitment });
|
|
10847
10978
|
invariant3__default.default(receiverInfo.exists, `Receiver account not found: ${receiverPubkey}`);
|
|
10848
10979
|
const receiverProgram = umi.publicKey(receiverInfo.owner);
|
|
10849
|
-
let
|
|
10980
|
+
let version5 = 1;
|
|
10850
10981
|
let receiveTypesAccounts;
|
|
10851
10982
|
try {
|
|
10852
10983
|
receiveTypesAccounts = await getLzReceiveTypesInfo(
|
|
@@ -10857,11 +10988,11 @@ async function lzReceive(rpc, payer, packet, callerParams = Uint8Array.from([0,
|
|
|
10857
10988
|
params,
|
|
10858
10989
|
commitment
|
|
10859
10990
|
);
|
|
10860
|
-
|
|
10991
|
+
version5 = 2;
|
|
10861
10992
|
} catch (e) {
|
|
10862
|
-
|
|
10993
|
+
version5 = 1;
|
|
10863
10994
|
}
|
|
10864
|
-
if (
|
|
10995
|
+
if (version5 === 2) {
|
|
10865
10996
|
return buildLzReceiveExecutionPlan(
|
|
10866
10997
|
rpc,
|
|
10867
10998
|
executorProgram,
|
|
@@ -10881,7 +11012,7 @@ async function lzReceive(rpc, payer, packet, callerParams = Uint8Array.from([0,
|
|
|
10881
11012
|
params,
|
|
10882
11013
|
commitment
|
|
10883
11014
|
);
|
|
10884
|
-
const data =
|
|
11015
|
+
const data = getLzReceiveParamsSerializer2().serialize(params);
|
|
10885
11016
|
return {
|
|
10886
11017
|
instruction: {
|
|
10887
11018
|
programId: receiverProgram,
|
|
@@ -10907,15 +11038,15 @@ async function lzCompose(rpc, payer, event, extraData = Uint8Array.from([0, 0]),
|
|
|
10907
11038
|
throw new Error(`Account not found: ${to}`);
|
|
10908
11039
|
}
|
|
10909
11040
|
const composerProgram = accountInfo.owner;
|
|
10910
|
-
let
|
|
11041
|
+
let version5 = 1;
|
|
10911
11042
|
let composeTypesAccounts;
|
|
10912
11043
|
try {
|
|
10913
11044
|
composeTypesAccounts = await getLzComposeTypesInfo(rpc, payer, to, composerProgram, params, commitment);
|
|
10914
|
-
|
|
11045
|
+
version5 = 2;
|
|
10915
11046
|
} catch (e) {
|
|
10916
|
-
|
|
11047
|
+
version5 = 1;
|
|
10917
11048
|
}
|
|
10918
|
-
if (
|
|
11049
|
+
if (version5 === 2) {
|
|
10919
11050
|
return buildLzComposeExecutionPlan(
|
|
10920
11051
|
rpc,
|
|
10921
11052
|
executorProgram,
|
|
@@ -11216,16 +11347,16 @@ var Executor = class {
|
|
|
11216
11347
|
instructions.push(this.postExecute(executor, contextVersion).instruction);
|
|
11217
11348
|
return { signers, instructions, addressLookupTables };
|
|
11218
11349
|
}
|
|
11219
|
-
preExecute(executor,
|
|
11220
|
-
const context = this.pda.context(executor.publicKey,
|
|
11350
|
+
preExecute(executor, version5, feeLimit) {
|
|
11351
|
+
const context = this.pda.context(executor.publicKey, version5);
|
|
11221
11352
|
return preExecute(
|
|
11222
11353
|
{ programs: this.programRepo },
|
|
11223
|
-
{ executor, context, feeLimit, contextVersion:
|
|
11354
|
+
{ executor, context, feeLimit, contextVersion: version5 }
|
|
11224
11355
|
).items[0];
|
|
11225
11356
|
}
|
|
11226
|
-
postExecute(executor,
|
|
11227
|
-
const context = this.pda.context(executor.publicKey,
|
|
11228
|
-
return postExecute({ programs: this.programRepo }, { context, executor, contextVersion:
|
|
11357
|
+
postExecute(executor, version5) {
|
|
11358
|
+
const context = this.pda.context(executor.publicKey, version5);
|
|
11359
|
+
return postExecute({ programs: this.programRepo }, { context, executor, contextVersion: version5 }).items[0];
|
|
11229
11360
|
}
|
|
11230
11361
|
};
|
|
11231
11362
|
|
|
@@ -11948,7 +12079,7 @@ __export(instructions_exports5, {
|
|
|
11948
12079
|
getSetTreasuryInstructionDataSerializer: () => getSetTreasuryInstructionDataSerializer,
|
|
11949
12080
|
getTransferAdminInstructionDataSerializer: () => getTransferAdminInstructionDataSerializer3,
|
|
11950
12081
|
getVerifyInstructionDataSerializer: () => getVerifyInstructionDataSerializer2,
|
|
11951
|
-
getVersionInstructionDataSerializer: () =>
|
|
12082
|
+
getVersionInstructionDataSerializer: () => getVersionInstructionDataSerializer3,
|
|
11952
12083
|
getWithdrawRentInstructionDataSerializer: () => getWithdrawRentInstructionDataSerializer2,
|
|
11953
12084
|
initConfig: () => initConfig3,
|
|
11954
12085
|
initDefaultConfig: () => initDefaultConfig2,
|
|
@@ -11962,7 +12093,7 @@ __export(instructions_exports5, {
|
|
|
11962
12093
|
setTreasury: () => setTreasury,
|
|
11963
12094
|
transferAdmin: () => transferAdmin3,
|
|
11964
12095
|
verify: () => verify2,
|
|
11965
|
-
version: () =>
|
|
12096
|
+
version: () => version3,
|
|
11966
12097
|
withdrawRent: () => withdrawRent2
|
|
11967
12098
|
});
|
|
11968
12099
|
function getAccountMetasAndSigners5(accounts, optionalAccountStrategy, programId) {
|
|
@@ -12959,7 +13090,7 @@ function verify2(context, accounts, args) {
|
|
|
12959
13090
|
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
12960
13091
|
]);
|
|
12961
13092
|
}
|
|
12962
|
-
function
|
|
13093
|
+
function getVersionInstructionDataSerializer3() {
|
|
12963
13094
|
return serializers.mapSerializer(
|
|
12964
13095
|
serializers.struct([["discriminator", serializers.bytes({ size: 8 })]], {
|
|
12965
13096
|
description: "VersionInstructionData"
|
|
@@ -12970,7 +13101,7 @@ function getVersionInstructionDataSerializer2() {
|
|
|
12970
13101
|
})
|
|
12971
13102
|
);
|
|
12972
13103
|
}
|
|
12973
|
-
function
|
|
13104
|
+
function version3(context) {
|
|
12974
13105
|
const programId = context.programs.getPublicKey(
|
|
12975
13106
|
"uln",
|
|
12976
13107
|
"7a4WjyR8VZ7yZz5XJAKm39BUGn5iT9CKcv2pmG9tdXVH"
|
|
@@ -12984,7 +13115,7 @@ function version2(context) {
|
|
|
12984
13115
|
"programId",
|
|
12985
13116
|
programId
|
|
12986
13117
|
);
|
|
12987
|
-
const data =
|
|
13118
|
+
const data = getVersionInstructionDataSerializer3().serialize({});
|
|
12988
13119
|
const bytesCreatedOnChain = 0;
|
|
12989
13120
|
return umi.transactionBuilder([
|
|
12990
13121
|
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
@@ -14666,8 +14797,8 @@ __export(blocked_messagelib_exports, {
|
|
|
14666
14797
|
getBlockedMessagelibErrorFromName: () => getBlockedMessagelibErrorFromName,
|
|
14667
14798
|
getBlockedMessagelibProgram: () => getBlockedMessagelibProgram,
|
|
14668
14799
|
getBlockedMessagelibProgramId: () => getBlockedMessagelibProgramId,
|
|
14669
|
-
getVersionInstructionDataSerializer: () =>
|
|
14670
|
-
version: () =>
|
|
14800
|
+
getVersionInstructionDataSerializer: () => getVersionInstructionDataSerializer4,
|
|
14801
|
+
version: () => version4
|
|
14671
14802
|
});
|
|
14672
14803
|
|
|
14673
14804
|
// src/generated/kinobi/blocked_messagelib/errors/blockedMessagelib.ts
|
|
@@ -14721,7 +14852,7 @@ function getAccountMetasAndSigners7(accounts, optionalAccountStrategy, programId
|
|
|
14721
14852
|
}
|
|
14722
14853
|
|
|
14723
14854
|
// src/generated/kinobi/blocked_messagelib/instructions/version.ts
|
|
14724
|
-
function
|
|
14855
|
+
function getVersionInstructionDataSerializer4() {
|
|
14725
14856
|
return serializers.mapSerializer(
|
|
14726
14857
|
serializers.struct([["discriminator", serializers.bytes({ size: 8 })]], {
|
|
14727
14858
|
description: "VersionInstructionData"
|
|
@@ -14732,7 +14863,7 @@ function getVersionInstructionDataSerializer3() {
|
|
|
14732
14863
|
})
|
|
14733
14864
|
);
|
|
14734
14865
|
}
|
|
14735
|
-
function
|
|
14866
|
+
function version4(context) {
|
|
14736
14867
|
const programId = context.programs.getPublicKey(
|
|
14737
14868
|
"blockedMessagelib",
|
|
14738
14869
|
"2XrYqmhBMPJgDsb4SVbjV1PnJBprurd5bzRCkHwiFCJB"
|
|
@@ -14746,7 +14877,7 @@ function version3(context) {
|
|
|
14746
14877
|
"programId",
|
|
14747
14878
|
programId
|
|
14748
14879
|
);
|
|
14749
|
-
const data =
|
|
14880
|
+
const data = getVersionInstructionDataSerializer4().serialize({});
|
|
14750
14881
|
const bytesCreatedOnChain = 0;
|
|
14751
14882
|
return umi.transactionBuilder([
|
|
14752
14883
|
{ instruction: { keys, programId, data }, signers, bytesCreatedOnChain }
|
|
@@ -15289,7 +15420,7 @@ exports.getLzComposeTypesV2AccountsSerializer = getLzComposeTypesV2AccountsSeria
|
|
|
15289
15420
|
exports.getLzComposeTypesV2ResultSerializer = getLzComposeTypesV2ResultSerializer;
|
|
15290
15421
|
exports.getLzReceiveAccountSerializer = getLzReceiveAccountSerializer;
|
|
15291
15422
|
exports.getLzReceiveAccountsFromTypesV1 = getLzReceiveAccountsFromTypesV1;
|
|
15292
|
-
exports.getLzReceiveParamsSerializer =
|
|
15423
|
+
exports.getLzReceiveParamsSerializer = getLzReceiveParamsSerializer2;
|
|
15293
15424
|
exports.getLzReceiveTypesInfo = getLzReceiveTypesInfo;
|
|
15294
15425
|
exports.getLzReceiveTypesV2AccountsSerializer = getLzReceiveTypesV2AccountsSerializer;
|
|
15295
15426
|
exports.getLzReceiveTypesV2ResultSerializer = getLzReceiveTypesV2ResultSerializer;
|