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

consortium-v2: support consensus address change in profile contract #425

Merged

Conversation

minh-bq
Copy link
Contributor

@minh-bq minh-bq commented Mar 25, 2024

This commit adds a step to query profile id from consensus address to support the consensus change feature. It also switches the function call to get BLS public key to another function due to the breaking change in getId2Profile.

@minh-bq minh-bq force-pushed the feat/rotating-validator branch 2 times, most recently from 765982e to 178c382 Compare April 22, 2024 08:27
@minh-bq minh-bq force-pushed the fix/profile-consortium branch 3 times, most recently from 1c6dbf0 to 36b3f8e Compare May 9, 2024 10:10
This commit adds a step to query profile id from consensus address to support
the consensus change feature. It also switches the function call to get BLS
public key to another function due to the breaking change in getId2Profile.
Make the contract call a helper function to clean up the code.
The maxValidatorNumber returns a *big.Int as an output. In order to get the
output value, we must pass an **big.Int to the contratCall not *big.Int.

Co-authored-by: andicrypt <keepgoing0901@gmail.com>
@minh-bq minh-bq merged commit 0288c95 into axieinfinity:feat/rotating-validator May 20, 2024
1 check passed
@minh-bq minh-bq deleted the fix/profile-consortium branch May 20, 2024 09:34
minh-bq added a commit that referenced this pull request May 20, 2024
…425)

* consortium-v2: support consensus address change in profile contract

This commit adds a step to query profile id from consensus address to support
the consensus change feature. It also switches the function call to get BLS
public key to another function due to the breaking change in getId2Profile.

* consortium/contract: create contract call helper function

Make the contract call a helper function to clean up the code.

* consortium-v2: pass **big.Int into contract call's output

The maxValidatorNumber returns a *big.Int as an output. In order to get the
output value, we must pass an **big.Int to the contratCall not *big.Int.

Co-authored-by: andicrypt <keepgoing0901@gmail.com>

* consortium-v2: add unit tests for new contract call functions

---------

Co-authored-by: andicrypt <keepgoing0901@gmail.com>
minh-bq added a commit that referenced this pull request May 21, 2024
…425)

* consortium-v2: support consensus address change in profile contract

This commit adds a step to query profile id from consensus address to support
the consensus change feature. It also switches the function call to get BLS
public key to another function due to the breaking change in getId2Profile.

* consortium/contract: create contract call helper function

Make the contract call a helper function to clean up the code.

* consortium-v2: pass **big.Int into contract call's output

The maxValidatorNumber returns a *big.Int as an output. In order to get the
output value, we must pass an **big.Int to the contratCall not *big.Int.

Co-authored-by: andicrypt <keepgoing0901@gmail.com>

* consortium-v2: add unit tests for new contract call functions

---------

Co-authored-by: andicrypt <keepgoing0901@gmail.com>
minh-bq added a commit that referenced this pull request May 21, 2024
…425)

* consortium-v2: support consensus address change in profile contract

This commit adds a step to query profile id from consensus address to support
the consensus change feature. It also switches the function call to get BLS
public key to another function due to the breaking change in getId2Profile.

* consortium/contract: create contract call helper function

Make the contract call a helper function to clean up the code.

* consortium-v2: pass **big.Int into contract call's output

The maxValidatorNumber returns a *big.Int as an output. In order to get the
output value, we must pass an **big.Int to the contratCall not *big.Int.

Co-authored-by: andicrypt <keepgoing0901@gmail.com>

* consortium-v2: add unit tests for new contract call functions

---------

Co-authored-by: andicrypt <keepgoing0901@gmail.com>
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.

None yet

2 participants