tx · 4DKMwwTmYD2ruPkY9K1iDfVHpbhdNVi3XwRRe1E3M7H1 3N12oUKe89XdJsvWgx6ncAJTF6Bk8rP3sfP: -0.01000000 Waves 2022.12.28 10:16 [2379810] smart account 3N12oUKe89XdJsvWgx6ncAJTF6Bk8rP3sfP > SELF 0.00000000 Waves
{ "type": 13, "id": "4DKMwwTmYD2ruPkY9K1iDfVHpbhdNVi3XwRRe1E3M7H1", "fee": 1000000, "feeAssetId": null, "timestamp": 1672211798248, "version": 2, "chainId": 84, "sender": "3N12oUKe89XdJsvWgx6ncAJTF6Bk8rP3sfP", "senderPublicKey": "Aqi2u6UsFt6ePp65gz14SdCvKwP4t3CqiDejGBk7mWuj", "proofs": [ "5FCNeLXnLYzPMTATkHWev2Baj9Qt4XEXdicdREYQ4xHkdavTGDiYJ6Ukz2LN2FnKBMK4xN3tpv7ET7Xez7iMTz3c" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAABwAAAAAGYWRtUHViAQAAACCSM3T/ncM6OSW7t5MIo6BoPvkjQ8aifQCkP8tVwO8YJgAAAAAHZ2F0ZXdheQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVHnur5oRfizEyRQme70fRz4o30Oc3NsESgAAAAAERU5OTwEAAAAg9X6hLSUj8vDDdWwKn9+MJZEpOFonVhnZN5VgGw+Pz70AAAAAB25leHRLZXkCAAAABl9uZXh0XwAAAAAKbmV4dFBlcmlvZAAAAAAAAAAFoAAAAAANc2VuZEFtb3VudEtleQIAAAAGX3NlbmRfAQAAAAtpc1BheW1lbnRPawAAAAEAAAABaQQAAAARYWNjZXB0YWJsZUFzc2V0SWQFAAAABEVOTk8DCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAADXdhbGxldEJhb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cm4AAAACBQAAAARFTk5PBQAAAA1wYXltZW50QW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAAB25leHRLZXkFAAAACmN1cnJlbnRLZXkFAAAABG5leHQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgUAAAANc2VuZEFtb3VudEtleQUAAAAKY3VycmVudEtleQUAAAANcGF5bWVudEFtb3VudAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl+5aIh", "height": 2379810, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'Aqi2u6UsFt6ePp65gz14SdCvKwP4t3CqiDejGBk7mWuj' | |
5 | + | ||
6 | + | let b = Address(base58'3N12oUKe89XdJsvWgx6ncAJTF6Bk8rP3sfP') | |
7 | + | ||
8 | + | let c = base58'HXJsuwkQmik6jwh7tC3cc6wq45A9Th2pDENH6HHR5vxt' | |
9 | + | ||
10 | + | let d = "_next_" | |
11 | + | ||
12 | + | let e = 1440 | |
13 | + | ||
14 | + | let f = "_send_" | |
15 | + | ||
16 | + | func g (h) = { | |
17 | + | let i = c | |
18 | + | if ((size(h.payments) == 0)) | |
19 | + | then throw("Payment not attached") | |
20 | + | else { | |
21 | + | let j = h.payments[0] | |
22 | + | let k = assetBalance(h.caller, i) | |
23 | + | let l = j.assetId | |
24 | + | if ($isInstanceOf(l, "ByteVector")) | |
25 | + | then { | |
26 | + | let m = l | |
27 | + | if ((m == i)) | |
28 | + | then (j.amount > 0) | |
29 | + | else false | |
30 | + | } | |
31 | + | else throw("Wrong payment") | |
32 | + | } | |
33 | + | } | |
34 | + | ||
35 | + | ||
36 | + | @Callable(h) | |
37 | + | func send (n) = { | |
38 | + | let o = toBase58String(h.caller.bytes) | |
39 | + | let p = valueOrElse(getInteger(this, (d + o)), 0) | |
40 | + | let q = (p + e) | |
41 | + | let r = (q - height) | |
42 | + | if ((n == "")) | |
43 | + | then throw("add address") | |
44 | + | else if (if ((1440 >= r)) | |
45 | + | then (p > 0) | |
46 | + | else false) | |
47 | + | then throw("you can not") | |
48 | + | else if (!(g(h))) | |
49 | + | then throw("attach payment") | |
50 | + | else { | |
51 | + | let j = h.payments[0] | |
52 | + | let s = j.amount | |
53 | + | [Burn(c, s), IntegerEntry((d + o), q), IntegerEntry((f + o), s)] | |
54 | + | } | |
55 | + | } | |
56 | + | ||
57 | + | ||
58 | + | @Verifier(t) | |
59 | + | func u () = sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) | |
60 | + |
github/deemru/w8io/169f3d6 15.15 ms ◑