tx · GX4cYy9AWnWc1eXRZFxidofD2npwTWNZdidUJdwsek1h

3MuRoQQxefJAmoDypakzTJdh4XTJXFNE6Go:  -0.00100000 Waves

2024.11.10 02:07 [3364553] smart account 3MuRoQQxefJAmoDypakzTJdh4XTJXFNE6Go > SELF 0.00000000 Waves

{ "type": 13, "id": "GX4cYy9AWnWc1eXRZFxidofD2npwTWNZdidUJdwsek1h", "fee": 100000, "feeAssetId": null, "timestamp": 1731193677101, "version": 2, "chainId": 84, "sender": "3MuRoQQxefJAmoDypakzTJdh4XTJXFNE6Go", "senderPublicKey": "3ZjYebUn2esmhqY7mZh92g1QMfjDLuDsAuLyuZfrPfsT", "proofs": [ "aXXvJKD18GR3ffeLCuuULvi6uRhPAXikQ7Cn5VWx6uVUhfM8i77asgixebZ7HD5Jrg8UMCwJunvHc9T9eiJq3ZF" ], "script": "base64:CAIICAISBAoCCAgBAQpnZXRBbmltYWxzAAQHJG1hdGNoMAkAnwgBAgdhbmltYWxzAwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAkAZAIFAWEAAQABAQFpAQxjcmVhdGVBbmltYWwCB2FkZHJlc3MEdHlwZQMJAAACCAUBaQZjYWxsZXIFBHRoaXMEB2FuaW1hbHMJAQpnZXRBbmltYWxzAAkAlAoCCQDMCAIJAMIIBQUHYWRkcmVzcwUEdHlwZQABAAAHCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgdhbmltYWxzBQdhbmltYWxzBQNuaWwFBHVuaXQJAAIBAiJPbmx5IHRoZSBmYXJtZXIgY2FuIGNyZWF0ZSBhbmltYWxzAPZVm6A=", "height": 3364553, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: AEMzGGsFvJFVCq1122337KofzrYs3jXB62oqVBzkrYQF Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 8 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func getAnimals () = 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 = getAnimals()
16+ $Tuple2([Issue(address, type, 1, 0, false), IntegerEntry("animals", animals)], unit)
17+ }
18+ else throw("Only the farmer can create animals")
19+
20+

github/deemru/w8io/026f985 
16.36 ms