Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d6ec5db
Anchor polkadot-v0.9.36
Jan 17, 2023
6079a59
Companion for paritytech/cumulus#1860
Jan 17, 2023
4e1012c
Companion for paritytech/cumulus#1876
Jan 17, 2023
33dffeb
Companion for paritytech/cumulus#1904
Jan 17, 2023
2260b86
Companion for paritytech/substrate#12310
Jan 17, 2023
69b8b60
Companion for paritytech/substrate#12740
Jan 17, 2023
578ecf9
Bump array-bytes to 6.0.0
Jan 17, 2023
89d724f
Companion for paritytech/substrate#12868
Jan 17, 2023
19e0213
Companion for paritytech/cumulus#1930
Jan 17, 2023
71a09ea
Companion for paritytech/cumulus#1905
Jan 17, 2023
8a7b991
Companion for paritytech/cumulus#1880
Jan 17, 2023
f830826
Companion for paritytech/cumulus#1997
Jan 17, 2023
c120ab2
Companion for paritytech/cumulus#1559
Jan 17, 2023
45d5dd5
Prepare messages-substrate
Jan 28, 2023
e0e43c7
Companion for paritytech/substrate#12684
Jan 28, 2023
2bc644a
Companion for paritytech/substrate#12740
Jan 28, 2023
7458b49
Fix compile paritytech/substrate#12740
Jan 28, 2023
7bd3983
Compile done
Jan 28, 2023
ee6b187
Format
Jan 28, 2023
0fc11d3
Add call index
Jan 29, 2023
6ae68f3
Merge branch 'main' into prepare-polkadot-v0.9.36
Jan 29, 2023
309683a
Compile done
Feb 2, 2023
7107bc0
Merge branch 'main' into prepare-polkadot-v0.9.36
Feb 2, 2023
7b57d0f
Fix CI
Feb 2, 2023
e94375b
Bump moonbeam
Feb 2, 2023
b877161
Merge branch 'main' into prepare-polkadot-v0.9.36
Feb 2, 2023
e24be36
Fix CI
Feb 2, 2023
2cdd2a5
Try fix tests
Feb 3, 2023
65e66ce
Merge branch 'main' into prepare-polkadot-v0.9.36
Feb 3, 2023
d3b7ece
Use into instead of `Compact`
Feb 3, 2023
89593c4
Merge branch 'main' into prepare-polkadot-v0.9.36
Feb 3, 2023
7a5710e
Patch substrate & Fix compile
Feb 3, 2023
e76813d
Merge branch 'prepare-polkadot-v0.9.36' of https://github.com/darwini…
Feb 3, 2023
abd93a0
Fix try-runtime
Feb 3, 2023
1c94d4b
Remove parity-util-mem
Feb 3, 2023
fcc10c5
Format
aurexav Feb 7, 2023
e565968
Merge remote-tracking branch 'origin/main' into prepare-polkadot-v0.9.36
aurexav Feb 7, 2023
b3ceb42
Format
aurexav Feb 7, 2023
d33ed9d
Opt
aurexav Feb 7, 2023
91feff4
Format
aurexav Feb 7, 2023
7cfa7bd
Use `codec::Compact<AssetId>`
aurexav Feb 7, 2023
7497f31
Format
aurexav Feb 7, 2023
d9a903d
Merge branch 'main' into prepare-polkadot-v0.9.36
Feb 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use into instead of Compact
  • Loading branch information
Guantong committed Feb 3, 2023
commit d3b7ece60110c4a49fbe495573b92d44bb9c912a
4 changes: 2 additions & 2 deletions runtime/crab/src/pallets/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl darwinia_deposit::SimpleAsset for CKtonMinting {
fn mint(beneficiary: &Self::AccountId, amount: Balance) -> sp_runtime::DispatchResult {
Assets::mint(
RuntimeOrigin::signed(ROOT),
codec::Compact(AssetIds::CKton as _),
(AssetIds::CKton as _).into(),
*beneficiary,
amount,
)
Expand All @@ -39,7 +39,7 @@ impl darwinia_deposit::SimpleAsset for CKtonMinting {
Err(<pallet_assets::Error<Runtime>>::BalanceLow)?;
}

Assets::burn(RuntimeOrigin::signed(ROOT), codec::Compact(asset_id), *who, amount)
Assets::burn(RuntimeOrigin::signed(ROOT), asset_id.into(), *who, amount)
}
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/crab/src/pallets/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl darwinia_staking::Stake for CKtonStaking {
fn stake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(*who),
codec::Compact(AssetIds::CKton as AssetId),
(AssetIds::CKton as AssetId).into(),
darwinia_staking::account_id(),
item,
)
Expand All @@ -61,7 +61,7 @@ impl darwinia_staking::Stake for CKtonStaking {
fn unstake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(darwinia_staking::account_id()),
codec::Compact(AssetIds::CKton as AssetId),
(AssetIds::CKton as AssetId).into(),
*who,
item,
)
Expand Down
4 changes: 2 additions & 2 deletions runtime/darwinia/src/pallets/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl darwinia_deposit::SimpleAsset for KtonAsset {
fn mint(beneficiary: &Self::AccountId, amount: Balance) -> sp_runtime::DispatchResult {
Assets::mint(
RuntimeOrigin::signed(ROOT),
codec::Compact(AssetIds::Kton as _),
(AssetIds::Kton as _).into(),
*beneficiary,
amount,
)
Expand All @@ -39,7 +39,7 @@ impl darwinia_deposit::SimpleAsset for KtonAsset {
Err(<pallet_assets::Error<Runtime>>::BalanceLow)?;
}

Assets::burn(RuntimeOrigin::signed(ROOT), codec::Compact(asset_id), *who, amount)
Assets::burn(RuntimeOrigin::signed(ROOT), (asset_id).into(), *who, amount)
}
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/darwinia/src/pallets/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl darwinia_staking::Stake for KtonStaking {
fn stake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(*who),
codec::Compact(AssetIds::Kton as AssetId),
(AssetIds::Kton as AssetId).into(),
darwinia_staking::account_id(),
item,
)
Expand All @@ -61,7 +61,7 @@ impl darwinia_staking::Stake for KtonStaking {
fn unstake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(darwinia_staking::account_id()),
codec::Compact(AssetIds::Kton as AssetId),
(AssetIds::Kton as AssetId).into(),
*who,
item,
)
Expand Down
4 changes: 2 additions & 2 deletions runtime/pangolin/src/pallets/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl darwinia_deposit::SimpleAsset for PKtonMinting {
fn mint(beneficiary: &Self::AccountId, amount: Balance) -> sp_runtime::DispatchResult {
Assets::mint(
RuntimeOrigin::signed(ROOT),
codec::Compact(AssetIds::PKton as _),
(AssetIds::PKton as _).into(),
*beneficiary,
amount,
)
Expand All @@ -39,7 +39,7 @@ impl darwinia_deposit::SimpleAsset for PKtonMinting {
Err(<pallet_assets::Error<Runtime>>::BalanceLow)?;
}

Assets::burn(RuntimeOrigin::signed(ROOT), codec::Compact(asset_id), *who, amount)
Assets::burn(RuntimeOrigin::signed(ROOT), asset_id.into(), *who, amount)
}
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/pangolin/src/pallets/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl darwinia_staking::Stake for PKtonStaking {
fn stake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(*who),
codec::Compact(AssetIds::PKton as AssetId),
(AssetIds::PKton as AssetId).into(),
darwinia_staking::account_id(),
item,
)
Expand All @@ -61,7 +61,7 @@ impl darwinia_staking::Stake for PKtonStaking {
fn unstake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(darwinia_staking::account_id()),
codec::Compact(AssetIds::PKton as AssetId),
(AssetIds::PKton as AssetId).into(),
*who,
item,
)
Expand Down