Configuration

Struct Configuration 

Source
pub struct Configuration {
Show 15 fields pub cores: Option<u8>, pub use_honggfuzz: bool, pub deployer_address: Option<AccountId32>, pub max_messages_per_exec: Option<usize>, pub report_path: Option<PathBuf>, pub fuzz_origin: bool, pub default_gas_limit: Option<Weight>, pub storage_deposit_limit: Option<String>, pub instantiate_initial_value: Option<String>, pub constructor_payload: Option<String>, pub verbose: bool, pub instrumented_contract_path: Option<InstrumentedPath>, pub fuzz_output: Option<PathBuf>, pub show_ui: bool, pub catch_trapped_contract: bool,
}

Fieldsยง

ยงcores: Option<u8>

Number of cores to use for Ziggy

ยงuse_honggfuzz: bool

Also use Hongfuzz as a fuzzer

ยงdeployer_address: Option<AccountId32>ยงmax_messages_per_exec: Option<usize>ยงreport_path: Option<PathBuf>

Output directory for the coverage report

ยงfuzz_origin: bool

Fuzz the origin. If false, the fuzzer will execute each message with the same account.

ยงdefault_gas_limit: Option<Weight>

The gas limit enforced when executing the constructor

ยงstorage_deposit_limit: Option<String>

The maximum amount of balance that can be charged from the caller to pay for the storage consumed.

ยงinstantiate_initial_value: Option<String>

The value being transferred to the new account during the contract instantiation

ยงconstructor_payload: Option<String>

In the case where you wouldnโ€™t have any default constructor in you smart contract, i.e new() (without parameters), then you would need to specify inside the config file the Vec<u8> representation of the SCALE-encoded data of your constructor. This typically involved the four first bytes of the constructorโ€™ selector, followed by the payload.

ยงverbose: bool

Make Phink more verbose

ยงinstrumented_contract_path: Option<InstrumentedPath>

Path where the instrumented contract will be stored after running phink instrument mycontract By default, we create a random folder in /tmp/ink_fuzzed_XXXX

ยงfuzz_output: Option<PathBuf>

Path where Ziggy will drop everything (logs, corpus, etc). If None, itโ€™ll be output/ by default

ยงshow_ui: bool

Use the Phink UI. If set to false, the Ziggy native UI will be used.

ยงcatch_trapped_contract: bool

If true, the fuzzer will detect trapped contracts (ContractTrapped) as a bug. Set this to false if you just want to catch invariants. Set this to true if you want any kind of bugs.

Implementationsยง

Trait Implementationsยง

Sourceยง

impl Clone for Configuration

Sourceยง

fn clone(&self) -> Configuration

Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for Configuration

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Default for Configuration

Sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl<'de> Deserialize<'de> for Configuration

Sourceยง

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Sourceยง

impl Paint for Configuration

Sourceยง

fn render(&self, f: &mut Frame<'_>, area: Rect)

Sourceยง

impl PartialEq for Configuration

Sourceยง

fn eq(&self, other: &Configuration) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl Serialize for Configuration

Sourceยง

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Sourceยง

impl TryFrom<&PathBuf> for Configuration

Sourceยง

type Error = Error

The type returned in the event of a conversion error.
Sourceยง

fn try_from(path: &PathBuf) -> ResultOf<Self>

Performs the conversion.
Sourceยง

impl TryFrom<String> for Configuration

Sourceยง

type Error = Error

The type returned in the event of a conversion error.
Sourceยง

fn try_from(config_str: String) -> ResultOf<Self>

Performs the conversion.
Sourceยง

impl Eq for Configuration

Sourceยง

impl StructuralPartialEq for Configuration

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CheckedConversion for T

Sourceยง

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
Sourceยง

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
Sourceยง

impl<T> Clear for T
where T: Default + Eq + PartialEq,

Sourceยง

fn is_clear(&self) -> bool

True iff no bits are set.
Sourceยง

fn clear() -> T

Return the value of Self that is clear.
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<T> Downcast for T
where T: Any,

Sourceยง

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Sourceยง

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Sourceยง

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Anyโ€™s vtable from &Traitโ€™s.
Sourceยง

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Anyโ€™s vtable from &mut Traitโ€™s.
Sourceยง

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Sourceยง

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Sourceยง

impl<T> DynClone for T
where T: Clone,

Sourceยง

fn __clone_box(&self, _: Private) -> *mut ()

Sourceยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Sourceยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Sourceยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Sourceยง

impl<I, T> ExtractContext<I, ()> for T

Sourceยง

fn extract_context(self, _original_input: I)

Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T> Instrument for T

Sourceยง

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Sourceยง

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> IntoEither for T

Sourceยง

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Sourceยง

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Sourceยง

impl<T, U> IntoKey<U> for T
where U: FromKey<T>,

Sourceยง

fn into_key(self) -> U

Sourceยง

impl<T> IsType<T> for T

Sourceยง

fn from_ref(t: &T) -> &T

Cast reference.
Sourceยง

fn into_ref(&self) -> &T

Cast reference.
Sourceยง

fn from_mut(t: &mut T) -> &mut T

Cast mutable reference.
Sourceยง

fn into_mut(&mut self) -> &mut T

Cast mutable reference.
Sourceยง

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

Sourceยง

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

Sourceยง

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

Sourceยง

impl<I> RecreateContext<I> for I

Sourceยง

fn recreate_context(_original_input: I, tail: I) -> I

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

impl<T> SaturatedConversion for T

Sourceยง

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
Sourceยง

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryIntoKey<U> for T
where U: TryFromKey<T>,

Sourceยง

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

Sourceยง

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
Sourceยง

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

Sourceยง

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
Sourceยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Sourceยง

fn vzip(self) -> V

Sourceยง

impl<T> WithSubscriber for T

Sourceยง

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Sourceยง

impl<T> ErasedDestructor for T
where T: 'static,

Sourceยง

impl<T> MaybeDebug for T
where T: Debug,

Sourceยง

impl<T> MaybeRefUnwindSafe for T
where T: RefUnwindSafe,

Sourceยง

impl<T> MaybeSerialize for T
where T: Serialize,

Sourceยง

impl<T> MaybeSerializeDeserialize for T

Sourceยง

impl<T> Member for T
where T: Send + Sync + Debug + Eq + PartialEq + Clone + 'static,

Sourceยง

impl<T> TypeId for T
where T: Debug + Default,