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

@ethereum-waffle/mock-contract

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethereum-waffle/mock-contract - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3-dev.06c4b26

dist/cjs/src/Doppelganger.json

27

package.json
{
"name": "@ethereum-waffle/mock-contract",
"description": "Mock smart contracts in a smart way.",
"version": "4.0.2",
"version": "4.0.3-dev.06c4b26",
"author": "Marek Kirejczyk <account@ethworks.io> (http://ethworks.io)",

@@ -11,3 +11,3 @@ "repository": "git@github.com:EthWorks/Waffle.git",

"access": "public",
"tag": "alpha"
"tag": "dev"
},

@@ -33,17 +33,15 @@ "files": [

},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.ts",
"types": "dist/esm/index.d.ts",
"main": "dist/cjs/src/index.js",
"module": "dist/esm/src/index.ts",
"types": "dist/esm/src/index.d.ts",
"engines": {
"node": ">=10.0"
},
"dependencies": {
"devDependencies": {
"ethers": "5.6.2",
"@ethersproject/abi": "^5.6.1",
"ethers": "5.6.2"
},
"devDependencies": {
"@ethereum-waffle/chai": "4.0.3",
"@ethereum-waffle/compiler": "4.0.2",
"@ethereum-waffle/chai": "4.0.8-dev.06c4b26",
"@ethereum-waffle/compiler": "4.0.3-dev.06c4b26",
"solc": "0.8.15",
"@ethereum-waffle/provider": "4.0.3",
"@ethereum-waffle/provider": "4.0.5-dev.06c4b26",
"typechain": "^8.0.0",

@@ -56,2 +54,5 @@ "mocha": "^8.2.1",

},
"peerDependencies": {
"ethers": "*"
},
"scripts": {

@@ -64,3 +65,3 @@ "test": "export NODE_ENV=test && yarn test:build && mocha",

"build:esm": "tsc -p tsconfig.build.json --outDir dist/esm --module ES6",
"build:cjs": "tsc -p tsconfig.build.json --outDir dist/cjs --declaration false",
"build:cjs": "tsc -p tsconfig.build.json --outDir dist/cjs",
"test:build": "ts-node ./test/helpers/buildTestContracts.ts",

@@ -67,0 +68,0 @@ "clean": "rimraf ./dist ./test/example/build"

import {Contract, ContractFactory, Signer, utils} from 'ethers';
import {Fragment, JsonFragment, FunctionFragment} from '@ethersproject/abi';
import type {JsonFragment} from '@ethersproject/abi';
import DoppelgangerContract from './Doppelganger.json';
type ABI = string | Array<Fragment | JsonFragment | string>
type ABI = string | Array<utils.Fragment | JsonFragment | string>

@@ -68,3 +68,3 @@ export type Stub = ReturnType<typeof stub>;

if (!func) {
func = Object.values(contract.interface.functions).find(f => f.name === functionName) as FunctionFragment;
func = Object.values(contract.interface.functions).find(f => f.name === functionName) as utils.FunctionFragment;
}

@@ -71,0 +71,0 @@ if (!func) {

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