Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

viem

Package Overview
Dependencies
Maintainers
0
Versions
2206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viem - npm Package Compare versions

Comparing version 0.0.0-canary-20241022175958 to 0.0.0-canary-20241023011324

2

_cjs/actions/public/estimateGas.js

@@ -16,3 +16,3 @@ "use strict";

async function estimateGas(client, args) {
const account_ = args.account ?? client.account;
const { account: account_ = client.account } = args;
const account = account_ ? (0, parseAccount_js_1.parseAccount)(account_) : undefined;

@@ -19,0 +19,0 @@ try {

@@ -29,3 +29,3 @@ "use strict";

const { account: account_ = client.account, blobs, chain, gas, kzg, nonce, nonceManager, parameters = exports.defaultParameters, type, } = args;
const account = account_ ? (0, parseAccount_js_1.parseAccount)(account_) : undefined;
const account = account_ ? (0, parseAccount_js_1.parseAccount)(account_) : account_;
const request = { ...args, ...(account ? { from: account?.address } : {}) };

@@ -142,3 +142,3 @@ let block;

? { address: account.address, type: 'json-rpc' }
: undefined,
: account,
});

@@ -145,0 +145,0 @@ (0, assertRequest_js_1.assertRequest)(request);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = '0.0.0-canary-20241022175958';
exports.version = '0.0.0-canary-20241023011324';
//# sourceMappingURL=version.js.map

@@ -10,3 +10,3 @@ "use strict";

const request = await (0, prepareTransactionRequest_js_1.prepareTransactionRequest)(client, {
account,
account: null,
chain,

@@ -13,0 +13,0 @@ gas,

@@ -38,3 +38,3 @@ import { parseAccount, } from '../../accounts/utils/parseAccount.js';

export async function estimateGas(client, args) {
const account_ = args.account ?? client.account;
const { account: account_ = client.account } = args;
const account = account_ ? parseAccount(account_) : undefined;

@@ -41,0 +41,0 @@ try {

@@ -65,3 +65,3 @@ import { parseAccount, } from '../../accounts/utils/parseAccount.js';

const { account: account_ = client.account, blobs, chain, gas, kzg, nonce, nonceManager, parameters = defaultParameters, type, } = args;
const account = account_ ? parseAccount(account_) : undefined;
const account = account_ ? parseAccount(account_) : account_;
const request = { ...args, ...(account ? { from: account?.address } : {}) };

@@ -182,3 +182,3 @@ let block;

? { address: account.address, type: 'json-rpc' }
: undefined,
: account,
});

@@ -185,0 +185,0 @@ assertRequest(request);

@@ -1,2 +0,2 @@

export const version = '0.0.0-canary-20241022175958';
export const version = '0.0.0-canary-20241023011324';
//# sourceMappingURL=version.js.map

@@ -32,3 +32,3 @@ import { parseAccount, } from '../../accounts/utils/parseAccount.js';

const request = await prepareTransactionRequest(client, {
account,
account: null,
chain,

@@ -35,0 +35,0 @@ gas,

@@ -1,2 +0,2 @@

export declare const version = "0.0.0-canary-20241022175958";
export declare const version = "0.0.0-canary-20241023011324";
//# sourceMappingURL=version.d.ts.map

@@ -110,3 +110,3 @@ import type { Address } from 'abitype'

): Promise<EstimateGasReturnType> {
const account_ = args.account ?? client.account
const { account: account_ = client.account } = args
const account = account_ ? parseAccount(account_) : undefined

@@ -113,0 +113,0 @@

@@ -265,3 +265,3 @@ import type { Address } from 'abitype'

} = args
const account = account_ ? parseAccount(account_) : undefined
const account = account_ ? parseAccount(account_) : account_

@@ -416,3 +416,3 @@ const request = { ...args, ...(account ? { from: account?.address } : {}) }

? { address: account.address, type: 'json-rpc' }
: undefined,
: account,
} as EstimateGasParameters)

@@ -419,0 +419,0 @@

@@ -1,1 +0,1 @@

export const version = '0.0.0-canary-20241022175958'
export const version = '0.0.0-canary-20241023011324'

@@ -100,3 +100,3 @@ import type { Address } from 'abitype'

const request = await prepareTransactionRequest(client, {
account,
account: null,
chain,

@@ -103,0 +103,0 @@ gas,

{
"name": "viem",
"description": "TypeScript Interface for Ethereum",
"version": "0.0.0-canary-20241022175958",
"version": "0.0.0-canary-20241023011324",
"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 not supported yet

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 not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc