Skip to content

Commit 6a6a485

Browse files
authored
chore: update types and fix cliff amount (#976)
* update types and vesting cliff * match testnet to mainnet
1 parent b1ca77e commit 6a6a485

File tree

12 files changed

+41692
-19183
lines changed

12 files changed

+41692
-19183
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/mainnet/src/migrations/investor_team_vesting_migration_11302024.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ fn update_vesting_schedule<T: pallet_vesting::Config>(
317317
> = BoundedVec::new();
318318

319319
if bounded_new_schedules
320-
.try_push(VestingInfo::new(cliff_amount, Zero::zero(), one_year_blocks))
320+
.try_push(VestingInfo::new(cliff_amount, cliff_amount, one_year_blocks))
321321
.is_err()
322322
{
323323
info!("Failed to push first vesting schedule");

runtime/testnet/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
180180
spec_name: create_runtime_str!("tangle-testnet"),
181181
impl_name: create_runtime_str!("tangle-testnet"),
182182
authoring_version: 1,
183-
spec_version: 1219, // v1.2.19
183+
spec_version: 1300, // v1.3.0
184184
impl_version: 1,
185185
apis: RUNTIME_API_VERSIONS,
186186
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.14.0"
3+
version = "0.15.0"
44
description = "Rust bindings and interface to interact with Tangle Network using subxt"
55
authors = { workspace = true }
66
edition = { workspace = true }
226 KB
Binary file not shown.
590 Bytes
Binary file not shown.

tangle-subxt/src/tangle_mainnet_runtime.rs

Lines changed: 40716 additions & 17975 deletions
Large diffs are not rendered by default.

tangle-subxt/src/tangle_testnet_runtime.rs

Lines changed: 134 additions & 43 deletions
Large diffs are not rendered by default.

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.19",
3+
"version": "0.9.20",
44
"description": "Polkadot.js type definitions required for interacting with Tangle's tangle network",
55
"author": "Tangle Developers <drew@tangle.network>",
66
"license": "Apache-2.0",

types/src/interfaces/augment-api-consts.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,6 @@ declare module '@polkadot/api-base/types/consts' {
567567
[key: string]: Codec;
568568
};
569569
multiAssetDelegation: {
570-
/**
571-
* The duration for which the stake is locked.
572-
**/
573-
bondDuration: u32 & AugmentedConst<ApiType>;
574570
/**
575571
* Number of rounds that delegation unstake requests must wait before being executable.
576572
**/

0 commit comments

Comments
 (0)