tx · DFicUdCfXaQUAoQo6Jt22br1Y7KarWavmPGyLyt3aGCi 3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG: -0.01000000 Waves 2022.12.30 15:29 [2383041] smart account 3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG > SELF 0.00000000 Waves
{ "type": 13, "id": "DFicUdCfXaQUAoQo6Jt22br1Y7KarWavmPGyLyt3aGCi", "fee": 1000000, "feeAssetId": null, "timestamp": 1672403363129, "version": 2, "chainId": 84, "sender": "3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG", "senderPublicKey": "GsZLD13DqBHEqBVXCDjp7KqkLz78GSfeRJR8LFQnSFzu", "proofs": [ "AkqqJH8yMTRmiATB5zQihahP2VXMmJ6wPXoFjLa2W2i4rp94CTSkTDTotx1Y4GS2bhLYs7CFpav4Ag6nGychBkt" ], "script": "base64:AAIFAAAAAAAAABEIAhIAEgUKAwgICBIECgIBAQAAAAIBAAAAA2FicwAAAAEAAAABdgMJAABmAAAAAgAAAAAAAAAAAAUAAAABdgkAAGgAAAACAP//////////BQAAAAF2BQAAAAF2AQAAAARyYW5kAAAAAgAAAARzZWVkAAAAA21heAkAAaQAAAABCQAAagAAAAIJAQAAAANhYnMAAAABCQAEsQAAAAEFAAAABHNlZWQFAAAAA21heAAAAAMAAAABaQEAAAAUdGVzdEN1cnJlbnRUaW1lc3RhbXAAAAAACQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAZoZWlnaHQCAAAAAl9fCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAgAAAAJfXwkAAaQAAAABCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAAAAAFpAQAAAAlzcGxpdFRlc3QAAAADAAAABGxpc3QAAAAGb2xkU3RyAAAABm5ld1N0cgQAAAAHbmV3TGlzdAkABLkAAAACCQAEtQAAAAIFAAAABGxpc3QFAAAABm9sZFN0cg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BAAAABHJhbmQAAAACCQAAygAAAAIFAAAABHNlZWQAAAAAAAAAAAYFAAAAA251bQQAAAAFcmFuZDcJAAEsAAAAAgkAASwAAAACBQAAAAVyYW5kNgIAAAACX18JAQAAAARyYW5kAAAAAgkAAMoAAAACBQAAAARzZWVkAAAAAAAAAAAHBQAAAANudW0EAAAABXJhbmQ4CQABLAAAAAIJAAEsAAAAAgUAAAAFcmFuZDcCAAAAAl9fCQEAAAAEcmFuZAAAAAIJAADKAAAAAgUAAAAEc2VlZAAAAAAAAAAACAUAAAADbnVtBAAAAAVyYW5kOQkAASwAAAACCQABLAAAAAIFAAAABXJhbmQ4AgAAAAJfXwkBAAAABHJhbmQAAAACCQAAygAAAAIFAAAABHNlZWQAAAAAAAAAAAkFAAAAA251bQQAAAAGcmFuZDEwCQABLAAAAAIJAAEsAAAAAgUAAAAFcmFuZDkCAAAAAl9fCQEAAAAEcmFuZAAAAAIJAADKAAAAAgUAAAAEc2VlZAAAAAAAAAAACgUAAAADbnVtCQAAAgAAAAEFAAAABnJhbmQxMAAAAADkAZuR", "height": 2383041, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Bh999ub9LDNjErs44byLQ6FTpHVfEDNCBrTcrEum59WH Next: 93wXc4He3agFx8wuSwjPPG4i5ywJ4gAc9GAex5WySXbN Diff:
Old | New | Differences | |
---|---|---|---|
10 | 10 | ||
11 | 11 | ||
12 | 12 | @Callable(f) | |
13 | - | func testCurrentTimestamp () = throw(toString(lastBlock.timestamp)) | |
13 | + | func testCurrentTimestamp () = throw(((((toString(height) + "__") + toString(lastBlock.timestamp)) + "__") + toString(lastBlock.height))) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = if ((0 > b)) | |
5 | 5 | then (-1 * b) | |
6 | 6 | else b | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func c (d,e) = toString((a(toInt(d)) % e)) | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | @Callable(f) | |
13 | - | func testCurrentTimestamp () = throw(toString(lastBlock.timestamp)) | |
13 | + | func testCurrentTimestamp () = throw(((((toString(height) + "__") + toString(lastBlock.timestamp)) + "__") + toString(lastBlock.height))) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(f) | |
18 | 18 | func splitTest (g,h,i) = { | |
19 | 19 | let j = makeString(split(g, h), i) | |
20 | 20 | throw(j) | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | ||
25 | 25 | @Callable(f) | |
26 | 26 | func randTest (k,l) = { | |
27 | 27 | let m = valueOrErrorMessage(blockInfoByHeight(k), "vrf is not supported by block") | |
28 | 28 | let n = valueOrErrorMessage(m.vrf, "vrf is empty") | |
29 | 29 | let d = sha256(n) | |
30 | 30 | let o = c(d, l) | |
31 | 31 | let p = ((o + "__") + c(drop(d, 1), l)) | |
32 | 32 | let q = ((p + "__") + c(drop(d, 2), l)) | |
33 | 33 | let r = ((q + "__") + c(drop(d, 3), l)) | |
34 | 34 | let s = ((r + "__") + c(drop(d, 4), l)) | |
35 | 35 | let t = ((s + "__") + c(drop(d, 5), l)) | |
36 | 36 | let u = ((t + "__") + c(drop(d, 6), l)) | |
37 | 37 | let v = ((u + "__") + c(drop(d, 7), l)) | |
38 | 38 | let w = ((v + "__") + c(drop(d, 8), l)) | |
39 | 39 | let x = ((w + "__") + c(drop(d, 9), l)) | |
40 | 40 | let y = ((x + "__") + c(drop(d, 10), l)) | |
41 | 41 | throw(y) | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 |
github/deemru/w8io/026f985 28.29 ms ◑