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(wasmbinding)!: whitelisted stargate queries for QueryRequest::Stargate: auth, bank, gov, tokenfactory, epochs, inflation, oracle, sudo, devgas #1646

Merged
merged 12 commits into from
Oct 25, 2023

Conversation

Unique-Divine
Copy link
Member

@Unique-Divine Unique-Divine commented Oct 20, 2023

Purpose

Why is this PR important?

Without this, it's not possible to use QuerySupplyOf from x/bank or fetch denom metadata from a smart contract.

@Unique-Divine Unique-Divine marked this pull request as ready for review October 24, 2023 04:24
@Unique-Divine Unique-Divine requested a review from a team as a code owner October 24, 2023 04:24
@Unique-Divine
Copy link
Member Author

Note that the buf break is the typo fix

wasmbinding/stargate_query_test.go Outdated Show resolved Hide resolved
wasmbinding/stargate_query_test.go Outdated Show resolved Hide resolved
wasmbinding/stargate_query_test.go Outdated Show resolved Hide resolved
x/inflation/types/export.go Show resolved Hide resolved
@Unique-Divine Unique-Divine requested a review from k-yang October 25, 2023 16:05
@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #1646 (a69b501) into master (562209b) will increase coverage by 0.08%.
Report is 1 commits behind head on master.
The diff coverage is 85.61%.

❗ Current head a69b501 differs from pull request most recent head e8cc50e. Consider uploading reports for the commit e8cc50e to get more accurate results

@@            Coverage Diff             @@
##           master    #1646      +/-   ##
==========================================
+ Coverage   74.23%   74.31%   +0.08%     
==========================================
  Files         183      191       +8     
  Lines       14977    15079     +102     
==========================================
+ Hits        11118    11206      +88     
- Misses       3229     3243      +14     
  Partials      630      630              
Files Coverage Δ
app/app.go 57.60% <100.00%> (+0.46%) ⬆️
app/keepers.go 99.20% <100.00%> (ø)
wasmbinding/exec_perp.go 90.74% <100.00%> (ø)
wasmbinding/stargate_query.go 100.00% <100.00%> (ø)
wasmbinding/wasm.go 100.00% <100.00%> (ø)
x/epochs/keeper/grpc_query.go 100.00% <100.00%> (ø)
x/perp/v2/keeper/keeper.go 96.66% <100.00%> (+0.11%) ⬆️
x/perp/v2/keeper/settlement.go 77.41% <ø> (+0.69%) ⬆️
x/perp/v2/types/genesis.go 85.36% <100.00%> (ø)
x/devgas/v1/types/export.go 0.00% <0.00%> (ø)
... and 7 more

@k-yang k-yang merged commit 2ae0475 into master Oct 25, 2023
14 of 15 checks passed
@k-yang k-yang deleted the realu/sg-queries branch October 25, 2023 21:34
k-yang pushed a commit that referenced this pull request Oct 25, 2023
…argate: auth, bank, gov, tokenfactory, epochs, inflation, oracle, sudo, devgas (#1646)

* fix(tokenfactory)!: Fix bug in MsgBurn on total supply tracking

* chore: rm stablecoin. How does this keep getting merged lol

* test: add export statements for the gRPC query service descriptions in each module

* feat(wasmbinding): whitelisted stargate queries for QueryRequest::Stargate

* changelog

* fix changelog

* refactor!: make the epoch infos name consistent

* docs,test(stargate_query): leave an in-depth explainer above the function

* refactor: pR comments: earlier return + remove duplicate hardcoded paths

* test: proto package may have more than 3 'parts'. Use len - 1 instead

* docs: fix small documentation typos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Completed
Development

Successfully merging this pull request may close these issues.

3 participants