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(i) | |
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 abs (v) = if ((0 > v)) | |
5 | 5 | then (-1 * v) | |
6 | 6 | else v | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func rand (seed,max) = toString((abs(toInt(seed)) % max)) | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | @Callable(i) | |
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(i) | |
18 | 18 | func splitTest (list,oldStr,newStr) = { | |
19 | 19 | let newList = makeString(split(list, oldStr), newStr) | |
20 | 20 | throw(newList) | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | ||
25 | 25 | @Callable(i) | |
26 | 26 | func randTest (blockNum,num) = { | |
27 | 27 | let blockInfo = valueOrErrorMessage(blockInfoByHeight(blockNum), "vrf is not supported by block") | |
28 | 28 | let vrf = valueOrErrorMessage(blockInfo.vrf, "vrf is empty") | |
29 | 29 | let seed = sha256(vrf) | |
30 | 30 | let rand0 = rand(seed, num) | |
31 | 31 | let rand1 = ((rand0 + "__") + rand(drop(seed, 1), num)) | |
32 | 32 | let rand2 = ((rand1 + "__") + rand(drop(seed, 2), num)) | |
33 | 33 | let rand3 = ((rand2 + "__") + rand(drop(seed, 3), num)) | |
34 | 34 | let rand4 = ((rand3 + "__") + rand(drop(seed, 4), num)) | |
35 | 35 | let rand5 = ((rand4 + "__") + rand(drop(seed, 5), num)) | |
36 | 36 | let rand6 = ((rand5 + "__") + rand(drop(seed, 6), num)) | |
37 | 37 | let rand7 = ((rand6 + "__") + rand(drop(seed, 7), num)) | |
38 | 38 | let rand8 = ((rand7 + "__") + rand(drop(seed, 8), num)) | |
39 | 39 | let rand9 = ((rand8 + "__") + rand(drop(seed, 9), num)) | |
40 | 40 | let rand10 = ((rand9 + "__") + rand(drop(seed, 10), num)) | |
41 | 41 | throw(rand10) | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 |
github/deemru/w8io/026f985 26.80 ms ◑