{"_id":"@alayanetwork/web3-eth-contract","_rev":"1-1d8e9c6937fe2cf84738b8656cf67306","name":"@alayanetwork/web3-eth-contract","dist-tags":{"latest":"0.13.2"},"versions":{"0.13.2":{"name":"@alayanetwork/web3-eth-contract","version":"0.13.2","description":"Web3 module to interact with Ethereum smart contracts.","repository":{"type":"git","url":"https://github.com/PlatONnetwork/client-sdk-js/tree/alaya-dev/packages/web3-eth-contract"},"license":"LGPL-3.0","engines":{"node":">=8.0.0"},"types":"types/index.d.ts","scripts":{"dtslint":"dtslint types --onlyTestTsNext"},"main":"src/index.js","dependencies":{"@types/bn.js":"^4.11.4","underscore":"1.9.1","rlp":"^2.2.4","@alayanetwork/web3-core":"0.13.2","@alayanetwork/web3-core-helpers":"0.13.2","@alayanetwork/web3-core-method":"0.13.2","@alayanetwork/web3-core-promievent":"0.13.2","@alayanetwork/web3-core-subscriptions":"0.13.2","@alayanetwork/web3-eth-abi":"0.13.2","@alayanetwork/web3-utils":"0.13.2"},"devDependencies":{"definitelytyped-header-parser":"^1.0.1","dtslint":"0.4.2"},"_id":"@alayanetwork/web3-eth-contract@0.13.2","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+VvNbDtqG5Iv6XacoJibbc7SK4oXA9Xkzs8uct5MFdS2pGXdnIWOEegruDPnxehRuJqfSStnA550xlmdYCM1Uw==","shasum":"2e2fd55a17ebc203ea0340d3ab45e50a697e20c9","tarball":"https://registry.npmjs.org/@alayanetwork/web3-eth-contract/-/web3-eth-contract-0.13.2.tgz","fileCount":7,"unpackedSize":52934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjpPuCRA9TVsSAnZWagAAt7cQAJpJQ14/2zHEtRKdWe3z\ncqJZZr01lCBLaBzrWtlnedOKM2VN050kyP7U0Nr4sWJpfKsxtO+4xHz6joSs\nTX5J5Pp++kNnkK18NWdJruhOidy+oDqYCmASrMXiX0oWzV2MzBB3wRULipQB\ntOUkNUMtFjc9rLQpiny1Z3jD9wlpkWcNeRzWv3Vb2ja1zZnz98ByuVi1B8jM\nlQUPj6+34CATF+hzzpZwCj6MOr+bI+moIKQdGkW7TSO1nQy1aFaxgJbZUG+l\n9gVwGVdR5EyZpsAL9ha8uCngAlAsIAQ899U5j0pVui3OUgJ4x70uK1LDMhU1\nZNFQMec94AyOd9lIWJ5H5iGCGqxZ4iOJi0FiFyO38e122WAENZHt5wWnK5cs\nzBDHXNBVEfW8Rkul9aPgiP63ERTT0GzkitQ2g9I622glfLF4EdA/O2Z5qQST\nRxHPaim0T8lqy9c7yMA1nsLv1C5SurGjTZPWyNMlnUuN5IdPx/n/X/DcQm5L\nn39R8By9wQAPdrUfkxGhBQzUjynczIwNmOeU5uzda10RuqwynJYP/1JSb6J4\n5MadCvGJxM1QpfbJDH6jfL+ovs+cQXATARlw1o5FFt2hfJTf4yC7DpkkSg1z\nV6NmJE/vf4UqmY3+h1JUmrCFIkbrMcV61BnLmbvQbyPQgfXWa5B8j4+5aDl+\nVr/6\r\n=tMQF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxG1hNz/uyOsmrtok8C6RGqcM6OIToMB3rJcgGSIGHIAiAiBuGlKZjbLH91dqTd+eXzo98r9P1SiMfrVDhGpGdPZw=="}]},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"_npmUser":{"name":"alayanetwork","email":"npm@latticex.foundation"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web3-eth-contract_0.13.2_1603179502255_0.5198292987709947"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-20T07:38:22.209Z","0.13.2":"2020-10-20T07:38:22.391Z","modified":"2022-04-04T12:34:01.347Z"},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"description":"Web3 module to interact with Ethereum smart contracts.","repository":{"type":"git","url":"https://github.com/PlatONnetwork/client-sdk-js/tree/alaya-dev/packages/web3-eth-contract"},"license":"LGPL-3.0","readme":"# web3-eth-contract\n\nThis is a sub package of [web3.js][repo]\n\nThis is the contract package to be used in the `web3-eth` package.\nPlease read the [documentation][docs] for more.\n\n## Installation\n\n### Node.js\n\n```bash\nnpm install web3-eth-contract\n```\n\n### In the Browser\n\nBuild running the following in the [web3.js][repo] repository:\n\n```bash\nnpm run-script build-all\n```\n\nThen include `dist/web3-eth-contract.js` in your html file.\nThis will expose the `Web3EthContract` object on the window object.\n\n## Usage\n\n```js\n// in node.js\nvar Web3EthContract = require('web3-eth-contract');\n\n// set provider for all later instances to use\nWeb3EthContract.setProvider('ws://localhost:8546');\n\nvar contract = new Web3EthContract(jsonInterface, address);\ncontract.methods.somFunc().send({from: ....})\n.on('receipt', function(){\n    ...\n});\n```\n\n[docs]: http://web3js.readthedocs.io/en/1.0/\n[repo]: https://github.com/ethereum/web3.js\n\n## Types\n\nAll the typescript typings are placed in the types folder.\n\n[docs]: http://web3js.readthedocs.io/en/1.0/\n[repo]: https://github.com/ethereum/web3.js\n","readmeFilename":"README.md"}