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

Add solana-tokens #10011

Merged
merged 73 commits into from
May 13, 2020
Merged

Add solana-tokens #10011

merged 73 commits into from
May 13, 2020

Commits on Apr 2, 2020

  1. Initial commit

    garious committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    bb0665b View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2020

  1. Execute transfers

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    c8b5e17 View commit details
    Browse the repository at this point in the history
  2. Refactor for testing

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    94a17f7 View commit details
    Browse the repository at this point in the history
  3. Cleanup readme

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    edf81b6 View commit details
    Browse the repository at this point in the history
  4. Rewrite

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    e3df5ab View commit details
    Browse the repository at this point in the history
  5. Cleanup

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    449826c View commit details
    Browse the repository at this point in the history
  6. Cleanup

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    30b1459 View commit details
    Browse the repository at this point in the history
  7. Cleanup client

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    d3df313 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7932a48 View commit details
    Browse the repository at this point in the history
  9. Upgrade Solana

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    6213f14 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c49cdbe View commit details
    Browse the repository at this point in the history
  11. Handle transaction errors

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    bc16911 View commit details
    Browse the repository at this point in the history
  12. Merge allocations

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    3a7653b View commit details
    Browse the repository at this point in the history
  13. Fixes

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    984dde8 View commit details
    Browse the repository at this point in the history
  14. Cleanup readme

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    74a925d View commit details
    Browse the repository at this point in the history
  15. Fix markdown

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    47a9d98 View commit details
    Browse the repository at this point in the history
  16. Add example input

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    e1fe1ef View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    3f49c37 View commit details
    Browse the repository at this point in the history
  18. Add integration test

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    93117f2 View commit details
    Browse the repository at this point in the history
  19. Add metrics

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    e85e80a View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    5d80ec0 View commit details
    Browse the repository at this point in the history
  21. More metrics

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    0cf5c8c View commit details
    Browse the repository at this point in the history
  22. Fix dry run with no keys

    garious committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    6c9821d View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    0b421b0 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2020

  1. Fix bugs

    * Don't create the transaction log if nothing to put into it;
      otherwise the next innvocation won't add the header
    
    * Apply previous transactions to allocations with matching recipients
    garious committed Apr 4, 2020
    Configuration menu
    Copy the full SHA
    7ce7376 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6a56399 View commit details
    Browse the repository at this point in the history
  3. Polish

    garious committed Apr 4, 2020
    Configuration menu
    Copy the full SHA
    00cc299 View commit details
    Browse the repository at this point in the history
  4. Add new 'balances' command

    garious committed Apr 4, 2020
    Configuration menu
    Copy the full SHA
    4902060 View commit details
    Browse the repository at this point in the history
  5. 9 decimal places

    garious committed Apr 4, 2020
    Configuration menu
    Copy the full SHA
    b5cd54c View commit details
    Browse the repository at this point in the history
  6. Add missing file

    garious committed Apr 4, 2020
    Configuration menu
    Copy the full SHA
    b4fb233 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6bf5f7c View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2020

  1. Change field name from 'bid' to 'accepted'

    Also, tolerate precision change from 2 decimal places to 4
    garious committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    0c6da71 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2020

  1. Configuration menu
    Copy the full SHA
    4373f20 View commit details
    Browse the repository at this point in the history
  2. Rename allocations_csv to bids_csv

    So that we can bypass bids_csv with an allocations CSV file
    garious committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    eee2a67 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2020

  1. Upgrade Solana

    garious committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    b929084 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2020

  1. Configuration menu
    Copy the full SHA
    24dc72c View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2020

  1. Cleaner integration test

    Won't work until this lands and is released:
    
    solana-labs#9717
    garious committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    29dbb53 View commit details
    Browse the repository at this point in the history
  2. Update README

    garious committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    3830038 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4b44552 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2020

  1. Configuration menu
    Copy the full SHA
    2148fb3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d65b3be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d51871b View commit details
    Browse the repository at this point in the history

Commits on May 3, 2020

  1. Add docs (solana-labs#5)

    garious committed May 3, 2020
    Configuration menu
    Copy the full SHA
    09b5e0c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9bb8473 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2020

  1. Configuration menu
    Copy the full SHA
    07d9617 View commit details
    Browse the repository at this point in the history
  2. Switch from CSV to a pickledb database (solana-labs#8)

    * Switch from CSV to a pickledb database
    
    * Allow PickleDb errors to bubble up
    
    * Dedup
    
    * Hoist db
    
    * Add finalized field to TransactionInfo
    
    * Don't allow RPC client to resign transactions
    
    * Remove dead code
    
    * Use transport::Result
    
    * Record unconfirmed transaction
    
    * Fix: separate stake account per allocation
    
    * Catch transport errors
    
    * Panic if we attempt to replay a transaction that hasn't been finalized
    
    * Attempt to fix CI
    
    PickleDb isn't calling flush() or close() after writing to files.
    No issue on MacOS, but looks racy in CI.
    
    * Revert "Attempt to fix CI"
    
    This reverts commit 1632394f636c54402b3578120e8817dd1660e19b.
    
    * Poll for signature before returning
    garious committed May 4, 2020
    Configuration menu
    Copy the full SHA
    ac7dd41 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2020

  1. Configuration menu
    Copy the full SHA
    3f75424 View commit details
    Browse the repository at this point in the history
  2. Merge pull request solana-labs#15 from danpaul000/sol-for-fees

    Add --sol-for-fees option for stake distributions
    danpaul000 committed May 5, 2020
    Configuration menu
    Copy the full SHA
    4e20253 View commit details
    Browse the repository at this point in the history
  3. Add --allocations-csv option (solana-labs#14)

    * Add allocations-csv option
    
    * Add tests or GTFO
    
    * Apply review feedback
    
    * apply feedback
    
    * Add read_allocations function
    danpaul000 committed May 5, 2020
    Configuration menu
    Copy the full SHA
    0c36708 View commit details
    Browse the repository at this point in the history
  4. Update arg_parser.rs

    danpaul000 committed May 5, 2020
    Configuration menu
    Copy the full SHA
    e766d88 View commit details
    Browse the repository at this point in the history
  5. Fix balances command (solana-labs#17)

    * Fix balances command
    
    * Fix readme
    garious committed May 5, 2020
    Configuration menu
    Copy the full SHA
    a737e9e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ee8e5ac View commit details
    Browse the repository at this point in the history

Commits on May 6, 2020

  1. Add --no-wait (solana-labs#16)

    * Add ThinClient methods to implement --no-wait
    
    * Plumb --no-wait through
    
    No tests yet
    
    * Check transaction status on startup
    
    * Easier to test
    
    * Wait until transaction is finalized before checking if it failed with an error
    
    It's possible that a minority fork thinks it failed.
    
    * Add unit tests
    
    * Remove dead code and rustfmt
    
    * Don't flush database to file if doing a dry-run
    garious committed May 6, 2020
    Configuration menu
    Copy the full SHA
    fdb5f56 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2020

  1. Continue when transactions not yet finalized (solana-labs#20)

    If those transactions are dropped, the next run will execute them.
    garious committed May 7, 2020
    Configuration menu
    Copy the full SHA
    6885f1a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6dafeb5 View commit details
    Browse the repository at this point in the history
  3. Add read_allocations() unit-test (solana-labs#22)

    Delete the copy-pasted top-level test.
    
    Fixes solana-labs#19
    garious committed May 7, 2020
    Configuration menu
    Copy the full SHA
    5258447 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6f288be View commit details
    Browse the repository at this point in the history
  5. Remove all the copypasta (solana-labs#24)

    * Move resolve_distribute_stake_args into its own function
    
    * Add stake args to token args
    
    * Unify option names
    
    * Move Command::DistributeStake into DistributeTokens
    
    * Remove process_distribute_stake
    
    * Only unique signers
    
    * Use sender keypair to fund new fee-payer accounts
    
    * Unify distribute_tokens and distribute_stake
    garious committed May 7, 2020
    Configuration menu
    Copy the full SHA
    426ec4f View commit details
    Browse the repository at this point in the history

Commits on May 8, 2020

  1. Configuration menu
    Copy the full SHA
    6007905 View commit details
    Browse the repository at this point in the history
  2. Send all transactions as quickly as possible, then wait (solana-labs#26)

    * Send all transactions as quickly as possible, then wait
    
    * Exit when finalized or blockhashes have expired
    
    * Don't need blockhash in the CSV output
    
    * Better types
    
    CSV library was choking on Pubkey as a type. PickleDb doesn't have that problem.
    
    * Resend if blockhash has not expired
    
    * Attempt to fix CI
    garious committed May 8, 2020
    Configuration menu
    Copy the full SHA
    a29ae50 View commit details
    Browse the repository at this point in the history
  3. Move log to stderr

    garious committed May 8, 2020
    Configuration menu
    Copy the full SHA
    5f9d678 View commit details
    Browse the repository at this point in the history
  4. Add constructor, tuck away client (solana-labs#30)

    * Add constructor, tuck away client
    
    * Fix unwrap() caught by CI
    garious committed May 8, 2020
    Configuration menu
    Copy the full SHA
    d3a9058 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2020

  1. Configuration menu
    Copy the full SHA
    256c409 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2020

  1. Bunch of cleanup (solana-labs#31)

    * Remove untested --no-wait feature
    
    * Make --transactions-db an option, not an arg
    
    So that in the future, we can make it optional
    
    * Remove more untested features
    
    Too many false positives in that santity check.  Use --dry-run
    instead.
    
    * Add dry-run mode to ThinClient
    
    * Cleaner dry-run
    
    * Make key parameters required
    
    Just don't use them in --dry-run
    
    * Add option to write the transaction log
    
    --dry-run doesn't write to the database. Use this option if you
    want a copy of the transaction log before the final run.
    
    * Revert --transaction-log addition
    
    Implement solana-labs#27 first
    
    * Fix CI
    
    * Update readme
    
    * Fix CI in copypasta
    garious committed May 12, 2020
    Configuration menu
    Copy the full SHA
    041565d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ee429e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8d35db1 View commit details
    Browse the repository at this point in the history
  4. Move db functionality into its own module (solana-labs#35)

    * Move db functionality into its own module
    
    * Rename tokens module to commands
    
    * Version bump
    
    * Upgrade Solana
    garious committed May 12, 2020
    Configuration menu
    Copy the full SHA
    282c9f3 View commit details
    Browse the repository at this point in the history
  5. Add 'tokens/' from commit '282c9f371d5ef3f136c20b709911559b3ce14a77'

    git-subtree-dir: tokens
    git-subtree-mainline: a9b82cf
    git-subtree-split: 282c9f3
    garious committed May 12, 2020
    Configuration menu
    Copy the full SHA
    8e9b2b4 View commit details
    Browse the repository at this point in the history
  6. Add solana-tokens to build

    garious committed May 12, 2020
    Configuration menu
    Copy the full SHA
    ca5faf4 View commit details
    Browse the repository at this point in the history
  7. Remove Cargo.lock

    garious committed May 12, 2020
    Configuration menu
    Copy the full SHA
    b9d27e6 View commit details
    Browse the repository at this point in the history
  8. Remove vscode file

    garious committed May 12, 2020
    Configuration menu
    Copy the full SHA
    07bcaac View commit details
    Browse the repository at this point in the history
  9. Remove TravisCI build script

    garious committed May 12, 2020
    Configuration menu
    Copy the full SHA
    8911841 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2020

  1. Install solana-tokens

    garious committed May 13, 2020
    Configuration menu
    Copy the full SHA
    7f0e126 View commit details
    Browse the repository at this point in the history