Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pallets/launch/src/data/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Include data files here
pub mod v78;
pub mod v79;
pub mod v80;
pub mod v81;
pub mod v82;
pub mod v83;
pub mod v84;
8 changes: 0 additions & 8 deletions pallets/launch/src/data/v78.rs

This file was deleted.

8 changes: 0 additions & 8 deletions pallets/launch/src/data/v79.rs

This file was deleted.

20 changes: 0 additions & 20 deletions pallets/launch/src/data/v80.rs

This file was deleted.

16 changes: 16 additions & 0 deletions pallets/launch/src/data/v81.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use crate::deposits::RawVestedDepositStage;

use time_primitives::MILLIANLOG;

pub const OPPORTUNITY4_SNAPSHOT_16: RawVestedDepositStage = &[(
"an5s9VGeqXaDZbx4D4vxtiXT6LdxYTSPBZUww6AeCu1jvQdH7",
// total was 4_528_986 * ANLOG
// 10 % TGE = 452_898.6 ANLOG
// remaining = 4_076_087.4 ANLOG
4_076_087_400 * MILLIANLOG,
// starts from TGE = 0 block

// total_vesting_blocks = 12 * 439,200(blocks in a month) = 5,270,400
// per_block = 4,076,087.4 ANLOG / 5,270,400 = 0.773392 ANLOG
Some((4_076_087_400 * MILLIANLOG, 773 * MILLIANLOG, 0)),
)];
6 changes: 6 additions & 0 deletions pallets/launch/src/data/v82.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use crate::deposits::RawDepositStage;

use time_primitives::ANLOG;

pub const STRATEGIC_SNAPSHOT_16: RawDepositStage =
&[("anAgjbcKW3xShfg1GNm2igFrnWCZfLkiL8YwSgxvLoxdWGRVW", 1_508_152 * ANLOG)];
6 changes: 6 additions & 0 deletions pallets/launch/src/data/v83.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use crate::deposits::RawDepositStage;

use time_primitives::ANLOG;

pub const SEED_SNAPSHOT_16: RawDepositStage =
&[("an6oGBdayY68qnb7gk8Rd9vRGca3DEY1NP4JC5YkrVRkWHzSC", 90_579_710 * ANLOG)];
6 changes: 6 additions & 0 deletions pallets/launch/src/data/v84.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use crate::deposits::RawDepositStage;

use time_primitives::ANLOG;

pub const PRIVATE1_SNAPSHOT_16: RawDepositStage =
&[("an6oGBdayY68qnb7gk8Rd9vRGca3DEY1NP4JC5YkrVRkWHzSC", 181_159_420 * ANLOG)];
33 changes: 22 additions & 11 deletions pallets/launch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub mod pallet {
use sp_std::{vec, vec::Vec};

/// Updating this number will automatically execute the next launch stages on update
pub const LAUNCH_VERSION: u16 = 80;
pub const LAUNCH_VERSION: u16 = 84;
/// Wrapped version to support substrate interface as well
pub const STORAGE_VERSION: StorageVersion = StorageVersion::new(LAUNCH_VERSION);

Expand Down Expand Up @@ -187,23 +187,34 @@ pub mod pallet {
(76, Allocation::Strategic, 1_887_077 * ANLOG, Stage::Retired),
(77, Allocation::Team, 542_688_007 * ANLOG, Stage::Retired),
// Investor snapshot 15
(78, Allocation::Team, 1_458_333_330 * MILLIANLOG, Stage::Retired),
(79, Allocation::Strategic, 3_910_025 * ANLOG, Stage::Retired),
(80, Allocation::Private1, 2_368_044 * ANLOG, Stage::Retired),
// Investor snapshot 16
(
78,
Allocation::Team,
1_458_333_330 * MILLIANLOG,
Stage::DepositAsVested(data::v78::TEAM_SNAPSHOT_15),
81,
Allocation::Opportunity4,
// 90% of 4_528_986 * ANLOG
4_076_087_400 * MILLIANLOG,
Stage::DepositAsVestedWithOverride(data::v81::OPPORTUNITY4_SNAPSHOT_16),
),
(
79,
82,
Allocation::Strategic,
3_910_025 * ANLOG,
Stage::DepositAsVested(data::v79::STRATEGIC_SNAPSHOT_15),
1_508_152 * ANLOG,
Stage::DepositAsVested(data::v82::STRATEGIC_SNAPSHOT_16),
),
(
80,
83,
Allocation::Seed,
90_579_710 * ANLOG,
Stage::DepositAsVested(data::v83::SEED_SNAPSHOT_16),
),
(
84,
Allocation::Private1,
2_368_044 * ANLOG,
Stage::DepositAsVestedWithOverride(data::v80::PRIVATE1_SNAPSHOT_15),
181_159_420 * ANLOG,
Stage::DepositAsVested(data::v84::PRIVATE1_SNAPSHOT_16),
),
];

Expand Down
2 changes: 1 addition & 1 deletion pallets/launch/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use polkadot_sdk::*;
use frame_support::traits::StorageVersion;

/// Current expected on-chain stage version to test
const ON_CHAIN_STAGE: u16 = 77;
const ON_CHAIN_STAGE: u16 = 80;
/// Wrapped expected on-chain stage version to test
const ON_CHAIN_VERSION: StorageVersion = StorageVersion::new(ON_CHAIN_STAGE);

Expand Down
8 changes: 4 additions & 4 deletions runtime/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: Cow::Borrowed("analog-timechain"),
impl_name: Cow::Borrowed("analog-timechain"),
authoring_version: 0,
spec_version: 52,
spec_version: 53,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand All @@ -25,7 +25,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: Cow::Borrowed("analog-staging"),
impl_name: Cow::Borrowed("analog-staging"),
authoring_version: 0,
spec_version: 52,
spec_version: 53,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand All @@ -39,7 +39,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: Cow::Borrowed("analog-testnet"),
impl_name: Cow::Borrowed("analog-testnet"),
authoring_version: 0,
spec_version: 52,
spec_version: 53,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand All @@ -53,7 +53,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: Cow::Borrowed("analog-develop"),
impl_name: Cow::Borrowed("analog-develop"),
authoring_version: 0,
spec_version: 52,
spec_version: 53,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
Loading