Skip to content

Commit

Permalink
[wip]: Add placeholders for more CLI commands
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Jan 20, 2025
1 parent e70c5a9 commit 0eab08f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 28 additions & 1 deletion clients/js/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,33 @@ program
}
);

program
.command('set-authority <seed> <program-id>')
.description(
'Set, update or remove an additional authority on canonical metadata accounts'
)
.action(async () => {
// TODO
});

program
.command('set-immutable <seed> <program-id>')
.description(
'Make the metadata account immutable, preventing any further updates'
)
.action(async () => {
// TODO
});

program
.command('trim <seed> <program-id>')
.description(
'Trim the metadata account data to the minimum required size and recover rent'
)
.action(async () => {
// TODO
});

program
.command('close <seed> <program-id>')
.description('Close metadata account and recover rent')
Expand All @@ -218,7 +245,7 @@ program

program
.command('list')
.description('List all metadata PDAs owned by an authority')
.description('List all metadata accounts owned by an authority')
.action(async () => {
// TODO
});
Expand Down
2 changes: 2 additions & 0 deletions clients/js/src/updateMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export function getUpdateMetadataInstructions(
);
}

// TODO: Use extend instruction if sizeDifference > 10KB.

if (input.strategy.use === 'buffer') {
currentInstructionBatch.push(
getTransferSolInstruction({
Expand Down

0 comments on commit 0eab08f

Please sign in to comment.