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

refactor: prettify proto definitions #6

Merged
merged 2 commits into from
Oct 18, 2020
Merged

Conversation

byeongsu-hong
Copy link
Contributor

No description provided.

@byeongsu-hong byeongsu-hong merged commit a0c890f into main Oct 18, 2020
ethanfrey pushed a commit that referenced this pull request Mar 21, 2022
* Update reflect contract to v0.3.0

* Adapt to bindings v0.3.0

* Add full denom query

* Add happy path full denom integ test

* Update to v0.3.0 proper (release)
ethanfrey added a commit that referenced this pull request Mar 31, 2022
* Rename wasmtest/ to wasm/

* Wasm queries and message types

* Use uint64 for pool id

* Use sdk.Int for Uint128

* Update / integrate README

* Rename package to wasm

* Add basic wasm types tests

* Add query response types

* Rename test packages to wasm as well

* Custom query handler (#2)

* Add custom querier for osmosis wasm queries

* Move tests to own dir to avoid cyclic deps

* Rename wasm keeper to (custom) query plugin

* Use helpers to convert from sdk to wasm coins

* Test custom queries with Osmo_reflect contract (#3)

* Add osmo_reflect contract

* Start test setup for custom queries

* Fix tests

* Complete initial query test

* Rename bindings package to bindings

* Test creating and querying 2 pools

* Rename package to wasmbindings

* Download wasm uses osmo-bindings version

* Wasm custom messages (#5)

* Add placeholder for message handler

* Implement SwapMsg encoder

* First table test for swapping message

* Cover basic ExactIn cases

* Test ExactOut swaps as well

* Update error message

Co-authored-by: Mauro Lacy <maurolacy@users.noreply.github.com>

* Custom queries (#4)

* Add spot price query

* Rename keeper.go to queries.go

* Add estimate price query

* Remove needless ViewKeeper interface

* GetSpotPrice refactor

* EstimatePrice refactor

* Better EstimatePrice error message

* Add TODO for multi-hop swap price estimation

* Add SpotPrice happy path integration test

* Remove FIXMEs

* Add json field names

* Custom queries #2 (#6)

* Update reflect contract to v0.3.0

* Adapt to bindings v0.3.0

* Add full denom query

* Add happy path full denom integ test

* Update to v0.3.0 proper (release)

* Add JSON unmarshalling tests / formats (#7)

* Refactor GetFullDenom

Add validation helpers

* Return string by value

* Use contract addr instead of user addr in full denom test

* Mint token message (#8)

* Convert messenge encoder to message decorator

* Implement and Test mint token message

* Add TODOs for future refactoring

* Update app/wasm/message_plugin.go

Co-authored-by: Mauro Lacy <maurolacy@users.noreply.github.com>

Co-authored-by: Mauro Lacy <maurolacy@users.noreply.github.com>

* Estimate price tests (#9)

* Fix: sender address format

* Add estimate price integration tests

* Remove FIXME

* Improve estimate swap rate integ tests

* Refactor estimate swap (#11)

* Add type conversions

* Refactor EstimatePrice to use same logic as SwapMsg

* Multi hop support (#12)

* Add exact in multi-hop tests

* Tests pass multi-hop exact in

* Add failing tests for ExactOut

* FImplement ExactOut multi-hop swaps

* Remove two outdated TODO comments

* Remove obsolete comments

* Custom queries unit tests (#10)

* Add full denom unit tests

* Add get pool state unit tests

* Add get spot price unit tests

* Add estimate price extra checks

* Add estimate price unit tests

* Add tests for zero and negative amounts

* Fix: null spot price

* Fix: Avoid panic on negative amounts

Fix rebase errors / missing null checks

* Fix rebase errors

Add negative amount checks

* Add subdenom verification (#13)

* Add subdenom verification

* Remove TODO

* Custom messages unit tests (#14)

* Fix: swap tokens error handling

* Rename messenger to CustomMessenger

* Add perform swap unit tests

* Fix: perform swap null swap check

* Add PerformMint function

* Add perform mint unit tests

* Fixes: perform mint null mint check

Mint negative amount

* Rename `EstimatePrice` to `EstimateSwap` (#15)

* Fix: swap tokens error handling

* Rename messenger to CustomMessenger

* Add perform swap unit tests

* Fix: perform swap null swap check

* Add PerformMint function

* Add perform mint unit tests

* Fixes: perform mint null mint check

Mint negative amount

* Update test contract to v0.4.0

* Rename EstimatePrice binding to EstimateSwap

* Rename EstimatePrice custom query to EstimateSwap

* Adapt test to EstimatePrice to EstimateSwap renaming

* Add multi-hop swap unit test (#16)

* Add multi-hop swap unit test

* Adjust input amount, min output

Add slippage factor

* Add more multi-hop unit tests

* Improve estimates in multi-hop tests

* Test that self-swap is disallowed

Co-authored-by: Ethan Frey <ethanfrey@users.noreply.github.com>

* Update to new gamm apis

* go fmt

* Merge types/ into bindings/

* Fix compile errors after merge

* Fix linting issue

* Update osmo reflect to v0.5.0

* Removed all mint token messages and queries

* Rename local variable

Co-authored-by: Mauro Lacy <mauro@lacy.com.es>
Co-authored-by: Mauro Lacy <mauro@confio.gmbh>
Co-authored-by: Mauro Lacy <maurolacy@users.noreply.github.com>
@ValarDragon ValarDragon mentioned this pull request Aug 18, 2022
2 tasks
p0mvn pushed a commit that referenced this pull request Feb 1, 2023
* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json

* test osmosis_e2e docker

* test osmosis_e2e docker

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

* update (#6)

* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json (#4173)

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

---------

Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>

* test osmosis_e2e docker

* test osmosis_e2e docker

* #4070

* Update push-dev-docker-images.yml

---------

Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>
mergify bot pushed a commit that referenced this pull request Feb 1, 2023
* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json

* test osmosis_e2e docker

* test osmosis_e2e docker

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

* update (#6)

* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json (#4173)

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

---------

Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>

* test osmosis_e2e docker

* test osmosis_e2e docker

* #4070

* Update push-dev-docker-images.yml

---------

Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>
(cherry picked from commit 0dbb56a)
p0mvn pushed a commit that referenced this pull request Feb 1, 2023
* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json

* test osmosis_e2e docker

* test osmosis_e2e docker

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

* update (#6)

* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json (#4173)

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

---------

Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>

* test osmosis_e2e docker

* test osmosis_e2e docker

* #4070

* Update push-dev-docker-images.yml

---------

Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>
(cherry picked from commit 0dbb56a)

Co-authored-by: Master Pi <minh.vln140501@gmail.com>
p0mvn pushed a commit that referenced this pull request Feb 5, 2023
* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json

* test osmosis_e2e docker

* test osmosis_e2e docker

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

* update (#6)

* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json (#4173)

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

---------

Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>

* test osmosis_e2e docker

* test osmosis_e2e docker

* #4070

* Update push-dev-docker-images.yml

* update to go1.19

* only update tests/localosmosis

* missing

---------

Co-authored-by: Master Pi <minh.vln140501@gmail.com>
Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>
Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
mergify bot pushed a commit that referenced this pull request Feb 5, 2023
* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json

* test osmosis_e2e docker

* test osmosis_e2e docker

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

* update (#6)

* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json (#4173)

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

---------

Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>

* test osmosis_e2e docker

* test osmosis_e2e docker

* #4070

* Update push-dev-docker-images.yml

* update to go1.19

* only update tests/localosmosis

* missing

---------

Co-authored-by: Master Pi <minh.vln140501@gmail.com>
Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>
Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
(cherry picked from commit d92be8b)
p0mvn pushed a commit that referenced this pull request Feb 5, 2023
* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json

* test osmosis_e2e docker

* test osmosis_e2e docker

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

* update (#6)

* update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json (#4173)

* e2e: Write node Docker container logs to a file (#4118)

* Write node Docker container logs to a file

* add documentation

* add documentation

---------

Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>

* test osmosis_e2e docker

* test osmosis_e2e docker

* #4070

* Update push-dev-docker-images.yml

* update to go1.19

* only update tests/localosmosis

* missing

---------

Co-authored-by: Master Pi <minh.vln140501@gmail.com>
Co-authored-by: ducnt131 <62016666+anhductn2001@users.noreply.github.com>
Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
(cherry picked from commit d92be8b)

Co-authored-by: Dong <93205232+DongLieu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant