Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

DMP Queue pallet #416

Merged
merged 51 commits into from
May 2, 2021
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
5ecc385
Introduce the converter into the hub
gavofyork Apr 16, 2021
cbf93d6
Parachain recognises Rococo governance body as admin
gavofyork Apr 16, 2021
7101caf
Whitespace
gavofyork Apr 16, 2021
1ccc9d6
Use UsingComponents for fee payment in XCM
gavofyork Apr 17, 2021
1c6c1a4
Fixes
gavofyork Apr 19, 2021
7b943e1
Merge remote-tracking branch 'origin/master' into gav-parachain-xcm-o…
gavofyork Apr 19, 2021
b9a0a9e
Fixes for XCM permissions
gavofyork Apr 26, 2021
04f770f
Remove encode_call test
gavofyork Apr 27, 2021
9a1d0c7
Fixes
gavofyork Apr 27, 2021
4292277
Merge remote-tracking branch 'origin/master' into gav-parachain-xcm-o…
gavofyork Apr 27, 2021
aa1dbae
Rococo Collator supports Shell runtime
gavofyork Apr 27, 2021
61de1e4
Fixes
gavofyork Apr 27, 2021
4e08f1c
Fixes
gavofyork Apr 27, 2021
22220e3
Merge branch 'gav-parachain-xcm-origin-demo' into gav-native-shell
gavofyork Apr 27, 2021
c89ba06
Merge remote-tracking branch 'origin/master' into gav-parachain-xcm-o…
gavofyork Apr 27, 2021
73e2526
Merge branch 'gav-parachain-xcm-origin-demo' into gav-native-shell
gavofyork Apr 27, 2021
adf628a
Initial draft of DMP Queue pallet
gavofyork Apr 28, 2021
e10885c
DMP Queue builds.
gavofyork Apr 28, 2021
b335d96
Merge remote-tracking branch 'origin/master' into gav-native-shell
gavofyork Apr 28, 2021
a30ba75
Merge branch 'gav-native-shell' into gav-dmp-queue
gavofyork Apr 28, 2021
f0ef65e
Companion for Polkadot gav-allow-xcm-exec
gavofyork Apr 28, 2021
85c7a61
Bump
gavofyork Apr 28, 2021
1c2d5a3
Merge remote-tracking branch 'origin/master' into gav-dmp-queue
gavofyork Apr 29, 2021
d0e38a0
Fix std
gavofyork Apr 29, 2021
34f15ed
Fixes
gavofyork Apr 29, 2021
7a1c117
Fixes
gavofyork Apr 29, 2021
ca16302
fix and improve docs
apopiak Apr 29, 2021
fdce56c
fix compile errors in tests
apopiak Apr 29, 2021
8c3292c
add test for try_service_message
apopiak Apr 29, 2021
9edcd9c
Merge branch 'gav-dmp-queue' of github.com:paritytech/cumulus into ga…
apopiak Apr 29, 2021
05bb68e
update cargo.lock
apopiak Apr 29, 2021
caa242b
Fixes
gavofyork Apr 29, 2021
81c6fbf
Make test name read well
gavofyork Apr 29, 2021
371622f
Fixes
gavofyork Apr 29, 2021
509aacc
Add a couple of simple tests
gavofyork Apr 30, 2021
477c5f8
Tests
gavofyork Apr 30, 2021
951a530
Tests
gavofyork Apr 30, 2021
0ef1e9c
Update pallets/dmp-queue/src/lib.rs
gavofyork Apr 30, 2021
1bf1548
Update pallets/dmp-queue/src/lib.rs
gavofyork Apr 30, 2021
fc8b564
Update pallets/dmp-queue/src/lib.rs
gavofyork Apr 30, 2021
5e1ced9
Update pallets/dmp-queue/src/lib.rs
gavofyork Apr 30, 2021
93c7cb3
Update pallets/dmp-queue/src/lib.rs
gavofyork Apr 30, 2021
2847c61
Update pallets/dmp-queue/src/lib.rs
gavofyork Apr 30, 2021
1202f93
Update pallets/dmp-queue/src/lib.rs
gavofyork Apr 30, 2021
3309827
Chain ID and ParaID don't collide
gavofyork Apr 30, 2021
fca486a
Fixes
gavofyork Apr 30, 2021
3de9532
Merge branch 'gav-dmp-queue' of github.com:paritytech/cumulus into ga…
gavofyork Apr 30, 2021
2c4077d
Merge remote-tracking branch 'origin/master' into gav-dmp-queue
gavofyork Apr 30, 2021
9e919b3
Update pallets/dmp-queue/src/lib.rs
gavofyork May 2, 2021
f30c0a6
Update pallets/dmp-queue/src/lib.rs
gavofyork May 2, 2021
d0fb41a
Fixes
gavofyork May 2, 2021
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
Prev Previous commit
Next Next commit
Fixes
gavofyork committed Apr 27, 2021
commit 9a1d0c7ecb375a62a556c015c5f30af7b980041a
31 changes: 16 additions & 15 deletions rococo-parachains/runtime/src/lib.rs
Original file line number Diff line number Diff line change
@@ -94,6 +94,10 @@ pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);
pub const HOURS: BlockNumber = MINUTES * 60;
pub const DAYS: BlockNumber = HOURS * 24;

pub const ROC: Balance = 1_000_000_000_000;
pub const MILLIROC: Balance = 1_000_000_000;
pub const MICROROC: Balance = 1_000_000;

// 1 in 4 blocks (on average, not counting collisions) will be primary babe blocks.
pub const PRIMARY_PROBABILITY: (u64, u64) = (1, 4);

@@ -193,10 +197,10 @@ impl pallet_timestamp::Config for Runtime {
}

parameter_types! {
pub const ExistentialDeposit: u128 = 500;
pub const TransferFee: u128 = 0;
pub const CreationFee: u128 = 0;
pub const TransactionByteFee: u128 = 1;
pub const ExistentialDeposit: u128 = 1 * MILLIROC;
pub const TransferFee: u128 = 1 * MILLIROC;
pub const CreationFee: u128 = 1 * MILLIROC;
pub const TransactionByteFee: u128 = 1 * MICROROC;
pub const MaxLocks: u32 = 50;
}

@@ -296,13 +300,10 @@ pub type XcmOriginToTransactDispatchOrigin = (
);

parameter_types! {
pub UnitWeightCost: Weight = 1_000;
}

parameter_types! {
// 1_000_000_000_000 => 1 unit of asset for 1 unit of Weight.
// TODO: Should take the actual weight price. This is just 1_000 ROC per second of weight.
pub const WeightPrice: (MultiLocation, u128) = (X1(Parent), 1_000);
// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.
pub UnitWeightCost: Weight = 1_000_000;
// One ROC buys 1 second of weight.
pub const WeightPrice: (MultiLocation, u128) = (X1(Parent), ROC);
}

macro_rules! match_type {
@@ -389,11 +390,11 @@ impl cumulus_ping::Config for Runtime {
}

parameter_types! {
pub const AssetDeposit: Balance = 100;
pub const ApprovalDeposit: Balance = 1;
pub const AssetDeposit: Balance = 1 * ROC;
pub const ApprovalDeposit: Balance = 100 * MILLIROC;
pub const StringLimit: u32 = 50;
pub const MetadataDepositBase: Balance = 10;
pub const MetadataDepositPerByte: Balance = 1;
pub const MetadataDepositBase: Balance = 1 * ROC;
pub const MetadataDepositPerByte: Balance = 10 * MILLIROC;
pub const UnitBody: BodyId = BodyId::Unit;
}