Skip to content

Refactor wasmbinding to use message decorator#245

Merged
LCyson merged 2 commits intomasterfrom
wasmd-messager
Sep 12, 2022
Merged

Refactor wasmbinding to use message decorator#245
LCyson merged 2 commits intomasterfrom
wasmd-messager

Conversation

@LCyson
Copy link
Contributor

@LCyson LCyson commented Sep 12, 2022

This PR removes the wasm encoder and uses the wasm message decorator instead. This change will make sei-chain able to use more state variables in wasm msg processing (i.e. sdk context and other modules' keeper in this case).

Tested tokenfactory create & mint from vortex contract e2e locally.

Copy link
Contributor

@Kbhat1 Kbhat1 left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@LCyson LCyson merged commit 53e4b48 into master Sep 12, 2022
udpatil pushed a commit that referenced this pull request Oct 13, 2022
* Refactor wasmbinding to use message decorator

* Fix fmt

Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>
udpatil pushed a commit that referenced this pull request Oct 13, 2022
* Refactor wasmbinding to use message decorator

* Fix fmt

Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>
udpatil pushed a commit that referenced this pull request Oct 19, 2022
* Refactor wasmbinding to use message decorator

* Fix fmt

Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>
udpatil added a commit that referenced this pull request Oct 19, 2022
* Refactor wasmbinding to use message decorator (#245)

* Refactor wasmbinding to use message decorator

* Fix fmt

Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>

* [wasmbinding] Add message handler and dep validator

* remove todo

* [wasmbinding] Add query dep validation and remove dependency disabling

* added query validation and tests

* go mod tidy

* lint

* lint

Co-authored-by: Xingchen Liao <liaox@usc.edu>
Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>
udpatil added a commit that referenced this pull request Oct 27, 2022
* Refactor wasmbinding to use message decorator (#245)

* Refactor wasmbinding to use message decorator

* Fix fmt

Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>

* [wasmbinding] Add message handler and dep validator

* remove todo

* [wasmbinding] Add query dep validation and remove dependency disabling

* added query validation and tests

* go mod tidy

* lint

* lint

Co-authored-by: Xingchen Liao <liaox@usc.edu>
Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>
udpatil added a commit that referenced this pull request Oct 27, 2022
* Refactor wasmbinding to use message decorator (#245)

* Refactor wasmbinding to use message decorator

* Fix fmt

Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>

* [wasmbinding] Add message handler and dep validator

* remove todo

* [wasmbinding] Add query dep validation and remove dependency disabling

* added query validation and tests

* go mod tidy

* lint

* lint

Co-authored-by: Xingchen Liao <liaox@usc.edu>
Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>
udpatil added a commit that referenced this pull request Oct 27, 2022
* Refactor wasmbinding to use message decorator (#245)

* Refactor wasmbinding to use message decorator

* Fix fmt

Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>

* [wasmbinding] Add message handler and dep validator

* remove todo

* [wasmbinding] Add query dep validation and remove dependency disabling

* added query validation and tests

* go mod tidy

* lint

* lint

Co-authored-by: Xingchen Liao <liaox@usc.edu>
Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>
udpatil added a commit that referenced this pull request Oct 28, 2022
* Refactor wasmbinding to use message decorator (#245)

* Refactor wasmbinding to use message decorator

* Fix fmt

Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>

* [wasmbinding] Add message handler and dep validator

* remove todo

* [wasmbinding] Add query dep validation and remove dependency disabling

* added query validation and tests

* go mod tidy

* lint

* lint

Co-authored-by: Xingchen Liao <liaox@usc.edu>
Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>
udpatil added a commit that referenced this pull request Nov 1, 2022
* Refactor wasmbinding to use message decorator (#245)

* Refactor wasmbinding to use message decorator

* Fix fmt

Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>

* [wasmbinding] Add message handler and dep validator

* remove todo

* [wasmbinding] Add query dep validation and remove dependency disabling

* added query validation and tests

* go mod tidy

* lint

* lint

Co-authored-by: Xingchen Liao <liaox@usc.edu>
Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>
udpatil added a commit that referenced this pull request Nov 1, 2022
* Refactor wasmbinding to use message decorator (#245)

* Refactor wasmbinding to use message decorator

* Fix fmt

Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>

* [wasmbinding] Add message handler and dep validator

* remove todo

* [wasmbinding] Add query dep validation and remove dependency disabling

* added query validation and tests

* go mod tidy

* lint

* lint

Co-authored-by: Xingchen Liao <liaox@usc.edu>
Co-authored-by: Cyson <cyson@Cysons-MBP.attlocal.net>
masih pushed a commit that referenced this pull request Sep 29, 2025
## Describe your changes and provide context
Metrics will be exposed for any node that would create snapshots
Expose per iavl store metrics:
- Total number of keys
- Total key bytes
- Total value bytes

## Testing performed to validate your change
Tested in sei-devnent-3

Co-authored-by: Yiming Zang <yzang@twitter.com>
masih pushed a commit that referenced this pull request Sep 30, 2025
## Describe your changes and provide context
Metrics will be exposed for any node that would create snapshots
Expose per iavl store metrics:
- Total number of keys
- Total key bytes
- Total value bytes

## Testing performed to validate your change
Tested in sei-devnent-3

Co-authored-by: Yiming Zang <yzang@twitter.com>
@masih masih deleted the wasmd-messager branch October 31, 2025 15:55
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