You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@zilliqa-js/core

Package Overview
Dependencies
Maintainers
3
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zilliqa-js/core - npm Package Compare versions

Comparing version

to
0.11.0

2

dist/errors.d.ts

@@ -1,2 +0,2 @@

export declare const enum Errors {
export declare enum Errors {
UNKNOWN_ERROR = "UNKNOWN_ERROR",

@@ -3,0 +3,0 @@ NOT_IMPLEMENTED = "NOT_IMPLEMENTED",

@@ -98,3 +98,3 @@ "use strict";

exports.createError = function (reason, code, params) {
if (code === void 0) { code = "UNKNOWN_ERROR" /* UNKNOWN_ERROR */; }
if (code === void 0) { code = Errors.UNKNOWN_ERROR; }
if (params === void 0) { params = {}; }

@@ -101,0 +101,0 @@ var details = Object.keys(params).map(function (key) {

@@ -5,3 +5,3 @@ import { WithRequest } from './util';

*/
export declare const enum RPCMethod {
export declare enum RPCMethod {
GetNetworkId = "GetNetworkId",

@@ -46,3 +46,3 @@ GetBlockchainInfo = "GetBlockchainInfo",

}
export declare const enum RPCErrorCode {
export declare enum RPCErrorCode {
RPC_INVALID_REQUEST = -32600,

@@ -49,0 +49,0 @@ RPC_METHOD_NOT_FOUND = -32601,

@@ -145,2 +145,3 @@ /// <reference types="node" />

export interface TransactionReceiptObj<TGas = string> {
accepted: boolean;
cumulative_gas: TGas;

@@ -147,0 +148,0 @@ epoch_num: string;

{
"name": "@zilliqa-js/core",
"version": "0.10.1",
"version": "0.11.0",
"description": "Core abstractions that power the zilliqa JS client.",

@@ -28,4 +28,4 @@ "main": "dist/index.js",

"dependencies": {
"@zilliqa-js/crypto": "0.10.1",
"@zilliqa-js/util": "0.10.1",
"@zilliqa-js/crypto": "0.11.0",
"@zilliqa-js/util": "0.11.0",
"cross-fetch": "^2.2.2",

@@ -35,5 +35,5 @@ "mitt": "^1.1.3"

"engines": {
"node": ">=10.0.0 <=12.16.3"
"node": ">=10.0.0 <13"
},
"gitHead": "2c8e5329af545adaad9013aff65d92b38254d90c"
"gitHead": "8546f884024213c7e97e9584e330002048feb5bd"
}

@@ -16,3 +16,3 @@ // This file is part of Zilliqa-Javascript-Library.

export const enum Errors {
export enum Errors {
// Unknown Error

@@ -19,0 +19,0 @@ UNKNOWN_ERROR = 'UNKNOWN_ERROR',

@@ -23,3 +23,3 @@ // This file is part of Zilliqa-Javascript-Library.

*/
export const enum RPCMethod {
export enum RPCMethod {
// Network-related methods

@@ -74,3 +74,3 @@ GetNetworkId = 'GetNetworkId',

export const enum RPCErrorCode {
export enum RPCErrorCode {
// Standard JSON-RPC 2.0 errors

@@ -77,0 +77,0 @@ // RPC_INVALID_REQUEST is internally mapped to HTTP_BAD_REQUEST (400).

@@ -188,2 +188,3 @@ // This file is part of Zilliqa-Javascript-Library.

export interface TransactionReceiptObj<TGas = string> {
accepted: boolean;
cumulative_gas: TGas;

@@ -190,0 +191,0 @@ epoch_num: string;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet