@liquid-af/sdk 1.0.4 → 1.0.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/events/types.d.ts +27 -30
- package/dist/events/types.d.ts.map +1 -1
- package/dist/idl/liquid.d.ts +0 -15
- package/dist/idl/liquid.d.ts.map +1 -1
- package/dist/idl/liquid.json +1 -16
- package/dist/idl/liquid_events.d.ts +121 -135
- package/dist/idl/liquid_events.d.ts.map +1 -1
- package/dist/idl/liquid_events.json +121 -135
- package/dist/idl/liquid_state.d.ts +1 -2
- package/dist/idl/liquid_state.d.ts.map +1 -1
- package/dist/idl/liquid_state.json +1 -2
- package/dist/idl/liquid_swap.d.ts +634 -8
- package/dist/idl/liquid_swap.d.ts.map +1 -1
- package/dist/idl/liquid_swap.json +634 -8
- package/dist/instructions/liquid-swap.js +1 -1
- package/dist/instructions/liquid-swap.js.map +1 -1
- package/dist/instructions/liquid.d.ts.map +1 -1
- package/dist/instructions/liquid.js +1 -7
- package/dist/instructions/liquid.js.map +1 -1
- package/package.json +1 -1
- package/src/events/types.ts +27 -30
- package/src/idl/liquid.json +1 -16
- package/src/idl/liquid.ts +1 -16
- package/src/idl/liquid_events.json +121 -135
- package/src/idl/liquid_events.ts +121 -135
- package/src/idl/liquid_state.json +1 -2
- package/src/idl/liquid_state.ts +1 -2
- package/src/idl/liquid_swap.json +634 -8
- package/src/idl/liquid_swap.ts +634 -8
- package/src/instructions/liquid-swap.ts +1 -1
- package/src/instructions/liquid.ts +0 -20
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
type LiquidConfig,
|
|
16
16
|
} from "../config.js";
|
|
17
17
|
import {
|
|
18
|
-
getBondingCurvePDA,
|
|
19
18
|
getBuybackVaultPDA,
|
|
20
19
|
getStableBondingCurvePDA,
|
|
21
20
|
} from "../pda/liquid.js";
|
|
@@ -462,7 +461,6 @@ export function buildMigrateNative(
|
|
|
462
461
|
const program = getCachedLiquidProgram(config);
|
|
463
462
|
|
|
464
463
|
// Derive AMM PDAs
|
|
465
|
-
const [bondingCurve] = getBondingCurvePDA(mint, config.liquidProgramId);
|
|
466
464
|
const [ammPoolState] = getPoolPDA(
|
|
467
465
|
mint,
|
|
468
466
|
WSOL_MINT,
|
|
@@ -491,12 +489,6 @@ export function buildMigrateNative(
|
|
|
491
489
|
);
|
|
492
490
|
const [ammAuthority] = getSwapAuthorityPDA(config.liquidSwapProgramId);
|
|
493
491
|
const [tokenVolume] = getTokenVolumePDA(mint, config.liquidStateProgramId);
|
|
494
|
-
const bondingCurveLpToken = getAssociatedTokenAddressSync(
|
|
495
|
-
ammLpMint,
|
|
496
|
-
bondingCurve,
|
|
497
|
-
true,
|
|
498
|
-
TOKEN_PROGRAM_ID,
|
|
499
|
-
);
|
|
500
492
|
const [ammBuybackVault] = getSwapBuybackVaultPDA(
|
|
501
493
|
ammPoolState,
|
|
502
494
|
WSOL_MINT,
|
|
@@ -514,7 +506,6 @@ export function buildMigrateNative(
|
|
|
514
506
|
ammObservationState,
|
|
515
507
|
ammGlobalConfig,
|
|
516
508
|
ammAuthority,
|
|
517
|
-
bondingCurveLpToken,
|
|
518
509
|
tokenVolume,
|
|
519
510
|
ammBuybackVault,
|
|
520
511
|
})
|
|
@@ -1183,10 +1174,6 @@ export function buildMigrateStable(
|
|
|
1183
1174
|
const program = getCachedLiquidProgram(config);
|
|
1184
1175
|
|
|
1185
1176
|
// Derive AMM PDAs
|
|
1186
|
-
const [bondingCurve] = getStableBondingCurvePDA(
|
|
1187
|
-
mint,
|
|
1188
|
-
config.liquidProgramId,
|
|
1189
|
-
);
|
|
1190
1177
|
const [ammPoolState] = getPoolPDA(
|
|
1191
1178
|
mint,
|
|
1192
1179
|
quoteMint,
|
|
@@ -1215,12 +1202,6 @@ export function buildMigrateStable(
|
|
|
1215
1202
|
);
|
|
1216
1203
|
const [ammAuthority] = getSwapAuthorityPDA(config.liquidSwapProgramId);
|
|
1217
1204
|
const [tokenVolume] = getTokenVolumePDA(mint, config.liquidStateProgramId);
|
|
1218
|
-
const bondingCurveLpToken = getAssociatedTokenAddressSync(
|
|
1219
|
-
ammLpMint,
|
|
1220
|
-
bondingCurve,
|
|
1221
|
-
true,
|
|
1222
|
-
TOKEN_PROGRAM_ID,
|
|
1223
|
-
);
|
|
1224
1205
|
const [ammBuybackVault] = getSwapBuybackVaultPDA(
|
|
1225
1206
|
ammPoolState,
|
|
1226
1207
|
quoteMint,
|
|
@@ -1240,7 +1221,6 @@ export function buildMigrateStable(
|
|
|
1240
1221
|
ammObservationState,
|
|
1241
1222
|
ammGlobalConfig,
|
|
1242
1223
|
ammAuthority,
|
|
1243
|
-
bondingCurveLpToken,
|
|
1244
1224
|
tokenVolume,
|
|
1245
1225
|
ammBuybackVault,
|
|
1246
1226
|
})
|