@layerzerolabs/lz-solana-sdk-v2 2.3.18 → 2.3.19
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 +10 -0
- package/deployments/solana-mainnet/blocked_messagelib.json +9 -0
- package/deployments/solana-mainnet/dvn.json +9 -0
- package/deployments/solana-mainnet/endpoint.json +9 -0
- package/deployments/solana-mainnet/executor.json +9 -0
- package/deployments/solana-mainnet/oft.json +9 -0
- package/deployments/solana-mainnet/pricefeed.json +9 -0
- package/deployments/solana-mainnet/uln.json +9 -0
- package/deployments/solana-testnet/oft.json +9 -0
- package/dist/index.cjs +23 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.mjs +23 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @layerzerolabs/lz-solana-sdk-v2
|
|
2
2
|
|
|
3
|
+
## 2.3.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5fce234: minor update & fix some bugs
|
|
8
|
+
- Updated dependencies [5fce234]
|
|
9
|
+
- @layerzerolabs/lz-corekit-solana@2.3.19
|
|
10
|
+
- @layerzerolabs/lz-definitions@2.3.19
|
|
11
|
+
- @layerzerolabs/lz-v2-utilities@2.3.19
|
|
12
|
+
|
|
3
13
|
## 2.3.18
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2570,7 +2570,7 @@ var EndpointPDADeriver = class {
|
|
|
2570
2570
|
this.program
|
|
2571
2571
|
);
|
|
2572
2572
|
}
|
|
2573
|
-
receiveLibraryTimeout(
|
|
2573
|
+
receiveLibraryTimeout(_dstEndpointId) {
|
|
2574
2574
|
return [this.program, 0];
|
|
2575
2575
|
}
|
|
2576
2576
|
defaultMessageLib() {
|
|
@@ -8571,7 +8571,7 @@ var Endpoint = class {
|
|
|
8571
8571
|
this.program
|
|
8572
8572
|
);
|
|
8573
8573
|
}
|
|
8574
|
-
async setSendLibrary(
|
|
8574
|
+
async setSendLibrary(_connection, oappAdmin, oappIDPDA2, newSendLibProgram, dstEid) {
|
|
8575
8575
|
const [newSendLib] = new MessageLibPDADeriver(newSendLibProgram).messageLib();
|
|
8576
8576
|
const [sendLibraryConfig] = this.endpointDeriver.sendLibraryConfig(oappIDPDA2, dstEid);
|
|
8577
8577
|
const [sendLibraryInfo] = this.endpointDeriver.messageLibraryInfo(newSendLib);
|
|
@@ -8618,7 +8618,7 @@ var Endpoint = class {
|
|
|
8618
8618
|
this.program
|
|
8619
8619
|
);
|
|
8620
8620
|
}
|
|
8621
|
-
async setReceiveLibrary(
|
|
8621
|
+
async setReceiveLibrary(_connection, oappAdmin, oappIDPDA2, newReceiveLibProgram, srcEid, gracePeriod) {
|
|
8622
8622
|
const [newReceiveLib] = new MessageLibPDADeriver(newReceiveLibProgram).messageLib();
|
|
8623
8623
|
const [receiveLibraryConfig] = this.endpointDeriver.receiveLibraryConfig(oappIDPDA2, srcEid);
|
|
8624
8624
|
const [receiveLibraryInfo] = this.endpointDeriver.messageLibraryInfo(newReceiveLib);
|
|
@@ -8865,7 +8865,7 @@ var Endpoint = class {
|
|
|
8865
8865
|
/***
|
|
8866
8866
|
* setConfig is only supported by ULN
|
|
8867
8867
|
*/
|
|
8868
|
-
getSetConfigIXAccountMetaForCPI(
|
|
8868
|
+
getSetConfigIXAccountMetaForCPI(_connection, msgLibProgram, oappID, eid, commitmentOrConfig = "confirmed") {
|
|
8869
8869
|
const msgLib = msgLibProgram;
|
|
8870
8870
|
const [msgLibInfo] = this.endpointDeriver.messageLibraryInfo(msgLib);
|
|
8871
8871
|
const ix = createSetConfigInstruction(
|
|
@@ -9278,7 +9278,7 @@ var Endpoint = class {
|
|
|
9278
9278
|
return { programId: messageLibInfo.owner, msgLib: info.messageLib, isDefault: false, timeout: null };
|
|
9279
9279
|
}
|
|
9280
9280
|
// rename to a more generic name
|
|
9281
|
-
async getInboundPayloadHash(connection, receiver, srcEid, sender, nonce,
|
|
9281
|
+
async getInboundPayloadHash(connection, receiver, srcEid, sender, nonce, _payloadHash, commitmentOrConfig) {
|
|
9282
9282
|
const [payloadHashPDA] = this.endpointDeriver.payloadHash(receiver, srcEid, sender, nonce);
|
|
9283
9283
|
const accountInfo = await connection.getAccountInfo(payloadHashPDA, commitmentOrConfig);
|
|
9284
9284
|
if (!accountInfo) {
|
|
@@ -11329,7 +11329,7 @@ var SimpleMessageLib = class {
|
|
|
11329
11329
|
);
|
|
11330
11330
|
return messageLibInfo.wlCaller;
|
|
11331
11331
|
}
|
|
11332
|
-
validatePacket(
|
|
11332
|
+
validatePacket(_connection, endpointProgram, payer, encodedPacket) {
|
|
11333
11333
|
const packet = PacketV1Codec.fromBytes(encodedPacket);
|
|
11334
11334
|
const [receiveLibrary] = this.deriver.messageLib();
|
|
11335
11335
|
const endpoint = new endpoint_exports.Endpoint(endpointProgram);
|
|
@@ -11439,7 +11439,7 @@ var SimpleMessageLib = class {
|
|
|
11439
11439
|
});
|
|
11440
11440
|
return Promise.resolve(ix.keys.slice(1));
|
|
11441
11441
|
}
|
|
11442
|
-
async getSetConfigIXAccountMetaForCPI(
|
|
11442
|
+
async getSetConfigIXAccountMetaForCPI(_endpointProgram, _oappID, _eid) {
|
|
11443
11443
|
return Promise.reject(new Error("Method not implemented."));
|
|
11444
11444
|
}
|
|
11445
11445
|
};
|
|
@@ -15896,6 +15896,22 @@ var Executor = class {
|
|
|
15896
15896
|
this.program
|
|
15897
15897
|
);
|
|
15898
15898
|
}
|
|
15899
|
+
setExecutors(owner, executors) {
|
|
15900
|
+
const [configAccount] = this.deriver.config();
|
|
15901
|
+
return createOwnerSetConfigInstruction(
|
|
15902
|
+
{
|
|
15903
|
+
owner,
|
|
15904
|
+
config: configAccount
|
|
15905
|
+
},
|
|
15906
|
+
{
|
|
15907
|
+
params: {
|
|
15908
|
+
fields: [executors],
|
|
15909
|
+
__kind: "Executors"
|
|
15910
|
+
}
|
|
15911
|
+
},
|
|
15912
|
+
this.program
|
|
15913
|
+
);
|
|
15914
|
+
}
|
|
15899
15915
|
setMsglibs(owner, msglibPrograms) {
|
|
15900
15916
|
const [configAccount] = this.deriver.config();
|
|
15901
15917
|
const msglibPdas = msglibPrograms.map((program) => {
|