tx · 9PR7nSqRiRramspw2BLGZ3pEWwXAenLj18AE9FWgTSxW

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01400000 Waves

2021.12.10 14:29 [1828087] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "9PR7nSqRiRramspw2BLGZ3pEWwXAenLj18AE9FWgTSxW", "fee": 1400000, "feeAssetId": null, "timestamp": 1639135784328, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "3ojT8oizSvKd2rpEpdZFLsYtBKqHoCGUWXkcYywyiY91sTmqGuogqtjhsuXN5xSXr71nXep7aeJcHCJc24msTKcb" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAFdG9rZW4BAAAAIOc5mAuQ0CpHzn2Eeqy2bd/5bxix/Zvv2ghyN3nN6l5mAAAAAAdhaXJkcm9wCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUvl8ZsNRuQjR8RHdkDfsNYL0aRkcYXOeKAAAAAQAAAAFpAQAAAARjYWxsAAAAAQAAAARpZDU4BAAAAAdiYWxhbmNlCQAD8AAAAAIFAAAAB2FpcmRyb3AFAAAABXRva2VuBAAAAApkcm9wYW1vdW50AAAAAAAAAABkBAAAAAhpc2Vub3VnaAMJAABmAAAAAgUAAAAHYmFsYW5jZQUAAAAKZHJvcGFtb3VudAYJAAACAAAAAQIAAAAKbm90IGVub3VnaAMJAAAAAAAAAgUAAAAIaXNlbm91Z2gFAAAACGlzZW5vdWdoBAAAAAJpZAkAAlkAAAABBQAAAARpZDU4BAAAAAxjYWxsZXJBZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEdGltZQAAAAF9o9wqYAQAAAAGdHJ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WlzcHJvb3ZlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAABG1lc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHYmFsYW5jZQkAAaQAAAABBQAAAAdiYWxhbmNlBQAAAANuaWwJAAACAAAAAQIAAAALbm90IHByb292ZWQJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnbiV6V", "height": 1828087, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CPHhfneoWM4KouQ85JUERQQ6waSXhBgC3vuKknUAGj8m Next: 2RrhLdF3EkWedR1ViV8qJJtNKQ8fL3HgB1Ps8VVYcLvn Diff:
OldNewDifferences
88 @Callable(c)
99 func call (d) = {
1010 let e = assetBalance(b, a)
11- let f = 1000000001
11+ let f = 100
1212 let g = if ((e > f))
1313 then true
1414 else throw("not enough")
3535 }
3636 else throw("Can't find transaction")
3737 }
38- let o = if (if ((k > j))
38+ let o = {
39+ let l = getString(toBase58String(c.caller.bytes))
40+ if ($isInstanceOf(l, "Unit"))
41+ then {
42+ let p = l
43+ true
44+ }
45+ else false
46+ }
47+ let q = if (if (if ((k > j))
3948 then true
4049 else (i != n))
50+ then true
51+ else o)
4152 then false
4253 else true
43- let p = if ((k > j))
54+ let r = if ((k > j))
4455 then ("overtime: " + toString(k))
4556 else if ((i != n))
4657 then ((("incorrect sender: " + toString(i)) + " / ") + toString(n))
47- else "prooved"
48- if (o)
49- then [StringEntry(toBase58String(c.caller.bytes), p), StringEntry("balance", toString(e))]
58+ else if (o)
59+ then "received"
60+ else "prooved"
61+ if (q)
62+ then [StringEntry(toBase58String(c.caller.bytes), r), StringEntry("balance", toString(e))]
5063 else throw("not prooved")
5164 }
5265 else throw("Strict value is not equal to itself.")
5366 }
5467
5568
56-@Verifier(q)
57-func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
69+@Verifier(s)
70+func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
5871
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'GZc7eKnq2KJwqetRmUzSqr2ZaCGseDZufSocz83sUNoo'
55
66 let b = Address(base58'3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV')
77
88 @Callable(c)
99 func call (d) = {
1010 let e = assetBalance(b, a)
11- let f = 1000000001
11+ let f = 100
1212 let g = if ((e > f))
1313 then true
1414 else throw("not enough")
1515 if ((g == g))
1616 then {
1717 let h = fromBase58String(d)
1818 let i = Address(c.caller.bytes)
1919 let j = 1639131654752
2020 let k = {
2121 let l = transferTransactionById(h)
2222 if ($isInstanceOf(l, "TransferTransaction"))
2323 then {
2424 let m = l
2525 m.timestamp
2626 }
2727 else throw("Can't find transaction")
2828 }
2929 let n = {
3030 let l = transferTransactionById(h)
3131 if ($isInstanceOf(l, "TransferTransaction"))
3232 then {
3333 let m = l
3434 m.sender
3535 }
3636 else throw("Can't find transaction")
3737 }
38- let o = if (if ((k > j))
38+ let o = {
39+ let l = getString(toBase58String(c.caller.bytes))
40+ if ($isInstanceOf(l, "Unit"))
41+ then {
42+ let p = l
43+ true
44+ }
45+ else false
46+ }
47+ let q = if (if (if ((k > j))
3948 then true
4049 else (i != n))
50+ then true
51+ else o)
4152 then false
4253 else true
43- let p = if ((k > j))
54+ let r = if ((k > j))
4455 then ("overtime: " + toString(k))
4556 else if ((i != n))
4657 then ((("incorrect sender: " + toString(i)) + " / ") + toString(n))
47- else "prooved"
48- if (o)
49- then [StringEntry(toBase58String(c.caller.bytes), p), StringEntry("balance", toString(e))]
58+ else if (o)
59+ then "received"
60+ else "prooved"
61+ if (q)
62+ then [StringEntry(toBase58String(c.caller.bytes), r), StringEntry("balance", toString(e))]
5063 else throw("not prooved")
5164 }
5265 else throw("Strict value is not equal to itself.")
5366 }
5467
5568
56-@Verifier(q)
57-func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
69+@Verifier(s)
70+func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
5871

github/deemru/w8io/169f3d6 
44.83 ms