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

imp: refactor send-coins-*() and add memo field to escrow-* and burn-* methods #836

Merged
merged 31 commits into from
Dec 11, 2023

Conversation

plafer
Copy link
Contributor

@plafer plafer commented Aug 22, 2023

Closes: #837
Closes: #839
Closes: #985

Integration tests: informalsystems/basecoin-rs#130

and introduce extra data
@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Attention: 37 lines in your changes are missing coverage. Please review.

Comparison is base (eafdd30) 70.86% compared to head (5a16481) 70.69%.

Files Patch % Lines
ibc-apps/ics20-transfer/src/handler/mod.rs 0.00% 12 Missing ⚠️
...-apps/ics20-transfer/src/handler/on_recv_packet.rs 0.00% 12 Missing ⚠️
...t/src/testapp/ibc/applications/transfer/context.rs 61.53% 10 Missing ⚠️
...c-apps/ics20-transfer/src/handler/send_transfer.rs 87.50% 2 Missing ⚠️
ibc-apps/ics20-transfer/types/src/msgs/transfer.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #836      +/-   ##
==========================================
- Coverage   70.86%   70.69%   -0.18%     
==========================================
  Files         178      178              
  Lines       17869    17919      +50     
==========================================
+ Hits        12663    12667       +4     
- Misses       5206     5252      +46     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

plafer and others added 17 commits August 22, 2023 16:00
* fix: restore no_std support for serde feature

* deps: bump ibc-proto-rs to v0.34.0

* fix: reflect changes b/c of ibc-proto-rs

* imp: comply naming + use better domain type for host_consensus_state

* fix: apply host_cons_state_proof changes for conn_open_ack

* fix: use domain TmEvent instead of proto for upgrade client proposal handler

* misc: add a unclog for ibc-proto-rs upgrade
* bump ibc-proto and borsh

* changelog
Fix is in implementing it properly for our `Timestamp`
@Farhad-Shabani Farhad-Shabani marked this pull request as ready for review December 8, 2023 20:09
@Farhad-Shabani Farhad-Shabani changed the title Transfer module improvements imp: refactor send-coins-*() method and add memo field to escrow-coins-*() Dec 8, 2023
@Farhad-Shabani
Copy link
Member

Hey @mina86, FYI we discard the get_escrow_account() by this PR. However, with the newly defined methods here you should get what requested in #986.

@Farhad-Shabani Farhad-Shabani added this to the v0.49.0 milestone Dec 8, 2023
@Farhad-Shabani Farhad-Shabani changed the title imp: refactor send-coins-*() method and add memo field to escrow-coins-*() imp: refactor send-coins-*() and add memo field to escrow-* and burn-* methods Dec 9, 2023
@Farhad-Shabani Farhad-Shabani merged commit de2c530 into main Dec 11, 2023
14 checks passed
@Farhad-Shabani Farhad-Shabani deleted the plafer/transfer-extra-data branch December 11, 2023 04:34
Farhad-Shabani added a commit that referenced this pull request Sep 9, 2024
… `burn-*` methods (#836)

* split send_coins_*() functions

and introduce extra data

* arg name change

* add error variant

* add error

* add `Other` variant to `TokenTransferError`

* fmt

* fix: restore `no_std` support for `serde` feature (#790)

* fix: restore no_std support for serde feature

* deps: bump ibc-proto-rs to v0.34.0

* fix: reflect changes b/c of ibc-proto-rs

* imp: comply naming + use better domain type for host_consensus_state

* fix: apply host_cons_state_proof changes for conn_open_ack

* fix: use domain TmEvent instead of proto for upgrade client proposal handler

* misc: add a unclog for ibc-proto-rs upgrade

* bump ibc-proto to v0.34.1 and borsh to v0.10 (#844)

* bump ibc-proto and borsh

* changelog

* add borsh derive for `MsgTransfer`

* derive JsonSchema for MsgTransfer

* fix JsonSchema derive for MsgTransfer

Fix is in implementing it properly for our `Timestamp`

* execute() methods must have &mut self

* nit: spell checker

* imp: simplify escrow/unescrow abstraction + using memo instead

* chore: dress up with unclogs

* nit: adjust unlogs

* nit: remove confusing InternalTransferFailed error variant

* imp: add memo field to burn-coins-*

* docs: adjust & add missing docstrings

---------

Co-authored-by: Farhad Shabani <Farhad.Shabani@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
2 participants