{"_id":"@dgrlabs/hardhat-waffle","_rev":"1-b7614ed302ad1a71c7e4a2ad1758cb82","name":"@dgrlabs/hardhat-waffle","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.1":{"name":"@dgrlabs/hardhat-waffle","version":"2.0.1","description":"Hardhat plugin to test smart contracts with Waffle","homepage":"https://github.com/mrdhanz/hardhat/tree/master/packages/hardhat-waffle","repository":{"type":"git","url":"git+https://github.com/mrdhanz/hardhat.git"},"author":{"name":"Nomic Labs LLC"},"license":"MIT","main":"dist/src/index.js","types":"dist/src/index.d.ts","keywords":["ethereum","smart-contracts","hardhat","hardhat-plugin","ethers.js"],"scripts":{"lint":"yarn prettier --check && yarn eslint","lint:fix":"yarn prettier --write && yarn eslint --fix","eslint":"eslint 'src/**/*.ts' 'test/**/*.ts'","prettier":"prettier \"**/*.{js,md,json}\"","test":"mocha --recursive \"test/**/*.ts\" --exit","build":"tsc --build .","clean":"rimraf dist"},"devDependencies":{"@dgrlabs/hardhat-ethers":"^2.0.4","@types/chai":"^4.2.0","@types/fs-extra":"^5.1.0","@types/mocha":"^9.0.0","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"4.29.2","@typescript-eslint/parser":"4.29.2","chai":"^4.2.0","eslint":"^7.29.0","eslint-config-prettier":"8.3.0","eslint-plugin-import":"2.24.1","eslint-plugin-prettier":"3.4.0","ethereum-waffle":"^3.2.0","ethers":"^5.0.0","hardhat":"^2.0.0","mocha":"^7.2.0","prettier":"2.4.1","rimraf":"^3.0.2","ts-node":"^8.1.0","typescript":"~4.5.2"},"peerDependencies":{"@dgrlabs/hardhat-ethers":"^2.0.4","ethereum-waffle":"^3.2.0","ethers":"^5.0.0","hardhat":"^2.0.0"},"dependencies":{"@types/sinon-chai":"^3.2.3","@types/web3":"1.0.19"},"gitHead":"92ffcda93ecb3dd2f8efaae55cf654adbb99b139","bugs":{"url":"https://github.com/mrdhanz/hardhat/issues"},"_id":"@dgrlabs/hardhat-waffle@2.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-YFpIOlns6bc2SyFZZkEFLWmtv/pRfbF//obZEgb2+nETuztXV0OvC0+ltgUFDFQ0AlZpulL0uCj8bBPPa/h/aA==","shasum":"a0817ffd5cece1a29eff81f4e10da45f22d88188","tarball":"https://registry.npmjs.org/@dgrlabs/hardhat-waffle/-/hardhat-waffle-2.0.1.tgz","fileCount":43,"unpackedSize":38812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0/B/CRA9TVsSAnZWagAA+QcP/jVm92rZcZMzJ7TLwAZY\ny6zzey8GUa/w+vcxKCfxVNyl5O++vPLFA6Z+04tDmnXJMPoXuHSJorKfFpHA\naBvfAptxpJWStnwMardjy48Kj5zBLzd0rRX/AEbcvOqYoxTEDH9MioFYqP92\nme+nv0/bU88wQ5tthnCfQ2pBJ78LJSCiCVp8Zj8shpzlhhkk+R9o6Xyh6FAw\n9p7l+7S3OfIuXSdCfGBkwa6/cTqqmKX6ix+1fURewQ0Uwhoro5G6XZ+455QM\nfO+FgxAn/AZAO9MrZnvGz8CI2uYEPO7cvl4xUP7sEdB0FnID3V/wxCZaVgTg\nrlEYHGnRzgKJytjjXgihovfzxFntxbvr62+CvSiaYB87WusC/Tzc6UUqpdfL\nDIxthfg8Xd/ba1mJlrl6RMfxbpeJJhKsYSWW9R90heAUcJmOkbdVP5Abcpcy\ncJPGJvesuS768mL2oDda76rrhfTzJX70xhi65m7J4YZOgV5rViqPpBIt0NgP\nO/7D+dWGw35LPhexITFdoF7aJAEPuNg8UDDWja+MMoFqeG3rZnoFKKgpRlXL\nGB39NGhWsJnbJF+5/SLoPvFVS5tLlqq/dxq3vhAjY5wYrA+eiIgzMIqeSK3s\ncPgXR26KAWlnZ9s8f3mRJezM9RN51EjNwlO3r+2pvY5uzDiBecJC6PCu6siN\nfbXL\r\n=1PS0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1IrdrHLMZKK1r1i9wn//ZjixFZBEx2bzTtCPa41Kp4AiAbWRft/b6ovaVb0pGUWfIz0xK2O0CflrFLStb0Klq2rw=="}]},"_npmUser":{"name":"mrdhanzz","email":"dandigilangreal@gmail.com"},"directories":{},"maintainers":[{"name":"mrdhanzz","email":"dandigilangreal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hardhat-waffle_2.0.1_1641279614862_0.9700005263118618"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-04T07:00:14.816Z","2.0.1":"2022-01-04T07:00:15.160Z","modified":"2022-04-05T04:18:34.975Z"},"maintainers":[{"name":"mrdhanzz","email":"dandigilangreal@gmail.com"}],"description":"Hardhat plugin to test smart contracts with Waffle","homepage":"https://github.com/mrdhanz/hardhat/tree/master/packages/hardhat-waffle","keywords":["ethereum","smart-contracts","hardhat","hardhat-plugin","ethers.js"],"repository":{"type":"git","url":"git+https://github.com/mrdhanz/hardhat.git"},"author":{"name":"Nomic Labs LLC"},"bugs":{"url":"https://github.com/mrdhanz/hardhat/issues"},"license":"MIT","readme":"[![npm](https://img.shields.io/npm/v/@nomiclabs/hardhat-waffle.svg)](https://www.npmjs.com/package/@nomiclabs/hardhat-waffle) [![hardhat](https://hardhat.org/buidler-plugin-badge.svg?1)](https://hardhat.org)\n\n# hardhat-waffle\n\n[Hardhat](https://hardhat.org) plugin for integration with [Waffle](https://getwaffle.io/).\n\n## What\n\nYou can use this plugin to build smart contract tests using Waffle in Hardhat, taking advantage of both.\n\nThis plugin adds a Hardhat-ready version of Waffle to the Hardhat Runtime Environment, and automatically initializes the [Waffle Chai matchers](https://ethereum-waffle.readthedocs.io/en/latest/matchers.html).\n\n## Installation\n\n```bash\nnpm install --save-dev @nomiclabs/hardhat-waffle 'ethereum-waffle@^3.0.0' @nomiclabs/hardhat-ethers 'ethers@^5.0.0'\n```\n\nAnd add the following statement to your `hardhat.config.js`:\n\n```js\nrequire(\"@nomiclabs/hardhat-waffle\");\n```\n\nOr, if you are using TypeScript, add this to your `hardhat.config.ts`:\n\n```js\nimport \"@nomiclabs/hardhat-waffle\";\n```\n\n## Tasks\n\nThis plugin creates no additional tasks.\n\n## Environment extensions\n\nThis plugin adds a `waffle` object to the Hardhat Runtime Environment. This object has all the Waffle functionality, already adapted to work with Hardhat.\n\nThe `waffle` object has these properties:\n\n- `provider`\n- `deployContract`\n- `solidity`\n- `link`\n- `deployMockContract`\n- `createFixtureLoader`\n- `loadFixture`\n\nThis plugin depends on [`@nomiclabs/hardhat-ethers`](https://github.com/nomiclabs/hardhat/tree/master/packages/hardhat-ethers), so it also injects an `ethers` object into the HRE, which is documented [here](https://github.com/nomiclabs/hardhat/tree/master/packages/hardhat-ethers#environment-extensions).\n\n## Usage\n\nOnce installed, you can build your tests almost like in Waffle.\n\nInstead of importing things from `ethereum-waffle`, you access them from the `waffle` property of the Hardhat Runtime Environment.\n\nFor example, instead of doing\n\n```js\nconst { deployContract } = require(\"ethereum-waffle\");\n```\n\nyou should do\n\n```typescript\nconst { waffle } = require(\"hardhat\");\nconst { deployContract } = waffle;\n```\n\nAlso, you don't need to call `chai.use` in order to use [Waffle's Chai matchers](https://ethereum-waffle.readthedocs.io/en/latest/matchers.html).\n\nNote that by default, Hardhat saves its compilation output into `artifacts/` instead of `build/`. You can either use that directory in your tests, or [customize your Hardhat config](https://hardhat.org/config/#path-configuration).\n","readmeFilename":"README.md"}