{"bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"3465740fb111d5680b47722f06fa444b69964158","tarball":"https://registry.npmjs.org/@truffle/artifactor/-/artifactor-4.0.108-decoder-no-web3.0.tgz","fileCount":20,"integrity":"sha512-GYz8KvtTXyaTvYE8sO+IJHcriycm/sp6iKgNCrcLBnmXAZdxdZ7PQVqFwhjG+YNeDIMjm7zqDSMh0uQ57tsu3Q==","signatures":[{"sig":"MEUCIQC2TMpzCMrPciwQMq2O8jd2xsUA242scMtSnnyUj7oYbgIgZ34TnhGEhSktYHKQrPgayvvCs5T0EfEYWwXstz0UvxY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwDXpCRA9TVsSAnZWagAA4AwP/2ZzR6O/mn5ieDQ2fhnl\nlvLUwdVb3Q64deEDKel3sp9pLQBaO5NNJAZyc7/QN0oEd9BOSU9KT1PvBpNq\nmhv++3z7DlInNqN1qvDiU43r8ulg7VUnJUNjnYIjQ+cfj7uxffYth8Y88lhp\nOg16ak4t3GXmsi9Pw8fiGTd/LcCLOAt1AuMMq3ygjeUCMKUYZVsaKV+02Rc1\nFltPNVVL2ghd/AfbWLiN7+yDZ8FJuGRnxZqV4cNEOZaS90HSi+HtsBNLEHmq\neJGtK9zwUb3QU2CTFyQhdId0EyA7+qxuFWFm3TfSGiZEmqEXS0zAQaLwH85c\neNAMdyIKeKJz919E0P5LJCrZQ8ryjU7G2T7/bUcXZNImG24RxRmZGBLyRziK\nm3Nvlkl69tUv8eUeohiDvZzq8Ig18PjAgYbD/fQS1JO0ZC4mv1azez64c3XZ\nx+zXj6bfTno/gPCsQM6Cvtm8Myus5lvG+OlaYFKvUnPEKRtNF8Ng88+K10z9\nLoB+sYpU5e86Wm9kbyY/pbX6GznebSY1bMcXn9BdCHhCFpRTMteMn2KeQQQA\nhf2JjtmaHOn97BeGtWIikQ0CJ38Y2+RGSoz53TYV8Phm78juOg5a7G25opHZ\nHod+PFlCU9iwjGN1e33ngSgoLpbw3l3WDEsWH7v+PaOUN4dHXITHsAkQ+YH7\nBVFy\r\n=kjvq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@truffle/artifactor","types":"dist/index.d.ts","author":{"name":"Tim Coulter"},"readme":"# @truffle/artifactor\n\nThis package saves contract artifacts into JSON files\n\n```javascript\nconst Artifactor = require(\"@truffle/artifactor\");\nconst artifactor = new Artifactor(__dirname);\nartifactor.save({/*...*/}); // => a promise saving MyContract.json to a given destination\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 `.json` files, which can then be included in your project with a simple `require`.\n* Manages library addresses for linked libraries.\n\nThe artifactor can be used with [@truffle/contract](https://github.com/trufflesuite/truffle/tree/develop/packages/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 `.json` files given a JSON object like [@truffle/contract-schema](https://github.com/trufflesuite/truffle/tree/develop/packages/contract-schema). This will give us a file which we can later `require` into other projects and contexts.\n\n```javascript\nconst Artifactor = require(\"@truffle/artifactor\");\nconst artifactor = new Artifactor(__dirname);\n\n// See truffle-schema for more info: https://github.com/trufflesuite/truffle/tree/develop/packages/contract-schema\nconst contractData = {\n  contractName: \"...\",        // String; optional.\n  abi: ...,                   // Array; required.\n  metadata: \"...\",            // String; optional.\n  bytecode: \"...\",            // String; optional.\n  \"x-some-dependency\": ...    // String, Number, Object, or Array: optional.\n};\n\nartifactor.save(contractData);\n// The file ./MyContract.json now exists, which you can\n// import into your project like any other Javascript file.\n```\n\n# API\n\n#### `artifactor.save(contractData)`\n\nSave contract data as a `.json` file. Returns a Promise.\n\n* `contractData`: Object. Data that represents this contract:\n\n    ```javascript\n    {\n      contractName: \"MyContract\",   // String; optional. Defaults to \"Contract\".\n      abi: ...,                     // Array; required.  Application binary interface.\n      metadata: \"...\",              // String; optional. Contract metadata.\n      bytecode: \"...\",              // String; optional. Contract-creation binary without resolve library links.\n      deployedBytecode: \"...\",      // String; optional. On-chain deployed binary without resolve library links.\n      sourceMap: \"...\",             // String; optional. Source mapping for bytecode.\n      deployedSourceMap: \"...\",     // String; optional. Source mapping for deployedBytecode.\n      source: \"...\",                // String; optional. Uncompiled source code for contract.\n      sourcePath: \"...\",            // String; optional. File path for uncompiled source code.\n      ast: ...,                     // Object; optional. JSON representation of contract source code, as output by compiler.\n      legacyAST: ...,               // Object; optional. Legacy JSON representation of contract source code, as output by compiler.\n      compiler: ...,                // Object; optional. Compiler \"type\" and \"properties\".\n      networks: ...,                // Object; optional. Mapping of network ID keys to network object values (address information, links to other contract instances, and/or contract event logs).\n      schemaVersion: \"...\",         // String; optional. Schema version used by contract object representation.\n      updatedAt: \"...\",             // String; optional. Time contract object representation was generated/most recently updated.\n      devdoc: \"...\",                // String; optional. Developer documentation.\n      userdoc: \"...\",               // String; optional. User documentation.\n      \"x-custom-property\": ...      // String, Number, Object, or Array: optional. Custom property. Keys must be prefixed with \"x-\".\n    }\n    ```\n\n#### `artifactor.saveAll(contracts)`\n\nSave many contracts to the filesystem at once. Returns a Promise.\n\n* `contracts`: (Object | Array). If an object is passed, the keys are the\n    contract names and the values are `contractData` objects, as in the `save`\n    function above. If an Array is used, the members are `contractData` objects\n    as in the `save` function above.\n\n    ```javascript\n    {\n      MyContract: {\n        abi: \"...\",\n        bytecode: \"...\",\n        // ...\n      },\n      AnotherContract: {\n        abi: \"...\",\n        bytecode: \"...\",\n        // ...\n      }\n    }\n    ```\n    or\n    ```javascript\n    [\n      {\n        contract_name: \"MyContract\",\n        abi: \"...\",\n        bytecode: \"...\",\n        // ...\n      },{\n        contract_name: \"AnotherContract\",\n        abi: \"...\",\n        bytecode: \"...\",\n        // ...\n      }\n    ]\n    ```\n\n### Running Tests\n\n```\n$ npm test\n```\n\n### License\n\nMIT\n","gitHead":"05255c0e3499d5ee81727740b54a84c60f60968d","license":"MIT","private":false,"scripts":{"test":"mocha","build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"gnidan","email":"nick@gnidan.org"},"homepage":"https://github.com/trufflesuite/truffle#readme","deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/artifactor"},"_npmVersion":"lerna/3.19.0/node@v12.20.2+x64 (darwin)","description":"A contract packager for Ethereum and Javascript","directories":{},"maintainers":[{"name":"cds-amal","email":"cds.sudama@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"seesemichaelj","email":"seesemichaelj@gmail.com"}],"_nodeVersion":"12.20.2","dependencies":{"fs-extra":"^9.1.0","lodash.merge":"^4.6.2","lodash.assign":"^4.2.0","@truffle/contract-schema":"^3.4.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tmp":"^0.2.1","chai":"^4.2.0","web3":"1.3.6","debug":"^4.3.1","mocha":"8.1.2","sinon":"^9.0.2","ts-node":"^9.0.0","typescript":"^4.1.4","@types/node":"12.12.21","ganache-core":"2.13.0","@types/fs-extra":"^8.1.0","require-nocache":"^1.0.0","@truffle/contract":"^4.3.20-decoder-no-web3.0","@types/lodash.merge":"^4.6.6","@types/lodash.assign":"^4.2.6"},"_npmOperationalInternal":{"tmp":"tmp/artifactor_4.0.108-decoder-no-web3.0_1623209449345_0.7847746810976042","host":"s3://npm-registry-packages"},"_id":"@truffle/artifactor@4.0.108-decoder-no-web3.0","version":"4.0.108-decoder-no-web3.0"}