@@ -2,12 +2,6 @@ import { Contract, SorobanDataBuilder, xdr } from '@stellar/stellar-base';
2
2
3
3
/* tslint:disable-next-line:no-namespace */
4
4
export namespace Api {
5
-
6
- export interface Cost {
7
- cpuInsns : string ;
8
- memBytes : string ;
9
- }
10
-
11
5
export interface GetHealthResponse {
12
6
status : 'healthy' ;
13
7
}
@@ -72,6 +66,7 @@ export namespace Api {
72
66
73
67
interface GetAnyTransactionResponse {
74
68
status : GetTransactionStatus ;
69
+ txHash : string ;
75
70
latestLedger : number ;
76
71
latestLedgerCloseTime : number ;
77
72
oldestLedger : number ;
@@ -119,15 +114,17 @@ export namespace Api {
119
114
latestLedgerCloseTime : number ;
120
115
oldestLedger : number ;
121
116
oldestLedgerCloseTime : number ;
117
+ txHash : string ;
122
118
123
119
// the fields below are set if status is SUCCESS
124
120
applicationOrder ?: number ;
125
121
feeBump ?: boolean ;
122
+ ledger ?: number ;
123
+ createdAt ?: number ;
124
+
126
125
envelopeXdr ?: string ;
127
126
resultXdr ?: string ;
128
127
resultMetaXdr ?: string ;
129
- ledger ?: number ;
130
- createdAt ?: number ;
131
128
diagnosticEventsXdr ?: string [ ] ;
132
129
}
133
130
@@ -143,6 +140,8 @@ export namespace Api {
143
140
createdAt : number ;
144
141
applicationOrder : number ;
145
142
feeBump : boolean ;
143
+ txHash : string ;
144
+
146
145
envelopeXdr ?: string ;
147
146
resultXdr ?: string ;
148
147
resultMetaXdr ?: string ;
@@ -155,6 +154,8 @@ export namespace Api {
155
154
createdAt : number ;
156
155
applicationOrder : number ;
157
156
feeBump : boolean ;
157
+ txHash : string ;
158
+
158
159
envelopeXdr : xdr . TransactionEnvelope ;
159
160
resultXdr : xdr . TransactionResult ;
160
161
resultMetaXdr : xdr . TransactionMeta ;
@@ -209,6 +210,7 @@ export namespace Api {
209
210
type : EventType ;
210
211
ledger : number ;
211
212
ledgerClosedAt : string ;
213
+ cursor : string ;
212
214
pagingToken : string ;
213
215
inSuccessfulContractCall : boolean ;
214
216
txHash : string ;
@@ -317,7 +319,6 @@ export namespace Api {
317
319
extends BaseSimulateTransactionResponse {
318
320
transactionData : SorobanDataBuilder ;
319
321
minResourceFee : string ;
320
- cost : Cost ;
321
322
322
323
/** present only for invocation simulation */
323
324
result ?: SimulateHostFunctionResult ;
@@ -403,7 +404,6 @@ export namespace Api {
403
404
* invokeHostFunctionOperation is supported per transaction.
404
405
* */
405
406
results ?: RawSimulateHostFunctionResult [ ] ;
406
- cost ?: Cost ;
407
407
/** Present if succeeded but has expired ledger entries */
408
408
restorePreamble ?: {
409
409
minResourceFee : string ;
@@ -416,9 +416,18 @@ export namespace Api {
416
416
417
417
export interface GetVersionInfoResponse {
418
418
version : string ;
419
+ commitHash : string ;
420
+ buildTimestamp : string ;
421
+ captiveCoreVersion : string ;
422
+ protocolVersion : number ; // uint32
423
+
424
+ /// @deprecated
419
425
commit_hash : string ;
420
- build_time_stamp : string ;
426
+ /// @deprecated
427
+ build_timestamp : string ;
428
+ /// @deprecated
421
429
captive_core_version : string ;
430
+ /// @deprecated
422
431
protocol_version : number ; // uint32
423
432
}
424
433
0 commit comments