@alchemy/aa-core
Version:
viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts
173 lines (171 loc) • 5.87 kB
text/typescript
export type { Abi } from "abitype";
export type { Address, HttpTransport } from "viem";
export * as chains from "viem/chains";
export { EntryPointAbi_v6 } from "./abis/EntryPointAbi_v6.js";
export { EntryPointAbi_v7 } from "./abis/EntryPointAbi_v7.js";
export { SimpleAccountAbi_v6 } from "./abis/SimpleAccountAbi_v6.js";
export { SimpleAccountAbi_v7 } from "./abis/SimpleAccountAbi_v7.js";
export { SimpleAccountFactoryAbi } from "./abis/SimpleAccountFactoryAbi.js";
export { BaseSmartContractAccount } from "./account/base.js";
export { createSimpleSmartAccount } from "./account/simple.js";
export type { SimpleSmartAccount } from "./account/simple.js";
export type * from "./account/smartContractAccount.js";
export {
getAccountAddress,
isSmartAccountWithSigner,
parseFactoryAddressFromAccountInitCode,
toSmartContractAccount,
} from "./account/smartContractAccount.js";
export type {
BaseSmartAccountParams,
SignTypedDataParams,
} from "./account/types.js";
export { buildUserOperation } from "./actions/smartAccount/buildUserOperation.js";
export { buildUserOperationFromTx } from "./actions/smartAccount/buildUserOperationFromTx.js";
export { buildUserOperationFromTxs } from "./actions/smartAccount/buildUserOperationFromTxs.js";
export { checkGasSponsorshipEligibility } from "./actions/smartAccount/checkGasSponsorshipEligibility.js";
export { dropAndReplaceUserOperation } from "./actions/smartAccount/dropAndReplaceUserOperation.js";
export { sendTransaction } from "./actions/smartAccount/sendTransaction.js";
export { sendTransactions } from "./actions/smartAccount/sendTransactions.js";
export { sendUserOperation } from "./actions/smartAccount/sendUserOperation.js";
export type * from "./actions/smartAccount/types.js";
export { waitForUserOperationTransaction } from "./actions/smartAccount/waitForUserOperationTransacation.js";
export {
arbitrum,
arbitrumGoerli,
arbitrumSepolia,
base,
baseGoerli,
baseSepolia,
fraxtal,
fraxtalSepolia,
goerli,
mainnet,
optimism,
optimismGoerli,
optimismSepolia,
polygon,
polygonAmoy,
polygonMumbai,
sepolia,
zora,
zoraSepolia,
} from "./chains/index.js";
export type * from "./client/bundlerClient.js";
export {
createBundlerClient,
createBundlerClientFromExisting,
} from "./client/bundlerClient.js";
export type * from "./client/decorators/bundlerClient.js";
export { bundlerActions } from "./client/decorators/bundlerClient.js";
export type * from "./client/decorators/smartAccountClient.js";
export { smartAccountClientActions } from "./client/decorators/smartAccountClient.js";
export { isSmartAccountClient } from "./client/isSmartAccountClient.js";
export {
ConnectionConfigSchema,
SmartAccountClientOptsSchema,
} from "./client/schema.js";
export type * from "./client/smartAccountClient.js";
export {
createSmartAccountClient,
createSmartAccountClientFromExisting,
} from "./client/smartAccountClient.js";
export type * from "./client/types.js";
export {
convertChainIdToCoinType,
convertCoinTypeToChain,
convertCoinTypeToChainId,
} from "./ens/utils.js";
export {
defaultEntryPointVersion,
entryPointRegistry,
getEntryPoint,
isEntryPointVersion,
} from "./entrypoint/index.js";
export type * from "./entrypoint/types.js";
export {
AccountNotFoundError,
AccountRequiresOwnerError,
BatchExecutionNotSupportedError,
DefaultFactoryNotDefinedError,
FailedToGetStorageSlotError,
GetCounterFactualAddressError,
IncorrectAccountType,
SignTransactionNotSupportedError,
SmartAccountWithSignerRequiredError,
UpgradeToAndCallNotSupportedError,
UpgradesNotSupportedError,
} from "./errors/account.js";
export { BaseError } from "./errors/base.js";
export {
ChainNotFoundError,
IncompatibleClientError,
InvalidRpcUrlError,
} from "./errors/client.js";
export {
EntryPointNotFoundError,
InvalidEntryPointError,
} from "./errors/entrypoint.js";
export { InvalidSignerTypeError } from "./errors/signer.js";
export {
FailedToFindTransactionError,
TransactionMissingToParamError,
} from "./errors/transaction.js";
export {
InvalidUserOperationError,
WaitForUserOperationError,
} from "./errors/useroperation.js";
export { LogLevel, Logger } from "./logger.js";
export { middlewareActions } from "./middleware/actions.js";
export { defaultFeeEstimator } from "./middleware/defaults/feeEstimator.js";
export { defaultGasEstimator } from "./middleware/defaults/gasEstimator.js";
export { defaultPaymasterAndData } from "./middleware/defaults/paymasterAndData.js";
export { defaultUserOpSigner } from "./middleware/defaults/userOpSigner.js";
export { noopMiddleware } from "./middleware/noopMiddleware.js";
export type * from "./middleware/types.js";
export { LocalAccountSigner } from "./signer/local-account.js";
export { SignerSchema, isSigner } from "./signer/schema.js";
export type {
SmartAccountAuthenticator,
SmartAccountSigner,
} from "./signer/types.js";
export {
verifyEIP6492Signature,
wrapSignatureWith6492,
} from "./signer/utils.js";
export { WalletClientSigner } from "./signer/wallet-client.js";
export { split, type SplitTransportParams } from "./transport/split.js";
export type * from "./types.js";
export type * from "./utils/index.js";
export {
AlchemyChainMap,
BigNumberishRangeSchema,
BigNumberishSchema,
ChainSchema,
HexSchema,
MultiplierSchema,
allEqual,
applyUserOpFeeOption,
applyUserOpOverride,
applyUserOpOverrideOrFeeOption,
asyncPipe,
bigIntMax,
bigIntMultiply,
bypassPaymasterAndData,
bypassPaymasterAndDataEmptyHex,
concatPaymasterAndData,
deepHexlify,
defineReadOnly,
filterUndefined,
getChain,
getDefaultSimpleAccountFactoryAddress,
getDefaultUserOperationFeeOptions,
isBigNumberish,
isMultiplier,
isValidRequest,
parsePaymasterAndData,
pick,
resolveProperties,
takeBytes,
toRecord,
} from "./utils/index.js";