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

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
@@ -26,6 +26,7 @@ const res = parseTxOperationsMeta({
26
26
  processSystemEvents: false, // whether to analyze system Soroban diagnostic events
27
27
  mapSac: false, // whether to map Classic assets to Soroban contracts automatically
28
28
  processFailedOpEffects: false, // whether to analyze effects in failed transactions
29
+ processMetrics: false, // whether to emit contractMetrics events (if metadata contains metrics)
29
30
  protocol: 21 // different versions of Stelalr protocol may yield uninform effects
30
31
  })
31
32
 
@@ -357,7 +358,8 @@ ClawbackClaimableBalance, InflationOp</sub></td>
357
358
  asset: 'USD-GBKP…YDLI-1',
358
359
  kind: 'asset',
359
360
  limit: '2000000000',
360
- flags: 5
361
+ flags: 5,
362
+ prevFlags: 5
361
363
  }
362
364
  ```
363
365
 
@@ -533,7 +535,7 @@ ClaimClaimableBalanceOp</sub></td>
533
535
  {
534
536
  type: 'liquidityPoolCreated',
535
537
  source: 'GBWC…DXHN',
536
- pool: '52a876f8',
538
+ pool: 'LA7FHJLT',
537
539
  reserves: [
538
540
  {
539
541
  asset: 'XLM',
@@ -563,7 +565,7 @@ ClaimClaimableBalanceOp</sub></td>
563
565
  {
564
566
  type: 'liquidityPoolUpdated',
565
567
  source: 'GBWC…DXHN',
566
- pool: '52a876f8',
568
+ pool: 'LA7FHJLT',
567
569
  reserves: [
568
570
  {
569
571
  asset: 'XLM',
@@ -593,7 +595,7 @@ ClaimClaimableBalanceOp</sub></td>
593
595
  {
594
596
  type: 'liquidityPoolDeposited',
595
597
  source: 'GBWC…DXHN',
596
- pool: '52a876f8',
598
+ pool: 'LA7FHJLT',
597
599
  assets: [
598
600
  {
599
601
  asset: 'XLM',
@@ -604,7 +606,8 @@ ClaimClaimableBalanceOp</sub></td>
604
606
  amount: '10000000000'
605
607
  }
606
608
  ],
607
- shares: '10000000000'
609
+ shares: '10000000000',
610
+ accounts: 2
608
611
  }
609
612
  ```
610
613
 
@@ -622,7 +625,7 @@ ClaimClaimableBalanceOp</sub></td>
622
625
  {
623
626
  type: 'liquidityPoolWithdrew',
624
627
  source: 'GBWC…DXHN',
625
- pool: '52a876f8',
628
+ pool: 'LA7FHJLT',
626
629
  assets: [
627
630
  {
628
631
  asset: 'XLM',
@@ -633,7 +636,8 @@ ClaimClaimableBalanceOp</sub></td>
633
636
  amount: '5000000000'
634
637
  }
635
638
  ],
636
- shares: '5000000000'
639
+ shares: '5000000000',
640
+ accounts: 1
637
641
  }
638
642
  ```
639
643
 
@@ -651,7 +655,7 @@ ClaimClaimableBalanceOp</sub></td>
651
655
  {
652
656
  type: 'liquidityPoolRemoved',
653
657
  source: 'GBWC…DXHN',
654
- pool: '52a876f8'
658
+ pool: 'LA7FHJLT'
655
659
  }
656
660
  ```
657
661
 
@@ -788,7 +792,7 @@ ClaimClaimableBalanceOp</sub></td>
788
792
  type: 'claimableBalanceCreated',
789
793
  source: 'GBWC…DXHN',
790
794
  sponsor: 'GBWC…DXHN',
791
- balance: '7aba6f9d',
795
+ balance: 'BDKDF75Y',
792
796
  asset: 'XLM',
793
797
  amount: '1000000000',
794
798
  claimants: [
@@ -817,7 +821,7 @@ ClaimClaimableBalanceOp</sub></td>
817
821
  type: 'claimableBalanceRemoved',
818
822
  source: 'GBKP…YDLI',
819
823
  sponsor: 'GBWC…DXHN',
820
- balance: '7aba6f9d',
824
+ balance: 'BDKDF75Y',
821
825
  asset: 'XLM',
822
826
  amount: '1000000000',
823
827
  claimants: [
@@ -1194,61 +1198,6 @@ ClaimClaimableBalanceOp</sub></td>
1194
1198
  </td>
1195
1199
  </tr>
1196
1200
 
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
1201
  <tr>
1253
1202
  <td>
1254
1203
  <sub><code>contractCodeUploaded</code></sub>
@@ -1262,7 +1211,8 @@ ClaimClaimableBalanceOp</sub></td>
1262
1211
  source: 'GBWC…DXHN',
1263
1212
  wasm: 'AGFz…AAAF',
1264
1213
  wasmHash: '5c55…e46d',
1265
- keyHash: 'a833…f27f'
1214
+ keyHash: 'a833…f27f',
1215
+ ttl: 2282323
1266
1216
  }
1267
1217
  ```
1268
1218
 
@@ -1301,7 +1251,9 @@ ClaimClaimableBalanceOp</sub></td>
1301
1251
  source: 'GBWC…DXHN',
1302
1252
  contract: 'CBIH…AZAD',
1303
1253
  kind: 'fromAsset',
1304
- asset: 'ICGVCWUQXIHO-GBD2…FUAC-2'
1254
+ asset: 'ICGVCWUQXIHO-GBD2…FUAC-2',
1255
+ keyHash: '6922ce15707976b856b398fc345c5f926c3d6f8f83d8e0d5a32ebed3af4867a4',
1256
+ ttl: 2908049
1305
1257
  }
1306
1258
  ```
1307
1259
 
@@ -1322,8 +1274,9 @@ ClaimClaimableBalanceOp</sub></td>
1322
1274
  contract: 'CBIH…AZAD',
1323
1275
  kind: 'wasm',
1324
1276
  wasmHash: '5c55…e46d',
1325
- prevWasmHash: 'eb94…19ae'
1326
-
1277
+ prevWasmHash: 'eb94…19ae',
1278
+ keyHash: '6922ce15707976b856b398fc345c5f926c3d6f8f83d8e0d5a32ebed3af4867a4',
1279
+ ttl: 2908049
1327
1280
  }
1328
1281
  ```
1329
1282
 
@@ -1343,8 +1296,8 @@ ClaimClaimableBalanceOp</sub></td>
1343
1296
  source: 'GBWC…DXHN',
1344
1297
  contract: 'CBIH…AZAD',
1345
1298
  function: 'mint',
1346
- rawArgs: 'AAAA…Ag==',
1347
- depth: 1,
1299
+ depth: 1,,
1300
+ rawArgs: 'AAAA…Ag=='
1348
1301
  args: [
1349
1302
  'CDFD…ITT3',
1350
1303
  '1000'
@@ -1367,10 +1320,14 @@ ClaimClaimableBalanceOp</sub></td>
1367
1320
  type: 'contractError',
1368
1321
  source: 'GB6V…UIYN',
1369
1322
  contract: 'CBIH…AZAD',
1370
- code: 13,
1323
+ code: 'scecExceededLimit',
1371
1324
  details: [
1372
- 'trustline entry is missing for account',
1373
- 'GB6VUIYN'
1325
+ 'trying to access contract data key outside of the footprint',
1326
+ 'CCMLV66N',
1327
+ [
1328
+ 'Secp256r1',
1329
+ 'CA3Z…EQTC'
1330
+ ]
1374
1331
  ]
1375
1332
  }
1376
1333
  ```
@@ -1393,7 +1350,8 @@ ClaimClaimableBalanceOp</sub></td>
1393
1350
  key: 'AAAA…0SQ=',
1394
1351
  value: 'AAAA…AA==',
1395
1352
  durability: 'persistent',
1396
- keyHash: '2177…a56a'
1353
+ keyHash: '2177…a56a',
1354
+ ttl: 2282323
1397
1355
  }
1398
1356
  ```
1399
1357
 
@@ -1416,7 +1374,8 @@ ClaimClaimableBalanceOp</sub></td>
1416
1374
  value: 'AAAA…AA==',
1417
1375
  prevValue: 'AAAA…AAA=',
1418
1376
  durability: 'persistent',
1419
- keyHash: '2177…a56a'
1377
+ keyHash: '2177…a56a',
1378
+ ttl: 2282323
1420
1379
  }
1421
1380
  ```
1422
1381
 
@@ -1539,4 +1498,68 @@ ClaimClaimableBalanceOp</sub></td>
1539
1498
  </td>
1540
1499
  </tr>
1541
1500
 
1501
+ <tr>
1502
+ <td>
1503
+ <sub><code>contractDataRestored</code></sub>
1504
+ </td>
1505
+ <td><sub>InvokeHostFunctionOp, RestoreFootprintOp</sub></td>
1506
+ <td>
1507
+
1508
+ ```js
1509
+ {
1510
+ type: 'contractDataRestored',
1511
+ source: 'GALD…S7SA',
1512
+ owner: 'CAVL…6HLP',
1513
+ key: 'AAAAFA==',
1514
+ keyHash: '42f3…1b7c',
1515
+ value: 'AAA…AAAE=',
1516
+ durability: 'instance',
1517
+ ttl: 244540
1518
+ }
1519
+ ```
1520
+
1521
+ </td>
1522
+ </tr>
1523
+
1524
+ <tr>
1525
+ <td>
1526
+ <sub><code>contractRestored</code></sub>
1527
+ </td>
1528
+ <td><sub>InvokeHostFunctionOp, RestoreFootprintOp</sub></td>
1529
+ <td>
1530
+
1531
+ ```js
1532
+ {
1533
+ type: 'contractRestored',
1534
+ source: 'GALD…S7SA',
1535
+ contract: 'CAVL…6HLP',
1536
+ kind: 'wasm',
1537
+ wasmHash: 'df88…8608',
1538
+ keyHash: '42f3…1b7c'
1539
+ }
1540
+ ```
1541
+
1542
+ </td>
1543
+ </tr>
1544
+
1545
+ <tr>
1546
+ <td>
1547
+ <sub><code>contractCodeRestored</code></sub>
1548
+ </td>
1549
+ <td><sub>InvokeHostFunctionOp, RestoreFootprintOp</sub></td>
1550
+ <td>
1551
+
1552
+ ```js
1553
+ {
1554
+ type: 'contractCodeRestored',
1555
+ source: 'GALD…S7SA',
1556
+ wasmHash: 'df88…8608',
1557
+ keyHash: '638b…a5b6',
1558
+ ttl: 244540
1559
+ }
1560
+ ```
1561
+
1562
+ </td>
1563
+ </tr>
1564
+
1542
1565
  </table>
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
- {
2
- "name": "@stellar-expert/tx-meta-effects-parser",
3
- "version": "7.0.0-rc.9",
4
- "description": "Low-level effects parser for Stellar transaction results and meta XDR",
5
- "main": "src/index.js",
6
- "scripts": {
7
- "test": "jest"
8
- },
9
- "author": "team@stellar.expert",
10
- "license": "MIT",
11
- "peerDependencies": {
12
- "@stellar/stellar-base": "^14.0.0"
13
- },
14
- "devDependencies": {
15
- "@babel/core": "^7.22.9",
16
- "@babel/preset-env": "^7.22.9",
17
- "@stellar-expert/eslint-config-js": "^1.1.0",
18
- "babel-jest": "^29.6.1",
19
- "jest": "^29.6.1"
20
- }
21
- }
1
+ {
2
+ "name": "@stellar-expert/tx-meta-effects-parser",
3
+ "version": "8.0.0",
4
+ "description": "Low-level effects parser for Stellar transaction results and meta XDR",
5
+ "main": "src/index.js",
6
+ "scripts": {
7
+ "test": "jest"
8
+ },
9
+ "author": "team@stellar.expert",
10
+ "license": "MIT",
11
+ "peerDependencies": {
12
+ "@stellar/stellar-base": "^14.0.0"
13
+ },
14
+ "devDependencies": {
15
+ "@babel/core": "^7.22.9",
16
+ "@babel/preset-env": "^7.22.9",
17
+ "@stellar-expert/eslint-config-js": "^1.1.0",
18
+ "babel-jest": "^29.6.1",
19
+ "jest": "^29.6.1"
20
+ }
21
+ }