integritee-network / parachain

Integritee parachain
GNU General Public License v3.0
10 stars 8 forks source link

Allow reserve asset transfer of relaychain token to parachain and back #260

Closed brenzi closed 7 months ago

brenzi commented 9 months ago

first step to bring TEER to Asset Hub is to bring KSM to Integritee (to pay xcm fees with)

This PR allows to

the chosen solutions are inspired from Karura and Trappist

sanity checks:

do not merge just yet

This PR makes a design decision that we may want to iterate on!

testing

start zombienet

zombienet-linux-x64 spawn --provider native zombienet/rococo-local-with-integritee.toml

send 1 ROC from relaychain to integritee network

0x6308030001007d1f0300010100d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d030400000000070010a5d4e80000000000

you should see tokens.Deposited Event on Integritee Network

check balance: image

send funds from Alice to Bob

send ROC back from Bob to Bob on relaychain

brenzi commented 9 months ago

orml_tokens / orml_currencies do not implement AccountTouch nor ContainsPair traits which are needed for pallet_asset_conversion

I guess the decision to use ORML for this was wrong