Socket
Socket
Sign inDemoInstall

@wagmi/cli

Package Overview
Dependencies
Maintainers
0
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wagmi/cli - npm Package Compare versions

Comparing version 0.0.0-canary-20240613151143 to 0.0.0-canary-20240625152428

10

dist/esm/plugins/foundry.js
import dedent from 'dedent';
import { execa, execaCommandSync } from 'execa';
import { fdir } from 'fdir';
import { default as fs } from 'fs-extra';
import { globby } from 'globby';
import { basename, extname, join, resolve } from 'pathe';

@@ -51,6 +51,6 @@ import pc from 'picocolors';

async function getArtifactPaths(artifactsDirectory) {
return await globby([
...include.map((x) => `${artifactsDirectory}/**/${x}`),
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`),
]);
const crawler = new fdir()
.withBasePath()
.glob(...include.map((x) => `${artifactsDirectory}/**/${x}`), ...exclude.map((x) => `!${artifactsDirectory}/**/${x}`));
return crawler.crawl(artifactsDirectory).withPromise();
}

@@ -57,0 +57,0 @@ const project = resolve(process.cwd(), config.project ?? '');

import { execa } from 'execa';
import { fdir } from 'fdir';
import { default as fs } from 'fs-extra';
import { globby } from 'globby';
import { basename, extname, join, resolve } from 'pathe';

@@ -24,6 +24,6 @@ import pc from 'picocolors';

async function getArtifactPaths(artifactsDirectory) {
return await globby([
...include.map((x) => `${artifactsDirectory}/**/${x}`),
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`),
]);
const crawler = new fdir()
.withBasePath()
.glob(...include.map((x) => `${artifactsDirectory}/**/${x}`), ...exclude.map((x) => `!${artifactsDirectory}/**/${x}`));
return crawler.crawl(artifactsDirectory).withPromise();
}

@@ -30,0 +30,0 @@ const project = resolve(process.cwd(), config.project);

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

export const version = '0.0.0-canary-20240613151143';
export const version = '0.0.0-canary-20240625152428';
//# sourceMappingURL=version.js.map

@@ -38,26 +38,16 @@ import type { Address } from 'viem';

export declare function blockExplorer(config: BlockExplorerConfig): {
contracts: () => import("../types.js").MaybePromise<ContractConfig<number, undefined>[]>;
contracts: () => import("../types.js").MaybePromise<ContractConfig[]>;
name: string;
run?: ((config: {
contracts: {
abi: import("abitype").Abi;
address?: `0x${string}` | Record<number, `0x${string}`> | undefined;
name: string;
content: string;
meta: {
abiName: string;
addressName?: string | undefined;
configName?: string | undefined;
};
}[];
contracts: import("../config.js").Contract[];
isTypeScript: boolean;
outputs: readonly {
plugin: Pick<import("../config.js").Plugin, "name">;
imports?: string | undefined;
prepend?: string | undefined;
imports?: string;
prepend?: string;
content: string;
}[];
}) => import("../types.js").MaybePromise<{
imports?: string | undefined;
prepend?: string | undefined;
imports?: string;
prepend?: string;
content: string;

@@ -64,0 +54,0 @@ }>) | undefined;

@@ -75,26 +75,16 @@ import type { ContractConfig } from '../config.js';

export declare function etherscan<chainId extends ChainId>(config: EtherscanConfig<chainId>): {
contracts: () => import("../types.js").MaybePromise<ContractConfig<number, undefined>[]>;
contracts: () => import("../types.js").MaybePromise<ContractConfig[]>;
name: string;
run?: ((config: {
contracts: {
abi: import("abitype").Abi;
address?: `0x${string}` | Record<number, `0x${string}`> | undefined;
name: string;
content: string;
meta: {
abiName: string;
addressName?: string | undefined;
configName?: string | undefined;
};
}[];
contracts: import("../config.js").Contract[];
isTypeScript: boolean;
outputs: readonly {
plugin: Pick<import("../config.js").Plugin, "name">;
imports?: string | undefined;
prepend?: string | undefined;
imports?: string;
prepend?: string;
content: string;
}[];
}) => import("../types.js").MaybePromise<{
imports?: string | undefined;
prepend?: string | undefined;
imports?: string;
prepend?: string;
content: string;

@@ -101,0 +91,0 @@ }>) | undefined;

@@ -26,26 +26,16 @@ import type * as chain from 'viem/chains';

export declare function sourcify<chainId extends ChainId>(config: SourcifyConfig<chainId>): {
contracts: () => import("../types.js").MaybePromise<ContractConfig<number, undefined>[]>;
contracts: () => import("../types.js").MaybePromise<ContractConfig[]>;
name: string;
run?: ((config: {
contracts: {
abi: import("abitype").Abi;
address?: `0x${string}` | Record<number, `0x${string}`> | undefined;
name: string;
content: string;
meta: {
abiName: string;
addressName?: string | undefined;
configName?: string | undefined;
};
}[];
contracts: import("../config.js").Contract[];
isTypeScript: boolean;
outputs: readonly {
plugin: Pick<import("../config.js").Plugin, "name">;
imports?: string | undefined;
prepend?: string | undefined;
imports?: string;
prepend?: string;
content: string;
}[];
}) => import("../types.js").MaybePromise<{
imports?: string | undefined;
prepend?: string | undefined;
imports?: string;
prepend?: string;
content: string;

@@ -52,0 +42,0 @@ }>) | undefined;

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

export declare const version = "0.0.0-canary-20240613151143";
export declare const version = "0.0.0-canary-20240625152428";
//# sourceMappingURL=version.d.ts.map
{
"name": "@wagmi/cli",
"description": "Manage and generate code from Ethereum ABIs",
"version": "0.0.0-canary-20240613151143",
"version": "0.0.0-canary-20240625152428",
"license": "MIT",

@@ -62,6 +62,6 @@ "repository": {

"dependencies": {
"abitype": "^1.0.2",
"abitype": "^1.0.4",
"bundle-require": "^4.0.2",
"cac": "^6.7.14",
"change-case": "^4.1.2",
"change-case": "^5.4.4",
"chokidar": "^3.5.3",

@@ -73,8 +73,9 @@ "dedent": "^0.7.0",

"execa": "^8.0.1",
"fdir": "^6.1.1",
"find-up": "^6.3.0",
"fs-extra": "^11.2.0",
"globby": "^13.2.2",
"ora": "^6.3.1",
"pathe": "^1.1.2",
"picocolors": "^1.0.0",
"picomatch": "^3.0.0",
"prettier": "^3.0.3",

@@ -81,0 +82,0 @@ "viem": "2.x",

import dedent from 'dedent'
import { execa, execaCommandSync } from 'execa'
import { fdir } from 'fdir'
import { default as fs } from 'fs-extra'
import { globby } from 'globby'

@@ -129,6 +129,9 @@ import { basename, extname, join, resolve } from 'pathe'

async function getArtifactPaths(artifactsDirectory: string) {
return await globby([
...include.map((x) => `${artifactsDirectory}/**/${x}`),
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`),
])
const crawler = new fdir()
.withBasePath()
.glob(
...include.map((x) => `${artifactsDirectory}/**/${x}`),
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`),
)
return crawler.crawl(artifactsDirectory).withPromise()
}

@@ -135,0 +138,0 @@

import { execa } from 'execa'
import { fdir } from 'fdir'
import { default as fs } from 'fs-extra'
import { globby } from 'globby'
import { basename, extname, join, resolve } from 'pathe'

@@ -96,6 +96,9 @@ import pc from 'picocolors'

async function getArtifactPaths(artifactsDirectory: string) {
return await globby([
...include.map((x) => `${artifactsDirectory}/**/${x}`),
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`),
])
const crawler = new fdir()
.withBasePath()
.glob(
...include.map((x) => `${artifactsDirectory}/**/${x}`),
...exclude.map((x) => `!${artifactsDirectory}/**/${x}`),
)
return crawler.crawl(artifactsDirectory).withPromise()
}

@@ -102,0 +105,0 @@

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

export const version = '0.0.0-canary-20240613151143'
export const version = '0.0.0-canary-20240625152428'

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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