Skip to content

Commit 754f536

Browse files
authored
release v1.4.2 (#1047)
* chore: change credits to on-delegate * chore: format * chore: fix * chore: format * chore: release v1.4.2 * chore: format
1 parent 8c3f1fc commit 754f536

File tree

10 files changed

+34
-35
lines changed

10 files changed

+34
-35
lines changed

Cargo.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "1.4.1"
2+
version = "1.4.2"
33
authors = ["Tangle Foundation."]
44
edition = "2024"
55
license = "Unlicense"

pallets/credits/src/tests.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ fn tier_switching_upward_works_correctly() {
14521452
// Advance some blocks and verify tier 1 rate (1 credit per block)
14531453
run_to_block(10);
14541454
let max_claimable_1 = get_max_claimable(user.clone());
1455-
assert_eq!(max_claimable_1, 10 * 1, "Should be tier 1 rate");
1455+
assert_eq!(max_claimable_1, 10, "Should be tier 1 rate");
14561456
assert_ok!(claim_credits(user.clone(), max_claimable_1, dave_id_str));
14571457

14581458
// Add more delegation to reach tier 2 (total 1200 tokens)
@@ -1598,7 +1598,7 @@ fn exact_tier_boundaries_work_correctly() {
15981598
let rate_100 = CreditsPallet::<Runtime>::get_current_rate(100u128);
15991599
assert_eq!(rate_100, 1, "Exactly 100 tokens should be tier 1");
16001600
let max_claimable = get_max_claimable(user.clone());
1601-
assert_eq!(max_claimable, 10 * 1, "Should earn tier 1 rate");
1601+
assert_eq!(max_claimable, 10, "Should earn tier 1 rate");
16021602

16031603
// Test one token below tier 1 boundary (99 tokens)
16041604
let rate_99 = CreditsPallet::<Runtime>::get_current_rate(99u128);
@@ -1720,8 +1720,7 @@ fn multiple_delegations_accumulate_tiers_correctly() {
17201720
run_to_block(20);
17211721
let max_claimable_2 = get_max_claimable(user.clone());
17221722
assert_eq!(
1723-
max_claimable_2,
1724-
20 * 1,
1723+
max_claimable_2, 20,
17251724
"Combined delegations should qualify for tier 1 from start"
17261725
);
17271726
assert_ok!(claim_credits(user.clone(), max_claimable_2, dave_id_str));
@@ -1837,7 +1836,7 @@ fn security_cannot_manipulate_tier_calculation() {
18371836
// Advance one block and verify normal accrual
18381837
run_to_block(11);
18391838
let max_claimable_3 = get_max_claimable(user.clone());
1840-
assert_eq!(max_claimable_3, 1 * 5, "Should only accrue for 1 block");
1839+
assert_eq!(max_claimable_3, 5, "Should only accrue for 1 block");
18411840

18421841
// Try to claim more than accrued - should fail
18431842
assert_noop!(
@@ -1918,7 +1917,7 @@ fn concurrent_tier_operations_work_correctly() {
19181917
let claimable1 = get_max_claimable(user1.clone());
19191918
let claimable2 = get_max_claimable(user2.clone());
19201919

1921-
assert_eq!(claimable1, 10 * 1, "User 1 should get tier 1 rate");
1920+
assert_eq!(claimable1, 10, "User 1 should get tier 1 rate");
19221921
assert_eq!(claimable2, 10 * 5, "User 2 should get tier 2 rate");
19231922

19241923
// Both should be able to claim in the same block
@@ -2005,7 +2004,7 @@ fn tier_switching_with_locked_multipliers_works() {
20052004
// The user should be in tier 1 based on total effective stake
20062005
// (150 base * 2 multiplier = 300 effective, which is tier 1)
20072006
let max_claimable = get_max_claimable(user.clone());
2008-
assert_eq!(max_claimable, 10 * 1, "Should get tier 1 rate with lock multiplier");
2007+
assert_eq!(max_claimable, 10, "Should get tier 1 rate with lock multiplier");
20092008
assert_ok!(claim_credits(user.clone(), max_claimable, dave_id_str));
20102009
});
20112010
}

runtime/mainnet/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
163163
spec_name: create_runtime_str!("tangle"),
164164
impl_name: create_runtime_str!("tangle"),
165165
authoring_version: 1,
166-
spec_version: 1401, // v1.4.1
166+
spec_version: 1402, // v1.4.2
167167
impl_version: 1,
168168
apis: RUNTIME_API_VERSIONS,
169169
transaction_version: 1,

runtime/testnet/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
178178
spec_name: create_runtime_str!("tangle-testnet"),
179179
impl_name: create_runtime_str!("tangle-testnet"),
180180
authoring_version: 1,
181-
spec_version: 1401, // v1.4.1
181+
spec_version: 1402, // v1.4.2
182182
impl_version: 1,
183183
apis: RUNTIME_API_VERSIONS,
184184
transaction_version: 1,

tangle-subxt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tangle-subxt"
3-
version = "0.22.0"
3+
version = "0.23.0"
44
description = "Rust bindings and interface to interact with Tangle Network using subxt"
55
authors = { workspace = true }
66
edition = { workspace = true }
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tangle-network/tangle-substrate-types",
3-
"version": "0.9.34",
3+
"version": "0.9.35",
44
"description": "Polkadot.js type definitions required for interacting with Tangle's tangle network",
55
"author": "Tangle Developers <[email protected]>",
66
"license": "Apache-2.0",

types/src/metadata.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)