tx · CE1PMLssYx7dijVs3mUvcFtXi9qX7goRC1yV9PA4b5CP
3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H: -0.00500000 Waves
2022.06.20 01:22 [2103839] smart account 3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H > SELF 0.00000000 Waves
{
"type": 13,
"id": "CE1PMLssYx7dijVs3mUvcFtXi9qX7goRC1yV9PA4b5CP",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1655677309761,
"version": 2,
"chainId": 84,
"sender": "3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H",
"senderPublicKey": "B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM",
"proofs": [
"5BPu9M4sruJYRgtHUduGNDgSr8LqC8mPBpSbY8KNbxkN1tZXkK9webjVMV4t2KEkw5CtuAKnRHxKnRQiNhS3RUSF"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAFb3duZXIBAAAAIJTmkol6s9vaBGMLBOt8XjBSaX68Np6p3BZOtV/SRco2AAAAAAZ3b3JrZXIBAAAAIPiadeNjKqgJa46xsQJijzl+xe23ylZneulbVnVv7+98AQAAAAhnZXRDbGljawAAAAAEAAAAByRtYXRjaDAJAAQfAAAAAQIAAAAFY2xpY2sDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAUAAAABdAAAAAAAAAAAAAAAAAEAAAABaQEAAAAFc3Rha2UAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAVjbGljawkAAGQAAAACCQEAAAAIZ2V0Q2xpY2sAAAAAAAAAAAAAAAABBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRa1Xyw=",
"height": 2103839,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 22z3vbjo1NqoDN4sNGeWP2ZZK4CdtEgDQC9wKEUg5N51
Next: 6bLZ7Jz45owqa2pmzXcE7Y8kibHqnVs8DTrK4NKe3pEZ
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a_this = wavesBalance(this).available |
---|
| 4 | + | let owner = base58'B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM' |
---|
| 5 | + | |
---|
| 6 | + | let worker = base58'HjSiTEXxQMmyjXArjHL61YKF1TbUmz6b1Wx7rR3NfJcj' |
---|
| 7 | + | |
---|
| 8 | + | func getClick () = match getInteger("click") { |
---|
| 9 | + | case t: Int => |
---|
| 10 | + | t |
---|
| 11 | + | case _ => |
---|
| 12 | + | 0 |
---|
| 13 | + | } |
---|
| 14 | + | |
---|
5 | 15 | | |
---|
6 | 16 | | @Callable(i) |
---|
7 | | - | func call () = [IntegerEntry("a_this", a_this)] |
---|
| 17 | + | func stake () = [IntegerEntry("click", (getClick() + 1))] |
---|
8 | 18 | | |
---|
9 | 19 | | |
---|
10 | 20 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a_this = wavesBalance(this).available |
---|
| 4 | + | let owner = base58'B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM' |
---|
| 5 | + | |
---|
| 6 | + | let worker = base58'HjSiTEXxQMmyjXArjHL61YKF1TbUmz6b1Wx7rR3NfJcj' |
---|
| 7 | + | |
---|
| 8 | + | func getClick () = match getInteger("click") { |
---|
| 9 | + | case t: Int => |
---|
| 10 | + | t |
---|
| 11 | + | case _ => |
---|
| 12 | + | 0 |
---|
| 13 | + | } |
---|
| 14 | + | |
---|
5 | 15 | | |
---|
6 | 16 | | @Callable(i) |
---|
7 | | - | func call () = [IntegerEntry("a_this", a_this)] |
---|
| 17 | + | func stake () = [IntegerEntry("click", (getClick() + 1))] |
---|
8 | 18 | | |
---|
9 | 19 | | |
---|
10 | 20 | | @Verifier(tx) |
---|
11 | 21 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
12 | 22 | | |
---|