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

R4R: Phase2 Development #34

Merged
merged 27 commits into from
Jul 3, 2020
Merged

R4R: Phase2 Development #34

merged 27 commits into from
Jul 3, 2020

Conversation

HaoyangLiu
Copy link
Contributor

@HaoyangLiu HaoyangLiu commented Jul 3, 2020

BUG FIXES

  • #9 Fix gov hub do not well handle when the target account is not contract

FEATURES

  • #7 Implement governance mechanism to update parameters in build-in system contract
  • #12 Implement token unbind mechanism
  • #21 Support miniToken cross chain transfer
  • #28 Add more events about token bind and transfer to facilitate reconciliation
  • #29 Implement a mechanism enable or disable channel through governance

IMPROVEMENTS

  • #3 Check sequence first to save gas for relayers
  • #13 Refactor cross chain architecture, communication layer: verify proof and manage sequence, application layer: focus on detailed application scenario
  • #14 Gov/Validator/Slash modification for refactor of cross chain mechanism
  • #19 Optimize rlp decoding and encoding library to save gas
  • #22 Add fail ack handler for transferOut
  • #24 Split tokenhub contract into tokenhub(for cross chain transfer) and tokenManager(for token bind and unbind)

HaoyangLiu and others added 27 commits July 3, 2020 15:44
* gov tokenhub parameters

* add gov for RelayerIncentivize and TendermintLightClient

* add unit test for gov

update abi

resolve comment

* fix testcase

Co-authored-by: fudongbai <[email protected]>
…hanism (#14)

* update bsc validator set

* update for encode/decode of gov/validator/slash

* update template

* update testcase

* update testcase

* fix cases

* update testcase

* update

* update
* fix lint

* fix compile error

* only keep single relayer fee

* update
* improve tokenhub test

* unify error code and fix failed unittests

* add oracle sequence

* modify miniToken checker
* add onlyInit to public write method

* tokenhub payable and rename event

* move all library to lib

* split tokenhub into two contract

* change sync to syn

* transfer relayFee to tokenHUb

* add case for payload header

Co-authored-by: fudongbai <[email protected]>
* mark some methods as read only

* update abis and detail bind failure reason
* simplify bind parameters verification

* fix bug in BNB refund amount calculation

* modify peggy amount calculation

* ensure tokenhub balance is less than locked amount
* add bindSuccess and bindFailure event

* enable more relayFee
* improve indent

* add additional improvements

* update genesis.json

* fix some other files

Co-authored-by: fudongbai <[email protected]>
* enable and disable channel through governance

* fix a bug in batch oracle
@HaoyangLiu HaoyangLiu changed the title WIP: Phase2 Development R4R: Phase2 Development Jul 3, 2020
@HaoyangLiu HaoyangLiu requested a review from unclezoro July 3, 2020 08:16
@HaoyangLiu HaoyangLiu requested a review from yutianwu July 3, 2020 08:16
@unclezoro unclezoro merged commit 10925ed into master Jul 3, 2020
@unclezoro unclezoro deleted the develop branch August 8, 2020 02:48
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.

4 participants