tx · 5XXkQeEJCLq1Wy6EqTHQSA7WwaDRJAMdVfmmt9HX1Jqb
3MuRoQQxefJAmoDypakzTJdh4XTJXFNE6Go: -0.00100000 Waves
2024.11.10 03:00 [3364607] smart account 3MuRoQQxefJAmoDypakzTJdh4XTJXFNE6Go > SELF 0.00000000 Waves
{
"type": 13,
"id": "5XXkQeEJCLq1Wy6EqTHQSA7WwaDRJAMdVfmmt9HX1Jqb",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1731196854314,
"version": 2,
"chainId": 84,
"sender": "3MuRoQQxefJAmoDypakzTJdh4XTJXFNE6Go",
"senderPublicKey": "3ZjYebUn2esmhqY7mZh92g1QMfjDLuDsAuLyuZfrPfsT",
"proofs": [
"4tZxPRFWoLbX7QGWdLiorjVrpCqUtZm7EdAxKTY3haWUtvgvUCmDmpyKGUH9AsbxHABx94biEfaYv3wgCeDyDjoS"
],
"script": "base64:CAIKCAISBAoCCAgSAAEBCmdldEFuaW1hbHMABAckbWF0Y2gwCQCfCAECB2FuaW1hbHMDCQABAgUHJG1hdGNoMAIDSW50BAFhBQckbWF0Y2gwCQBkAgUBYQABAAECAWkBDGNyZWF0ZUFuaW1hbAIHYWRkcmVzcwR0eXBlAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwQHYW5pbWFscwkBCmdldEFuaW1hbHMACQCUCgIJAMwIAgkAwggFAgZBbmltYWwCBkFuaW1hbAABAAAHCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgdhbmltYWxzBQdhbmltYWxzBQNuaWwFBHVuaXQJAAIBAiJPbmx5IHRoZSBmYXJtZXIgY2FuIGNyZWF0ZSBhbmltYWxzAWkBBHRlc3QACQCUCgIJAMwIAgkAwggFAglVYmVyVG9rZW4CIVRoZSB1bHRpbWF0ZSB0b2tlbi4gT25lIGFuZCBvbmx5LgABAAAHBQNuaWwFBHVuaXQA2FV+eg==",
"height": 3364607,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CLEHkovpmyyS9NeJHNNFCDFZNjqCbyh9dXnhbA2ficBD
Next: 6oUeCSsZmiot7SYHbDeBifupBHKbagkqXQMJpVCYdhaM
Diff:
Old | New | | Differences |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | 13 | | func createAnimal (address,type) = if ((i.caller == this)) |
---|
14 | | - | then $Tuple2([Issue("RegularToken", "This is an ordinary token", 10000, 2, true)], unit) |
---|
| 14 | + | then { |
---|
| 15 | + | let animals = getAnimals() |
---|
| 16 | + | $Tuple2([Issue("Animal", "Animal", 1, 0, false), IntegerEntry("animals", animals)], unit) |
---|
| 17 | + | } |
---|
15 | 18 | | else throw("Only the farmer can create animals") |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | |
---|
| 22 | + | @Callable(i) |
---|
| 23 | + | func test () = $Tuple2([Issue("UberToken", "The ultimate token. One and only.", 1, 0, false)], unit) |
---|
16 | 24 | | |
---|
17 | 25 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 8 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getAnimals () = match getInteger("animals") { |
---|
5 | 5 | | case a: Int => |
---|
6 | 6 | | (a + 1) |
---|
7 | 7 | | case _ => |
---|
8 | 8 | | 1 |
---|
9 | 9 | | } |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | 13 | | func createAnimal (address,type) = if ((i.caller == this)) |
---|
14 | | - | then $Tuple2([Issue("RegularToken", "This is an ordinary token", 10000, 2, true)], unit) |
---|
| 14 | + | then { |
---|
| 15 | + | let animals = getAnimals() |
---|
| 16 | + | $Tuple2([Issue("Animal", "Animal", 1, 0, false), IntegerEntry("animals", animals)], unit) |
---|
| 17 | + | } |
---|
15 | 18 | | else throw("Only the farmer can create animals") |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | |
---|
| 22 | + | @Callable(i) |
---|
| 23 | + | func test () = $Tuple2([Issue("UberToken", "The ultimate token. One and only.", 1, 0, false)], unit) |
---|
16 | 24 | | |
---|
17 | 25 | | |
---|