tx · 6iARKDtK16CZEqnnWCZBHBdwkUcTnsF7XFDm4aeC2wDT

3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy:  -0.01000000 Waves

2022.12.28 10:59 [2379849] smart account 3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy > SELF 0.00000000 Waves

{ "type": 13, "id": "6iARKDtK16CZEqnnWCZBHBdwkUcTnsF7XFDm4aeC2wDT", "fee": 1000000, "feeAssetId": null, "timestamp": 1672214468828, "version": 2, "chainId": 84, "sender": "3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy", "senderPublicKey": "FqQH9eNJSxfrYrhaZ5tfjFyUKdViGSVGnESwPqpwDQGz", "proofs": [ "4YyutKW5vTvx47Hw8FSYx7CMvUnPfSeWbRmQBW7Nx9SZJgfiechpQoUm8RCTSrwyShsR2zaYiJvSi8xWoAuHQSap" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAAEAAAAAAZhZG1QdWIBAAAAIJIzdP+dwzo5Jbu3kwijoGg++SNDxqJ9AKQ/y1XA7xgmAAAAAAdnYXRld2F5CQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUee6vmhF+LMTJFCZ7vR9HPijfQ5zc2wRKAAAAAARFTk5PAQAAACD1fqEtJSPy8MN1bAqf34wlkSk4WidWGdk3lWAbD4/PvQEAAAALaXNQYXltZW50T2sAAAABAAAAAWkEAAAAEWFjY2VwdGFibGVBc3NldElkBQAAAARFTk5PAwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFFBheW1lbnQgbm90IGF0dGFjaGVkBAAAAAFwCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAA13YWxsZXRCYWxhbmNlCQAD8AAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAARYWNjZXB0YWJsZUFzc2V0SWQEAAAAByRtYXRjaDAIBQAAAAFwA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yZW50S2V5BQAAAAZoZWlnaHQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAB2Ftb3VudF8FAAAACmN1cnJlbnRLZXkCAAAAAV8JAAGkAAAAAQUAAAAGaGVpZ2h0BQAAAA1wYXltZW50QW1vdW50CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADHRyYW5zYWN0aW9uXwkAAaQAAAABBQAAAAZoZWlnaHQCAAAAAV8FAAAACmN1cnJlbnRLZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAHYWRkcmVzcwIAAAABXwkAAaQAAAABBQAAAA1wYXltZW50QW1vdW50AgAAAAFfCQABpAAAAAEFAAAABmhlaWdodAUAAAADbmlsCQAAAgAAAAECAAAAE2VudGVyIHZhbGlkIGFkZHJlc3MJAAACAAAAAQIAAAALYXR0YWNoIEVOTk8JAAACAAAAAQIAAAARd2FpdCBmb3IgY29vbGRvd24AAAABaQEAAAAGZGVsZXRlAAAAAQAAAANrZXkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADa2V5BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledm3c8I=", "height": 2379849, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7sMMN71BVJYbRfBHcSCbxxHQJcdehm8fGnEoWAGk19ys Next: 9hMAYLQ77qNskanc2dRaCvna9UJn2pcmSPzo8bvfjdH4 Diff:
OldNewDifferences
4040 then {
4141 let g = e.payments[0]
4242 let o = g.amount
43-[Burn(c, o), IntegerEntry(("lastBlock_" + l), height), IntegerEntry(((("amount_" + l) + "_") + toString(height)), o), StringEntry(((("transaction_" + toString(height)) + "_") + l), ((((k + "_") + toString(o)) + "_") + toString(height)))]
43+ let p = g.assetId
44+ if ((p != c))
45+ then throw("only enno")
46+ else [Burn(c, o), IntegerEntry(("lastBlock_" + l), height), IntegerEntry(((("amount_" + l) + "_") + toString(height)), o), StringEntry(((("transaction_" + toString(height)) + "_") + l), ((((k + "_") + toString(o)) + "_") + toString(height)))]
4447 }
4548 else throw("enter valid address")
4649 else throw("attach ENNO")
5053
5154
5255 @Callable(e)
53-func delete (p) = [DeleteEntry(p)]
56+func delete (q) = [DeleteEntry(q)]
5457
5558
56-@Verifier(q)
57-func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
59+@Verifier(r)
60+func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
5861
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Aqi2u6UsFt6ePp65gz14SdCvKwP4t3CqiDejGBk7mWuj'
55
66 let b = Address(base58'3N12oUKe89XdJsvWgx6ncAJTF6Bk8rP3sfP')
77
88 let c = base58'HXJsuwkQmik6jwh7tC3cc6wq45A9Th2pDENH6HHR5vxt'
99
1010 func d (e) = {
1111 let f = c
1212 if ((size(e.payments) == 0))
1313 then throw("Payment not attached")
1414 else {
1515 let g = e.payments[0]
1616 let h = assetBalance(e.caller, f)
1717 let i = g.assetId
1818 if ($isInstanceOf(i, "ByteVector"))
1919 then {
2020 let j = i
2121 if ((j == f))
2222 then (g.amount > 0)
2323 else false
2424 }
2525 else throw("Wrong payment")
2626 }
2727 }
2828
2929
3030 @Callable(e)
3131 func send (k) = {
3232 let l = toBase58String(e.caller.bytes)
3333 let m = valueOrElse(getInteger(this, ("lastBlock_" + l)), 0)
3434 let n = (height - m)
3535 if (if ((n >= 1440))
3636 then true
3737 else (n == height))
3838 then if (d(e))
3939 then if ((k != ""))
4040 then {
4141 let g = e.payments[0]
4242 let o = g.amount
43-[Burn(c, o), IntegerEntry(("lastBlock_" + l), height), IntegerEntry(((("amount_" + l) + "_") + toString(height)), o), StringEntry(((("transaction_" + toString(height)) + "_") + l), ((((k + "_") + toString(o)) + "_") + toString(height)))]
43+ let p = g.assetId
44+ if ((p != c))
45+ then throw("only enno")
46+ else [Burn(c, o), IntegerEntry(("lastBlock_" + l), height), IntegerEntry(((("amount_" + l) + "_") + toString(height)), o), StringEntry(((("transaction_" + toString(height)) + "_") + l), ((((k + "_") + toString(o)) + "_") + toString(height)))]
4447 }
4548 else throw("enter valid address")
4649 else throw("attach ENNO")
4750 else throw("wait for cooldown")
4851 }
4952
5053
5154
5255 @Callable(e)
53-func delete (p) = [DeleteEntry(p)]
56+func delete (q) = [DeleteEntry(q)]
5457
5558
56-@Verifier(q)
57-func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
59+@Verifier(r)
60+func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
5861

github/deemru/w8io/169f3d6 
27.79 ms