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 |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(f) |
---|
20 | | - | func stake () = [IntegerEntry("click", (c() + 1))] |
---|
| 20 | + | func deposit () = if (if ((f.callerPublicKey != a)) |
---|
| 21 | + | then true |
---|
| 22 | + | else (f.callerPublicKey != b)) |
---|
| 23 | + | then throw("Sorry, Private Farm. Access prohibited") |
---|
| 24 | + | else throw("Welcome man!") |
---|
21 | 25 | | |
---|
22 | 26 | | |
---|
23 | 27 | | @Verifier(g) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = base58'HjSiTEXxQMmyjXArjHL61YKF1TbUmz6b1Wx7rR3NfJcj' |
---|
7 | 7 | | |
---|
8 | 8 | | func c () = { |
---|
9 | 9 | | let d = getInteger("click") |
---|
10 | 10 | | if ($isInstanceOf(d, "Int")) |
---|
11 | 11 | | then { |
---|
12 | 12 | | let e = d |
---|
13 | 13 | | e |
---|
14 | 14 | | } |
---|
15 | 15 | | else 0 |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(f) |
---|
20 | | - | func stake () = [IntegerEntry("click", (c() + 1))] |
---|
| 20 | + | func deposit () = if (if ((f.callerPublicKey != a)) |
---|
| 21 | + | then true |
---|
| 22 | + | else (f.callerPublicKey != b)) |
---|
| 23 | + | then throw("Sorry, Private Farm. Access prohibited") |
---|
| 24 | + | else throw("Welcome man!") |
---|
21 | 25 | | |
---|
22 | 26 | | |
---|
23 | 27 | | @Verifier(g) |
---|
24 | 28 | | func h () = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
25 | 29 | | |
---|