tx · ujwXPaje2sLDqU1KunEC6xffCtugYzJJzgwMTkhmjqb
3N428oqzMfFCLgCn8mH4fHqepsPqCWK33tU: -0.01400000 Waves
2021.12.28 05:25 [1853486] smart account 3N428oqzMfFCLgCn8mH4fHqepsPqCWK33tU > SELF 0.00000000 Waves
{
"type": 13,
"id": "ujwXPaje2sLDqU1KunEC6xffCtugYzJJzgwMTkhmjqb",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1640658300093,
"version": 2,
"chainId": 84,
"sender": "3N428oqzMfFCLgCn8mH4fHqepsPqCWK33tU",
"senderPublicKey": "7dMYvyGEDJiErLViTHV8Bkg46pS7ZYZFZLnfXPrRg2QJ",
"proofs": [
"2EUTup3q783RbJ4fDZxpdLhW9fzwzrDAQfQQcQfUzZKJCGMRodC2U9NwZeE2b9fGn7KZuNBLxdCr3Jzf3aqWUuqP"
],
"script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAAAAAAAgAAAAFpAQAAAAh0dXJuT24xNAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABWxlZDE0AAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAAJdHVybk9mZjE0AAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFbGVkMTQAAAAAAAAAAAAFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5cxHlzA==",
"height": 1853486,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 84K27py4z4oVpynVUoygEpiLNdyEbAnMqNz1XkpkRswB
Next: FBdZixKpzznAAT5A35hFiSWV1AZYMFKLdnrCeb8FmSja
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func turnOn14 () = { |
---|
8 | | - | let waitBlock = match getInteger(this, "wait14") { |
---|
9 | | - | case a: Int => |
---|
10 | | - | a |
---|
11 | | - | case _ => |
---|
12 | | - | 0 |
---|
13 | | - | } |
---|
14 | | - | let newWait = (lastBlock.height + 100) |
---|
15 | | - | if ((waitBlock > lastBlock.height)) |
---|
16 | | - | then throw((("Wait block " + toString(waitBlock)) + " to turn On")) |
---|
17 | | - | else [IntegerEntry("wait14", newWait), IntegerEntry("led14", 1)] |
---|
18 | | - | } |
---|
| 7 | + | func turnOn14 () = [IntegerEntry("led14", 1)] |
---|
19 | 8 | | |
---|
20 | 9 | | |
---|
21 | 10 | | |
---|
22 | 11 | | @Callable(i) |
---|
23 | | - | func turnOff14 () = { |
---|
24 | | - | let waitBlock = match getInteger(this, "wait14") { |
---|
25 | | - | case a: Int => |
---|
26 | | - | a |
---|
27 | | - | case _ => |
---|
28 | | - | 0 |
---|
29 | | - | } |
---|
30 | | - | let newWait = (lastBlock.height + 100) |
---|
31 | | - | if ((waitBlock > lastBlock.height)) |
---|
32 | | - | then throw((("Wait block " + toString(waitBlock)) + " to turn On")) |
---|
33 | | - | else [IntegerEntry("wait14", newWait), IntegerEntry("led14", 0)] |
---|
34 | | - | } |
---|
| 12 | + | func turnOff14 () = [IntegerEntry("led14", 0)] |
---|
35 | 13 | | |
---|
36 | 14 | | |
---|
37 | 15 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func turnOn14 () = { |
---|
8 | | - | let waitBlock = match getInteger(this, "wait14") { |
---|
9 | | - | case a: Int => |
---|
10 | | - | a |
---|
11 | | - | case _ => |
---|
12 | | - | 0 |
---|
13 | | - | } |
---|
14 | | - | let newWait = (lastBlock.height + 100) |
---|
15 | | - | if ((waitBlock > lastBlock.height)) |
---|
16 | | - | then throw((("Wait block " + toString(waitBlock)) + " to turn On")) |
---|
17 | | - | else [IntegerEntry("wait14", newWait), IntegerEntry("led14", 1)] |
---|
18 | | - | } |
---|
| 7 | + | func turnOn14 () = [IntegerEntry("led14", 1)] |
---|
19 | 8 | | |
---|
20 | 9 | | |
---|
21 | 10 | | |
---|
22 | 11 | | @Callable(i) |
---|
23 | | - | func turnOff14 () = { |
---|
24 | | - | let waitBlock = match getInteger(this, "wait14") { |
---|
25 | | - | case a: Int => |
---|
26 | | - | a |
---|
27 | | - | case _ => |
---|
28 | | - | 0 |
---|
29 | | - | } |
---|
30 | | - | let newWait = (lastBlock.height + 100) |
---|
31 | | - | if ((waitBlock > lastBlock.height)) |
---|
32 | | - | then throw((("Wait block " + toString(waitBlock)) + " to turn On")) |
---|
33 | | - | else [IntegerEntry("wait14", newWait), IntegerEntry("led14", 0)] |
---|
34 | | - | } |
---|
| 12 | + | func turnOff14 () = [IntegerEntry("led14", 0)] |
---|
35 | 13 | | |
---|
36 | 14 | | |
---|
37 | 15 | | @Verifier(tx) |
---|
38 | 16 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
39 | 17 | | |
---|