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

Coinswap module #4644

Closed
wants to merge 25 commits into from
Closed

Coinswap module #4644

wants to merge 25 commits into from

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Jun 28, 2019

closes #4443

To do:
Client, Events, unit tests (keeper, querier, handler), simulation

CLI/Rest being tackled in #4719

I still am in favor of using sdk.Dec for the fee parameter, but the swap calculations would need to be rewritten and verified. Using the Uniswap equations until further notice.

  • 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 tests

  • Updated relevant documentation (docs/)

  • Added a relevant changelog entry: clog add [section] [stanza] [message]

  • rereviewed Files changed in the github PR explorer


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

x/coinswap/internal/types/errors.go Outdated Show resolved Hide resolved
x/coinswap/internal/types/test_common.go Show resolved Hide resolved
x/coinswap/internal/types/test_common.go Show resolved Hide resolved
x/coinswap/internal/types/test_common.go Show resolved Hide resolved
x/coinswap/internal/types/test_common.go Show resolved Hide resolved
x/coinswap/internal/keeper/querier.go Show resolved Hide resolved
x/coinswap/internal/types/test_common.go Show resolved Hide resolved
x/coinswap/internal/types/test_common.go Show resolved Hide resolved
x/coinswap/internal/types/test_common.go Show resolved Hide resolved
x/coinswap/internal/types/test_common.go Show resolved Hide resolved
@colin-axner colin-axner mentioned this pull request Jun 28, 2019
5 tasks
@colin-axner
Copy link
Contributor Author

For anyone following, development is blocked on #4657 as trading pairs will become a module sub-account


// queryParameters returns coinswap module parameter queried for upon success
// or an error if the query fails
func queryParameters(ctx sdk.Context, path []string, req abci.RequestQuery, k Keeper) ([]byte, sdk.Error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

return marshalled param struct instead

@colin-axner colin-axner added the S:blocked Status: Blocked label Aug 14, 2019
* Added query.go that includes the cli commands for querying.

* Added transaction subcommands such as add and remove liquidity.

* Added tx command for swap order message type.

* Added REST API commands for transaction sub commands specific to the coinswap module.

* Added REST API commands for the query sub commands. Also added a struct type for query params in querier.go. Incorporated review comment of querying liquidity with a param. Fixed some code problems in tx.go..

* Removed some lines of code that were commented.

* Update x/coinswap/client/cli/tx.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* Update x/coinswap/client/cli/tx.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* Update x/coinswap/internal/types/querier.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* Incorporating Colin's and Fede's review comments.

* Update x/coinswap/client/rest/query.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* Update x/coinswap/client/rest/query.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* Incorporating Fede and Colin's review comments.

* Address Colin's comments.

* Addressing comments on handling time.parse errors.

* Addressed review comments about flags and splitting swap order into buy and sell order.

* Addressed Colin's comments.

* Addressing comment of removing req.Sender.
@fedekunze
Copy link
Collaborator

As a team, we decided to pause this work as we don't have capacity to maintain this module atm. If someone is interested in resuming work here please get in touch.

cc: @sunnya97

@stale
Copy link

stale bot commented Oct 11, 2019

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 11, 2019
@tac0turtle
Copy link
Member

tac0turtle commented Oct 11, 2019

this pr has been moved here: cosmos/modules#10

@stale stale bot removed the wontfix label Oct 11, 2019
@tac0turtle tac0turtle closed this Oct 11, 2019
@alexanderbez alexanderbez deleted the colin/4443-coinswap branch February 25, 2020 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:blocked Status: Blocked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coinswap Module
6 participants