@stellar-expert/tx-meta-effects-parser 6.2.0 → 6.3.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 +6 -1
- package/package.json +2 -2
- package/src/effects-analyzer.js +7 -0
package/README.MD
CHANGED
|
@@ -1506,7 +1506,12 @@ ClaimClaimableBalanceOp</sub></td>
|
|
|
1506
1506
|
write_code_byte: 0,
|
|
1507
1507
|
write_data_byte: 1028,
|
|
1508
1508
|
write_entry: 5,
|
|
1509
|
-
write_key_byte: 0
|
|
1509
|
+
write_key_byte: 0,
|
|
1510
|
+
fee: {
|
|
1511
|
+
nonrefundable: 284210,
|
|
1512
|
+
refundable: 100521,
|
|
1513
|
+
rent: 100481
|
|
1514
|
+
}
|
|
1510
1515
|
}
|
|
1511
1516
|
```
|
|
1512
1517
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stellar-expert/tx-meta-effects-parser",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"description": "Low-level effects parser for Stellar transaction results and meta XDR",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"author": "team@stellar.expert",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@stellar/stellar-base": "^
|
|
12
|
+
"@stellar/stellar-base": "^13.0.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@babel/core": "^7.22.9",
|
package/src/effects-analyzer.js
CHANGED
|
@@ -402,6 +402,7 @@ class EffectsAnalyzer {
|
|
|
402
402
|
break
|
|
403
403
|
}
|
|
404
404
|
case 'createContract':
|
|
405
|
+
case 'createContractV2':
|
|
405
406
|
const preimage = value.contractIdPreimage()
|
|
406
407
|
const executable = value.executable()
|
|
407
408
|
const executableType = executable.switch().name
|
|
@@ -434,6 +435,12 @@ class EffectsAnalyzer {
|
|
|
434
435
|
default:
|
|
435
436
|
throw new TxMetaEffectParserError('Unknown contract type: ' + executableType)
|
|
436
437
|
}
|
|
438
|
+
if (func.arm() === 'createContractV2') {
|
|
439
|
+
const args = value.constructorArgs() //array
|
|
440
|
+
if (args.length > 0) {
|
|
441
|
+
effect.constructorArgs = args.map(arg => arg.toXDR('base64'))
|
|
442
|
+
}
|
|
443
|
+
}
|
|
437
444
|
this.addEffect(effect, 0)
|
|
438
445
|
break
|
|
439
446
|
default:
|