UNPKG

@etherspot/remote-signer

Version:

Etherspot Permissioned Signer SDK - signs the UserOp with SessionKey and sends it to the Bundler

54 lines (50 loc) 4.48 kB
import { RemoteSignerSdk } from './sdk.js'; export { SignMessageDto } from './dto/sign-message.dto.js'; export { validateDto } from './dto/utils/validate-dto.js'; export { Factory, PaymasterApi, SdkOptions } from './interfaces.js'; export { C as CHAIN_ID_TO_NETWORK_NAME, e as DEFAULT_BOOTSTRAP_ADDRESS, D as DEFAULT_ERC20_SESSION_KEY_VALIDATOR_ADDRESS, f as DEFAULT_MULTIPLE_OWNER_ECDSA_VALIDATOR_ADDRESS, g as DEFAULT_QUERY_PAGE_SIZE, b as NETWORK_NAME_TO_CHAIN_ID, N as Network, a as NetworkConfig, c as NetworkNames, d as Networks, S as SupportedNetworks, h as getNetworkConfig, o as onRamperAllNetworks } from '../interfaces-CuwrnaFe.js'; export { prepareNetworkName } from './network/utils/prepare-network-name.js'; export { networkNameToChainId } from './network/utils/network-name-to-chain-id.js'; export { BundlerProvider, BundlerProviderLike } from './bundler/interface.js'; export { GenericBundler } from './bundler/providers/GenericBundler.js'; export { EtherspotBundler } from './bundler/providers/EtherspotBundler.js'; export { A as AccountType, B as BaseAccountUserOperationStruct, E as ExtendedLocalAccount, F as FeeData, G as GetAccountReturnType, I as InitialModules, i as Module, M as ModuleType, j as ModuleTypeIds, N as NotPromise, P as PromiseOrValue, T as ToAccountErrorType, U as UserOperation, h as UserOperationStruct, d as decodeErrorReason, e as deepHexlify, g as getUserOpHash, m as moduleTypeIds, b as packPaymasterData, a as packUint, p as packUserOp, c as packUserOpData, f as resolveHexlify, r as rethrowError } from '../ERC4337Utils-DFwtlIAE.js'; export { Gas, getGasFee } from './common/getGasFee.js'; export { deepCompare } from './common/utils/deep-compare.js'; export { sleep } from './common/utils/sleep.js'; export { openUrl } from './common/utils/openurl.js'; export { addressesEqual, getChain, getPublicClient, getViemAccount, getViemAddress, getWalletClientFromAccount, getWalletClientFromPrivateKey, isAddress, isContract, prepareAddress, prepareAddresses } from './common/utils/viem-utils.js'; export { bigNumberishToBigInt, fromBigInt, isBigNumber } from './common/utils/bignumber-utils.js'; export { concatHex, isHex, keccak256, toHexFromBytesLike } from './common/utils/hashing-utils.js'; export { isUrl, parseJson, stringifyJson } from './common/utils/json-utils.js'; export { Deferrable, Result, getExecuteMode, resolveProperties } from './common/utils/userop-utils.js'; export { Exception } from './common/exceptions/exception.js'; export { ValidationError } from './common/exceptions/interfaces.js'; export { ValidationException } from './common/exceptions/validation.exception.js'; export { AddressZero, CALL_TYPE, EXEC_TYPE, KeyStore, PERMISSIONS_URL, bufferPercent } from './common/constants.js'; export { accountAbi, bootstrapAbi, entryPointAbi, erc20Abi, erc721Abi, factoryAbi, modulesAbi, sessionKeyValidatorAbi } from './common/abis.js'; export { printOp, toJSON } from './common/OperationUtils.js'; export { BatchUserOpsRequest, UserOpsRequest } from './common/interfaces.js'; export { entryPointErrorMsg, errorMsg } from './error-handler/constants.js'; export { ErrorHandler } from './error-handler/errorHandler.service.js'; export { getSessionKey } from './session-keys/get-session-key.js'; export { signUserOpWithSessionKey } from './session-keys/sign-userop.js'; export { isAValidSessionKey } from './session-keys/validate-session-key.js'; export { createLocalAccount, fixSignedData, toExtendedLocalAccount } from './remote-signer/local-account-utils.js'; export { RemoteSignerParams, signUserOperation, toRemoteSigner } from './remote-signer/remote-signer.js'; export { BigNumber, BigNumberish, Hexable, _base16To36, _base36To16, isBigNumberish, throwFault, version } from './types/bignumber.js'; export { GetSessionKeyResponse, SessionKeyOnChainData } from './types/session-key-types.js'; export { ViemRpcRequestError } from './types/viem-rpc.js'; export { Bytes, BytesLike, TypedDataField } from './types/common-types.js'; import 'viem'; import './base/HttpRpcClient.js'; import './base/TransactionDetailsForUserOp.js'; import './base/EtherspotWalletAPI.js'; import './base/BaseAccountAPI.js'; import '../PaymasterAPI-kjTxpLRH.js'; import './base/calcPreVerificationGas.js'; import 'viem/chains'; import 'node_modules/viem/_types/errors/utils'; import 'node_modules/viem/_types/types/utils'; import 'node_modules/viem/_types/actions/siwe/verifySiweMessage'; export { RemoteSignerSdk, RemoteSignerSdk as default };