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:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let owner = base58'B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM'
5-
6-let worker = base58'HjSiTEXxQMmyjXArjHL61YKF1TbUmz6b1Wx7rR3NfJcj'
7-
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")
4+func check (pbk) = {
5+ let pbk_st = toBase58String(pbk)
6+ let points = getStringValue("points")
7+ contains(points, pbk_st)
8+ }
139
1410
1511 @Callable(i)
16-func deposit () = check(i.callerPublicKey)
12+func deposit () = if (check(i.callerPublicKey))
13+ then throw("Welcome")
14+ else throw("Prinate Farm. Access prohibited!")
1715
1816
1917 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let owner = base58'B2FG1C26kvgpvEBqcXBVBvhZKnshzPbFgwyzQKTrpKEM'
5-
6-let worker = base58'HjSiTEXxQMmyjXArjHL61YKF1TbUmz6b1Wx7rR3NfJcj'
7-
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")
4+func check (pbk) = {
5+ let pbk_st = toBase58String(pbk)
6+ let points = getStringValue("points")
7+ contains(points, pbk_st)
8+ }
139
1410
1511 @Callable(i)
16-func deposit () = check(i.callerPublicKey)
12+func deposit () = if (check(i.callerPublicKey))
13+ then throw("Welcome")
14+ else throw("Prinate Farm. Access prohibited!")
1715
1816
1917 @Verifier(tx)
2018 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2119

github/deemru/w8io/169f3d6 
38.80 ms