Skip to content

Commit

Permalink
companion: for #259
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Sep 5, 2020
1 parent 8691b9e commit 1882ada
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 33 deletions.
62 changes: 31 additions & 31 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 runtime/crab/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub mod relay {
impl AdjustableRelayerGame for EthereumRelayerGameAdjustor {
type Moment = BlockNumber;
type Balance = Balance;
type TcBlockNumber = <EthereumRelay as Relayable>::BlockNumber;
type TcBlockNumber = <<EthereumRelay as Relayable>::HeaderThing as HeaderThing>::Number;

fn challenge_time(round: Round) -> Self::Moment {
match round {
Expand Down
5 changes: 4 additions & 1 deletion runtime/crab/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ pub type SignedExtra = (
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
darwinia_ethereum_relay::CheckEthereumRelayHeaderHash<Runtime>,
);
/// Unchecked extrinsic type as expected by this runtime.
pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signature, SignedExtra>;
Expand Down Expand Up @@ -748,7 +749,7 @@ parameter_types! {
impl darwinia_ethereum_backing::Trait for Runtime {
type ModuleId = EthBackingModuleId;
type Event = Event;
type DetermineAccountId = darwinia_ethereum_backing::AccountIdDeterminator<Runtime>;
type RedeemAccountId = AccountId;
type EthereumRelay = EthereumRelay;
type OnDepositRedeem = Staking;
type RingCurrency = Ring;
Expand All @@ -763,6 +764,7 @@ parameter_types! {
impl darwinia_ethereum_relay::Trait for Runtime {
type ModuleId = EthereumRelayModuleId;
type Event = Event;
type Call = Call;
type Currency = Ring;
type RelayerGame = EthereumRelayerGame;
type ApproveOrigin = ApproveOrigin;
Expand Down Expand Up @@ -894,6 +896,7 @@ where
frame_system::CheckNonce::<Runtime>::from(nonce),
frame_system::CheckWeight::<Runtime>::new(),
pallet_transaction_payment::ChargeTransactionPayment::<Runtime>::from(tip),
darwinia_ethereum_relay::CheckEthereumRelayHeaderHash::<Runtime>::new(),
);
let raw_payload = SignedPayload::new(call, extra)
.map_err(|e| {
Expand Down

0 comments on commit 1882ada

Please sign in to comment.