tx · 5saeCCRwAiRM4yYHfxQgPR43SPKcPQmYDArTJ5g95P1D
3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H: -0.00500000 Waves
2022.06.21 01:49 [2105335] smart account 3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H > SELF 0.00000000 Waves
{
"type": 13,
"id": "5saeCCRwAiRM4yYHfxQgPR43SPKcPQmYDArTJ5g95P1D",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1655765359262,
"version": 2,
"chainId": 84,
"sender": "3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H",
"senderPublicKey": "B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM",
"proofs": [
"4w2ehBNUywwnhRcUybRWzb3uWdECb5LYKuFGUpXfHZeaEDkwR4PWsiAQ9fWwXC1ETdh7gzMMMWCH3AES7Kvr68mW"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAFb3duZXIBAAAAIJTmkol6s9vaBGMLBOt8XjBSaX68Np6p3BZOtV/SRco2AAAAAAZ3b3JrZXIBAAAAIPiadeNjKqgJa46xsQJijzl+xe23ylZneulbVnVv7+98AQAAAAVjaGVjawAAAAEAAAADcGJrAwMJAAAAAAAAAgUAAAADcGJrBQAAAAVvd25lcgYJAAAAAAAAAgUAAAADcGJrBQAAAAZ3b3JrZXIJAAACAAAAAQIAAAAHV2VsY29tZQkAAAIAAAABAgAAACZTb3JyeSwgUHJpdmF0ZSBGYXJtLiBBY2Nlc3MgcHJvaGliaXRlZAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAJAQAAAAVjaGVjawAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5g0AJpQ==",
"height": 2105335,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: A29SeePHmBhnVB3AwpKBoiEDZysJcj7XmTHfJvD4NsEo
Next: 935e46ctyL9v3Wi5v3wwg5ur6EhPSMPbEGjXTPpRuZRD
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | let worker = base58'HjSiTEXxQMmyjXArjHL61YKF1TbUmz6b1Wx7rR3NfJcj' |
---|
7 | 7 | | |
---|
8 | | - | func getClick () = match getInteger("click") { |
---|
9 | | - | case t: Int => |
---|
10 | | - | t |
---|
11 | | - | case _ => |
---|
12 | | - | 0 |
---|
13 | | - | } |
---|
| 8 | + | func check (pbk) = if (if ((pbk == owner)) |
---|
| 9 | + | then true |
---|
| 10 | + | else (pbk == worker)) |
---|
| 11 | + | then throw("Welcome") |
---|
| 12 | + | else throw("Sorry, Private Farm. Access prohibited") |
---|
14 | 13 | | |
---|
15 | 14 | | |
---|
16 | 15 | | @Callable(i) |
---|
17 | | - | func deposit () = if (if ((i.callerPublicKey == owner)) |
---|
18 | | - | then true |
---|
19 | | - | else (i.callerPublicKey == worker)) |
---|
20 | | - | then throw("Welcome") |
---|
21 | | - | else throw("Sorry, Private Farm. Access prohibited") |
---|
| 16 | + | func deposit () = check(i.callerPublicKey) |
---|
22 | 17 | | |
---|
23 | 18 | | |
---|
24 | 19 | | @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 | | - | func getClick () = match getInteger("click") { |
---|
9 | | - | case t: Int => |
---|
10 | | - | t |
---|
11 | | - | case _ => |
---|
12 | | - | 0 |
---|
13 | | - | } |
---|
| 8 | + | func check (pbk) = if (if ((pbk == owner)) |
---|
| 9 | + | then true |
---|
| 10 | + | else (pbk == worker)) |
---|
| 11 | + | then throw("Welcome") |
---|
| 12 | + | else throw("Sorry, Private Farm. Access prohibited") |
---|
14 | 13 | | |
---|
15 | 14 | | |
---|
16 | 15 | | @Callable(i) |
---|
17 | | - | func deposit () = if (if ((i.callerPublicKey == owner)) |
---|
18 | | - | then true |
---|
19 | | - | else (i.callerPublicKey == worker)) |
---|
20 | | - | then throw("Welcome") |
---|
21 | | - | else throw("Sorry, Private Farm. Access prohibited") |
---|
| 16 | + | func deposit () = check(i.callerPublicKey) |
---|
22 | 17 | | |
---|
23 | 18 | | |
---|
24 | 19 | | @Verifier(tx) |
---|
25 | 20 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
26 | 21 | | |
---|