{"dist":{"shasum":"9ad34ee49b990e08c672c47d6a9e59e9d6cf34a6","tarball":"https://registry.npmjs.org/@truffle/artifactor/-/artifactor-4.0.45-alphaTez.3.tgz","fileCount":17,"integrity":"sha512-+8BFlox11wsIxIGCxw46mHiPSgjPHINEHKqh6Cgz7JHzMexyoUjGf6cFVuyf7DMe5Q4XTNeBq4fzU2ao+cRTkA==","signatures":[{"sig":"MEQCIBROeHDVhAwojfaUsZeGn+esDpH8L249h/UvroWO5PR9AiAsxRaybVpuoKtXbZKeCNqEp9sAszpwJiBcf3qMME43iw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIMGVCRA9TVsSAnZWagAAOdIP/3xt/2lqxHArMyeckiC8\ncHOcOf7NiPnIbW6G4XoNiayuEfSToGSX6dKenVlKxbtxrTsYYeIzpMz8FZm9\nPUbfio5jnBE+kH37uSviR/PDmthyZKxY7ZoeiijwUvsK+TGvcHcwLjAEpIbv\ndrMFToGMy0i6+JNibJwJxPWesxWUKH7nrr1EVmdpLSeShSccopLMba0gihPC\nx0bhch2GV/GkfoFB7JoRTD/vVGf0MlkZu8HrGPjlQWqdNOYMFAiqvUoR5Xtn\nbVbu61vTDj5M7BufotN845zXM0QlbeWQYPW1BXk7p2/iyU0IQmtaFCQ4qSQK\nj+DCXHU5e2sqEAg9DQX3zu5VhGpN9g9f6qExLKKwir12FS0XkRnjGJBgw5+i\nQ4VAcA+F9KzTTUB/b0W8sEFFr15eLl3NV+NAd0rUNGYbT7EA4C6tIUnW3IkR\nzSF6ghWqJl6a2KaQCkfqBZsmkSVgNh32jDdz+085VcDtSEdKs3II9l9UzAnq\nqukJKAIYeLHNOO9dWW6KZ6qv/0NVndPMnMZSH583I/bHw5SVs98bU9d3N84X\ngqVa8FTH6im2+Ty3NHVxQ62uuExs2Dg9UWA+toUJMdcyft2q5sgjbn4mO7aw\nMCOwet/jRIxnaK2IP+onBiMqNji92aZEg32jIty8+9jO6oYYEn0DrMB1JmoI\nai3X\r\n=iRAw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@truffle/artifactor","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. Keys are the contract names and the values are `contractData` objects, as in the `save()` function above:\n\n    ```javascript\n    {\n      \"MyContract\": {\n        \"abi\": ...,\n        \"bytecode\": \"...\"\n      }\n      \"AnotherContract\": {\n        // ...\n      }\n    }\n    ```\n\n### Running Tests\n\n```\n$ npm test\n```\n\n### License\n\nMIT\n","gitHead":"d29ebd9d610cf07fbd046b0a19bd6113916f7ad3","license":"MIT","private":false,"scripts":{"test":"mocha","build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"cruzmolina","email":"cruz.adam.molina@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"https://github.com/trufflesuite/truffle/tree/master/packages/artifactor","type":"git"},"_npmVersion":"lerna/3.19.0/node@v10.18.0+x64 (darwin)","description":"A contract packager for Ethereum and Javascript","directories":{},"maintainers":[{"name":"cruzmolina","email":"cruz.adam.molina@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"seesemichaelj","email":"seesemichaelj@gmail.com"}],"_nodeVersion":"10.18.0","dependencies":{"lodash":"^4.17.13","fs-extra":"6.0.1","@truffle/contract-schema":"^3.1.6-alphaTez.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"4.2.0","temp":"^0.8.3","web3":"1.2.1","debug":"^4.1.1","mocha":"5.2.0","ts-node":"^8.3.0","typescript":"^3.6.3","@types/node":"^12.6.2","ganache-core":"2.8.0","@types/lodash":"^4.14.148","@types/fs-extra":"^8.0.0","require-nocache":"^1.0.0","@truffle/contract":"^4.2.2-alphaTez.3"},"_npmOperationalInternal":{"tmp":"tmp/artifactor_4.0.45-alphaTez.3_1579205012671_0.5353869452132001","host":"s3://npm-registry-packages"},"_id":"@truffle/artifactor@4.0.45-alphaTez.3","version":"4.0.45-alphaTez.3"}