tx · FBdZixKpzznAAT5A35hFiSWV1AZYMFKLdnrCeb8FmSja
3N428oqzMfFCLgCn8mH4fHqepsPqCWK33tU: -0.01400000 Waves
2021.12.28 05:48 [1853511] smart account 3N428oqzMfFCLgCn8mH4fHqepsPqCWK33tU > SELF 0.00000000 Waves
{
"type": 13,
"id": "FBdZixKpzznAAT5A35hFiSWV1AZYMFKLdnrCeb8FmSja",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1640659729138,
"version": 2,
"chainId": 84,
"sender": "3N428oqzMfFCLgCn8mH4fHqepsPqCWK33tU",
"senderPublicKey": "7dMYvyGEDJiErLViTHV8Bkg46pS7ZYZFZLnfXPrRg2QJ",
"proofs": [
"5AbSL1brV2kAxUNse9HpR7CoarFowzCdm1m5Tm7okHqZ8u17k4LQJ37ueq2dzxGtckkYYfpPQKvkj5twQbnCcM2w"
],
"script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAAAAAAAgAAAAFpAQAAAAh0dXJuT24xNAAAAAAEAAAACXdhaXRCbG9jawQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAZ3YWl0MTQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAHbmV3V2FpdAkAAGQAAAACCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAAAAAAAAAAAZAMJAABmAAAAAgUAAAAJd2FpdEJsb2NrCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAALV2FpdCBibG9jayAJAAGkAAAAAQUAAAAJd2FpdEJsb2NrAgAAAAsgdG8gdHVybiBPbgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAGd2FpdDE0BQAAAAduZXdXYWl0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAVsZWQxNAAAAAAAAAAAAQUAAAADbmlsAAAAAWkBAAAACXR1cm5PZmYxNAAAAAAEAAAACXdhaXRCbG9jawQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAZ3YWl0MTQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAHbmV3V2FpdAkAAGQAAAACCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAAAAAAAAAAAZAMJAABmAAAAAgUAAAAJd2FpdEJsb2NrCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAALV2FpdCBibG9jayAJAAGkAAAAAQUAAAAJd2FpdEJsb2NrAgAAAAsgdG8gdHVybiBPbgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAGd2FpdDE0BQAAAAduZXdXYWl0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAVsZWQxNAAAAAAAAAAAAAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmLEnkj",
"height": 1853511,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: ujwXPaje2sLDqU1KunEC6xffCtugYzJJzgwMTkhmjqb
Next: CFRDE6pFtkW2mBhSw1K7f9tA7zWueiWse4hXG2axQ97T
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func turnOn14 () = [IntegerEntry("led14", 1)] |
---|
| 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 | + | } |
---|
8 | 19 | | |
---|
9 | 20 | | |
---|
10 | 21 | | |
---|
11 | 22 | | @Callable(i) |
---|
12 | | - | func turnOff14 () = [IntegerEntry("led14", 0)] |
---|
| 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 | + | } |
---|
13 | 35 | | |
---|
14 | 36 | | |
---|
15 | 37 | | @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 () = [IntegerEntry("led14", 1)] |
---|
| 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 | + | } |
---|
8 | 19 | | |
---|
9 | 20 | | |
---|
10 | 21 | | |
---|
11 | 22 | | @Callable(i) |
---|
12 | | - | func turnOff14 () = [IntegerEntry("led14", 0)] |
---|
| 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 | + | } |
---|
13 | 35 | | |
---|
14 | 36 | | |
---|
15 | 37 | | @Verifier(tx) |
---|
16 | 38 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
17 | 39 | | |
---|