Add @parity/jsonrpc

This commit is contained in:
Jaco Greeff 2017-04-20 10:41:06 +02:00
parent 0d9e849162
commit 94c8cceb42
6 changed files with 33 additions and 4 deletions

View File

@ -160,6 +160,7 @@
"dependencies": {
"@parity/abi": "file:src/abi",
"@parity/api": "file:src/api",
"@parity/jsonrpc": "file:src/jsonrpc",
"@parity/wordlist": "1.0.1",
"base32.js": "0.1.0",
"bignumber.js": "3.0.1",

View File

@ -14,13 +14,13 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
import ethereumRpc from '@parity/jsonrpc';
import { TEST_HTTP_URL, endpointTest } from '../../test/mockRpc';
import util from './util';
import Api from './api';
import ethereumRpc from '../jsonrpc/';
describe('api/Api', () => {
describe('constructor', () => {
it('requires defined/non-null transport object', () => {

View File

@ -26,6 +26,7 @@
},
"dependencies": {
"@parity/abi": "file:../abi",
"@parity/jsonrpc": "file:../jsonrpc",
"bignumber.js": "~2.3.0",
"eventemitter3": "2.0.2",
"js-sha3": "~0.5.2",

View File

@ -0,0 +1,27 @@
{
"name": "@parity/jsonrpc",
"description": "JSON and JS interface defintions for RPC",
"version": "0.0.0",
"main": "index.js",
"author": "Parity Team <admin@parity.io>",
"maintainers": [
"Jaco Greeff"
],
"contributors": [],
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "git+https://github.com/paritytech/parity.git"
},
"keywords": [
"Ethereum",
"RPC",
"Parity"
],
"scripts": {
},
"devDependencies": {
},
"dependencies": {
}
}

View File

@ -68,7 +68,7 @@ module.exports = {
// duplicated for clarity since the number of @parity modules will increase
{
test: /\.js$/,
include: /node_modules\/@parity\/(abi|api|wordlist)/,
include: /node_modules\/@parity\/(abi|api|jsonrpc|wordlist)/,
use: 'babel-loader'
},
{

View File

@ -61,7 +61,7 @@ module.exports = {
// duplicated for clarity since the number of @parity modules will increase
{
test: /\.js$/,
include: /node_modules\/@parity\/(abi|api|wordlist)/,
include: /node_modules\/@parity\/(abi|api|jsonrpc|wordlist)/,
use: 'babel-loader'
},
{