UNPKG

ox

Version:

Ethereum Standard Library

224 lines 16.9 kB
import * as z from 'zod/mini'; export declare const eth_requestAccounts: import("./from.js").Item<"eth_requestAccounts", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>; export declare const eth_sendRawTransaction: import("./from.js").Item<"eth_sendRawTransaction", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniTemplateLiteral<`0x${string}`>>; export declare const eth_sendRawTransactionSync: import("./from.js").Item<"eth_sendRawTransactionSync", z.ZodMiniUnion<readonly [z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>], null>]>, z.ZodMiniObject<{ blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>; blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>; contractAddress: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>; cumulativeGasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>; effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>; from: z.ZodMiniTemplateLiteral<`0x${string}`>; gasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>; logs: z.ZodMiniArray<z.ZodMiniObject<{ address: z.ZodMiniTemplateLiteral<`0x${string}`>; blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>; blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>; blockTimestamp: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; data: z.ZodMiniTemplateLiteral<`0x${string}`>; logIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>; topics: z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>; transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>; transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>; removed: z.ZodMiniBoolean<boolean>; }, z.core.$strip>>; logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>; root: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; status: z.ZodMiniCodec<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x0">, z.ZodMiniLiteral<"0x1">]>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"reverted">, z.ZodMiniLiteral<"success">]>>; to: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>; transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>; transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>; type: z.ZodMiniCodec<z.ZodMiniString<string>, z.ZodMiniString<string>>; }, z.core.$strip>>; export declare const eth_sendTransaction: import("./from.js").Item<"eth_sendTransaction", z.ZodMiniTuple<readonly [z.ZodMiniObject<{ accessList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{ address: z.ZodMiniTemplateLiteral<`0x${string}`>; storageKeys: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>; }, z.core.$strip>>>>; authorizationList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{ address: z.ZodMiniTemplateLiteral<`0x${string}`>; chainId: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>; nonce: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>; r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; yParity: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>; }, z.core.$strip>>>>; blobVersionedHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>; blobs: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>; chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>; data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; input: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; gas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; gasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; maxFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; to: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>; type: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniString<string>, z.ZodMiniString<string>>>; value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; s: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; yParity: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>; v: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>; }, z.core.$strip>], null>, z.ZodMiniTemplateLiteral<`0x${string}`>>; export declare const eth_signTransaction: import("./from.js").Item<"eth_signTransaction", z.ZodMiniTuple<readonly [z.ZodMiniObject<{ accessList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{ address: z.ZodMiniTemplateLiteral<`0x${string}`>; storageKeys: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>; }, z.core.$strip>>>>; authorizationList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{ address: z.ZodMiniTemplateLiteral<`0x${string}`>; chainId: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>; nonce: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>; r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; yParity: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>; }, z.core.$strip>>>>; blobVersionedHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>; blobs: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>; chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>; data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; input: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; gas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; gasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; maxFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; to: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>; type: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniString<string>, z.ZodMiniString<string>>>; value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>; r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; s: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; yParity: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>; v: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>; }, z.core.$strip>], null>, z.ZodMiniTemplateLiteral<`0x${string}`>>; export declare const eth_signTypedData_v4: import("./from.js").Item<"eth_signTypedData_v4", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>], null>, z.ZodMiniTemplateLiteral<`0x${string}`>>; export declare const personal_sign: import("./from.js").Item<"personal_sign", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniTemplateLiteral<`0x${string}`>>; export declare const wallet_addEthereumChain: import("./from.js").Item<"wallet_addEthereumChain", z.ZodMiniTuple<readonly [z.ZodMiniObject<{ chainId: z.ZodMiniString<string>; chainName: z.ZodMiniString<string>; nativeCurrency: z.ZodMiniOptional<z.ZodMiniObject<{ name: z.ZodMiniString<string>; symbol: z.ZodMiniString<string>; decimals: z.ZodMiniNumber<number>; }, z.core.$strip>>; rpcUrls: z.ZodMiniArray<z.ZodMiniString<string>>; blockExplorerUrls: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>; iconUrls: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>; }, z.core.$strip>], null>, z.ZodMiniNull>; export declare const wallet_getCallsStatus: import("./from.js").Item<"wallet_getCallsStatus", z.ZodMiniOptional<z.ZodMiniTuple<readonly [z.ZodMiniString<string>], null>>, z.ZodMiniObject<{ atomic: z.ZodMiniBoolean<boolean>; capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>>; chainId: z.ZodMiniTemplateLiteral<`0x${string}`>; id: z.ZodMiniString<string>; receipts: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{ logs: z.ZodMiniArray<z.ZodMiniObject<{ address: z.ZodMiniTemplateLiteral<`0x${string}`>; data: z.ZodMiniTemplateLiteral<`0x${string}`>; topics: z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>; }, z.core.$strip>>; status: z.ZodMiniTemplateLiteral<`0x${string}`>; blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>; blockNumber: z.ZodMiniTemplateLiteral<`0x${string}`>; gasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>; transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>>>; status: z.ZodMiniNumber<number>; version: z.ZodMiniString<string>; }, z.core.$strip>>; export declare const wallet_getCapabilities: import("./from.js").Item<"wallet_getCapabilities", z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTuple<[], null>, z.ZodMiniTuple<readonly [z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>], null>, z.ZodMiniTuple<readonly [z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>, z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>], null>]>>, z.ZodMiniRecord<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>>>; export declare const wallet_getPermissions: import("./from.js").Item<"wallet_getPermissions", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniArray<z.ZodMiniObject<{ caveats: z.ZodMiniArray<z.ZodMiniObject<{ type: z.ZodMiniString<string>; value: z.ZodMiniAny; }, z.core.$strip>>; date: z.ZodMiniNumber<number>; id: z.ZodMiniString<string>; invoker: z.ZodMiniString<string>; parentCapability: z.ZodMiniString<string>; }, z.core.$strip>>>; export declare const wallet_grantPermissions: import("./from.js").Item<"wallet_grantPermissions", z.ZodMiniOptional<z.ZodMiniTuple<readonly [z.ZodMiniObject<{ signer: z.ZodMiniOptional<z.ZodMiniObject<{ type: z.ZodMiniString<string>; data: z.ZodMiniOptional<z.ZodMiniUnknown>; }, z.core.$strip>>; permissions: z.ZodMiniArray<z.ZodMiniObject<{ data: z.ZodMiniUnknown; policies: z.ZodMiniArray<z.ZodMiniObject<{ data: z.ZodMiniUnknown; type: z.ZodMiniString<string>; }, z.core.$strip>>; required: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>; type: z.ZodMiniString<string>; }, z.core.$strip>>; expiry: z.ZodMiniNumber<number>; }, z.core.$strip>], null>>, z.ZodMiniObject<{ expiry: z.ZodMiniNumber<number>; factory: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; factoryData: z.ZodMiniOptional<z.ZodMiniString<string>>; grantedPermissions: z.ZodMiniArray<z.ZodMiniObject<{ data: z.ZodMiniUnknown; policies: z.ZodMiniArray<z.ZodMiniObject<{ data: z.ZodMiniUnknown; type: z.ZodMiniString<string>; }, z.core.$strip>>; required: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>; type: z.ZodMiniString<string>; }, z.core.$strip>>; permissionsContext: z.ZodMiniString<string>; signerData: z.ZodMiniOptional<z.ZodMiniObject<{ userOpBuilder: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; submitToAddress: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; }, z.core.$strip>>; }, z.core.$strip>>; export declare const wallet_requestPermissions: import("./from.js").Item<"wallet_requestPermissions", z.ZodMiniTuple<readonly [z.ZodMiniObject<{ eth_accounts: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>; }, z.core.$strip>], null>, z.ZodMiniArray<z.ZodMiniObject<{ caveats: z.ZodMiniArray<z.ZodMiniObject<{ type: z.ZodMiniString<string>; value: z.ZodMiniAny; }, z.core.$strip>>; date: z.ZodMiniNumber<number>; id: z.ZodMiniString<string>; invoker: z.ZodMiniString<string>; parentCapability: z.ZodMiniString<string>; }, z.core.$strip>>>; export declare const wallet_revokePermissions: import("./from.js").Item<"wallet_revokePermissions", z.ZodMiniTuple<readonly [z.ZodMiniObject<{ eth_accounts: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>; }, z.core.$strip>], null>, z.ZodMiniNull>; export declare const wallet_sendCalls: import("./from.js").Item<"wallet_sendCalls", z.ZodMiniTuple<readonly [z.ZodMiniObject<{ atomicRequired: z.ZodMiniBoolean<boolean>; calls: z.ZodMiniArray<z.ZodMiniObject<{ capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>>; to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; value: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; }, z.core.$strip>>; capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>>; chainId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; id: z.ZodMiniOptional<z.ZodMiniString<string>>; from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; version: z.ZodMiniString<string>; }, z.core.$strip>], null>, z.ZodMiniObject<{ capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>>; id: z.ZodMiniString<string>; }, z.core.$strip>>; export declare const wallet_showCallsStatus: import("./from.js").Item<"wallet_showCallsStatus", z.ZodMiniTuple<readonly [z.ZodMiniString<string>], null>, z.ZodMiniUndefined>; export declare const wallet_switchEthereumChain: import("./from.js").Item<"wallet_switchEthereumChain", z.ZodMiniTuple<readonly [z.ZodMiniObject<{ chainId: z.ZodMiniString<string>; }, z.core.$strip>], null>, z.ZodMiniNull>; export declare const wallet_watchAsset: import("./from.js").Item<"wallet_watchAsset", z.ZodMiniTuple<readonly [z.ZodMiniObject<{ type: z.ZodMiniLiteral<"ERC20">; options: z.ZodMiniObject<{ address: z.ZodMiniString<string>; symbol: z.ZodMiniString<string>; decimals: z.ZodMiniNumber<number>; image: z.ZodMiniOptional<z.ZodMiniString<string>>; }, z.core.$strip>; }, z.core.$strip>], null>, z.ZodMiniBoolean<boolean>>; //# sourceMappingURL=Wallet.d.ts.map