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(wasm): Create a Rust package to call module TxMsgs with CosmosMsg::StargateMsg #1580

Closed
14 tasks done
Unique-Divine opened this issue Sep 14, 2023 · 1 comment · Fixed by NibiruChain/nibiru-wasm#100
Closed
14 tasks done
Assignees
Labels
epic Project or large task that groups multiple tickets and PRs

Comments

@Unique-Divine
Copy link
Member

Unique-Divine commented Sep 14, 2023

Tracking issue for migrating wasm bindings to use CosmosMsg::StargateMsg

Higher Prio

  • Generate Rust proto types
  • Create Stargate messages for x/tokenfactory (with tests)
  • Create Stargate queries for x/oracle (with tests)

Normal Prio

Implement the NibiruStargateMsg trait and NibiruStargateQuery traits for each module:

  • cosmos auth
  • cosmos bank
  • cosmos gov
  • nibiru epochs
  • nibiru inflation
  • nibiru oracle
  • nibiru devgas
  • nibiru sudo

Nice to Have

Last but not Least

  • Publish a nibiru_std crate version with major and minor version corresponding to the proto version of NibiruChain/nibiru.
@Unique-Divine
Copy link
Member Author

Update: The framework for completing this ticket is implemented inside the nibiru_std::proto crate with the NibiruStargateMsg and NibiruStargateQuery traits. Several trait implementations have already been added in files like proto/type_url_nibiru.rs.

To complete the remainder of this task, impl blocks for Prost::Name need to be added for the above checklist, which is relatively straightforward.

@Unique-Divine Unique-Divine moved this from ➡️ Pending Review/Merge to ⚡ In Progress 🧱 in ⚛️ Nibiru (Hougyoku) Nov 27, 2023
Unique-Divine added a commit to NibiruChain/nibiru-wasm that referenced this issue Dec 4, 2023
Unique-Divine added a commit to NibiruChain/nibiru-wasm that referenced this issue Dec 4, 2023
…u#100

epic: new protobufs, revive nibi-stargate-perp, and cleanup

## Context

- Closes #49: The `core-shifter` smart contract now uses `cw-ownable` and has a cleaner permissions abstraction.
- Closes NibiruChain/nibiru#1580
- Closes NibiruChain/nibiru#1642: The `NibiruRoute` enum was removed everywhere.
- Builds new wasm bytecode artifacts
- Published `nibiru-std` v0.0.3

### Commit Log

- feat(scripts-proto-clean): handlers for nibiru proto cleaning + more tests
- chore(deps): update Cargo.lock
- feat(nibiru-std): new protobuf types
- chore(deps-nibi-stargate): update deps to workspace
- chore(nibiru-std): rm bindings
- feat(nibiru-std): add prost::Name impls for new protobuf types
- feat(nibi-stargate-perp): revive perp bindings contract using CosmosMsg::Stargate
- refactor(nusd-valuator): run tidy
- fix(core-shifter): use new types + clean up tests
- fix(core-controller): use new types + clean up tests [deprecated temp]
- feat(core-shifter): use cw-ownable, set_contract_version, better perission abstraction
- refactor(core-shifter)!: make CanExecute logic more concise + tests
- refactor(contracts): mv core-controller to packages to prevent contract build
- refactor(core-shifter): make tests more concise and easy to follow
- chore(artifacts): build all contracts
- chore(nibiru-std): impl NibiruStargateMsg and NibiruStargateQuery: cosmos bank, cosmos auth
- chore(nibiru-std): impl NibiruStargateMsg and NibiruStargateQuery: cosmos gov
- feat(nibiru-std-proto): add pub mod definitions for many modules
- feat(nibiru-std): trait impls for NibiruChain/nibiru#1580
- refactor: remove unnecessary imports of nibiru-macro
- fix(nibiru-std): fix build by deleting prost::OneOf type in cosmos.staking
- ci: add codecov.yml
@github-project-automation github-project-automation bot moved this from ⚡ Building 🧱 to ✅ Completed in ⚛️ Nibiru (Hougyoku) Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Project or large task that groups multiple tickets and PRs
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant