@orderly.network/default-solana-adapter 3.1.4 → 3.1.5
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +64 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +64 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -76,9 +76,9 @@ module.exports = __toCommonJS(index_exports);
|
|
|
76
76
|
// src/version.ts
|
|
77
77
|
if (typeof window !== "undefined") {
|
|
78
78
|
window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
|
|
79
|
-
window.__ORDERLY_VERSION__["@orderly.network/default-solana-adapter"] = "3.1.
|
|
79
|
+
window.__ORDERLY_VERSION__["@orderly.network/default-solana-adapter"] = "3.1.5";
|
|
80
80
|
}
|
|
81
|
-
var version_default = "3.1.
|
|
81
|
+
var version_default = "3.1.5";
|
|
82
82
|
|
|
83
83
|
// src/walletAdapter.ts
|
|
84
84
|
var ed = __toESM(require("@noble/ed25519"));
|
|
@@ -2606,6 +2606,30 @@ function appendThreeDvnQuoteRemainingAccounts(priceFeedPda) {
|
|
|
2606
2606
|
...priceFeedPair()
|
|
2607
2607
|
];
|
|
2608
2608
|
}
|
|
2609
|
+
function appendOneDvnQuoteRemainingAccounts(priceFeedPda) {
|
|
2610
|
+
return [
|
|
2611
|
+
{
|
|
2612
|
+
pubkey: LZ_DVN_PROGRAM_ID,
|
|
2613
|
+
isWritable: false,
|
|
2614
|
+
isSigner: false
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
pubkey: LZ_DVN_PDA,
|
|
2618
|
+
isWritable: false,
|
|
2619
|
+
isSigner: false
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
pubkey: PRICE_FEED_PROGRAM_ID,
|
|
2623
|
+
isWritable: false,
|
|
2624
|
+
isSigner: false
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
pubkey: priceFeedPda,
|
|
2628
|
+
isWritable: false,
|
|
2629
|
+
isSigner: false
|
|
2630
|
+
}
|
|
2631
|
+
];
|
|
2632
|
+
}
|
|
2609
2633
|
function appendThreeDvnDepositRemainingAccounts(priceFeedPda) {
|
|
2610
2634
|
const priceFeedPair = () => [
|
|
2611
2635
|
{
|
|
@@ -2655,6 +2679,42 @@ function appendThreeDvnDepositRemainingAccounts(priceFeedPda) {
|
|
|
2655
2679
|
...priceFeedPair()
|
|
2656
2680
|
];
|
|
2657
2681
|
}
|
|
2682
|
+
function appendOneDvnDepositRemainingAccounts(priceFeedPda) {
|
|
2683
|
+
return [
|
|
2684
|
+
{
|
|
2685
|
+
pubkey: LZ_DVN_PROGRAM_ID,
|
|
2686
|
+
isWritable: false,
|
|
2687
|
+
isSigner: false
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
pubkey: LZ_DVN_PDA,
|
|
2691
|
+
isWritable: true,
|
|
2692
|
+
isSigner: false
|
|
2693
|
+
},
|
|
2694
|
+
{
|
|
2695
|
+
pubkey: PRICE_FEED_PROGRAM_ID,
|
|
2696
|
+
isWritable: false,
|
|
2697
|
+
isSigner: false
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
pubkey: priceFeedPda,
|
|
2701
|
+
isWritable: false,
|
|
2702
|
+
isSigner: false
|
|
2703
|
+
}
|
|
2704
|
+
];
|
|
2705
|
+
}
|
|
2706
|
+
function appendDvnQuoteRemainingAccounts(programId, priceFeedPda) {
|
|
2707
|
+
if (programId.toBase58() === MAINNET_OAPP_PROGRAM_ID.toBase58()) {
|
|
2708
|
+
return appendThreeDvnQuoteRemainingAccounts(priceFeedPda);
|
|
2709
|
+
}
|
|
2710
|
+
return appendOneDvnQuoteRemainingAccounts(priceFeedPda);
|
|
2711
|
+
}
|
|
2712
|
+
function appendDvnDepositRemainingAccounts(programId, priceFeedPda) {
|
|
2713
|
+
if (programId.toBase58() === MAINNET_OAPP_PROGRAM_ID.toBase58()) {
|
|
2714
|
+
return appendThreeDvnDepositRemainingAccounts(priceFeedPda);
|
|
2715
|
+
}
|
|
2716
|
+
return appendOneDvnDepositRemainingAccounts(priceFeedPda);
|
|
2717
|
+
}
|
|
2658
2718
|
function getDstEID(OAPP_PROGRAM_ID) {
|
|
2659
2719
|
if (OAPP_PROGRAM_ID.toBase58() === MAINNET_OAPP_PROGRAM_ID.toBase58()) {
|
|
2660
2720
|
return MAIN_DST_EID;
|
|
@@ -3070,7 +3130,7 @@ function getDepositQuoteFee(_0) {
|
|
|
3070
3130
|
isWritable: false,
|
|
3071
3131
|
isSigner: false
|
|
3072
3132
|
},
|
|
3073
|
-
...
|
|
3133
|
+
...appendDvnQuoteRemainingAccounts(appProgramId, priceFeedPDA)
|
|
3074
3134
|
]).instruction();
|
|
3075
3135
|
const lastBlockHash = yield connection.getLatestBlockhash();
|
|
3076
3136
|
const lookupTableAddress = getLookupTableAddress(appProgramId);
|
|
@@ -3301,7 +3361,7 @@ function deposit(_0) {
|
|
|
3301
3361
|
// 17
|
|
3302
3362
|
pubkey: priceFeedPDA
|
|
3303
3363
|
},
|
|
3304
|
-
...
|
|
3364
|
+
...appendDvnDepositRemainingAccounts(appProgramId, priceFeedPDA)
|
|
3305
3365
|
];
|
|
3306
3366
|
const fee = yield getDepositQuoteFee({
|
|
3307
3367
|
vaultAddress,
|