Add @parity/jsonrpc
This commit is contained in:
parent
0d9e849162
commit
94c8cceb42
@ -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",
|
||||
|
@ -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', () => {
|
||||
|
@ -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",
|
||||
|
27
js/src/jsonrpc/package.json
Normal file
27
js/src/jsonrpc/package.json
Normal 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": {
|
||||
}
|
||||
}
|
@ -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'
|
||||
},
|
||||
{
|
||||
|
@ -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'
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user