{"_id":"@dexon-foundation/truffle-artifactor","_rev":"6-8b8c8adac8922ef655454d9c84b44092","name":"@dexon-foundation/truffle-artifactor","dist-tags":{"latest":"4.0.12"},"versions":{"3.0.8":{"name":"@dexon-foundation/truffle-artifactor","version":"3.0.8","description":"A contract packager for Ethereum and Javascript","author":{"name":"Tim Coulter"},"main":"./index.js","private":false,"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/truffle-artifactor.git"},"license":"MIT","devDependencies":{"@dexon-foundation/dsolc":"0.4.25","@dexon-foundation/ganache-cli":"6.2.5","chai":"4.1.2","mocha":"5.2.0","require-nocache":"^1.0.0","temp":"^0.8.3","truffle-blockchain-utils":"^0.0.5","web3":"0.20.6"},"dependencies":{"@dexon-foundation/truffle-contract":"^3.0.7","@dexon-foundation/truffle-contract-schema":"^2.0.2","async":"2.6.1","debug":"^3.1.0","fs-extra":"6.0.1","lodash":"4.17.10","truffle-expect":"^0.0.4"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/trufflesuite/truffle-artifactor/issues"},"homepage":"https://github.com/trufflesuite/truffle-artifactor#readme","_id":"@dexon-foundation/truffle-artifactor@3.0.8","_npmVersion":"6.4.0","_nodeVersion":"8.11.3","_npmUser":{"name":"boczeratul","email":"boczeratul@gmail.com"},"dist":{"integrity":"sha512-OZ+eeGJC8Eqvf42SXT1RoPrPRkx3wEsHKe7Zd7wlOCZtA28Xa/0Mgw5sjQ1f03QASYGTEL+0HP104KamHTDtkw==","shasum":"593ce8c1c481545004417258ccd05341bbb73f12","tarball":"https://registry.npmjs.org/@dexon-foundation/truffle-artifactor/-/truffle-artifactor-3.0.8.tgz","fileCount":10,"unpackedSize":20973,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEP3yCRA9TVsSAnZWagAAL0UQAJ5B/HmFSpn4SzNeOcaJ\nGnLLG8t+XsSFvnLuO+GVrOmRL9BQXWouQRPOvwjDzywxFvuUFDqTpuM6xDxl\nKr4sQOTbKf4+GPLQLV+5FGv2HiJa6rvlH3IqxDREf0RU459UDCDfd3xV+VgW\nV4lCmIBhW4fWAjvo2nNJBRoWKq+9/oPAQc31abJ+qmwHIOD4qbrT0TdXUx+H\nA+HrPKeyPjwwd6xtBzI2aYk1h2n9LTeE6HkvzncAjyuDmrxEnyOfx+RTeSD2\nTi2j3PCEyCDM3zplgvUCARcXIXIkbsaUcdInSkY/RzYlMZBanH8knReN7VMM\nj1mBb/RFdrXWBuTmH6lx7gmDEVxo0XMhMDJTKdw9bpZT3G7+x2dQp7gq8e3u\n8abv8Yb4IWXGKMIlM9pPQ+i9Pb8YI1CMiWic0nI8rh7G6ZXIq5MVy6Hhs0U6\ngX4sm9K7juVt09o1W3DmggnkC+qxFTR3EOMACQLe8qDZBrzGdBfRxqZKfXEg\nhqZhmqeTDRzTY6gMURZJ8yOky5y91mwqqbbVQDP+d62hBpNpwK6gaQ3dbLLM\nMZv/LU6NbtnTnWAVacv0yi0TRTgzx7m8e1nSGLMCMtjBvysMC3THA9GtU9GT\n6oPRP/EmXwGVZvYkET0bpr1tGg4OO97H2IsFjjjnZFdHW93eNZQDBPuX3VAB\nt3xm\r\n=IrUe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdzGeiDFZ22enqJ+2yF83eqODqAPK6wqXjTXWqm315cAiBQ8w3chO2C72lYM1FTRuLsHsjk42XHYZiB3cPx77NDvw=="}]},"maintainers":[{"name":"cobinhood-dev","email":"dev@cobinhood.com"},{"name":"boczeratul","email":"boczeratul@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/truffle-artifactor_3.0.8_1544617457647_0.3239754915433235"},"_hasShrinkwrap":false},"4.0.9":{"name":"@dexon-foundation/truffle-artifactor","version":"4.0.9","description":"A contract packager for Ethereum and Javascript","author":{"name":"Tim Coulter"},"main":"./index.js","private":false,"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/truffle-artifactor.git"},"license":"MIT","devDependencies":{"@dexon-foundation/dsolc":"0.5.0","@dexon-foundation/ganache-core":"2.3.1","chai":"4.2.0","mocha":"5.2.0","require-nocache":"^1.0.0","temp":"^0.8.3","truffle-blockchain-utils":"^0.0.7","web3":"^1.0.0-beta.37"},"dependencies":{"@dexon-foundation/truffle-contract":"^4.0.9","@dexon-foundation/truffle-contract-schema":"^3.0.9","async":"2.6.1","debug":"^4.1.0","fs-extra":"6.0.1","lodash":"4.17.10","truffle-expect":"^0.0.6"},"publishConfig":{"access":"public"},"gitHead":"534cf86b5af00f9ea2a5df6107f60832d851afdb","bugs":{"url":"https://github.com/trufflesuite/truffle-artifactor/issues"},"homepage":"https://github.com/trufflesuite/truffle-artifactor#readme","_id":"@dexon-foundation/truffle-artifactor@4.0.9","_nodeVersion":"8.11.3","_npmVersion":"lerna/3.8.4/node@v8.11.3+x64 (darwin)","dist":{"integrity":"sha512-03vchp1dKfRhcMKzdz8jY5RugsgGcwI39+4Eqspan4ufScAN638n3ScaojXVjYb7iR3jGbFyOL2m1cEtk0Cekg==","shasum":"a411d9f17729cd1050781f46433b75ca82d27599","tarball":"https://registry.npmjs.org/@dexon-foundation/truffle-artifactor/-/truffle-artifactor-4.0.9.tgz","fileCount":10,"unpackedSize":22208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNK13CRA9TVsSAnZWagAAaEcP/1Hifpsa1ntNXCszbnmX\nCSPB/NM14ZIMhe5DkHr8Vu4PEn4TmW7/gB6VZEF7z+Tn0Btfqfh2669Y5qVr\nS92p6xYmkpIvhSY9/QbsR+U7x0uAMqB5/qGyfm6CP0w4Fw4l7E2xOuPVgtpM\nSbMVbCvsEN2sSQ62HUI0x0QaIS8InV1O2IQ/SFsDx/TRxMfe47iqO5ss4AKl\nfCoYqJAn+k+1plIinUEWy2tvSOmDpohq3u9eXKvTb8SiBMfDrrwtmY6OsBy+\nICGKmlCVdE7AeUq3F49qJc7VVzMpRVQgoOpahJyL/xBFSyLOCqeluubJFTZ3\npw1qGCMXTML0v4WgOK2eC3O8o0AhJ/U0KprSt6NTj+byyUTzoM/DH0+ZB49i\n+5V8ZVOG4qGlm7JnCKCOPhVB0TT5fqLI0DE4DgeXqgw+5wRoiNHfZvvK6B4Z\n1a1XlYsSESB71R4VIlovicNr8D5/+JlZSNnGjkEpdDb8JweyUNTHrVnY6bB2\n+U+Er29FLDgRfcmSGwjXEdgiFGrGdNjzetRZ+iQ70Vg8KSMpIIHuX4Zq1B9b\nC/TI6mMcTNulCbKZE0C2DLwC4sn0smqwvYsU5aa1yUPk3sQlap5N3ACfxwaD\nu6Zw28HgXFSnGhdrvLdJVfqcM5J7oQlDhzoKxKbNSOHEqU4WbaehhVbtX6aB\n7kmk\r\n=OTR2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgTDt5A0GWISqDnDmfc+p0tcwcTctoKuzgZSQLU9gTBAiEAjIoOWVOnERwI5ocHfTwoYkvOm2SJerGabPUKxAx+rlI="}]},"maintainers":[{"name":"boczeratul","email":"boczeratul@gmail.com"},{"name":"cobinhood-dev","email":"dev@cobinhood.com"}],"_npmUser":{"name":"boczeratul","email":"boczeratul@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/truffle-artifactor_4.0.9_1546956151122_0.40305550384649536"},"_hasShrinkwrap":false},"4.0.10":{"name":"@dexon-foundation/truffle-artifactor","version":"4.0.10","description":"A contract packager for Ethereum and Javascript","author":{"name":"Tim Coulter"},"main":"./index.js","private":false,"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/truffle-artifactor.git"},"license":"MIT","devDependencies":{"@dexon-foundation/dsolc":"0.5.0","@dexon-foundation/ganache-core":"2.3.1","chai":"4.2.0","mocha":"5.2.0","require-nocache":"^1.0.0","temp":"^0.8.3","truffle-blockchain-utils":"^0.0.7","web3":"^1.0.0-beta.37"},"dependencies":{"@dexon-foundation/truffle-contract":"^4.0.10","@dexon-foundation/truffle-contract-schema":"^3.0.10","async":"2.6.1","debug":"^4.1.0","fs-extra":"6.0.1","lodash":"4.17.10","truffle-expect":"^0.0.6"},"publishConfig":{"access":"public"},"gitHead":"57d22fac8572a06c0c89503f2144f935bd4a4627","bugs":{"url":"https://github.com/trufflesuite/truffle-artifactor/issues"},"homepage":"https://github.com/trufflesuite/truffle-artifactor#readme","_id":"@dexon-foundation/truffle-artifactor@4.0.10","_nodeVersion":"8.11.3","_npmVersion":"lerna/3.8.4/node@v8.11.3+x64 (darwin)","dist":{"integrity":"sha512-1+mR9kVmote/LlcIHBEkhsskV2GQCuCS9kmZiLBDLY4/dlJTwe/zY2t/BpeYQmpDOI09RvgHN5vHt+Q158udMA==","shasum":"4b53e5ac34f71fc23c056d539ac615d893635ff3","tarball":"https://registry.npmjs.org/@dexon-foundation/truffle-artifactor/-/truffle-artifactor-4.0.10.tgz","fileCount":10,"unpackedSize":22211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNK77CRA9TVsSAnZWagAAs30P/AvYwTu5zmBDf/tExVpf\nZXd5ONFE8QrxEd/JDX4XD+wR85/PDr9P+lkk6tWKrjTeXxrN4BXisJNivpq0\nAysLpfAx45/8lTTOXaOICiQqLgT6/uheOvVtYahvrWt21x/Wd6w5+g9iUflC\nEnb9nu+cO2+pnigqn9EPwRGKEiOZO2mACq6i3xpURl6qWZAJKt3dQU4Bkvn+\nu4yY6Vj4m0ooVfADG0XfFS+/n9fDOibuiOyvUNZa3YDqcbbQqPTQ6CPN3vUb\nIkAb1ywY/u/V+icvfxEjcDFen4wy8Bh8xZQS0WoFFXkpaOjp4rFPsY2saNEt\n2xGcfo7K6J+iieSxNzFD2Fi+uSwC4k1tkS3ZLX2vkPTM3ksCTJ3P7fXF66Yw\nUuLlAfAdHxCOcodnLlR5F3aN0YQ6IxpNR8LMr97oMUEZt8XUkFye1cNysAlX\nv8YvgR6P4j9UeWdstKdKfq5pzgfcV7w8+VQlnYjKfKHXLC6xw0mnKY+jEWdx\nuX3NkTipPBJPe7jyZH+5fqX6BvqtvVCiqEs8wRxkkFI/JkTmHzivT4/PXap/\noS+TMf+izP4jWZ15lITU4zm6WORBPWK7aBASKuwtsnWwT1MS5N2dCDVofH2+\nHVjRMUsqnpxCerlpgmobKQf/UF3qJnDxD73eZKbzEk4AE6B7Q2myki7Rclhm\nkGsL\r\n=MV/i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbR1jJ/ASjA7YOdn3tImUHTqnSSvtXLqWfpVcE3SZZOQIhALmDRJhBR6stMBtIvumnDlrkbOD2iDD+C4YfoYOA1qq2"}]},"maintainers":[{"name":"boczeratul","email":"boczeratul@gmail.com"},{"name":"cobinhood-dev","email":"dev@cobinhood.com"}],"_npmUser":{"name":"boczeratul","email":"boczeratul@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/truffle-artifactor_4.0.10_1546956539217_0.882459041446193"},"_hasShrinkwrap":false},"4.0.11":{"name":"@dexon-foundation/truffle-artifactor","version":"4.0.11","description":"A contract packager for Ethereum and Javascript","author":{"name":"Tim Coulter"},"main":"./index.js","private":false,"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/truffle-artifactor.git"},"license":"MIT","devDependencies":{"@dexon-foundation/dsolc":"0.5.0","@dexon-foundation/ganache-core":"2.3.1","chai":"4.2.0","mocha":"5.2.0","require-nocache":"^1.0.0","temp":"^0.8.3","truffle-blockchain-utils":"^0.0.7","web3":"^1.0.0-beta.37"},"dependencies":{"@dexon-foundation/truffle-contract":"^4.0.11","@dexon-foundation/truffle-contract-schema":"^3.0.11","async":"2.6.1","debug":"^4.1.0","fs-extra":"6.0.1","lodash":"4.17.10","truffle-expect":"^0.0.6"},"publishConfig":{"access":"public"},"gitHead":"4f6be9812c8b7b83cd8bc2b17a47ad242b6dbf02","bugs":{"url":"https://github.com/trufflesuite/truffle-artifactor/issues"},"homepage":"https://github.com/trufflesuite/truffle-artifactor#readme","_id":"@dexon-foundation/truffle-artifactor@4.0.11","_nodeVersion":"8.11.3","_npmVersion":"lerna/3.8.4/node@v8.11.3+x64 (darwin)","dist":{"integrity":"sha512-kV2v02+RgcJmC4xGFsnRzAp0LEWvCGT713VwtdErKD+bdyQrsqkWhf85TCNKWcMJ/bESvUwrG7Uqm1kk4q4fUg==","shasum":"20d15402223acdeb2a436528d4094ed2ba32bda6","tarball":"https://registry.npmjs.org/@dexon-foundation/truffle-artifactor/-/truffle-artifactor-4.0.11.tgz","fileCount":10,"unpackedSize":22211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcnZe+CRA9TVsSAnZWagAAOYEP/iBi3Ujt2EbWWs/yQPMe\nxHtcJ6r02mGVapk0Oi0fISfkZgh0YVaJZ3zE5VyD6IPbHogZwN23jkBGLKOD\nLT1IpW1HwxNMvRiaIxMseqZr3GHdKdjGZCZcwRUn5gdUitSnWbLx3+STyHbo\nhBhJEYoTGHZ5eSwev7cpSM97WvwlT/EADCT8OMtjAqGI9hYEylsGzwt1E0mQ\ntHYCLqzHS58e/pc7YAHJBGvnSmCvxtfUi1xShh0EuD6vBlOqfRpdI35mtumq\nlEncs9Iv1JmBd7VeqmWuagPxJpIs9IerKPgji6j9pIAqxolxs9pKXXVnRRm5\nZDrnOfYzD78NA1TmV5SSogV672ZfVCnYtGnmslzm+R9DKBX89rSRRBq6I3b8\nax2ejnFP5fPzC3VHGbMQaK2xBlvyTAFrOSfCQOApE/DAEFwCtpXheKUKypoe\n4f1l71auwIFtf4hbU0B6/+w/JqF/TRvb7oFTPBL2N2Y5p8xzycu0nDwX796q\nwyFwiSTgI7Pp3WRJqHKJVHmgROpkefagEfysvBfGJLmBtXULt+YSgtwLWQ7k\nespenlnDPDyZJa5Cfj5aEsqlTQj+z2zGDw+Orz2hR2ST7rt4z8Dy0Cy+a8xD\nzMAD7/CdwMa9yA7Fc4ODnG4TmL3y4eu3k57BZSFHrzzzno/0Y8U4E2NJAcIH\nrvwr\r\n=8qxW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDonGeu5zq4R29tzJYwHweY01FCFW8qYC4h7wQXF5zFmAIgV45ZALcmlgqF3U1DF9oNIxNzPWBNtbEmIbuTmnRMlZE="}]},"maintainers":[{"email":"boczeratul@gmail.com","name":"boczeratul"},{"email":"chaoweichiu@gmail.com","name":"chaoweichiu"},{"email":"dev@cobinhood.com","name":"cobinhood-dev"}],"_npmUser":{"name":"boczeratul","email":"boczeratul@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/truffle-artifactor_4.0.11_1553831870222_0.5002071940634223"},"_hasShrinkwrap":false},"4.0.12":{"name":"@dexon-foundation/truffle-artifactor","version":"4.0.12","description":"A contract packager for Ethereum and Javascript","author":{"name":"Tim Coulter"},"main":"./index.js","private":false,"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/truffle-artifactor.git"},"license":"MIT","devDependencies":{"@dexon-foundation/dsolc":"^0.5.2","@dexon-foundation/ganache-core":"2.3.1","chai":"4.2.0","mocha":"5.2.0","require-nocache":"^1.0.0","temp":"^0.8.3","truffle-blockchain-utils":"^0.0.7","web3":"^1.0.0-beta.37"},"dependencies":{"@dexon-foundation/truffle-contract":"^4.0.12","@dexon-foundation/truffle-contract-schema":"^3.0.12","async":"2.6.1","debug":"^4.1.0","fs-extra":"6.0.1","lodash":"4.17.10","truffle-expect":"^0.0.6"},"publishConfig":{"access":"public"},"gitHead":"09f7183978850462054caa8493a7aa8f4c6a13b2","bugs":{"url":"https://github.com/trufflesuite/truffle-artifactor/issues"},"homepage":"https://github.com/trufflesuite/truffle-artifactor#readme","_id":"@dexon-foundation/truffle-artifactor@4.0.12","_nodeVersion":"8.11.3","_npmVersion":"lerna/3.8.4/node@v8.11.3+x64 (darwin)","dist":{"integrity":"sha512-n7u8UbVY5qK6hIfQIxpvL+JL22I+wQNfXOn2eLun8Enbn9bAkMRmDk926105Lvc9kp7JvV/8+6UfLHzZM05GpA==","shasum":"de9c4f69d45e9c82b95a0dfe5abd04627ff776b0","tarball":"https://registry.npmjs.org/@dexon-foundation/truffle-artifactor/-/truffle-artifactor-4.0.12.tgz","fileCount":10,"unpackedSize":22212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcna8oCRA9TVsSAnZWagAAamcP/i3AGI4ic77T3TDoYbpp\nzGqt/VF17IM9gcVgsIK4dm+iAEJ98Ncna2YvAKQwU7uXzN7J1kVfy+15QNYM\nX1XtS1edKcytUOhsHiq0u0alvC4meRtJzO18NZ8KNfdQMH51HIhh8aRo0o5h\nZaB4w+17nW5Y1rYVikjHmXtyuNPXTSpDGGbXbySdSX1eoP9Nyp93HQ1ZLel4\nJEBKBbikao3i6ntvt3uE+PGVdXfkNUw/eB+CkrJ0XyNN7iJGXJ8JZO9p6cFF\ntuth9J8vOJHdoZtffDqO14biUoRIp1A3TqSso/wbJ/urmlQpmynA6YKqBBT+\nwNmqhFFr5Zldb4fnEQd5U4TFgKG6gh/GN5DklUrZLbzOshli7uN5zBi5eSby\nFUZFUEuQxzJD7I2MDuvkspUEWKZj4sUaW+NPQdjJOg4Wyj49R2HEyq7xbt64\nDWmie7BucBcYBR5FrGzwK1S2q9ZS8Q0lQZjWj7Lq4iAdmgLVNuTaD/X/xM8f\ng3iP8cyElw3C+qUAcg9Na7WxaG/oSAvf7IIlGHQrp5KNtRqfeDsKF0YCijFd\nlmLwrV6XpsrPXkE4w0WdRZ80qis9VU8D6ZnketobajuYpeR+QrdYTeqW0ESZ\ne7TyVCBqRiBLL23SqF7ApGflzduLgki5u9wZwcWq+fWONPEgtyw5qJrF1WIe\nEV26\r\n=lsvH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcUx0oKSwAwpKs9lQbPOCRSI+8ur5VyI0e8ER5AG46cAiEAr5h4JfY2HPD5/py3NQ2x71HIoc7B+t8hq6tmAtccxsM="}]},"maintainers":[{"email":"boczeratul@gmail.com","name":"boczeratul"},{"email":"chaoweichiu@gmail.com","name":"chaoweichiu"},{"email":"dev@cobinhood.com","name":"cobinhood-dev"}],"_npmUser":{"name":"boczeratul","email":"boczeratul@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/truffle-artifactor_4.0.12_1553837863604_0.7159810826168933"},"_hasShrinkwrap":false}},"time":{"created":"2018-12-12T12:24:17.489Z","3.0.8":"2018-12-12T12:24:17.813Z","modified":"2022-04-05T04:12:36.650Z","4.0.9":"2019-01-08T14:02:31.247Z","4.0.10":"2019-01-08T14:08:59.311Z","4.0.11":"2019-03-29T03:57:50.340Z","4.0.12":"2019-03-29T05:37:43.722Z"},"maintainers":[{"email":"boczeratul@gmail.com","name":"boczeratul"},{"email":"chaoweichiu@gmail.com","name":"chaoweichiu"},{"email":"dev@cobinhood.com","name":"cobinhood-dev"}],"description":"A contract packager for Ethereum and Javascript","homepage":"https://github.com/trufflesuite/truffle-artifactor#readme","repository":{"type":"git","url":"git+https://github.com/trufflesuite/truffle-artifactor.git"},"author":{"name":"Tim Coulter"},"bugs":{"url":"https://github.com/trufflesuite/truffle-artifactor/issues"},"license":"MIT","readme":"# truffle-artifactor (formerly ether-pudding)\n\nThis package saves contract artifacts into into Javascript files that can be `require`'d. i.e.,\n\n```javascript\nvar artifactor = require(\"truffle-artifactor\");\nartifactor.save({/*...*/}, \"./MyContract.sol.js\") // => a promise\n\n// Later...\nvar MyContract = require(\"./MyContract.sol.js\");\nMyContract.setProvider(myWeb3Provider);\nMyContract.deployed().then(function(instance) {\n  return instance.doStuff(); // <-- matches the doStuff() function within MyContract.sol.\n}).then(function(result) {\n  // We just made a transaction, and it's been mined!\n  // We're given transaction hash, logs (events) and receipt for further processing.\n  console.log(result.tx, result.logs, result.receipt);\n});\n```\n\n👏\n\n### Features\n\n* Manages contract ABIs, binaries and deployed addresses, so you don't have to.\n* Packages up build artifacts into `.sol.js` files, which can then be included in your project with a simple `require`.\n* Includes multiple versions of the same contract in a single package, automatically detecting which artifacts to use based on the network version (more on this below).\n* Manages library addresses for linked libraries.\n* Manages events, making them available on a per-transaction basis (no more `event.watch()`!)\n\nThe artifactor uses [truffle-contract](https://github.com/trufflesuite/truffle-contract), which provides features above and beyond `web3`:\n\n* Synchronized transactions for better control flow: transactions won't be considered finished until you're guaranteed they've been mined.\n* Promises. No more callback hell. Works well with `ES6` and `async/await`.\n* Default values for transactions, like `from` address or `gas`.\n* Returning logs, transaction receipt and transaction hash of every synchronized transaction.\n\n### Install\n\n```\n$ npm install truffle-artifactor\n```\n\n### Example\n\nHere, we'll generate a `.sol.js` files given a JSON object like [truffle-schema](https://github.com/trufflesuite/truffle-schema). This will give us a file which we can later `require` into other projects and contexts.\n\n```javascript\nvar artifactor = require(\"truffle-artifactor\");\n\n// See truffle-schema for more info: https://github.com/trufflesuite/truffle-schema\nvar contract_data = {\n  abi: ...,              // Array; required.\n  unlinked_binary: \"...\" // String; optional.\n  address: \"...\"         // String; optional.\n};\n\nartifactor.save(contract_data, \"./MyContract.sol.js\").then(function() {\n  // The file ./MyContract.sol.js now exists, which you can\n  // import into your project like any other Javascript file.\n});\n```\n# API\n\n#### `artifactor.save(options, filename[, extra_options])`\n\nSave contract data as a `.sol.js` file. Returns a Promise.\n\n* `options`: Object. Data that represents this contract:\n\n    ```javascript\n    {\n      contract_name: \"MyContract\",  // String; optional. Defaults to \"Contract\"\n      abi: ...,                     // Array; required.  Application binary interface.\n      unlinked_binary: \"...\",       // String; optional. Binary without resolve library links.\n      address: \"...\",               // String; optional. Deployed address of contract.\n      network_id: \"...\",            // String; optional. ID of network being saved within abstraction.\n      default_network: \"...\"        // String; optional. ID of default network this abstraction should use.\n    }\n    ```\n\n    Note: `save()` will also accept an already `require`'d contract object. i.e.,\n\n    ```javascript\n    var MyContract = require(\"./path/to/MyContract.sol.js\");\n\n    artifactor.save(MyContract, ...).then(...);\n    ```\n\n  In this case, you can use the `extra_options` parameter to specify options that aren't managed by the contract abstraction itself.\n\n* `filename`: Path to save contract file.\n* `extra_options`: Object. Used if you need to specify other options within a separate object, for instance, when a contract abstraction is passed instead of an `options` object.\n\n#### `artifactor.saveAll(contracts, directory, options)`\n\nSave many contracts to the filesystem at once. Returns a Promise.\n\n* `contracts`: Object. Keys are the contract names and the values are `contract_data` objects, as in the `save()` function above:\n\n    ```javascript\n    {\n      \"MyContract\": {\n        \"abi\": ...,\n        \"unlinked_binary\": ...\n      }\n      \"AnotherContract\": {\n        // ...\n      }\n    }\n    ```\n\n* `directory`: String. Destination directory. Files will be saved via `<contract_name>.sol.js` within that directory.\n* `options`: Object. Same options listed in `save()` above.\n\n#### `artifactor.generate(options, networks)`\n\nGenerate the source code that populates the `.sol.js` file. Returns a String.\n\n* `options`: Object. Subset of options listed in the `save()` function above. Expects:\n\n    ```javascript\n  {\n      abi: ...,\n      unlinked_binary: ...\n  }\n  ```\n\n* `networks`: Object. Contains the information about this contract for each network, keyed by the network id.\n\n    ```javascript\n    {\n      \"1\": {        // live network\n        \"address\": ...\n      },\n      \"2\": {        // morden network\n        \"address\": ...\n      },\n      \"1337\": {     // private network\n        \"address\": ...\n      }\n    }\n    ```\n\n### Running Tests\n\n```\n$ npm test\n```\n\n### License\n\nMIT\n","readmeFilename":"README.md"}