Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Under Settings > Key Managment > EVM Chain Accounts > Admin, we already have a button to “abandon all current transactions”.
When clicked, this button hits the /v2/keys/evm/chain endpoint. It will call the Reset method which ends up calling TxStore Abandon method. If we take a look at the EVM implementation, we can see that this button
UPDATES evm.txes
table to set as abandoned all transactions that areIN ('unconfirmed', 'in_progress', 'unstarted')
states for givenevm_chain_id
andfrom_address
.Despite some similarities, we need something different.
Through this PR we are adding a new button that optionally receives a
subject
as a text field and only drops the'unstarted'
txs. The key differences are that:DELETE
rather thanUPDATE
txs to'abandoned'
.'unstarted'
txs and not'unconfirmed'
or'in_progress'
ones.subject
to the API.Resources
Steps to Test
yarn && yarn setup
yarn start
Checklist
If this PR creates changes to the operator-ui itself, rather than tests, pipeline changes, etc. Then please create a changeset so that a new release is created, and the changelog is updated. See: https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md#what-is-a-changeset