tx · HCwPxQsk8QogdcRJEq4FbfY7cZBVPWun9qwGsqDPxLSB
3MuRoQQxefJAmoDypakzTJdh4XTJXFNE6Go: -0.00100000 Waves
2024.11.12 15:05 [3368196] smart account 3MuRoQQxefJAmoDypakzTJdh4XTJXFNE6Go > SELF 0.00000000 Waves
{
"type": 13,
"id": "HCwPxQsk8QogdcRJEq4FbfY7cZBVPWun9qwGsqDPxLSB",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1731413140963,
"version": 2,
"chainId": 84,
"sender": "3MuRoQQxefJAmoDypakzTJdh4XTJXFNE6Go",
"senderPublicKey": "3ZjYebUn2esmhqY7mZh92g1QMfjDLuDsAuLyuZfrPfsT",
"proofs": [
"34gBdxDJQJgp81A2mzBTgYENee5CQ19NqqC42trdpAWxHVpJv6QiygycCUMbNAmqToLdwHocqJSN2aSAMCHhkpGD"
],
"script": "base64:CAIICAISBAoCCAgBAQpnZXRBbmltYWxzAAQHJG1hdGNoMAkAnwgBAgdhbmltYWxzAwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAkAZAIFAWEAAQABAQFpAQxjcmVhdGVBbmltYWwCB2FkZHJlc3MEdHlwZQMJAAACCAUBaQZjYWxsZXIFBHRoaXMEB2FuaW1hbHMJAQpnZXRBbmltYWxzAAkAlAoCCQDMCAIJAMIIBQIGQW5pbWFsCQCsAgIJAKwCAgUHYWRkcmVzcwIBIAUEdHlwZQABAAAHCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgdhbmltYWxzBQdhbmltYWxzBQNuaWwFBHVuaXQJAAIBAiJPbmx5IHRoZSBmYXJtZXIgY2FuIGNyZWF0ZSBhbmltYWxzAGIvxVE=",
"height": 3368196,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 69PUCGDJvfd4EHHvnhEPTFoDVM4nxkt8Wi14MuuFUWh3
Next: Ck1DYDmyj7sHU3GVQ8sBnUa62crtYWBf1wJQtCnftsV6
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 8 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a () = { |
---|
5 | 5 | | let b = getInteger("animals") |
---|
6 | 6 | | if ($isInstanceOf(b, "Int")) |
---|
7 | 7 | | then { |
---|
8 | 8 | | let c = b |
---|
9 | 9 | | (c + 1) |
---|
10 | 10 | | } |
---|
11 | 11 | | else 1 |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(d) |
---|
16 | 16 | | func createAnimal (e,f) = if ((d.caller == this)) |
---|
17 | 17 | | then { |
---|
18 | 18 | | let g = a() |
---|
19 | 19 | | $Tuple2([Issue("Animal", ((e + " ") + f), 1, 0, false), IntegerEntry("animals", g)], unit) |
---|
20 | 20 | | } |
---|
21 | 21 | | else throw("Only the farmer can create animals") |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|