Skip to content

[oracle][dex] Refactor dex ante handler into top level app, and add oracle gasless tx for first tx in voting window#59

Merged
udpatil merged 3 commits intomasterfrom
oracle_gasless
Jun 28, 2022
Merged

[oracle][dex] Refactor dex ante handler into top level app, and add oracle gasless tx for first tx in voting window#59
udpatil merged 3 commits intomasterfrom
oracle_gasless

Conversation

@udpatil
Copy link
Collaborator

@udpatil udpatil commented Jun 26, 2022

This refactors the gasless ante handler, and we want to include oracle gasless voting too.
Additionally, I refactored the gasless wrapper decorator to be build into the gasless wrapper since otherwise we'd incur two checks for gasless TX

Oracle gasless behavior summary
Prevote: gasless allowed if the validator hasn't already submitted a prevote in the voting window. This means feeder or validator will be able to make one gasless prevote tx
Vote: gasless allowed if validator hasnt already submitted a vote in the voting window. ALSO there needs to be a prevote from the previous window present in store (implying the vote can potentially be valid)

Combined: TODO, will add in future PR

)

type GaslessDecorator struct {
wrapped sdk.AnteDecorator
Copy link
Collaborator

Choose a reason for hiding this comment

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

we might want to make this a list, since it's possible that some future cosmos version adds a new builtin ante handler that we want to skip for gasless transactions

@udpatil udpatil force-pushed the oracle_gasless branch 2 times, most recently from dcec93e to c829ca3 Compare June 27, 2022 23:04
@udpatil udpatil merged commit 50f2f7d into master Jun 28, 2022
@udpatil udpatil deleted the oracle_gasless branch June 28, 2022 17:28
masih pushed a commit that referenced this pull request Sep 26, 2025
* Allow passing ctx in return values of submsg handler (#52)

* Revert "Revert #52 and #53 (#56)"

This reverts commit 007b839.
masih pushed a commit that referenced this pull request Sep 26, 2025
masih pushed a commit that referenced this pull request Sep 29, 2025
## Describe your changes and provide context
This adds the gov proposal type for wasm dependency mapping updates.
## Testing performed to validate your change
Based the changes off of this PR:
https://github.com/sei-protocol/sei-cosmos/pull/33/files
masih pushed a commit that referenced this pull request Sep 30, 2025
## Describe your changes and provide context
This adds the gov proposal type for wasm dependency mapping updates.
## Testing performed to validate your change
Based the changes off of this PR:
https://github.com/sei-protocol/sei-cosmos/pull/33/files
masih pushed a commit that referenced this pull request Oct 1, 2025
* Set unsafe bypass to false

* improve errors

* sd

* Sd

* sd
masih pushed a commit that referenced this pull request Oct 9, 2025
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.

3 participants