tx · 6bLZ7Jz45owqa2pmzXcE7Y8kibHqnVs8DTrK4NKe3pEZ
3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H: -0.00500000 Waves
2022.06.21 00:49 [2105270] smart account 3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H > SELF 0.00000000 Waves
{
"type": 13,
"id": "6bLZ7Jz45owqa2pmzXcE7Y8kibHqnVs8DTrK4NKe3pEZ",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1655761797498,
"version": 2,
"chainId": 84,
"sender": "3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H",
"senderPublicKey": "B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM",
"proofs": [
"KWnaGCbTxvfH3xUrSi1HvEjGhGbiutpS6cme5Cmprp9friR7CXcfzBvMPYzBQvqcRq23pQ4U8NVb8GiXY8amuYW"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAFb3duZXIBAAAAIJTmkol6s9vaBGMLBOt8XjBSaX68Np6p3BZOtV/SRco2AAAAAAZ3b3JrZXIBAAAAIPiadeNjKqgJa46xsQJijzl+xe23ylZneulbVnVv7+98AQAAAAhnZXRDbGljawAAAAAEAAAAByRtYXRjaDAJAAQfAAAAAQIAAAAFY2xpY2sDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAUAAAABdAAAAAAAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAADAwkBAAAAAiE9AAAAAggFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAVvd25lcgYJAQAAAAIhPQAAAAIIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAAGd29ya2VyCQAAAgAAAAECAAAAJlNvcnJ5LCBQcml2YXRlIEZhcm0uIEFjY2VzcyBwcm9oaWJpdGVkCQAAAgAAAAECAAAADFdlbGNvbWUgbWFuIQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5iJpjnw==",
"height": 2105270,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CE1PMLssYx7dijVs3mUvcFtXi9qX7goRC1yV9PA4b5CP
Next: V63qzhA71V4r5FMh5bgmpsZgeYXAZ1UhYdY5y8WKK42
Diff:
Old | New | | Differences |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Callable(i) |
---|
17 | | - | func stake () = [IntegerEntry("click", (getClick() + 1))] |
---|
| 17 | + | func deposit () = if (if ((i.callerPublicKey != owner)) |
---|
| 18 | + | then true |
---|
| 19 | + | else (i.callerPublicKey != worker)) |
---|
| 20 | + | then throw("Sorry, Private Farm. Access prohibited") |
---|
| 21 | + | else throw("Welcome man!") |
---|
18 | 22 | | |
---|
19 | 23 | | |
---|
20 | 24 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let owner = base58'B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM' |
---|
5 | 5 | | |
---|
6 | 6 | | let worker = base58'HjSiTEXxQMmyjXArjHL61YKF1TbUmz6b1Wx7rR3NfJcj' |
---|
7 | 7 | | |
---|
8 | 8 | | func getClick () = match getInteger("click") { |
---|
9 | 9 | | case t: Int => |
---|
10 | 10 | | t |
---|
11 | 11 | | case _ => |
---|
12 | 12 | | 0 |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Callable(i) |
---|
17 | | - | func stake () = [IntegerEntry("click", (getClick() + 1))] |
---|
| 17 | + | func deposit () = if (if ((i.callerPublicKey != owner)) |
---|
| 18 | + | then true |
---|
| 19 | + | else (i.callerPublicKey != worker)) |
---|
| 20 | + | then throw("Sorry, Private Farm. Access prohibited") |
---|
| 21 | + | else throw("Welcome man!") |
---|
18 | 22 | | |
---|
19 | 23 | | |
---|
20 | 24 | | @Verifier(tx) |
---|
21 | 25 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
22 | 26 | | |
---|