pub struct DefaultAccountEntrypoint { /* private fields */ }Expand description
Standard account entrypoint — wraps calls through the account contract.
Implementations§
Source§impl DefaultAccountEntrypoint
impl DefaultAccountEntrypoint
Sourcepub fn new(address: AztecAddress, auth: Box<dyn AuthorizationProvider>) -> Self
pub fn new(address: AztecAddress, auth: Box<dyn AuthorizationProvider>) -> Self
Create a new account entrypoint for the given address and auth provider.
Sourcepub async fn create_tx_execution_request(
&self,
exec: ExecutionPayload,
gas_settings: GasSettings,
chain_info: &ChainInfo,
options: &DefaultAccountEntrypointOptions,
) -> Result<TxExecutionRequest, Error>
pub async fn create_tx_execution_request( &self, exec: ExecutionPayload, gas_settings: GasSettings, chain_info: &ChainInfo, options: &DefaultAccountEntrypointOptions, ) -> Result<TxExecutionRequest, Error>
Create a full transaction execution request.
Sourcepub async fn wrap_execution_payload(
&self,
exec: ExecutionPayload,
chain_info: &ChainInfo,
options: &DefaultAccountEntrypointOptions,
) -> Result<ExecutionPayload, Error>
pub async fn wrap_execution_payload( &self, exec: ExecutionPayload, chain_info: &ChainInfo, options: &DefaultAccountEntrypointOptions, ) -> Result<ExecutionPayload, Error>
Create a wrapped ExecutionPayload by encoding calls through the account entrypoint.
Sourcepub fn entrypoint_abi() -> FunctionArtifact
pub fn entrypoint_abi() -> FunctionArtifact
Return the ABI for the standard account entrypoint function.
This is useful for account contract implementations that need to include the entrypoint in their contract artifact.
Sourcepub fn address(&self) -> AztecAddress
pub fn address(&self) -> AztecAddress
Get the address of this entrypoint’s account.
Auto Trait Implementations§
impl Freeze for DefaultAccountEntrypoint
impl !RefUnwindSafe for DefaultAccountEntrypoint
impl Send for DefaultAccountEntrypoint
impl Sync for DefaultAccountEntrypoint
impl Unpin for DefaultAccountEntrypoint
impl !UnwindSafe for DefaultAccountEntrypoint
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