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

[x/programs] Remove SmartPtr and HostPtr #872

Merged
merged 55 commits into from
May 2, 2024

Commits on Apr 25, 2024

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

Commits on Apr 26, 2024

  1. Configuration menu
    Copy the full SHA
    ece7f6e View commit details
    Browse the repository at this point in the history
  2. update fixture

    iFrostizz committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    b01177f View commit details
    Browse the repository at this point in the history
  3. keep using SmartPtr for now

    iFrostizz committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    795ff58 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

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

    iFrostizz committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    f035e13 View commit details
    Browse the repository at this point in the history
  3. remove param

    iFrostizz committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    2e1cdb4 View commit details
    Browse the repository at this point in the history
  4. fix nits

    iFrostizz committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    942dbac View commit details
    Browse the repository at this point in the history
  5. remove whitespace

    iFrostizz committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    71c4a34 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1c2d161 View commit details
    Browse the repository at this point in the history
  7. stop using SmartPtr

    iFrostizz committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    e7adafb View commit details
    Browse the repository at this point in the history
  8. fix tests

    iFrostizz committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    315d9df View commit details
    Browse the repository at this point in the history
  9. Cached state values in the program state (ava-labs#840)

    * add cache
    
    * implement cache reads
    
    * actually cache reads
    
    * implement cache delete and handle borsch errors
    
    * use only one cache map
    
    * remove flushed bool
    
    * root of transactions by stateless merkledb
    
    * make root generation a function
    
    * preallocate memory for merkle array and consumebytes flag
    
    * add <*.code-workspace> to .gitignore and remove it from git commit
    
    * move root generation func to merkle package, tx root by items of [txID + result]
    
    * rebase & blk marshal/unmarshal & merkleroot to ids.ID
    
    * write benches for the merkle package
    
    * use crypto/rand, fix var name, report allocs
    
    * put the 10k bench back
    
    * pass config by parameter
    
    * happy clippy
    
    * borrow V
    
    * add TODO
    
    * Revert "pass config by parameter"
    
    This reverts commit 4aec589.
    
    * Revert "put the 10k bench back"
    
    This reverts commit 058d7e7.
    
    * Revert "use crypto/rand, fix var name, report allocs"
    
    This reverts commit 214005b.
    
    * Revert "write benches for the merkle package"
    
    This reverts commit 07993bf.
    
    * Revert "rebase & blk marshal/unmarshal & merkleroot to ids.ID"
    
    This reverts commit 7442836.
    
    * Revert "move root generation func to merkle package, tx root by items of [txID + result]"
    
    This reverts commit e551960.
    
    * Revert "add <*.code-workspace> to .gitignore and remove it from git commit"
    
    This reverts commit ce00289.
    
    * Revert "preallocate memory for merkle array and consumebytes flag"
    
    This reverts commit 68e49b6.
    
    * Revert "make root generation a function"
    
    This reverts commit aa44f97.
    
    * Revert "pass config by parameter"
    
    This reverts commit 4aec589.
    
    * Revert "move root generation func to merkle package, tx root by items of [txID + result]"
    
    This reverts commit e551960.
    
    * Revert "preallocate memory for merkle array and consumebytes flag"
    
    This reverts commit 68e49b6.
    
    * Revert "make root generation a function"
    
    This reverts commit aa44f97.
    
    * merge main!
    
    * merge imports
    
    ---------
    
    Co-authored-by: bianyuanop <[email protected]>
    Co-authored-by: Richard Pringle <[email protected]>
    3 people committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    2194f8c View commit details
    Browse the repository at this point in the history
  10. stop using SmartPtr

    iFrostizz committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    71ec384 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2024

  1. Cached state values in the program state (ava-labs#840)

    * add cache
    
    * implement cache reads
    
    * actually cache reads
    
    * implement cache delete and handle borsch errors
    
    * use only one cache map
    
    * remove flushed bool
    
    * root of transactions by stateless merkledb
    
    * make root generation a function
    
    * preallocate memory for merkle array and consumebytes flag
    
    * add <*.code-workspace> to .gitignore and remove it from git commit
    
    * move root generation func to merkle package, tx root by items of [txID + result]
    
    * rebase & blk marshal/unmarshal & merkleroot to ids.ID
    
    * write benches for the merkle package
    
    * use crypto/rand, fix var name, report allocs
    
    * put the 10k bench back
    
    * pass config by parameter
    
    * happy clippy
    
    * borrow V
    
    * add TODO
    
    * Revert "pass config by parameter"
    
    This reverts commit 4aec589.
    
    * Revert "put the 10k bench back"
    
    This reverts commit 058d7e7.
    
    * Revert "use crypto/rand, fix var name, report allocs"
    
    This reverts commit 214005b.
    
    * Revert "write benches for the merkle package"
    
    This reverts commit 07993bf.
    
    * Revert "rebase & blk marshal/unmarshal & merkleroot to ids.ID"
    
    This reverts commit 7442836.
    
    * Revert "move root generation func to merkle package, tx root by items of [txID + result]"
    
    This reverts commit e551960.
    
    * Revert "add <*.code-workspace> to .gitignore and remove it from git commit"
    
    This reverts commit ce00289.
    
    * Revert "preallocate memory for merkle array and consumebytes flag"
    
    This reverts commit 68e49b6.
    
    * Revert "make root generation a function"
    
    This reverts commit aa44f97.
    
    * Revert "pass config by parameter"
    
    This reverts commit 4aec589.
    
    * Revert "move root generation func to merkle package, tx root by items of [txID + result]"
    
    This reverts commit e551960.
    
    * Revert "preallocate memory for merkle array and consumebytes flag"
    
    This reverts commit 68e49b6.
    
    * Revert "make root generation a function"
    
    This reverts commit aa44f97.
    
    * merge main!
    
    * merge imports
    
    ---------
    
    Co-authored-by: bianyuanop <[email protected]>
    Co-authored-by: Richard Pringle <[email protected]>
    3 people committed May 1, 2024
    Configuration menu
    Copy the full SHA
    21f1778 View commit details
    Browse the repository at this point in the history
  2. [x/programs] safe wrapper around C ffi interface (ava-labs#869)

    * macro skeleton
    
    * write macro for ffi-safe bindings
    
    * avoid panicking todo!
    
    Signed-off-by: Franfran <[email protected]>
    
    * remove unused arms
    
    ---------
    
    Signed-off-by: Franfran <[email protected]>
    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    9d917bf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b6a426c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    11a9563 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    49532bf View commit details
    Browse the repository at this point in the history
  6. lint

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    440022a View commit details
    Browse the repository at this point in the history
  7. stop using SmartPtr

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    c97bb64 View commit details
    Browse the repository at this point in the history
  8. fix tests

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    2f0063d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    aebc12a View commit details
    Browse the repository at this point in the history
  10. back off file

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    285db8c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f7ef944 View commit details
    Browse the repository at this point in the history
  12. cargo fmt

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    3cbba41 View commit details
    Browse the repository at this point in the history
  13. fix test

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    a26bb42 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7e90e81 View commit details
    Browse the repository at this point in the history
  15. fix token test

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    cf8ebd4 View commit details
    Browse the repository at this point in the history
  16. lint

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    2255f8c View commit details
    Browse the repository at this point in the history
  17. remove ignored lint

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    a4ebe37 View commit details
    Browse the repository at this point in the history
  18. update fixtures

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    dc02edc View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    0174a25 View commit details
    Browse the repository at this point in the history
  20. update fixutes to release

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    0ca123b View commit details
    Browse the repository at this point in the history
  21. cargo fmt

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    eac0dc8 View commit details
    Browse the repository at this point in the history
  22. Consolidate CI (ava-labs#828)

    * Add rust-ci local github-action
    
    * Abstract install-go action
    
    * Centralize Go install parameters
    
    * Consolidate CI
    
    * Comment out code coverage
    
    * Finish centralizing the Go installation for CI
    
    * Handle releases
    
    * Fix passing secret to release-actions
    
    * [ci] Small Tweaks (ava-labs#875)
    
    * nits
    
    * remove labels
    
    ---------
    
    Co-authored-by: Patrick O'Grady <[email protected]>
    2 people authored and iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    8ce44c9 View commit details
    Browse the repository at this point in the history
  23. Update vm-release.yml (ava-labs#876)

    Signed-off-by: Richard Pringle <[email protected]>
    richardpringle authored and iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    9dd246b View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    3d76154 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    0f9494b View commit details
    Browse the repository at this point in the history
  26. lint

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    8f570b8 View commit details
    Browse the repository at this point in the history
  27. remove param

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    e34eb7c View commit details
    Browse the repository at this point in the history
  28. fix nits

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    aff83f6 View commit details
    Browse the repository at this point in the history
  29. stop using SmartPtr

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    4490172 View commit details
    Browse the repository at this point in the history
  30. fix tests

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    82cbdf7 View commit details
    Browse the repository at this point in the history
  31. Cached state values in the program state (ava-labs#840)

    * add cache
    
    * implement cache reads
    
    * actually cache reads
    
    * implement cache delete and handle borsch errors
    
    * use only one cache map
    
    * remove flushed bool
    
    * root of transactions by stateless merkledb
    
    * make root generation a function
    
    * preallocate memory for merkle array and consumebytes flag
    
    * add <*.code-workspace> to .gitignore and remove it from git commit
    
    * move root generation func to merkle package, tx root by items of [txID + result]
    
    * rebase & blk marshal/unmarshal & merkleroot to ids.ID
    
    * write benches for the merkle package
    
    * use crypto/rand, fix var name, report allocs
    
    * put the 10k bench back
    
    * pass config by parameter
    
    * happy clippy
    
    * borrow V
    
    * add TODO
    
    * Revert "pass config by parameter"
    
    This reverts commit 4aec589.
    
    * Revert "put the 10k bench back"
    
    This reverts commit 058d7e7.
    
    * Revert "use crypto/rand, fix var name, report allocs"
    
    This reverts commit 214005b.
    
    * Revert "write benches for the merkle package"
    
    This reverts commit 07993bf.
    
    * Revert "rebase & blk marshal/unmarshal & merkleroot to ids.ID"
    
    This reverts commit 7442836.
    
    * Revert "move root generation func to merkle package, tx root by items of [txID + result]"
    
    This reverts commit e551960.
    
    * Revert "add <*.code-workspace> to .gitignore and remove it from git commit"
    
    This reverts commit ce00289.
    
    * Revert "preallocate memory for merkle array and consumebytes flag"
    
    This reverts commit 68e49b6.
    
    * Revert "make root generation a function"
    
    This reverts commit aa44f97.
    
    * Revert "pass config by parameter"
    
    This reverts commit 4aec589.
    
    * Revert "move root generation func to merkle package, tx root by items of [txID + result]"
    
    This reverts commit e551960.
    
    * Revert "preallocate memory for merkle array and consumebytes flag"
    
    This reverts commit 68e49b6.
    
    * Revert "make root generation a function"
    
    This reverts commit aa44f97.
    
    * merge main!
    
    * merge imports
    
    ---------
    
    Co-authored-by: bianyuanop <[email protected]>
    Co-authored-by: Richard Pringle <[email protected]>
    3 people committed May 1, 2024
    Configuration menu
    Copy the full SHA
    cd30bf4 View commit details
    Browse the repository at this point in the history
  32. stop using SmartPtr

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    1d63869 View commit details
    Browse the repository at this point in the history
  33. Cached state values in the program state (ava-labs#840)

    * add cache
    
    * implement cache reads
    
    * actually cache reads
    
    * implement cache delete and handle borsch errors
    
    * use only one cache map
    
    * remove flushed bool
    
    * root of transactions by stateless merkledb
    
    * make root generation a function
    
    * preallocate memory for merkle array and consumebytes flag
    
    * add <*.code-workspace> to .gitignore and remove it from git commit
    
    * move root generation func to merkle package, tx root by items of [txID + result]
    
    * rebase & blk marshal/unmarshal & merkleroot to ids.ID
    
    * write benches for the merkle package
    
    * use crypto/rand, fix var name, report allocs
    
    * put the 10k bench back
    
    * pass config by parameter
    
    * happy clippy
    
    * borrow V
    
    * add TODO
    
    * Revert "pass config by parameter"
    
    This reverts commit 4aec589.
    
    * Revert "put the 10k bench back"
    
    This reverts commit 058d7e7.
    
    * Revert "use crypto/rand, fix var name, report allocs"
    
    This reverts commit 214005b.
    
    * Revert "write benches for the merkle package"
    
    This reverts commit 07993bf.
    
    * Revert "rebase & blk marshal/unmarshal & merkleroot to ids.ID"
    
    This reverts commit 7442836.
    
    * Revert "move root generation func to merkle package, tx root by items of [txID + result]"
    
    This reverts commit e551960.
    
    * Revert "add <*.code-workspace> to .gitignore and remove it from git commit"
    
    This reverts commit ce00289.
    
    * Revert "preallocate memory for merkle array and consumebytes flag"
    
    This reverts commit 68e49b6.
    
    * Revert "make root generation a function"
    
    This reverts commit aa44f97.
    
    * Revert "pass config by parameter"
    
    This reverts commit 4aec589.
    
    * Revert "move root generation func to merkle package, tx root by items of [txID + result]"
    
    This reverts commit e551960.
    
    * Revert "preallocate memory for merkle array and consumebytes flag"
    
    This reverts commit 68e49b6.
    
    * Revert "make root generation a function"
    
    This reverts commit aa44f97.
    
    * merge main!
    
    * merge imports
    
    ---------
    
    Co-authored-by: bianyuanop <[email protected]>
    Co-authored-by: Richard Pringle <[email protected]>
    3 people committed May 1, 2024
    Configuration menu
    Copy the full SHA
    49034b8 View commit details
    Browse the repository at this point in the history
  34. [x/programs] safe wrapper around C ffi interface (ava-labs#869)

    * macro skeleton
    
    * write macro for ffi-safe bindings
    
    * avoid panicking todo!
    
    Signed-off-by: Franfran <[email protected]>
    
    * remove unused arms
    
    ---------
    
    Signed-off-by: Franfran <[email protected]>
    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    87a6416 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    89905d4 View commit details
    Browse the repository at this point in the history
  36. fix tests

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    1d4d26e View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    a12d9ae View commit details
    Browse the repository at this point in the history
  38. cargo fmt

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    c5516bd View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    e8764d3 View commit details
    Browse the repository at this point in the history
  40. cargo fmt

    iFrostizz committed May 1, 2024
    Configuration menu
    Copy the full SHA
    24bcb84 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    d601a49 View commit details
    Browse the repository at this point in the history