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

feat(adapters): Add SignerExtractionAdapter [ENG-1916] #114

Merged
merged 3 commits into from
Sep 27, 2023

Conversation

nivasan1
Copy link
Contributor

In This PR

  • I added a new adapters directory (this contains any weird interfaces that we expect to change across chains
    • In this new directory I created the SignerExtractionAdapter which gets the chains + nonces from the tx
    • I took care to implement a sane Default, and create the interface to be amicable to the evmos tx-types (i.e both MsgEthereumTxs / EIP-712 signed cosmos-txs)
  • I added this object to the PriorityNonceMempool

TODOs

  • Notice, the signer extraction in checking the signers of a bundle (done by the AuctionFactory ) will need to be changed to use the SignerExtractionAdapter I'll do that in a PR on top of this

Copy link
Contributor

@davidterpay davidterpay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

)

type SignerData struct {
Signer sdk.AccAddress
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious to hear what you think, but I wonder if this needs to be an sdk.AccAddress or just a string. Also, we should probably bring this up to the cosmos sdk team. Ideally, we upstream these changes for others to also have, but for time being this works.

Copy link
Contributor

@davidterpay davidterpay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@davidterpay davidterpay added backport/v1.x.x Backport your PR to the v1.x.x release backport/v2.x.x Backport your PR to the v2.x.x release labels Sep 21, 2023
@davidterpay
Copy link
Contributor

idk why it commented twice. xD

…ane [ENG-1917] (#115)

* use SignerExtractionAdapter in the Factory

* feat(e2e): block sdk integration updates (#122)

* cherry-pick from injective

* remove transactions from app-side mempool on failed re-checktx
@nivasan1 nivasan1 merged commit 3abfde4 into main Sep 27, 2023
8 checks passed
@nivasan1 nivasan1 deleted the nv/signer-extraction-adapter branch September 27, 2023 15:08
mergify bot pushed a commit that referenced this pull request Sep 27, 2023
* add a signer-extraction-adapter

* linting

* feat(adapters/mev-lane):  Use the SignerExtractionAdapter in the Mev-Lane [ENG-1917] (#115)

* use SignerExtractionAdapter in the Factory

* feat(e2e): block sdk integration updates (#122)

* cherry-pick from injective

* remove transactions from app-side mempool on failed re-checktx

(cherry picked from commit 3abfde4)

# Conflicts:
#	Makefile
#	abci/abci_test.go
#	block/base/config.go
#	block/base/mempool.go
#	block/mempool_test.go
#	lanes/base/abci_test.go
#	lanes/base/mempool_test.go
#	lanes/mev/check_tx.go
#	lanes/mev/factory.go
#	lanes/mev/mev_test.go
#	tests/app/app.go
#	tests/integration/chain_setup.go
#	tests/integration/go.mod
#	tests/integration/go.sum
#	tests/integration/pob_suite.go
#	x/auction/ante/ante_test.go
mergify bot pushed a commit that referenced this pull request Sep 27, 2023
* add a signer-extraction-adapter

* linting

* feat(adapters/mev-lane):  Use the SignerExtractionAdapter in the Mev-Lane [ENG-1917] (#115)

* use SignerExtractionAdapter in the Factory

* feat(e2e): block sdk integration updates (#122)

* cherry-pick from injective

* remove transactions from app-side mempool on failed re-checktx

(cherry picked from commit 3abfde4)
nivasan1 added a commit that referenced this pull request Sep 27, 2023
* add a signer-extraction-adapter

* linting

* feat(adapters/mev-lane):  Use the SignerExtractionAdapter in the Mev-Lane [ENG-1917] (#115)

* use SignerExtractionAdapter in the Factory

* feat(e2e): block sdk integration updates (#122)

* cherry-pick from injective

* remove transactions from app-side mempool on failed re-checktx

(cherry picked from commit 3abfde4)

Co-authored-by: Nikhil Vasan <[email protected]>
nivasan1 added a commit that referenced this pull request Sep 27, 2023
* add a signer-extraction-adapter

* linting

* feat(adapters/mev-lane):  Use the SignerExtractionAdapter in the Mev-Lane [ENG-1917] (#115)

* use SignerExtractionAdapter in the Factory

* feat(e2e): block sdk integration updates (#122)

* cherry-pick from injective

* remove transactions from app-side mempool on failed re-checktx
nivasan1 added a commit that referenced this pull request Sep 27, 2023
* add a signer-extraction-adapter

* linting

* feat(adapters/mev-lane):  Use the SignerExtractionAdapter in the Mev-Lane [ENG-1917] (#115)

* use SignerExtractionAdapter in the Factory

* feat(e2e): block sdk integration updates (#122)

* cherry-pick from injective

* remove transactions from app-side mempool on failed re-checktx
nivasan1 added a commit that referenced this pull request Sep 27, 2023
* add a signer-extraction-adapter

* linting

* feat(adapters/mev-lane):  Use the SignerExtractionAdapter in the Mev-Lane [ENG-1917] (#115)

* use SignerExtractionAdapter in the Factory

* feat(e2e): block sdk integration updates (#122)

* cherry-pick from injective

* remove transactions from app-side mempool on failed re-checktx
nivasan1 added a commit that referenced this pull request Sep 27, 2023
* add a signer-extraction-adapter

* linting

* feat(adapters/mev-lane):  Use the SignerExtractionAdapter in the Mev-Lane [ENG-1917] (#115)

* use SignerExtractionAdapter in the Factory

* feat(e2e): block sdk integration updates (#122)

* cherry-pick from injective

* remove transactions from app-side mempool on failed re-checktx
nivasan1 added a commit that referenced this pull request Sep 27, 2023
* add a signer-extraction-adapter

* linting

* feat(adapters/mev-lane):  Use the SignerExtractionAdapter in the Mev-Lane [ENG-1917] (#115)

* use SignerExtractionAdapter in the Factory

* feat(e2e): block sdk integration updates (#122)

* cherry-pick from injective

* remove transactions from app-side mempool on failed re-checktx

Co-authored-by: Nikhil Vasan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v1.x.x Backport your PR to the v1.x.x release backport/v2.x.x Backport your PR to the v2.x.x release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants