centrifuge / centrifuge-chain

Centrifuge Chain: the layer-1 blockchain for real-world assets, built on Substrate.
https://centrifuge.io
GNU Lesser General Public License v3.0
182 stars 78 forks source link

Add RestrictedTransfers proxy type #735

Open hieronx opened 2 years ago

hieronx commented 2 years ago

https://github.com/centrifuge/apps/issues/718

Should be able to define destinations per currency type.

Should also support limiting which destinations on other chains it can be transferred to using XCM and/or Connectors.

mustermeiszer commented 2 years ago

@offerijns didn't we already add the proxy type or is this a more complex version of https://github.com/centrifuge/centrifuge-chain/blob/4c5bb8473383f84a058f21ae0953166e156fdccc/runtime/development/src/lib.rs#L389-L414

hieronx commented 2 years ago

@mustermeiszer What we already added was https://github.com/centrifuge/centrifuge-chain/issues/734. This just limited the calls which these proxy types could make. This ticket is actually having the ability to limit destinations to which a proxied account can send currency to.

mustermeiszer commented 2 years ago

Ah, I see. Well, this will need a pallet then.

branan commented 2 years ago

Branan to write up their thoughts/proposal