@keypo/synapse-storage-sdk
Version:
TypeScript SDK for encrypted file storage on Filecoin via Synapse
1,232 lines • 99.3 kB
TypeScript
/**
* Helper to create a kernel client from a userSigner
*/
export declare function getKernelClient(userSigner: any, chain: any, bundlerRpcUrl: string, authorization: any, debug?: boolean): Promise<import("@zerodev/sdk").KernelAccountClient<import("viem").Transport, import("viem").Chain | undefined, (object & {
client: import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, {
address: `0x${string}`;
nonceManager?: import("viem").NonceManager | undefined;
sign?: ((parameters: {
hash: `0x${string}`;
}) => Promise<`0x${string}`>) | undefined;
signAuthorization?: ((parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>) | undefined;
signMessage: ({ message }: {
message: import("viem").SignableMessage;
}) => Promise<`0x${string}`>;
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
serializer?: serializer | undefined;
} | undefined) => Promise<import("viem").IsNarrowable<import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>>, `0x${string}`> extends true ? import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>> : `0x${string}`>;
signTypedData: <const typedData extends Record<string, unknown> | {
[x: string]: readonly import("viem").TypedDataParameter[];
[x: `string[${string}]`]: undefined;
[x: `function[${string}]`]: undefined;
[x: `address[${string}]`]: undefined;
[x: `bool[${string}]`]: undefined;
[x: `bytes[${string}]`]: undefined;
[x: `bytes1[${string}]`]: undefined;
[x: `bytes2[${string}]`]: undefined;
[x: `bytes3[${string}]`]: undefined;
[x: `bytes4[${string}]`]: undefined;
[x: `bytes5[${string}]`]: undefined;
[x: `bytes6[${string}]`]: undefined;
[x: `bytes7[${string}]`]: undefined;
[x: `bytes8[${string}]`]: undefined;
[x: `bytes9[${string}]`]: undefined;
[x: `bytes10[${string}]`]: undefined;
[x: `bytes11[${string}]`]: undefined;
[x: `bytes12[${string}]`]: undefined;
[x: `bytes13[${string}]`]: undefined;
[x: `bytes14[${string}]`]: undefined;
[x: `bytes15[${string}]`]: undefined;
[x: `bytes16[${string}]`]: undefined;
[x: `bytes17[${string}]`]: undefined;
[x: `bytes18[${string}]`]: undefined;
[x: `bytes19[${string}]`]: undefined;
[x: `bytes20[${string}]`]: undefined;
[x: `bytes21[${string}]`]: undefined;
[x: `bytes22[${string}]`]: undefined;
[x: `bytes23[${string}]`]: undefined;
[x: `bytes24[${string}]`]: undefined;
[x: `bytes25[${string}]`]: undefined;
[x: `bytes26[${string}]`]: undefined;
[x: `bytes27[${string}]`]: undefined;
[x: `bytes28[${string}]`]: undefined;
[x: `bytes29[${string}]`]: undefined;
[x: `bytes30[${string}]`]: undefined;
[x: `bytes31[${string}]`]: undefined;
[x: `bytes32[${string}]`]: undefined;
[x: `int[${string}]`]: undefined;
[x: `int8[${string}]`]: undefined;
[x: `int16[${string}]`]: undefined;
[x: `int24[${string}]`]: undefined;
[x: `int32[${string}]`]: undefined;
[x: `int40[${string}]`]: undefined;
[x: `int48[${string}]`]: undefined;
[x: `int56[${string}]`]: undefined;
[x: `int64[${string}]`]: undefined;
[x: `int72[${string}]`]: undefined;
[x: `int80[${string}]`]: undefined;
[x: `int88[${string}]`]: undefined;
[x: `int96[${string}]`]: undefined;
[x: `int104[${string}]`]: undefined;
[x: `int112[${string}]`]: undefined;
[x: `int120[${string}]`]: undefined;
[x: `int128[${string}]`]: undefined;
[x: `int136[${string}]`]: undefined;
[x: `int144[${string}]`]: undefined;
[x: `int152[${string}]`]: undefined;
[x: `int160[${string}]`]: undefined;
[x: `int168[${string}]`]: undefined;
[x: `int176[${string}]`]: undefined;
[x: `int184[${string}]`]: undefined;
[x: `int192[${string}]`]: undefined;
[x: `int200[${string}]`]: undefined;
[x: `int208[${string}]`]: undefined;
[x: `int216[${string}]`]: undefined;
[x: `int224[${string}]`]: undefined;
[x: `int232[${string}]`]: undefined;
[x: `int240[${string}]`]: undefined;
[x: `int248[${string}]`]: undefined;
[x: `int256[${string}]`]: undefined;
[x: `uint[${string}]`]: undefined;
[x: `uint8[${string}]`]: undefined;
[x: `uint16[${string}]`]: undefined;
[x: `uint24[${string}]`]: undefined;
[x: `uint32[${string}]`]: undefined;
[x: `uint40[${string}]`]: undefined;
[x: `uint48[${string}]`]: undefined;
[x: `uint56[${string}]`]: undefined;
[x: `uint64[${string}]`]: undefined;
[x: `uint72[${string}]`]: undefined;
[x: `uint80[${string}]`]: undefined;
[x: `uint88[${string}]`]: undefined;
[x: `uint96[${string}]`]: undefined;
[x: `uint104[${string}]`]: undefined;
[x: `uint112[${string}]`]: undefined;
[x: `uint120[${string}]`]: undefined;
[x: `uint128[${string}]`]: undefined;
[x: `uint136[${string}]`]: undefined;
[x: `uint144[${string}]`]: undefined;
[x: `uint152[${string}]`]: undefined;
[x: `uint160[${string}]`]: undefined;
[x: `uint168[${string}]`]: undefined;
[x: `uint176[${string}]`]: undefined;
[x: `uint184[${string}]`]: undefined;
[x: `uint192[${string}]`]: undefined;
[x: `uint200[${string}]`]: undefined;
[x: `uint208[${string}]`]: undefined;
[x: `uint216[${string}]`]: undefined;
[x: `uint224[${string}]`]: undefined;
[x: `uint232[${string}]`]: undefined;
[x: `uint240[${string}]`]: undefined;
[x: `uint248[${string}]`]: undefined;
[x: `uint256[${string}]`]: undefined;
string?: undefined;
address?: undefined;
bool?: undefined;
bytes?: undefined;
bytes1?: undefined;
bytes2?: undefined;
bytes3?: undefined;
bytes4?: undefined;
bytes5?: undefined;
bytes6?: undefined;
bytes7?: undefined;
bytes8?: undefined;
bytes9?: undefined;
bytes10?: undefined;
bytes11?: undefined;
bytes12?: undefined;
bytes13?: undefined;
bytes14?: undefined;
bytes15?: undefined;
bytes16?: undefined;
bytes17?: undefined;
bytes18?: undefined;
bytes19?: undefined;
bytes20?: undefined;
bytes21?: undefined;
bytes22?: undefined;
bytes23?: undefined;
bytes24?: undefined;
bytes25?: undefined;
bytes26?: undefined;
bytes27?: undefined;
bytes28?: undefined;
bytes29?: undefined;
bytes30?: undefined;
bytes31?: undefined;
bytes32?: undefined;
int8?: undefined;
int16?: undefined;
int24?: undefined;
int32?: undefined;
int40?: undefined;
int48?: undefined;
int56?: undefined;
int64?: undefined;
int72?: undefined;
int80?: undefined;
int88?: undefined;
int96?: undefined;
int104?: undefined;
int112?: undefined;
int120?: undefined;
int128?: undefined;
int136?: undefined;
int144?: undefined;
int152?: undefined;
int160?: undefined;
int168?: undefined;
int176?: undefined;
int184?: undefined;
int192?: undefined;
int200?: undefined;
int208?: undefined;
int216?: undefined;
int224?: undefined;
int232?: undefined;
int240?: undefined;
int248?: undefined;
int256?: undefined;
uint8?: undefined;
uint16?: undefined;
uint24?: undefined;
uint32?: undefined;
uint40?: undefined;
uint48?: undefined;
uint56?: undefined;
uint64?: undefined;
uint72?: undefined;
uint80?: undefined;
uint88?: undefined;
uint96?: undefined;
uint104?: undefined;
uint112?: undefined;
uint120?: undefined;
uint128?: undefined;
uint136?: undefined;
uint144?: undefined;
uint152?: undefined;
uint160?: undefined;
uint168?: undefined;
uint176?: undefined;
uint184?: undefined;
uint192?: undefined;
uint200?: undefined;
uint208?: undefined;
uint216?: undefined;
uint224?: undefined;
uint232?: undefined;
uint240?: undefined;
uint248?: undefined;
uint256?: undefined;
}, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
publicKey: `0x${string}`;
source: string;
type: "local";
} | import("viem").JsonRpcAccount | undefined>;
entryPoint: {
abi: readonly [{
readonly inputs: readonly [{
readonly name: "success";
readonly type: "bool";
}, {
readonly name: "ret";
readonly type: "bytes";
}];
readonly name: "DelegateAndRevert";
readonly type: "error";
}, {
readonly inputs: readonly [{
readonly name: "opIndex";
readonly type: "uint256";
}, {
readonly name: "reason";
readonly type: "string";
}];
readonly name: "FailedOp";
readonly type: "error";
}, {
readonly inputs: readonly [{
readonly name: "opIndex";
readonly type: "uint256";
}, {
readonly name: "reason";
readonly type: "string";
}, {
readonly name: "inner";
readonly type: "bytes";
}];
readonly name: "FailedOpWithRevert";
readonly type: "error";
}, {
readonly inputs: readonly [{
readonly name: "returnData";
readonly type: "bytes";
}];
readonly name: "PostOpReverted";
readonly type: "error";
}, {
readonly inputs: readonly [];
readonly name: "ReentrancyGuardReentrantCall";
readonly type: "error";
}, {
readonly inputs: readonly [{
readonly name: "sender";
readonly type: "address";
}];
readonly name: "SenderAddressResult";
readonly type: "error";
}, {
readonly inputs: readonly [{
readonly name: "aggregator";
readonly type: "address";
}];
readonly name: "SignatureValidationFailed";
readonly type: "error";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "userOpHash";
readonly type: "bytes32";
}, {
readonly indexed: true;
readonly name: "sender";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "factory";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "paymaster";
readonly type: "address";
}];
readonly name: "AccountDeployed";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [];
readonly name: "BeforeExecution";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "account";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "totalDeposit";
readonly type: "uint256";
}];
readonly name: "Deposited";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "userOpHash";
readonly type: "bytes32";
}, {
readonly indexed: true;
readonly name: "sender";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "nonce";
readonly type: "uint256";
}, {
readonly indexed: false;
readonly name: "revertReason";
readonly type: "bytes";
}];
readonly name: "PostOpRevertReason";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "aggregator";
readonly type: "address";
}];
readonly name: "SignatureAggregatorChanged";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "account";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "totalStaked";
readonly type: "uint256";
}, {
readonly indexed: false;
readonly name: "unstakeDelaySec";
readonly type: "uint256";
}];
readonly name: "StakeLocked";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "account";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "withdrawTime";
readonly type: "uint256";
}];
readonly name: "StakeUnlocked";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "account";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "withdrawAddress";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "amount";
readonly type: "uint256";
}];
readonly name: "StakeWithdrawn";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "userOpHash";
readonly type: "bytes32";
}, {
readonly indexed: true;
readonly name: "sender";
readonly type: "address";
}, {
readonly indexed: true;
readonly name: "paymaster";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "nonce";
readonly type: "uint256";
}, {
readonly indexed: false;
readonly name: "success";
readonly type: "bool";
}, {
readonly indexed: false;
readonly name: "actualGasCost";
readonly type: "uint256";
}, {
readonly indexed: false;
readonly name: "actualGasUsed";
readonly type: "uint256";
}];
readonly name: "UserOperationEvent";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "userOpHash";
readonly type: "bytes32";
}, {
readonly indexed: true;
readonly name: "sender";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "nonce";
readonly type: "uint256";
}];
readonly name: "UserOperationPrefundTooLow";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "userOpHash";
readonly type: "bytes32";
}, {
readonly indexed: true;
readonly name: "sender";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "nonce";
readonly type: "uint256";
}, {
readonly indexed: false;
readonly name: "revertReason";
readonly type: "bytes";
}];
readonly name: "UserOperationRevertReason";
readonly type: "event";
}, {
readonly anonymous: false;
readonly inputs: readonly [{
readonly indexed: true;
readonly name: "account";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "withdrawAddress";
readonly type: "address";
}, {
readonly indexed: false;
readonly name: "amount";
readonly type: "uint256";
}];
readonly name: "Withdrawn";
readonly type: "event";
}, {
readonly inputs: readonly [{
readonly name: "unstakeDelaySec";
readonly type: "uint32";
}];
readonly name: "addStake";
readonly outputs: readonly [];
readonly stateMutability: "payable";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "account";
readonly type: "address";
}];
readonly name: "balanceOf";
readonly outputs: readonly [{
readonly name: "";
readonly type: "uint256";
}];
readonly stateMutability: "view";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "target";
readonly type: "address";
}, {
readonly name: "data";
readonly type: "bytes";
}];
readonly name: "delegateAndRevert";
readonly outputs: readonly [];
readonly stateMutability: "nonpayable";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "account";
readonly type: "address";
}];
readonly name: "depositTo";
readonly outputs: readonly [];
readonly stateMutability: "payable";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "";
readonly type: "address";
}];
readonly name: "deposits";
readonly outputs: readonly [{
readonly name: "deposit";
readonly type: "uint256";
}, {
readonly name: "staked";
readonly type: "bool";
}, {
readonly name: "stake";
readonly type: "uint112";
}, {
readonly name: "unstakeDelaySec";
readonly type: "uint32";
}, {
readonly name: "withdrawTime";
readonly type: "uint48";
}];
readonly stateMutability: "view";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "account";
readonly type: "address";
}];
readonly name: "getDepositInfo";
readonly outputs: readonly [{
readonly components: readonly [{
readonly name: "deposit";
readonly type: "uint256";
}, {
readonly name: "staked";
readonly type: "bool";
}, {
readonly name: "stake";
readonly type: "uint112";
}, {
readonly name: "unstakeDelaySec";
readonly type: "uint32";
}, {
readonly name: "withdrawTime";
readonly type: "uint48";
}];
readonly name: "info";
readonly type: "tuple";
}];
readonly stateMutability: "view";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "sender";
readonly type: "address";
}, {
readonly name: "key";
readonly type: "uint192";
}];
readonly name: "getNonce";
readonly outputs: readonly [{
readonly name: "nonce";
readonly type: "uint256";
}];
readonly stateMutability: "view";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "initCode";
readonly type: "bytes";
}];
readonly name: "getSenderAddress";
readonly outputs: readonly [];
readonly stateMutability: "nonpayable";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly components: readonly [{
readonly name: "sender";
readonly type: "address";
}, {
readonly name: "nonce";
readonly type: "uint256";
}, {
readonly name: "initCode";
readonly type: "bytes";
}, {
readonly name: "callData";
readonly type: "bytes";
}, {
readonly name: "accountGasLimits";
readonly type: "bytes32";
}, {
readonly name: "preVerificationGas";
readonly type: "uint256";
}, {
readonly name: "gasFees";
readonly type: "bytes32";
}, {
readonly name: "paymasterAndData";
readonly type: "bytes";
}, {
readonly name: "signature";
readonly type: "bytes";
}];
readonly name: "userOp";
readonly type: "tuple";
}];
readonly name: "getUserOpHash";
readonly outputs: readonly [{
readonly name: "";
readonly type: "bytes32";
}];
readonly stateMutability: "view";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly components: readonly [{
readonly components: readonly [{
readonly name: "sender";
readonly type: "address";
}, {
readonly name: "nonce";
readonly type: "uint256";
}, {
readonly name: "initCode";
readonly type: "bytes";
}, {
readonly name: "callData";
readonly type: "bytes";
}, {
readonly name: "accountGasLimits";
readonly type: "bytes32";
}, {
readonly name: "preVerificationGas";
readonly type: "uint256";
}, {
readonly name: "gasFees";
readonly type: "bytes32";
}, {
readonly name: "paymasterAndData";
readonly type: "bytes";
}, {
readonly name: "signature";
readonly type: "bytes";
}];
readonly name: "userOps";
readonly type: "tuple[]";
}, {
readonly name: "aggregator";
readonly type: "address";
}, {
readonly name: "signature";
readonly type: "bytes";
}];
readonly name: "opsPerAggregator";
readonly type: "tuple[]";
}, {
readonly name: "beneficiary";
readonly type: "address";
}];
readonly name: "handleAggregatedOps";
readonly outputs: readonly [];
readonly stateMutability: "nonpayable";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly components: readonly [{
readonly name: "sender";
readonly type: "address";
}, {
readonly name: "nonce";
readonly type: "uint256";
}, {
readonly name: "initCode";
readonly type: "bytes";
}, {
readonly name: "callData";
readonly type: "bytes";
}, {
readonly name: "accountGasLimits";
readonly type: "bytes32";
}, {
readonly name: "preVerificationGas";
readonly type: "uint256";
}, {
readonly name: "gasFees";
readonly type: "bytes32";
}, {
readonly name: "paymasterAndData";
readonly type: "bytes";
}, {
readonly name: "signature";
readonly type: "bytes";
}];
readonly name: "ops";
readonly type: "tuple[]";
}, {
readonly name: "beneficiary";
readonly type: "address";
}];
readonly name: "handleOps";
readonly outputs: readonly [];
readonly stateMutability: "nonpayable";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "key";
readonly type: "uint192";
}];
readonly name: "incrementNonce";
readonly outputs: readonly [];
readonly stateMutability: "nonpayable";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "callData";
readonly type: "bytes";
}, {
readonly components: readonly [{
readonly components: readonly [{
readonly name: "sender";
readonly type: "address";
}, {
readonly name: "nonce";
readonly type: "uint256";
}, {
readonly name: "verificationGasLimit";
readonly type: "uint256";
}, {
readonly name: "callGasLimit";
readonly type: "uint256";
}, {
readonly name: "paymasterVerificationGasLimit";
readonly type: "uint256";
}, {
readonly name: "paymasterPostOpGasLimit";
readonly type: "uint256";
}, {
readonly name: "preVerificationGas";
readonly type: "uint256";
}, {
readonly name: "paymaster";
readonly type: "address";
}, {
readonly name: "maxFeePerGas";
readonly type: "uint256";
}, {
readonly name: "maxPriorityFeePerGas";
readonly type: "uint256";
}];
readonly name: "mUserOp";
readonly type: "tuple";
}, {
readonly name: "userOpHash";
readonly type: "bytes32";
}, {
readonly name: "prefund";
readonly type: "uint256";
}, {
readonly name: "contextOffset";
readonly type: "uint256";
}, {
readonly name: "preOpGas";
readonly type: "uint256";
}];
readonly name: "opInfo";
readonly type: "tuple";
}, {
readonly name: "context";
readonly type: "bytes";
}];
readonly name: "innerHandleOp";
readonly outputs: readonly [{
readonly name: "actualGasCost";
readonly type: "uint256";
}];
readonly stateMutability: "nonpayable";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "";
readonly type: "address";
}, {
readonly name: "";
readonly type: "uint192";
}];
readonly name: "nonceSequenceNumber";
readonly outputs: readonly [{
readonly name: "";
readonly type: "uint256";
}];
readonly stateMutability: "view";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "interfaceId";
readonly type: "bytes4";
}];
readonly name: "supportsInterface";
readonly outputs: readonly [{
readonly name: "";
readonly type: "bool";
}];
readonly stateMutability: "view";
readonly type: "function";
}, {
readonly inputs: readonly [];
readonly name: "unlockStake";
readonly outputs: readonly [];
readonly stateMutability: "nonpayable";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "withdrawAddress";
readonly type: "address";
}];
readonly name: "withdrawStake";
readonly outputs: readonly [];
readonly stateMutability: "nonpayable";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly name: "withdrawAddress";
readonly type: "address";
}, {
readonly name: "withdrawAmount";
readonly type: "uint256";
}];
readonly name: "withdrawTo";
readonly outputs: readonly [];
readonly stateMutability: "nonpayable";
readonly type: "function";
}, {
readonly stateMutability: "payable";
readonly type: "receive";
}];
address: `0x${string}`;
version: "0.7";
};
extend?: object | undefined;
getAddress: () => Promise<`0x${string}`>;
decodeCalls?: ((data: `0x${string}`) => Promise<readonly {
to: `0x${string}`;
data?: `0x${string}` | undefined;
value?: bigint | undefined;
}[]>) | undefined;
encodeCalls: (calls: readonly {
to: `0x${string}`;
data?: `0x${string}` | undefined;
value?: bigint | undefined;
}[], callType?: import("@zerodev/sdk/types").CallType | undefined) => Promise<`0x${string}`>;
getFactoryArgs: () => Promise<{
factory?: `0x${string}` | undefined;
factoryData?: `0x${string}` | undefined;
}>;
getNonce?: ((parameters?: {
key?: bigint | undefined;
} | undefined) => Promise<bigint>) | undefined;
getStubSignature: (parameters?: import("viem/_types/account-abstraction/index.js").UserOperationRequest | undefined) => Promise<`0x${string}`>;
nonceKeyManager?: import("viem").NonceManager | undefined;
sign: (parameters: {
hash: `0x${string}`;
}) => Promise<`0x${string}`>;
signMessage: (parameters: {
message: import("viem").SignableMessage;
useReplayableSignature?: boolean | undefined;
}) => Promise<`0x${string}`>;
signTypedData: <const typedData_1 extends Record<string, unknown> | {
[x: string]: readonly import("viem").TypedDataParameter[];
[x: `string[${string}]`]: undefined;
[x: `function[${string}]`]: undefined;
[x: `address[${string}]`]: undefined;
[x: `bool[${string}]`]: undefined;
[x: `bytes[${string}]`]: undefined;
[x: `bytes1[${string}]`]: undefined;
[x: `bytes2[${string}]`]: undefined;
[x: `bytes3[${string}]`]: undefined;
[x: `bytes4[${string}]`]: undefined;
[x: `bytes5[${string}]`]: undefined;
[x: `bytes6[${string}]`]: undefined;
[x: `bytes7[${string}]`]: undefined;
[x: `bytes8[${string}]`]: undefined;
[x: `bytes9[${string}]`]: undefined;
[x: `bytes10[${string}]`]: undefined;
[x: `bytes11[${string}]`]: undefined;
[x: `bytes12[${string}]`]: undefined;
[x: `bytes13[${string}]`]: undefined;
[x: `bytes14[${string}]`]: undefined;
[x: `bytes15[${string}]`]: undefined;
[x: `bytes16[${string}]`]: undefined;
[x: `bytes17[${string}]`]: undefined;
[x: `bytes18[${string}]`]: undefined;
[x: `bytes19[${string}]`]: undefined;
[x: `bytes20[${string}]`]: undefined;
[x: `bytes21[${string}]`]: undefined;
[x: `bytes22[${string}]`]: undefined;
[x: `bytes23[${string}]`]: undefined;
[x: `bytes24[${string}]`]: undefined;
[x: `bytes25[${string}]`]: undefined;
[x: `bytes26[${string}]`]: undefined;
[x: `bytes27[${string}]`]: undefined;
[x: `bytes28[${string}]`]: undefined;
[x: `bytes29[${string}]`]: undefined;
[x: `bytes30[${string}]`]: undefined;
[x: `bytes31[${string}]`]: undefined;
[x: `bytes32[${string}]`]: undefined;
[x: `int[${string}]`]: undefined;
[x: `int8[${string}]`]: undefined;
[x: `int16[${string}]`]: undefined;
[x: `int24[${string}]`]: undefined;
[x: `int32[${string}]`]: undefined;
[x: `int40[${string}]`]: undefined;
[x: `int48[${string}]`]: undefined;
[x: `int56[${string}]`]: undefined;
[x: `int64[${string}]`]: undefined;
[x: `int72[${string}]`]: undefined;
[x: `int80[${string}]`]: undefined;
[x: `int88[${string}]`]: undefined;
[x: `int96[${string}]`]: undefined;
[x: `int104[${string}]`]: undefined;
[x: `int112[${string}]`]: undefined;
[x: `int120[${string}]`]: undefined;
[x: `int128[${string}]`]: undefined;
[x: `int136[${string}]`]: undefined;
[x: `int144[${string}]`]: undefined;
[x: `int152[${string}]`]: undefined;
[x: `int160[${string}]`]: undefined;
[x: `int168[${string}]`]: undefined;
[x: `int176[${string}]`]: undefined;
[x: `int184[${string}]`]: undefined;
[x: `int192[${string}]`]: undefined;
[x: `int200[${string}]`]: undefined;
[x: `int208[${string}]`]: undefined;
[x: `int216[${string}]`]: undefined;
[x: `int224[${string}]`]: undefined;
[x: `int232[${string}]`]: undefined;
[x: `int240[${string}]`]: undefined;
[x: `int248[${string}]`]: undefined;
[x: `int256[${string}]`]: undefined;
[x: `uint[${string}]`]: undefined;
[x: `uint8[${string}]`]: undefined;
[x: `uint16[${string}]`]: undefined;
[x: `uint24[${string}]`]: undefined;
[x: `uint32[${string}]`]: undefined;
[x: `uint40[${string}]`]: undefined;
[x: `uint48[${string}]`]: undefined;
[x: `uint56[${string}]`]: undefined;
[x: `uint64[${string}]`]: undefined;
[x: `uint72[${string}]`]: undefined;
[x: `uint80[${string}]`]: undefined;
[x: `uint88[${string}]`]: undefined;
[x: `uint96[${string}]`]: undefined;
[x: `uint104[${string}]`]: undefined;
[x: `uint112[${string}]`]: undefined;
[x: `uint120[${string}]`]: undefined;
[x: `uint128[${string}]`]: undefined;
[x: `uint136[${string}]`]: undefined;
[x: `uint144[${string}]`]: undefined;
[x: `uint152[${string}]`]: undefined;
[x: `uint160[${string}]`]: undefined;
[x: `uint168[${string}]`]: undefined;
[x: `uint176[${string}]`]: undefined;
[x: `uint184[${string}]`]: undefined;
[x: `uint192[${string}]`]: undefined;
[x: `uint200[${string}]`]: undefined;
[x: `uint208[${string}]`]: undefined;
[x: `uint216[${string}]`]: undefined;
[x: `uint224[${string}]`]: undefined;
[x: `uint232[${string}]`]: undefined;
[x: `uint240[${string}]`]: undefined;
[x: `uint248[${string}]`]: undefined;
[x: `uint256[${string}]`]: undefined;
string?: undefined;
address?: undefined;
bool?: undefined;
bytes?: undefined;
bytes1?: undefined;
bytes2?: undefined;
bytes3?: undefined;
bytes4?: undefined;
bytes5?: undefined;
bytes6?: undefined;
bytes7?: undefined;
bytes8?: undefined;
bytes9?: undefined;
bytes10?: undefined;
bytes11?: undefined;
bytes12?: undefined;
bytes13?: undefined;
bytes14?: undefined;
bytes15?: undefined;
bytes16?: undefined;
bytes17?: undefined;
bytes18?: undefined;
bytes19?: undefined;
bytes20?: undefined;
bytes21?: undefined;
bytes22?: undefined;
bytes23?: undefined;
bytes24?: undefined;
bytes25?: undefined;
bytes26?: undefined;
bytes27?: undefined;
bytes28?: undefined;
bytes29?: undefined;
bytes30?: undefined;
bytes31?: undefined;
bytes32?: undefined;
int8?: undefined;
int16?: undefined;
int24?: undefined;
int32?: undefined;
int40?: undefined;
int48?: undefined;
int56?: undefined;
int64?: undefined;
int72?: undefined;
int80?: undefined;
int88?: undefined;
int96?: undefined;
int104?: undefined;
int112?: undefined;
int120?: undefined;
int128?: undefined;
int136?: undefined;
int144?: undefined;
int152?: undefined;
int160?: undefined;
int168?: undefined;
int176?: undefined;
int184?: undefined;
int192?: undefined;
int200?: undefined;
int208?: undefined;
int216?: undefined;
int224?: undefined;
int232?: undefined;
int240?: undefined;
int248?: undefined;
int256?: undefined;
uint8?: undefined;
uint16?: undefined;
uint24?: undefined;
uint32?: undefined;
uint40?: undefined;
uint48?: undefined;
uint56?: undefined;
uint64?: undefined;
uint72?: undefined;
uint80?: undefined;
uint88?: undefined;
uint96?: undefined;
uint104?: undefined;
uint112?: undefined;
uint120?: undefined;
uint128?: undefined;
uint136?: undefined;
uint144?: undefined;
uint152?: undefined;
uint160?: undefined;
uint168?: undefined;
uint176?: undefined;
uint184?: undefined;
uint192?: undefined;
uint200?: undefined;
uint208?: undefined;
uint216?: undefined;
uint224?: undefined;
uint232?: undefined;
uint240?: undefined;
uint248?: undefined;
uint256?: undefined;
}, primaryType_1 extends "EIP712Domain" | keyof typedData_1 = keyof typedData_1>(parameters: import("viem").TypedDataDefinition<typedData_1, primaryType_1>) => Promise<`0x${string}`>;
signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/_types/account-abstraction/index.js").UserOperation, "sender"> & {
chainId?: number | undefined;
}) => Promise<`0x${string}`>;
userOperation?: {
estimateGas?: ((userOperation: import("viem/_types/account-abstraction/index.js").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation.js").EstimateUserOperationGasReturnType> | undefined>) | undefined;
} | undefined;
authorization?: undefined;
kernelVersion: import("@zerodev/sdk/types").KERNEL_V3_VERSION_TYPE;
kernelPluginManager: import("@zerodev/sdk").KernelPluginManager<"0.7">;
factoryAddress: `0x${string}` | undefined;
accountImplementationAddress: `0x${string}`;
generateInitCode: () => Promise<`0x${string}`>;
encodeModuleInstallCallData: () => Promise<`0x${string}`>;
encodeDeployCallData: ({ abi, args, bytecode }: import("viem").EncodeDeployDataParameters) => Promise<`0x${string}`>;
signAuthorization: () => Promise<import("viem/accounts").SignAuthorizationReturnType | undefined>;
} & {
address: `0x${string}`;
getNonce: (parameters?: {
key?: bigint | undefined;
} | undefined) => Promise<bigint>;
isDeployed: () => Promise<boolean>;
type: "smart";
}) | (object & {
client: import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, {
address: `0x${string}`;
nonceManager?: import("viem").NonceManager | undefined;
sign?: ((parameters: {
hash: `0x${string}`;
}) => Promise<`0x${string}`>) | undefined;
signAuthorization?: ((parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>) | undefined;
signMessage: ({ message }: {
message: import("viem").SignableMessage;
}) => Promise<`0x${string}`>;
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
serializer?: serializer | undefined;
} | undefined) => Promise<import("viem").IsNarrowable<import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>>, `0x${string}`> extends true ? import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>> : `0x${string}`>;
signTypedData: <const typedData extends Record<string, unknown> | {
[x: string]: readonly import("viem").TypedDataParameter[];
[x: `string[${string}]`]: undefined;
[x: `function[${string}]`]: undefined;
[x: `address[${string}]`]: undefined;
[x: `bool[${string}]`]: undefined;
[x: `bytes[${string}]`]: undefined;
[x: `bytes1[${string}]`]: undefined;
[x: `bytes2[${string}]`]: undefined;
[x: `bytes3[${string}]`]: undefined;
[x: `bytes4[${string}]`]: undefined;
[x: `bytes5[${string}]`]: undefined;
[x: `bytes6[${string}]`]: undefined;
[x: `bytes7[${string}]`]: undefined;
[x: `bytes8[${string}]`]: undefined;
[x: `bytes9[${string}]`]: undefined;
[x: `bytes10[${string}]`]: undefined;
[x: `bytes11[${string}]`]: undefined;
[x: `bytes12[${string}]`]: undefined;
[x: `bytes13[${string}]`]: undefined;
[x: `bytes14[${string}]`]: undefined;
[x: `bytes15[${string}]`]: undefined;
[x: `bytes16[${string}]`]: undefined;
[x: `bytes17[${string}]`]: undefined;
[x: `bytes18[${string}]`]: undefined;
[x: `bytes19[${string}]`]: undefined;
[x: `bytes20[${string}]`]: undefined;
[x: `bytes21[${string}]`]: undefined;
[x: `bytes22[${string}]`]: undefined;
[x: `bytes23[${string}]`]: undefined;
[x: `bytes24[${string}]`]: undefined;
[x: `bytes25[${string}]`]: undefined;
[x: `bytes26[${string}]`]: undefined;
[x: `bytes27[${string}]`]: undefined;
[x: `bytes28[${string}]`]: undefined;
[x: `bytes29[${string}]`]: undefined;
[x: `bytes30[${string}]`]: undefined;
[x: `bytes31[${string}]`]: undefined;
[x: `bytes32[${string}]`]: undefined;
[x: `int[${string}]`]: undefined;
[x: `int8[${string}]`]: undefined;
[x: `int16[${string}]`]: undefined;
[x: `int24[${string}]`]: undefined;
[x: `int32[${string}]`]: undefined;
[x: `int40[${string}]`]: undefined;
[x: `int48[${string}]`]: undefined;
[x: `int56[${string}]`]: undefined;
[x: `int64[${string}]`]: undefined;
[x: `int72[${string}]`]: undefined;
[x: `int80[${string}]`]: undefined;
[x: `int88[${string}]`]: undefined;
[x: `int96[${string}]`]: undefined;
[x: `int104[${string}]`]: undefined;
[x: `int112[${string}]`]: undefined;
[x: `int120[${string}]`]: undefined;
[x: `int128[${string}]`]: undefined;
[x: `int136[${string}]`]: undefined;
[x: `int144[${string}]`]: undefined;
[x: `int152[${string}]`]: undefined;
[x: `int160[${string}]`]: undefined;
[x: `int168[${string}]`]: undefined;
[x: `int176[${string}]`]: undefined;
[x: `int184[${string}]`]: undefined;
[x: `int192[${string}]`]: undefined;
[x: `int200[${string}]`]: undefined;
[x: `int208[${string}]`]: undefined;
[x: `int216[${string}]`]: undefined;
[x: `int224[${string}]`]: undefined;
[x: `int232[${string}]`]: undefined;
[x: `int240[${string}]`]: undefined;
[x: `int248[${string}]`]: undefined;
[x: `int256[${string}]`]: undefined;
[x: `uint[${string}]`]: undefined;
[x: `uint8[${string}]`]: undefined;
[x: `uint16[${string}]`]: undefined;
[x: `uint24[${string}]`]: undefined;
[x: `uint32[${string}]`]: undefined;
[x: `uint40[${string}]`]: undefined;
[x: `uint48[${string}]`]: undefined;
[x: `uint56[${string}]`]: undefined;
[x: `uint64[${string}]`]: undefined;
[x: `uint72[${string}]`]: undefined;
[x: `uint80[${string}]`]: undefined;
[x: `uint88[${string}]`]: undefined;
[x: `uint96[${string}]`]: undefined;
[x: `uint104[${string}]`]: undefined;
[x: `uint112[${string}]`]: undefined;
[x: `uint120[${string}]`]: undefined;
[x: `uint128[${string}]`]: und