Socket
Socket
Sign inDemoInstall

aion-web3-core-method

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aion-web3-core-method - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

12

package.json
{
"name": "aion-web3-core-method",
"namespace": "aion",
"version": "1.0.3",
"version": "1.1.0",
"description": "Creates the methods on the web3 modules. This is an internal package.",

@@ -10,9 +10,9 @@ "repository": "https://github.com/aionnetwork/aion_web3/tree/master/packages/web3-core-method",

"dependencies": {
"aion-web3-core-helpers": "1.0.3",
"aion-web3-core-promievent": "1.0.3",
"aion-web3-core-subscriptions": "1.0.3",
"aion-web3-utils": "1.0.3",
"aion-web3-core-helpers": "1.1.0",
"aion-web3-core-promievent": "1.1.0",
"aion-web3-core-subscriptions": "1.1.0",
"aion-web3-utils": "1.1.0",
"underscore": "1.8.3"
},
"gitHead": "d36131a6d8b1db7eeaaa545dafa1b5c74d4d2e68"
"gitHead": "b9adc81c487ef3be6e4a1cac9827b6224b61a95e"
}

@@ -1,8 +0,9 @@

# web3-core-method
# aion-web3-core-method
This is a sub package of [web3.js][repo]
This is a sub package of [aion_web3][repo].
The Method package used within most [web3.js][repo] packages.
Please read the [documentation][docs] for more.
The Method package used within most aion_web3 packages.
Please read the [documentation](https://docs.aion.network/docs/web3) for more information.
## Installation

@@ -13,38 +14,8 @@

```bash
npm install web3-core-method
npm install aion-web3-core-method
```
### In the Browser
[repo]: https://github.com/aionnetwork/aion_web3
Build running the following in the [web3.js][repo] repository:
```bash
npm run-script build-all
```
Then include `dist/web3-core-method.js` in your html file.
This will expose the `Web3Method` object on the window object.
## Usage
```js
// in node.js
var Web3Method = require('web3-core-method');
var method = new Web3Method({
name: 'sendTransaction',
call: 'eth_sendTransaction',
params: 1,
inputFormatter: [inputTransactionFormatter]
});
method.attachToObject(myCoolLib);
myCoolLib.sendTransaction({...}, function(){ ... });
```
[docs]: http://web3js.readthedocs.io/en/1.0/
[repo]: https://github.com/ethereum/web3.js
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file index.js
* @author Fabian Vogelsteller <fabian@ethereum.org>
* @author Marek Kotewicz <marek@parity.io>
* @date 2017
* Copyright (c) 2017-2018 Aion foundation.
*
* This file is part of the aion network project.
*
* The aion network project is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or any later version.
*
* The aion network project is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the aion network project source files.
* If not, see <https://www.gnu.org/licenses/>.
*
* Contributors:
* Aion foundation.
* Marek Kotewicz <marek@parity.io>
* Fabian Vogelsteller <fabian@frozeman.de>
*/
"use strict";

@@ -25,0 +27,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc