pub struct EncodedAppEntrypointCalls { /* private fields */ }Expand description
Encoded entrypoint calls ready for hashing and field serialization.
Implementations§
Source§impl EncodedAppEntrypointCalls
impl EncodedAppEntrypointCalls
Sourcepub fn create(
calls: &[FunctionCall],
tx_nonce: Option<Fr>,
) -> Result<EncodedAppEntrypointCalls, Error>
pub fn create( calls: &[FunctionCall], tx_nonce: Option<Fr>, ) -> Result<EncodedAppEntrypointCalls, Error>
Encode function calls for passing to an account entrypoint.
Pads to APP_MAX_CALLS with empty calls.
Sourcepub fn to_fields(&self) -> Vec<Fr>
pub fn to_fields(&self) -> Vec<Fr>
Serialize the full payload to field elements for ABI encoding.
Layout: [call_0_fields…, call_1_fields…, …, call_N_fields…, tx_nonce]
Sourcepub fn hashed_args(&self) -> &[HashedValues]
pub fn hashed_args(&self) -> &[HashedValues]
Return the hashed arguments for oracle access.
Sourcepub fn encoded_calls(&self) -> Vec<EncodedCallView>
pub fn encoded_calls(&self) -> Vec<EncodedCallView>
Return encoded calls for ABI construction and inspection.
Auto Trait Implementations§
impl Freeze for EncodedAppEntrypointCalls
impl RefUnwindSafe for EncodedAppEntrypointCalls
impl Send for EncodedAppEntrypointCalls
impl Sync for EncodedAppEntrypointCalls
impl Unpin for EncodedAppEntrypointCalls
impl UnwindSafe for EncodedAppEntrypointCalls
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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