tx · Ht3PgvpNn3adDKENsmQJ5eXFVQohXw5av8gve4HtWtCq 3MrsntBqAcZGmxub2mxgn7HyqCixjThAtS8: -0.00200000 Waves 2022.09.05 19:34 [2216053] smart account 3MrsntBqAcZGmxub2mxgn7HyqCixjThAtS8 > SELF 0.00000000 Waves
{ "type": 13, "id": "Ht3PgvpNn3adDKENsmQJ5eXFVQohXw5av8gve4HtWtCq", "fee": 200000, "feeAssetId": null, "timestamp": 1662395749594, "version": 2, "chainId": 84, "sender": "3MrsntBqAcZGmxub2mxgn7HyqCixjThAtS8", "senderPublicKey": "GWwUEwyvsQ6Tn8WgSkKUbNVt8rdQJRqAWov6fQoSzZRv", "proofs": [ "42BaQQEBZKSDH7AmtGWhSpcFS1hff5KjMYHJiA3UpzKXodenZePkMzZPGcAKW1cwMh9pgRtPQrMRZbpEHm6UJfvr", "42BaQQEBZKSDH7AmtGWhSpcFS1hff5KjMYHJiA3UpzKXodenZePkMzZPGcAKW1cwMh9pgRtPQrMRZbpEHm6UJfvr" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAgAAAAAFTVVMVDgAAAAAAAX14QAAAAAABU1VTFQ0AAAAAAAAACcQAAAAAQAAAAFpAQAAAAVpc3N1ZQAAAAAEAAAAA2lkeAkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzAgAAAA1uZXh0X2ZyZWVfaWR4AAAAAAAAAAABBAAAAAt1c2VyQWRkcmVzcwgFAAAAAWkAAAAGY2FsbGVyBAAAAARwbXRzCAUAAAABaQAAAAhwYXltZW50cwQAAAADcG10CQABkQAAAAIFAAAABHBtdHMAAAAAAAAAAAAEAAAACnBtdEFzc2V0SWQIBQAAAANwbXQAAAAHYXNzZXRJZAQAAAAGcG10QW10CAUAAAADcG10AAAABmFtb3VudAMJAQAAAAIhPQAAAAIJAAGQAAAAAQUAAAAEcG10cwAAAAAAAAAAAQkAAAIAAAABAgAAABVvbmx5IDEgcG10IGlzIGFsbG93Z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AAgIAAAANbmV4dF9mcmVlX2lkeAkAAGQAAAACBQAAAANpZHgAAAAAAAAAAAEJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIJAAQlAAAAAQUAAAALdXNlckFkZHJlc3MGCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACGFzc2V0X2lkCAUAAAALaXNzdWVSZXN1bHQAAAACXzIFAAAAA25pbAgFAAAAC2lzc3VlUmVzdWx0AAAAAl8xCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAt1c2VyQWRkcmVzcwUAAAAJaXNzdWVkQW10CQACWQAAAAEIBQAAAAtpc3N1ZVJlc3VsdAAAAAJfMgAAAAD6VLQ1", "height": 2216053, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BzXWarECBYs1NCph8KisejKPTWzexSq1q6mRZLGzb2CM Next: none Diff:
Old | New | Differences | |
---|---|---|---|
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | - | @Verifier(c) | |
43 | - | func p () = { | |
44 | - | let d = valueOrElse(getInteger(this, "next_free_idx"), 1) | |
45 | - | if (((d % 2) == 0)) | |
46 | - | then sigVerify_32Kb(c.bodyBytes, c.proofs[1], c.senderPublicKey) | |
47 | - | else false | |
48 | - | } | |
49 | - |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = 10000 | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func issue () = { | |
10 | 10 | let d = valueOrElse(getInteger(this, "next_free_idx"), 1) | |
11 | 11 | let e = c.caller | |
12 | 12 | let f = c.payments | |
13 | 13 | let g = f[0] | |
14 | 14 | let h = g.assetId | |
15 | 15 | let i = g.amount | |
16 | 16 | if ((size(f) != 1)) | |
17 | 17 | then throw("only 1 pmt is allowed") | |
18 | 18 | else if ((i != ((15 * a) / 10))) | |
19 | 19 | then throw("exact 1.5 WAVES is allowed") | |
20 | 20 | else if ((h != unit)) | |
21 | 21 | then throw("only WAVES is allowed") | |
22 | 22 | else if (isDefined(getBoolean(this, toString(e)))) | |
23 | 23 | then throw("address has been already registered") | |
24 | 24 | else { | |
25 | 25 | let j = ((1000 * b) / d) | |
26 | 26 | let k = valueOrElse(getString(this, "asset_id"), "") | |
27 | 27 | let l = if ((k == "")) | |
28 | 28 | then { | |
29 | 29 | let m = Issue("ArtMurSergMor", "test token", j, 4, true) | |
30 | 30 | let n = calculateAssetId(m) | |
31 | 31 | $Tuple2([m], toBase58String(n)) | |
32 | 32 | } | |
33 | 33 | else { | |
34 | 34 | let o = Reissue(fromBase58String(k), j, true) | |
35 | 35 | $Tuple2([o], k) | |
36 | 36 | } | |
37 | 37 | (([IntegerEntry("next_free_idx", (d + 1)), BooleanEntry(toString(e), true), StringEntry("asset_id", l._2)] ++ l._1) :+ ScriptTransfer(e, j, fromBase58String(l._2))) | |
38 | 38 | } | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | - | @Verifier(c) | |
43 | - | func p () = { | |
44 | - | let d = valueOrElse(getInteger(this, "next_free_idx"), 1) | |
45 | - | if (((d % 2) == 0)) | |
46 | - | then sigVerify_32Kb(c.bodyBytes, c.proofs[1], c.senderPublicKey) | |
47 | - | else false | |
48 | - | } | |
49 | - |
github/deemru/w8io/169f3d6 29.76 ms ◑