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 Avalanche Warp Messaging Support #57

Merged
merged 58 commits into from
Mar 20, 2023
Merged

Add Avalanche Warp Messaging Support #57

merged 58 commits into from
Mar 20, 2023

Commits on Feb 26, 2023

  1. add warp todos

    patrick-ogrady committed Feb 26, 2023
    Configuration menu
    Copy the full SHA
    f9bb66a View commit details
    Browse the repository at this point in the history
  2. nits

    patrick-ogrady committed Feb 26, 2023
    Configuration menu
    Copy the full SHA
    309ae8e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e5e477b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6c37875 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a91a320 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7fa2d02 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    adf0fdf View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d6a673f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e7ed847 View commit details
    Browse the repository at this point in the history
  10. update README

    patrick-ogrady committed Feb 26, 2023
    Configuration menu
    Copy the full SHA
    4b551fa View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5a2542a View commit details
    Browse the repository at this point in the history
  12. Add network multi-plexing (#59)

    * start work on network manager
    
    * more progress
    
    * making progress with the wrapped sender
    
    * handle first method in request manager
    
    * finish handler
    
    * add multi-plexing over network
    patrick-ogrady authored Feb 26, 2023
    Configuration menu
    Copy the full SHA
    205eb0b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    67b2e4f View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. Configuration menu
    Copy the full SHA
    92496ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    06f5959 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9803231 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    45094e0 View commit details
    Browse the repository at this point in the history
  5. update readme

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    1ce54f3 View commit details
    Browse the repository at this point in the history
  6. fix mocks

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    f18b7a5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    92f4410 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    07f8042 View commit details
    Browse the repository at this point in the history
  9. move ChainID

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    925efc0 View commit details
    Browse the repository at this point in the history
  10. update interfaces

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    480046f View commit details
    Browse the repository at this point in the history
  11. add to README

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    355c1a0 View commit details
    Browse the repository at this point in the history
  12. add license

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    60576d2 View commit details
    Browse the repository at this point in the history
  13. more lint

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    686c47a View commit details
    Browse the repository at this point in the history
  14. lint passing

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    3ececce View commit details
    Browse the repository at this point in the history
  15. update mocks

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    167191a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1cba048 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    8231d1a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    51a5ceb View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    c8161d2 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    3e12540 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    3a355be View commit details
    Browse the repository at this point in the history
  22. update rules

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    211e2d6 View commit details
    Browse the repository at this point in the history
  23. fix tokenvm lint

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    6fd498a View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    9f14f5c View commit details
    Browse the repository at this point in the history
  25. integration passing

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    107d557 View commit details
    Browse the repository at this point in the history
  26. fix load test

    patrick-ogrady committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    a456c96 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    2d1d218 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    6dd330d View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. Configuration menu
    Copy the full SHA
    f81b38c View commit details
    Browse the repository at this point in the history
  2. fix merge

    patrick-ogrady committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    2045636 View commit details
    Browse the repository at this point in the history
  3. fix merge part 2

    patrick-ogrady committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    2def507 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. Implement Simple Warp Messages on TokenVM (#62)

    * progress on import
    
    * add warp transfer object
    
    * add quick new assetID
    
    * add reward allocation
    
    * update incorrect configuration
    
    * add clear callout for handling fund return
    
    * read signers from signature
    
    * DoS vuln to mark block as invalid with incorrect warp
    
    * add more TODOs
    
    * add another todo
    
    * add to README
    
    * add more TODOs
    
    * add todo for dos
    
    * add another note
    
    * add stub for build with context
    
    * update action interface to accept boolean of warp readiness
    
    * wait for warp verification in block
    
    * cleanup build/verification logic
    
    * move warp message around
    
    * making more progress
    
    * cleanup tx verification
    
    * update block handling for warp
    
    * handle basic re-signing
    
    * fetch missing keys if we don't have them
    
    * chain processor passing
    
    * add note about StateMapping
    
    * fix empty key issue
    
    * limit fetch frequency for warp manager
    
    * fix vm interface
    
    * allow type parser to take 2 args
    
    * pass warp message to unmarshal
    
    * use state manager
    
    * fix unchecked err
    
    * add base fee for warp
    
    * naming
    
    * update actions
    
    * continuing to cleanup old approach
    
    * update get asset func
    
    * overhaul network manager (use unique requestIDs per nodeID)
    
    * update mocks
    
    * update type parser to have extra bool
    
    * add warp check to registry
    
    * remove interface changes
    
    * add small blurb to readme
    
    * update registry with new warp check
    
    * more progress
    
    * update WarpID
    
    * only store warp info if successful
    
    * add loan storage
    
    * import compiles
    
    * add some pre-verification
    
    * override sourceID
    
    * store native supply
    
    * add native supply tracking
    
    * add import/export to registry and metrics
    
    * update required interfaces
    
    * protect against fee overflow
    
    * fix lint
    
    * update tokenvm linting
    
    * pass lint
    
    * integration passing
    
    * fix lint
    
    * Add tokenvm warp e2e tests (Part 1) (#77)
    
    * startup 2 subnets
    
    * make startup more robust
    
    * fix node shutdown issue
    
    * e2e progress
    
    * ensure warp message is initialized after emission
    
    * progress
    
    * progress
    
    * add workflow timeouts
    
    * add missing lock release
    
    * cleanup tx init
    
    * update digest
    
    * fix warp message test
    
    * handle empty warp message
    
    * update verification override
    
    * add export test
    
    * add loan check
    
    * remove ability to export warped asset that isn't a return
    
    * add to readme
    
    * fix lint
    
    * add logging in skip case
    
    * use custom ANR
    
    * overhaul test
    
    * up size of unit test runner
    
    * add more logs
    
    * use fixed bytes for decode
    
    * more debugging
    
    * fix signature fetch
    
    * blocked on waiting for context
    
    * get to warp verify
    
    * more logging
    
    * more lint
    
    * add more correctness checks on imported asset
    
    * fix integration test
    
    * fix e2e balance check
    
    * more incorrect vars
    
    * passing new tests
    
    * add double-warp test
    
    * remove incorrect fail case
    
    * make logging less verbose
    
    * update bootstrap readiness logic
    
    * improve logging
    
    * increase timeout
    
    * Add tokenvm e2e tests (part 2) (#79)
    
    * add first part of tests
    
    * round-trip test
    
    * lint
    patrick-ogrady authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    7c40c94 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    376f324 View commit details
    Browse the repository at this point in the history
  3. update README

    patrick-ogrady committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    4f28824 View commit details
    Browse the repository at this point in the history
  4. add more TODOs

    patrick-ogrady committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    59e6c31 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    734a556 View commit details
    Browse the repository at this point in the history
  6. Add support for "swap in" (#80)

    * add parse to import
    
    * add scaffold for swap in
    
    * RFQ for swap
    
    * cleanup import
    
    * use the optional codec
    
    * add fields to export
    
    * add swap in test
    
    * unify swap validity check params
    
    * remove more println
    
    * tweak fees
    
    * fix lint
    
    * more lint
    patrick-ogrady authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    b74061d View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2023

  1. Update ANR (#82)

    * update ANR
    
    * fix logging
    
    * ensure server data is updated
    
    * update ANR version
    patrick-ogrady authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    d348d1b View commit details
    Browse the repository at this point in the history
  2. add TODO

    patrick-ogrady committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    79779b1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1f6b8d9 View commit details
    Browse the repository at this point in the history
  4. Update warpID (#85)

    * modify storage
    
    * warpID -> warpPayloadID
    
    * remove *WarpMessage
    
    * update actions
    patrick-ogrady authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    bf9b3d9 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2023

  1. Update token-cli (#86)

    * work on new methods
    
    * improve naming
    
    * remove old options
    
    * keep workdir
    
    * progress
    
    * add basic storage
    
    * implement import key
    
    * update key to load all
    
    * cleanup assets
    
    * cleanup key
    
    * cleanup chain
    
    * start action migration
    
    * cleanup transfer
    
    * move create asset
    
    * remove mint asset
    
    * complete close order
    
    * move create_order
    
    * migrate all transactions
    
    * add support for import asset parse
    
    * add parsing for export
    
    * prep import asset cmd
    
    * add export support
    
    * populate export action
    
    * add auto-return support
    
    * update gitignore
    
    * fix scripts run
    
    * fix lint
    
    * emit outputs after cluster spun up
    
    * add powered by hypersdk
    
    * make smaller
    
    * more testing
    
    * keep under
    
    * more tweaks
    
    * add line break
    
    * more down
    
    * add at end
    
    * little bigger
    
    * break apart
    
    * update storage and added TODO
    
    * use first uri for now
    
    * add another comment
    
    * add multi-chain support
    
    * add support for custom db path
    
    * add duplicate protection
    
    * close database early if not needed
    
    * silence included error
    
    * nit
    
    * add string util
    
    * all working
    patrick-ogrady authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    6199b3b View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2023

  1. Enforce Boolean Warp Verification Results (#92)

    * migrate actions to use boolean for warp verification
    
    * update actions interface
    
    * populate error check
    
    * update chain builder with bool
    
    * nits
    
    * more nits
    
    * add note about warp verification
    
    * add note about max
    
    * fix integration tests
    
    * make warp result checking more effective
    patrick-ogrady authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    b3b2925 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2023

  1. update ANR (#95)

    patrick-ogrady authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    99a3472 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2023

  1. Finalize AWM Doc Updates + Demo (#93)

    * starting main README
    
    * make progress on main README
    
    * updating README
    
    * continue cleaning docs
    
    * progress on explanation
    
    * add warp image
    
    * specify all things that must be handled
    
    * finish explanation
    
    * cleanup wording on describing what hypersdk does
    
    * add result description
    
    * finish main README
    
    * more progress
    
    * finish docs
    
    * fix link
    
    * prompt for chain during watch
    
    * use prompt chain on export
    
    * automatically perform import
    
    * submit dummy transaction if too old
    
    * send dummy transaction automatically
    
    * return current chainID in defaultActor
    
    * fix key usage
    
    * fix builder (drop expired warp)
    
    * cleanup chainID logs
    
    * update demo for mint-trade
    
    * add demo for export
    
    * fix lint
    patrick-ogrady authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    8141f8b View commit details
    Browse the repository at this point in the history