Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Bridge pangolin-pangoro #255

Merged
merged 32 commits into from
Sep 3, 2021
Merged

Bridge pangolin-pangoro #255

merged 32 commits into from
Sep 3, 2021

Conversation

fewensa
Copy link
Contributor

@fewensa fewensa commented Aug 26, 2021

Rename Millau to Pangoro, update types.

issues:
darwinia-network/darwinia#720
#199

substrate-subxt

darwinia-common

@AurevoirXavier AurevoirXavier linked an issue Aug 30, 2021 that may be closed by this pull request
@fewensa
Copy link
Contributor Author

fewensa commented Sep 1, 2021

discuss:

use real weight

// todo: there can be change to special weight
pallet_bridge_messages::weights::RialtoWeight<pangolin_runtime::Runtime>,
>(
pangoro_runtime_system_params::max_extrinsic_weight(),
PangoroChainConst::MAX_UNREWARDED_RELAYER_ENTRIES_AT_INBOUND_LANE,
);

// todo: there can be change to special weight
pallet_bridge_messages::weights::RialtoWeight<pangoro_runtime::Runtime>,
>(
pangolin_runtime_system_params::max_extrinsic_weight(),
PangolinChainConst::MAX_UNREWARDED_RELAYER_ENTRIES_AT_INBOUND_LANE,
);

update token price metric

Some(crate::chains::PANGOLIN_ASSOCIATED_TOKEN_ID),
Some(crate::chains::PANGORO_ASSOCIATED_TOKEN_ID),

Some(crate::chains::PANGOLIN_ASSOCIATED_TOKEN_ID),
Some(crate::chains::PANGORO_ASSOCIATED_TOKEN_ID),

// Millau/Rialto tokens have no any real value, so the conversion rate we use is always 1:1. But we want to
// test our code that is intended to work with real-value chains. So to keep it close to 1:1, we'll be treating
// Rialto as BTC and Millau as wBTC (only in relayer).
/// The identifier of token, which value is associated with Rialto token value by relayer.
pub(crate) const PANGOLIN_ASSOCIATED_TOKEN_ID: &str = "bitcoin";
/// The identifier of token, which value is associated with Millau token value by relayer.
pub(crate) const PANGORO_ASSOCIATED_TOKEN_ID: &str = "wrapped-bitcoin";

https://github.com/darwinia-network/parity-bridges-common/blob/284897e8e1d9982c2752a790028dc7b1c3cf73db/relays/lib-substrate-relay/src/helpers.rs#L21-L41

@fewensa fewensa marked this pull request as ready for review September 3, 2021 02:00
@hackfisher hackfisher merged commit 1402e46 into master Sep 3, 2021
@hackfisher hackfisher deleted the task-pangolin-pangoro branch September 3, 2021 07:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update subxt version
2 participants