Skip to content

Commit

Permalink
Merge branch 'main' into mkl-pm-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Apr 8, 2024
2 parents 9e54353 + 2d0277b commit b6f3480
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
24 changes: 12 additions & 12 deletions docs/changelog_for_devs.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ APIs/RPC interface.

## v0.5.1

[#1197]: https://github.com/zeitgeistpm/zeitgeist/pull/1197
[#1295]: https://github.com/zeitgeistpm/zeitgeist/pull/1295
[pallet-asset]:
https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/assets

### Added

- [#1197] New asset classes:
- [#1295] New asset classes:
- `CampaignAssetClass` - Can be registered by gov and council and be used in
markets and to pay transaction fees.
- `CustomAssetClass` - Allows any user to register their custom assets (can't
Expand All @@ -42,11 +42,11 @@ APIs/RPC interface.
scale codec representation into the `Assets` type.
- `Assets` provides `TryInto` into all other asset classes, which fails if the
asset type is not existent in the asset class.
- [#1197] Added [pallet-asset], which is a Substrate pallet that provides fine
- [#1295] Added [pallet-asset], which is a Substrate pallet that provides fine
grained control over asset creation, destruction, management (mint, burn,
freeze, admin account) and much more. It is used for `CampaignAssetClass`,
`CustomAssetClass` and `MarketAssetClass`.
- [#1197] Added zrml-asset-router (AssetRouter). This pallet is an abstraction
- [#1295] Added zrml-asset-router (AssetRouter). This pallet is an abstraction
layer over multiple pallets (like orml-tokens and pallet-assets) that handles
routing calls, managing asset destruction and the lazy migrating market assets
from `CurrencyClass` to `MarketAssetClass`. It does not have any dispatchable
Expand All @@ -56,11 +56,11 @@ APIs/RPC interface.
chain via transactions and can be used when developing pallets. In the latter
case, some functionalities can only be used when directly interacting with
zrml-asset-router.
- [#1197] Campaign assets have to be created and destroyed by gov or the
- [#1295] Campaign assets have to be created and destroyed by gov or the
council. Custom assets have to be created and destroyed via transactions.
Market assets are automatically created and destroyed. In all non automatic
cases, destroying is achieved by calling `start_destroy`.
- [#1197] Transaction fee payment is now possible with campaign assets. The fee
- [#1295] Transaction fee payment is now possible with campaign assets. The fee
is calculated as follows (with `CampaignAssetFeeMultiplier = 100`):

```rust
Expand All @@ -73,22 +73,22 @@ if ztg_supply / campaign_asset_supply >= 100 {

### Changed

- [#1197] `Assets` does not contain the `CombinatorialOutcome` asset type
- [#1295] `Assets` does not contain the `CombinatorialOutcome` asset type
anymore, but has been extended by all existing asset types.
- [#1197] The transaction fee asset type has been changed from `u32` to
- [#1295] The transaction fee asset type has been changed from `u32` to
`Assets`.
- [#1197] The prediction market base asset type has been changed in the `Market`
- [#1295] The prediction market base asset type has been changed in the `Market`
storage and market creation dispatchable calls to `BaseAssetClass`.
- [#1197] The asset type for XCM has been changed to `XcmAssetClass`. It is used
- [#1295] The asset type for XCM has been changed to `XcmAssetClass`. It is used
in `orml-xtokens` (XTokens) and `orml-asset-registry` (AssetRegistry).

### Removed

- [#1197] `SerdeWrapper` has been removed.
- [#1295] `SerdeWrapper` has been removed.

### Deprecated

- [#1197] Market outcome asset types are no longer handled by `orml-tokens`
- [#1295] Market outcome asset types are no longer handled by `orml-tokens`
(Tokens), except for existing markets which still used market asset types
within `CurrencyClass`. `pallet-assets` (MarketAssets) now handles market
outcome asset types from the `MarketAssetClass`.
Expand Down
9 changes: 0 additions & 9 deletions runtime/common/src/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ macro_rules! impl_fee_types {
debug_assert!(res.is_ok());
}
}

/// Disregards the fees.
pub struct DealWithCampaignFees;
impl OnUnbalanced<CreditOf<AccountId, AssetRouter>> for DealWithCampaignFees {
fn on_unbalanced(_fees_and_tips: CreditOf<AccountId, AssetRouter>) {
// Handled by type OnDropCredit
return;
}
}
};
}

Expand Down

0 comments on commit b6f3480

Please sign in to comment.