@stellar-expert/tx-meta-effects-parser 7.0.0-rc.9 → 7.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
 
@@ -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
 
@@ -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
 
@@ -1262,7 +1266,8 @@ ClaimClaimableBalanceOp</sub></td>
1262
1266
  source: 'GBWC…DXHN',
1263
1267
  wasm: 'AGFz…AAAF',
1264
1268
  wasmHash: '5c55…e46d',
1265
- keyHash: 'a833…f27f'
1269
+ keyHash: 'a833…f27f',
1270
+ ttl: 2282323
1266
1271
  }
1267
1272
  ```
1268
1273
 
@@ -1301,7 +1306,9 @@ ClaimClaimableBalanceOp</sub></td>
1301
1306
  source: 'GBWC…DXHN',
1302
1307
  contract: 'CBIH…AZAD',
1303
1308
  kind: 'fromAsset',
1304
- asset: 'ICGVCWUQXIHO-GBD2…FUAC-2'
1309
+ asset: 'ICGVCWUQXIHO-GBD2…FUAC-2',
1310
+ keyHash: '6922ce15707976b856b398fc345c5f926c3d6f8f83d8e0d5a32ebed3af4867a4',
1311
+ ttl: 2908049
1305
1312
  }
1306
1313
  ```
1307
1314
 
@@ -1322,8 +1329,9 @@ ClaimClaimableBalanceOp</sub></td>
1322
1329
  contract: 'CBIH…AZAD',
1323
1330
  kind: 'wasm',
1324
1331
  wasmHash: '5c55…e46d',
1325
- prevWasmHash: 'eb94…19ae'
1326
-
1332
+ prevWasmHash: 'eb94…19ae',
1333
+ keyHash: '6922ce15707976b856b398fc345c5f926c3d6f8f83d8e0d5a32ebed3af4867a4',
1334
+ ttl: 2908049
1327
1335
  }
1328
1336
  ```
1329
1337
 
@@ -1343,8 +1351,8 @@ ClaimClaimableBalanceOp</sub></td>
1343
1351
  source: 'GBWC…DXHN',
1344
1352
  contract: 'CBIH…AZAD',
1345
1353
  function: 'mint',
1346
- rawArgs: 'AAAA…Ag==',
1347
- depth: 1,
1354
+ depth: 1,,
1355
+ rawArgs: 'AAAA…Ag=='
1348
1356
  args: [
1349
1357
  'CDFD…ITT3',
1350
1358
  '1000'
@@ -1367,10 +1375,14 @@ ClaimClaimableBalanceOp</sub></td>
1367
1375
  type: 'contractError',
1368
1376
  source: 'GB6V…UIYN',
1369
1377
  contract: 'CBIH…AZAD',
1370
- code: 13,
1378
+ code: 'scecExceededLimit',
1371
1379
  details: [
1372
- 'trustline entry is missing for account',
1373
- 'GB6VUIYN'
1380
+ 'trying to access contract data key outside of the footprint',
1381
+ 'CCMLV66N',
1382
+ [
1383
+ 'Secp256r1',
1384
+ 'CA3Z…EQTC'
1385
+ ]
1374
1386
  ]
1375
1387
  }
1376
1388
  ```
@@ -1393,7 +1405,8 @@ ClaimClaimableBalanceOp</sub></td>
1393
1405
  key: 'AAAA…0SQ=',
1394
1406
  value: 'AAAA…AA==',
1395
1407
  durability: 'persistent',
1396
- keyHash: '2177…a56a'
1408
+ keyHash: '2177…a56a',
1409
+ ttl: 2282323
1397
1410
  }
1398
1411
  ```
1399
1412
 
@@ -1416,7 +1429,8 @@ ClaimClaimableBalanceOp</sub></td>
1416
1429
  value: 'AAAA…AA==',
1417
1430
  prevValue: 'AAAA…AAA=',
1418
1431
  durability: 'persistent',
1419
- keyHash: '2177…a56a'
1432
+ keyHash: '2177…a56a',
1433
+ ttl: 2282323
1420
1434
  }
1421
1435
  ```
1422
1436
 
@@ -1539,4 +1553,68 @@ ClaimClaimableBalanceOp</sub></td>
1539
1553
  </td>
1540
1554
  </tr>
1541
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>
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": "7.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
+ }