tx · 7sMMN71BVJYbRfBHcSCbxxHQJcdehm8fGnEoWAGk19ys
3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy: -0.01000000 Waves
2022.12.28 10:51 [2379843] smart account 3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy > SELF 0.00000000 Waves
{
"type": 13,
"id": "7sMMN71BVJYbRfBHcSCbxxHQJcdehm8fGnEoWAGk19ys",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1672213957490,
"version": 2,
"chainId": 84,
"sender": "3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy",
"senderPublicKey": "FqQH9eNJSxfrYrhaZ5tfjFyUKdViGSVGnESwPqpwDQGz",
"proofs": [
"57fG8yka27LD24euHoa1NreDcVA5p7DESM7tVp3VqKBnwFHsevNQtQS2rEn4KDnc1QCa4ah2LfTEWjFqU88vabfB"
],
"script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAAEAAAAAAZhZG1QdWIBAAAAIJIzdP+dwzo5Jbu3kwijoGg++SNDxqJ9AKQ/y1XA7xgmAAAAAAdnYXRld2F5CQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUee6vmhF+LMTJFCZ7vR9HPijfQ5zc2wRKAAAAAARFTk5PAQAAACD1fqEtJSPy8MN1bAqf34wlkSk4WidWGdk3lWAbD4/PvQEAAAALaXNQYXltZW50T2sAAAABAAAAAWkEAAAAEWFjY2VwdGFibGVBc3NldElkBQAAAARFTk5PAwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFFBheW1lbnQgbm90IGF0dGFjaGVkBAAAAAFwCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAA13YWxsZXRCYWxhbmNlCQAD8AAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAARYWNjZXB0YWJsZUFzc2V0SWQEAAAAByRtYXRjaDAIBQAAAAFw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LZXkCAAAAAV8JAAGkAAAAAQUAAAAGaGVpZ2h0BQAAAA1wYXltZW50QW1vdW50CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADHRyYW5zYWN0aW9uXwkAAaQAAAABBQAAAAZoZWlnaHQCAAAAAV8FAAAACmN1cnJlbnRLZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAHYWRkcmVzcwIAAAABXwkAAaQAAAABBQAAAA1wYXltZW50QW1vdW50AgAAAAFfCQABpAAAAAEFAAAABmhlaWdodAUAAAADbmlsCQAAAgAAAAECAAAAE2VudGVyIHZhbGlkIGFkZHJlc3MJAAACAAAAAQIAAAALYXR0YWNoIEVOTk8JAAACAAAAAQIAAAARd2FpdCBmb3IgY29vbGRvd24AAAABaQEAAAAGZGVsZXRlAAAAAQAAAANrZXkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADa2V5BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleezQUQ4=",
"height": 2379843,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CNnbaimdT4AePDA97PmA2i8LNkKKdgDfmHndjiAUVnfs
Next: 6iARKDtK16CZEqnnWCZBHBdwkUcTnsF7XFDm4aeC2wDT
Diff:
Old | New | | Differences |
---|
40 | 40 | | then { |
---|
41 | 41 | | let g = e.payments[0] |
---|
42 | 42 | | let o = g.amount |
---|
43 | | - | [Burn(c, o), IntegerEntry(("lastBlock_" + l), height), IntegerEntry(((("amount_" + l) + "_") + toString(height)), o)] |
---|
| 43 | + | [Burn(c, o), IntegerEntry(("lastBlock_" + l), height), IntegerEntry(((("amount_" + l) + "_") + toString(height)), o), StringEntry(((("transaction_" + toString(height)) + "_") + l), ((((k + "_") + toString(o)) + "_") + toString(height)))] |
---|
44 | 44 | | } |
---|
45 | 45 | | else throw("enter valid address") |
---|
46 | 46 | | else throw("attach ENNO") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'Aqi2u6UsFt6ePp65gz14SdCvKwP4t3CqiDejGBk7mWuj' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = Address(base58'3N12oUKe89XdJsvWgx6ncAJTF6Bk8rP3sfP') |
---|
7 | 7 | | |
---|
8 | 8 | | let c = base58'HXJsuwkQmik6jwh7tC3cc6wq45A9Th2pDENH6HHR5vxt' |
---|
9 | 9 | | |
---|
10 | 10 | | func d (e) = { |
---|
11 | 11 | | let f = c |
---|
12 | 12 | | if ((size(e.payments) == 0)) |
---|
13 | 13 | | then throw("Payment not attached") |
---|
14 | 14 | | else { |
---|
15 | 15 | | let g = e.payments[0] |
---|
16 | 16 | | let h = assetBalance(e.caller, f) |
---|
17 | 17 | | let i = g.assetId |
---|
18 | 18 | | if ($isInstanceOf(i, "ByteVector")) |
---|
19 | 19 | | then { |
---|
20 | 20 | | let j = i |
---|
21 | 21 | | if ((j == f)) |
---|
22 | 22 | | then (g.amount > 0) |
---|
23 | 23 | | else false |
---|
24 | 24 | | } |
---|
25 | 25 | | else throw("Wrong payment") |
---|
26 | 26 | | } |
---|
27 | 27 | | } |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | 30 | | @Callable(e) |
---|
31 | 31 | | func send (k) = { |
---|
32 | 32 | | let l = toBase58String(e.caller.bytes) |
---|
33 | 33 | | let m = valueOrElse(getInteger(this, ("lastBlock_" + l)), 0) |
---|
34 | 34 | | let n = (height - m) |
---|
35 | 35 | | if (if ((n >= 1440)) |
---|
36 | 36 | | then true |
---|
37 | 37 | | else (n == height)) |
---|
38 | 38 | | then if (d(e)) |
---|
39 | 39 | | then if ((k != "")) |
---|
40 | 40 | | then { |
---|
41 | 41 | | let g = e.payments[0] |
---|
42 | 42 | | let o = g.amount |
---|
43 | | - | [Burn(c, o), IntegerEntry(("lastBlock_" + l), height), IntegerEntry(((("amount_" + l) + "_") + toString(height)), o)] |
---|
| 43 | + | [Burn(c, o), IntegerEntry(("lastBlock_" + l), height), IntegerEntry(((("amount_" + l) + "_") + toString(height)), o), StringEntry(((("transaction_" + toString(height)) + "_") + l), ((((k + "_") + toString(o)) + "_") + toString(height)))] |
---|
44 | 44 | | } |
---|
45 | 45 | | else throw("enter valid address") |
---|
46 | 46 | | else throw("attach ENNO") |
---|
47 | 47 | | else throw("wait for cooldown") |
---|
48 | 48 | | } |
---|
49 | 49 | | |
---|
50 | 50 | | |
---|
51 | 51 | | |
---|
52 | 52 | | @Callable(e) |
---|
53 | 53 | | func delete (p) = [DeleteEntry(p)] |
---|
54 | 54 | | |
---|
55 | 55 | | |
---|
56 | 56 | | @Verifier(q) |
---|
57 | 57 | | func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey) |
---|
58 | 58 | | |
---|