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

Solanav2 upgrade #587

Closed
wants to merge 83 commits into from
Closed

Commits on Jun 25, 2022

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

Commits on Jun 27, 2022

  1. Configuration menu
    Copy the full SHA
    73368cb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a2b777f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8dd4291 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    11fb5b3 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2022

  1. Configuration menu
    Copy the full SHA
    8bb1041 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3feacc7 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2022

  1. Configuration menu
    Copy the full SHA
    df0abce View commit details
    Browse the repository at this point in the history
  2. test check lido version

    kkonevets committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    5d3a96b View commit details
    Browse the repository at this point in the history
  3. fix python tests

    kkonevets committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    1eef46c View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2022

  1. cleanup client code

    kkonevets committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    7b1a022 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. reset back to maintainer_list and validator_list accounts

    If we create a new Lido address then we should change all Lido program derived accounts like reserve account, stake authority and mint authority (which means we should set new mint authority for stSOL)
    kkonevets committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    5545c1e View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2022

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

Commits on Jul 21, 2022

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

Commits on Jul 29, 2022

  1. multisig silently batch approve instructions in a single transaction

    Batch approve many instructions in a single transaction, usefull when
    signing with a ledger
    kkonevets committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    d55b01e View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2022

  1. Configuration menu
    Copy the full SHA
    1343e20 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2a37e4a View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2022

  1. Configuration menu
    Copy the full SHA
    1e09785 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24cf05e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a5d62f7 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2022

  1. Configuration menu
    Copy the full SHA
    4970b0b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69b92d8 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2022

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

Commits on Aug 17, 2022

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

Commits on Aug 18, 2022

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

Commits on Aug 21, 2022

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

Commits on Aug 25, 2022

  1. Fix account confusion error

    Always put account type field first among other account fields
    kkonevets committed Aug 25, 2022
    Configuration menu
    Copy the full SHA
    78615bc View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

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

Commits on Aug 31, 2022

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

Commits on Sep 2, 2022

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

Commits on Sep 4, 2022

  1. fix Solana error MergeTransientStake

    When there is a big amount in a reserve account Solana can't activate
    it in a single shot. It activates it in several epochs. When reserve
    SOLs are sent to stake accounts those stake accounts are still not
    fully activated after current epoch. But if Solido creates a new stake
    account in next epoch (e.g. I make a new deposit) then at the end of
    epoch it tries to merger these two account and gets Solana error
    "stake account with transient stake cannot be merged". We can't merge
    non fully activated stake account from different activation epochs.
    
    Same error is reproduced in Solido v2. If there is lots of SOL in a
    reserve account (currently we have ~4_000_000 SOL on mainnet) then
    after migrate to v2 instruction it stakes from reserve and stake is
    activated partially. And if I try to deposit e.g. 10 SOL, then another
    stake account is created and merging those two account fails at epoch
    end.
    
    Guess the same error will happen on v1 if I remove all validators and then add a new one. There should be at least 600_000 SOL in the reserve for the error to happen. On local validator Solana activates max 250_000 SOL per epoch.
    kkonevets committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    45aec53 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. refactor scripts

    kkonevets committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    f0adf55 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2022

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

Commits on Sep 12, 2022

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

Commits on Sep 22, 2022

  1. handle vote account closing by node operator

    Misc:
    1) Handled "not-yet-upgraded Lido instances can, in theory, be
    overwritten by unauthorized users"
    2) fixed try_unstake_from_active_validators with no stake accounts
    
    flatten test directory, disable anker tests, update README
    
    unit test: deactivate validator after closing vote account
    
    return test dir hierarchy back, return anker CI for consistency
    kkonevets committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    d491bb3 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2022

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

Commits on Sep 28, 2022

  1. correctly get inactive stake amount for withdraw

    When validator is deactivated effective stake balance is equal to
    stake balance so expected_difference_stake is 0. Thus inactive stake
    is not withdrawn by WithdrawInactiveStake following by Unstake instruction
    crash because the stake has more than rent exempt amount of inactive
    stake which is accumulated during previous stake merging.
    So first we withdraw inactive stake and then unstake.
    
    Side note. We should update effective stake balance when merging two
    stake accounts
    kkonevets committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    2c1abda View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2022

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

Commits on Sep 30, 2022

  1. add Emulator for testing

    kkonevets committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    9d9bee8 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2022

  1. Configuration menu
    Copy the full SHA
    da21e77 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    269ea9b View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2022

  1. revert back 2c1abda

    in v2 the error is not reproduced, instead this commit produces a new one
    kkonevets committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    6a44463 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2022

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

Commits on Oct 9, 2022

  1. update of 6a44463

    also withdraw inactive stake after merge
    kkonevets committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    8eaf2b5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ccd608 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2022

  1. Configuration menu
    Copy the full SHA
    a1b4d54 View commit details
    Browse the repository at this point in the history
  2. Get rid of Anchor protocol

    kkonevets committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    203f258 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    58634f6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    552481c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9ab8927 View commit details
    Browse the repository at this point in the history
  6. rust toolchain: 1.60.0

    kkonevets committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    8384980 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8aba3e5 View commit details
    Browse the repository at this point in the history
  8. rust toolchain: 1.60.0

    kkonevets committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    4c83c9d View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2022

  1. Configuration menu
    Copy the full SHA
    3b2efaa View commit details
    Browse the repository at this point in the history
  2. add v2 Neodyme audit

    kkonevets committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    48cbc39 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2022

  1. split propose migration on two stages, add validators from file

    1. Create new v2 accounts - validator/maintainer lists, developer fee account
    2. Create a migrate transaction
    kkonevets committed Oct 14, 2022
    Configuration menu
    Copy the full SHA
    261f72a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    53709c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ebf2cae View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2022

  1. refactor scripts

    kkonevets committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    39addc9 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2022

  1. Configuration menu
    Copy the full SHA
    a1c0178 View commit details
    Browse the repository at this point in the history
  2. Implemented transactions verification script

    Egor Luginin committed Nov 8, 2022
    Configuration menu
    Copy the full SHA
    e69cdad View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2022

  1. Configuration menu
    Copy the full SHA
    5da0270 View commit details
    Browse the repository at this point in the history
  2. format scripts

    kkonevets committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    e32049b View commit details
    Browse the repository at this point in the history
  3. make mypy happy

    kkonevets committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    c7d387e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    624a24d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0d109f9 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. Implemented solido state verification. Refactored verify_transaction …

    …script.
    Egor Luginin committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    e40ca6f View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2022

  1. Cleanup script

    Egor Luginin committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    03b43b2 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2022

  1. Implemented path to solido

    Egor Luginin committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    4d809e8 View commit details
    Browse the repository at this point in the history
  2. Added solido_config.json

    Egor Luginin committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    588e99b View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2022

  1. Added order verification.

    Egor Luginin committed Dec 5, 2022
    Configuration menu
    Copy the full SHA
    954f9aa View commit details
    Browse the repository at this point in the history
  2. Corrected scripts format

    Egor Luginin committed Dec 5, 2022
    Configuration menu
    Copy the full SHA
    2bf5478 View commit details
    Browse the repository at this point in the history
  3. script fixes

    Egor Luginin committed Dec 5, 2022
    Configuration menu
    Copy the full SHA
    e100e63 View commit details
    Browse the repository at this point in the history
  4. Merge pull request ChorusOne#3 from lidofinance/verification_script

    Implemented solido state verification.
    Shi-eld authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    330293b View commit details
    Browse the repository at this point in the history
  5. Added install-solido script

    Egor Luginin committed Dec 5, 2022
    Configuration menu
    Copy the full SHA
    6a9f037 View commit details
    Browse the repository at this point in the history
  6. Merge pull request ChorusOne#4 from lidofinance/verification_script

    Added install-solido script
    Shi-eld authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    2e01763 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2023

  1. all deps to ^

    billythedummy committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    a45f702 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. update deps

    ZhengYuTay committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    2c85ddf View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Configuration menu
    Copy the full SHA
    bb514d5 View commit details
    Browse the repository at this point in the history
  2. remove submodule

    ZhengYuTay committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    ec25a9b View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

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

Commits on Nov 20, 2024

  1. Configuration menu
    Copy the full SHA
    46e578a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1c5aa1 View commit details
    Browse the repository at this point in the history