@ethereum-waffle/mock-contract
Advanced tools
Comparing version 4.0.2 to 4.0.3-dev.06c4b26
{ | ||
"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) { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
310964
1
18
1253
12
1
1
+ Added@adraffy/ens-normalize@1.10.1(transitive)
+ Added@noble/curves@1.2.0(transitive)
+ Added@noble/hashes@1.3.2(transitive)
+ Added@types/node@22.7.5(transitive)
+ Addedaes-js@4.0.0-beta.5(transitive)
+ Addedethers@6.13.4(transitive)
+ Addedtslib@2.7.0(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedws@8.17.1(transitive)
- Removed@ethersproject/abi@^5.6.1
- Removedethers@5.6.2
- Removed@ethersproject/abi@5.6.05.7.0(transitive)
- Removed@ethersproject/abstract-provider@5.6.05.7.0(transitive)
- Removed@ethersproject/abstract-signer@5.6.05.7.0(transitive)
- Removed@ethersproject/address@5.6.05.7.0(transitive)
- Removed@ethersproject/base64@5.6.05.7.0(transitive)
- Removed@ethersproject/basex@5.6.0(transitive)
- Removed@ethersproject/bignumber@5.6.05.7.0(transitive)
- Removed@ethersproject/bytes@5.6.15.7.0(transitive)
- Removed@ethersproject/constants@5.6.05.7.0(transitive)
- Removed@ethersproject/contracts@5.6.0(transitive)
- Removed@ethersproject/hash@5.6.05.7.0(transitive)
- Removed@ethersproject/hdnode@5.6.0(transitive)
- Removed@ethersproject/json-wallets@5.6.0(transitive)
- Removed@ethersproject/keccak256@5.6.05.7.0(transitive)
- Removed@ethersproject/logger@5.6.05.7.0(transitive)
- Removed@ethersproject/networks@5.6.15.7.1(transitive)
- Removed@ethersproject/pbkdf2@5.6.0(transitive)
- Removed@ethersproject/properties@5.6.05.7.0(transitive)
- Removed@ethersproject/providers@5.6.2(transitive)
- Removed@ethersproject/random@5.6.0(transitive)
- Removed@ethersproject/rlp@5.6.05.7.0(transitive)
- Removed@ethersproject/sha2@5.6.0(transitive)
- Removed@ethersproject/signing-key@5.6.05.7.0(transitive)
- Removed@ethersproject/solidity@5.6.0(transitive)
- Removed@ethersproject/strings@5.6.05.7.0(transitive)
- Removed@ethersproject/transactions@5.6.05.7.0(transitive)
- Removed@ethersproject/units@5.6.0(transitive)
- Removed@ethersproject/wallet@5.6.0(transitive)
- Removed@ethersproject/web@5.6.05.7.1(transitive)
- Removed@ethersproject/wordlists@5.6.0(transitive)
- Removedaes-js@3.0.0(transitive)
- Removedbech32@1.1.4(transitive)
- Removedbn.js@4.12.15.2.1(transitive)
- Removedbrorand@1.1.0(transitive)
- Removedelliptic@6.5.4(transitive)
- Removedethers@5.6.2(transitive)
- Removedhash.js@1.1.7(transitive)
- Removedhmac-drbg@1.0.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjs-sha3@0.8.0(transitive)
- Removedminimalistic-assert@1.0.1(transitive)
- Removedminimalistic-crypto-utils@1.0.1(transitive)
- Removedscrypt-js@3.0.1(transitive)
- Removedws@7.4.6(transitive)