Skip to content

Quarkchain: Root chain support POSW stake DecayByHeightAndTime #959

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ping-ke
Copy link
Contributor

@ping-ke ping-ke commented Mar 25, 2025

related issue: QuarkChain/pm#12

Added function and unit test for root chain to support PoSW stake decay to 50% after ENABLE_ROOT_POSW_STAKING_DECAY_TIMESTAMP.
The enable time (ENABLE_ROOT_POSW_STAKING_DECAY_TIMESTAMP in config) currenlty set to 1746060000 which is 2025-05-01 08:40:00. And this can be changed if we finalize.

How to test:

  1. Add related Unit test
  2. Deploy pyquarkchain and goquarkchain with devnet config, run related test
    • integrate with UI (devnet.quarkchain.io);
    • integrate eth_api (Ethereum compatible RPC)
    • check posw has enable as expected, and decay as expected
    • use metamask to transfer token
    • use remix to deploy contract and call contract
    • use quarkchain public rpc (38391) to get chain/block/transaction info
    • check posw has enable as expected, and decay as expected

@qzhodl
Copy link

qzhodl commented Mar 26, 2025

related issue: QuarkChain/pm#12

Added function and unit test for root chain to support PoSW stake decay by epoch. The enable time (ENABLE_ROOT_POSW_STAKING_DECAY_TIMESTAMP in config) currenlty set to 1746060000 which is 2025-05-01 08:40:00. And this can be changed if we finalize.

Do we plan to test this on the testnet? If so, what is the test plan?

@ping-ke ping-ke requested a review from qizhou March 31, 2025 15:26
@qzhodl
Copy link

qzhodl commented Apr 7, 2025

related issue: QuarkChain/pm#12
Added function and unit test for root chain to support PoSW stake decay by epoch. The enable time (ENABLE_ROOT_POSW_STAKING_DECAY_TIMESTAMP in config) currenlty set to 1746060000 which is 2025-05-01 08:40:00. And this can be changed if we finalize.

Do we plan to test this on the testnet? If so, what is the test plan?

How did you test it? Could you share the test steps and results?

@ping-ke
Copy link
Contributor Author

ping-ke commented Apr 8, 2025

related issue: QuarkChain/pm#12
Added function and unit test for root chain to support PoSW stake decay by epoch. The enable time (ENABLE_ROOT_POSW_STAKING_DECAY_TIMESTAMP in config) currenlty set to 1746060000 which is 2025-05-01 08:40:00. And this can be changed if we finalize.

Do we plan to test this on the testnet? If so, what is the test plan?

How did you test it? Could you share the test steps and results?

  1. Add related Unit test
  2. Deploy pyquarkchain and goquarkchain with devnet config, run related test
    • integrate with UI (devnet.quarkchain.io);
    • integrate eth_api (Ethereum compatible RPC)
    • check posw has enable as expected, and decay as expected
    • use metamask to transfer token
    • use remix to deploy contract and call contract
    • use quarkchain public rpc (38391) to get chain/block/transaction info
    • check posw has enable as expected, and decay as expected

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.

5 participants