@stellar-expert/tx-meta-effects-parser 6.3.0 → 6.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-expert/tx-meta-effects-parser",
3
- "version": "6.3.0",
3
+ "version": "6.3.2",
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": "^13.0.0"
12
+ "@stellar/stellar-base": "^13.0.1"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@babel/core": "^7.22.9",
@@ -203,6 +203,8 @@ class EventsAnalyzer {
203
203
  return //throw new Error('Non-standard event')
204
204
  const from = xdrParseScVal(topics[1])
205
205
  const amount = processEventBodyValue(body.data())
206
+ if (!amount)
207
+ return
206
208
  if (!this.matchInvocationEffect(e =>
207
209
  (e.function === 'burn' && matchArrays([from, amount], e.args)) ||
208
210
  (e.function === 'burn_from' && matchArrays([undefined, from, amount], e.args))
@@ -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:
package/tmp ADDED
@@ -0,0 +1,100 @@
1
+ [3702678:0x59d4d50] 7542656 ms: Scavenge 4044.3 (4124.3) -> 4040.4 (4125.5) MB, 5.20 / 0.01 ms (average mu = 0.985, current mu = 0.979) allocation failure;
2
+ [3702678:0x59d4d50] 7542686 ms: Scavenge 4045.5 (4125.6) -> 4043.2 (4144.0) MB, 7.64 / 0.00 ms (average mu = 0.985, current mu = 0.979) allocation failure;
3
+
4
+
5
+ <--- JS stacktrace --->
6
+
7
+ FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
8
+ 1: 0xc98550 node::Abort() [node /srv/node-orchestrator-pubnet/index.js]
9
+ 2: 0xb700a7 [node /srv/node-orchestrator-pubnet/index.js]
10
+ 3: 0xebae50 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node /srv/node-orchestrator-pubnet/index.js]
11
+ 4: 0xebb137 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node /srv/node-orchestrator-pubnet/index.js]
12
+ 5: 0x10cc7a5 [node /srv/node-orchestrator-pubnet/index.js]
13
+ 6: 0x10e4628 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node /srv/node-orchestrator-pubnet/index.js]
14
+ 7: 0x10ba741 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node /srv/node-orchestrator-pubnet/index.js]
15
+ 8: 0x10bb8d5 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node /srv/node-orchestrator-pubnet/index.js]
16
+ 9: 0x1097f16 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node /srv/node-orchestrator-pubnet/index.js]
17
+ 10: 0x108955c v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawArray(int, v8::internal::AllocationType) [node /srv/node-orchestrator-pubnet/index.js]
18
+ 11: 0x10896c4 v8::internal::FactoryBase<v8::internal::Factory>::NewFixedArrayWithFiller(v8::internal::Handle<v8::internal::Map>, int, v8::internal::Handle<v8::internal::Oddball>, v8::internal::AllocationType) [node /srv/node-orchestrator-pubnet/index.js]
19
+ 12: 0x13a312d v8::internal::Handle<v8::internal::EphemeronHashTable> v8::internal::HashTable<v8::internal::EphemeronHashTable, v8::internal::ObjectHashTableShape>::New<v8::internal::Isolate>(v8::internal::Isolate*, int, v8::internal::AllocationType, v8::internal::MinimumCapacity) [node /srv/node-orchestrator-pubnet/index.js]
20
+ 13: 0x13a31d7 v8::internal::HashTable<v8::internal::EphemeronHashTable, v8::internal::ObjectHashTableShape>::Shrink(v8::internal::Isolate*, v8::internal::Handle<v8::internal::EphemeronHashTable>, int) [node /srv/node-orchestrator-pubnet/index.js]
21
+ 14: 0x13a4958 v8::internal::JSWeakCollection::Delete(v8::internal::Handle<v8::internal::JSWeakCollection>, v8::internal::Handle<v8::internal::Object>, int) [node /srv/node-orchestrator-pubnet/index.js]
22
+ 15: 0x14e9365 v8::internal::Runtime_WeakCollectionDelete(int, unsigned long*, v8::internal::Isolate*) [node /srv/node-orchestrator-pubnet/index.js]
23
+ 16: 0x7f3411e99ef6
24
+
25
+ <--- Last few GCs --->
26
+
27
+ [3704687:0x5d5dd50] 7523706 ms: Mark-Compact 4046.0 (4137.6) -> 4035.1 (4139.2) MB, 1027.88 / 0.01 ms (average mu = 0.961, current mu = 0.796) allocation failure; scavenge might not succeed
28
+ [3704687:0x5d5dd50] 7529446 ms: Mark-Compact 4051.7 (4140.1) -> 4040.8 (4144.7) MB, 1756.51 / 0.03 ms (average mu = 0.913, current mu = 0.694) allocation failure; scavenge might not succeed
29
+
30
+
31
+ <--- JS stacktrace --->
32
+
33
+ FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
34
+ 1: 0xc98550 node::Abort() [node /srv/node-orchestrator-pubnet/index.js]
35
+ 2: 0xb700a7 [node /srv/node-orchestrator-pubnet/index.js]
36
+ 3: 0xebae50 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node /srv/node-orchestrator-pubnet/index.js]
37
+ 4: 0xebb137 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node /srv/node-orchestrator-pubnet/index.js]
38
+ 5: 0x10cc7a5 [node /srv/node-orchestrator-pubnet/index.js]
39
+ 6: 0x10e4628 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node /srv/node-orchestrator-pubnet/index.js]
40
+ 7: 0x10ba741 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node /srv/node-orchestrator-pubnet/index.js]
41
+ 8: 0x10bb8d5 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node /srv/node-orchestrator-pubnet/index.js]
42
+ 9: 0x1097f16 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node /srv/node-orchestrator-pubnet/index.js]
43
+ 10: 0x1089a14 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [node /srv/node-orchestrator-pubnet/index.js]
44
+ 11: 0x108c296 v8::internal::FactoryBase<v8::internal::Factory>::NewRawOneByteString(int, v8::internal::AllocationType) [node /srv/node-orchestrator-pubnet/index.js]
45
+ 12: 0x13dc5f7 v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handle<v8::internal::ConsString>, v8::internal::AllocationType) [node /srv/node-orchestrator-pubnet/index.js]
46
+ 13: 0x13d487c v8::internal::StringTable::LookupString(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>) [node /srv/node-orchestrator-pubnet/index.js]
47
+ 14: 0x14fd7ab v8::internal::Runtime::SetObjectProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::StoreOrigin, v8::Maybe<v8::internal::ShouldThrow>) [node /srv/node-orchestrator-pubnet/index.js]
48
+ 15: 0x14fee3b v8::internal::Runtime_SetKeyedProperty(int, unsigned long*, v8::internal::Isolate*) [node /srv/node-orchestrator-pubnet/index.js]
49
+ 16: 0x7f5fb2699ef6
50
+
51
+ <--- Last few GCs --->
52
+
53
+ [3706823:0x5a11d50] 7608708 ms: Mark-Compact 4052.9 (4140.9) -> 4038.6 (4142.9) MB, 999.38 / 0.04 ms (average mu = 0.972, current mu = 0.933) allocation failure; scavenge might not succeed
54
+ [3706823:0x5a11d50] 7614274 ms: Mark-Compact 4055.3 (4143.8) -> 4044.4 (4148.6) MB, 1558.22 / 0.02 ms (average mu = 0.936, current mu = 0.720) allocation failure; scavenge might not succeed
55
+
56
+
57
+ <--- JS stacktrace --->
58
+
59
+ FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
60
+ 1: 0xc98550 node::Abort() [node /srv/node-orchestrator-pubnet/index.js]
61
+ 2: 0xb700a7 [node /srv/node-orchestrator-pubnet/index.js]
62
+ 3: 0xebae50 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node /srv/node-orchestrator-pubnet/index.js]
63
+ 4: 0xebb137 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node /srv/node-orchestrator-pubnet/index.js]
64
+ 5: 0x10cc7a5 [node /srv/node-orchestrator-pubnet/index.js]
65
+ 6: 0x10e4628 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node /srv/node-orchestrator-pubnet/index.js]
66
+ 7: 0x10ba741 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node /srv/node-orchestrator-pubnet/index.js]
67
+ 8: 0x10bb8d5 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node /srv/node-orchestrator-pubnet/index.js]
68
+ 9: 0x1098e46 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node /srv/node-orchestrator-pubnet/index.js]
69
+ 10: 0x14f3c76 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node /srv/node-orchestrator-pubnet/index.js]
70
+ 11: 0x7f4ed9e99ef6
71
+ TypeError: fetch failed
72
+ at Object.fetch (node:internal/deps/undici/undici:11576:11)
73
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
74
+ at async fetchGateway (./node-orchestrator-pubnet/server/routes/node-settings-routes.js:173:17)
75
+ at async validateGateway (./node-orchestrator-pubnet/server/routes/node-settings-routes.js:157:27)
76
+ at async ./node-orchestrator-pubnet/server/routes/node-settings-routes.js:142:26 {
77
+ cause: Error: connect ECONNREFUSED 172.***.***.224:8080
78
+ at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) {
79
+ errno: -111,
80
+ code: 'ECONNREFUSED',
81
+ syscall: 'connect',
82
+ address: '172.***.***.224',
83
+ port: 8080
84
+ }
85
+ }
86
+ TypeError: fetch failed
87
+ at Object.fetch (node:internal/deps/undici/undici:11576:11)
88
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
89
+ at async fetchGateway (./node-orchestrator-pubnet/server/routes/node-settings-routes.js:173:17)
90
+ at async validateGateway (./node-orchestrator-pubnet/server/routes/node-settings-routes.js:157:27)
91
+ at async ./node-orchestrator-pubnet/server/routes/node-settings-routes.js:142:26 {
92
+ cause: Error: connect ECONNREFUSED 172.***.***.198:8080
93
+ at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) {
94
+ errno: -111,
95
+ code: 'ECONNREFUSED',
96
+ syscall: 'connect',
97
+ address: '172.***.***.198',
98
+ port: 8080
99
+ }
100
+ }