@zilliqa-js/core
Advanced tools
Comparing version 0.9.1 to 0.10.0
@@ -231,2 +231,3 @@ import fetch from 'cross-fetch'; | ||
RPCMethod["GetTotalCoinSupply"] = "GetTotalCoinSupply"; | ||
RPCMethod["GetMinerInfo"] = "GetMinerInfo"; | ||
// Transaction-related methods | ||
@@ -242,2 +243,3 @@ RPCMethod["CreateTransaction"] = "CreateTransaction"; | ||
RPCMethod["GetPendingTxn"] = "GetPendingTxn"; | ||
RPCMethod["GetPendingTxns"] = "GetPendingTxns"; | ||
// Contract-related methods | ||
@@ -244,0 +246,0 @@ RPCMethod["GetSmartContracts"] = "GetSmartContracts"; |
@@ -232,2 +232,3 @@ (function (global, factory) { | ||
RPCMethod["GetTotalCoinSupply"] = "GetTotalCoinSupply"; | ||
RPCMethod["GetMinerInfo"] = "GetMinerInfo"; | ||
// Transaction-related methods | ||
@@ -243,2 +244,3 @@ RPCMethod["CreateTransaction"] = "CreateTransaction"; | ||
RPCMethod["GetPendingTxn"] = "GetPendingTxn"; | ||
RPCMethod["GetPendingTxns"] = "GetPendingTxns"; | ||
// Contract-related methods | ||
@@ -245,0 +247,0 @@ RPCMethod["GetSmartContracts"] = "GetSmartContracts"; |
@@ -26,2 +26,3 @@ import { WithRequest } from './util'; | ||
GetTotalCoinSupply = "GetTotalCoinSupply", | ||
GetMinerInfo = "GetMinerInfo", | ||
CreateTransaction = "CreateTransaction", | ||
@@ -36,2 +37,3 @@ GetTransaction = "GetTransaction", | ||
GetPendingTxn = "GetPendingTxn", | ||
GetPendingTxns = "GetPendingTxns", | ||
GetSmartContracts = "GetSmartContracts", | ||
@@ -38,0 +40,0 @@ GetSmartContractCode = "GetSmartContractCode", |
@@ -46,2 +46,3 @@ "use strict"; | ||
RPCMethod["GetTotalCoinSupply"] = "GetTotalCoinSupply"; | ||
RPCMethod["GetMinerInfo"] = "GetMinerInfo"; | ||
// Transaction-related methods | ||
@@ -57,2 +58,3 @@ RPCMethod["CreateTransaction"] = "CreateTransaction"; | ||
RPCMethod["GetPendingTxn"] = "GetPendingTxn"; | ||
RPCMethod["GetPendingTxns"] = "GetPendingTxns"; | ||
// Contract-related methods | ||
@@ -59,0 +61,0 @@ RPCMethod["GetSmartContracts"] = "GetSmartContracts"; |
@@ -165,2 +165,9 @@ /// <reference types="node" /> | ||
} | ||
export interface PendingTxns { | ||
Txns: TransactionStatus[]; | ||
} | ||
export interface TransactionStatus { | ||
Status: number; | ||
TxnHash: string; | ||
} | ||
export interface PendingTxnResult { | ||
@@ -171,3 +178,11 @@ code: number; | ||
} | ||
export interface MinerInfo { | ||
dscommittee: string[]; | ||
shards: ShardInfo[]; | ||
} | ||
export interface ShardInfo { | ||
nodes: string[]; | ||
size: number; | ||
} | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@zilliqa-js/core", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"description": "Core abstractions that power the zilliqa JS client.", | ||
@@ -28,4 +28,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@zilliqa-js/crypto": "0.9.1", | ||
"@zilliqa-js/util": "0.9.1", | ||
"@zilliqa-js/crypto": "0.10.0", | ||
"@zilliqa-js/util": "0.10.0", | ||
"cross-fetch": "^2.2.2", | ||
@@ -37,3 +37,3 @@ "mitt": "^1.1.3" | ||
}, | ||
"gitHead": "98c5fad3ffda075e3d07b7d056b5e5f6d4337434" | ||
"gitHead": "a2e8a9462721df0c4e3f5cea65bde66df8285523" | ||
} |
@@ -47,2 +47,3 @@ // This file is part of Zilliqa-Javascript-Library. | ||
GetTotalCoinSupply = 'GetTotalCoinSupply', | ||
GetMinerInfo = 'GetMinerInfo', | ||
@@ -59,2 +60,3 @@ // Transaction-related methods | ||
GetPendingTxn = 'GetPendingTxn', | ||
GetPendingTxns = 'GetPendingTxns', | ||
@@ -61,0 +63,0 @@ // Contract-related methods |
@@ -214,2 +214,11 @@ // This file is part of Zilliqa-Javascript-Library. | ||
export interface PendingTxns { | ||
Txns: TransactionStatus[]; | ||
} | ||
export interface TransactionStatus { | ||
Status: number; | ||
TxnHash: string; | ||
} | ||
export interface PendingTxnResult { | ||
@@ -220,1 +229,11 @@ code: number; | ||
} | ||
export interface MinerInfo { | ||
dscommittee: string[]; | ||
shards: ShardInfo[]; | ||
} | ||
export interface ShardInfo { | ||
nodes: string[]; | ||
size: number; | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
365022
3240
+ Added@zilliqa-js/crypto@0.10.0(transitive)
+ Added@zilliqa-js/util@0.10.0(transitive)
- Removed@zilliqa-js/crypto@0.9.1(transitive)
- Removed@zilliqa-js/util@0.9.1(transitive)
Updated@zilliqa-js/crypto@0.10.0
Updated@zilliqa-js/util@0.10.0