Skip to content

Commit 02cbb6e

Browse files
fix(sdk): add refresh ixs and remaining accounts to requestElevationGroup (#1015)
Synced from glamsystems/glam 5c45c0bce37e784d753182661b41b25f07e86b9f
1 parent 4ac6830 commit 02cbb6e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/cmds/kamino-lend.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,4 +373,27 @@ export function installKaminoLendCommands(klend: Command, context: CliContext) {
373373
(txSig) => `Repaid ${amount} ${asset}: ${txSig}`,
374374
);
375375
});
376+
377+
klend
378+
.command("request-elevation-group")
379+
.argument("<market>", "Kamino lending market public key", validatePublicKey)
380+
.argument("<elevation-group>", "Elevation group number", parseInt)
381+
.option("-y, --yes", "Skip confirmation prompt", false)
382+
.description("Request elevation group for an obligation (staging only)")
383+
.action(async (market, elevationGroup, options) => {
384+
await executeTxWithErrorHandling(
385+
() =>
386+
context.glamClient.kaminoLending.requestElevationGroup(
387+
market,
388+
elevationGroup,
389+
context.txOptions,
390+
),
391+
{
392+
skip: options?.yes,
393+
message: `Confirm requesting elevation group ${elevationGroup} for market ${market}`,
394+
},
395+
(txSig) =>
396+
`Requested elevation group ${elevationGroup} for market ${market}: ${txSig}`,
397+
);
398+
});
376399
}

0 commit comments

Comments
 (0)