@stellar-expert/tx-meta-effects-parser 7.0.0 → 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,1620 +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
- 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: 'GBKP…YDLI',
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: 'GBWC…DXHN',
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: 'GBWC…DXHN',
269
- signer: 'GBKP…YDLI',
270
- weight: 1,
271
- signers: [
272
- {key: 'GBWC…DXHN', 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: 'GBWC…DXHN',
292
- signer: 'GBKP…YDLI',
293
- weight: 2,
294
- signers: [
295
- {key: 'GBWC…DXHN', 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: 'GBWC…DXHN',
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: 'GBWC…DXHN',
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: 'GBWC…DXHN',
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: 'GBWC…DXHN',
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: 'GBWC…DXHN',
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: 'CCM3…OFJX',
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
-
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: 'GBKP…YDLI',
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: 'GBWC…DXHN',
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: 'GBWC…DXHN',
269
+ signer: 'GBKP…YDLI',
270
+ weight: 1,
271
+ signers: [
272
+ {key: 'GBWC…DXHN', 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: 'GBWC…DXHN',
292
+ signer: 'GBKP…YDLI',
293
+ weight: 2,
294
+ signers: [
295
+ {key: 'GBWC…DXHN', 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: 'GBWC…DXHN',
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: 'GBWC…DXHN',
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: 'GBWC…DXHN',
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: 'GBWC…DXHN',
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: 'GBWC…DXHN',
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: 'CCM3…OFJX',
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
+
1620
1620
  </table>