Skip to content

Commit

Permalink
Release v4.0.2 (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Reif committed Feb 21, 2023
1 parent 6719c8a commit 2a00d11
Show file tree
Hide file tree
Showing 35 changed files with 393 additions and 377 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration_test_calamari.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
AWS_INSTANCE_ROOT_VOLUME_SIZE: 32
AWS_IMAGE_SEARCH_PATTERN: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*
AWS_IMAGE_SEARCH_OWNERS: '["099720109477"]'
POLKADOT_BINARY: https://github.com/paritytech/polkadot/releases/download/v0.9.36/polkadot
POLKADOT_BINARY: https://github.com/paritytech/polkadot/releases/download/v0.9.38/polkadot
jobs:
print-rust-versions:
if: contains(github.event.pull_request.labels.*.name, 'A-calamari' || github.ref == 'refs/heads/manta')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_test_dolphin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
AWS_INSTANCE_ROOT_VOLUME_SIZE: 32
AWS_IMAGE_SEARCH_PATTERN: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*
AWS_IMAGE_SEARCH_OWNERS: '["099720109477"]'
POLKADOT_BINARY: https://github.com/paritytech/polkadot/releases/download/v0.9.36/polkadot
POLKADOT_BINARY: https://github.com/paritytech/polkadot/releases/download/v0.9.38/polkadot
jobs:
print-rust-versions:
if: contains(github.event.pull_request.labels.*.name, 'A-dolphin' || github.ref == 'refs/heads/manta')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/metadata_diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
inputs:
reference_binary:
description: The link to the reference binary, which should be the previous release.
default: https://github.com/Manta-Network/Manta/releases/download/v3.4.3/manta
default: https://github.com/Manta-Network/Manta/releases/download/v4.0.1/manta
required: true
chain:
description: The name of the chain under test. Usually, you would pass a local chain
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/runtime_upgrade_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ env:
AWS_INSTANCE_ROOT_VOLUME_SIZE: 32
AWS_IMAGE_SEARCH_PATTERN: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*
AWS_IMAGE_SEARCH_OWNERS: '["099720109477"]'
POLKADOT_BINARY: https://github.com/paritytech/polkadot/releases/download/v0.9.36/polkadot
MANTA_BINARY: https://github.com/Manta-Network/Manta/releases/download/v3.4.3/manta
POLKADOT_BINARY: https://github.com/paritytech/polkadot/releases/download/v0.9.38/polkadot
MANTA_BINARY: https://github.com/Manta-Network/Manta/releases/download/v4.0.1/manta
jobs:
print-rust-versions:
if: ${{ startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release-') || github.ref == 'refs/heads/manta' }}
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# CHANGELOG

## v4.0.2
### Added
- [\#1017](https://github.com/Manta-Network/Manta/pull/1017) github action for relaychain genesis files [MA]

### Changed
- [\#1015](https://github.com/Manta-Network/Manta/pull/1015) Re-new MantaPay precomputed coins and re-enable tests [CADO]

### Fixed
- [\#968](https://github.com/Manta-Network/Manta/pull/968) fix benchmarks, paraID and genesis [MA]

## v4.0.1
### Added
- [\#870](https://github.com/Manta-Network/Manta/pull/870) Manual seal mode for dev [CADO]
Expand Down
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = 'GPL-3.0'
name = 'manta'
repository = 'https://github.com/Manta-Network/Manta/'
rust-version = '1.62'
version = '4.0.1'
version = '4.0.2'

[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
Expand Down
2 changes: 1 addition & 1 deletion pallets/asset-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ homepage = "https://manta.network"
license = "GPL-3.0"
name = "pallet-asset-manager"
repository = 'https://github.com/Manta-Network/Manta/'
version = '4.0.1'
version = '4.0.2'

[dependencies]
codec = { package = "parity-scale-codec", version = "3.1.2", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion pallets/collator-selection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = 'GPL-3.0'
name = 'manta-collator-selection'
readme = 'README.md'
repository = 'https://github.com/Manta-Network/Manta/'
version = '4.0.1'
version = '4.0.2'

[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
Expand Down
12 changes: 6 additions & 6 deletions pallets/collator-selection/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ fn cannot_register_dupe_candidate() {
#[test]
fn cannot_register_as_candidate_if_poor() {
new_test_ext().execute_with(|| {
assert_eq!(Balances::free_balance(&3), 100);
assert_eq!(Balances::free_balance(&33), 0);
assert_eq!(Balances::free_balance(3), 100);
assert_eq!(Balances::free_balance(33), 0);

// works
assert_ok!(CollatorSelection::register_as_candidate(Origin::signed(3)));
Expand All @@ -314,14 +314,14 @@ fn register_as_candidate_works() {
assert_eq!(CollatorSelection::invulnerables(), vec![1, 2]);

// take two endowed, non-invulnerables accounts.
assert_eq!(Balances::free_balance(&3), 100);
assert_eq!(Balances::free_balance(&4), 100);
assert_eq!(Balances::free_balance(3), 100);
assert_eq!(Balances::free_balance(4), 100);

assert_ok!(CollatorSelection::register_as_candidate(Origin::signed(3)));
assert_ok!(CollatorSelection::register_as_candidate(Origin::signed(4)));

assert_eq!(Balances::free_balance(&3), 90);
assert_eq!(Balances::free_balance(&4), 90);
assert_eq!(Balances::free_balance(3), 90);
assert_eq!(Balances::free_balance(4), 90);

assert_eq!(CollatorSelection::candidates().len(), 2);
});
Expand Down
2 changes: 1 addition & 1 deletion pallets/manta-pay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = 'GPL-3.0'
name = 'pallet-manta-pay'
readme = 'README.md'
repository = 'https://github.com/Manta-Network/Manta/'
version = '4.0.1'
version = '4.0.2'

[package.metadata.docs.rs]
# To build locally:
Expand Down
2 changes: 1 addition & 1 deletion pallets/parachain-staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage = 'https://manta.network'
license = 'GPL-3.0'
name = "pallet-parachain-staking"
repository = 'https://github.com/Manta-Network/Manta/'
version = '4.0.1'
version = '4.0.2'

[dependencies]
log = { version = "0.4", default-features = false }
Expand Down
30 changes: 16 additions & 14 deletions pallets/parachain-staking/src/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ fn create_funded_collator<T: Config>(
} else {
total
};
let number_candidates = Pallet::<T>::total_selected();
Pallet::<T>::join_candidates(
RawOrigin::Signed(user.clone()).into(),
bond,
candidate_count,
number_candidates + candidate_count,
)?;
Ok(user)
}
Expand Down Expand Up @@ -202,7 +203,7 @@ benchmarks! {
candidate_count += 1u32;
}
let (caller, min_candidate_stk) = create_funded_user::<T>("caller", USER_SEED, 0u32.into());
}: _(RawOrigin::Signed(caller.clone()), min_candidate_stk, candidate_count)
}: _(RawOrigin::Signed(caller.clone()), min_candidate_stk, Pallet::<T>::total_selected() + candidate_count)
verify {
assert!(Pallet::<T>::is_candidate(&caller));
}
Expand Down Expand Up @@ -232,7 +233,7 @@ benchmarks! {
candidate_count,
)?;
candidate_count += 1u32;
}: _(RawOrigin::Signed(caller.clone()), candidate_count)
}: _(RawOrigin::Signed(caller.clone()), Pallet::<T>::total_selected() + candidate_count)
verify {
assert!(Pallet::<T>::candidate_info(&caller).unwrap().is_leaving());
}
Expand Down Expand Up @@ -284,7 +285,7 @@ benchmarks! {
}
Pallet::<T>::schedule_leave_candidates(
RawOrigin::Signed(candidate.clone()).into(),
3u32
Pallet::<T>::total_selected() + 2u32
)?;
roll_to_and_author::<T>(<<T as Config>::LeaveCandidatesDelay as Get<u32>>::get(), candidate.clone());
}: _(RawOrigin::Signed(candidate.clone()), candidate.clone(), col_del_count)
Expand Down Expand Up @@ -318,13 +319,11 @@ benchmarks! {
true,
candidate_count,
)?;
candidate_count += 1u32;
Pallet::<T>::schedule_leave_candidates(
RawOrigin::Signed(caller.clone()).into(),
candidate_count
Pallet::<T>::total_selected() + candidate_count
)?;
candidate_count -= 1u32;
}: _(RawOrigin::Signed(caller.clone()), candidate_count)
}: _(RawOrigin::Signed(caller.clone()), Pallet::<T>::total_selected() + candidate_count)
verify {
assert!(Pallet::<T>::candidate_info(&caller).unwrap().is_active());
}
Expand Down Expand Up @@ -659,15 +658,16 @@ benchmarks! {
true,
1u32
)?;
let (caller, total) = create_funded_user::<T>("caller", USER_SEED, 0u32.into());
let delegator_bond = <<T as Config>::MinDelegatorStk as Get<BalanceOf<T>>>::get();
let (caller, total) = create_funded_user::<T>("caller", USER_SEED, delegator_bond * 2u32.into());
Pallet::<T>::delegate(RawOrigin::Signed(
caller.clone()).into(),
collator.clone(),
total,
0u32,
0u32
)?;
let bond_less = <<T as Config>::MinDelegatorStk as Get<BalanceOf<T>>>::get();
let bond_less = delegator_bond;
}: _(RawOrigin::Signed(caller.clone()), collator.clone(), bond_less)
verify {
let state = Pallet::<T>::delegator_state(&caller)
Expand Down Expand Up @@ -724,15 +724,16 @@ benchmarks! {
true,
1u32
)?;
let (caller, total) = create_funded_user::<T>("caller", USER_SEED, 0u32.into());
let delegator_bond = <<T as Config>::MinDelegatorStk as Get<BalanceOf<T>>>::get();
let (caller, total) = create_funded_user::<T>("caller", USER_SEED, delegator_bond * 2u32.into());
Pallet::<T>::delegate(RawOrigin::Signed(
caller.clone()).into(),
collator.clone(),
total,
0u32,
0u32
)?;
let bond_less = <<T as Config>::MinDelegatorStk as Get<BalanceOf<T>>>::get();
let bond_less = delegator_bond;
Pallet::<T>::schedule_delegator_bond_less(
RawOrigin::Signed(caller.clone()).into(),
collator.clone(),
Expand Down Expand Up @@ -794,15 +795,16 @@ benchmarks! {
true,
1u32
)?;
let (caller, total) = create_funded_user::<T>("caller", USER_SEED, 0u32.into());
let delegator_bond = <<T as Config>::MinDelegatorStk as Get<BalanceOf<T>>>::get();
let (caller, total) = create_funded_user::<T>("caller", USER_SEED, delegator_bond * 2u32.into());
Pallet::<T>::delegate(RawOrigin::Signed(
caller.clone()).into(),
collator.clone(),
total,
0u32,
0u32
)?;
let bond_less = <<T as Config>::MinDelegatorStk as Get<BalanceOf<T>>>::get();
let bond_less = delegator_bond;
Pallet::<T>::schedule_delegator_bond_less(
RawOrigin::Signed(caller.clone()).into(),
collator.clone(),
Expand Down
2 changes: 1 addition & 1 deletion pallets/tx-pause/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ homepage = 'https://manta.network'
license = 'GPL-3.0'
name = "pallet-tx-pause"
repository = 'https://github.com/Manta-Network/Manta/'
version = '4.0.1'
version = '4.0.2'

[dependencies]
codec = { package = "parity-scale-codec", version = '3.1.2', default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion pallets/vesting/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ homepage = 'https://manta.network'
license = 'GPL-3.0'
name = "calamari-vesting"
repository = 'https://github.com/Manta-Network/Manta/'
version = '4.0.1'
version = '4.0.2'

[dependencies]
codec = { package = "parity-scale-codec", version = '3.1.2', default-features = false, features = ["derive", "max-encoded-len"] }
Expand Down
2 changes: 1 addition & 1 deletion primitives/manta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ homepage = 'https://manta.network'
license = 'GPL-3.0'
name = "manta-primitives"
repository = 'https://github.com/Manta-Network/Manta/'
version = '4.0.1'
version = '4.0.2'

[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
Expand Down
2 changes: 1 addition & 1 deletion primitives/session-keys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Primitives for session keys"
edition = "2021"
license = "GPL-3.0"
name = "session-key-primitives"
version = '4.0.1'
version = '4.0.2'

[dependencies]
manta-primitives = { path = "../manta", default-features = false }
Expand Down
Loading

0 comments on commit 2a00d11

Please sign in to comment.