Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

test(tokenfactory)!: integration test core logic with a real smart contract using nibiru-std #1638

Merged
merged 11 commits into from
Oct 18, 2023

Conversation

Unique-Divine
Copy link
Member

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

Description

This pull request adds tests to the x/tokenfactory module using protobuf
types generated in Rust converted into wasmvmtypes.StargateMsg
(CosmosMsg::Stargate in CosmWasm).

  • Add cosmwasm_1_2 and other CosmWasm "capabilities" to app/keepers.go
  • Adds smart contract as test fixture
  • Test CosmosMsg::Stargate happy paths using raw json inputs

Purpose

Unique-Divine and others added 3 commits October 16, 2023 22:58
- Add cosmwasm_1_2 feature to app/keepers.go
- Add smart contract as test fixture
- Test CosmosMsg::Stargate happy paths using raw json inputs
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #1638 (6950f7e) into master (fd58bc3) will decrease coverage by 0.31%.
Report is 2 commits behind head on master.
The diff coverage is 62.74%.

@@            Coverage Diff             @@
##           master    #1638      +/-   ##
==========================================
- Coverage   74.52%   74.22%   -0.31%     
==========================================
  Files         177      183       +6     
  Lines       14652    14981     +329     
==========================================
+ Hits        10919    11119     +200     
- Misses       3112     3231     +119     
- Partials      621      631      +10     
Files Coverage Δ
app/keepers.go 99.20% <100.00%> (ø)
x/common/testutil/path.go 100.00% <100.00%> (ø)
x/perp/v2/client/cli/gen_market.go 81.95% <ø> (-0.27%) ⬇️
x/tokenfactory/keeper/grpc_query.go 100.00% <100.00%> (+8.10%) ⬆️
x/common/testutil/events.go 52.38% <87.50%> (ø)
x/perp/v2/types/msgs.go 91.71% <88.23%> (-0.39%) ⬇️
x/perp/v2/keeper/msg_server.go 77.08% <0.00%> (-14.28%) ⬇️
x/perp/v2/keeper/settlement.go 76.72% <78.12%> (+21.72%) ⬆️
x/perp/v2/client/cli/tx.go 63.90% <0.00%> (-8.65%) ⬇️

... and 4 files with indirect coverage changes

@Unique-Divine Unique-Divine changed the title test(tokenfactory): integration test core logic with a real smart contract using nibiru-std test(tokenfactory)!: integration test core logic with a real smart contract using nibiru-std Oct 17, 2023
@Unique-Divine Unique-Divine marked this pull request as ready for review October 17, 2023 17:16
@Unique-Divine Unique-Divine requested a review from a team as a code owner October 17, 2023 17:16
@Unique-Divine Unique-Divine merged commit d0f5290 into master Oct 18, 2023
@Unique-Divine Unique-Divine deleted the realu/stargate-test branch October 18, 2023 20:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[epic] feat: "tokenfactory" module
2 participants