tx · 2RrhLdF3EkWedR1ViV8qJJtNKQ8fL3HgB1Ps8VVYcLvn 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV: -0.01400000 Waves 2021.12.10 14:39 [1828095] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves
{ "type": 13, "id": "2RrhLdF3EkWedR1ViV8qJJtNKQ8fL3HgB1Ps8VVYcLvn", "fee": 1400000, "feeAssetId": null, "timestamp": 1639136384844, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "3GYvY41kTDnTb2ZZsBJFwLXPFvk7MeeWGgMkm3xbT2kCXJGm4UTK3fD8R8Vp41qkL9Yq1GEQERdqX5k8xeJVX5Ev" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAFdG9rZW4BAAAAIOc5mAuQ0CpHzn2Eeqy2bd/5bxix/Zvv2ghyN3nN6l5mAAAAAAdhaXJkcm9wCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUvl8ZsNRuQjR8RHdkDfsNYL0aRkcYXOeKAAAAAQAAAAFpAQAAAARjYWxsAAAAAQAAAARpZDU4BAAAAAdiYWxhbmNlCQAD8AAAAAIFAAAAB2FpcmRyb3AFAAAABXRva2VuBAAAAApkcm9wYW1vdW50AAAAAAAAAABkBAAAAAhpc2Vub3VnaAMJAABmAAAAAgUAAAAHYmFsYW5jZQUAAAAKZHJvcGFtb3VudAYJAAACAAAAAQIAAAAKbm90IGVub3VnaAMJAAAAAAAAAgUAAAAIaXNlbm91Z2gFAAAACGlzZW5vdWdoBAAAAAJpZAkAAlkAAAABBQAAAARpZDU4BAAAAAxjYWxsZXJBZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEdGltZQAAA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AAAACHJlY2VpdmVkAgAAAAdwcm9vdmVkAwUAAAAJaXNwcm9vdmVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwUAAAAEbWVzcwUAAAADbmlsCQAAAgAAAAECAAAAC25vdCBwcm9vdmVkCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5kAt7CQ==", "height": 1828095, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9PR7nSqRiRramspw2BLGZ3pEWwXAenLj18AE9FWgTSxW Next: 48efv1TpfzhnXjMiFrRV49iyFePySZ9ogH6MSd7Bck6z Diff:
Old | New | Differences | |
---|---|---|---|
37 | 37 | } | |
38 | 38 | let o = { | |
39 | 39 | let l = getString(toBase58String(c.caller.bytes)) | |
40 | - | if ($isInstanceOf(l, " | |
40 | + | if ($isInstanceOf(l, "String")) | |
41 | 41 | then { | |
42 | 42 | let p = l | |
43 | - | | |
43 | + | false | |
44 | 44 | } | |
45 | - | else | |
45 | + | else true | |
46 | 46 | } | |
47 | 47 | let q = if (if (if ((k > j)) | |
48 | 48 | then true | |
59 | 59 | then "received" | |
60 | 60 | else "prooved" | |
61 | 61 | if (q) | |
62 | - | then [StringEntry(toBase58String(c.caller.bytes), r) | |
62 | + | then [StringEntry(toBase58String(c.caller.bytes), r)] | |
63 | 63 | else throw("not prooved") | |
64 | 64 | } | |
65 | 65 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'GZc7eKnq2KJwqetRmUzSqr2ZaCGseDZufSocz83sUNoo' | |
5 | 5 | ||
6 | 6 | let b = Address(base58'3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV') | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func call (d) = { | |
10 | 10 | let e = assetBalance(b, a) | |
11 | 11 | let f = 100 | |
12 | 12 | let g = if ((e > f)) | |
13 | 13 | then true | |
14 | 14 | else throw("not enough") | |
15 | 15 | if ((g == g)) | |
16 | 16 | then { | |
17 | 17 | let h = fromBase58String(d) | |
18 | 18 | let i = Address(c.caller.bytes) | |
19 | 19 | let j = 1639131654752 | |
20 | 20 | let k = { | |
21 | 21 | let l = transferTransactionById(h) | |
22 | 22 | if ($isInstanceOf(l, "TransferTransaction")) | |
23 | 23 | then { | |
24 | 24 | let m = l | |
25 | 25 | m.timestamp | |
26 | 26 | } | |
27 | 27 | else throw("Can't find transaction") | |
28 | 28 | } | |
29 | 29 | let n = { | |
30 | 30 | let l = transferTransactionById(h) | |
31 | 31 | if ($isInstanceOf(l, "TransferTransaction")) | |
32 | 32 | then { | |
33 | 33 | let m = l | |
34 | 34 | m.sender | |
35 | 35 | } | |
36 | 36 | else throw("Can't find transaction") | |
37 | 37 | } | |
38 | 38 | let o = { | |
39 | 39 | let l = getString(toBase58String(c.caller.bytes)) | |
40 | - | if ($isInstanceOf(l, " | |
40 | + | if ($isInstanceOf(l, "String")) | |
41 | 41 | then { | |
42 | 42 | let p = l | |
43 | - | | |
43 | + | false | |
44 | 44 | } | |
45 | - | else | |
45 | + | else true | |
46 | 46 | } | |
47 | 47 | let q = if (if (if ((k > j)) | |
48 | 48 | then true | |
49 | 49 | else (i != n)) | |
50 | 50 | then true | |
51 | 51 | else o) | |
52 | 52 | then false | |
53 | 53 | else true | |
54 | 54 | let r = if ((k > j)) | |
55 | 55 | then ("overtime: " + toString(k)) | |
56 | 56 | else if ((i != n)) | |
57 | 57 | then ((("incorrect sender: " + toString(i)) + " / ") + toString(n)) | |
58 | 58 | else if (o) | |
59 | 59 | then "received" | |
60 | 60 | else "prooved" | |
61 | 61 | if (q) | |
62 | - | then [StringEntry(toBase58String(c.caller.bytes), r) | |
62 | + | then [StringEntry(toBase58String(c.caller.bytes), r)] | |
63 | 63 | else throw("not prooved") | |
64 | 64 | } | |
65 | 65 | else throw("Strict value is not equal to itself.") | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | @Verifier(s) | |
70 | 70 | func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey) | |
71 | 71 |
github/deemru/w8io/026f985 19.98 ms ◑