Skip to content

Commit 5cfffa9

Browse files
committed
Merge branch 'master' of github.com:AstarNetwork/Astar
2 parents a3cf9fe + 4b76262 commit 5cfffa9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+7533
-3151
lines changed

.github/scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"dependencies": {
66
"@polkadot/util-crypto": "^10.1.10",
7-
"octokit": "^2.0.7",
7+
"octokit": "^3.1.2",
88
"ts-node": "^10.9.1",
99
"typescript": "^4.8.4",
1010
"yargs": "^17.6.0"

.github/scripts/yarn.lock

+209-254
Large diffs are not rendered by default.

.github/workflows/coverage.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions-rs/tarpaulin@v0.1
4848
with:
4949
version: 0.22.0
50-
args: '--workspace -e astar-collator xcm-tools local-runtime shibuya-runtime shiden-runtime astar-runtime integration-tests --exclude-files vendor/* bin/* runtime/* tests/* **/mock.rs **/weights.rs precompiles/utils/*'
50+
args: '--workspace --features try-runtime,runtime-benchmarks -e astar-collator xcm-tools local-runtime shibuya-runtime shiden-runtime astar-runtime integration-tests --exclude-files vendor/* bin/* runtime/* tests/* **/mock.rs **/weights.rs precompiles/utils/*'
5151
out-type: Xml
5252

5353
- name: Code Coverage Summary Report

Cargo.lock

+72-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot",
255255
cumulus-pallet-xcm = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.43", default-features = false }
256256
xcm = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.43", default-features = false }
257257
pallet-xcm = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.43", default-features = false }
258+
pallet-xcm-benchmarks = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.43", default-features = false }
258259
xcm-builder = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.43", default-features = false }
259260
xcm-executor = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.43", default-features = false }
260261
xcm-simulator = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.43", default-features = false }
@@ -282,6 +283,7 @@ pallet-ethereum-checked = { path = "./pallets/ethereum-checked", default-feature
282283
pallet-inflation = { path = "./pallets/inflation", default-features = false }
283284
pallet-dynamic-evm-base-fee = { path = "./pallets/dynamic-evm-base-fee", default-features = false }
284285
pallet-unified-accounts = { path = "./pallets/unified-accounts", default-features = false }
286+
astar-xcm-benchmarks = { path = "./pallets/astar-xcm-benchmarks", default-features = false }
285287
pallet-static-price-provider = { path = "./pallets/static-price-provider", default-features = false }
286288

287289
dapp-staking-v3-runtime-api = { path = "./pallets/dapp-staking-v3/rpc/runtime-api", default-features = false }
@@ -297,6 +299,7 @@ pallet-evm-precompile-xvm = { path = "./precompiles/xvm", default-features = fal
297299
pallet-evm-precompile-dapps-staking = { path = "./precompiles/dapps-staking", default-features = false }
298300
pallet-evm-precompile-dapp-staking-v3 = { path = "./precompiles/dapp-staking-v3", default-features = false }
299301
pallet-evm-precompile-unified-accounts = { path = "./precompiles/unified-accounts", default-features = false }
302+
pallet-evm-precompile-dispatch-lockdrop = { path = "./precompiles/dispatch-lockdrop", default-features = false }
300303

301304
pallet-chain-extension-xvm = { path = "./chain-extensions/xvm", default-features = false }
302305
pallet-chain-extension-assets = { path = "./chain-extensions/pallet-assets", default-features = false }

bin/collator/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "astar-collator"
3-
version = "5.28.0"
3+
version = "5.31.0"
44
description = "Astar collator implementation in Rust."
55
build = "build.rs"
66
default-run = "astar-collator"

bin/collator/src/parachain/chain_spec/shibuya.rs

-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ fn make_genesis(
176176
Permill::from_percent(30),
177177
Permill::from_percent(40),
178178
],
179-
// TODO: adjust this if needed
180179
tier_thresholds: vec![
181180
TierThreshold::DynamicTvlAmount {
182181
amount: 100 * SBY,
@@ -194,7 +193,6 @@ fn make_genesis(
194193
],
195194
slots_per_tier: vec![10, 20, 30, 40],
196195
},
197-
// TODO: adjust this if needed
198196
inflation: InflationConfig {
199197
params: InflationParameters::default(),
200198
},

bin/collator/src/parachain/chain_spec/shiden.rs

+37-14
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121
use cumulus_primitives_core::ParaId;
2222
use sc_service::ChainType;
2323
use shiden_runtime::{
24-
wasm_binary_unwrap, AccountId, AuraId, Balance, BlockRewardConfig, EVMConfig,
25-
ParachainInfoConfig, Precompiles, RewardDistributionConfig, Signature, SystemConfig, SDN,
24+
wasm_binary_unwrap, AccountId, AuraId, Balance, DappStakingConfig, EVMConfig, InflationConfig,
25+
InflationParameters, ParachainInfoConfig, Precompiles, Signature, SystemConfig, TierThreshold,
26+
SDN,
2627
};
2728
use sp_core::{sr25519, Pair, Public};
2829

2930
use sp_runtime::{
3031
traits::{IdentifyAccount, Verify},
31-
Perbill,
32+
Permill,
3233
};
3334

3435
use super::{get_from_seed, Extensions};
@@ -111,17 +112,6 @@ fn make_genesis(
111112
},
112113
parachain_info: ParachainInfoConfig { parachain_id },
113114
balances: shiden_runtime::BalancesConfig { balances },
114-
block_reward: BlockRewardConfig {
115-
// Make sure sum is 100
116-
reward_config: RewardDistributionConfig {
117-
treasury_percent: Perbill::from_percent(40),
118-
base_staker_percent: Perbill::from_percent(25),
119-
dapps_percent: Perbill::from_percent(25),
120-
collators_percent: Perbill::from_percent(10),
121-
adjustable_percent: Perbill::from_percent(0),
122-
ideal_dapps_staking_tvl: Perbill::from_percent(0),
123-
},
124-
},
125115
vesting: shiden_runtime::VestingConfig { vesting: vec![] },
126116
session: shiden_runtime::SessionConfig {
127117
keys: authorities
@@ -160,6 +150,39 @@ fn make_genesis(
160150
assets: Default::default(),
161151
parachain_system: Default::default(),
162152
transaction_payment: Default::default(),
153+
dapp_staking: DappStakingConfig {
154+
reward_portion: vec![
155+
Permill::from_percent(40),
156+
Permill::from_percent(30),
157+
Permill::from_percent(20),
158+
Permill::from_percent(10),
159+
],
160+
slot_distribution: vec![
161+
Permill::from_percent(10),
162+
Permill::from_percent(20),
163+
Permill::from_percent(30),
164+
Permill::from_percent(40),
165+
],
166+
tier_thresholds: vec![
167+
TierThreshold::DynamicTvlAmount {
168+
amount: 30000 * SDN,
169+
minimum_amount: 20000 * SDN,
170+
},
171+
TierThreshold::DynamicTvlAmount {
172+
amount: 7500 * SDN,
173+
minimum_amount: 5000 * SDN,
174+
},
175+
TierThreshold::DynamicTvlAmount {
176+
amount: 20000 * SDN,
177+
minimum_amount: 15000 * SDN,
178+
},
179+
TierThreshold::FixedTvlAmount { amount: 5000 * SDN },
180+
],
181+
slots_per_tier: vec![10, 20, 30, 40],
182+
},
183+
inflation: InflationConfig {
184+
params: InflationParameters::default(),
185+
},
163186
}
164187
}
165188

0 commit comments

Comments
 (0)