Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polkadot staging update #1270

Merged
merged 33 commits into from
Dec 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6cd5775
Add `AtLeast32BitUnsigned` for MessageLance::SourceChainBalance (#1207)
fewensa Nov 11, 2021
877e8d0
Fix UI deployment. (#1211)
tomusdrw Nov 15, 2021
9bc071d
Remove unused PoA<>Substrate bridge (#1210)
acatangiu Nov 15, 2021
39140d0
Remove unused `relays/headers` (#1216)
acatangiu Nov 16, 2021
d1541e7
remove abandoned exchange relay (#1217)
svyatonik Nov 17, 2021
6b5cf2b
Unify metric names (#1209)
svyatonik Nov 22, 2021
bd2f8bf
Add CODEOWNERS file (#1219)
sergejparity Nov 22, 2021
ffef6f8
fixed set_operational in GRANDPA pallet (#1226)
svyatonik Nov 24, 2021
98eb9ee
Add mut support (#1232)
fewensa Nov 30, 2021
d94b62b
update dependencies (#1229)
Nov 30, 2021
816ddd2
Integrate BEEFY with Rialto & Millau runtimes (#1227)
acatangiu Nov 30, 2021
cd771f1
Fix storage parameter name computation (#1238)
svyatonik Dec 1, 2021
04d4d1c
Enable Beefy debug logs in test deployment (#1237)
acatangiu Dec 1, 2021
e860fec
Enable offchain indexing for Rialto/Millau nodes (#1239)
tomusdrw Dec 3, 2021
7bf76f1
Update Rococo/Wococo version + prepare relay for Rococo<>Wococo bridg…
svyatonik Dec 3, 2021
f927775
Refactor finality relay helpers (#1220)
svyatonik Dec 3, 2021
c07bba9
Expose prometheus BEEFY metrics and add them to grafana dashboard (#1…
acatangiu Dec 3, 2021
52232d8
Fix transactions mortality (#1196)
svyatonik Dec 6, 2021
a15b4fa
post-merge build fix (#1243)
svyatonik Dec 6, 2021
fed5437
Refactor message relay helpers (#1234)
svyatonik Dec 6, 2021
4fc8a29
Use same endowed accounts set on dev/local chains (#1244)
svyatonik Dec 7, 2021
9ead06a
runtimes: fix call_size() test (#1245)
acatangiu Dec 8, 2021
80c9429
Bump relay version to 1.0.0 (#1249)
tomusdrw Dec 13, 2021
3bc7435
Add missing RPC APIs to rialto parachain node (#1250)
svyatonik Dec 14, 2021
65e51b5
decrease startup sleep to 5s for relays and to 120s for generators + …
svyatonik Dec 14, 2021
4009d97
pin bridges-ci image (#1256)
svyatonik Dec 16, 2021
edfcb74
Change submit transaction spec_version and transaction_version query …
fewensa Dec 16, 2021
4f98840
remporary use pinned bridges-ci image in Dockerfile (#1258)
svyatonik Dec 17, 2021
467ca5e
move storage keys computation to primitivs (#1254)
svyatonik Dec 17, 2021
50ffb5d
override conversion rate in estimate-message-fee RPC (#1189)
svyatonik Dec 17, 2021
82c08c5
read latest_generated_nonce directly from storage (#1260)
svyatonik Dec 21, 2021
9f4b34a
bump rococo version (#1263)
svyatonik Dec 22, 2021
572206f
Merge branch 'master' into polkadot-staging-update
svyatonik Dec 22, 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
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variables: &default-vars
GIT_DEPTH: 100
CARGO_INCREMENTAL: 0
ARCH: "x86_64"
CI_IMAGE: "paritytech/bridges-ci:staging"
CI_IMAGE: "paritytech/bridges-ci:e8a9ef25-20211215"
RUST_BACKTRACE: full

default:
Expand Down
21 changes: 17 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# See the `deployments/README.md` for all the available `PROJECT` values.

FROM paritytech/bridges-ci:latest as builder
FROM paritytech/bridges-ci:e8a9ef25-20211215 as builder
WORKDIR /parity-bridges-common

COPY . .
Expand Down
102 changes: 51 additions & 51 deletions bin/millau/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,7 @@ impl Alternative {
testnet_genesis(
vec![get_authority_keys_from_seed("Alice")],
get_account_id_from_seed::<sr25519::Public>("Alice"),
vec![
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_account_id_from_seed::<sr25519::Public>("Bob"),
get_account_id_from_seed::<sr25519::Public>("Alice//stash"),
get_account_id_from_seed::<sr25519::Public>("Bob//stash"),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Alice"),
)),
],
endowed_accounts(),
true,
)
},
Expand All @@ -120,48 +112,7 @@ impl Alternative {
get_authority_keys_from_seed("Eve"),
],
get_account_id_from_seed::<sr25519::Public>("Alice"),
vec![
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_account_id_from_seed::<sr25519::Public>("Bob"),
get_account_id_from_seed::<sr25519::Public>("Charlie"),
get_account_id_from_seed::<sr25519::Public>("Dave"),
get_account_id_from_seed::<sr25519::Public>("Eve"),
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
get_account_id_from_seed::<sr25519::Public>("George"),
get_account_id_from_seed::<sr25519::Public>("Harry"),
get_account_id_from_seed::<sr25519::Public>("Alice//stash"),
get_account_id_from_seed::<sr25519::Public>("Bob//stash"),
get_account_id_from_seed::<sr25519::Public>("Charlie//stash"),
get_account_id_from_seed::<sr25519::Public>("Dave//stash"),
get_account_id_from_seed::<sr25519::Public>("Eve//stash"),
get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
get_account_id_from_seed::<sr25519::Public>("George//stash"),
get_account_id_from_seed::<sr25519::Public>("Harry//stash"),
get_account_id_from_seed::<sr25519::Public>("RialtoMessagesOwner"),
get_account_id_from_seed::<sr25519::Public>("WithRialtoTokenSwap"),
pallet_bridge_messages::relayer_fund_account_id::<
bp_millau::AccountId,
bp_millau::AccountIdConverter,
>(),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Alice"),
)),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Bob"),
)),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Charlie"),
)),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Dave"),
)),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Eve"),
)),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
)),
],
endowed_accounts(),
true,
)
},
Expand All @@ -175,6 +126,55 @@ impl Alternative {
}
}

/// We're using the same set of endowed accounts on all Millau chains (dev/local) to make
/// sure that all accounts, required for bridge to be functional (e.g. relayers fund account,
/// accounts used by relayers in our test deployments, accounts used for demonstration
/// purposes), are all available on these chains.
fn endowed_accounts() -> Vec<AccountId> {
vec![
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_account_id_from_seed::<sr25519::Public>("Bob"),
get_account_id_from_seed::<sr25519::Public>("Charlie"),
get_account_id_from_seed::<sr25519::Public>("Dave"),
get_account_id_from_seed::<sr25519::Public>("Eve"),
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
get_account_id_from_seed::<sr25519::Public>("George"),
get_account_id_from_seed::<sr25519::Public>("Harry"),
get_account_id_from_seed::<sr25519::Public>("Alice//stash"),
get_account_id_from_seed::<sr25519::Public>("Bob//stash"),
get_account_id_from_seed::<sr25519::Public>("Charlie//stash"),
get_account_id_from_seed::<sr25519::Public>("Dave//stash"),
get_account_id_from_seed::<sr25519::Public>("Eve//stash"),
get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
get_account_id_from_seed::<sr25519::Public>("George//stash"),
get_account_id_from_seed::<sr25519::Public>("Harry//stash"),
get_account_id_from_seed::<sr25519::Public>("RialtoMessagesOwner"),
get_account_id_from_seed::<sr25519::Public>("WithRialtoTokenSwap"),
pallet_bridge_messages::relayer_fund_account_id::<
bp_millau::AccountId,
bp_millau::AccountIdConverter,
>(),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Alice"),
)),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Bob"),
)),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Charlie"),
)),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Dave"),
)),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Eve"),
)),
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
)),
]
}

fn session_keys(aura: AuraId, beefy: BeefyId, grandpa: GrandpaId) -> SessionKeys {
SessionKeys { aura, beefy, grandpa }
}
Expand Down
7 changes: 4 additions & 3 deletions bin/millau/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type FullClient =
type FullBackend = sc_service::TFullBackend<Block>;
type FullSelectChain = sc_consensus::LongestChain<FullBackend, Block>;

#[allow(clippy::type_complexity)]
pub fn new_partial(
config: &Configuration,
) -> Result<
Expand All @@ -89,7 +90,7 @@ pub fn new_partial(
ServiceError,
> {
if config.keystore_remote.is_some() {
return Err(ServiceError::Other(format!("Remote Keystores are not supported.")))
return Err(ServiceError::Other("Remote Keystores are not supported.".into()))
}

let telemetry = config
Expand All @@ -111,7 +112,7 @@ pub fn new_partial(

let (client, backend, keystore_container, task_manager) =
sc_service::new_full_parts::<Block, RuntimeApi, _>(
&config,
config,
telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()),
executor,
)?;
Expand Down Expand Up @@ -178,7 +179,7 @@ pub fn new_partial(
})
}

fn remote_keystore(_url: &String) -> Result<Arc<LocalKeystore>, &'static str> {
fn remote_keystore(_url: &str) -> Result<Arc<LocalKeystore>, &'static str> {
// FIXME: here would the concrete keystore be built,
// must return a concrete type (NOT `LocalKeystore`) that
// implements `CryptoStore` and `SyncCryptoStore`
Expand Down
Loading