Skip to content

Commit

Permalink
refactor(ecocredit/marketplace): BuyDirect (#967)
Browse files Browse the repository at this point in the history
* refactor: separate buy and buy direct

* chore: slim down test

* fix: comment

* chore: cleanup

* chore: add decimal test case'

* chore: make tidy

* chore: remove print

* chore: Int64() -> String()

* chore: apply suggestions from code review

Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>

* fix: import order

* chore: make buy fail in validate basic

* chore: proto-gen

* chore: add comment explaining div by 1

* refactor: price per credit -> bidprice

* refactor: add orderOptions struct

* refactor: batch direct buy orders

* chore: address review

* chore: remove buy.go

* refactor: string -> big int

* chore: remove all buy code

* Update x/ecocredit/server/marketplace/buy_direct.go

Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>

* Update x/ecocredit/server/marketplace/buy_direct.go

Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>

* Update x/ecocredit/server/marketplace/utils.go

Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>

* Update x/ecocredit/server/marketplace/utils.go

Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>

* chore: expand test fields

* refactor: use SdkIntTrim

* chore: spacing

* chore: comment out buyorder reliant code

Co-authored-by: technicallyty <48813565+tytech3@users.noreply.github.com>
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 11, 2022
1 parent 404cc06 commit 43fe06e
Show file tree
Hide file tree
Showing 32 changed files with 2,159 additions and 18,208 deletions.
1,842 changes: 42 additions & 1,800 deletions api/regen/ecocredit/marketplace/v1/events.pulsar.go

Large diffs are not rendered by default.

4,590 changes: 623 additions & 3,967 deletions api/regen/ecocredit/marketplace/v1/query.pulsar.go

Large diffs are not rendered by default.

116 changes: 0 additions & 116 deletions api/regen/ecocredit/marketplace/v1/query_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

157 changes: 0 additions & 157 deletions api/regen/ecocredit/marketplace/v1/state.cosmos_orm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 43fe06e

Please sign in to comment.