provenance-io / provenance

A distributed, proof of stake blockchain designed for the financial services industry.
https://provenance.io
Apache License 2.0
87 stars 38 forks source link

Investigate Marker movement(restricted markers especially)via ibc protocol(marker-ics20 for now) based on cosmwasm design #1127

Closed arnabmitra closed 1 year ago

arnabmitra commented 2 years ago

Summary

This is a task to POC/investigate send markers(including restricted markers) via ics-20 between chains Based on this writeup

Several threads here i think:

These hold even if we want to do the same via ica i think

Problem Definition

Why do we need this feature? IBC transfers will be completely impossible after v1.13 and there is some desire to move them around between chains, see #1093 Also markers should be created with certain restrictions on the destination chains for e.g MINT/BURN should be disabled on destination chain marker etc

Proposal


For Admin Use

arnabmitra commented 1 year ago

hackmd based on discussions https://hackmd.io/3fwzGtlbRRGiaBAUdZyyGg

iramiller commented 1 year ago

Also #1425

Taztingo commented 1 year ago

It may be worth investigating if it's better to do something like this as Middleware.

iramiller commented 1 year ago

Seems like adding this to the ibchooks module we recently added makes the most sense. The memo payload on a transfer should ensure that basic transfer permissions are copied over and that the destination IBC chain has a marker created with no mint/burn capabilities and an appropriate denom that indicates the token came in over ibc.

nullpointer0x00 commented 1 year ago

To clarify, we would be using the marker's ibc transfer endpoint / MsgIbcTransferRequest to construct the memo and do the transfer?

iramiller commented 1 year ago

No ... we would use middleware that intercepts any transfer port movement of tokens and appropriately attaches a memo for both regular and restricted markers.