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

fix: sync solana branch with upstream main #11

Merged
merged 55 commits into from
Mar 6, 2024
Merged

Conversation

eloylp
Copy link
Member

@eloylp eloylp commented Mar 6, 2024

The procedure for syncing our solana branch with the upstream main:

  1. Created this PR solana-sync-fork branch.
  2. git merge origin/main
  3. Solve the conflicts and fix our code to match latest updates.
  4. Now we need to merge this PR (solana-sync-fork) into solana branch.

Review tips:

  • Use file explorer to only check our handlers code (msg verfiier, worker set)
  • check this compare is OK and we are not altering anything but our logic.

haiyizxx and others added 30 commits January 17, 2024 13:13
* fix: use correct key id to generate pub key

* add logging
)

* feat: add expiry field of u64 to SigningStarted event

* fix: correct a comment word on contracts/multisig/src/state.rs

Co-authored-by: Sammy <[email protected]>

* fix: update attribute name of expiry field

Co-authored-by: Sammy <[email protected]>

---------

Co-authored-by: Sammy <[email protected]>
* Update connection_router.md: add note for the second diagram

* Update connection_router.md: include brief explanation of main entities

* Update overview.md: update Message struct

* docs: edit notes on connection_router.md, add CrossChainId struct to overview.md

* fix: remove entity structure from connection_router.md
…network#245)

* chore: work in progress - removing grace from multisig config

* fix: remove grace period from contract.rs, update env block change to reflect test parameters

* fix: remove "before expiry" from comment

Co-authored-by: CJ Cobb <[email protected]>

---------

Co-authored-by: CJ Cobb <[email protected]>
…rk#231)

* add query to check message consensus

* add query to get worker set consensus and rename functions

* update is verified query with statuses query

* cleanup and rename

* add unit test

* review

* fix typo

* review comments
* chore: work in progress - removing grace from multisig config

* fix: remove grace period from contract.rs, update env block change to reflect test parameters

* feat: add skip expire signing session to multisig.rs

* fix: remove unused tracing info_span crate

* test: add should_not_handle_event_if_session_expired to multisig.rs
* docs: update voting_verifier.md

* docs: remove entity structure code and move description to the top

* update: doc/src/contracts/voting_verifier.md

Co-authored-by: CJ Cobb <[email protected]>

* fix: added link to prover sequence diagram

* fix: change link from weblink to relative

---------

Co-authored-by: CJ Cobb <[email protected]>
… rotations (axelarnetwork#235)

* fix(multisig-prover): Don't prevent signing due to multiple rotations

* feat(save_next_worker_set): logic to handle multiple error types

* refactor(worker_set_cannot_be_updated_again_while_pending_worker_is_not_yet_confirmed): test breakdown and add comments

* fix: update create_new_workers_vec to a more functional approach

Co-authored-by: Christian Gorenflo <[email protected]>

* fix: update update_registry_and_construct_proof's input names

* fix: remove redundant variable assignment for construct_proof_and_sign

* fix: update function name from process_poll to execute_worker_set_poll

Co-authored-by: Christian Gorenflo <[email protected]>

* fix: first test_utils::execute_worker_set_poll comment update and second_wave_of_new_workers inlining

* fix: update comments for test_utils::update_registry_and_construct_proof

* refactor: remove redundant function call comments, inline worker vector creation

* refactor: comment update for first_wave_of_new_workers and first_wave_worker_set

* refactor: comment update for first update_registry_and_construct_proof

* refactor: move worker set creation into execute_worker_set_poll

---------

Co-authored-by: maancham <[email protected]>
Co-authored-by: Christian Gorenflo <[email protected]>
…stry (axelarnetwork#247)

* feat: add denounce chain support ability to service registry

* test: add denounce_chain_support testcase

* test: add more unit tests for different paths

* test: two more unit tests for unregistered worker and service

* refactor: add test comments, refactor declare and denounce

* fix: address lint issue
…k#254)

* feat(ampd): add timeout to the EVM/SUI JSON-RPC clients

* fix clippy
* add signed address to message

* fix message format

* fix unit tests

* add unit test

* add signature to ampd pubkey registration

* fix lint

* add comment
…ork#255)

* prevent duplicate public keys

* fix tests

* add unit test

* add index
* refactor: migrate base service registry test setup to test utils

* refactor: pass in governance as input to instantiate_contract, change mut app to app

* refactor: add ServiceRegistryContract and update service registry test formats

* fix: handle syntax and format issues after conflict resolution

* feat: add contract query abstraction to service registry tests

* feat: add execution abstraction for register contract

* feat: add contract error type to train, migrate app.execute_contract to service.execute

* fix: change Err type to axelar_wasm_std and migrate remaining app.execute_contract instances

* Update Cargo.toml

* refactor: distinction between execute and execute_with_funds
…aming for building main branch ecr image (axelarnetwork#269)

* chore(infra): add a seed job for building releases for ampd and fix naming for building main branch ecr image

* chore: add codeowners for infra and devops related files

* - fix versions for build jobs

Co-authored-by: Milap Sheth <[email protected]>

---------

Co-authored-by: Milap Sheth <[email protected]>
* fix(ampd): skip events from unknown contracts
* doc: initiate service_registry.md with summary, interface, and graph diagram

* doc: add sequence diagram for service_registry.md

* doc: update service_registry.md based on reviews
kalidax and others added 18 commits February 16, 2024 22:40
---------

Co-authored-by: Talal Ashraf <[email protected]>
* feat(ampd): retry event handling with timeout and max attempts
…outer with connection-router-api (axelarnetwork#273)

* refactor(connection-router-api): replace dependencies of connection-router with connection-router-api

* fix linting
* refactor: base voting verifier tests template

* refactor: finish voting verifier tests migration

* fix: handle lint issue

* refactor: change config name to fixture

* refactor: handle TestFixture name typo
* refactor: connection router picks up gateway-api

* cargo sort
* refactor: change gateway get messages query name

* doc: one liner comment for the query
…ck querier `update_wasm()` instead (axelarnetwork#280)

* remove use of mock contracts from some tests

* update more unit tests to use mock querier instead of mock contracts

* move more unit tests

* remove unused files

* remove duplicate function

* tests cleanup
* doc: write gateway.md

* docs: address reviews (fix wording)
…rnetwork#282)

* refactor: remove block height log after broadcasting from ampd

* fix: address lint issues with unused package and height variable

* fix: bring back tx_hash log, remove height from TxResponse
…proper duplicate check (axelarnetwork#284)

* validate public key in tryfrom trait

* update unit tests and cleanup

* feedback

* feedback

* merged two error messages

---------

Co-authored-by: Sammy <[email protected]>
…xelarnetwork#287)

* update signature verification to throw error when false

* add unit test

* inverted checks

* update unit test assert
@eloylp eloylp changed the base branch from starknet to solana March 6, 2024 10:27
@eloylp eloylp marked this pull request as ready for review March 6, 2024 10:32
@eloylp eloylp changed the title Sync solana branch with upstream main fix: Sync solana branch with upstream main Mar 6, 2024
@eloylp eloylp closed this Mar 6, 2024
@eloylp eloylp reopened this Mar 6, 2024
@eloylp eloylp changed the title fix: Sync solana branch with upstream main fix: sync solana branch with upstream main Mar 6, 2024
@eloylp eloylp closed this Mar 6, 2024
@eloylp eloylp reopened this Mar 6, 2024
Copy link
Member

@roberts-pumpurs roberts-pumpurs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

obviously hard to tell why and which parts have been altered but if the tests pass then it's fine imo

@eloylp
Copy link
Member Author

eloylp commented Mar 6, 2024

obviously hard to tell why and which parts have been altered but if the tests pass then it's fine imo

@roberts-ivanovs Yeah 😓 , tests were executed locally all seems to be fine. The best way i can think of is to check the solana related files in our end and also check this compare (sorry i did not provided previously, added to description).

@eloylp eloylp merged commit 0f911a3 into solana Mar 6, 2024
1 of 15 checks passed
@eloylp eloylp deleted the solana-sync-fork branch March 6, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.