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

feat: solana implementation #13

Draft
wants to merge 108 commits into
base: main
Choose a base branch
from
Draft

feat: solana implementation #13

wants to merge 108 commits into from

Commits on Feb 6, 2024

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

Commits on Feb 7, 2024

  1. Configuration menu
    Copy the full SHA
    28a3cac View commit details
    Browse the repository at this point in the history
  2. Add some todos

    eloylp committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    ee49734 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2024

  1. * Add auth-weighted as dependency (needed for types)

    * Add Solana account parsing tools.
    eloylp committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    83f97cc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7d60690 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    645e491 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f5f9212 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ca7d699 View commit details
    Browse the repository at this point in the history
  6. Solana code refactors (clippy)

    eloylp committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    6a2dbb9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    862a823 View commit details
    Browse the repository at this point in the history
  8. Complete comment

    eloylp committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    c818eaf View commit details
    Browse the repository at this point in the history
  9. Formatting

    eloylp committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    1c47e32 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. Solana verifier (#5)

    * Add solana verification functionality
    
    * Add unit tests to Solana message verifier
    
    * Refactor
    
    * Solana msg verifier reshape (#4)
    
    * remove comment
    
    * Use Solana types from Solana crates
    
    We were using hand crafted Solana types for interacting with RPC.
    
    * refactor: make clippy happy
    
    * Add some traces to Solana msg verifier
    
    * Remove outdated todos
    
    * refactor: re-use already calculated variable
    
    * Clarify test code usage
    
    * Solana msg verifier, try till one program log matches gw event
    
    * Add note to axelar to review when in PR
    
    * fail if tx_id is not found in signatures
    
    * Always fail on chain at handler level
    
    * Handle errors in case a tx cannot be found (finish the handler)
    
    * Remove commented code
    
    * Use original type from solana-axelar repo
    
    * Ensure that we verify sender address in sol msg verifier
    
    * Do not panic on PartialEq
    
    * refactor: clippy
    
    * remove no longer used code
    
    * Add more tests definition to solana msg verify iteration logic
    
    ---------
    
    Co-authored-by: eloylp <[email protected]>
    ctoyan and eloylp authored Feb 22, 2024
    Configuration menu
    Copy the full SHA
    a6cc4ae View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

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

Commits on Feb 24, 2024

  1. Configuration menu
    Copy the full SHA
    e96960b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    914f52c View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2024

  1. Ignore exploratory tests

    eloylp committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    1358675 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. Configuration menu
    Copy the full SHA
    30b3b73 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f654716 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. Fix clippy

    eloylp committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    259af2e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fd81c80 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dd0674d View commit details
    Browse the repository at this point in the history
  4. remove non used tests

    Were only intended during development to understand the API.
    eloylp committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    33782a5 View commit details
    Browse the repository at this point in the history
  5. replace unwrap by let-else syntax

    Co-authored-by: tilacog <[email protected]>
    eloylp and tilacog authored Feb 27, 2024
    Configuration menu
    Copy the full SHA
    3c12598 View commit details
    Browse the repository at this point in the history
  6. Use let if syntax

    Co-authored-by: tilacog <[email protected]>
    eloylp and tilacog authored Feb 27, 2024
    Configuration menu
    Copy the full SHA
    357bc39 View commit details
    Browse the repository at this point in the history
  7. Properly log error message

    eloylp committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    db24220 View commit details
    Browse the repository at this point in the history
  8. Use let if syntax

    Co-authored-by: tilacog <[email protected]>
    eloylp and tilacog authored Feb 27, 2024
    Configuration menu
    Copy the full SHA
    42bee6d View commit details
    Browse the repository at this point in the history
  9. Remove redundant comparison function

    Co-authored-by: tilacog <[email protected]>
    eloylp and tilacog authored Feb 27, 2024
    Configuration menu
    Copy the full SHA
    4668594 View commit details
    Browse the repository at this point in the history
  10. clarify log message

    Co-authored-by: tilacog <[email protected]>
    eloylp and tilacog authored Feb 27, 2024
    Configuration menu
    Copy the full SHA
    c9acc10 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e3c23c2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    092ef79 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e1f409f View commit details
    Browse the repository at this point in the history
  14. remove dead code

    eloylp committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    1f827b0 View commit details
    Browse the repository at this point in the history
  15. use let/else syntax

    Co-authored-by: tilacog <[email protected]>
    eloylp and tilacog authored Feb 27, 2024
    Configuration menu
    Copy the full SHA
    b6fa596 View commit details
    Browse the repository at this point in the history
  16. Merge branch 'add-solana-worker-set-verifier' of github.com:eigerco/a…

    …xelar-amplifier into add-solana-worker-set-verifier
    eloylp committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    d6cf01d View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    ea250b2 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

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

Commits on Feb 29, 2024

  1. Merge pull request #4 from eigerco/add-solana-worker-set-verifier

    Add initial POC of Solana workerset verifier
    eloylp authored Feb 29, 2024
    Configuration menu
    Copy the full SHA
    d163e00 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2024

  1. Configuration menu
    Copy the full SHA
    c8ce699 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a51c0fb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dd3356e View commit details
    Browse the repository at this point in the history
  4. Fix/improve msg verifier logic

    Now we iterate per each message, doing the necessary RPC calls and making the vote decision. The RPC client is now caching requested transactions.
    
    Per each message, we search in all sol tx logs, as each tx can hold multiple messages.
    eloylp committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    880fcea View commit details
    Browse the repository at this point in the history
  5. clippy

    eloylp committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    5db9875 View commit details
    Browse the repository at this point in the history
  6. Remove dead code

    eloylp committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    509a3a3 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Configuration menu
    Copy the full SHA
    023d8da View commit details
    Browse the repository at this point in the history
  2. Merge pull request #9 from eigerco/sol-msg-verifier-ignore-other-chai…

    …n-events
    
    sol msg verifier ignore other chain events
    eloylp authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    cd5f181 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a92ee69 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7c70659 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dce45b0 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Simplify iterator use in msg processing

    Co-authored-by: tilacog <[email protected]>
    eloylp and tilacog authored Mar 5, 2024
    Configuration menu
    Copy the full SHA
    41a426b View commit details
    Browse the repository at this point in the history
  2. Merge pull request #10 from eigerco/fix-msg-verifier-logic-cache

    Fix sol msg verifier logic (and add cache)
    eloylp authored Mar 5, 2024
    Configuration menu
    Copy the full SHA
    010d752 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Configuration menu
    Copy the full SHA
    e16b55a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #11 from eigerco/solana-sync-fork

    fix: sync solana branch with upstream main
    eloylp authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    0f911a3 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

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

Commits on Apr 19, 2024

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

Commits on Apr 26, 2024

  1. Merge pull request #15 from eigerco/solana-sync-1904

    feat: sync solana branch with upstream
    eloylp authored Apr 26, 2024
    Configuration menu
    Copy the full SHA
    6917228 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. Configuration menu
    Copy the full SHA
    0c3c7cf View commit details
    Browse the repository at this point in the history
  2. Propagate errors, do not panic

    eloylp committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    12c37e1 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Rename encoding method

    eloylp committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    3812bbe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    366d837 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f7f42ee View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1766b3b View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. Align encoding integration with latest changes in encoding crate

    - Use the new crate renaming `axlelar-rkyv-encoding`
    - Import the create directly from the development branch
    - Use now public constants
    - Change to little endian everywhere
    eloylp committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    23be585 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a30bd56 View commit details
    Browse the repository at this point in the history
  3. Fix code comment

    eloylp committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    c38f997 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. Configuration menu
    Copy the full SHA
    6ec5af1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    236a43e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    394afe7 View commit details
    Browse the repository at this point in the history
  4. improve error message

    eloylp committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    12d3991 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

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

Commits on Jun 20, 2024

  1. feat: solana code adjustments (after upstream sync) (#24)

    * Align APIs with latest upstream changes
    
    * refactor: align nomenclature
    
    * Add unit test for Solana verify_verifier_set()
    
    * Add some tracing to Solana verify_verifier_set()
    
    * refactor: remove dead code
    
    * Add conditional compilation for an only test function
    
    * refactor: only iterate over values
    
    * refactor: make non used field explicit
    
    * refactor: use slices instead objects
    
    * prevent overflow in test util
    
    * refactor: use slices instead of Vec
    
    * refactor: rename module following repo naming
    
    * Make deps use http instead of ssh
    
    * remove non needed comment
    
    * refactor: rename module following repo naming
    
    * refactor: prefer slices over objects
    
    Co-authored-by: tilacog <[email protected]>
    
    * Add unwrap serialisation comment
    
    * Compare addresses using raw bytes
    
    * refactor: extend variable naming
    
    * Make logs more strutured logging friendly
    
    * refactor: use let-else
    
    ---------
    
    Co-authored-by: tilacog <[email protected]>
    eloylp and tilacog authored Jun 20, 2024
    Configuration menu
    Copy the full SHA
    e923499 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0510e21 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

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

Commits on Jun 28, 2024

  1. Configuration menu
    Copy the full SHA
    5523305 View commit details
    Browse the repository at this point in the history
  2. refactor: fix naming

    eloylp committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    b5516b1 View commit details
    Browse the repository at this point in the history
  3. Add configurable rpc_timeout for Solana handlers

    Also, add related tests and docs
    eloylp committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    2fe8066 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Merge pull request #25 from eigerco/ampd-amendements

    feat: ampd amendments (misc)
    eloylp authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    6860bfe View commit details
    Browse the repository at this point in the history
  2. chore: fix warnings

    tilacog committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    31e5553 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #29 from eigerco/fix-warnings

    chore: fix warnings
    tilacog authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    3027da4 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Configuration menu
    Copy the full SHA
    aa75800 View commit details
    Browse the repository at this point in the history
  2. Update Cargo.toml Solana deps

    eloylp committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    2473630 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #30 from eigerco/ampd-codebase-update-deps

    feat: ampd codebase update deps
    eloylp authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    d423b28 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7c0e2fb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    83939ae View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    184ac3b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3659af1 View commit details
    Browse the repository at this point in the history
  8. remove unusued import

    eloylp committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    0814a1c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    aa9e3ab View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

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

Commits on Jul 16, 2024

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

Commits on Jul 29, 2024

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

Commits on Jul 30, 2024

  1. Merge with upstream

    eloylp committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    1a1f072 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. Merge pull request #33 from eigerco/update-rkyv-multisig

    feat: update multisig-prover with latest rkyv crate API updates
    eloylp authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    08c4878 View commit details
    Browse the repository at this point in the history
  2. fix: boyscout: remove trailing white spaces

    Cargo check was failing due to trailing white spaces.
    
    Signed-off-by: Guilherme Felipe da Silva <[email protected]>
    frenzox committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    817d406 View commit details
    Browse the repository at this point in the history
  3. chore: use updated u128 rkvy

    Signed-off-by: Guilherme Felipe da Silva <[email protected]>
    frenzox committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    34b730b View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    dbe3dc5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b53561 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ee90da View commit details
    Browse the repository at this point in the history
  4. refactor: Use the provided add_27 func for ECDSA non-recoverable to r…

    …ecoverable conversions
    eloylp committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    e30a132 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0958c5e View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Merge pull request #36 from eigerco/fix-corrective-pr

    refactor: corrective PR after upstream sync
    eloylp authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    bfaaeee View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. fix: ampd dependencies update (gateway, rkyv) (#37)

    * update ampd handlers tomatch new Api's (WIP)
    
    * fix: comparison logic
    
    * fix comaprison (not allocate string)
    
    * fix: Be consistent in little endian
    
    * fix: commit missed files
    
    * fix: unify rkyv dep at workspace level
    
    * fix: avoid unwrap
    eloylp authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    86eb3c5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c71197d View commit details
    Browse the repository at this point in the history
  3. refactor: non used dep (#39)

    eloylp authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    85af2e4 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Update solana deps (#40)

    eloylp authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    76bd036 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

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

Commits on Sep 23, 2024

  1. feat: update rkyv encoding & add solana base58 address verification (#42

    )
    
    * feat: solana base58 address verifier
    * feat: update the verifier set calculation
    roberts-pumpurs authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    a3b8b13 View commit details
    Browse the repository at this point in the history