{"_id":"@darienmh/truffle-plugin-abigen","_rev":"4-a21b5989026ea40b8640bd0bc87bbc3b","time":{"created":"2022-09-24T22:16:31.819Z","0.0.2":"2022-09-24T21:35:58.032Z","modified":"2023-12-01T13:07:45.916Z","0.0.3":"2022-09-24T22:16:32.064Z","1.0.0":"2023-12-01T13:07:45.712Z"},"name":"@darienmh/truffle-plugin-abigen","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.3":{"name":"@darienmh/truffle-plugin-abigen","version":"0.0.3","description":"Truffle plugin to post-process contracts for go-ethereum's abigen","main":"index.js","scripts":{"lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/darienmh/truffle-plugin-abigen.git"},"author":{"name":"ChainSafe Systems, Darien Macias"},"license":"Apache-2.0","bugs":{"url":"https://github.com/darienmh/truffle-plugin-abigen/issues"},"homepage":"https://github.com/darienmh/truffle-plugin-abigen#readme","dependencies":{"cli-logger":"^0.5.40","eslint":"^6.8.0","truffle":"^5.1.46"},"keywords":["truffle","abi","generate"],"gitHead":"e15d958c9534d6ce76aab9bbf9f4b0d09dc03a5c","_id":"@darienmh/truffle-plugin-abigen@0.0.3","_nodeVersion":"16.16.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Hkuk42rtGFvYm+MC7l01DzwuSNPB/nHnArwctpMS1s9IujxFX9CGHK2ImcbrrFMOLuSuFpT2eiqXfJbfwhaRmA==","shasum":"0ed906b06e8483e626543814ff28204606f7364c","tarball":"https://registry.npmjs.org/@darienmh/truffle-plugin-abigen/-/truffle-plugin-abigen-0.0.3.tgz","fileCount":50,"unpackedSize":562548,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClvwiu5RElMSGhZELYrJl/LDg57OGQlzGpUF1SNZPElQIhAMlWpFTlHwPc2pDR5xv1A4vYjLM4Fhs+U3wbAZnwbv+k"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjL4HAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqN8A/7BAV1vjzIyGsn1L19w7lq4x6THsFbKJFCwfebj40TawsqcURO\r\nUsjAeXRO7gKM3k6Um+ebkfY6uIY5gOwBahLVpXM/IdeovY4v/sacUZBfQCd+\r\n+IvZLranuukVcfYEFuDDLNkuddskrHqGCih/s9ILt3b//ZxsI5zgvLS8hXL1\r\nmVgTrOGcj/6Rw6jeK9LYIB832KktTglPZ5ajDNlDhwupHT3zeRWvaYwgz7uP\r\nU8plHK3VWQT1cv4NOC7o2szrmmyn562QAmjUmxP8gwnyY1Y5XRO8I3S1FjDX\r\nMz/Ea2kJUD6bqyX4N2Q43AwNvIoUCB9Ybar1MNy4iCAkjYwoTLdI1cia3LqS\r\nT3ZtdrTUOIK3lDFToOeoc679wvUcv0kzRGIEN79wekZQdQKZuJ09qNP/me6L\r\n7Wp0SCLU6/UasotAycIMD5ONPmsb0D9RrFx8pB2ncg+Mke+PyzTpE2gCWzBZ\r\nMSuTXcXEKCsKhfR2TjYIbTNM2Xxo91iRa4Etd9hUN/1a+sjLAJ0FzKSOwoza\r\nCIKgfpK3GGeTNnkY2EtLl1B4m0R1OR2b0si3O2HMI+Y8HrMhIrGjS4M8kSLO\r\ne6c1k/yX6kcBltG25KEHvgNAhGi7YlbNsWZPoDRS25ekSDY3uPXLfwRbngqy\r\nkeqDCAVnIGNS634nruPvBJiSdX6adE0Aj/U=\r\n=OXif\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"darienmh","email":"darienmh@gmail.com"},"directories":{},"maintainers":[{"name":"darienmh","email":"darienmh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/truffle-plugin-abigen_0.0.3_1664057791883_0.8832639717402875"},"_hasShrinkwrap":false},"1.0.0":{"name":"@darienmh/truffle-plugin-abigen","version":"1.0.0","description":"Truffle plugin to post-process contracts for go-ethereum's abigen","main":"index.js","scripts":{"lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/darienmh/truffle-plugin-abigen.git"},"author":{"name":"ChainSafe Systems, Darien Macias"},"license":"Apache-2.0","bugs":{"url":"https://github.com/darienmh/truffle-plugin-abigen/issues"},"homepage":"https://github.com/darienmh/truffle-plugin-abigen#readme","dependencies":{"cli-logger":"^0.5.40","truffle":"^5.11.5"},"keywords":["truffle","abi","generate"],"devDependencies":{"eslint":"^8.54.0","eslint-config-standard":"^17.1.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.3.1","eslint-plugin-promise":"^6.1.1"},"_id":"@darienmh/truffle-plugin-abigen@1.0.0","gitHead":"97c2b0179fc34f9ab8742049092931d3ddb64ebf","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-m0ohcKZ308tKncyyvNRJ2O5vbOcs3chS656pAcbwiV52Ovg1pw97CbCEZ2DwArPk3uEj4wLco2etI7wQeJ4zaQ==","shasum":"c6594dcac0ad76df6563c73351c5d7ff7928918a","tarball":"https://registry.npmjs.org/@darienmh/truffle-plugin-abigen/-/truffle-plugin-abigen-1.0.0.tgz","fileCount":50,"unpackedSize":562667,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnX9pOObbjGt+LRPvYUaj34FtOVC09+plC6weMzS9zpAIhAIQfa5HZ6NBoYXmYpdrrpjBukHRZlkwXc7WHscgBkirq"}]},"_npmUser":{"name":"darienmh","email":"darienmh@gmail.com"},"directories":{},"maintainers":[{"name":"darienmh","email":"darienmh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/truffle-plugin-abigen_1.0.0_1701436065501_0.7627272364720621"},"_hasShrinkwrap":false}},"maintainers":[{"name":"darienmh","email":"darienmh@gmail.com"}],"description":"Truffle plugin to post-process contracts for go-ethereum's abigen","homepage":"https://github.com/darienmh/truffle-plugin-abigen#readme","keywords":["truffle","abi","generate"],"repository":{"type":"git","url":"git+https://github.com/darienmh/truffle-plugin-abigen.git"},"author":{"name":"ChainSafe Systems, Darien Macias"},"bugs":{"url":"https://github.com/darienmh/truffle-plugin-abigen/issues"},"license":"Apache-2.0","readme":"# truffle-plugin-abigen\n\nThis truffle plugin generates the required files needed to use Geths [abigen](https://geth.ethereum.org/docs/dapp/native-bindings) to generate contract bindings in golang.\n\n## Installation\n1. Install the plugin with npm\n    ```sh\n    npm install @darienmh/truffle-plugin-abigen\n    // or\n    yarn add @darienmh/truffle-plugin-abigen\n    ```\n2. Add the plugin to your `truffle.js` or `truffle-config.js` file\n    ```js\n    module.exports = {\n      /* ... rest of truffle-config */\n\n      plugins: [\n        \"@darienmh/truffle-plugin-abigen\"\n      ]\n    }\n    ```\n3. Optional configuration in your `truffle.js` or `truffle-config.js` file\n   ```js\n    module.exports = {\n      /* ... rest of truffle-config */\n\n      abigen: {\n        exportFolder: './abiExported/',\n        extensionAbi: '.json',\n        generateBin: false,\n        exportConsole: true\n      }\n    }\n    ```\n\n## Usage\nBefore running ensure that you've compiled your contracts:\n```sh\ntruffle compile\n```\nTo generate specific contract bindings:\n```sh\ntruffle run abigen SomeContractName AnotherContractName\n```\nAlternatively, to generate bindings for all your contracts:\n```sh\ntruffle run abigen\n```\nYou can also configure the `package.json` file to generate abi for all your contracts on compile:\n```json\n{\n   /* ... rest of package.json */\n   \"scripts\": {\n      /* ... rest of package.json */\n      \"compile\": \"truffle compile --all && truffle run abigen\"\n   }\n}\n```\n```bash\nnpm run compile\n# or\nyarn compile\n```\n\n### Debugging\nYou can pass an optional `--debug` flag into the plugin to display debug messages during the verification process. This is generally not necessary, but can be used to provide additional information when the plugin appears to malfunction.","readmeFilename":"README.md"}