Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: add solana program extend subcommand #34043

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented Nov 13, 2023

Problem

Solana CLI doesn't support extending program data yet

Summary of Changes

Added a new subcommand solana program extend which allows extending the program data of an upgradeable program

USAGE:
    solana program extend [FLAGS] [OPTIONS] <PROGRAM_ID> <ADDITIONAL_BYTES>

FLAGS:
    -h, --help                           Prints help information
        --no-address-labels              Do not use address labels in the output
        --skip-seed-phrase-validation    Skip validation of seed phrases. Use this if your phrase does not use the BIP39
                                         official English word list
        --use-quic                       Use QUIC when sending transactions.
        --use-udp                        Use UDP when sending transactions.
    -V, --version                        Prints version information
    -v, --verbose                        Show additional information

OPTIONS:
        --commitment <COMMITMENT_LEVEL>    Return information at the selected commitment level [possible values:
                                           processed, confirmed, finalized]
    -C, --config <FILEPATH>                Configuration file to use [default:
                                           /Users/starry/.config/solana/cli/config.yml]
    -u, --url <URL_OR_MONIKER>             URL for Solana's JSON RPC or moniker (or their first letter): [mainnet-beta,
                                           testnet, devnet, localhost]
    -k, --keypair <KEYPAIR>                Filepath or URL to a keypair
        --output <FORMAT>                  Return information in specified output format [possible values: json, json-
                                           compact]
        --ws <URL>                         WebSocket URL for the solana cluster

ARGS:
    <PROGRAM_ID>          Address of the program to extend
    <ADDITIONAL_BYTES>    Number of bytes that will be allocated for the program's data account

Fixes #

@jstarry jstarry force-pushed the cli/program-extend branch 3 times, most recently from 32823e1 to 938bc37 Compare November 15, 2023 06:58
@jstarry jstarry requested a review from pgarg66 November 15, 2023 07:45
@jstarry jstarry marked this pull request as ready for review November 15, 2023 07:45
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Merging #34043 (aee253d) into master (ae30572) will decrease coverage by 0.1%.
Report is 23 commits behind head on master.
The diff coverage is 37.7%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34043     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         811      811             
  Lines      219452   219558    +106     
=========================================
+ Hits       179768   179821     +53     
- Misses      39684    39737     +53     

@jstarry jstarry merged commit 34f5c68 into solana-labs:master Nov 16, 2023
32 checks passed
@jstarry jstarry deleted the cli/program-extend branch November 16, 2023 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants