Skip to content

Releases: moonbeam-foundation/moonbeam

Runtime 1501

02 May 21:09
Compare
Choose a tag to compare

Runtimes

Fixes Permit precompile for runtime 1500

Moonbase

✨ spec_version                : 1501
🏋 size                        : 1231942
#️⃣ sha256                      : 0xd99225e3ec01282a15672ff301d85360e12965507521eef12136c6416de8ab46
#️⃣ blake2-256                  : 0xf609c803d4d5146af0a35f25e32d2d0687aa061202da575a64fb1d7529270282
🗳️ proposal (authorizeUpgrade) : 0x192d17290d9fab81ff7de22dc6f2bdb1e0ca9720035cff999aedaa4c51399425

Moonriver

✨ spec_version                : 1501
🏋 size                        : 1231110
#️⃣ sha256                      : 0xbba31443bb62e0b29aa1071332a3e4cd75a4b2161e82cda0c2c9007f85b7049e
#️⃣ blake2-256                  : 0x9c816c65a872f9f3729c283195e2fd07aabdd71ae49ab95ac4189ea0fdfc4081
🗳️ proposal (authorizeUpgrade) : 0xd3d2c9a80aa6ce356ef460612d01e1f053b8fba53205dfb47831086454d0c9b9

Moonbeam

✨ spec_version                : 1501
🏋 size                        : 1227490
#️⃣ sha256                      : 0x85b08530fbe878dd4bae07f19348db2f6c6500bcc038bc6bc9bbeca68bea3f8b
#️⃣ blake2-256                  : 0xc1dec59841e8c5f258a2959684279cdef103d28b8767d5e51d159f876765e707
🗳️ proposal (authorizeUpgrade) : 0xaa844ee4ac3cab7c7df6a1a942da3da92377d2f6fdb4eac39d6e98d4c636858a

Build information

WASM runtime built using rustc 1.57.0 (f1edd0429 2021-11-29)

Changes

  • Fix timestamp units for Permit EIP2612 (#1451)

Dependency changes

Moonbeam: runtime-1500...runtime-1501
Substrate: moonbeam-foundation/substrate@fc3fd07...fc3fd07
Polkadot: moonbeam-foundation/polkadot@f0dc95a...f0dc95a
Cumulus: moonbeam-foundation/cumulus@76cf464...76cf464
Frontier: moonbeam-foundation/frontier@79ed3f2...79ed3f2

Runtime 1500

30 Apr 16:59
12a294f
Compare
Choose a tag to compare

⚠️ Breaking changes ⚠️

AuthorMapping pallet

  • ⚠️ MappingWithDeposit map changed from
#[derive(Clone, Encode, Decode, PartialEq, Eq, Debug, scale_info::TypeInfo)]
pub struct RegistrationInfo<AccountId, Balance> {
  pub(crate) account: AccountId,
  pub(crate) deposit: Balance,
}

to

#[derive(Clone, Encode, Decode, PartialEq, Eq, Debug, scale_info::TypeInfo)]
#[scale_info(skip_type_params(T))]
pub struct RegistrationInfo<T: Config> {
  pub(crate) account: T::AccountId,
  pub(crate) deposit: BalanceOf<T>,
  pub(crate) keys: T::Keys,
}
  • add_association and update_association extrinsics set the VRF keys to the input nimbus_id. If a collator sets their VRF keys and accidentally calls update_association with the new nimbus key, then it will reset the VRF key to that input new nimbus key.

AuthorSlotFilter pallet

  • Deprecates the pallet_author_slot_filter::EligibleRatio config item (Percent) in favor of pallet_author_slot_filter::EligibleCount (EligibilityValue/NonZeroU32). A migration would populate the new EligibleCount value as a percentage of PotentialAuthors defined at that height, if a EligibleRatio value existed. If a previous value was missing, the migration will set EligibleCount to a default value of 50.

XCM

  • MultiLocations for self owned tokens (i.e., the native tokens and local tokens) no longer accepts the absolute path (as seen by the root/parent/relay) but only accepts the relative path (as seen by Moonbase/Monriver/Moonbeam). This is specially important for the xtokens.transfer_multiasset extrinsic/precompile, for which we have found no usage whatsoever in explorers.

ParachainStaking pallet

  • ⚠️ DelegatorState migrated to new value struct. Removes requests and adds less_total, which was previously part of requests. Breaking change towards RPC clients.

before:

        pub struct Delegator<AccountId, Balance> {
                ...
		/// Requests to change delegations, relevant iff active
		pub requests: PendingDelegationRequests<AccountId, Balance>,
		...
	}

now:

        pub struct Delegator<AccountId, Balance> {
                ...
		/// Sum of pending revocation amounts + bond less amounts
	        pub less_total: Balance,
		...
	}
  • ✔️ Adds a new storage item DelegationScheduledRequests which maps a collator AccountId to a list of pending delegation requests (Vec<ScheduledRequest>). This contains the information that was previously provided by the requests.requests (removed) field in DelegatorState.
pub struct ScheduledRequest<AccountId, Balance> {
	pub delegator: AccountId,
	pub when_executable: RoundIndex,
	pub action: DelegationAction<Balance>,
}
  • ⚠️ Updates CancelledDelegationRequest. Property cancelled_request now only includes action and when_executable. A new collator field is added. Breaking change towards RPC clients and Event consumers.

before:

pub struct DelegationRequest<AccountId, Balance> {
	pub collator: AccountId,
	pub amount: Balance,
	pub when_executable: RoundIndex,
	pub action: DelegationChange,
}

now:

pub struct CancelledScheduledRequest<Balance> {
	pub when_executable: RoundIndex,
	pub action: DelegationAction<Balance>,
}

Runtimes

Moonbase

✨ spec_version                : 1500
🏋 size                        : 1231741
#️⃣ sha256                      : 0x10361c0e3a0cef0f87ffd2ab7ba3325e1ef4086c4c64c722a0ae5f36dd0efa20
#️⃣ blake2-256                  : 0x01ccd67058685051d1b33c93a647f0d3d53c310a5979eedd7b64953b0c5f9763
🗳️ proposal (authorizeUpgrade) : 0xbdf996c9712e4e0ce641bd5a85546f042b6822d7b0c83f5dfb95632c734ff0cb

Moonriver

✨ spec_version                : 1500
🏋 size                        : 1230930
#️⃣ sha256                      : 0x4cd6e3467c33f27c011d45d27457e73da2bd0d742c29c2bd44ecaa20c114f1e8
#️⃣ blake2-256                  : 0xdc6eca875ce9decb206b0440e407694502bda293b0766dd5428eacba4eb03aa4
🗳️ proposal (authorizeUpgrade) : 0x81c217849e24df50c3a669a5803594e64c7f1749f1ab8d6e4db643dff11a238f

Moonbeam

✨ spec_version                : 1500
🏋 size                        : 1227255
#️⃣ sha256                      : 0x1aa12bf01c871f69d8ecfbbfaecaa0fef66cdc0d5d268ea08fd7613556a3ba52
#️⃣ blake2-256                  : 0x1fa23dd958623de54119040d31fcd21e0f87bb356890981721524ca689cd0fd8
🗳️ proposal (authorizeUpgrade) : 0x0f1532f1a900e2a39bf8e8863c2871471d0bf5e4f10519d31ffbc609343715ad

Build information

WASM runtime built using rustc 1.57.0 (f1edd0429 2021-11-29)

Changes

  • Implement EvmData for tuples (#1387)
  • Revert back wrong hasher introduced for AssetTypeUnitsPerSecond (#1402)
  • Add support for new session key format to author mapping pallet & precompile (#1407)
  • Expose pending delegation request to staking precompile (#1406)
  • Expose candidate request is pending to staking precompile (#1414)
  • Cleanup XCM config (#1401)
  • Expose round number to staking precompile (#1432)
  • Add EIP2612 (Permit) for ERC20/XC20 precompiles (#1429)
  • Implement pallet orbiters (#1374)
  • Change author eligibilityRatio (percentage) to eligibilityCount (absolute) (moonbeam-foundation/nimbus#53, #1400, #1439)
  • Remove staking rewards distribution for pending revoke/decrease delegations (#1408)
  • Support compilation feature on-chain-release-build for smaller wasm (#1441)
  • Bump runtime version to 1500 (#1443)

Dependency changes

Moonbeam: runtime-1401...runtime-1500
Substrate: moonbeam-foundation/substrate@fc3fd07...fc3fd07
Polkadot: moonbeam-foundation/polkadot@f0dc95a...f0dc95a
Cumulus: moonbeam-foundation/cumulus@76cf464...76cf464
Frontier: moonbeam-foundation/frontier@8574920...79ed3f2

Moonbeam v0.22.1

20 Apr 13:57
e3267c6
Compare
Choose a tag to compare

Priority

  • RPC Nodes: High - prevents eth_call request to fail with out of gas
  • Collators: Low

Changes

Dependency changes

Moonbeam: v0.22.0...v0.22.1
Substrate: moonbeam-foundation/substrate@fc3fd07...fc3fd07
Polkadot: moonbeam-foundation/polkadot@f0dc95a...f0dc95a
Cumulus: moonbeam-foundation/cumulus@76cf464...76cf464
Frontier: moonbeam-foundation/frontier@8574920...79ed3f2

Runtime 1401

07 Apr 16:51
9d48c4d
Compare
Choose a tag to compare

Runtimes

Moonbase

✨ spec_version                : 1401
🏋 size                        : 1231874
#️⃣ sha256                      : 0x4919b286f8691c3c0d04c01cb4d5cf51b42312a7c7b255b9980f7e14f7a56af4
#️⃣ blake2-256                  : 0x4779cb21fbd52a3433db87bc976aec6406353da25140d0585f45ba95ad3963fb
🗳️ proposal (authorizeUpgrade) : 0x260eb4e0379860ab3cc3b0721906e27590a517dbda908e8c74f61d0aaf65d15f

Moonriver

✨ spec_version                : 1401
🏋 size                        : 1223302
#️⃣ sha256                      : 0xc3341c4be3443818f0be2978d5a5fc4ca71be11f8418f71766c9543bae71f9a7
#️⃣ blake2-256                  : 0x19dbdad744bdd9681c82fedb08b65bb3523407c9534c159f188b0ec916646878
🗳️ proposal (authorizeUpgrade) : 0x3084bbf7049b2ec3c63142dc1c2a46ebeb4f1fbbb3623a76f921b2ea71e709b6

Moonbeam

✨ spec_version                : 1401
🏋 size                        : 1221172
#️⃣ sha256                      : 0x5dc0f289a9c16fe1bcbff6eb2058318053d24e801b87e00e8446ae133eb94226
#️⃣ blake2-256                  : 0xb8039ecbf277587c7f47845bf64ec41383aba545f832d92a1a2d65210a6719d2
🗳️ proposal (authorizeUpgrade) : 0x32ea5d96af6132a59006947e05936b12f8be775b8ace39a17057c6c3d7f87ecf

Build information

WASM runtime built using rustc 1.57.0 (f1edd0429 2021-11-29)

Changes

  • Revert back wrong hasher introduced for AssetTypeUnitsPerSecond (#1404)

Dependency changes

Moonbeam: runtime-1400...runtime-1401
Substrate: moonbeam-foundation/substrate@fc3fd07...fc3fd07
Polkadot: moonbeam-foundation/polkadot@f0dc95a...f0dc95a
Cumulus: moonbeam-foundation/cumulus@76cf464...76cf464
Frontier: moonbeam-foundation/frontier@8574920...8574920

Runtime 1400

05 Apr 15:32
91e2dfa
Compare
Choose a tag to compare

Runtimes

Moonbase

✨ spec_version                : 1400
🏋 size                        : 1236845
#️⃣ sha256                      : 0x9aad4de38ea042b2e29f5b9fb775c028a240ec61257182c27c71fdfa2d73aed3
#️⃣ blake2-256                  : 0x641031f549eb60fd4cfd542fa4168820380690d7629492f80ae46c0b99c14213
🗳️ proposal (authorizeUpgrade) : 0x20c6d1a73dd4df9626916dc6362f7f4ceb163a12a8dfefaa4b8c018c1cac810f

Moonriver

✨ spec_version                : 1400
🏋 size                        : 1223390
#️⃣ sha256                      : 0x8b6343372af9743eb23e4567a4bcff01c9513ac31fb6ff55317712259296248f
#️⃣ blake2-256                  : 0x0b725f3853f3a60bd0e1b04c1c6fa75a13a91cc2e27be4f5091e370bf56f9e3f
🗳️ proposal (authorizeUpgrade) : 0x70d1e26882c2a3897a706b6046d22828ac1aaf379b215f8cfffb4b904c4baf6f

Moonbeam

✨ spec_version                : 1400
🏋 size                        : 1222194
#️⃣ sha256                      : 0xef73119d774cdbfcdf8ff97edc0509d686c4ac9470e55108dd226f792a49af9d
#️⃣ blake2-256                  : 0xdcfc686704bedfa72730f6d9116158b7d7934e29c3ad0151b9d4e1f58cdc83c5
🗳️ proposal (authorizeUpgrade) : 0x2e0d919d97b898fa8cacac1ee75a52ec391e4ac4fbca3e2f8994eeb2d4dfc3c5

Build information

WASM runtime built using rustc 1.57.0 (f1edd0429 2021-11-29)

Breaking changes

  • Event baseFee.newBaseFeePerGas is no longer emitted. (It was previously added at each block)
  • CurrencyId enum OtherReserve has been renamed to ForeignAsset
  • register_asset extrinsic changes to register_foreign_asset

Changes

  • Add asset removal extrinsics for asset manager and xcm transactor (#1223)
  • 0.9.17 Dependency Upgrade (#1319)
  • Fix non-deterministic build (use paste! instead of gensym!) (#1328)
  • Add fallback mechanism for staking collator selection (#1326)
  • Remove all unwrap() in production code (#1327)
  • Split xcm config file (#1317)
  • Enable democracy precompile for moonbeam (#1352)
  • Add support to XCM transact from non-sovereign origin (#1336)
  • Benchmark pallet author slot filter (#1337)
  • Use ConstX types when possible (#1334)
  • Improve xcm execution support during maintenance-mode (#1359)
  • Expose staking.selectedCandidates: Vec<AccountId> in precompile (#1366)
  • v0.9.18 deps update (#1372)
  • Add transfer multcurriencies to precompiles (#1360)
  • Implement local assets (#1279)
  • Add local assets to Moonbeam, without them being transferrable through xcm (#1389)
  • Upgrades runtime to 1400 (#1393)

Dependency changes

Moonbeam: runtime-1300...runtime-1400
Substrate: moonbeam-foundation/substrate@570b21a...fc3fd07
Polkadot: moonbeam-foundation/polkadot@c028a34...f0dc95a
Cumulus: moonbeam-foundation/cumulus@c92f0ab...76cf464
Frontier: moonbeam-foundation/frontier@a74529a...8574920

Moonbeam v0.22.0

05 Apr 17:04
9fa830c
Compare
Choose a tag to compare

Priority

  • low (no requirement to deploy before runtime 1400)

Breaking changes

  • moonbeam binary --eth-log-block-cache & --eth-statuses-cache are now using byte size instead of block counts.

New prometheus metrics

#1371 added 6 new prometheus metrics:

  • moonbeam_frontier_eth_blocks_cache_size: size of the blocks cache in bytes
  • moonbeam_frontier_eth_blocks_cache_hits: hits of the blocks cache since the node starting
  • moonbeam_frontier_eth_blocks_cache_miss: miss of the blocks cache since the node starting
  • moonbeam_frontier_eth_statuses_cache_size: size of the statuses cache in bytes
  • moonbeam_frontier_eth_statuses_cache_hits: hits of the statuses cache since the node starting
  • moonbeam_frontier_eth_statuses_cache_miss: miss of the blocks statuses since the node starting

Changes

Dependency changes

Moonbeam: v0.21.1...v0.22.0
Substrate: moonbeam-foundation/substrate@c84f200...fc3fd07
Polkadot: moonbeam-foundation/polkadot@66cb46b...f0dc95a
Cumulus: moonbeam-foundation/cumulus@b43fcff...76cf464
Frontier: moonbeam-foundation/frontier@e37f7d9...8574920

Moonbeam v0.21.1

10 Mar 05:14
bd30482
Compare
Choose a tag to compare

Priority

  • RPC Nodes: High - prevents eth_feeHistory request to crash node
  • Collators: Low

Breaking change

  • Metrics in prometheus are new using moonbeam_ prefix (see #1329).
    (This is likely to change in the next release to remove addition substrate_ prefix)

Changes

  • Fix wrong "to" value in tracing for DelegateCall (#1299)
  • Remove all unwrap() in production code (#1327)
  • use 'moonbeam' prefix when emitting prometheus metrics (#1329)
  • Pin frontier e37f7d9 (fix fee history unwrap) (#1341)
  • Update client version to v0.21.1 (#1346)

Dependency changes

Moonbeam: v0.21.0...v0.21.1
Substrate: moonbeam-foundation/substrate@c84f200...c84f200
Polkadot: moonbeam-foundation/polkadot@66cb46b...66cb46b
Cumulus: moonbeam-foundation/cumulus@b43fcff...b43fcff
Frontier: moonbeam-foundation/frontier@2be428c...e37f7d9

Moonbeam v0.21.0

26 Feb 20:30
0c89b92
Compare
Choose a tag to compare

Targeted deployment:

  • Alphanet: Saturday 26th Feb 2022
  • Moonriver: Monday 28th Feb 2022
  • Moonbeam: Wednesday 2nd Mar 2022

Changes

  • Pin frontier eth_call return code instead address (#1303)
  • Fix client debug unwrap issue (#1276)
  • Remove perf-test sys-info feature (#1192)
  • 0.9.17 Dependency Upgrade (#1319)
  • Fix issues from migrating to clap v3 (#1324)

Dependency changes

Moonbeam: v0.20.1...v0.21.0
Substrate: moonbeam-foundation/substrate@570b21a...c84f200
Polkadot: moonbeam-foundation/polkadot@c028a34...66cb46b
Cumulus: moonbeam-foundation/cumulus@c92f0ab...b43fcff
Frontier: moonbeam-foundation/frontier@07021fa...2be428c

Runtime 1300

25 Feb 02:59
4c937d5
Compare
Choose a tag to compare

Description

This runtime includes breaking changes on the api of asset-manager, detailed here:

Substrate API (PolkadotJS)⚠️Breaking Change⚠️

Asset manager query changes

Querying the account assets is now returning an Optional value:

  • runtime 1201: api.query.assets.account(assetId, accountId) => PalletAssetsAssetAccount
  • runtime 1300: api.query.assets.account(assetId, accountId) => Option<PalletAssetsAssetAccount>

This code snippet allows to support both:

const accountAssetData = await apiAt.query.assets.account(assetId, accountId);
if (!accountAssetData.isEmpty) {

  const accountAsset: PalletAssetsAssetAccount =
     unwrap" in accountAssetData ? accountAssetData.unwrap() : (accountAssetData as any);

  console.log(`Account balance is ${accountAsset.balance.toBigInt()}`);
}

A new storage item name SupportedFeePaymentAssets, being a vector Vec<AssetType>, which holds the assets that we accept for xcm fee payment

A new extrinsic RemoveSupportedAsset(asset, numAssetsWeightHint), where asset:AssetType is the asset to be removed and numAssetsWeightHint refers to the number of supported assets for fee payment (length of SupportedFeePaymentAssets) in storage.

⚠️ Additionally, the following extrinsics now ask for a weight hint

  • SetAssetUnitsPerSecond: an additional parameternumAssetsWeightHint needs to be passed, being the number of supported assets for fee payment (length of SupportedFeePaymentAssets) in storage.

  • ChangeExistingAssetType: an additional parameternumAssetsWeightHint needs to be passed, being the number of supported assets for fee payment (length of SupportedFeePaymentAssets) in storage.

Runtimes

Moonbase

✨ spec_version                : 1300
🏋 size                        : 1189429
#️⃣ sha256                      : 0xb335022301b9e6c56ff138633f906ce4899219f933feba2bbec2a4ac6622ea05
#️⃣ blake2-256                  : 0x690d1ed6d7237dc125c2e7383f2311b8c63e7e3ad4f401c02ab1d5e9a978f57f
🗳️ proposal (authorizeUpgrade) : 0xe41818e42f268f978e10fe50a6971e4314b0aeeddf3770fc3bad1f5544139fa5

Moonriver

✨ spec_version                : 1300
🏋 size                        : 1181500
#️⃣ sha256                      : 0x93828da89060e3d613997bcbe80c1d3c8125939cc848132d3c8f4aa4c62bfebe
#️⃣ blake2-256                  : 0xe4f8ad20bdf5fe62ec43732a6ae819e47f9bb15c1b9e650da171b06962f0a376
🗳️ proposal (authorizeUpgrade) : 0x6e9b0600fddd82f740f0a883e52804b65d9e1ef728c3f3f7a42ee7f929757cd8

Moonbeam

✨ spec_version                : 1300
🏋 size                        : 1164678
#️⃣ sha256                      : 0xdb1dc47e1775b51d509c281b7dca882f7db67e85f68ec27e6f15b4e31414bacc
#️⃣ blake2-256                  : 0xc18b6d14021a066f196d84f508978d34818094a083dca7841f8b5437f6140047
🗳️ proposal (authorizeUpgrade) : 0x02666936739fa8a5f9ed1873ecd3cce32b65d67ce6fdd3099e5ba00d53cb57c7

Build information

WASM runtime built using rustc 1.56.1 (59eed8a2a 2021-11-01)

Changes

  • 0.9.16 dependency upgrade (#1273)
  • Fix Staking total delegations mismatch (#1291)
  • Add BaseFeePerGas storage value update to migration code (#1298)
  • Add field names to pallet Event variants (#1277)
  • Uncomment event and pin to new xtokens commit (#1292)
  • Add GLMR ERC20 precompile on Moonbeam (#1308)
  • Enable native asset cross chain transfer in moonriver (#1236)
  • Fix removing request when delegation is kicked from bottom (#1307)
  • Supported fee payment assets storage (#1118)

Dependency changes

Moonbeam: runtime-1201...runtime-1300
Substrate: moonbeam-foundation/substrate@3a5aa8c...570b21a
Polkadot: moonbeam-foundation/polkadot@ac51d9b...c028a34
Cumulus: moonbeam-foundation/cumulus@0f82e1f...c92f0ab
Frontier: moonbeam-foundation/frontier@0b66a77...a74529a

Moonbeam v0.20.1

12 Feb 13:02
26bfea9
Compare
Choose a tag to compare

Priority

  • RPC Node => ‼️ HIGH: This is a high priority release and you must upgrade as as soon as possible.
  • Collator => Low

Changes

  • Fixes schema cache bug by removing the cache for now (#1282)
  • Create client v0.20.1 (#1283)

Dependency changes

Moonbeam: v0.20.0...v0.20.1
Substrate: moonbeam-foundation/substrate@570b21a...570b21a
Polkadot: moonbeam-foundation/polkadot@c028a34...c028a34
Cumulus: moonbeam-foundation/cumulus@c92f0ab...c92f0ab
Frontier: moonbeam-foundation/frontier@75183a3...07021fa