{"bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"2ac4a6e2fc4b10a83f750cae2bc531839afa1f96","tarball":"https://registry.npmjs.org/@truffle/db/-/db-1.0.21-hardhat-error.0.tgz","fileCount":559,"integrity":"sha512-IKrm9/tXZ9VlJMn59TsgQ7+JHAdMLII9nsYvTPeNwhcwmFM1Dpdyqygvmthl3ICaA4oEARKUGG3MM1GzQnaDqA==","signatures":[{"sig":"MEUCIGzmZSS6bGgnLEmIAqQ0yHXZgeL7gMwexuc60tAil/GgAiEA7w/DeqT9P50qYv3DwsRQ7F0cmrb2YKuW+XfQQf69CVU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5445285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBx84ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+NQ//UbLfrWP60N8R2HYikwJjvHqPA01iVKy1fI+azuAnufz/y/bS\r\nSNtbjR+yqtzFyvuriGhAskdw1jdj8RBXIELO9vobo/VJ6hQQqE+f66Trh8rw\r\nw1oFhVZrABXEtMeM7DRSmn5MFxQzgPJCW8S7T6G7bxFMQ35/UIDyhAPH7pRl\r\nOTbK0DL5lxHhE2iqjCVA+EwkXSAChubDnVe1Gqr/y9RQx/FfvuDmbgwZ/cOp\r\nA1dK0VaZj65r2QFAwrF2T4uRPVXuMCnMiB5P2hjIJaUEyIQGpRJK7oxjECcC\r\nvot20x9O1HfmBUfLU9RBVb7Sydqk8Dl6eaeRLhxj5EUUZ3D7zu/45VObSSQP\r\n2RSFFDIh6W6mgk0QkuWoT3fd6Ls6fUlnTyLMh8bxNQ7SOSzZ9jWWFzah1r/S\r\n8JiIMfbJHPR5rKvSAAJqkWmI0NA+f2wRCIYkMBYBFK9w5JvNVpslHnnWgXXN\r\nO/KbuUf81iNtF/2fZVZEadzr1Amhut52H6d/Kgry7LCBtoSfCwn9Xfe2IAxP\r\n4FgMPxcRTFrwvpkZctZZPkO0FolV7Y5vBi/8GCnJr7casy64fosLip+lhvuy\r\n+nZxMCO9jWIA3VDLEij/+U8XZawiIQYDUyC6oCvbj797L3/F3OLn4hSoyQ1c\r\nDTsqiiNAf8lRoyWqTzEoPW5IP2N8cqJOtww=\r\n=Ziqq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"globals":{"ts-jest":{"tsconfig":"<rootDir>/tsconfig.json","diagnostics":true}},"resolver":"<rootDir>/test/jest-resolver.js","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":"f1970ca2361849a1a7d7569d7ddc4db9657c8558","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":"gnidan","email":"nick@gnidan.org"},"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/db#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/4.0.0/node@v14.20.0+arm64 (darwin)","description":"Smart contract data aggregation","directories":{"dist":"dist"},"maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"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":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"_nodeVersion":"14.20.0","dependencies":{"debug":"^4.3.1","graphql":"^15.3.0","pouchdb":"7.3.0","fs-extra":"^9.1.0","pluralize":"^8.0.0","web3-utils":"1.7.4","graphql-tag":"^2.12.6","pascal-case":"^2.0.1","pouchdb-find":"^7.0.0","apollo-server":"^3.6.3","pouchdb-debug":"^7.1.1","@truffle/config":"^1.3.38-hardhat-error.0","@truffle/abi-utils":"^0.3.1-hardhat-error.0","abstract-leveldown":"^7.2.0","@truffle/code-utils":"^2.0.1","@graphql-tools/schema":"^8.3.1","json-stable-stringify":"^1.0.1","pouchdb-adapter-memory":"^7.1.1","@graphql-tools/delegate":"^8.4.3","pouchdb-adapter-node-websql":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"hkts":"^0.3.1","jest":"28.1.3","web3":"1.7.4","madge":"^5.0.1","ganache":"7.4.0","ts-jest":"28.0.7","ts-node":"10.7.0","typedoc":"0.22.18","fast-check":"3.1.1","typescript":"^4.7.4","@types/jest":"27.4.1","@types/node":"~12.12.0","@types/web3":"^1.0.20","change-case":"3.0.2","ts-node-dev":"^1.0.0-pre.32","ttypescript":"1.5.13","@types/debug":"^4.1.5","@types/express":"^4.16.0","@types/graphql":"^14.5.0","@types/pouchdb":"^6.4.0","tsconfig-paths":"^3.9.0","@fast-check/jest":"^1.0.1","@types/pluralize":"^0.0.29","@truffle/resolver":"^9.0.15-hardhat-error.0","@gql2ts/from-schema":"^2.0.0-4","@graphql-tools/utils":"^8.5.5","@truffle/compile-common":"^0.8.1-hardhat-error.0","@truffle/contract-schema":"^3.4.9","typescript-transform-paths":"3.3.1","@types/pouchdb-adapter-leveldb":"^6.1.3"},"_npmOperationalInternal":{"tmp":"tmp/db_1.0.21-hardhat-error.0_1661411128509_0.23626047762977898","host":"s3://npm-registry-packages"},"_id":"@truffle/db@1.0.21-hardhat-error.0","version":"1.0.21-hardhat-error.0"}