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

Implement System.Callback.* interops #1238

Merged
merged 9 commits into from
Jul 30, 2020
Merged

Implement System.Callback.* interops #1238

merged 9 commits into from
Jul 30, 2020

Commits on Jul 29, 2020

  1. *: move syscall handling out of VM

    Remove interop-related structures from the `vm` package.
    
    Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
    fyrchik committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    51ae12e View commit details
    Browse the repository at this point in the history
  2. core: add prices for TRY* opcodes

    Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
    fyrchik committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    c09ea04 View commit details
    Browse the repository at this point in the history
  3. core: implement System.Callback.* interops

    Support creating callbacks from pointers.
    
    Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
    fyrchik committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    382a7f5 View commit details
    Browse the repository at this point in the history
  4. core/tests: introduce loadScript helper

    Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
    fyrchik committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    e654d22 View commit details
    Browse the repository at this point in the history
  5. core/tests: refactor getting contract state

    Get 2 contracts in pair which is useful everytime we need to test
    syscall with one contract calling the other.
    
    Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
    fyrchik committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    f96c217 View commit details
    Browse the repository at this point in the history
  6. core: implement System.Callback.CreateFromMethod interop

    Support creating callbacks from contract methods.
    
    Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
    fyrchik committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    c54b45e View commit details
    Browse the repository at this point in the history
  7. core: implement System.Callback.CreateFromSyscall interop

    Allow to create callbacks from syscalls.
    
    Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
    fyrchik committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    99b0397 View commit details
    Browse the repository at this point in the history
  8. core: allow to restrict creating callbacks from syscalls

    Specify DisallowCallback flag if syscall is not allowed to be used in a
    callback.
    
    Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
    fyrchik committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    23a1430 View commit details
    Browse the repository at this point in the history
  9. interop: add Secp2k to the list of crypto interops

    Allow to use them during verification.
    fyrchik committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    9a99286 View commit details
    Browse the repository at this point in the history