Skip to content

Remove HitHandler and replace ActionHandler to StakeHandler#283

Merged
majecty merged 2 commits intoCodeChain-io:masterfrom
sgkim126:hit
Mar 30, 2020
Merged

Remove HitHandler and replace ActionHandler to StakeHandler#283
majecty merged 2 commits intoCodeChain-io:masterfrom
sgkim126:hit

Conversation

@sgkim126
Copy link
Contributor

@sgkim126 sgkim126 commented Mar 22, 2020

The hit handler is for testing custom actions. Since the Foundry will not support the custom actions, this handler is not necessary.

This PR also replaces the ActionHandler to the StakeHandler, but the handler id remains for SDK compatibility. Internally, the id is not used the transaction and RPC methods have the id fields.

@sgkim126 sgkim126 added the do-not-merge Do not merge this PR label Mar 22, 2020
Seulgi Kim added 2 commits March 27, 2020 00:07
The handler is for testing custom actions. Since the Foundry will not
support the custom actions, this handler is not necessary.

The ActionHandler will be removed after moving the stake states to the
top level.
This commit deplecates the action handlers and introduce StakeHandler to
handle the stake transactions.
The handler id in RPCs and custom transactions remain to make the
JavaScript SDK compatible.
@sgkim126 sgkim126 changed the title [WIP] Remove HitHandler Remove HitHandler Mar 26, 2020
@sgkim126 sgkim126 changed the title Remove HitHandler Remove HitHandler and replace ActionHandler to StakeHandler Mar 26, 2020
@sgkim126 sgkim126 removed the do-not-merge Do not merge this PR label Mar 26, 2020
@sgkim126 sgkim126 requested a review from majecty March 26, 2020 17:16
@sgkim126
Copy link
Contributor Author

@majecty FYI, the only transaction that depends on core crate is ReportDoubleVote transaction, in other words, what StakeHandler does can be implemented in the state crate except for the transaction.
I'll replace StakeHandler to DoubleVoteHandler in #291.

@majecty majecty merged commit 84a5b76 into CodeChain-io:master Mar 30, 2020
@sgkim126 sgkim126 deleted the hit branch March 30, 2020 02:59
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.

2 participants