litentry / archived-litentry-mobile-app

GNU General Public License v3.0
73 stars 15 forks source link

Feature: XCM LIT token transfer interface #1382

Closed wangminqi closed 1 year ago

wangminqi commented 1 year ago

An small fix is needed for our front to latest interface. In the past we use

pub fn transfer(
            origin: OriginFor<T>,
            currency_id: T::CurrencyId,
            amount: T::Balance,
            dest: Box<VersionedMultiLocation>,
            dest_weight: Weight,
)

where dest_weight is just a number we preset up. Now the latest version become

pub fn transfer(
            origin: OriginFor<T>,
            currency_id: T::CurrencyId,
            amount: T::Balance,
            dest: Box<VersionedMultiLocation>,
            dest_weight: WeightLimit,
        )

where WeightLimit for us should be WeightLimit::Limited(preset number). Just an extra layer of parameter due to struct change. Nothing else change. details here. https://www.notion.so/web3builders/Parachain-XCM-front_end-document-2023-1-13-fd9ce99ee2624678bb7e37e63a54fd79

wangminqi commented 1 year ago

image