fix: Complete snowbridge pezpallet rebrand and critical bug fixes
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs) - pallet/ directories → pezpallet/ (4 locations) - Fixed pezpallet.rs self-include recursion bug - Fixed sc-chain-spec hardcoded crate name in derive macro - Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API) - Added BizinikiwiConfig type alias for zombienet tests - Deleted obsolete session state files Verified: pezsnowbridge-pezpallet-*, pezpallet-staking, pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
This commit is contained in:
@@ -122,7 +122,7 @@ where
|
||||
let data =
|
||||
IERC20::transferCall { to: checking_address, value: EU256::from(amount) }.abi_encode();
|
||||
let ContractResult { result, gas_consumed, storage_deposit, .. } =
|
||||
pezpallet_revive::Pallet::<T>::bare_call(
|
||||
pezpallet_revive::Pezpallet::<T>::bare_call(
|
||||
OriginFor::<T>::signed(who.clone()),
|
||||
asset_id,
|
||||
U256::zero(),
|
||||
@@ -181,7 +181,7 @@ where
|
||||
let data = IERC20::transferCall { to: address, value: EU256::from(amount) }.abi_encode();
|
||||
let gas_limit = GasLimit::get();
|
||||
let ContractResult { result, gas_consumed, storage_deposit, .. } =
|
||||
pezpallet_revive::Pallet::<T>::bare_call(
|
||||
pezpallet_revive::Pezpallet::<T>::bare_call(
|
||||
OriginFor::<T>::signed(TransfersCheckingAccount::get()),
|
||||
asset_id,
|
||||
U256::zero(),
|
||||
|
||||
@@ -74,8 +74,8 @@ pub type TrustBackedAssetsConvertedConcreteId<
|
||||
pub type UniquesConvertedConcreteId<UniquesPalletLocation> = MatchedConvertedConcreteId<
|
||||
CollectionId,
|
||||
ItemId,
|
||||
// The asset starts with the uniques pallet. The `CollectionId` of the asset is specified as a
|
||||
// junction within the pallet itself.
|
||||
// The asset starts with the uniques pezpallet. The `CollectionId` of the asset is specified as a
|
||||
// junction within the pezpallet itself.
|
||||
StartsWith<UniquesPalletLocation>,
|
||||
CollectionIdForUniquesConvert<UniquesPalletLocation>,
|
||||
TryConvertInto,
|
||||
@@ -205,7 +205,7 @@ impl<
|
||||
}
|
||||
|
||||
/// Provides a current prices. Wrapper over
|
||||
/// `pezpallet_asset_conversion::Pallet::<T>::quote_price_tokens_for_exact_tokens`.
|
||||
/// `pezpallet_asset_conversion::Pezpallet::<T>::quote_price_tokens_for_exact_tokens`.
|
||||
///
|
||||
/// An error of type `()` is returned if the version conversion fails for XCM locations.
|
||||
/// This error should be mapped by the caller to a more descriptive one.
|
||||
@@ -220,7 +220,7 @@ impl<
|
||||
let asset_2: L = asset_2.try_into().map_err(|_| ())?;
|
||||
|
||||
// Quote swap price.
|
||||
Ok(pezpallet_asset_conversion::Pallet::<Runtime>::quote_price_tokens_for_exact_tokens(
|
||||
Ok(pezpallet_asset_conversion::Pezpallet::<Runtime>::quote_price_tokens_for_exact_tokens(
|
||||
asset_1,
|
||||
asset_2,
|
||||
amount,
|
||||
@@ -313,7 +313,7 @@ mod tests {
|
||||
),
|
||||
Ok((1234, 1000)),
|
||||
),
|
||||
// wrong pallet instance
|
||||
// wrong pezpallet instance
|
||||
(
|
||||
ma_1000(0, [PalletInstance(77), GeneralIndex(1234)].into()),
|
||||
Err(MatchError::AssetNotHandled),
|
||||
|
||||
@@ -87,7 +87,7 @@ pub mod foreign_assets_reserves {
|
||||
type Identifier = MigrationId<23>;
|
||||
|
||||
fn id() -> Self::Identifier {
|
||||
// this migration doesn't change pallet storage version, from and to are both `1`
|
||||
// this migration doesn't change pezpallet storage version, from and to are both `1`
|
||||
MigrationId { pezpallet_id: *MIGRATIONS_ID, version_from: 1, version_to: 1 }
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ pub mod foreign_assets_reserves {
|
||||
let prev_state = TryRuntimeState::<T, I>::decode(&mut &state[..])
|
||||
.expect("Failed to decode the previous storage state");
|
||||
for id in prev_state.assets {
|
||||
let reserves = pezpallet_assets::Pallet::<T, I>::get_reserves_data(id.clone());
|
||||
let reserves = pezpallet_assets::Pezpallet::<T, I>::get_reserves_data(id.clone());
|
||||
tracing::info!(target: "runtime::ForeignAssetsReservesMigration::post_upgrade", ?id, ?reserves, "verify asset");
|
||||
assert!(ReservesProvider::check_reserves_for(&id, reserves));
|
||||
}
|
||||
@@ -175,7 +175,7 @@ pub mod foreign_assets_reserves {
|
||||
target: "runtime::ForeignAssetsReservesMigration::asset_step",
|
||||
?asset_id, ?reserves, "updating reserves for"
|
||||
);
|
||||
if let Err(e) = pezpallet_assets::Pallet::<T, I>::unchecked_update_reserves(
|
||||
if let Err(e) = pezpallet_assets::Pezpallet::<T, I>::unchecked_update_reserves(
|
||||
asset_id.clone(),
|
||||
reserves,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user