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

Create the exchange module #1661

Merged
merged 317 commits into from
Oct 18, 2023
Merged

Create the exchange module #1661

merged 317 commits into from
Oct 18, 2023

Conversation

SpicyLemon
Copy link
Contributor

@SpicyLemon SpicyLemon commented Aug 23, 2023

Description

closes: #1698

related: #1658

This PR creates the exchange module and adds it to the app.


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Merging #1661 (f48c014) into main (df2d286) will decrease coverage by 1.65%.
The diff coverage is 47.76%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1661      +/-   ##
==========================================
- Coverage   64.68%   63.03%   -1.65%     
==========================================
  Files         269      288      +19     
  Lines       31822    36461    +4639     
==========================================
+ Hits        20583    22982    +2399     
- Misses       9922    12139    +2217     
- Partials     1317     1340      +23     
Files Coverage Δ
app/app.go 84.89% <100.00%> (+0.21%) ⬆️
app/upgrades.go 68.98% <100.00%> (+1.98%) ⬆️
x/exchange/events.go 100.00% <100.00%> (ø)
x/exchange/genesis.go 100.00% <100.00%> (ø)
x/exchange/helpers.go 100.00% <100.00%> (ø)
x/exchange/keys.go 100.00% <100.00%> (ø)
x/exchange/market.go 100.00% <100.00%> (ø)
x/exchange/orders.go 95.52% <ø> (ø)
x/exchange/params.go 100.00% <ø> (ø)
x/name/keeper/keeper.go 77.41% <ø> (-1.92%) ⬇️
... and 13 more

…ee denoms in the key. Create a suffix maker and parser for those keys too.
…tlementFee to return more info about why a fee is insufficient.
…e bool, permissions, and required attributes.
…ul. Make sure MsgGovManageFeesRequest has a market id.
x/exchange/orders_test.go Outdated Show resolved Hide resolved
x/exchange/orders_test.go Outdated Show resolved Hide resolved
@Taztingo
Copy link
Contributor

We will need to update internal/stargate_whitelist.go to contain the exchange queries we want provwasm to support.

@SpicyLemon
Copy link
Contributor Author

SpicyLemon commented Oct 17, 2023

We will need to update internal/stargate_whitelist.go to contain the exchange queries we want provwasm to support.

Oops! Good call. I need to add the hold module queries too.

Update: They've been added.

@SpicyLemon SpicyLemon merged commit abf94a0 into main Oct 18, 2023
39 of 41 checks passed
@SpicyLemon SpicyLemon deleted the dwedul/1658-exchange-module branch October 18, 2023 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

Exchange: Preliminary work on the exchange module
4 participants