{"_id":"@ganache/console.log","_rev":"6-a3e8ebeacbc9fcdb4557b30d29039728","name":"@ganache/console.log","dist-tags":{"internal":"0.1.0-internal.0","latest":"0.4.2","alpha":"0.2.1-alpha.0"},"versions":{"0.1.0-internal.0":{"name":"@ganache/console.log","publishConfig":{"access":"public"},"version":"0.1.0-internal.0","description":"A Solidity library and EVM hooks for using console.log from Solidity contracts","author":{"name":"David Murdoch"},"homepage":"https://github.com/trufflesuite/ganache/tree/develop/src/chains/ethereum/console.log#readme","license":"MIT","main":"lib/index.js","typings":"typings","source":"index.ts","directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/ganache.git","directory":"src/chains/ethereum/console.log"},"scripts":{"tsc":"tsc --build","test":"nyc --reporter lcov npm run mocha","mocha":"cross-env TS_NODE_FILES=true mocha --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'","prepare":"cd scripts && ts-node generate"},"bugs":{"url":"https://github.com/trufflesuite/ganache/issues"},"keywords":["ganache","ganache-core","ganache-cli","console.log","truffle console.log","solidity console.log","ethereum","evm","blockchain","smart contracts","dapps","solidity","vyper","fe","web3","tooling","truffle"],"devDependencies":{"@types/mocha":"9.0.0","cross-env":"7.0.3","ethereumjs-abi":"0.6.8","fast-check":"3.0.1","memdown":"6.1.1","mocha":"9.1.3","nyc":"15.1.0","solc":"0.8.11","ts-node":"10.4.0","typescript":"4.6.4"},"dependencies":{"@ganache/utils":"0.3.0","ethereumjs-util":"7.1.5"},"_resolved":"","_integrity":"","_from":"file:ganache-console.log-0.1.0-internal.0.tgz","_id":"@ganache/console.log@0.1.0-internal.0","_nodeVersion":"14.18.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-38O7f0CDIAwq/LhGKfEkkPsQ+0/JxxkTszmX/WZnR6a1bYViku3QjM/ZnArNe8Ho7HtlHWqcrEj1O1+/YKoyMg==","shasum":"ef8cddf8b2acab913297284a95da63e667cc3352","tarball":"https://registry.npmjs.org/@ganache/console.log/-/console.log-0.1.0-internal.0.tgz","fileCount":29,"unpackedSize":315063,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGCesjDnUDnQWigmieJQpYmrVd7BDtwTA61CxrS5gnSQIhAJ9NQiZk9VsSMzGoO+SpFV5ZbyFxlBahUYXSzL28JUVV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2BwlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVzA//VwnKapwAvkywB9O0Hnp6LgaaDKjtW2eDK7rTvD1s4kLS2pdN\r\nFtCx5flhogaDoxiMkJg9yBJRouxWjEzbyF4vZ2LOdF5jGB9yhr2YtR+kAG5P\r\nhY7khFm2lwCv1cSXyu3KRC8bfVjd0fx6a89qYyYrMJDaswo1M2XqlznpW31S\r\nO0dcu/EGjOMdP8ojpCVduJXXWHiCn6gJQUI+rs79XZ+8bH2WUF85szpMOovf\r\nUgwqym8Pntvhch8Cb93zg5hVCaoOYlrQU2tQ3wtk0QmbSWcFNx4OChjetwZJ\r\n0ctdUUM5ZdCclMhddSAXnDKY2ssTz03BgbFwdSekNWbg1ACavOQ714IzTA3y\r\nRs6B2Q3R8HiCIzE7R0Bng3UmQGlVNm/c8OBq7nFLDWV4oWdwQaPeGAkYc9h3\r\nbs3D7htM/qMLlx7XNuxkBQeMSdPtNkPWHTvp61P6/YBRc8dvjV199BXq+4Ie\r\n3lK3PzrI6QX8198xs3D0Dt8pXRb3PLD55N5q/xoN9Nw+VcBGLKi1AaGXbs46\r\nCIi4E9itNH+Zf7BzPLGAwcnAXWZ3H9v62Q2T1SWiYBd7zkbd3UZWre2bmayO\r\nsXq//hhrQDHrnWejlSyD7nnAkejqXlyDmH+KzuL2XAIlMU9E7ovqnH3jOFBW\r\nYuczq4zBSCD1um6UJu/RfCuq95YukTFHbno=\r\n=TPND\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"davidmurdoch","email":"david@davidmurdoch.com"},"maintainers":[{"name":"jeff.smale","email":"jeff.smale@consensys.net"},{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"micaiahreid","email":"micaiahreid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/console.log_0.1.0-internal.0_1658330148924_0.25739966586773644"},"_hasShrinkwrap":false},"0.2.0":{"name":"@ganache/console.log","publishConfig":{"access":"public"},"version":"0.2.0","description":"A Solidity library and EVM hooks for using console.log from Solidity contracts","author":{"name":"David Murdoch"},"homepage":"https://github.com/trufflesuite/ganache/tree/develop/src/chains/ethereum/console.log#readme","license":"MIT","main":"lib/index.js","typings":"typings","source":"index.ts","directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/ganache.git","directory":"src/chains/ethereum/console.log"},"scripts":{"tsc":"tsc --build","test":"nyc --reporter lcov npm run mocha","mocha":"cross-env TS_NODE_FILES=true mocha --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'","prepare":"cd scripts && ts-node generate"},"bugs":{"url":"https://github.com/trufflesuite/ganache/issues"},"keywords":["ganache","ganache-core","ganache-cli","console.log","truffle console.log","solidity console.log","ethereum","evm","blockchain","smart contracts","dapps","solidity","vyper","fe","web3","tooling","truffle"],"devDependencies":{"@types/mocha":"9.0.0","cross-env":"7.0.3","ethereumjs-abi":"0.6.8","fast-check":"3.0.1","memdown":"6.1.1","mocha":"9.1.3","nyc":"15.1.0","solc":"0.8.11","ts-node":"10.4.0","typescript":"4.6.4"},"dependencies":{"@ganache/utils":"0.3.0","ethereumjs-util":"7.1.5"},"gitHead":"4bac7d8c5023e7520759ffb4083a4425b30a3dff","_id":"@ganache/console.log@0.2.0","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-+SNBUZzrbe4DE4F0jdl9SU8w3ek5k4cUE73ttUFweo8FaKEDQsMbFjZ3ZU0LM6QM/zCMqE7euSq0s/IlsYxf7A==","shasum":"32ea0df806ed735d61bd0537d7b7fc350e511479","tarball":"https://registry.npmjs.org/@ganache/console.log/-/console.log-0.2.0.tgz","fileCount":29,"unpackedSize":315109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUGYrFUEOTXk9we2mG2VKqsBUy8Jq1+4Lo3Zdk5Y/vDAiA92itMP1A502KnOfpkKD4XurF9rFzp+bK9s9IdXONFeA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4ZU7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFog//UjlcFFVhrdH679AKHM+hL2/sMvnsMbjR5AonvfmKvEvnwmCI\r\nVgBPGm4wf7ccxi+m6nW72yv4+wTZw1za3KCXRUwoSfb/JueHp7MT6AEukmmA\r\nNbnX2S3n0i9QcgqQ0JKeMpB2VCHNpZJthEdE9pVr7fbLbx8RZi8RdLDoaQAp\r\nXOHeCO1V7WyD/uBrKb7a9laA1DSjonScOisT0/6F+NVtUjg6RXjdlYtVL3gt\r\nUJjGTGI8reFJW0ED7enFDLPd0GAXCV31qnHm+9WkctxADhM3sC2vUxUxwxbj\r\naKsQzNnnxCUuqK8Wh0ZROoSMFWARpA4RnN6+rYaQqGqB43Y210jnM2Ob0VZp\r\nS+ZAr9/OmN8vgJI08hKny1cjjKCsokb3ovMS2ikhkLX9nxyuHVKPgSXzWG+O\r\ns+JwxoJtVDKG/byVS3lUtDHBTKcc4FCqtD482V5l3ghz4uopWFuVTDxjZDp2\r\nAjO1+PdIIwfR0gzkPF++IMTktNBtalarU4moKZfhz9HMOxk5HQNgfbYv/xzM\r\nu6ughbjYqL/KdeXlrBC2W/ZnS7RFIrTkDT0AzNY+JZ5NoAKPv4/YUjAK9xkg\r\nx+f5kHoSKxsWVpte7DLgcHck4WtVDYPGdZKUtlb/3lSZE5WkhBGCb2gXqB3h\r\n+i8nVOgBM84IfJRO7+JeD1pITJGsyP8RC5Q=\r\n=E0UP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},"maintainers":[{"name":"jeff.smale","email":"jeff.smale@consensys.net"},{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"micaiahreid","email":"micaiahreid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/console.log_0.2.0_1658950971493_0.7810883965871829"},"_hasShrinkwrap":false},"0.2.1-alpha.0":{"name":"@ganache/console.log","publishConfig":{"access":"public"},"version":"0.2.1-alpha.0","description":"A Solidity library and EVM hooks for using console.log from Solidity contracts","author":{"name":"David Murdoch"},"homepage":"https://github.com/trufflesuite/ganache/tree/develop/src/chains/ethereum/console.log#readme","license":"MIT","main":"lib/index.js","typings":"typings","source":"index.ts","directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/ganache.git","directory":"src/chains/ethereum/console.log"},"scripts":{"tsc":"tsc --build","test":"nyc --reporter lcov npm run mocha","mocha":"cross-env TS_NODE_FILES=true mocha --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'","prepare":"cd scripts && ts-node generate"},"bugs":{"url":"https://github.com/trufflesuite/ganache/issues"},"keywords":["ganache","ganache-core","ganache-cli","console.log","truffle console.log","solidity console.log","ethereum","evm","blockchain","smart contracts","dapps","solidity","vyper","fe","web3","tooling","truffle"],"devDependencies":{"@types/mocha":"9.0.0","cross-env":"7.0.3","ethereumjs-abi":"0.6.8","fast-check":"3.0.1","memdown":"6.1.1","mocha":"9.1.3","nyc":"15.1.0","solc":"0.8.11","ts-node":"10.4.0","typescript":"4.6.4"},"dependencies":{"@ganache/utils":"0.3.0","ethereumjs-util":"7.1.5"},"gitHead":"bec1d7f374b760b2873e16a09849769e4a4386a9","readme":"# `@ganache/console.log`\n\nA Solidity library and EVM hooks for using `console.log` from Solidity\ncontracts.\n\n## Usage:\n\n`@ganache/console.log` was designed to be used with the [`@ethereumjs/vm` npm\npackage](https://www.npmjs.com/package/@ethereumjs/vm).\n\nInstall `@ganache/console.log`:\n\n```console\n> npm install @ganache/console.log --save-exact\n```\n\n`@ganache/console.log` has two parts, a `console.sol` Solidity library file, and\na method to capture logs generated by the use of the `console.sol` library.\n\n### `console.sol` Solidity Library\n\nThe `console.sol` library is available at `@ganache/console.log/console.sol`.\nThere are various ways to make this file available to your contracts and\nSolidity build pipelines, so this part is left up to the user.\n\nUse it in Solidity just like any other library, e.g.,\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity >= 0.4.22 <0.9.0;\n\nimport \"console.sol\";\n\ncontract MyContract {\n    constructor() {\n        console.log(\"got here\");\n    }\n}\n```\n\n### `console.log` parser (`maybeGetLogs`):\n\nTo use `@ganache/console.log` directly within an instance of the\n`@ethereumjs/vm` VM:\n\n```typescript\nimport { ConsoleLogs, maybeGetLogs } from \"@ganache/console.log\";\n\n// ... initialize vm ...\n\n// vm should be an instance of @ethereumjs/vm\nvm.on(\"step\", event => {\n  const logs: ConsoleLogs | null = maybeGetLogs(event); // (string | bigint | boolean)[] | null\n  // do something with `logs`\n});\n```\n\nNote: Ganache CLI, as well as `Ganache.server` and `Ganache.provider`, already\nimplement the logger parser and will automatically log calls to `console.sol` to\nstandard output just like JavaScript's `console.log`.\n","readmeFilename":"README.md","_id":"@ganache/console.log@0.2.1-alpha.0","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-qbxa74C+E7Uh0vmYwhq7TpbrY/Oq2F/m/iWzL/zLmssgMagaBOaUUhVuMhYxbCkZgX//UD+z9eJtnfpnI6CYGw==","shasum":"e349aebda3755af23ba33f42eb14ffc73004b4a9","tarball":"https://registry.npmjs.org/@ganache/console.log/-/console.log-0.2.1-alpha.0.tgz","fileCount":29,"unpackedSize":315117,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1qaJWur3l4Z76cNShKkRwQO38NrMtDXnRRVN4dWaxrgIhAJxs4FYFC4lN1BX972+Zeezz5ZkMqjvqMt0+I3ngiEBk"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF6yDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+UA//ZkwstcP9lVXSPLpChx672WHkn+bzSvERbFXmVRqztxl59NkL\r\nVE8QTyoJ5e56XmZpgH7rbqbncp1jxO8TV32ZwCLMc2WMiuw5TJUN1BeC2Vfg\r\nZWQ5kn7k+i40dHvMk2cW2hOECA9Wzc4kVM5XiJFhhXIxppZbqNho9G0xNenw\r\nE3Zsqgz2ozvbNlOBz38ZC0k9AxmghCMJ1zWfqade4b45V/1iHmdtYVpb7BF4\r\nK7GZAfEg1JXKFB3qOQapCjB57V8bh4G1wVho9usBMMEM7t9kdtCgF4Wasc5s\r\nNWDmF/NfrZVdWbnAaNXYZ51iN1w0KvO6pAq5Pq0Thw544AezOvv4Hwq1VDb6\r\noAKGbuwPD2S8fWM+x8vDGG3JY8H2+GjBLyWtee70VZCZ+MahKkUegn8ZnNgr\r\nWH68FdNtyzwCivD3kwCLoNlP/SNwoLCiG/Sj8T/kFUfQhcfvJ/95+tK7SaW3\r\nmnHhDe4oo1TCTYIGIAv8JKqVtMm7dCDyRuKsiep/4O164DzHzt3hk8NL60kS\r\nUH40/S4MfPcRMAA2A7V3g0y9zd2DrF4SPk25YfyFhier45+j2ihf/ESvhdBm\r\nP/6muChYyE6PKe4LA3itaWw8H58EjV4fzi34jMMWRoJYnSsKxDt69B9ZvJp6\r\nfBjrLAQ/OnqqbMV+d/h6ox7i6YTzRDmI+TE=\r\n=2PCf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},"maintainers":[{"name":"jeff.smale","email":"jeff.smale@consensys.net"},{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"micaiahreid","email":"micaiahreid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/console.log_0.2.1-alpha.0_1662495875720_0.9342743520196763"},"_hasShrinkwrap":false},"0.3.0":{"name":"@ganache/console.log","publishConfig":{"access":"public"},"version":"0.3.0","description":"A Solidity library and EVM hooks for using console.log from Solidity contracts","author":{"name":"David Murdoch"},"homepage":"https://github.com/trufflesuite/ganache/tree/develop/src/chains/ethereum/console.log#readme","license":"MIT","main":"lib/index.js","typings":"typings","source":"index.ts","directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/ganache.git","directory":"src/chains/ethereum/console.log"},"scripts":{"tsc":"tsc --build","test":"nyc --reporter lcov npm run mocha","mocha":"cross-env TS_NODE_FILES=true mocha --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'","prepare":"cd scripts && ts-node generate"},"bugs":{"url":"https://github.com/trufflesuite/ganache/issues"},"keywords":["ganache","ganache-core","ganache-cli","console.log","truffle console.log","solidity console.log","ethereum","evm","blockchain","smart contracts","dapps","solidity","vyper","fe","web3","tooling","truffle"],"devDependencies":{"@types/mocha":"9.0.0","cross-env":"7.0.3","ethereumjs-abi":"0.6.8","fast-check":"3.0.1","memdown":"6.1.1","mocha":"9.1.3","nyc":"15.1.0","solc":"0.8.11","ts-node":"10.9.1","typescript":"4.7.4"},"dependencies":{"@ethereumjs/util":"8.0.2","@ganache/utils":"0.3.0"},"gitHead":"5d4deb3e5fed45765e611b5ef4ada4e329e7365e","_id":"@ganache/console.log@0.3.0","_nodeVersion":"14.21.1","_npmVersion":"lerna/4.0.0/node@v14.21.1+x64 (linux)","dist":{"integrity":"sha512-cRkjY3gn1zxPxy+PKK/xl12p3KbGwXeS7oGTkXFeey4bhQgd5QBa/+HNMVPflT2BcWLZ91Ir+CRRiRekeyHUWQ==","shasum":"be7bb0875e883d7c219c3543cc7e854203c5233d","tarball":"https://registry.npmjs.org/@ganache/console.log/-/console.log-0.3.0.tgz","fileCount":29,"unpackedSize":313503,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTvqhPPiGPaxiyFAYVblwove9Ywnbe5ROIeX5r0ebsFAIhAIZ9d9E7VzKH1AAIuISH0f/OJxAfwwhKP1MuNfIWtads"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjm2bLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjsA/9HU9Qnnb3bWcyCbYvtcPr6VOc+n9E3BmbRwqob3OpnWUBdi8v\r\nep7DFpRJlBnj2gLauC4TDJ+m+IlUG6ovGxCADaolhLbgB3yryUizXDUBppyn\r\nc8sAj+kzuw24TsYdeEF5seMJAQHiswZc+NnyE9rEK7tZNDssD8o5jtvQ8I8+\r\nUIEIhIadR7b5lPgo4XTpmrO41/lLblCEaXktjUz2WUr7vlgHmeiCI4ckLl0L\r\n5WpnJtulwa/hcTuhNqH+vwpHQOF/aJUwhtjJzVYVagbzAi+ekwLkDWqlMZrs\r\nmp+wv/v6ogU3PNFVuWg3udjDVz1JllbwakYIGWrVSLFj9AT+7F56wCCBaLfV\r\nDIkAuZ3MLbqLdkYGPeyh42NbX3dYE2+ZpNSpvpbjZJlinx/k8ZmHI9M1b2oR\r\nrwbb0MWlvXkzfjTjgM4XUQM7J42WW6wea+BaxoIGK2zBhMhijJPYiJHkd+KM\r\nBPtqFmdhmXEyzrKOmyf3tIOxR/Twro7BVRRgp8mbxCOd4fF+UxvrtlGarstg\r\nrKulbV+h14LMo6lsdbIZzLMhhYZxsKEUyaejS1efhXCYUl+vk5EON27w7DJd\r\nbCWFa6ozIeitcEpq+AfpgBw1KIBXYHjFSbPuFAJELUuAErYgpUwzK2tOzdm1\r\nqWFMlCP/JDs4CuW7bKGUKQZ1RTnuwE1q1AM=\r\n=ciC8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},"maintainers":[{"name":"jeff.smale","email":"jeff.smale@consensys.net"},{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"micaiahreid","email":"micaiahreid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/console.log_0.3.0_1671128779435_0.2690242888982477"},"_hasShrinkwrap":false},"0.4.0":{"name":"@ganache/console.log","publishConfig":{"access":"public"},"version":"0.4.0","description":"A Solidity library and EVM hooks for using console.log from Solidity contracts","author":{"name":"David Murdoch"},"homepage":"https://github.com/trufflesuite/ganache/tree/develop/src/chains/ethereum/console.log#readme","license":"MIT","main":"lib/index.js","typings":"typings","source":"index.ts","directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/ganache.git","directory":"src/chains/ethereum/console.log"},"scripts":{"tsc":"tsc --build","test":"nyc --reporter lcov npm run mocha","mocha":"cross-env TS_NODE_FILES=true mocha --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'","prepare":"cd scripts && ts-node generate"},"bugs":{"url":"https://github.com/trufflesuite/ganache/issues"},"keywords":["ganache","ganache-core","ganache-cli","console.log","truffle console.log","solidity console.log","ethereum","evm","blockchain","smart contracts","dapps","solidity","vyper","fe","web3","tooling","truffle"],"devDependencies":{"@types/mocha":"9.0.0","cross-env":"7.0.3","ethereumjs-abi":"0.6.8","fast-check":"3.0.1","memdown":"6.1.1","mocha":"9.1.3","nyc":"15.1.0","solc":"0.8.11","ts-node":"10.9.1","typescript":"4.7.4"},"dependencies":{"@ethereumjs/util":"8.0.5","@ganache/utils":"0.3.0"},"gitHead":"7cba77c07030f113ddad4258fdf3dd0150f8bcbf","_id":"@ganache/console.log@0.4.0","_nodeVersion":"14.21.3","_npmVersion":"lerna/4.0.0/node@v14.21.3+x64 (linux)","dist":{"integrity":"sha512-STnTNqckh5ztGwtOBA2KlhtJJlROp7TeZqcp6L9brx/CcYDgYWwqluZv2aN4kuIIKlb0BbbtP9Gp3NAKEB2VwA==","shasum":"9775a260bb0ff94eb0815e8312b63ab905d0044a","tarball":"https://registry.npmjs.org/@ganache/console.log/-/console.log-0.4.0.tgz","fileCount":29,"unpackedSize":313503,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICcTNhXOA8Ma1o1YxFfXejAHF2afo3lV3TLWIB5b+vj4AiEApQ2OSgSqgrQNEe6B90KGAVu87o/wqCbmcR47jNjkrbI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkN0mJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonGg//SH/ikaNXTjc0vse1RqAyHMhh5EG3MBrzVaABPfgsMUa1afPM\r\nyyfY2Rr1qqbdXQHNJ50CtIi3SA7vx6U7+HT4YydXHXxFUbRx80ccESEvWcZI\r\nWL+BeRPrqrgY8sIlmaO7Sarisf32AQ5giADIvKIfVDoTxwa/f6Y4MSwV5Yb/\r\nvn2eHXg8HLAEcXL+wrtdedN1mPfFjoRv/upEuTobBVHZy87QCRcZo53rTRNg\r\ngf/N1u4rLF0/4n9Lx1WwmxO2hajdIgorP8sKvw18uqa+jHBq+v25FFLwSlpT\r\nrRTgBaqtyE03BQzaIZJr4lISVD9xkXx0XPfiSsGPaQWPgrlJYOvIvWPNCg5D\r\nkd5Dt/EB9uQUvAgp8ulJnt77wKOM81UnhUfaCHusAQaBrEhsNTNsuk/yWWO6\r\nEYYtQ6r8xOfCZyrmTL0ARmyW95NS0QzksRvLl5/GAUQLMGJO74bDHHWhBsKP\r\ngO9F6yffnazKkdDd0SeDEtZhE89wmiFe7fuG7viiH8+Ogqgn96bZmAGlFzsU\r\ndvBMundhX1sLFzLx1B3wt/oWtVGWHfizk9Wz1cHBOr4j8LBkrbf1P1SQ7iCD\r\nIoRAmf57UXIZZjgm7yVhqVVg7h8kjUQGzRpWUkWm7SAGIKuuCKqNuDOHI5pO\r\nuEtCJvLijM3BgT5rvMFy9cd+GBAA+ddvymw=\r\n=CeGo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},"maintainers":[{"name":"jeff.smale","email":"jeff.smale@consensys.net"},{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"micaiahreid","email":"micaiahreid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/console.log_0.4.0_1681344904975_0.44466646758540906"},"_hasShrinkwrap":false},"0.4.1":{"name":"@ganache/console.log","publishConfig":{"access":"public"},"version":"0.4.1","description":"A Solidity library and EVM hooks for using console.log from Solidity contracts","author":{"name":"David Murdoch"},"homepage":"https://github.com/trufflesuite/ganache/tree/develop/packages/ethereum/console.log#readme","license":"MIT","main":"lib/index.js","typings":"typings","source":"index.ts","directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/ganache.git","directory":"packages/ethereum/console.log"},"scripts":{"tsc":"tsc --build","test":"nyc --reporter lcov npm run mocha","mocha":"cross-env TS_NODE_FILES=true mocha --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'","prepare":"cd scripts && ts-node generate"},"bugs":{"url":"https://github.com/trufflesuite/ganache/issues"},"keywords":["ganache","ganache-core","ganache-cli","console.log","truffle console.log","solidity console.log","ethereum","evm","blockchain","smart contracts","dapps","solidity","vyper","fe","web3","tooling","truffle"],"devDependencies":{"@types/mocha":"9.0.0","cross-env":"7.0.3","ethereumjs-abi":"0.6.8","fast-check":"3.0.1","memdown":"6.1.1","mocha":"9.1.3","nyc":"15.1.0","solc":"0.8.11","ts-node":"10.9.1","typescript":"5.1.6"},"dependencies":{"@ganache/utils":"0.9.1"},"gitHead":"d4618893aaa38a41e2c4d51a603f7048b8635be1","_id":"@ganache/console.log@0.4.1","_nodeVersion":"20.5.1","_npmVersion":"lerna/4.0.0/node@v20.5.1+x64 (linux)","dist":{"integrity":"sha512-dEkG0kIK/ax7Y/6PeL/EvLo18b9vXzoG6oGmnA9JxO8+NEmfL8z5W4adGz7usQo4/Rn1D6l32gdBVTFYa40c7g==","shasum":"b7263e0af9fefb2f5868ce718cc2a9ef3e110183","tarball":"https://registry.npmjs.org/@ganache/console.log/-/console.log-0.4.1.tgz","fileCount":29,"unpackedSize":315434,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCefg/wNnO2Gy679KemmYPX6ROvMBInIZOfB6wSODrn5QIhAITtge071ov3s+mPrEKe3NKeQAAbwuqW/s26MK/1R356"}]},"_npmUser":{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},"maintainers":[{"name":"jeff.smale","email":"jeff.smale@consensys.net"},{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"micaiahreid","email":"micaiahreid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/console.log_0.4.1_1692741550223_0.4392947879860971"},"_hasShrinkwrap":false},"0.4.2":{"name":"@ganache/console.log","publishConfig":{"access":"public"},"version":"0.4.2","description":"A Solidity library and EVM hooks for using console.log from Solidity contracts","author":{"name":"David Murdoch"},"homepage":"https://github.com/trufflesuite/ganache/tree/develop/packages/ethereum/console.log#readme","license":"MIT","main":"lib/index.js","typings":"typings","source":"index.ts","directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/ganache.git","directory":"packages/ethereum/console.log"},"scripts":{"tsc":"tsc --build","test":"nyc --reporter lcov npm run mocha","mocha":"cross-env TS_NODE_FILES=true mocha --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'","prepare":"cd scripts && ts-node generate"},"bugs":{"url":"https://github.com/trufflesuite/ganache/issues"},"keywords":["ganache","ganache-core","ganache-cli","console.log","truffle console.log","solidity console.log","ethereum","evm","blockchain","smart contracts","dapps","solidity","vyper","fe","web3","tooling","truffle"],"devDependencies":{"@types/mocha":"9.0.0","cross-env":"7.0.3","ethereumjs-abi":"0.6.8","fast-check":"3.0.1","memdown":"6.1.1","mocha":"9.1.3","nyc":"15.1.0","solc":"0.8.11","ts-node":"10.9.1","typescript":"5.1.6"},"dependencies":{"@ganache/utils":"0.9.2"},"gitHead":"547c900a50d19b094ef636a9aeccf4f7f2356430","_id":"@ganache/console.log@0.4.2","_nodeVersion":"20.10.0","_npmVersion":"lerna/4.0.0/node@v20.10.0+x64 (linux)","dist":{"integrity":"sha512-yku2quyaPsCcSENkLwhFbdHQf3R4C7t37eADcF6x42kcaHCEPF+XwShqwmCJzpID3fTcgGg+9WeBhzPMe/Xasw==","shasum":"f6a9373899d541d57ee857766eeade6625a71c45","tarball":"https://registry.npmjs.org/@ganache/console.log/-/console.log-0.4.2.tgz","fileCount":29,"unpackedSize":315434,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx0XqmUttVqdrxCJlpSm4zMA1kiaptaWebKTj2bJ1RhAIgNXgcuOHle70YiSbFfS5rfVHdFnl/gx5KOS83ImBq7l0="}]},"_npmUser":{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},"maintainers":[{"name":"jeff.smale","email":"jeff.smale@consensys.net"},{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"micaiahreid","email":"micaiahreid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/console.log_0.4.2_1703117999258_0.2247799363000491"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-20T15:15:48.830Z","0.1.0-internal.0":"2022-07-20T15:15:49.166Z","modified":"2023-12-21T00:19:59.720Z","0.2.0":"2022-07-27T19:42:51.696Z","0.2.1-alpha.0":"2022-09-06T20:24:35.929Z","0.3.0":"2022-12-15T18:26:19.719Z","0.4.0":"2023-04-13T00:15:05.197Z","0.4.1":"2023-08-22T21:59:10.457Z","0.4.2":"2023-12-21T00:19:59.509Z"},"maintainers":[{"name":"jeff.smale","email":"jeff.smale@consensys.net"},{"name":"truffle-cicd","email":"david+truffle@trufflesuite.com"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"micaiahreid","email":"micaiahreid@gmail.com"}],"description":"A Solidity library and EVM hooks for using console.log from Solidity contracts","homepage":"https://github.com/trufflesuite/ganache/tree/develop/packages/ethereum/console.log#readme","keywords":["ganache","ganache-core","ganache-cli","console.log","truffle console.log","solidity console.log","ethereum","evm","blockchain","smart contracts","dapps","solidity","vyper","fe","web3","tooling","truffle"],"repository":{"type":"git","url":"git+https://github.com/trufflesuite/ganache.git","directory":"packages/ethereum/console.log"},"author":{"name":"David Murdoch"},"bugs":{"url":"https://github.com/trufflesuite/ganache/issues"},"license":"MIT","readme":"# `@ganache/console.log`\n\nA Solidity library and EVM hooks for using `console.log` from Solidity\ncontracts.\n\n## Usage:\n\n`@ganache/console.log` was designed to be used with the [`@ethereumjs/vm` npm\npackage](https://www.npmjs.com/package/@ethereumjs/vm).\n\nInstall `@ganache/console.log`:\n\n```console\n> npm install @ganache/console.log --save-exact\n```\n\n`@ganache/console.log` has two parts, a `console.sol` Solidity library file, and\na method to capture logs generated by the use of the `console.sol` library.\n\n### `console.sol` Solidity Library\n\nThe `console.sol` library is available at `@ganache/console.log/console.sol`.\nThere are various ways to make this file available to your contracts and\nSolidity build pipelines, so this part is left up to the user.\n\nUse it in Solidity just like any other library, e.g.,\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity >= 0.4.22 <0.9.0;\n\nimport \"console.sol\";\n\ncontract MyContract {\n    constructor() {\n        console.log(\"got here\");\n    }\n}\n```\n\n### `console.log` parser (`maybeGetLogs`):\n\nTo use `@ganache/console.log` directly within an instance of the\n`@ethereumjs/vm` VM:\n\n```typescript\nimport { ConsoleLogs, maybeGetLogs } from \"@ganache/console.log\";\n\n// ... initialize vm ...\n\n// vm should be an instance of @ethereumjs/vm\nvm.evm.events.on(\"step\", event => {\n  const logs: ConsoleLogs | null = maybeGetLogs(event); // (string | bigint | boolean)[] | null\n  // do something with `logs`\n});\n```\n\nNote: Ganache CLI, as well as `Ganache.server` and `Ganache.provider`, already\nimplement the logger parser and will automatically log calls to `console.sol` to\nstandard output just like JavaScript's `console.log`.\n","readmeFilename":"README.md"}