@stellar-expert/tx-meta-effects-parser 7.0.0-rc.9 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.MD CHANGED
@@ -1,1542 +1,1620 @@
1
- # @stellar-expert/tx-meta-effects-parser
2
-
3
- > Low-level effects parser for Stellar transaction results and meta XDR
4
-
5
- Some [Stellar](https://stellar.org) operations yield non-deterministic results,
6
- so developers often have to pull the data from Horizon `/effects` API endpoints.
7
- This package provides the ability to retrieve atomic ledger state modifications
8
- directly from the transaction execution result and metadata.
9
-
10
- ## Installation
11
-
12
- ```
13
- npm i @stellar-expert/tx-meta-effects-parser
14
- ```
15
-
16
- ## Usage
17
-
18
- ```js
19
- const {parseTxOperationsMeta} = require('@stellar-expert/tx-meta-effects-parser')
20
-
21
- const res = parseTxOperationsMeta({
22
- network: 'Public Global Stellar Network ; September 2015',
23
- tx: '_base64-encoded_transaction_envelope_XDR_', // trasnaction envelope XDR
24
- result: '_base64-encoded_transaction_result_XDR_', // trasnaction result XDR
25
- meta: '_base64-encoded_transaction_result_meta_XDR_', // trasnaction meta XDR
26
- processSystemEvents: false, // whether to analyze system Soroban diagnostic events
27
- mapSac: false, // whether to map Classic assets to Soroban contracts automatically
28
- processFailedOpEffects: false, // whether to analyze effects in failed transactions
29
- protocol: 21 // different versions of Stelalr protocol may yield uninform effects
30
- })
31
-
32
- console.log(res.effects)
33
- console.log(res.operations[0].effects)
34
- ```
35
-
36
- Example:
37
-
38
- ```js
39
- parseTxOperationsMeta({
40
- network: 'Public Global Stellar Network ; September 2015',
41
- tx: 'AAAAAgAAAABU95GyQJbC5BUk8MOfuB2kGJMPNikp/uVdnGQ9ALDarAAAJxAAAJvZAAAAAQAAAAEAAAAAAAAAAAAAAABjnO8XAAAAAAAAAAEAAAABAAAAAGwpaFzT4YYOFQorR1hvkzU9himxtEbBMKbb/qeCkpPhAAAACAAAAABU95GyQJbC5BUk8MOfuB2kGJMPNikp/uVdnGQ9ALDarAAAAAAAAAACALDarAAAAED9Omj2K+pvRUV6jGicOlyZ7F5Jg82yj6rK0VKPSo8eOlfAkJt2AfcSYhB1HUODhbgpwHryTNjJZr8HLy3H/8wFgpKT4QAAAEAqlaQs1KKyIp5/aGFg+KRyIwR2wB+UE+PoEJC7EkyK3DNET09EDWqRCTZjZlNnvAPtw+R0ZXndNsPxZtqKjnsF',
42
- result: 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAIAAAAAAAAABdIdugAAAAAAA==',
43
- meta: 'AAAAAgAAAAIAAAADAACb3QAAAAAAAAAAVPeRskCWwuQVJPDDn7gdpBiTDzYpKf7lXZxkPQCw2qwAAAAXSHbnnAAAm9kAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAACb3QAAAAAAAAAAVPeRskCWwuQVJPDDn7gdpBiTDzYpKf7lXZxkPQCw2qwAAAAXSHbnnAAAm9kAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAAAJvdAAAAAGOcyAwAAAAAAAAAAQAAAAQAAAADAACb2gAAAAAAAAAAbCloXNPhhg4VCitHWG+TNT2GKbG0RsEwptv+p4KSk+EAAAAXSHboAAAAm9oAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAABsKWhc0+GGDhUKK0dYb5M1PYYpsbRGwTCm2/6ngpKT4QAAAAMAAJvdAAAAAAAAAABU95GyQJbC5BUk8MOfuB2kGJMPNikp/uVdnGQ9ALDarAAAABdIduecAACb2QAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAADAAAAAAAAm90AAAAAY5zIDAAAAAAAAAABAACb3QAAAAAAAAAAVPeRskCWwuQVJPDDn7gdpBiTDzYpKf7lXZxkPQCw2qwAAAAukO3PnAAAm9kAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAAAJvdAAAAAGOcyAwAAAAAAAAAAA=='
44
- })
45
-
46
- /*json
47
- {
48
- effects: [
49
- {
50
- "type": "feeCharged",
51
- "source": "GBKPPENSICLMFZAVETYMHH5YDWSBREYPGYUST7XFLWOGIPIAWDNKYDLI",
52
- "asset": "XLM",
53
- "bid": "10000",
54
- "charged": "100"
55
- }
56
- ],
57
- operations: [
58
- {
59
- "source": "GBWCS2C42PQYMDQVBIVUOWDPSM2T3BRJWG2ENQJQU3N75J4CSKJ6DXHN",
60
- "type": "accountMerge",
61
- "destination": "GBKPPENSICLMFZAVETYMHH5YDWSBREYPGYUST7XFLWOGIPIAWDNKYDLI",
62
- "effects": [
63
- {
64
- "type": "accountDebited",
65
- "source": "GBWCS2C42PQYMDQVBIVUOWDPSM2T3BRJWG2ENQJQU3N75J4CSKJ6DXHN",
66
- "asset": "XLM",
67
- "amount": "100000000000",
68
- "balance": "0"
69
- },
70
- {
71
- "type": "accountRemoved",
72
- "source": "GBWCS2C42PQYMDQVBIVUOWDPSM2T3BRJWG2ENQJQU3N75J4CSKJ6DXHN"
73
- },
74
- {
75
- "type": "accountCredited",
76
- "source": "GBKPPENSICLMFZAVETYMHH5YDWSBREYPGYUST7XFLWOGIPIAWDNKYDLI",
77
- "asset": "XLM",
78
- "amount": "100000000000",
79
- "balance": "199999999900"
80
- }
81
- ]
82
- }
83
- ],
84
- "isEphemeral": false,
85
- "tx": {}
86
- }
87
- */
88
- ```
89
-
90
- ## All effects
91
-
92
- <table>
93
- <tr>
94
- <th>Effect</th> <th>Operations</th> <th>Example</th>
95
- </tr>
96
-
97
- <tr>
98
- <td>
99
- <sub><code>feeCharged</code></sub>
100
- </td>
101
- <td><sub>Transaction, FeeBumpTransaction</sub></td>
102
- <td>
103
-
104
- ```js
105
- {
106
- type: 'feeCharged',
107
- source: 'GBKP…YDLI',
108
- asset: 'XLM',
109
- bid: '10000',
110
- charged: '100'
111
- }
112
- ```
113
- </td>
114
- </tr>
115
-
116
- <tr>
117
- <td>
118
- <sub><code>accountCreated</code></sub>
119
- </td>
120
- <td><sub>CreateAccountOp</sub></td>
121
- <td>
122
-
123
- ```js
124
- {
125
- type: 'accountCreated',
126
- source: 'GBKP…YDLI',
127
- account: 'GBWCDXHN'
128
- }
129
- ```
130
- </td>
131
- </tr>
132
-
133
- <tr>
134
- <td>
135
- <sub><code>accountRemoved</code></sub>
136
- </td>
137
- <td><sub>AccountMergeOp</sub></td>
138
- <td>
139
-
140
- ```js
141
- {
142
- type: 'accountRemoved',
143
- source: 'GBKP…YDLI'
144
- }
145
- ```
146
- </td>
147
- </tr>
148
-
149
- <tr>
150
- <td>
151
- <sub><code>accountDebited</code></sub>
152
- </td>
153
- <td><sub>CreateAccountOp, AccountMergeOp, PaymentOp, PathPaymentStrictReceiveOp,
154
- PathPaymentStrictSendOp, CreateClaimableBalanceOp, ClawbackOp</sub></td>
155
- <td>
156
-
157
- ```js
158
- {
159
- type: 'accountDebited',
160
- source: 'GBKP…YDLI',
161
- asset: 'XLM',
162
- amount: '1000000000'
163
- }
164
- ```
165
- </td>
166
- </tr>
167
-
168
- <tr>
169
- <td>
170
- <sub><code>accountCredited</code></sub>
171
- </td>
172
- <td><sub>CreateAccountOp, AccountMergeOp, PaymentOp, PathPaymentStrictReceiveOp,
173
- PathPaymentStrictSendOp, ClaimClaimableBalanceOp, ClawbackOp,
174
- ClawbackClaimableBalance, InflationOp</sub></td>
175
- <td>
176
-
177
- ```js
178
- {
179
- type: 'accountCredited',
180
- source: 'GBWC…DXHN',
181
- asset: 'XLM',
182
- amount: '1000000000'
183
- }
184
- ```
185
- </td>
186
- </tr>
187
-
188
- <tr>
189
- <td>
190
- <sub><code>accountHomeDomainUpdated</code></sub>
191
- </td>
192
- <td><sub>SetOptionsOp</sub></td>
193
- <td>
194
-
195
- ```js
196
- {
197
- type: 'accountHomeDomainUpdated',
198
- source: 'GBWC…DXHN',
199
- domain: 'example.com'
200
- }
201
- ```
202
- </td>
203
- </tr>
204
-
205
- <tr>
206
- <td>
207
- <sub><code>accountThresholdsUpdated</code></sub>
208
- </td>
209
- <td><sub>SetOptionsOp</sub></td>
210
- <td>
211
-
212
- ```js
213
- {
214
- type: 'accountThresholdsUpdated',
215
- source: 'GBWC…DXHN',
216
- thresholds: [1, 1 ,3]
217
- }
218
- ```
219
- </td>
220
- </tr>
221
-
222
- <tr>
223
- <td>
224
- <sub><code>accountFlagsUpdated</code></sub>
225
- </td>
226
- <td><sub>SetOptionsOp</sub></td>
227
- <td>
228
-
229
- ```js
230
- {
231
- type: 'accountFlagsUpdated',
232
- source: 'GBWC…DXHN',
233
- flags: 2,
234
- prevFlags: 0
235
- }
236
- ```
237
- </td>
238
- </tr>
239
-
240
- <tr>
241
- <td>
242
- <sub><code>accountInflationDestinationUpdated</code></sub>
243
- </td>
244
- <td><sub>SetOptionsOp</sub></td>
245
- <td>
246
-
247
- ```js
248
- {
249
- type: 'accountInflationDestinationUpdated',
250
- source: 'GBWC…DXHN',
251
- inflationDestination: 'GBKPYDLI'
252
- }
253
- ```
254
- </td>
255
- </tr>
256
-
257
- <tr>
258
- <td>
259
- <sub><code>accountSignerCreated</code></sub>
260
- </td>
261
- <td><sub>SetOptionsOp</sub></td>
262
- <td>
263
-
264
- ```js
265
- {
266
- type: 'accountSignerCreated',
267
- source: 'GBWC…DXHN',
268
- signer: 'GBKPYDLI',
269
- weight: 1,
270
- signers: [
271
- {key: 'GBWC…DXHN', weight: 1},
272
- {key: 'GBKPYDLI', weight: 1}
273
- ]
274
- }
275
- ```
276
-
277
- </td>
278
- </tr>
279
-
280
- <tr>
281
- <td>
282
- <sub><code>accountSignerUpdated</code></sub>
283
- </td>
284
- <td><sub>SetOptionsOp</sub></td>
285
- <td>
286
-
287
- ```js
288
- {
289
- type: 'accountSignerUpdated',
290
- source: 'GBWC…DXHN',
291
- signer: 'GBKPYDLI',
292
- weight: 2,
293
- signers: [
294
- {key: 'GBWC…DXHN', weight: 2},
295
- {key: 'GBKPYDLI', weight: 1}
296
- ]
297
- }
298
- ```
299
-
300
- </td>
301
- </tr>
302
-
303
- <tr>
304
- <td>
305
- <sub><code>accountSignerRemoved</code></sub>
306
- </td>
307
- <td><sub>SetOptionsOp</sub></td>
308
- <td>
309
-
310
- ```js
311
- {
312
- type: 'accountSignerRemoved',
313
- source: 'GBWC…DXHN',
314
- weight: 0,
315
- signer: 'GBKP…YDLI',
316
- signers: [
317
- {key: 'GBWC…DXHN', weight: 1}
318
- ]
319
- }
320
- ```
321
-
322
- </td>
323
- </tr>
324
-
325
- <tr>
326
- <td>
327
- <sub><code>trustlineCreated</code></sub>
328
- </td>
329
- <td><sub>ChangeTrustOp</sub></td>
330
- <td>
331
-
332
- ```js
333
- {
334
- type: 'trustlineCreated',
335
- source: 'GBWC…DXHN',
336
- asset: 'USD-GBKPYDLI-1',
337
- kind: 'asset',
338
- limit: '1000000000',
339
- flags: 1
340
- }
341
- ```
342
-
343
- </td>
344
- </tr>
345
-
346
- <tr>
347
- <td>
348
- <sub><code>trustlineUpdated</code></sub>
349
- </td>
350
- <td><sub>ChangeTrustOp, AllowTrustOp, SetTrustLineFlagsOp</sub></td>
351
- <td>
352
-
353
- ```js
354
- {
355
- type: 'trustlineUpdated',
356
- source: 'GBWC…DXHN',
357
- asset: 'USD-GBKPYDLI-1',
358
- kind: 'asset',
359
- limit: '2000000000',
360
- flags: 5
361
- }
362
- ```
363
-
364
- </td>
365
- </tr>
366
-
367
- <tr>
368
- <td>
369
- <sub><code>trustlineRemoved</code></sub>
370
- </td>
371
- <td><sub>ChangeTrustOp</sub></td>
372
- <td>
373
-
374
- ```js
375
- {
376
- type: 'trustlineRemoved',
377
- source: 'GBWC…DXHN',
378
- asset: 'USD-GBKP…YDLI-1',
379
- kind: 'asset',
380
- flags: 4,
381
- }
382
- ```
383
-
384
- </td>
385
- </tr>
386
-
387
- <tr>
388
- <td>
389
- <sub><code>trustlineAuthorizationUpdated</code></sub>
390
- </td>
391
- <td><sub>AllowTrustOp, SetTrustLineFlagsOp</sub></td>
392
- <td>
393
-
394
- ```js
395
- {
396
- type: 'trustlineAuthorizationUpdated',
397
- source: 'GBWC…DXHN',
398
- trustor: 'GBKP…YDLI',
399
- asset: 'USD-GBWC…DXHN-1',
400
- flags: 5,
401
- prevFlags: 2
402
- }
403
- ```
404
-
405
- </td>
406
- </tr>
407
-
408
- <tr>
409
- <td>
410
- <sub><code>assetMinted</code></sub>
411
- </td>
412
- <td><sub>PaymentOp, PathPaymentStrictReceiveOp, PathPaymentStrictSendOp, CreateClaimableBalanceOp,
413
- ManageBuyOfferOp, ManageSellOfferOp, CreatePassiveOfferOp, DepositLiquidityOp</sub></td>
414
- <td>
415
-
416
- ```js
417
- {
418
- type: 'assetMinted',
419
- source: 'GBWC…DXHN',
420
- asset: 'USD-GBWC…DXHN-1',
421
- amount: '1000000000'
422
- }
423
- ```
424
-
425
- </td>
426
- </tr>
427
-
428
- <tr>
429
- <td>
430
- <sub><code>assetBurned</code></sub>
431
- </td>
432
- <td><sub>PaymentOp, PathPaymentStrictReceiveOp, PathPaymentStrictSendOp, CreateClaimableBalanceOp, ManageBuyOfferOp, ManageSellOfferOp,
433
- CreatePassiveOfferOp, WithdrawLiquidityOp, ClawbackOp,
434
- ClaimClaimableBalanceOp</sub></td>
435
- <td>
436
-
437
- ```js
438
- {
439
- type: 'assetBurned',
440
- source: 'GBWC…DXHN',
441
- asset: 'USD-GBWC…DXHN-1',
442
- amount: '2000000000'
443
- }
444
- ```
445
-
446
- </td>
447
- </tr>
448
-
449
- <tr>
450
- <td>
451
- <sub><code>offerCreated</code></sub>
452
- </td>
453
- <td><sub>CreatePassiveOfferOp, ManageBuyOfferOp, ManageSellOfferOp</sub></td>
454
- <td>
455
-
456
- ```js
457
- {
458
- type: 'offerCreated',
459
- source: 'GBWC…DXHN',
460
- offer: '90427',
461
- owner: 'GBWC…DXHN',
462
- amount: '1000000000',
463
- asset: [
464
- 'USD-GBKP…YDLI-1',
465
- 'XLM'
466
- ],
467
- price: 0.09215,
468
- flags: 0
469
- }
470
- ```
471
-
472
- </td>
473
- </tr>
474
-
475
- <tr>
476
- <td>
477
- <sub><code>offerUpdated</code></sub>
478
- </td>
479
- <td><sub>CreatePassiveOfferOp, ManageBuyOfferOp, ManageSellOfferOp, PathPaymentOp</sub></td>
480
- <td>
481
-
482
- ```js
483
- {
484
- type: 'offerUpdated',
485
- source: 'GBWC…DXHN',
486
- offer: '90427',
487
- owner: 'GBWC…DXHN',
488
- amount: '900000000',
489
- asset: [
490
- 'USD-GBKP…YDLI-1',
491
- 'XLM'
492
- ],
493
- price: 0.09215,
494
- flags: 0
495
- }
496
- ```
497
-
498
- </td>
499
- </tr>
500
-
501
- <tr>
502
- <td>
503
- <sub><code>offerRemoved</code></sub>
504
- </td>
505
- <td><sub>CreatePassiveOfferOp, ManageBuyOfferOp, ManageSellOfferOp, PathPaymentOp, AllowTrustOp, SetTrustLineFlagsOp</sub></td>
506
- <td>
507
-
508
- ```js
509
- {
510
- type: 'offerRemoved',
511
- source: 'GBWC…DXHN',
512
- offer: '90427',
513
- owner: 'GBWC…DXHN',
514
- asset: [
515
- 'USD-GBKPYDLI-1',
516
- 'XLM'
517
- ],
518
- flags: 0
519
- }
520
- ```
521
-
522
- </td>
523
- </tr>
524
-
525
- <tr>
526
- <td>
527
- <sub><code>liquidityPoolCreated</code></sub>
528
- </td>
529
- <td><sub>ChangeTrustOp</sub></td>
530
- <td>
531
-
532
- ```js
533
- {
534
- type: 'liquidityPoolCreated',
535
- source: 'GBWC…DXHN',
536
- pool: '52a8…76f8',
537
- reserves: [
538
- {
539
- asset: 'XLM',
540
- amount: '0'
541
- },
542
- {
543
- asset: 'USD-GBKP…YDLI-1',
544
- amount: '0'
545
- }
546
- ],
547
- shares: '0',
548
- accounts: 1
549
- }
550
- ```
551
-
552
- </td>
553
- </tr>
554
-
555
- <tr>
556
- <td>
557
- <sub><code>liquidityPoolUpdated</code></sub>
558
- </td>
559
- <td><sub>DepositLiquidityOp, WithdrawLiquidityOp, AllowTrustOp, SetTrustLineFlagsOp</sub></td>
560
- <td>
561
-
562
- ```js
563
- {
564
- type: 'liquidityPoolUpdated',
565
- source: 'GBWC…DXHN',
566
- pool: '52a8…76f8',
567
- reserves: [
568
- {
569
- asset: 'XLM',
570
- amount: '10000000000'
571
- },
572
- {
573
- asset: 'USD-GBKP…YDLI-1',
574
- amount: '10000000000'
575
- }
576
- ],
577
- shares: '10000000000',
578
- accounts: 2
579
- }
580
- ```
581
-
582
- </td>
583
- </tr>
584
-
585
- <tr>
586
- <td>
587
- <sub><code>liquidityPoolDeposited</code></sub>
588
- </td>
589
- <td><sub>DepositLiquidityOp</sub></td>
590
- <td>
591
-
592
- ```js
593
- {
594
- type: 'liquidityPoolDeposited',
595
- source: 'GBWC…DXHN',
596
- pool: '52a8…76f8',
597
- assets: [
598
- {
599
- asset: 'XLM',
600
- amount: '10000000000'
601
- },
602
- {
603
- asset: 'USD-GBKP…YDLI-1',
604
- amount: '10000000000'
605
- }
606
- ],
607
- shares: '10000000000'
608
- }
609
- ```
610
-
611
- </td>
612
- </tr>
613
-
614
- <tr>
615
- <td>
616
- <sub><code>liquidityPoolWithdrew</code></sub>
617
- </td>
618
- <td><sub>WithdrawLiquidityOp</sub></td>
619
- <td>
620
-
621
- ```js
622
- {
623
- type: 'liquidityPoolWithdrew',
624
- source: 'GBWC…DXHN',
625
- pool: '52a8…76f8',
626
- assets: [
627
- {
628
- asset: 'XLM',
629
- amount: '5000000000'
630
- },
631
- {
632
- asset: 'USD-GBKP…YDLI-1',
633
- amount: '5000000000'
634
- }
635
- ],
636
- shares: '5000000000'
637
- }
638
- ```
639
-
640
- </td>
641
- </tr>
642
-
643
- <tr>
644
- <td>
645
- <sub><code>liquidityPoolRemoved</code></sub>
646
- </td>
647
- <td><sub>ChangeTrustOp, AllowTrustOp, SetTrustLineFlagsOp</sub></td>
648
- <td>
649
-
650
- ```js
651
- {
652
- type: 'liquidityPoolRemoved',
653
- source: 'GBWC…DXHN',
654
- pool: '52a8…76f8'
655
- }
656
- ```
657
-
658
- </td>
659
- </tr>
660
-
661
- <tr>
662
- <td>
663
- <sub><code>trade</code></sub>
664
- </td>
665
- <td><sub>CreatePassiveOfferOp, ManageBuyOfferOp, ManageSellOfferOp, PathPaymentOp</sub></td>
666
- <td>
667
-
668
- ```js
669
- {
670
- type: 'trade',
671
- source: 'GBWC…DXHN',
672
- offer: '14834',
673
- amount: [
674
- '100000000',
675
- '200000000'
676
- ],
677
- asset: [
678
- 'USD-GBKP…YDLI-1',
679
- 'XLM'
680
- ],
681
- seller: 'GBKP…YDLI'
682
- }
683
- ```
684
-
685
- </td>
686
- </tr>
687
-
688
- <tr>
689
- <td>
690
- <sub><code>dataEntryCreated</code></sub>
691
- </td>
692
- <td><sub>ManageDataOp</sub></td>
693
- <td>
694
-
695
- ```js
696
- {
697
- type: 'dataEntryCreated',
698
- source: 'GBWC…DXHN',
699
- name: 'test',
700
- value: 'dGVzdA=='
701
- }
702
- ```
703
-
704
- </td>
705
- </tr>
706
-
707
- <tr>
708
- <td>
709
- <sub><code>dataEntryUpdated</code></sub>
710
- </td>
711
- <td><sub>ManageDataOp</sub></td>
712
- <td>
713
-
714
- ```js
715
- {
716
- type: 'dataEntryUpdated',
717
- source: 'GBWC…DXHN',
718
- name: 'test',
719
- value: 'dGVzVA=='
720
- }
721
- ```
722
-
723
- </td>
724
- </tr>
725
-
726
- <tr>
727
- <td>
728
- <sub><code>dataEntryRemoved</code></sub>
729
- </td>
730
- <td><sub>ManageDataOp</sub></td>
731
- <td>
732
-
733
- ```js
734
- {
735
- type: 'dataEntryRemoved',
736
- source: 'GBWC…DXHN',
737
- name: 'test'
738
- }
739
- ```
740
-
741
- </td>
742
- </tr>
743
-
744
- <tr>
745
- <td>
746
- <sub><code>sequenceBumped</code></sub>
747
- </td>
748
- <td><sub>BumpSequenceOp</sub></td>
749
- <td>
750
-
751
- ```js
752
- {
753
- type: 'sequenceBumped',
754
- source: 'GBWC…DXHN',
755
- sequence: '9223372036854775707'
756
- }
757
- ```
758
-
759
- </td>
760
- </tr>
761
-
762
- <tr>
763
- <td>
764
- <sub><code>inflation</code></sub>
765
- </td>
766
- <td><sub>InflationOp</sub></td>
767
- <td>
768
-
769
- ```js
770
- {
771
- type: 'inflation',
772
- source: 'GBWC…DXHN'
773
- }
774
- ```
775
-
776
- </td>
777
- </tr>
778
-
779
- <tr>
780
- <td>
781
- <sub><code>claimableBalanceCreated</code></sub>
782
- </td>
783
- <td><sub>CreateClaimableBalanceOp, AllowTrustOp, SetTrustLineFlagsOp</sub></td>
784
- <td>
785
-
786
- ```js
787
- {
788
- type: 'claimableBalanceCreated',
789
- source: 'GBWC…DXHN',
790
- sponsor: 'GBWC…DXHN',
791
- balance: '7aba…6f9d',
792
- asset: 'XLM',
793
- amount: '1000000000',
794
- claimants: [
795
- {
796
- destination: 'GBKP…YDLI',
797
- predicate: {
798
- absBefore: '1671220240580'
799
- }
800
- }
801
- ]
802
- }
803
- ```
804
-
805
- </td>
806
- </tr>
807
-
808
- <tr>
809
- <td>
810
- <sub><code>claimableBalanceRemoved</code></sub>
811
- </td>
812
- <td><sub>ClaimClaimableBalanceOp, ClawbackClaimableBalanceOp</sub></td>
813
- <td>
814
-
815
- ```js
816
- {
817
- type: 'claimableBalanceRemoved',
818
- source: 'GBKP…YDLI',
819
- sponsor: 'GBWC…DXHN',
820
- balance: '7aba…6f9d',
821
- asset: 'XLM',
822
- amount: '1000000000',
823
- claimants: [
824
- {
825
- destination: 'GBKP…YDLI',
826
- predicate: {
827
- absBefore: '1671220240580'
828
- }
829
- }
830
- ]
831
- }
832
- ```
833
-
834
- </td>
835
- </tr>
836
-
837
- <tr>
838
- <td>
839
- <sub><code>accountSponsorshipCreated</code></sub>
840
- </td>
841
- <td><sub>CreateAccountOp</sub></td>
842
- <td>
843
-
844
- ```js
845
- {
846
- type: 'accountSponsorshipCreated',
847
- source: 'GBWC…DXHN',
848
- sponsor: 'GBWC…DXHN',
849
- account: 'GBKP…YDLI'
850
- }
851
- ```
852
-
853
- </td>
854
- </tr>
855
-
856
- <tr>
857
- <td>
858
- <sub><code>accountSponsorshipUpdated</code></sub>
859
- </td>
860
- <td><sub>RevokeSponsorshipOp</sub></td>
861
- <td>
862
-
863
- ```js
864
- {
865
- type: 'accountSponsorshipUpdated',
866
- source: 'GBWC…DXHN',
867
- sponsor: 'GDNP…CMXH',
868
- prevSponsor: 'GBWC…DXHN',
869
- account: 'GBKP…YDLI'
870
- }
871
- ```
872
-
873
- </td>
874
- </tr>
875
-
876
- <tr>
877
- <td>
878
- <sub><code>accountSponsorshipRemoved</code></sub>
879
- </td>
880
- <td><sub>RevokeSponsorshipOp</sub></td>
881
- <td>
882
-
883
- ```js
884
- {
885
- type: 'accountSponsorshipRemoved',
886
- source: 'GBWC…DXHN',
887
- prevSponsor: 'GBWC…DXHN',
888
- account: 'GBKP…YDLI'
889
- }
890
- ```
891
-
892
- </td>
893
- </tr>
894
-
895
- <tr>
896
- <td>
897
- <sub><code>trustlineSponsorshipCreated</code></sub>
898
- </td>
899
- <td><sub>ChangeThrustOp</sub></td>
900
- <td>
901
-
902
- ```js
903
- {
904
- type: 'trustlineSponsorshipCreated',
905
- source: 'GBWC…DXHN',
906
- sponsor: 'GBWC…DXHN',
907
- account: 'GBKP…YDLI',
908
- asset: 'USD-GBKP…YDLI-1'
909
- }
910
- ```
911
-
912
- </td>
913
- </tr>
914
-
915
- <tr>
916
- <td>
917
- <sub><code>trustlineSponsorshipUpdated</code></sub>
918
- </td>
919
- <td><sub>RevokeSponsorshipOp</sub></td>
920
- <td>
921
-
922
- ```js
923
- {
924
- type: 'trustlineSponsorshipUpdated',
925
- source: 'GBWC…DXHN',
926
- sponsor: 'GDNP…CMXH',
927
- prevSponsor: 'GBWC…DXHN',
928
- account: 'GBKP…YDLI',
929
- asset: 'USD-GBKPYDLI-1'
930
- }
931
- ```
932
-
933
- </td>
934
- </tr>
935
-
936
- <tr>
937
- <td>
938
- <sub><code>trustlineSponsorshipRemoved</code></sub>
939
- </td>
940
- <td><sub>RevokeSponsorshipOp</sub></td>
941
- <td>
942
-
943
- ```js
944
- {
945
- type: 'trustlineSponsorshipRemoved',
946
- source: 'GBWC…DXHN',
947
- prevSponsor: 'GBWC…DXHN',
948
- account: 'GBKP…YDLI',
949
- asset: 'USD-GBKP…YDLI-1'
950
- }
951
- ```
952
-
953
- </td>
954
- </tr>
955
-
956
- <tr>
957
- <td>
958
- <sub><code>offerSponsorshipCreated</code></sub>
959
- </td>
960
- <td><sub>CreatePassiveOfferOp, ManageBuyOfferOp, ManageSellOfferOp</sub></td>
961
- <td>
962
-
963
- ```js
964
- {
965
- type: 'offerSponsorshipCreated',
966
- source: 'GBWC…DXHN',
967
- sponsor: 'GBWC…DXHN',
968
- account: 'GBKP…YDLI',
969
- offer: '4523452'
970
- }
971
- ```
972
-
973
- </td>
974
- </tr>
975
-
976
- <tr>
977
- <td>
978
- <sub><code>offerSponsorshipUpdated</code></sub>
979
- </td>
980
- <td><sub>RevokeSponsorshipOp</sub></td>
981
- <td>
982
-
983
- ```js
984
- {
985
- type: 'offerSponsorshipUpdated',
986
- source: 'GBWC…DXHN',
987
- sponsor: 'GDNP…CMXH',
988
- prevSponsor: 'GBWC…DXHN',
989
- account: 'GBKP…YDLI',
990
- offer: '4523452'
991
- }
992
- ```
993
-
994
- </td>
995
- </tr>
996
-
997
- <tr>
998
- <td>
999
- <sub><code>offerSponsorshipRemoved</code></sub>
1000
- </td>
1001
- <td><sub>RevokeSponsorshipOp</sub></td>
1002
- <td>
1003
-
1004
- ```js
1005
- {
1006
- type: 'offerSponsorshipRemoved',
1007
- source: 'GBWC…DXHN',
1008
- prevSponsor: 'GBWC…DXHN',
1009
- account: 'GBKP…YDLI',
1010
- offer: '4523452'
1011
- }
1012
- ```
1013
-
1014
- </td>
1015
- </tr>
1016
-
1017
- <tr>
1018
- <td>
1019
- <sub><code>dataSponsorshipCreated</code></sub>
1020
- </td>
1021
- <td><sub>ManageDataOp</sub></td>
1022
- <td>
1023
-
1024
- ```js
1025
- {
1026
- type: 'dataSponsorshipCreated',
1027
- source: 'GBWC…DXHN',
1028
- sponsor: 'GBWC…DXHN',
1029
- account: 'GBKP…YDLI',
1030
- name: 'name'
1031
- }
1032
- ```
1033
-
1034
- </td>
1035
- </tr>
1036
-
1037
- <tr>
1038
- <td>
1039
- <sub><code>dataSponsorshipUpdated</code></sub>
1040
- </td>
1041
- <td><sub>RevokeSponsorshipOp</sub></td>
1042
- <td>
1043
-
1044
- ```js
1045
- {
1046
- type: 'dataSponsorshipUpdated',
1047
- source: 'GBWC…DXHN',
1048
- sponsor: 'GDNP…CMXH',
1049
- prevSponsor: 'GBWC…DXHN',
1050
- account: 'GBKP…YDLI',
1051
- name: 'name'
1052
- }
1053
- ```
1054
-
1055
- </td>
1056
- </tr>
1057
-
1058
- <tr>
1059
- <td>
1060
- <sub><code>dataSponsorshipRemoved</code></sub>
1061
- </td>
1062
- <td><sub>RevokeSponsorshipOp</sub></td>
1063
- <td>
1064
-
1065
- ```js
1066
- {
1067
- type: 'dataSponsorshipRemoved',
1068
- source: 'GBWC…DXHN',
1069
- prevSponsor: 'GBWC…DXHN',
1070
- account: 'GBKP…YDLI',
1071
- name: 'name'
1072
- }
1073
- ```
1074
-
1075
- </td>
1076
- </tr>
1077
-
1078
- <tr>
1079
- <td>
1080
- <sub><code>claimableBalanceSponsorshipCreated</code></sub>
1081
- </td>
1082
- <td><sub>CreateClaimableBalanceOp</sub></td>
1083
- <td>
1084
-
1085
- ```js
1086
- {
1087
- type: 'claimableBalanceSponsorshipCreated',
1088
- source: 'GBWC…DXHN',
1089
- sponsor: 'GBWC…DXHN',
1090
- balance: '7aba…6f9d'
1091
- }
1092
- ```
1093
-
1094
- </td>
1095
- </tr>
1096
-
1097
- <tr>
1098
- <td>
1099
- <sub><code>claimableBalanceSponsorshipUpdated</code></sub>
1100
- </td>
1101
- <td><sub>RevokeSponsorshipOp</sub></td>
1102
- <td>
1103
-
1104
- ```js
1105
- {
1106
- type: 'claimableBalanceSponsorshipUpdated',
1107
- source: 'GBWC…DXHN',
1108
- sponsor: 'GDNP…CMXH',
1109
- prevSponsor: 'GBWC…DXHN',
1110
- balance: '7aba…6f9d'
1111
- }
1112
- ```
1113
-
1114
- </td>
1115
- </tr>
1116
-
1117
- <tr>
1118
- <td>
1119
- <sub><code>claimableBalanceSponsorshipRemoved</code></sub>
1120
- </td>
1121
- <td><sub>RevokeSponsorshipOp</sub></td>
1122
- <td>
1123
-
1124
- ```js
1125
- {
1126
- type: 'claimableBalanceSponsorshipRemoved',
1127
- source: 'GBWC…DXHN',
1128
- prevSponsor: 'GBWC…DXHN',
1129
- balance: '7aba…6f9d'
1130
- }
1131
- ```
1132
-
1133
- </td>
1134
- </tr>
1135
-
1136
- <tr>
1137
- <td>
1138
- <sub><code>signerSponsorshipCreated</code></sub>
1139
- </td>
1140
- <td><sub>SetOptionsOp</sub></td>
1141
- <td>
1142
-
1143
- ```js
1144
- {
1145
- type: 'signerSponsorshipCreated',
1146
- source: 'GBWC…DXHN',
1147
- sponsor: 'GBWC…DXHN',
1148
- signer: 'GALF…CR2V',
1149
- account: 'GBKP…YDLI'
1150
- }
1151
- ```
1152
-
1153
- </td>
1154
- </tr>
1155
-
1156
- <tr>
1157
- <td>
1158
- <sub><code>signerSponsorshipUpdated</code></sub>
1159
- </td>
1160
- <td><sub>RevokeSponsorshipOp</sub></td>
1161
- <td>
1162
-
1163
- ```js
1164
- {
1165
- type: 'signerSponsorshipUpdated',
1166
- source: 'GBWC…DXHN',
1167
- sponsor: 'GDNP…CMXH',
1168
- prevSponsor: 'GBWC…DXHN',
1169
- signer: 'GALF…CR2V',
1170
- account: 'GBKPYDLI'
1171
- }
1172
- ```
1173
-
1174
- </td>
1175
- </tr>
1176
-
1177
- <tr>
1178
- <td>
1179
- <sub><code>signerSponsorshipRemoved</code></sub>
1180
- </td>
1181
- <td><sub>RevokeSponsorshipOp</sub></td>
1182
- <td>
1183
-
1184
- ```js
1185
- {
1186
- type: 'signerSponsorshipRemoved',
1187
- source: 'GBWC…DXHN',
1188
- prevSponsor: 'GBWC…DXHN',
1189
- signer: 'GALF…CR2V',
1190
- account: 'GBKP…YDLI'
1191
- }
1192
- ```
1193
-
1194
- </td>
1195
- </tr>
1196
-
1197
- <tr>
1198
- <td>
1199
- <sub><code>liquidityPoolSponsorshipCreated</code></sub>
1200
- </td>
1201
- <td><sub>ChangeThrustOp</sub></td>
1202
- <td>
1203
-
1204
- ```js
1205
- {
1206
- type: 'liquidityPoolSponsorshipCreated',
1207
- source: 'GBWC…DXHN',
1208
- sponsor: 'GBWC…DXHN'
1209
- }
1210
- ```
1211
-
1212
- </td>
1213
- </tr>
1214
-
1215
- <tr>
1216
- <td>
1217
- <sub><code>liquidityPoolSponsorshipUpdated</code></sub>
1218
- </td>
1219
- <td><sub>RevokeSponsorshipOp</sub></td>
1220
- <td>
1221
-
1222
- ```js
1223
- {
1224
- type: 'liquidityPoolSponsorshipUpdated',
1225
- source: 'GBWC…DXHN',
1226
- sponsor: 'GDNP…CMXH',
1227
- prevSponsor: 'GBWC…DXHN'
1228
- }
1229
- ```
1230
-
1231
- </td>
1232
- </tr>
1233
-
1234
- <tr>
1235
- <td>
1236
- <sub><code>liquidityPoolSponsorshipRemoved</code></sub>
1237
- </td>
1238
- <td><sub>RevokeSponsorshipOp</sub></td>
1239
- <td>
1240
-
1241
- ```js
1242
- {
1243
- type: 'liquidityPoolSponsorshipRemoved',
1244
- source: 'GBWC…DXHN',
1245
- prevSponsor: 'GBWC…DXHN'
1246
- }
1247
- ```
1248
-
1249
- </td>
1250
- </tr>
1251
-
1252
- <tr>
1253
- <td>
1254
- <sub><code>contractCodeUploaded</code></sub>
1255
- </td>
1256
- <td><sub>InvokeHostFunctionOp</sub></td>
1257
- <td>
1258
-
1259
- ```js
1260
- {
1261
- type: 'contractCodeUploaded',
1262
- source: 'GBWC…DXHN',
1263
- wasm: 'AGFz…AAAF',
1264
- wasmHash: '5c55…e46d',
1265
- keyHash: 'a833…f27f'
1266
- }
1267
- ```
1268
-
1269
- </td>
1270
- </tr>
1271
-
1272
- <tr>
1273
- <td>
1274
- <sub><code>contractCodeRemoved</code></sub>
1275
- </td>
1276
- <td><sub>InvokeHostFunctionOp</sub></td>
1277
- <td>
1278
-
1279
- ```js
1280
- {
1281
- type: 'contractCodeRemoved',
1282
- source: 'GBWC…DXHN',
1283
- wasmHash: '5c55…e46d',
1284
- keyHash: 'a833…f27f'
1285
- }
1286
- ```
1287
-
1288
- </td>
1289
- </tr>
1290
-
1291
- <tr>
1292
- <td>
1293
- <sub><code>contractCreated</code></sub>
1294
- </td>
1295
- <td><sub>InvokeHostFunctionOp</sub></td>
1296
- <td>
1297
-
1298
- ```js
1299
- {
1300
- type: 'contractCreated',
1301
- source: 'GBWC…DXHN',
1302
- contract: 'CBIH…AZAD',
1303
- kind: 'fromAsset',
1304
- asset: 'ICGVCWUQXIHO-GBD2…FUAC-2'
1305
- }
1306
- ```
1307
-
1308
- </td>
1309
- </tr>
1310
-
1311
- <tr>
1312
- <td>
1313
- <sub><code>contractUpdated</code></sub>
1314
- </td>
1315
- <td><sub>InvokeHostFunctionOp</sub></td>
1316
- <td>
1317
-
1318
- ```js
1319
- {
1320
- type: 'contractUpdated',
1321
- source: 'GBWC…DXHN',
1322
- contract: 'CBIH…AZAD',
1323
- kind: 'wasm',
1324
- wasmHash: '5c55…e46d',
1325
- prevWasmHash: 'eb94…19ae'
1326
-
1327
- }
1328
- ```
1329
-
1330
- </td>
1331
- </tr>
1332
-
1333
- <tr>
1334
- <td>
1335
- <sub><code>contractInvoked</code></sub>
1336
- </td>
1337
- <td><sub>InvokeHostFunctionOp</sub></td>
1338
- <td>
1339
-
1340
- ```js
1341
- {
1342
- type: 'contractInvoked',
1343
- source: 'GBWC…DXHN',
1344
- contract: 'CBIH…AZAD',
1345
- function: 'mint',
1346
- rawArgs: 'AAAA…Ag==',
1347
- depth: 1,
1348
- args: [
1349
- 'CDFD…ITT3',
1350
- '1000'
1351
- ]
1352
- }
1353
- ```
1354
-
1355
- </td>
1356
- </tr>
1357
-
1358
- <tr>
1359
- <td>
1360
- <sub><code>contractError</code></sub>
1361
- </td>
1362
- <td><sub>InvokeHostFunctionOp</sub></td>
1363
- <td>
1364
-
1365
- ```js
1366
- {
1367
- type: 'contractError',
1368
- source: 'GB6V…UIYN',
1369
- contract: 'CBIH…AZAD',
1370
- code: 13,
1371
- details: [
1372
- 'trustline entry is missing for account',
1373
- 'GB6V…UIYN'
1374
- ]
1375
- }
1376
- ```
1377
-
1378
- </td>
1379
- </tr>
1380
-
1381
- <tr>
1382
- <td>
1383
- <sub><code>contractDataCreated</code></sub>
1384
- </td>
1385
- <td><sub>InvokeHostFunctionOp</sub></td>
1386
- <td>
1387
-
1388
- ```js
1389
- {
1390
- type: 'contractDataCreated',
1391
- source: 'GC3E…XMJY',
1392
- owner: 'CCM3…OFJX',
1393
- key: 'AAAA…0SQ=',
1394
- value: 'AAAA…AA==',
1395
- durability: 'persistent',
1396
- keyHash: '2177…a56a'
1397
- }
1398
- ```
1399
-
1400
- </td>
1401
- </tr>
1402
-
1403
- <tr>
1404
- <td>
1405
- <sub><code>contractDataUpdated</code></sub>
1406
- </td>
1407
- <td><sub>InvokeHostFunctionOp</sub></td>
1408
- <td>
1409
-
1410
- ```js
1411
- {
1412
- type: 'contractDataUpdated',
1413
- source: 'GC3E…XMJY',
1414
- owner: 'CCM3…OFJX',
1415
- key: 'AAAAFA==',
1416
- value: 'AAAA…AA==',
1417
- prevValue: 'AAAA…AAA=',
1418
- durability: 'persistent',
1419
- keyHash: '2177…a56a'
1420
- }
1421
- ```
1422
-
1423
- </td>
1424
- </tr>
1425
-
1426
- <tr>
1427
- <td>
1428
- <sub><code>contractDataRemoved</code></sub>
1429
- </td>
1430
- <td><sub>InvokeHostFunctionOp</sub></td>
1431
- <td>
1432
-
1433
- ```js
1434
- {
1435
- type: 'contractDataRemoved',
1436
- source: 'GC3E…XMJY',
1437
- owner: 'CCM3…OFJX',
1438
- key: 'AAAAFA==',
1439
- prevValue: 'AAAA…AAA=',
1440
- durability: 'instance'
1441
- }
1442
- ```
1443
-
1444
- </td>
1445
- </tr>
1446
-
1447
- <tr>
1448
- <td>
1449
- <sub><code>contractEvent</code></sub>
1450
- </td>
1451
- <td><sub>InvokeHostFunctionOp</sub></td>
1452
- <td>
1453
-
1454
- ```js
1455
- {
1456
- type: 'contractEvent',
1457
- source: 'GC3E…XMJY',
1458
- contract: 'CCM3…OFJX',
1459
- topics: [
1460
- 'mint',
1461
- 'GC3E…XMJY',
1462
- 'CDFD…ITT3',
1463
- 'AMDL:GC3E…XMJY'
1464
- ],
1465
- rawTopics: [
1466
- 'AAAA…aW50',
1467
- 'AAAA…gLs=',
1468
- 'AAAA…JA==',
1469
- 'AAAA…AAAA'
1470
- ],
1471
- data: '1000',
1472
- rawData: 'AAAAA+g='
1473
- }
1474
- ```
1475
-
1476
- </td>
1477
- </tr>
1478
-
1479
- <tr>
1480
- <td>
1481
- <sub><code>contractMetrics</code></sub>
1482
- </td>
1483
- <td><sub>InvokeHostFunctionOp</sub></td>
1484
- <td>
1485
-
1486
- ```js
1487
- {
1488
- type: 'contractMetrics',
1489
- source: 'GC3E…XMJY',
1490
- contract: 'CCM3…OFJX',
1491
- cpu_insn: 25470499,
1492
- emit_event: 5,
1493
- emit_event_byte: 1176,
1494
- invoke_time_nsecs: 2013675,
1495
- ledger_read_byte: 36624,
1496
- ledger_write_byte: 1028,
1497
- max_emit_event_byte: 328,
1498
- max_rw_code_byte: 16352,
1499
- max_rw_data_byte: 924,
1500
- max_rw_key_byte: 160,
1501
- mem_byte: 10204502,
1502
- read_code_byte: 33508,
1503
- read_data_byte: 3116,
1504
- read_entry: 16,
1505
- read_key_byte: 1244,
1506
- write_code_byte: 0,
1507
- write_data_byte: 1028,
1508
- write_entry: 5,
1509
- write_key_byte: 0,
1510
- fee: {
1511
- nonrefundable: 284210,
1512
- refundable: 100521,
1513
- rent: 100481
1514
- }
1515
- }
1516
- ```
1517
-
1518
- </td>
1519
- </tr>
1520
-
1521
- <tr>
1522
- <td>
1523
- <sub><code>setTtl</code></sub>
1524
- </td>
1525
- <td><sub>ExtendFootprintTTLOp, RestoreFootprintOp</sub></td>
1526
- <td>
1527
-
1528
- ```js
1529
- {
1530
- type: 'setTtl',
1531
- source: 'GC3E…XMJY',
1532
- owner: 'CDAE…EH7T',
1533
- kind: 'contractData',
1534
- keyHash: '7594…b429',
1535
- ttl: 2873856
1536
- }
1537
- ```
1538
-
1539
- </td>
1540
- </tr>
1541
-
1
+ # @stellar-expert/tx-meta-effects-parser
2
+
3
+ > Low-level effects parser for Stellar transaction results and meta XDR
4
+
5
+ Some [Stellar](https://stellar.org) operations yield non-deterministic results,
6
+ so developers often have to pull the data from Horizon `/effects` API endpoints.
7
+ This package provides the ability to retrieve atomic ledger state modifications
8
+ directly from the transaction execution result and metadata.
9
+
10
+ ## Installation
11
+
12
+ ```
13
+ npm i @stellar-expert/tx-meta-effects-parser
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ ```js
19
+ const {parseTxOperationsMeta} = require('@stellar-expert/tx-meta-effects-parser')
20
+
21
+ const res = parseTxOperationsMeta({
22
+ network: 'Public Global Stellar Network ; September 2015',
23
+ tx: '_base64-encoded_transaction_envelope_XDR_', // trasnaction envelope XDR
24
+ result: '_base64-encoded_transaction_result_XDR_', // trasnaction result XDR
25
+ meta: '_base64-encoded_transaction_result_meta_XDR_', // trasnaction meta XDR
26
+ processSystemEvents: false, // whether to analyze system Soroban diagnostic events
27
+ mapSac: false, // whether to map Classic assets to Soroban contracts automatically
28
+ processFailedOpEffects: false, // whether to analyze effects in failed transactions
29
+ processMetrics: false, // whether to emit contractMetrics events (if metadata contains metrics)
30
+ protocol: 21 // different versions of Stelalr protocol may yield uninform effects
31
+ })
32
+
33
+ console.log(res.effects)
34
+ console.log(res.operations[0].effects)
35
+ ```
36
+
37
+ Example:
38
+
39
+ ```js
40
+ parseTxOperationsMeta({
41
+ network: 'Public Global Stellar Network ; September 2015',
42
+ tx: 'AAAAAgAAAABU95GyQJbC5BUk8MOfuB2kGJMPNikp/uVdnGQ9ALDarAAAJxAAAJvZAAAAAQAAAAEAAAAAAAAAAAAAAABjnO8XAAAAAAAAAAEAAAABAAAAAGwpaFzT4YYOFQorR1hvkzU9himxtEbBMKbb/qeCkpPhAAAACAAAAABU95GyQJbC5BUk8MOfuB2kGJMPNikp/uVdnGQ9ALDarAAAAAAAAAACALDarAAAAED9Omj2K+pvRUV6jGicOlyZ7F5Jg82yj6rK0VKPSo8eOlfAkJt2AfcSYhB1HUODhbgpwHryTNjJZr8HLy3H/8wFgpKT4QAAAEAqlaQs1KKyIp5/aGFg+KRyIwR2wB+UE+PoEJC7EkyK3DNET09EDWqRCTZjZlNnvAPtw+R0ZXndNsPxZtqKjnsF',
43
+ result: 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAIAAAAAAAAABdIdugAAAAAAA==',
44
+ meta: 'AAAAAgAAAAIAAAADAACb3QAAAAAAAAAAVPeRskCWwuQVJPDDn7gdpBiTDzYpKf7lXZxkPQCw2qwAAAAXSHbnnAAAm9kAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAACb3QAAAAAAAAAAVPeRskCWwuQVJPDDn7gdpBiTDzYpKf7lXZxkPQCw2qwAAAAXSHbnnAAAm9kAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAAAJvdAAAAAGOcyAwAAAAAAAAAAQAAAAQAAAADAACb2gAAAAAAAAAAbCloXNPhhg4VCitHWG+TNT2GKbG0RsEwptv+p4KSk+EAAAAXSHboAAAAm9oAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAABsKWhc0+GGDhUKK0dYb5M1PYYpsbRGwTCm2/6ngpKT4QAAAAMAAJvdAAAAAAAAAABU95GyQJbC5BUk8MOfuB2kGJMPNikp/uVdnGQ9ALDarAAAABdIduecAACb2QAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAADAAAAAAAAm90AAAAAY5zIDAAAAAAAAAABAACb3QAAAAAAAAAAVPeRskCWwuQVJPDDn7gdpBiTDzYpKf7lXZxkPQCw2qwAAAAukO3PnAAAm9kAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAAAJvdAAAAAGOcyAwAAAAAAAAAAA=='
45
+ })
46
+
47
+ /*json
48
+ {
49
+ effects: [
50
+ {
51
+ "type": "feeCharged",
52
+ "source": "GBKPPENSICLMFZAVETYMHH5YDWSBREYPGYUST7XFLWOGIPIAWDNKYDLI",
53
+ "asset": "XLM",
54
+ "bid": "10000",
55
+ "charged": "100"
56
+ }
57
+ ],
58
+ operations: [
59
+ {
60
+ "source": "GBWCS2C42PQYMDQVBIVUOWDPSM2T3BRJWG2ENQJQU3N75J4CSKJ6DXHN",
61
+ "type": "accountMerge",
62
+ "destination": "GBKPPENSICLMFZAVETYMHH5YDWSBREYPGYUST7XFLWOGIPIAWDNKYDLI",
63
+ "effects": [
64
+ {
65
+ "type": "accountDebited",
66
+ "source": "GBWCS2C42PQYMDQVBIVUOWDPSM2T3BRJWG2ENQJQU3N75J4CSKJ6DXHN",
67
+ "asset": "XLM",
68
+ "amount": "100000000000",
69
+ "balance": "0"
70
+ },
71
+ {
72
+ "type": "accountRemoved",
73
+ "source": "GBWCS2C42PQYMDQVBIVUOWDPSM2T3BRJWG2ENQJQU3N75J4CSKJ6DXHN"
74
+ },
75
+ {
76
+ "type": "accountCredited",
77
+ "source": "GBKPPENSICLMFZAVETYMHH5YDWSBREYPGYUST7XFLWOGIPIAWDNKYDLI",
78
+ "asset": "XLM",
79
+ "amount": "100000000000",
80
+ "balance": "199999999900"
81
+ }
82
+ ]
83
+ }
84
+ ],
85
+ "isEphemeral": false,
86
+ "tx": {}
87
+ }
88
+ */
89
+ ```
90
+
91
+ ## All effects
92
+
93
+ <table>
94
+ <tr>
95
+ <th>Effect</th> <th>Operations</th> <th>Example</th>
96
+ </tr>
97
+
98
+ <tr>
99
+ <td>
100
+ <sub><code>feeCharged</code></sub>
101
+ </td>
102
+ <td><sub>Transaction, FeeBumpTransaction</sub></td>
103
+ <td>
104
+
105
+ ```js
106
+ {
107
+ type: 'feeCharged',
108
+ source: 'GBKP…YDLI',
109
+ asset: 'XLM',
110
+ bid: '10000',
111
+ charged: '100'
112
+ }
113
+ ```
114
+ </td>
115
+ </tr>
116
+
117
+ <tr>
118
+ <td>
119
+ <sub><code>accountCreated</code></sub>
120
+ </td>
121
+ <td><sub>CreateAccountOp</sub></td>
122
+ <td>
123
+
124
+ ```js
125
+ {
126
+ type: 'accountCreated',
127
+ source: 'GBKPYDLI',
128
+ account: 'GBWC…DXHN'
129
+ }
130
+ ```
131
+ </td>
132
+ </tr>
133
+
134
+ <tr>
135
+ <td>
136
+ <sub><code>accountRemoved</code></sub>
137
+ </td>
138
+ <td><sub>AccountMergeOp</sub></td>
139
+ <td>
140
+
141
+ ```js
142
+ {
143
+ type: 'accountRemoved',
144
+ source: 'GBKP…YDLI'
145
+ }
146
+ ```
147
+ </td>
148
+ </tr>
149
+
150
+ <tr>
151
+ <td>
152
+ <sub><code>accountDebited</code></sub>
153
+ </td>
154
+ <td><sub>CreateAccountOp, AccountMergeOp, PaymentOp, PathPaymentStrictReceiveOp,
155
+ PathPaymentStrictSendOp, CreateClaimableBalanceOp, ClawbackOp</sub></td>
156
+ <td>
157
+
158
+ ```js
159
+ {
160
+ type: 'accountDebited',
161
+ source: 'GBKP…YDLI',
162
+ asset: 'XLM',
163
+ amount: '1000000000'
164
+ }
165
+ ```
166
+ </td>
167
+ </tr>
168
+
169
+ <tr>
170
+ <td>
171
+ <sub><code>accountCredited</code></sub>
172
+ </td>
173
+ <td><sub>CreateAccountOp, AccountMergeOp, PaymentOp, PathPaymentStrictReceiveOp,
174
+ PathPaymentStrictSendOp, ClaimClaimableBalanceOp, ClawbackOp,
175
+ ClawbackClaimableBalance, InflationOp</sub></td>
176
+ <td>
177
+
178
+ ```js
179
+ {
180
+ type: 'accountCredited',
181
+ source: 'GBWC…DXHN',
182
+ asset: 'XLM',
183
+ amount: '1000000000'
184
+ }
185
+ ```
186
+ </td>
187
+ </tr>
188
+
189
+ <tr>
190
+ <td>
191
+ <sub><code>accountHomeDomainUpdated</code></sub>
192
+ </td>
193
+ <td><sub>SetOptionsOp</sub></td>
194
+ <td>
195
+
196
+ ```js
197
+ {
198
+ type: 'accountHomeDomainUpdated',
199
+ source: 'GBWC…DXHN',
200
+ domain: 'example.com'
201
+ }
202
+ ```
203
+ </td>
204
+ </tr>
205
+
206
+ <tr>
207
+ <td>
208
+ <sub><code>accountThresholdsUpdated</code></sub>
209
+ </td>
210
+ <td><sub>SetOptionsOp</sub></td>
211
+ <td>
212
+
213
+ ```js
214
+ {
215
+ type: 'accountThresholdsUpdated',
216
+ source: 'GBWC…DXHN',
217
+ thresholds: [1, 1 ,3]
218
+ }
219
+ ```
220
+ </td>
221
+ </tr>
222
+
223
+ <tr>
224
+ <td>
225
+ <sub><code>accountFlagsUpdated</code></sub>
226
+ </td>
227
+ <td><sub>SetOptionsOp</sub></td>
228
+ <td>
229
+
230
+ ```js
231
+ {
232
+ type: 'accountFlagsUpdated',
233
+ source: 'GBWC…DXHN',
234
+ flags: 2,
235
+ prevFlags: 0
236
+ }
237
+ ```
238
+ </td>
239
+ </tr>
240
+
241
+ <tr>
242
+ <td>
243
+ <sub><code>accountInflationDestinationUpdated</code></sub>
244
+ </td>
245
+ <td><sub>SetOptionsOp</sub></td>
246
+ <td>
247
+
248
+ ```js
249
+ {
250
+ type: 'accountInflationDestinationUpdated',
251
+ source: 'GBWCDXHN',
252
+ inflationDestination: 'GBKP…YDLI'
253
+ }
254
+ ```
255
+ </td>
256
+ </tr>
257
+
258
+ <tr>
259
+ <td>
260
+ <sub><code>accountSignerCreated</code></sub>
261
+ </td>
262
+ <td><sub>SetOptionsOp</sub></td>
263
+ <td>
264
+
265
+ ```js
266
+ {
267
+ type: 'accountSignerCreated',
268
+ source: 'GBWCDXHN',
269
+ signer: 'GBKP…YDLI',
270
+ weight: 1,
271
+ signers: [
272
+ {key: 'GBWCDXHN', weight: 1},
273
+ {key: 'GBKP…YDLI', weight: 1}
274
+ ]
275
+ }
276
+ ```
277
+
278
+ </td>
279
+ </tr>
280
+
281
+ <tr>
282
+ <td>
283
+ <sub><code>accountSignerUpdated</code></sub>
284
+ </td>
285
+ <td><sub>SetOptionsOp</sub></td>
286
+ <td>
287
+
288
+ ```js
289
+ {
290
+ type: 'accountSignerUpdated',
291
+ source: 'GBWCDXHN',
292
+ signer: 'GBKP…YDLI',
293
+ weight: 2,
294
+ signers: [
295
+ {key: 'GBWCDXHN', weight: 2},
296
+ {key: 'GBKP…YDLI', weight: 1}
297
+ ]
298
+ }
299
+ ```
300
+
301
+ </td>
302
+ </tr>
303
+
304
+ <tr>
305
+ <td>
306
+ <sub><code>accountSignerRemoved</code></sub>
307
+ </td>
308
+ <td><sub>SetOptionsOp</sub></td>
309
+ <td>
310
+
311
+ ```js
312
+ {
313
+ type: 'accountSignerRemoved',
314
+ source: 'GBWC…DXHN',
315
+ weight: 0,
316
+ signer: 'GBKP…YDLI',
317
+ signers: [
318
+ {key: 'GBWC…DXHN', weight: 1}
319
+ ]
320
+ }
321
+ ```
322
+
323
+ </td>
324
+ </tr>
325
+
326
+ <tr>
327
+ <td>
328
+ <sub><code>trustlineCreated</code></sub>
329
+ </td>
330
+ <td><sub>ChangeTrustOp</sub></td>
331
+ <td>
332
+
333
+ ```js
334
+ {
335
+ type: 'trustlineCreated',
336
+ source: 'GBWCDXHN',
337
+ asset: 'USD-GBKP…YDLI-1',
338
+ kind: 'asset',
339
+ limit: '1000000000',
340
+ flags: 1
341
+ }
342
+ ```
343
+
344
+ </td>
345
+ </tr>
346
+
347
+ <tr>
348
+ <td>
349
+ <sub><code>trustlineUpdated</code></sub>
350
+ </td>
351
+ <td><sub>ChangeTrustOp, AllowTrustOp, SetTrustLineFlagsOp</sub></td>
352
+ <td>
353
+
354
+ ```js
355
+ {
356
+ type: 'trustlineUpdated',
357
+ source: 'GBWCDXHN',
358
+ asset: 'USD-GBKP…YDLI-1',
359
+ kind: 'asset',
360
+ limit: '2000000000',
361
+ flags: 5,
362
+ prevFlags: 5
363
+ }
364
+ ```
365
+
366
+ </td>
367
+ </tr>
368
+
369
+ <tr>
370
+ <td>
371
+ <sub><code>trustlineRemoved</code></sub>
372
+ </td>
373
+ <td><sub>ChangeTrustOp</sub></td>
374
+ <td>
375
+
376
+ ```js
377
+ {
378
+ type: 'trustlineRemoved',
379
+ source: 'GBWC…DXHN',
380
+ asset: 'USD-GBKP…YDLI-1',
381
+ kind: 'asset',
382
+ flags: 4,
383
+ }
384
+ ```
385
+
386
+ </td>
387
+ </tr>
388
+
389
+ <tr>
390
+ <td>
391
+ <sub><code>trustlineAuthorizationUpdated</code></sub>
392
+ </td>
393
+ <td><sub>AllowTrustOp, SetTrustLineFlagsOp</sub></td>
394
+ <td>
395
+
396
+ ```js
397
+ {
398
+ type: 'trustlineAuthorizationUpdated',
399
+ source: 'GBWC…DXHN',
400
+ trustor: 'GBKP…YDLI',
401
+ asset: 'USD-GBWC…DXHN-1',
402
+ flags: 5,
403
+ prevFlags: 2
404
+ }
405
+ ```
406
+
407
+ </td>
408
+ </tr>
409
+
410
+ <tr>
411
+ <td>
412
+ <sub><code>assetMinted</code></sub>
413
+ </td>
414
+ <td><sub>PaymentOp, PathPaymentStrictReceiveOp, PathPaymentStrictSendOp, CreateClaimableBalanceOp,
415
+ ManageBuyOfferOp, ManageSellOfferOp, CreatePassiveOfferOp, DepositLiquidityOp</sub></td>
416
+ <td>
417
+
418
+ ```js
419
+ {
420
+ type: 'assetMinted',
421
+ source: 'GBWC…DXHN',
422
+ asset: 'USD-GBWC…DXHN-1',
423
+ amount: '1000000000'
424
+ }
425
+ ```
426
+
427
+ </td>
428
+ </tr>
429
+
430
+ <tr>
431
+ <td>
432
+ <sub><code>assetBurned</code></sub>
433
+ </td>
434
+ <td><sub>PaymentOp, PathPaymentStrictReceiveOp, PathPaymentStrictSendOp, CreateClaimableBalanceOp, ManageBuyOfferOp, ManageSellOfferOp,
435
+ CreatePassiveOfferOp, WithdrawLiquidityOp, ClawbackOp,
436
+ ClaimClaimableBalanceOp</sub></td>
437
+ <td>
438
+
439
+ ```js
440
+ {
441
+ type: 'assetBurned',
442
+ source: 'GBWC…DXHN',
443
+ asset: 'USD-GBWC…DXHN-1',
444
+ amount: '2000000000'
445
+ }
446
+ ```
447
+
448
+ </td>
449
+ </tr>
450
+
451
+ <tr>
452
+ <td>
453
+ <sub><code>offerCreated</code></sub>
454
+ </td>
455
+ <td><sub>CreatePassiveOfferOp, ManageBuyOfferOp, ManageSellOfferOp</sub></td>
456
+ <td>
457
+
458
+ ```js
459
+ {
460
+ type: 'offerCreated',
461
+ source: 'GBWC…DXHN',
462
+ offer: '90427',
463
+ owner: 'GBWC…DXHN',
464
+ amount: '1000000000',
465
+ asset: [
466
+ 'USD-GBKP…YDLI-1',
467
+ 'XLM'
468
+ ],
469
+ price: 0.09215,
470
+ flags: 0
471
+ }
472
+ ```
473
+
474
+ </td>
475
+ </tr>
476
+
477
+ <tr>
478
+ <td>
479
+ <sub><code>offerUpdated</code></sub>
480
+ </td>
481
+ <td><sub>CreatePassiveOfferOp, ManageBuyOfferOp, ManageSellOfferOp, PathPaymentOp</sub></td>
482
+ <td>
483
+
484
+ ```js
485
+ {
486
+ type: 'offerUpdated',
487
+ source: 'GBWC…DXHN',
488
+ offer: '90427',
489
+ owner: 'GBWC…DXHN',
490
+ amount: '900000000',
491
+ asset: [
492
+ 'USD-GBKP…YDLI-1',
493
+ 'XLM'
494
+ ],
495
+ price: 0.09215,
496
+ flags: 0
497
+ }
498
+ ```
499
+
500
+ </td>
501
+ </tr>
502
+
503
+ <tr>
504
+ <td>
505
+ <sub><code>offerRemoved</code></sub>
506
+ </td>
507
+ <td><sub>CreatePassiveOfferOp, ManageBuyOfferOp, ManageSellOfferOp, PathPaymentOp, AllowTrustOp, SetTrustLineFlagsOp</sub></td>
508
+ <td>
509
+
510
+ ```js
511
+ {
512
+ type: 'offerRemoved',
513
+ source: 'GBWC…DXHN',
514
+ offer: '90427',
515
+ owner: 'GBWCDXHN',
516
+ asset: [
517
+ 'USD-GBKP…YDLI-1',
518
+ 'XLM'
519
+ ],
520
+ flags: 0
521
+ }
522
+ ```
523
+
524
+ </td>
525
+ </tr>
526
+
527
+ <tr>
528
+ <td>
529
+ <sub><code>liquidityPoolCreated</code></sub>
530
+ </td>
531
+ <td><sub>ChangeTrustOp</sub></td>
532
+ <td>
533
+
534
+ ```js
535
+ {
536
+ type: 'liquidityPoolCreated',
537
+ source: 'GBWC…DXHN',
538
+ pool: '52a8…76f8',
539
+ reserves: [
540
+ {
541
+ asset: 'XLM',
542
+ amount: '0'
543
+ },
544
+ {
545
+ asset: 'USD-GBKP…YDLI-1',
546
+ amount: '0'
547
+ }
548
+ ],
549
+ shares: '0',
550
+ accounts: 1
551
+ }
552
+ ```
553
+
554
+ </td>
555
+ </tr>
556
+
557
+ <tr>
558
+ <td>
559
+ <sub><code>liquidityPoolUpdated</code></sub>
560
+ </td>
561
+ <td><sub>DepositLiquidityOp, WithdrawLiquidityOp, AllowTrustOp, SetTrustLineFlagsOp</sub></td>
562
+ <td>
563
+
564
+ ```js
565
+ {
566
+ type: 'liquidityPoolUpdated',
567
+ source: 'GBWC…DXHN',
568
+ pool: '52a8…76f8',
569
+ reserves: [
570
+ {
571
+ asset: 'XLM',
572
+ amount: '10000000000'
573
+ },
574
+ {
575
+ asset: 'USD-GBKP…YDLI-1',
576
+ amount: '10000000000'
577
+ }
578
+ ],
579
+ shares: '10000000000',
580
+ accounts: 2
581
+ }
582
+ ```
583
+
584
+ </td>
585
+ </tr>
586
+
587
+ <tr>
588
+ <td>
589
+ <sub><code>liquidityPoolDeposited</code></sub>
590
+ </td>
591
+ <td><sub>DepositLiquidityOp</sub></td>
592
+ <td>
593
+
594
+ ```js
595
+ {
596
+ type: 'liquidityPoolDeposited',
597
+ source: 'GBWC…DXHN',
598
+ pool: '52a8…76f8',
599
+ assets: [
600
+ {
601
+ asset: 'XLM',
602
+ amount: '10000000000'
603
+ },
604
+ {
605
+ asset: 'USD-GBKP…YDLI-1',
606
+ amount: '10000000000'
607
+ }
608
+ ],
609
+ shares: '10000000000',
610
+ accounts: 2
611
+ }
612
+ ```
613
+
614
+ </td>
615
+ </tr>
616
+
617
+ <tr>
618
+ <td>
619
+ <sub><code>liquidityPoolWithdrew</code></sub>
620
+ </td>
621
+ <td><sub>WithdrawLiquidityOp</sub></td>
622
+ <td>
623
+
624
+ ```js
625
+ {
626
+ type: 'liquidityPoolWithdrew',
627
+ source: 'GBWC…DXHN',
628
+ pool: '52a8…76f8',
629
+ assets: [
630
+ {
631
+ asset: 'XLM',
632
+ amount: '5000000000'
633
+ },
634
+ {
635
+ asset: 'USD-GBKP…YDLI-1',
636
+ amount: '5000000000'
637
+ }
638
+ ],
639
+ shares: '5000000000',
640
+ accounts: 1
641
+ }
642
+ ```
643
+
644
+ </td>
645
+ </tr>
646
+
647
+ <tr>
648
+ <td>
649
+ <sub><code>liquidityPoolRemoved</code></sub>
650
+ </td>
651
+ <td><sub>ChangeTrustOp, AllowTrustOp, SetTrustLineFlagsOp</sub></td>
652
+ <td>
653
+
654
+ ```js
655
+ {
656
+ type: 'liquidityPoolRemoved',
657
+ source: 'GBWC…DXHN',
658
+ pool: '52a8…76f8'
659
+ }
660
+ ```
661
+
662
+ </td>
663
+ </tr>
664
+
665
+ <tr>
666
+ <td>
667
+ <sub><code>trade</code></sub>
668
+ </td>
669
+ <td><sub>CreatePassiveOfferOp, ManageBuyOfferOp, ManageSellOfferOp, PathPaymentOp</sub></td>
670
+ <td>
671
+
672
+ ```js
673
+ {
674
+ type: 'trade',
675
+ source: 'GBWC…DXHN',
676
+ offer: '14834',
677
+ amount: [
678
+ '100000000',
679
+ '200000000'
680
+ ],
681
+ asset: [
682
+ 'USD-GBKP…YDLI-1',
683
+ 'XLM'
684
+ ],
685
+ seller: 'GBKP…YDLI'
686
+ }
687
+ ```
688
+
689
+ </td>
690
+ </tr>
691
+
692
+ <tr>
693
+ <td>
694
+ <sub><code>dataEntryCreated</code></sub>
695
+ </td>
696
+ <td><sub>ManageDataOp</sub></td>
697
+ <td>
698
+
699
+ ```js
700
+ {
701
+ type: 'dataEntryCreated',
702
+ source: 'GBWC…DXHN',
703
+ name: 'test',
704
+ value: 'dGVzdA=='
705
+ }
706
+ ```
707
+
708
+ </td>
709
+ </tr>
710
+
711
+ <tr>
712
+ <td>
713
+ <sub><code>dataEntryUpdated</code></sub>
714
+ </td>
715
+ <td><sub>ManageDataOp</sub></td>
716
+ <td>
717
+
718
+ ```js
719
+ {
720
+ type: 'dataEntryUpdated',
721
+ source: 'GBWC…DXHN',
722
+ name: 'test',
723
+ value: 'dGVzVA=='
724
+ }
725
+ ```
726
+
727
+ </td>
728
+ </tr>
729
+
730
+ <tr>
731
+ <td>
732
+ <sub><code>dataEntryRemoved</code></sub>
733
+ </td>
734
+ <td><sub>ManageDataOp</sub></td>
735
+ <td>
736
+
737
+ ```js
738
+ {
739
+ type: 'dataEntryRemoved',
740
+ source: 'GBWC…DXHN',
741
+ name: 'test'
742
+ }
743
+ ```
744
+
745
+ </td>
746
+ </tr>
747
+
748
+ <tr>
749
+ <td>
750
+ <sub><code>sequenceBumped</code></sub>
751
+ </td>
752
+ <td><sub>BumpSequenceOp</sub></td>
753
+ <td>
754
+
755
+ ```js
756
+ {
757
+ type: 'sequenceBumped',
758
+ source: 'GBWC…DXHN',
759
+ sequence: '9223372036854775707'
760
+ }
761
+ ```
762
+
763
+ </td>
764
+ </tr>
765
+
766
+ <tr>
767
+ <td>
768
+ <sub><code>inflation</code></sub>
769
+ </td>
770
+ <td><sub>InflationOp</sub></td>
771
+ <td>
772
+
773
+ ```js
774
+ {
775
+ type: 'inflation',
776
+ source: 'GBWC…DXHN'
777
+ }
778
+ ```
779
+
780
+ </td>
781
+ </tr>
782
+
783
+ <tr>
784
+ <td>
785
+ <sub><code>claimableBalanceCreated</code></sub>
786
+ </td>
787
+ <td><sub>CreateClaimableBalanceOp, AllowTrustOp, SetTrustLineFlagsOp</sub></td>
788
+ <td>
789
+
790
+ ```js
791
+ {
792
+ type: 'claimableBalanceCreated',
793
+ source: 'GBWC…DXHN',
794
+ sponsor: 'GBWC…DXHN',
795
+ balance: '7aba…6f9d',
796
+ asset: 'XLM',
797
+ amount: '1000000000',
798
+ claimants: [
799
+ {
800
+ destination: 'GBKP…YDLI',
801
+ predicate: {
802
+ absBefore: '1671220240580'
803
+ }
804
+ }
805
+ ]
806
+ }
807
+ ```
808
+
809
+ </td>
810
+ </tr>
811
+
812
+ <tr>
813
+ <td>
814
+ <sub><code>claimableBalanceRemoved</code></sub>
815
+ </td>
816
+ <td><sub>ClaimClaimableBalanceOp, ClawbackClaimableBalanceOp</sub></td>
817
+ <td>
818
+
819
+ ```js
820
+ {
821
+ type: 'claimableBalanceRemoved',
822
+ source: 'GBKP…YDLI',
823
+ sponsor: 'GBWC…DXHN',
824
+ balance: '7aba…6f9d',
825
+ asset: 'XLM',
826
+ amount: '1000000000',
827
+ claimants: [
828
+ {
829
+ destination: 'GBKP…YDLI',
830
+ predicate: {
831
+ absBefore: '1671220240580'
832
+ }
833
+ }
834
+ ]
835
+ }
836
+ ```
837
+
838
+ </td>
839
+ </tr>
840
+
841
+ <tr>
842
+ <td>
843
+ <sub><code>accountSponsorshipCreated</code></sub>
844
+ </td>
845
+ <td><sub>CreateAccountOp</sub></td>
846
+ <td>
847
+
848
+ ```js
849
+ {
850
+ type: 'accountSponsorshipCreated',
851
+ source: 'GBWC…DXHN',
852
+ sponsor: 'GBWC…DXHN',
853
+ account: 'GBKP…YDLI'
854
+ }
855
+ ```
856
+
857
+ </td>
858
+ </tr>
859
+
860
+ <tr>
861
+ <td>
862
+ <sub><code>accountSponsorshipUpdated</code></sub>
863
+ </td>
864
+ <td><sub>RevokeSponsorshipOp</sub></td>
865
+ <td>
866
+
867
+ ```js
868
+ {
869
+ type: 'accountSponsorshipUpdated',
870
+ source: 'GBWC…DXHN',
871
+ sponsor: 'GDNP…CMXH',
872
+ prevSponsor: 'GBWC…DXHN',
873
+ account: 'GBKP…YDLI'
874
+ }
875
+ ```
876
+
877
+ </td>
878
+ </tr>
879
+
880
+ <tr>
881
+ <td>
882
+ <sub><code>accountSponsorshipRemoved</code></sub>
883
+ </td>
884
+ <td><sub>RevokeSponsorshipOp</sub></td>
885
+ <td>
886
+
887
+ ```js
888
+ {
889
+ type: 'accountSponsorshipRemoved',
890
+ source: 'GBWC…DXHN',
891
+ prevSponsor: 'GBWC…DXHN',
892
+ account: 'GBKP…YDLI'
893
+ }
894
+ ```
895
+
896
+ </td>
897
+ </tr>
898
+
899
+ <tr>
900
+ <td>
901
+ <sub><code>trustlineSponsorshipCreated</code></sub>
902
+ </td>
903
+ <td><sub>ChangeThrustOp</sub></td>
904
+ <td>
905
+
906
+ ```js
907
+ {
908
+ type: 'trustlineSponsorshipCreated',
909
+ source: 'GBWC…DXHN',
910
+ sponsor: 'GBWC…DXHN',
911
+ account: 'GBKP…YDLI',
912
+ asset: 'USD-GBKP…YDLI-1'
913
+ }
914
+ ```
915
+
916
+ </td>
917
+ </tr>
918
+
919
+ <tr>
920
+ <td>
921
+ <sub><code>trustlineSponsorshipUpdated</code></sub>
922
+ </td>
923
+ <td><sub>RevokeSponsorshipOp</sub></td>
924
+ <td>
925
+
926
+ ```js
927
+ {
928
+ type: 'trustlineSponsorshipUpdated',
929
+ source: 'GBWCDXHN',
930
+ sponsor: 'GDNP…CMXH',
931
+ prevSponsor: 'GBWC…DXHN',
932
+ account: 'GBKP…YDLI',
933
+ asset: 'USD-GBKP…YDLI-1'
934
+ }
935
+ ```
936
+
937
+ </td>
938
+ </tr>
939
+
940
+ <tr>
941
+ <td>
942
+ <sub><code>trustlineSponsorshipRemoved</code></sub>
943
+ </td>
944
+ <td><sub>RevokeSponsorshipOp</sub></td>
945
+ <td>
946
+
947
+ ```js
948
+ {
949
+ type: 'trustlineSponsorshipRemoved',
950
+ source: 'GBWC…DXHN',
951
+ prevSponsor: 'GBWC…DXHN',
952
+ account: 'GBKP…YDLI',
953
+ asset: 'USD-GBKP…YDLI-1'
954
+ }
955
+ ```
956
+
957
+ </td>
958
+ </tr>
959
+
960
+ <tr>
961
+ <td>
962
+ <sub><code>offerSponsorshipCreated</code></sub>
963
+ </td>
964
+ <td><sub>CreatePassiveOfferOp, ManageBuyOfferOp, ManageSellOfferOp</sub></td>
965
+ <td>
966
+
967
+ ```js
968
+ {
969
+ type: 'offerSponsorshipCreated',
970
+ source: 'GBWC…DXHN',
971
+ sponsor: 'GBWC…DXHN',
972
+ account: 'GBKP…YDLI',
973
+ offer: '4523452'
974
+ }
975
+ ```
976
+
977
+ </td>
978
+ </tr>
979
+
980
+ <tr>
981
+ <td>
982
+ <sub><code>offerSponsorshipUpdated</code></sub>
983
+ </td>
984
+ <td><sub>RevokeSponsorshipOp</sub></td>
985
+ <td>
986
+
987
+ ```js
988
+ {
989
+ type: 'offerSponsorshipUpdated',
990
+ source: 'GBWC…DXHN',
991
+ sponsor: 'GDNP…CMXH',
992
+ prevSponsor: 'GBWC…DXHN',
993
+ account: 'GBKP…YDLI',
994
+ offer: '4523452'
995
+ }
996
+ ```
997
+
998
+ </td>
999
+ </tr>
1000
+
1001
+ <tr>
1002
+ <td>
1003
+ <sub><code>offerSponsorshipRemoved</code></sub>
1004
+ </td>
1005
+ <td><sub>RevokeSponsorshipOp</sub></td>
1006
+ <td>
1007
+
1008
+ ```js
1009
+ {
1010
+ type: 'offerSponsorshipRemoved',
1011
+ source: 'GBWC…DXHN',
1012
+ prevSponsor: 'GBWC…DXHN',
1013
+ account: 'GBKP…YDLI',
1014
+ offer: '4523452'
1015
+ }
1016
+ ```
1017
+
1018
+ </td>
1019
+ </tr>
1020
+
1021
+ <tr>
1022
+ <td>
1023
+ <sub><code>dataSponsorshipCreated</code></sub>
1024
+ </td>
1025
+ <td><sub>ManageDataOp</sub></td>
1026
+ <td>
1027
+
1028
+ ```js
1029
+ {
1030
+ type: 'dataSponsorshipCreated',
1031
+ source: 'GBWC…DXHN',
1032
+ sponsor: 'GBWC…DXHN',
1033
+ account: 'GBKP…YDLI',
1034
+ name: 'name'
1035
+ }
1036
+ ```
1037
+
1038
+ </td>
1039
+ </tr>
1040
+
1041
+ <tr>
1042
+ <td>
1043
+ <sub><code>dataSponsorshipUpdated</code></sub>
1044
+ </td>
1045
+ <td><sub>RevokeSponsorshipOp</sub></td>
1046
+ <td>
1047
+
1048
+ ```js
1049
+ {
1050
+ type: 'dataSponsorshipUpdated',
1051
+ source: 'GBWC…DXHN',
1052
+ sponsor: 'GDNP…CMXH',
1053
+ prevSponsor: 'GBWC…DXHN',
1054
+ account: 'GBKP…YDLI',
1055
+ name: 'name'
1056
+ }
1057
+ ```
1058
+
1059
+ </td>
1060
+ </tr>
1061
+
1062
+ <tr>
1063
+ <td>
1064
+ <sub><code>dataSponsorshipRemoved</code></sub>
1065
+ </td>
1066
+ <td><sub>RevokeSponsorshipOp</sub></td>
1067
+ <td>
1068
+
1069
+ ```js
1070
+ {
1071
+ type: 'dataSponsorshipRemoved',
1072
+ source: 'GBWC…DXHN',
1073
+ prevSponsor: 'GBWC…DXHN',
1074
+ account: 'GBKP…YDLI',
1075
+ name: 'name'
1076
+ }
1077
+ ```
1078
+
1079
+ </td>
1080
+ </tr>
1081
+
1082
+ <tr>
1083
+ <td>
1084
+ <sub><code>claimableBalanceSponsorshipCreated</code></sub>
1085
+ </td>
1086
+ <td><sub>CreateClaimableBalanceOp</sub></td>
1087
+ <td>
1088
+
1089
+ ```js
1090
+ {
1091
+ type: 'claimableBalanceSponsorshipCreated',
1092
+ source: 'GBWC…DXHN',
1093
+ sponsor: 'GBWC…DXHN',
1094
+ balance: '7aba…6f9d'
1095
+ }
1096
+ ```
1097
+
1098
+ </td>
1099
+ </tr>
1100
+
1101
+ <tr>
1102
+ <td>
1103
+ <sub><code>claimableBalanceSponsorshipUpdated</code></sub>
1104
+ </td>
1105
+ <td><sub>RevokeSponsorshipOp</sub></td>
1106
+ <td>
1107
+
1108
+ ```js
1109
+ {
1110
+ type: 'claimableBalanceSponsorshipUpdated',
1111
+ source: 'GBWC…DXHN',
1112
+ sponsor: 'GDNP…CMXH',
1113
+ prevSponsor: 'GBWC…DXHN',
1114
+ balance: '7aba…6f9d'
1115
+ }
1116
+ ```
1117
+
1118
+ </td>
1119
+ </tr>
1120
+
1121
+ <tr>
1122
+ <td>
1123
+ <sub><code>claimableBalanceSponsorshipRemoved</code></sub>
1124
+ </td>
1125
+ <td><sub>RevokeSponsorshipOp</sub></td>
1126
+ <td>
1127
+
1128
+ ```js
1129
+ {
1130
+ type: 'claimableBalanceSponsorshipRemoved',
1131
+ source: 'GBWC…DXHN',
1132
+ prevSponsor: 'GBWC…DXHN',
1133
+ balance: '7aba…6f9d'
1134
+ }
1135
+ ```
1136
+
1137
+ </td>
1138
+ </tr>
1139
+
1140
+ <tr>
1141
+ <td>
1142
+ <sub><code>signerSponsorshipCreated</code></sub>
1143
+ </td>
1144
+ <td><sub>SetOptionsOp</sub></td>
1145
+ <td>
1146
+
1147
+ ```js
1148
+ {
1149
+ type: 'signerSponsorshipCreated',
1150
+ source: 'GBWC…DXHN',
1151
+ sponsor: 'GBWC…DXHN',
1152
+ signer: 'GALF…CR2V',
1153
+ account: 'GBKP…YDLI'
1154
+ }
1155
+ ```
1156
+
1157
+ </td>
1158
+ </tr>
1159
+
1160
+ <tr>
1161
+ <td>
1162
+ <sub><code>signerSponsorshipUpdated</code></sub>
1163
+ </td>
1164
+ <td><sub>RevokeSponsorshipOp</sub></td>
1165
+ <td>
1166
+
1167
+ ```js
1168
+ {
1169
+ type: 'signerSponsorshipUpdated',
1170
+ source: 'GBWCDXHN',
1171
+ sponsor: 'GDNP…CMXH',
1172
+ prevSponsor: 'GBWC…DXHN',
1173
+ signer: 'GALF…CR2V',
1174
+ account: 'GBKP…YDLI'
1175
+ }
1176
+ ```
1177
+
1178
+ </td>
1179
+ </tr>
1180
+
1181
+ <tr>
1182
+ <td>
1183
+ <sub><code>signerSponsorshipRemoved</code></sub>
1184
+ </td>
1185
+ <td><sub>RevokeSponsorshipOp</sub></td>
1186
+ <td>
1187
+
1188
+ ```js
1189
+ {
1190
+ type: 'signerSponsorshipRemoved',
1191
+ source: 'GBWC…DXHN',
1192
+ prevSponsor: 'GBWC…DXHN',
1193
+ signer: 'GALF…CR2V',
1194
+ account: 'GBKP…YDLI'
1195
+ }
1196
+ ```
1197
+
1198
+ </td>
1199
+ </tr>
1200
+
1201
+ <tr>
1202
+ <td>
1203
+ <sub><code>liquidityPoolSponsorshipCreated</code></sub>
1204
+ </td>
1205
+ <td><sub>ChangeThrustOp</sub></td>
1206
+ <td>
1207
+
1208
+ ```js
1209
+ {
1210
+ type: 'liquidityPoolSponsorshipCreated',
1211
+ source: 'GBWC…DXHN',
1212
+ sponsor: 'GBWC…DXHN'
1213
+ }
1214
+ ```
1215
+
1216
+ </td>
1217
+ </tr>
1218
+
1219
+ <tr>
1220
+ <td>
1221
+ <sub><code>liquidityPoolSponsorshipUpdated</code></sub>
1222
+ </td>
1223
+ <td><sub>RevokeSponsorshipOp</sub></td>
1224
+ <td>
1225
+
1226
+ ```js
1227
+ {
1228
+ type: 'liquidityPoolSponsorshipUpdated',
1229
+ source: 'GBWC…DXHN',
1230
+ sponsor: 'GDNP…CMXH',
1231
+ prevSponsor: 'GBWC…DXHN'
1232
+ }
1233
+ ```
1234
+
1235
+ </td>
1236
+ </tr>
1237
+
1238
+ <tr>
1239
+ <td>
1240
+ <sub><code>liquidityPoolSponsorshipRemoved</code></sub>
1241
+ </td>
1242
+ <td><sub>RevokeSponsorshipOp</sub></td>
1243
+ <td>
1244
+
1245
+ ```js
1246
+ {
1247
+ type: 'liquidityPoolSponsorshipRemoved',
1248
+ source: 'GBWC…DXHN',
1249
+ prevSponsor: 'GBWC…DXHN'
1250
+ }
1251
+ ```
1252
+
1253
+ </td>
1254
+ </tr>
1255
+
1256
+ <tr>
1257
+ <td>
1258
+ <sub><code>contractCodeUploaded</code></sub>
1259
+ </td>
1260
+ <td><sub>InvokeHostFunctionOp</sub></td>
1261
+ <td>
1262
+
1263
+ ```js
1264
+ {
1265
+ type: 'contractCodeUploaded',
1266
+ source: 'GBWC…DXHN',
1267
+ wasm: 'AGFz…AAAF',
1268
+ wasmHash: '5c55…e46d',
1269
+ keyHash: 'a833…f27f',
1270
+ ttl: 2282323
1271
+ }
1272
+ ```
1273
+
1274
+ </td>
1275
+ </tr>
1276
+
1277
+ <tr>
1278
+ <td>
1279
+ <sub><code>contractCodeRemoved</code></sub>
1280
+ </td>
1281
+ <td><sub>InvokeHostFunctionOp</sub></td>
1282
+ <td>
1283
+
1284
+ ```js
1285
+ {
1286
+ type: 'contractCodeRemoved',
1287
+ source: 'GBWC…DXHN',
1288
+ wasmHash: '5c55…e46d',
1289
+ keyHash: 'a833…f27f'
1290
+ }
1291
+ ```
1292
+
1293
+ </td>
1294
+ </tr>
1295
+
1296
+ <tr>
1297
+ <td>
1298
+ <sub><code>contractCreated</code></sub>
1299
+ </td>
1300
+ <td><sub>InvokeHostFunctionOp</sub></td>
1301
+ <td>
1302
+
1303
+ ```js
1304
+ {
1305
+ type: 'contractCreated',
1306
+ source: 'GBWC…DXHN',
1307
+ contract: 'CBIH…AZAD',
1308
+ kind: 'fromAsset',
1309
+ asset: 'ICGVCWUQXIHO-GBD2…FUAC-2',
1310
+ keyHash: '6922ce15707976b856b398fc345c5f926c3d6f8f83d8e0d5a32ebed3af4867a4',
1311
+ ttl: 2908049
1312
+ }
1313
+ ```
1314
+
1315
+ </td>
1316
+ </tr>
1317
+
1318
+ <tr>
1319
+ <td>
1320
+ <sub><code>contractUpdated</code></sub>
1321
+ </td>
1322
+ <td><sub>InvokeHostFunctionOp</sub></td>
1323
+ <td>
1324
+
1325
+ ```js
1326
+ {
1327
+ type: 'contractUpdated',
1328
+ source: 'GBWC…DXHN',
1329
+ contract: 'CBIH…AZAD',
1330
+ kind: 'wasm',
1331
+ wasmHash: '5c55…e46d',
1332
+ prevWasmHash: 'eb94…19ae',
1333
+ keyHash: '6922ce15707976b856b398fc345c5f926c3d6f8f83d8e0d5a32ebed3af4867a4',
1334
+ ttl: 2908049
1335
+ }
1336
+ ```
1337
+
1338
+ </td>
1339
+ </tr>
1340
+
1341
+ <tr>
1342
+ <td>
1343
+ <sub><code>contractInvoked</code></sub>
1344
+ </td>
1345
+ <td><sub>InvokeHostFunctionOp</sub></td>
1346
+ <td>
1347
+
1348
+ ```js
1349
+ {
1350
+ type: 'contractInvoked',
1351
+ source: 'GBWC…DXHN',
1352
+ contract: 'CBIH…AZAD',
1353
+ function: 'mint',
1354
+ depth: 1,,
1355
+ rawArgs: 'AAAA…Ag=='
1356
+ args: [
1357
+ 'CDFD…ITT3',
1358
+ '1000'
1359
+ ]
1360
+ }
1361
+ ```
1362
+
1363
+ </td>
1364
+ </tr>
1365
+
1366
+ <tr>
1367
+ <td>
1368
+ <sub><code>contractError</code></sub>
1369
+ </td>
1370
+ <td><sub>InvokeHostFunctionOp</sub></td>
1371
+ <td>
1372
+
1373
+ ```js
1374
+ {
1375
+ type: 'contractError',
1376
+ source: 'GB6V…UIYN',
1377
+ contract: 'CBIH…AZAD',
1378
+ code: 'scecExceededLimit',
1379
+ details: [
1380
+ 'trying to access contract data key outside of the footprint',
1381
+ 'CCML…V66N',
1382
+ [
1383
+ 'Secp256r1',
1384
+ 'CA3Z…EQTC'
1385
+ ]
1386
+ ]
1387
+ }
1388
+ ```
1389
+
1390
+ </td>
1391
+ </tr>
1392
+
1393
+ <tr>
1394
+ <td>
1395
+ <sub><code>contractDataCreated</code></sub>
1396
+ </td>
1397
+ <td><sub>InvokeHostFunctionOp</sub></td>
1398
+ <td>
1399
+
1400
+ ```js
1401
+ {
1402
+ type: 'contractDataCreated',
1403
+ source: 'GC3E…XMJY',
1404
+ owner: 'CCM3…OFJX',
1405
+ key: 'AAAA…0SQ=',
1406
+ value: 'AAAA…AA==',
1407
+ durability: 'persistent',
1408
+ keyHash: '2177…a56a',
1409
+ ttl: 2282323
1410
+ }
1411
+ ```
1412
+
1413
+ </td>
1414
+ </tr>
1415
+
1416
+ <tr>
1417
+ <td>
1418
+ <sub><code>contractDataUpdated</code></sub>
1419
+ </td>
1420
+ <td><sub>InvokeHostFunctionOp</sub></td>
1421
+ <td>
1422
+
1423
+ ```js
1424
+ {
1425
+ type: 'contractDataUpdated',
1426
+ source: 'GC3E…XMJY',
1427
+ owner: 'CCM3…OFJX',
1428
+ key: 'AAAAFA==',
1429
+ value: 'AAAA…AA==',
1430
+ prevValue: 'AAAA…AAA=',
1431
+ durability: 'persistent',
1432
+ keyHash: '2177…a56a',
1433
+ ttl: 2282323
1434
+ }
1435
+ ```
1436
+
1437
+ </td>
1438
+ </tr>
1439
+
1440
+ <tr>
1441
+ <td>
1442
+ <sub><code>contractDataRemoved</code></sub>
1443
+ </td>
1444
+ <td><sub>InvokeHostFunctionOp</sub></td>
1445
+ <td>
1446
+
1447
+ ```js
1448
+ {
1449
+ type: 'contractDataRemoved',
1450
+ source: 'GC3E…XMJY',
1451
+ owner: 'CCM3…OFJX',
1452
+ key: 'AAAAFA==',
1453
+ prevValue: 'AAAA…AAA=',
1454
+ durability: 'instance'
1455
+ }
1456
+ ```
1457
+
1458
+ </td>
1459
+ </tr>
1460
+
1461
+ <tr>
1462
+ <td>
1463
+ <sub><code>contractEvent</code></sub>
1464
+ </td>
1465
+ <td><sub>InvokeHostFunctionOp</sub></td>
1466
+ <td>
1467
+
1468
+ ```js
1469
+ {
1470
+ type: 'contractEvent',
1471
+ source: 'GC3E…XMJY',
1472
+ contract: 'CCM3OFJX',
1473
+ topics: [
1474
+ 'mint',
1475
+ 'GC3E…XMJY',
1476
+ 'CDFD…ITT3',
1477
+ 'AMDL:GC3E…XMJY'
1478
+ ],
1479
+ rawTopics: [
1480
+ 'AAAA…aW50',
1481
+ 'AAAA…gLs=',
1482
+ 'AAAA…JA==',
1483
+ 'AAAA…AAAA'
1484
+ ],
1485
+ data: '1000',
1486
+ rawData: 'AAAA…A+g='
1487
+ }
1488
+ ```
1489
+
1490
+ </td>
1491
+ </tr>
1492
+
1493
+ <tr>
1494
+ <td>
1495
+ <sub><code>contractMetrics</code></sub>
1496
+ </td>
1497
+ <td><sub>InvokeHostFunctionOp</sub></td>
1498
+ <td>
1499
+
1500
+ ```js
1501
+ {
1502
+ type: 'contractMetrics',
1503
+ source: 'GC3E…XMJY',
1504
+ contract: 'CCM3…OFJX',
1505
+ cpu_insn: 25470499,
1506
+ emit_event: 5,
1507
+ emit_event_byte: 1176,
1508
+ invoke_time_nsecs: 2013675,
1509
+ ledger_read_byte: 36624,
1510
+ ledger_write_byte: 1028,
1511
+ max_emit_event_byte: 328,
1512
+ max_rw_code_byte: 16352,
1513
+ max_rw_data_byte: 924,
1514
+ max_rw_key_byte: 160,
1515
+ mem_byte: 10204502,
1516
+ read_code_byte: 33508,
1517
+ read_data_byte: 3116,
1518
+ read_entry: 16,
1519
+ read_key_byte: 1244,
1520
+ write_code_byte: 0,
1521
+ write_data_byte: 1028,
1522
+ write_entry: 5,
1523
+ write_key_byte: 0,
1524
+ fee: {
1525
+ nonrefundable: 284210,
1526
+ refundable: 100521,
1527
+ rent: 100481
1528
+ }
1529
+ }
1530
+ ```
1531
+
1532
+ </td>
1533
+ </tr>
1534
+
1535
+ <tr>
1536
+ <td>
1537
+ <sub><code>setTtl</code></sub>
1538
+ </td>
1539
+ <td><sub>ExtendFootprintTTLOp, RestoreFootprintOp</sub></td>
1540
+ <td>
1541
+
1542
+ ```js
1543
+ {
1544
+ type: 'setTtl',
1545
+ source: 'GC3E…XMJY',
1546
+ owner: 'CDAE…EH7T',
1547
+ kind: 'contractData',
1548
+ keyHash: '7594…b429',
1549
+ ttl: 2873856
1550
+ }
1551
+ ```
1552
+
1553
+ </td>
1554
+ </tr>
1555
+
1556
+ <tr>
1557
+ <td>
1558
+ <sub><code>contractDataRestored</code></sub>
1559
+ </td>
1560
+ <td><sub>InvokeHostFunctionOp, RestoreFootprintOp</sub></td>
1561
+ <td>
1562
+
1563
+ ```js
1564
+ {
1565
+ type: 'contractDataRestored',
1566
+ source: 'GALD…S7SA',
1567
+ owner: 'CAVL…6HLP',
1568
+ key: 'AAAAFA==',
1569
+ keyHash: '42f3…1b7c',
1570
+ value: 'AAA…AAAE=',
1571
+ durability: 'instance',
1572
+ ttl: 244540
1573
+ }
1574
+ ```
1575
+
1576
+ </td>
1577
+ </tr>
1578
+
1579
+ <tr>
1580
+ <td>
1581
+ <sub><code>contractRestored</code></sub>
1582
+ </td>
1583
+ <td><sub>InvokeHostFunctionOp, RestoreFootprintOp</sub></td>
1584
+ <td>
1585
+
1586
+ ```js
1587
+ {
1588
+ type: 'contractRestored',
1589
+ source: 'GALD…S7SA',
1590
+ contract: 'CAVL…6HLP',
1591
+ kind: 'wasm',
1592
+ wasmHash: 'df88…8608',
1593
+ keyHash: '42f3…1b7c'
1594
+ }
1595
+ ```
1596
+
1597
+ </td>
1598
+ </tr>
1599
+
1600
+ <tr>
1601
+ <td>
1602
+ <sub><code>contractCodeRestored</code></sub>
1603
+ </td>
1604
+ <td><sub>InvokeHostFunctionOp, RestoreFootprintOp</sub></td>
1605
+ <td>
1606
+
1607
+ ```js
1608
+ {
1609
+ type: 'contractCodeRestored',
1610
+ source: 'GALD…S7SA',
1611
+ wasmHash: 'df88…8608',
1612
+ keyHash: '638b…a5b6',
1613
+ ttl: 244540
1614
+ }
1615
+ ```
1616
+
1617
+ </td>
1618
+ </tr>
1619
+
1542
1620
  </table>