Comparing version 2.22.0 to 2.22.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '2.22.0'; | ||
exports.version = '2.22.1'; | ||
//# sourceMappingURL=version.js.map |
@@ -1,2 +0,2 @@ | ||
export const version = '2.22.0'; | ||
export const version = '2.22.1'; | ||
//# sourceMappingURL=version.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.22.0"; | ||
export declare const version = "2.22.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -15,3 +15,3 @@ import type { Address, Narrow } from 'abitype'; | ||
import type { FormattedTransactionRequest } from '../../../utils/formatters/transactionRequest.js'; | ||
export type ExecuteParameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined, calls extends readonly unknown[] = readonly unknown[], _derivedChain extends Chain | undefined = DeriveChain<chain, chainOverride>> = UnionEvaluate<UnionPick<FormattedTransactionRequest<_derivedChain>, 'authorizationList' | 'gas' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas'>> & GetAccountParameter<account, Account | Address, true, true> & GetChainParameter<chain, chainOverride> & { | ||
export type ExecuteParameters<calls extends readonly unknown[] = readonly unknown[], chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined, _derivedChain extends Chain | undefined = DeriveChain<chain, chainOverride>> = UnionEvaluate<UnionPick<FormattedTransactionRequest<_derivedChain>, 'authorizationList' | 'gas' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas'>> & GetAccountParameter<account, Account | Address, true, true> & GetChainParameter<chain, chainOverride> & { | ||
/** Address that will execute the calls. */ | ||
@@ -94,3 +94,3 @@ address: Address; | ||
*/ | ||
export declare function execute<const calls extends readonly unknown[], chain extends Chain | undefined, account extends Account | undefined, chainOverride extends Chain | undefined = undefined>(client: Client<Transport, chain, account>, parameters: ExecuteParameters<chain, account, chainOverride, calls>): Promise<ExecuteReturnType>; | ||
export declare function execute<const calls extends readonly unknown[], chain extends Chain | undefined, account extends Account | undefined, chainOverride extends Chain | undefined = undefined>(client: Client<Transport, chain, account>, parameters: ExecuteParameters<calls, chain, account, chainOverride>): Promise<ExecuteReturnType>; | ||
//# sourceMappingURL=execute.d.ts.map |
@@ -76,3 +76,3 @@ import type { Client } from '../../../clients/createClient.js'; | ||
*/ | ||
execute: <const calls extends readonly unknown[], chainOverride extends Chain | undefined = undefined>(parameters: ExecuteParameters<chain, account, chainOverride, calls>) => Promise<ExecuteReturnType>; | ||
execute: <const calls extends readonly unknown[], chainOverride extends Chain | undefined = undefined>(parameters: ExecuteParameters<calls, chain, account, chainOverride>) => Promise<ExecuteReturnType>; | ||
/** | ||
@@ -79,0 +79,0 @@ * Checks if the contract supports the ERC-7821 execution mode. |
@@ -1,1 +0,1 @@ | ||
export const version = '2.22.0' | ||
export const version = '2.22.1' |
@@ -43,6 +43,6 @@ import type { Abi, Address, Narrow } from 'abitype' | ||
export type ExecuteParameters< | ||
calls extends readonly unknown[] = readonly unknown[], | ||
chain extends Chain | undefined = Chain | undefined, | ||
account extends Account | undefined = Account | undefined, | ||
chainOverride extends Chain | undefined = Chain | undefined, | ||
calls extends readonly unknown[] = readonly unknown[], | ||
_derivedChain extends Chain | undefined = DeriveChain<chain, chainOverride>, | ||
@@ -153,3 +153,3 @@ > = UnionEvaluate< | ||
client: Client<Transport, chain, account>, | ||
parameters: ExecuteParameters<chain, account, chainOverride, calls>, | ||
parameters: ExecuteParameters<calls, chain, account, chainOverride>, | ||
): Promise<ExecuteReturnType> { | ||
@@ -156,0 +156,0 @@ const { address, authorizationList, opData } = parameters |
@@ -92,3 +92,3 @@ import type { Client } from '../../../clients/createClient.js' | ||
>( | ||
parameters: ExecuteParameters<chain, account, chainOverride, calls>, | ||
parameters: ExecuteParameters<calls, chain, account, chainOverride>, | ||
) => Promise<ExecuteReturnType> | ||
@@ -95,0 +95,0 @@ /** |
{ | ||
"name": "viem", | ||
"description": "TypeScript Interface for Ethereum", | ||
"version": "2.22.0", | ||
"version": "2.22.1", | ||
"main": "./_cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "./_esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14163721