tx · 935e46ctyL9v3Wi5v3wwg5ur6EhPSMPbEGjXTPpRuZRD
3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H: -0.00500000 Waves
2022.06.22 18:15 [2107766] smart account 3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H > SELF 0.00000000 Waves
{
"type": 13,
"id": "935e46ctyL9v3Wi5v3wwg5ur6EhPSMPbEGjXTPpRuZRD",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1655910921315,
"version": 2,
"chainId": 84,
"sender": "3MsKriufAGn3VF6dwkEP3TFutJzZoRwMe5H",
"senderPublicKey": "B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM",
"proofs": [
"5CHbHsbC6ZM8bfRoXBC879vG4UGCenkJttPyGGd3D2DEtrdnZ9YVfenUf7YrEohodkp4bwFBPn8ezbGBefKsWF3o"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAQEAAAAFY2hlY2sAAAABAAAAA3BiawQAAAAGcGJrX3N0CQACWAAAAAEFAAAAA3BiawQAAAAGcG9pbnRzCQEAAAARQGV4dHJOYXRpdmUoMTA1OCkAAAABAgAAAAZwb2ludHMJAQAAAAhjb250YWlucwAAAAIFAAAABnBvaW50cwUAAAAGcGJrX3N0AAAAAQAAAAFpAQAAAAdkZXBvc2l0AAAAAAMJAQAAAAVjaGVjawAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAAAdXZWxjb21lCQAAAgAAAAECAAAAIFByaW5hdGUgRmFybS4gQWNjZXNzIHByb2hpYml0ZWQhAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXn3P14+",
"height": 2107766,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5saeCCRwAiRM4yYHfxQgPR43SPKcPQmYDArTJ5g95P1D
Next: F5G2fqTUL8MXpmGjSTutEQTKDxd9V35MyucDcHJmds95
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = base58'B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM' |
---|
5 | | - | |
---|
6 | | - | let b = base58'HjSiTEXxQMmyjXArjHL61YKF1TbUmz6b1Wx7rR3NfJcj' |
---|
7 | | - | |
---|
8 | | - | func c (d) = if (if ((d == a)) |
---|
9 | | - | then true |
---|
10 | | - | else (d == b)) |
---|
11 | | - | then throw("Welcome") |
---|
12 | | - | else throw("Sorry, Private Farm. Access prohibited") |
---|
| 4 | + | func a (b) = { |
---|
| 5 | + | let c = toBase58String(b) |
---|
| 6 | + | let d = getStringValue("points") |
---|
| 7 | + | contains(d, c) |
---|
| 8 | + | } |
---|
13 | 9 | | |
---|
14 | 10 | | |
---|
15 | 11 | | @Callable(e) |
---|
16 | | - | func deposit () = c(e.callerPublicKey) |
---|
| 12 | + | func deposit () = if (a(e.callerPublicKey)) |
---|
| 13 | + | then throw("Welcome") |
---|
| 14 | + | else throw("Prinate Farm. Access prohibited!") |
---|
17 | 15 | | |
---|
18 | 16 | | |
---|
19 | 17 | | @Verifier(f) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = base58'B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM' |
---|
5 | | - | |
---|
6 | | - | let b = base58'HjSiTEXxQMmyjXArjHL61YKF1TbUmz6b1Wx7rR3NfJcj' |
---|
7 | | - | |
---|
8 | | - | func c (d) = if (if ((d == a)) |
---|
9 | | - | then true |
---|
10 | | - | else (d == b)) |
---|
11 | | - | then throw("Welcome") |
---|
12 | | - | else throw("Sorry, Private Farm. Access prohibited") |
---|
| 4 | + | func a (b) = { |
---|
| 5 | + | let c = toBase58String(b) |
---|
| 6 | + | let d = getStringValue("points") |
---|
| 7 | + | contains(d, c) |
---|
| 8 | + | } |
---|
13 | 9 | | |
---|
14 | 10 | | |
---|
15 | 11 | | @Callable(e) |
---|
16 | | - | func deposit () = c(e.callerPublicKey) |
---|
| 12 | + | func deposit () = if (a(e.callerPublicKey)) |
---|
| 13 | + | then throw("Welcome") |
---|
| 14 | + | else throw("Prinate Farm. Access prohibited!") |
---|
17 | 15 | | |
---|
18 | 16 | | |
---|
19 | 17 | | @Verifier(f) |
---|
20 | 18 | | func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey) |
---|
21 | 19 | | |
---|