Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/balances system (paritytech#163)
* move balances&transaction-payment into chainx * fix assets * fix gateway * fix xcontracts * add transfer_with_memo in pallet-balances * add debug in pallet-transaction-payment * fix bug for `TotalAssetBalance` * add assets test * Balances migration for Mining and DEX (paritytech#162) * Add sketch of generic-reserves * Introduce NativeReservedType * Add move_reserved_asset() * Only record NativeReservedType in generic-reserves * Change storage item name to NativeReserves * Replace xpallet_assets with Currency * Impl Staking issue and move_balance * LockableCurrency is required * Test mint_should_work() * Impl bond_reserve() * Finish balances migration for Staking * Remove xpallet-assets in Staking * Replace T::Balance with BalanceOf<T> in DEX * Impl native reserves * Pass partial DEX tests * Do not silence the asset error * Curreny in assets has be Reserable and Lockable * Use Currency from assets if neccesary * Migrate mining/asset * Add StakingInterface in mining/asset * Fix a fatal storage naming error * Pass mining/asset tests * Pass DEX tests * Fix runtime migration * Fix balances genesis The balances has duplicated items which are problematic. * finish xassets tests * add doc for rpc Co-authored-by: Liu-Cheng Xu <xuliuchengxlc@gmail.com>
- Loading branch information