Crate starknet_accounts

Crate starknet_accounts 

Source
Expand description

Library for deploying and using Starknet account contracts.

Re-exports§

pub use single_owner::ExecutionEncoding;
pub use single_owner::SingleOwnerAccount;

Modules§

single_owner
Module containing types for using an account contract with only one signer.

Structs§

AccountDeploymentV3
Abstraction over DEPLOY_ACCOUNT transactions for account contract deployment. This struct uses v3 DEPLOY_ACCOUNT transactions under the hood, and hence pays transaction fees in STRK.
ArgentAccountFactory
AccountFactory implementation for deploying Argent X account contracts (v0.4.0).
DeclarationV3
Abstraction over DECLARE transactions from accounts for invoking contracts. This struct uses v3 DECLARE transactions under the hood, and hence pays transaction fees in STRK.
ExecutionV3
Abstraction over INVOKE transactions from accounts for invoking contracts. This struct uses v3 INVOKE transactions under the hood, and hence pays transaction fees in STRK.
NotPreparedError
Error when calling prepared() on a type when not all fields are populated.
OpenZeppelinAccountFactory
AccountFactory implementation for deploying OpenZeppelin account contracts.
PreparedAccountDeploymentV3
RawAccountDeploymentV3 but with a factory associated.
PreparedDeclarationV3
RawDeclarationV3 but with an account associated.
PreparedExecutionV3
RawExecutionV3 but with an account associated.
RawAccountDeploymentV3
AccountDeploymentV3 but with nonce and other transaction fee options already determined.
RawDeclarationV3
DeclarationV3 but with nonce and other transaction fee options already determined.
RawExecutionV3
ExecutionV3 but with nonce and other transaction fee options already determined.

Enums§

AccountError
Errors using Starknet accounts.
AccountFactoryError
Errors using Starknet account factories.

Traits§

Account
The standard Starknet account contract interface. It makes no assumption about the underlying signer or provider. Account implementations that come with an active connection to the network should also implement ConnectedAccount for useful functionalities like estimating fees and sending transactions.
AccountFactory
Abstraction over different ways of deploying account contracts using the DEPLOY_ACCOUNT transaction type.
ConnectedAccount
An Account implementation that also comes with a Provider. Functionalities that require a connection to the sequencer or node are offloaded to this trait to keep the base Account clean and flexible.
ExecutionEncoder
An abstraction over different ways to encode Vec<Call> into Vec<Felt>.