pub struct polkadot_0Call {
pub enable: bool,
pub backend: String,
}Expand description
Enables or disables Polkadot execution mode with explicit backend selection.
When enabled, contracts execute on pallet-revive runtime instead of standard EVM.
@param enable true = switch to Polkadot environment, false = switch back to Foundry EVM
@param backend Target backend: “evm” or “pvm”
Example: vm.polkadot(true, “evm”); // Enable Polkadot EVM backend
Example: vm.polkadot(true, “pvm”); // Enable Polkadot PVM backend
Function with signature polkadot(bool,string) and selector 0xe2121d7d.
function polkadot(bool enable, string calldata backend) external;Fields§
§enable: bool§backend: StringTrait Implementations§
Source§impl CheatcodeDef for polkadot_0Call
impl CheatcodeDef for polkadot_0Call
Source§impl Clone for polkadot_0Call
impl Clone for polkadot_0Call
Source§fn clone(&self) -> polkadot_0Call
fn clone(&self) -> polkadot_0Call
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for polkadot_0Call
impl Debug for polkadot_0Call
Source§impl SolCall for polkadot_0Call
impl SolCall for polkadot_0Call
Source§type Parameters<'a> = (Bool, String)
type Parameters<'a> = (Bool, String)
Source§type Token<'a> = <<polkadot_0Call as SolCall>::Parameters<'a> as SolType>::Token<'a>
type Token<'a> = <<polkadot_0Call as SolCall>::Parameters<'a> as SolType>::Token<'a>
Source§type Return = polkadot_0Return
type Return = polkadot_0Return
Source§type ReturnTuple<'a> = ()
type ReturnTuple<'a> = ()
Source§type ReturnToken<'a> = <<polkadot_0Call as SolCall>::ReturnTuple<'a> as SolType>::Token<'a>
type ReturnToken<'a> = <<polkadot_0Call as SolCall>::ReturnTuple<'a> as SolType>::Token<'a>
Source§fn new<'a>(tuple: <Self::Parameters<'a> as SolType>::RustType) -> Self
fn new<'a>(tuple: <Self::Parameters<'a> as SolType>::RustType) -> Self
Source§fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_>
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_>
Source§fn abi_decode_returns(data: &[u8]) -> Result<Self::Return>
fn abi_decode_returns(data: &[u8]) -> Result<Self::Return>
Source§fn abi_decode_returns_validate(data: &[u8]) -> Result<Self::Return>
fn abi_decode_returns_validate(data: &[u8]) -> Result<Self::Return>
§fn abi_encoded_size(&self) -> usize
fn abi_encoded_size(&self) -> usize
§fn abi_decode_raw(data: &[u8]) -> Result<Self, Error>
fn abi_decode_raw(data: &[u8]) -> Result<Self, Error>
§fn abi_decode_raw_validate(data: &[u8]) -> Result<Self, Error>
fn abi_decode_raw_validate(data: &[u8]) -> Result<Self, Error>
§fn abi_decode(data: &[u8]) -> Result<Self, Error>
fn abi_decode(data: &[u8]) -> Result<Self, Error>
§fn abi_decode_validate(data: &[u8]) -> Result<Self, Error>
fn abi_decode_validate(data: &[u8]) -> Result<Self, Error>
§fn abi_encode_raw(&self, out: &mut Vec<u8>)
fn abi_encode_raw(&self, out: &mut Vec<u8>)
§fn abi_encode(&self) -> Vec<u8> ⓘ
fn abi_encode(&self) -> Vec<u8> ⓘ
§fn abi_encode_returns(ret: &Self::Return) -> Vec<u8> ⓘ
fn abi_encode_returns(ret: &Self::Return) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl Freeze for polkadot_0Call
impl RefUnwindSafe for polkadot_0Call
impl Send for polkadot_0Call
impl Sync for polkadot_0Call
impl Unpin for polkadot_0Call
impl UnwindSafe for polkadot_0Call
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes