{"_id":"@artela-next/web3-eth-contract","_rev":"1-231da2a31280cb9157bd2647dd295945","name":"@artela-next/web3-eth-contract","dist-tags":{"latest":"1.9.23"},"versions":{"1.9.23":{"name":"@artela-next/web3-eth-contract","version":"1.9.23","license":"LGPL-3.0","_id":"@artela-next/web3-eth-contract@1.9.23","maintainers":[{"name":"jack-artela","email":"jack@artela.network"}],"homepage":"https://github.com/artela-network/web3.js/tree/1.x#readme","bugs":{"url":"https://github.com/artela-network/web3.js/issues"},"dist":{"shasum":"a1e23f3a613a8c2ba191eecb63a0cbe81d6349fb","tarball":"https://registry.npmjs.org/@artela-next/web3-eth-contract/-/web3-eth-contract-1.9.23.tgz","fileCount":61,"integrity":"sha512-CcvaqXgH4w0RdvYhWy14Q9oSEPzbpSWYO1JRmVw37mNqPmK+K3NpST0zNfdMVwFYrLYHRgE+4/DMexjRGPfwOg==","signatures":[{"sig":"MEYCIQCuNrlVknuWlS4uyZI+Ym1dnM4qMu7ZqXy+jsuba9UKywIhALhkVQZwM7MfToJ86gG3jS0P/+Jpt8vE0+l95WHiCZmt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":355677},"main":"lib/index.js","types":"types/index.d.ts","engines":{"node":">=8.0.0"},"gitHead":"458fabceece06f348131a3a0bde19c90e06f0dd8","scripts":{"compile":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types"},"_npmUser":{"name":"jack-artela","email":"jack@artela.network"},"repository":{"url":"git+https://github.com/artela-network/web3.js.git#1.x","type":"git"},"_npmVersion":"lerna/6.6.2/node@v14.21.3+arm64 (darwin)","description":"Web3 module to interact with Ethereum smart contracts.","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@types/bn.js":"^5.1.1","web3-eth-abi":"1.9.0","web3-core-helpers":"1.9.0","web3-eth-accounts":"1.9.0","web3-core-promievent":"1.9.0","@artela-next/web3-core":"1.9.23","@artela-next/web3-utils":"1.9.23","web3-core-subscriptions":"1.9.0","@artela-next/web3-core-method":"1.9.23"},"_hasShrinkwrap":false,"devDependencies":{"dtslint":"^3.4.1","typescript":"4.1"},"_npmOperationalInternal":{"tmp":"tmp/web3-eth-contract_1.9.23_1724655827969_0.10609613007961327","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-08-26T07:03:47.870Z","modified":"2024-09-11T04:17:10.148Z","1.9.23":"2024-08-26T07:03:48.124Z"},"bugs":{"url":"https://github.com/artela-network/web3.js/issues"},"license":"LGPL-3.0","homepage":"https://github.com/artela-network/web3.js/tree/1.x#readme","repository":{"url":"git+https://github.com/artela-network/web3.js.git#1.x","type":"git"},"description":"Web3 module to interact with Ethereum smart contracts.","maintainers":[{"email":"eric@artela.network","name":"eric.artela"},{"email":"jack@artela.network","name":"jack-artela"}],"readme":"# web3-eth-contract\n\n[![NPM Package][npm-image]][npm-url]\n\nThis is a sub-package of [web3.js][repo].\n\nThis is the contract package used in the `web3-eth` package.\n\nPlease read the [documentation][docs] for more.\n\n## Installation\n\nYou can install the package either using [NPM](https://www.npmjs.com/package/web3-eth-contract) or using [Yarn](https://yarnpkg.com/package/web3-eth-contract)\n\n### Using NPM\n\n```bash\nnpm install web3-eth-contract\n```\n\n### Using Yarn\n\n```bash\nyarn add web3-eth-contract\n```\n\n## Usage\n\n```js\nconst Web3EthContract = require('web3-eth-contract');\n\n// Set provider for all later instances to use\nWeb3EthContract.setProvider('ws://localhost:8546');\n\nconst contract = new Web3EthContract(jsonInterface, address);\ncontract.methods.somFunc().send({from: ....})\n.on('receipt', function(){\n    ...\n});\n\n// Bind an aspect\ncontract.bind({\n    aspectId: \"0xaaaaaa....\", // required: address of the aspect\n    aspectVersion: 0,         // optional: version of aspect, default to 0, 0 == latest\n    priority: 1               // optional: execution order, default to 0\n}).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[npm-image]: https://img.shields.io/npm/v/web3-eth-contract.svg\n[npm-url]: https://npmjs.org/package/web3-eth-contract\n","readmeFilename":"README.md"}