Enum pallet_ovm::Call [−][src]
pub enum Call<T: Config> { put_code(Vec<u8>), instantiate(<T as Config>::Hash, Vec<u8>), claim(PropertyOf<T>), challenge(PropertyOf<T>, PropertyOf<T>), remove_challenge(PropertyOf<T>), set_game_result(PropertyOf<T>, bool), settle_game(PropertyOf<T>), // some variants omitted }
Expand description
Dispatchable calls.
Each variant of this enum maps to a dispatchable function from the associated module.
Variants
Stores the given binary Wasm code into the chain’s storage and returns its codehash
.
You can instantiate contracts only with stored code.
Deploy predicate and made predicate address as AccountId. TODO: weight
claim(PropertyOf<T>)
Claims property and create new game. Id of game is hash of claimed property TODO: weight
challenge(PropertyOf<T>, PropertyOf<T>)
Challenge to an existing game instance by a property.
challenge will be added to challenges
field of challenged game instance.
if property does not exist, revert.
if challenge with same property was made before, revert.
TODO: weight
remove_challenge(PropertyOf<T>)
remove challenge set challenging game decision to false and remove it from challenges field of challenged game if property does not exist, revert. if challenge property does not exist, revert.
TODO: weight
set_game_result(PropertyOf<T>, bool)
set game result to given result value. only called from dispute contract
TODO: weight
settle_game(PropertyOf<T>)
settle game settle started game whose dispute period has passed. if no challenge for the property exists, decide to true. if any of its challenges decided to true, decide game to false. if undecided challenge remains, revert.
TODO: weight
Trait Implementations
impl<T: Config> Decode for Call<T> where
<T as Config>::Hash: Decode,
<T as Config>::Hash: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
impl<T: Config> Decode for Call<T> where
<T as Config>::Hash: Decode,
<T as Config>::Hash: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
PropertyOf<T>: Decode,
impl<T: Config> Encode for Call<T> where
<T as Config>::Hash: Encode,
<T as Config>::Hash: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
impl<T: Config> Encode for Call<T> where
<T as Config>::Hash: Encode,
<T as Config>::Hash: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
Return the function name of the Call.
Return all function names.
Return a DispatchInfo
, containing relevant information of this dispatch. Read more
Dispatch this call but do not check the filter in origin.
impl<T: Config> EncodeLike<Call<T>> for Call<T> where
<T as Config>::Hash: Encode,
<T as Config>::Hash: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
PropertyOf<T>: Encode,
Auto Trait Implementations
impl<T> RefUnwindSafe for Call<T> where
T: RefUnwindSafe,
<T as Config>::AccountId: RefUnwindSafe,
<T as Config>::Hash: RefUnwindSafe,
impl<T> Unpin for Call<T> where
T: Unpin,
<T as Config>::AccountId: Unpin,
<T as Config>::Hash: Unpin,
impl<T> UnwindSafe for Call<T> where
T: UnwindSafe,
<T as Config>::AccountId: UnwindSafe,
<T as Config>::Hash: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,