tx · 5Fk2HJQcscx1bYZEzRAC7Y5SvddvYFdMGdVo1SAu89iB

3Mt6BKRxiTxsuERKqPJcWLqRHMShxEVLiLV:  -0.00100000 Waves

2024.11.14 14:57 [3371064] smart account 3Mt6BKRxiTxsuERKqPJcWLqRHMShxEVLiLV > SELF 0.00000000 Waves

{ "type": 13, "id": "5Fk2HJQcscx1bYZEzRAC7Y5SvddvYFdMGdVo1SAu89iB", "fee": 100000, "feeAssetId": null, "timestamp": 1731585507381, "version": 2, "chainId": 84, "sender": "3Mt6BKRxiTxsuERKqPJcWLqRHMShxEVLiLV", "senderPublicKey": "7chktv9CZs9HVNX42nMxRFqMMZby2Y15tgkCSyaTSNoM", "proofs": [ "NSSrzYuATLKmKMesnwhDuu6F8XmVZRdAnLtnHmug3q2M9NquLvYv7ibNxqsDsLBrEWecSSmoxpS9ao1Aq5yS2gd" ], "script": "base64:CAIICAISBAoCCAgBAQhnZXRDb3VudAAEByRtYXRjaDAJAJ8IAQIHYW5pbWFscwMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAJAGQCBQFhAAEAAQEBaQEMY3JlYXRlQW5pbWFsAgdhZGRyZXNzBHR5cGUDCQAAAggFAWkGY2FsbGVyBQR0aGlzBAdhbmltYWxzCQEIZ2V0Q291bnQACQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQICB2FuaW1hbHMFB2FuaW1hbHMJAMwIAgkBC1N0cmluZ0VudHJ5AgkApAMBBQdhbmltYWxzBQdhZGRyZXNzCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkApAMBBQdhbmltYWxzAgVfdHlwZQUEdHlwZQUDbmlsBQR1bml0CQACAQIiT25seSB0aGUgZmFybWVyIGNhbiBjcmVhdGUgYW5pbWFscwDlrim8", "height": 3371064, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 8 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a () = {
5+ let b = getInteger("animals")
6+ if ($isInstanceOf(b, "Int"))
7+ then {
8+ let c = b
9+ (c + 1)
10+ }
11+ else 1
12+ }
13+
14+
15+@Callable(d)
16+func createAnimal (e,f) = if ((d.caller == this))
17+ then {
18+ let g = a()
19+ $Tuple2([IntegerEntry("animals", g), StringEntry(toString(g), e), StringEntry((toString(g) + "_type"), f)], unit)
20+ }
21+ else throw("Only the farmer can create animals")
22+
23+

github/deemru/w8io/026f985 
9.79 ms