mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 04:09:23 +00:00
Tweak the Substrate runtime as required by the Rust version bump performed
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
use substrate_wasm_builder::WasmBuilder;
|
use substrate_wasm_builder::WasmBuilder;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
WasmBuilder::new().with_current_project().export_heap_base().import_memory().build()
|
WasmBuilder::new()
|
||||||
|
.with_current_project()
|
||||||
|
.disable_runtime_version_section_check()
|
||||||
|
.export_heap_base()
|
||||||
|
.import_memory()
|
||||||
|
.build()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,7 +216,6 @@ impl TryInto<Call> for RuntimeCall {
|
|||||||
coins::Call::burn_with_instruction { instruction } => {
|
coins::Call::burn_with_instruction { instruction } => {
|
||||||
serai_abi::coins::Call::burn_with_instruction { instruction }
|
serai_abi::coins::Call::burn_with_instruction { instruction }
|
||||||
}
|
}
|
||||||
_ => Err(())?,
|
|
||||||
}),
|
}),
|
||||||
RuntimeCall::LiquidityTokens(call) => Call::LiquidityTokens(match call {
|
RuntimeCall::LiquidityTokens(call) => Call::LiquidityTokens(match call {
|
||||||
coins::Call::transfer { to, balance } => {
|
coins::Call::transfer { to, balance } => {
|
||||||
@@ -270,7 +269,6 @@ impl TryInto<Call> for RuntimeCall {
|
|||||||
send_to: send_to.into(),
|
send_to: send_to.into(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => Err(())?,
|
|
||||||
}),
|
}),
|
||||||
RuntimeCall::GenesisLiquidity(call) => Call::GenesisLiquidity(match call {
|
RuntimeCall::GenesisLiquidity(call) => Call::GenesisLiquidity(match call {
|
||||||
genesis_liquidity::Call::remove_coin_liquidity { balance } => {
|
genesis_liquidity::Call::remove_coin_liquidity { balance } => {
|
||||||
@@ -279,7 +277,6 @@ impl TryInto<Call> for RuntimeCall {
|
|||||||
genesis_liquidity::Call::oraclize_values { values, signature } => {
|
genesis_liquidity::Call::oraclize_values { values, signature } => {
|
||||||
serai_abi::genesis_liquidity::Call::oraclize_values { values, signature }
|
serai_abi::genesis_liquidity::Call::oraclize_values { values, signature }
|
||||||
}
|
}
|
||||||
_ => Err(())?,
|
|
||||||
}),
|
}),
|
||||||
RuntimeCall::ValidatorSets(call) => Call::ValidatorSets(match call {
|
RuntimeCall::ValidatorSets(call) => Call::ValidatorSets(match call {
|
||||||
validator_sets::Call::set_keys { network, removed_participants, key_pair, signature } => {
|
validator_sets::Call::set_keys { network, removed_participants, key_pair, signature } => {
|
||||||
@@ -315,13 +312,11 @@ impl TryInto<Call> for RuntimeCall {
|
|||||||
validator_sets::Call::claim_deallocation { network, session } => {
|
validator_sets::Call::claim_deallocation { network, session } => {
|
||||||
serai_abi::validator_sets::Call::claim_deallocation { network, session }
|
serai_abi::validator_sets::Call::claim_deallocation { network, session }
|
||||||
}
|
}
|
||||||
_ => Err(())?,
|
|
||||||
}),
|
}),
|
||||||
RuntimeCall::InInstructions(call) => Call::InInstructions(match call {
|
RuntimeCall::InInstructions(call) => Call::InInstructions(match call {
|
||||||
in_instructions::Call::execute_batch { batch } => {
|
in_instructions::Call::execute_batch { batch } => {
|
||||||
serai_abi::in_instructions::Call::execute_batch { batch }
|
serai_abi::in_instructions::Call::execute_batch { batch }
|
||||||
}
|
}
|
||||||
_ => Err(())?,
|
|
||||||
}),
|
}),
|
||||||
RuntimeCall::Signals(call) => Call::Signals(match call {
|
RuntimeCall::Signals(call) => Call::Signals(match call {
|
||||||
signals::Call::register_retirement_signal { in_favor_of } => {
|
signals::Call::register_retirement_signal { in_favor_of } => {
|
||||||
@@ -339,7 +334,6 @@ impl TryInto<Call> for RuntimeCall {
|
|||||||
signals::Call::stand_against { signal_id, for_network } => {
|
signals::Call::stand_against { signal_id, for_network } => {
|
||||||
serai_abi::signals::Call::stand_against { signal_id, for_network }
|
serai_abi::signals::Call::stand_against { signal_id, for_network }
|
||||||
}
|
}
|
||||||
_ => Err(())?,
|
|
||||||
}),
|
}),
|
||||||
RuntimeCall::Babe(call) => Call::Babe(match call {
|
RuntimeCall::Babe(call) => Call::Babe(match call {
|
||||||
babe::Call::report_equivocation { equivocation_proof, key_owner_proof } => {
|
babe::Call::report_equivocation { equivocation_proof, key_owner_proof } => {
|
||||||
@@ -377,7 +371,6 @@ impl TryInto<Call> for RuntimeCall {
|
|||||||
}
|
}
|
||||||
_ => Err(())?,
|
_ => Err(())?,
|
||||||
}),
|
}),
|
||||||
_ => Err(())?,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user