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

native: implement HF-based update #3402

Merged
merged 12 commits into from
May 10, 2024
Merged

native: implement HF-based update #3402

merged 12 commits into from
May 10, 2024

Commits on Apr 25, 2024

  1. native: implement HF-based update

    A part of #3213.
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    d62fad1 View commit details
    Browse the repository at this point in the history
  2. native: emit Deploy/Update notifications on native deploy/update

    Ported as a part of neo-project/neo#2942.
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    73c742a View commit details
    Browse the repository at this point in the history
  3. core: unexport generic native contract methods and events

    External users should use HF-specific methods and events.
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    d74dc36 View commit details
    Browse the repository at this point in the history
  4. native: make HF-specific MD cache less lazy

    Initialize all necessary HF-specific contract descriptors once during
    contract construction.
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    3a2e301 View commit details
    Browse the repository at this point in the history
  5. config, native: introduce Cockatrice hard-fork

    With all associated native API changes ported from
    neo-project/neo#2925 and
    neo-project/neo#3154.
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    5c75ee1 View commit details
    Browse the repository at this point in the history
  6. core: extend error message for contract state check

    It will give us a clue on what's wrong with contract states if something
    unexpected happen.
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    82993da View commit details
    Browse the repository at this point in the history
  7. native: add nativehashes package

    Similar to nativenames, instantiate once and then reuse everywhere.
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    2d3d52e View commit details
    Browse the repository at this point in the history
  8. *: use nativehashes package where possible

    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    ec6fc54 View commit details
    Browse the repository at this point in the history
  9. native: make Oracle service handle native Oracle updates

    A part of #3213.
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    235f439 View commit details
    Browse the repository at this point in the history
  10. core: distinguish empty Hardforks map from nil

    Ensure that Blockchain constructor is able to distinguish empty
    Hardforks map (no hardforks should be enabled) from nil hardforks map
    (the default value should be used in this case, i.e. all hardforks
    should be active from genesis).
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    4ca2686 View commit details
    Browse the repository at this point in the history
  11. core: add nativenames.All list

    It's useful to keep the ordered set of native contract names.
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    36e1285 View commit details
    Browse the repository at this point in the history
  12. core: add unit tests for HF-based native contracts update

    A part of #3213.
    
    Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
    AnnaShaleva committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    9b8d579 View commit details
    Browse the repository at this point in the history