@zilliqa-js/core
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -86,22 +86,28 @@ /// <reference types="node" /> | ||
export interface TxBlockHeader { | ||
Type: TxBlockType; | ||
Version: number; | ||
BlockNum: string; | ||
DSBlockNum: string; | ||
GasLimit: string; | ||
GasUsed: string; | ||
MbInfoHash: string; | ||
MinerPubKey: string; | ||
NumMicroBlocks: number; | ||
NumTxns: number; | ||
PrevBlockHash: string; | ||
Rewards: string; | ||
PrevBlockHash: string; | ||
BlockNum: string; | ||
StateDeltaHash: string; | ||
StateRootHash: string; | ||
Timestamp: string; | ||
TxnHash: string; | ||
StateHash: string; | ||
NumTxns: number; | ||
NumMicroBlocks: number; | ||
MinerPubKey: string; | ||
DSBlockNum: string; | ||
Version: number; | ||
Type: TxBlockType; | ||
} | ||
export interface MicroBlockInfoObj { | ||
MicroBlockHash: string; | ||
MicroBlockShardId: number; | ||
MicroBlockTxnRootHash: string; | ||
} | ||
export interface TxBlockObj { | ||
body: { | ||
BlockHash: string; | ||
HeaderSign: string; | ||
MicroBlockEmpty: number[]; | ||
MicroBlockHashes: string[]; | ||
MicroBlockInfos: MicroBlockInfoObj[]; | ||
}; | ||
@@ -140,8 +146,14 @@ header: TxBlockHeader; | ||
export interface TransactionReceiptObj<TGas = string> { | ||
errors: any; | ||
success: boolean; | ||
cumulative_gas: TGas; | ||
epoch_num: string; | ||
event_logs: EventLogEntry[]; | ||
exceptions: ExceptionEntry[]; | ||
success: boolean; | ||
transitions: TransitionEntry[]; | ||
errors: any; | ||
} | ||
export interface ExceptionEntry { | ||
line: number; | ||
message: string; | ||
} | ||
export interface EventLogEntry { | ||
@@ -154,2 +166,3 @@ address: string; | ||
addr: string; | ||
depth: number; | ||
msg: TransitionMsg; | ||
@@ -166,3 +179,3 @@ } | ||
type: string; | ||
value: string; | ||
value: any; | ||
} | ||
@@ -169,0 +182,0 @@ export interface PendingTxns { |
{ | ||
"name": "@zilliqa-js/core", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Core abstractions that power the zilliqa JS client.", | ||
@@ -28,4 +28,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@zilliqa-js/crypto": "0.10.0", | ||
"@zilliqa-js/util": "0.10.0", | ||
"@zilliqa-js/crypto": "0.10.1", | ||
"@zilliqa-js/util": "0.10.1", | ||
"cross-fetch": "^2.2.2", | ||
@@ -37,3 +37,3 @@ "mitt": "^1.1.3" | ||
}, | ||
"gitHead": "a2e8a9462721df0c4e3f5cea65bde66df8285523" | ||
"gitHead": "2c8e5329af545adaad9013aff65d92b38254d90c" | ||
} |
@@ -122,18 +122,24 @@ // This file is part of Zilliqa-Javascript-Library. | ||
export interface TxBlockHeader { | ||
Type: TxBlockType; | ||
Version: number; | ||
BlockNum: string; | ||
DSBlockNum: string; | ||
GasLimit: string; | ||
GasUsed: string; | ||
MbInfoHash: string; | ||
MinerPubKey: string; | ||
NumMicroBlocks: number; | ||
NumTxns: number; | ||
PrevBlockHash: string; | ||
Rewards: string; | ||
PrevBlockHash: string; | ||
BlockNum: string; | ||
StateDeltaHash: string; | ||
StateRootHash: string; | ||
Timestamp: string; | ||
Version: number; | ||
TxnHash: string; | ||
StateHash: string; | ||
NumTxns: number; | ||
NumMicroBlocks: number; | ||
Type: TxBlockType; | ||
} | ||
MinerPubKey: string; | ||
DSBlockNum: string; | ||
export interface MicroBlockInfoObj { | ||
MicroBlockHash: string; | ||
MicroBlockShardId: number; | ||
MicroBlockTxnRootHash: string; | ||
} | ||
@@ -143,6 +149,5 @@ | ||
body: { | ||
// TODO: add Blockhash due to latest `GetTxBlock` api | ||
BlockHash: string; | ||
HeaderSign: string; | ||
MicroBlockEmpty: number[]; | ||
MicroBlockHashes: string[]; | ||
MicroBlockInfos: MicroBlockInfoObj[]; | ||
}; | ||
@@ -185,9 +190,16 @@ header: TxBlockHeader; | ||
export interface TransactionReceiptObj<TGas = string> { | ||
errors: any; | ||
success: boolean; | ||
cumulative_gas: TGas; | ||
epoch_num: string; | ||
event_logs: EventLogEntry[]; | ||
exceptions: ExceptionEntry[]; | ||
success: boolean; | ||
transitions: TransitionEntry[]; | ||
errors: any; | ||
} | ||
export interface ExceptionEntry { | ||
line: number; | ||
message: string; | ||
} | ||
export interface EventLogEntry { | ||
@@ -201,2 +213,3 @@ address: string; | ||
addr: string; | ||
depth: number; | ||
msg: TransitionMsg; | ||
@@ -215,3 +228,3 @@ } | ||
type: string; | ||
value: string; | ||
value: any; | ||
} | ||
@@ -218,0 +231,0 @@ |
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
366398
3265
+ Added@zilliqa-js/crypto@0.10.1(transitive)
+ Added@zilliqa-js/util@0.10.1(transitive)
- Removed@zilliqa-js/crypto@0.10.0(transitive)
- Removed@zilliqa-js/util@0.10.0(transitive)
Updated@zilliqa-js/crypto@0.10.1
Updated@zilliqa-js/util@0.10.1