tx · Hmji9iEkLZnTxTZFjbMzwfRBDfE6oaQ5G1sndtKEDWWf 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV: -0.01400000 Waves 2021.12.10 15:01 [1828115] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves
{ "type": 13, "id": "Hmji9iEkLZnTxTZFjbMzwfRBDfE6oaQ5G1sndtKEDWWf", "fee": 1400000, "feeAssetId": null, "timestamp": 1639137747386, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "2VEe5ZuFg1eb1xECC1nunZR5kzJKph1tcqVmYJfD4Try64XstexUZM5wCaujBKoJWfQSaxTNsLEA5qp5QfPdVPqh" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAACAAAAAAV0b2tlbgEAAAAg5zmYC5DQKkfOfYR6rLZt3/lvGLH9m+/aCHI3ec3qXmYAAAAAB2FpcmRyb3AJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVS+Xxmw1G5CNHxEd2QN+w1gvRpGRxhc54oAAAACAAAAAWkBAAAABXJlc2V0AAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAAA25pbAAAAAFpAQAAAARjYWxsAAAAAQAAAARpZDU4BAAAAAdiYWxhbmNlCQAD8AAAAAIFAAAAB2FpcmRyb3AFAAAABXRva2VuBAAAAApkcm9wYW1vdW50AAAAAAAAAABkBAAAAAhpc2Vub3VnaAMJAABmAAAAAgUAAAAHYmFsYW5jZQUAAAAKZHJvcGFtb3VudAYJAAACAAAAAQIAAAAKbm90IGVub3VnaAMJAAAAAAAAAgUAAAAIaXNlbm91Z2gFAAAACGlzZW5vdWdoBAAAAAJpZAkAAlkAAAABBQAAAAR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ltZQUAAAAEdGltZQkAASwAAAACAgAAAApvdmVydGltZTogCQABpAAAAAEFAAAABnRydGltZQMJAQAAAAIhPQAAAAIFAAAADGNhbGxlckFkcmVzcwUAAAAIdHJzZW5kZXIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAEmluY29ycmVjdCBzZW5kZXI6IAkABCUAAAABBQAAAAxjYWxsZXJBZHJlc3MCAAAAAyAvIAkABCUAAAABBQAAAAh0cnNlbmRlcgMFAAAACHJlY2VpdmVkAgAAAAhyZWNlaXZlZAIAAAAHcHJvb3ZlZAMFAAAACWlzcHJvb3ZlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAAGkAAAAAQUAAAALY3VycmVudHRpbWUFAAAAA25pbAkAAAIAAAABAgAAAAtub3QgcHJvb3ZlZAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTXAvDU=", "height": 1828115, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 48efv1TpfzhnXjMiFrRV49iyFePySZ9ogH6MSd7Bck6z Next: KVfiXbTGFfciqZwfL7bwQmGsoxyNAzAADnww5W9tbb4 Diff:
Old | New | Differences | |
---|---|---|---|
58 | 58 | } | |
59 | 59 | else throw("Can't find block") | |
60 | 60 | } | |
61 | - | let s = if (if ( | |
61 | + | let s = if (if ((k > j)) | |
62 | 62 | then true | |
63 | 63 | else (i != n)) | |
64 | - | then true | |
65 | - | else o) | |
66 | 64 | then false | |
67 | 65 | else true | |
68 | 66 | let t = if ((k > j)) |
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 reset () = [DeleteEntry(toBase58String(c.caller.bytes))] | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | ||
13 | 13 | @Callable(c) | |
14 | 14 | func call (d) = { | |
15 | 15 | let e = assetBalance(b, a) | |
16 | 16 | let f = 100 | |
17 | 17 | let g = if ((e > f)) | |
18 | 18 | then true | |
19 | 19 | else throw("not enough") | |
20 | 20 | if ((g == g)) | |
21 | 21 | then { | |
22 | 22 | let h = fromBase58String(d) | |
23 | 23 | let i = Address(c.caller.bytes) | |
24 | 24 | let j = 1639131654752 | |
25 | 25 | let k = { | |
26 | 26 | let l = transferTransactionById(h) | |
27 | 27 | if ($isInstanceOf(l, "TransferTransaction")) | |
28 | 28 | then { | |
29 | 29 | let m = l | |
30 | 30 | m.timestamp | |
31 | 31 | } | |
32 | 32 | else throw("Can't find transaction") | |
33 | 33 | } | |
34 | 34 | let n = { | |
35 | 35 | let l = transferTransactionById(h) | |
36 | 36 | if ($isInstanceOf(l, "TransferTransaction")) | |
37 | 37 | then { | |
38 | 38 | let m = l | |
39 | 39 | m.sender | |
40 | 40 | } | |
41 | 41 | else throw("Can't find transaction") | |
42 | 42 | } | |
43 | 43 | let o = { | |
44 | 44 | let l = getString(toBase58String(c.caller.bytes)) | |
45 | 45 | if ($isInstanceOf(l, "String")) | |
46 | 46 | then { | |
47 | 47 | let p = l | |
48 | 48 | false | |
49 | 49 | } | |
50 | 50 | else true | |
51 | 51 | } | |
52 | 52 | let q = { | |
53 | 53 | let l = blockInfoByHeight(height) | |
54 | 54 | if ($isInstanceOf(l, "BlockInfo")) | |
55 | 55 | then { | |
56 | 56 | let r = l | |
57 | 57 | r.timestamp | |
58 | 58 | } | |
59 | 59 | else throw("Can't find block") | |
60 | 60 | } | |
61 | - | let s = if (if ( | |
61 | + | let s = if (if ((k > j)) | |
62 | 62 | then true | |
63 | 63 | else (i != n)) | |
64 | - | then true | |
65 | - | else o) | |
66 | 64 | then false | |
67 | 65 | else true | |
68 | 66 | let t = if ((k > j)) | |
69 | 67 | then ("overtime: " + toString(k)) | |
70 | 68 | else if ((i != n)) | |
71 | 69 | then ((("incorrect sender: " + toString(i)) + " / ") + toString(n)) | |
72 | 70 | else if (o) | |
73 | 71 | then "received" | |
74 | 72 | else "prooved" | |
75 | 73 | if (s) | |
76 | 74 | then [StringEntry(toBase58String(c.caller.bytes), toString(q))] | |
77 | 75 | else throw("not prooved") | |
78 | 76 | } | |
79 | 77 | else throw("Strict value is not equal to itself.") | |
80 | 78 | } | |
81 | 79 | ||
82 | 80 | ||
83 | 81 | @Verifier(u) | |
84 | 82 | func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) | |
85 | 83 |
github/deemru/w8io/169f3d6 40.99 ms ◑