File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @initia/initia.js" ,
3
- "version" : " 0.1.24 " ,
3
+ "version" : " 0.1.25 " ,
4
4
"description" : " The JavaScript SDK for Initia" ,
5
5
"license" : " MIT" ,
6
6
"author" : " InitiaLabs" ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
PublicKey ,
11
11
num ,
12
12
TxLog ,
13
+ Event ,
13
14
} from '../../../core' ;
14
15
import { hashToHex } from '../../../util' ;
15
16
import { LCDClient } from '../LCDClient' ;
@@ -92,6 +93,7 @@ export namespace BlockTxBroadcastResult {
92
93
info : string ;
93
94
data : string ;
94
95
timestamp : string ;
96
+ events : Event [ ] ;
95
97
}
96
98
}
97
99
Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ export class TxInfo {
20
20
* @param gas_used actual gas consumption
21
21
* @param tx transaction content
22
22
* @param timestamp time of inclusion
23
+ * @param events events
23
24
* @param code error code
25
+ * @param codespace error codespace
24
26
*/
25
27
constructor (
26
28
public height : number ,
@@ -31,6 +33,7 @@ export class TxInfo {
31
33
public gas_used : number ,
32
34
public tx : Tx ,
33
35
public timestamp : string ,
36
+ public events : Event [ ] ,
34
37
public code ?: number ,
35
38
public codespace ?: string
36
39
) { }
@@ -45,6 +48,7 @@ export class TxInfo {
45
48
proto . gasUsed . toNumber ( ) ,
46
49
Tx . unpackAny ( proto . tx as Any ) ,
47
50
proto . timestamp ,
51
+ proto . events ,
48
52
proto . code ,
49
53
proto . codespace
50
54
) ;
@@ -60,6 +64,7 @@ export class TxInfo {
60
64
Number . parseInt ( data . gas_used ) ,
61
65
Tx . fromData ( data . tx ) ,
62
66
data . timestamp ,
67
+ data . events ,
63
68
data . code ,
64
69
data . codespace
65
70
) ;
@@ -193,6 +198,7 @@ export namespace TxInfo {
193
198
gas_used : string ;
194
199
tx : Tx . Data ;
195
200
timestamp : string ;
201
+ events : Event [ ] ;
196
202
}
197
203
export type Proto = TxResponse_pb ;
198
204
}
You can’t perform that action at this time.
0 commit comments