Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

change DeliverTx to take typed tx#360

Merged
codchen merged 4 commits intoevm-tempfrom
pass-sdk-tx-directly
Dec 4, 2023
Merged

change DeliverTx to take typed tx#360
codchen merged 4 commits intoevm-tempfrom
pass-sdk-tx-directly

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Nov 22, 2023

Describe your changes and provide context

  • To avoid multiple deserialization, as well as adding cached values to sdk.Tx
  • Add new acl constants for evm subprefixes
  • Add a new bank send method that doesn't automatically create accounts

Testing performed to validate your change

unit tests & local sei integration

@codchen codchen force-pushed the pass-sdk-tx-directly branch from 0284942 to bf7286e Compare November 22, 2023 16:22
@codchen codchen force-pushed the pass-sdk-tx-directly branch 2 times, most recently from 1bbf4bb to b43df68 Compare November 27, 2023 12:16
@codchen codchen force-pushed the pass-sdk-tx-directly branch from b43df68 to 598a024 Compare November 27, 2023 12:33
@codchen codchen force-pushed the pass-sdk-tx-directly branch from 1c24fd0 to 5071aeb Compare November 28, 2023 11:47
@codchen codchen requested review from jewei1997 and udpatil November 28, 2023 15:35
@stevenlanders
Copy link
Contributor

(@udpatil note this probably will affect OCC's deliverTxBatch interface when we eventually merge these together)

// writes do not happen if aborted/failed. This may have some
// performance benefits, but it'll be more difficult to get right.
anteCtx, msCache = app.cacheTxContext(ctx, txBytes)
anteCtx, msCache = app.cacheTxContext(ctx, checksum)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain why we use the SHA256 over the txBytes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jewei1997 in cacheTxContext, txBytes is only used to calculate its sha256, so we just pass in the calculated sha256 directly

@codchen codchen merged commit ef4fe84 into evm-temp Dec 4, 2023
@codchen codchen deleted the pass-sdk-tx-directly branch December 4, 2023 13:20
codchen added a commit that referenced this pull request Jan 5, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
codchen added a commit that referenced this pull request Jan 11, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
stevenlanders pushed a commit that referenced this pull request Jan 30, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Jan 31, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
stevenlanders pushed a commit that referenced this pull request Feb 6, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
stevenlanders pushed a commit that referenced this pull request Feb 8, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Feb 28, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Feb 28, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Mar 1, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Mar 4, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Mar 11, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Mar 14, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Mar 26, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Mar 26, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Mar 27, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Apr 16, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Apr 19, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
udpatil pushed a commit that referenced this pull request Apr 19, 2024
- To avoid multiple deserialization, as well as adding cached values to
sdk.Tx
- Add new acl constants for evm subprefixes
- Add a new bank send method that doesn't automatically create accounts
unit tests & local sei integration
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants