{"bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"0e7c2682d5131d33dd2ee50f87715ccfcbf4b6a0","tarball":"https://registry.npmjs.org/@truffle/db/-/db-0.5.30-alpha.0.tgz","fileCount":562,"integrity":"sha512-ikij0k6bhn+nrz/opauzxTi8w9AkcGB7dHvGHGD40SeyZbuwXL9HetSp5nW9fULkmr1WntG0zVs2E/3uW6+y7w==","signatures":[{"sig":"MEUCIFyV4KXU+dK18elTLM2jIJZKtXr5OLYC/RAaiD6C3hrrAiEAkuAOABv8pXqfBHqeD7tss/eqYQnUIBinPIYB19maDUo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5597821,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhONSXCRA9TVsSAnZWagAAudcQAJuucCIEupt3rqxsECIy\nHVxSgu2SjoB4b4FvYn10Ux7zzmUOEvexSODeQMi8930op0mviCzp9VQkyeVy\nwOdtPsWcq7EK3jeWLK6hg6nvAQ7ILgFWnAE3zZZ9ePQzfIMbZAceYm7wrDJI\nWlEbih+3uB6sXPyQFj1DXVFKYLna4j+bmBPUYLiHdmW8Z292cPXIgfw980O9\n6QENcorwpd3x538K3ncQe02RLFyzP+WEG9fzKeVZWh1wyuux/fvP4Vo1489w\nQSmDE4k8GnEymg7Pa2cK9zghPXPcPUj60MlI5Td9bRHWzQIEVXt4GPIvjxpR\nECCk7kDBobQo++K1SDWsY2g3csvTJ3/34qDOu7Y4k1S4gvoshJtonzVETnGy\nPieo+DxhxOw8VPAANuoRCzXW1ivCJtAgbp+hVJgvZFwHmw8NvnleaI8QAxTy\n7W3rZ1Y5n0eIKU0uCw7/E/kRE6WJQBXS5f0LDKopLTvUwRoMq0FGB+HS1YqZ\ntHkpfK10pWNg2CKdGcNOfTlpPoRK9S8iUZd3dihCTc1XbAT5hhWWXim3ryg6\nqc7tMNrdpSkswUzhGirhkVdFWWqNdYjkPYvaSoeMKu9YQB2Rn6IuOBelQYDN\nQ3HXoa4IzrKuC9NZLd6GIOjwYPbNM2pUBTvnbZKuwvWSidYTiy+Y9vjh3Xi8\nc76r\r\n=oZik\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"globals":{"ts-jest":{"tsconfig":"<rootDir>/tsconfig.json","diagnostics":true}},"testMatch":["<rootDir>/src/**/test/index.(ts|js)","<rootDir>/test/**/test/index.(ts|js)","<rootDir>/src/**/test/*\\.(spec|test)\\.(ts|js)","<rootDir>/test/**/test/*\\.(spec|test)\\.(ts|js)"],"transform":{"^.+\\.ts$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^test/(.*)":"<rootDir>/test/$1","^@truffle/db$":"<rootDir>/src","^@truffle/db/(.*)":"<rootDir>/src/$1"},"moduleFileExtensions":["ts","js","json","node"]},"main":"dist/src/index.js","name":"@truffle/db","author":{"name":"g. nicholas d'andrea","email":"gnidan@users.noreply.github.com"},"readme":"# `@truffle/db`\n\nTruffle DB is a complete, flexible system for the querying and mutation\nof Truffle’s smart contract records. Following the data model available [here](https://trufflesuite.github.io/artifact-updates/data-model.html),\nTruffle DB persists smart contract information that is typically found in\na project's artifacts, and allows for querying this data using `GraphQL`.\n\n</br>\n\nTruffle artifacts are currently stored as JSON files in a project’s `build/contracts/`\ndirectory. These documents are currently the canonical source of information about\na project’s smart contracts. While useful, artifacts can be limited for certain advanced\nuse cases.\n\n</br>\n\nFor example, the artifacts format expects contracts with unique names.\nThis means that currently a developer is unable to keep two contracts in their project\nthat have the same name. Truffle DB solves this problem with a name record-keeping\nsystem that can keep track of multiple contracts in this situation.\n\n## Built With\n\nTruffle DB is built with:\n- TypeScript\n- GraphQL\n- Apollo\n- PouchDB\n\n## Configuration to enable Truffle DB\n\nAdd the following to your `truffle-config.js` file in order to enable Truffle DB\n\n```\ndb: {\n  enabled: true\n}\n```\nNote: Enabling Truffle DB does not affect artifacts, but will produce a new `.db`\ndirectory when you compile or migrate your project.\n\n\nIt will soon be possible to load and access Truffle DB data via `truffle compile` and `truffle migrate`.\nStay tuned!\n\n## Usage\n\n```\nconst { connect } = require(\"@truffle/db\")\n\n```\n\n## License\n\nMIT\n","gitHead":"a75de9db72a7bf4aa75209aa9732f766275806cd","license":"MIT","scripts":{"test":"jest --verbose --detectOpenHandles --forceExit","build":"yarn build:types && yarn build:dist && yarn build:docs","clean":"rm -rf ./dist ./types/schema.d.ts","madge":"madge ./src/index.ts","start":"ts-node-dev -r tsconfig-paths/register ./bin/server","prepare":"yarn build","build:dist":"ttsc","build:docs":"typedoc","build:types":"ts-node -r ./bin/register -r tsconfig-paths/register --project tsconfig.codegen.json ./bin/codegen.js","start:debug":"DEBUG=pouchdb:api ts-node-dev -r tsconfig-paths/register ./bin/server","start:drizzle":"ts-node-dev -r tsconfig-paths/register ./bin/server ./test/truffle-projects/drizzle-box","start:drizzle:debug":"DEBUG=pouchdb:api ts-node-dev -r tsconfig-paths/register ./bin/server ./test/truffle-projects/drizzle-box"},"_npmUser":{"name":"eggplantzzz","email":"pobol234@gmail.com"},"homepage":"https://github.com/trufflesuite/truffle#readme","keywords":["database","ethereum","smart-contracts","truffle"],"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/db"},"_npmVersion":"lerna/3.19.0/node@v12.22.0+x64 (darwin)","description":"Smart contract data aggregation","directories":{"dist":"dist"},"maintainers":[{"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"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"_nodeVersion":"12.22.0","dependencies":{"debug":"^4.3.1","graphql":"^15.3.0","pouchdb":"7.1.1","fs-extra":"^9.1.0","jsondown":"^1.0.0","pluralize":"^8.0.0","web3-utils":"1.5.2","graphql-tag":"^2.11.0","pascal-case":"^2.0.1","pouchdb-find":"^7.0.0","apollo-server":"^2.18.2","graphql-tools":"^6.2.4","pouchdb-debug":"^7.1.1","@truffle/config":"^1.3.7-alpha.0","@truffle/resolver":"^7.0.28-alpha.0","@truffle/abi-utils":"^0.2.4","@truffle/code-utils":"^1.2.29","json-stable-stringify":"^1.0.1","pouchdb-adapter-memory":"^7.1.1","pouchdb-adapter-node-websql":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_moduleAliases":{"@truffle/db":"db/dist/src"},"readmeFilename":"README.md","devDependencies":{"hkts":"^0.3.1","jest":"^26.5.2","web3":"1.5.2","madge":"^3.11.0","ts-jest":"^26.4.1","ts-node":"^9.1.1","typedoc":"^0.20.19","jsondown":"^1.0.0","fast-check":"^2.12.1","typescript":"^4.1.4","@types/jest":"^26.0.20","@types/node":"12.12.21","@types/web3":"^1.0.20","change-case":"3.0.2","ts-node-dev":"^1.0.0-pre.32","ttypescript":"^1.5.7","@types/debug":"^4.1.5","ganache-core":"2.13.0","@types/express":"^4.16.0","@types/graphql":"^14.5.0","@types/pouchdb":"^6.3.2","tsconfig-paths":"^3.9.0","jest-fast-check":"^1.0.1","@types/pluralize":"^0.0.29","typedoc-neo-theme":"^1.1.0","@gql2ts/from-schema":"^2.0.0-4","@truffle/compile-common":"^0.7.19-alpha.0","@truffle/contract-schema":"^3.4.3","typescript-transform-paths":"^2.1.0","@types/pouchdb-adapter-leveldb":"^6.1.3"},"_npmOperationalInternal":{"tmp":"tmp/db_0.5.30-alpha.0_1631114391024_0.4340987432278187","host":"s3://npm-registry-packages"},"_id":"@truffle/db@0.5.30-alpha.0","version":"0.5.30-alpha.0"}