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 getCount () = match getInteger("animals") {
5+ case a: Int =>
6+ (a + 1)
7+ case _ =>
8+ 1
9+}
10+
11+
12+@Callable(i)
13+func createAnimal (address,type) = if ((i.caller == this))
14+ then {
15+ let animals = getCount()
16+ $Tuple2([IntegerEntry("animals", animals), StringEntry(toString(animals), address), StringEntry((toString(animals) + "_type"), type)], unit)
17+ }
18+ else throw("Only the farmer can create animals")
19+
20+

github/deemru/w8io/026f985 
13.69 ms