tx · Bh999ub9LDNjErs44byLQ6FTpHVfEDNCBrTcrEum59WH 3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG: -0.01000000 Waves 2022.12.30 15:26 [2383038] smart account 3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG > SELF 0.00000000 Waves
{ "type": 13, "id": "Bh999ub9LDNjErs44byLQ6FTpHVfEDNCBrTcrEum59WH", "fee": 1000000, "feeAssetId": null, "timestamp": 1672403216428, "version": 2, "chainId": 84, "sender": "3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG", "senderPublicKey": "GsZLD13DqBHEqBVXCDjp7KqkLz78GSfeRJR8LFQnSFzu", "proofs": [ "gMtyAFU7BBLS5ThqzvcDRLnRnDdpGoHaXnLhzbd7spx3h5hBGE3MfnqDwVGmAd4enwGRwvi94e7c1RZnv7RoAom" ], "script": "base64:AAIFAAAAAAAAABEIAhIAEgUKAwgICBIECgIBAQAAAAIBAAAAA2FicwAAAAEAAAABdgMJAABmAAAAAgAAAAAAAAAAAAUAAAABdgkAAGgAAAACAP//////////BQAAAAF2BQAAAAF2AQAAAARyYW5kAAAAAgAAAARzZWVkAAAAA21heAkAAaQAAAABCQAAagAAAAIJAQAAAANhYnMAAAABCQAEsQAAAAEFAAAABHNlZWQFAAAAA21heAAAAAMAAAABaQEAAAAUdGVzdEN1cnJlbnRUaW1lc3RhbXAAAAAACQAAAgAAAAEJAAGkAAAAAQgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAAAAABaQEAAAAJc3BsaXRUZXN0AAAAAwAAAARsaXN0AAAABm9sZFN0cgAAAAZuZXdTdHIEAAAAB25ld0xpc3QJAAS5AAAAAgkABLUAAAACBQAAAARsaXN0BQAAAAZvbGRTdHIFAAAABm5ld1N0cgkAAAIAAAABBQAAAAduZXdMaXN0AAAAAWkBAAAACHJhbmRUZXN0AAAAAgAAAAhibG9ja051bQAAAANudW0EAAAACWJsb2NrSW5mbwkBAAAAE3ZhbHVlT3JFcnJ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gUAAAAEc2VlZAAAAAAAAAAABwUAAAADbnVtBAAAAAVyYW5kOAkAASwAAAACCQABLAAAAAIFAAAABXJhbmQ3AgAAAAJfXwkBAAAABHJhbmQAAAACCQAAygAAAAIFAAAABHNlZWQAAAAAAAAAAAgFAAAAA251bQQAAAAFcmFuZDkJAAEsAAAAAgkAASwAAAACBQAAAAVyYW5kOAIAAAACX18JAQAAAARyYW5kAAAAAgkAAMoAAAACBQAAAARzZWVkAAAAAAAAAAAJBQAAAANudW0EAAAABnJhbmQxMAkAASwAAAACCQABLAAAAAIFAAAABXJhbmQ5AgAAAAJfXwkBAAAABHJhbmQAAAACCQAAygAAAAIFAAAABHNlZWQAAAAAAAAAAAoFAAAAA251bQkAAAIAAAABBQAAAAZyYW5kMTAAAAAAPYP+yg==", "height": 2383038, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H7s4ReZktXKs4iyxDWtdBea7dToGqwQhQ7JYvhvBBgg2 Next: DFicUdCfXaQUAoQo6Jt22br1Y7KarWavmPGyLyt3aGCi Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | ||
9 | 9 | func rand (seed,max) = toString((abs(toInt(seed)) % max)) | |
10 | + | ||
11 | + | ||
12 | + | @Callable(i) | |
13 | + | func testCurrentTimestamp () = throw(toString(lastBlock.timestamp)) | |
14 | + | ||
10 | 15 | ||
11 | 16 | ||
12 | 17 | @Callable(i) |
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 | + | ||
11 | + | ||
12 | + | @Callable(i) | |
13 | + | func testCurrentTimestamp () = throw(toString(lastBlock.timestamp)) | |
14 | + | ||
10 | 15 | ||
11 | 16 | ||
12 | 17 | @Callable(i) | |
13 | 18 | func splitTest (list,oldStr,newStr) = { | |
14 | 19 | let newList = makeString(split(list, oldStr), newStr) | |
15 | 20 | throw(newList) | |
16 | 21 | } | |
17 | 22 | ||
18 | 23 | ||
19 | 24 | ||
20 | 25 | @Callable(i) | |
21 | 26 | func randTest (blockNum,num) = { | |
22 | 27 | let blockInfo = valueOrErrorMessage(blockInfoByHeight(blockNum), "vrf is not supported by block") | |
23 | 28 | let vrf = valueOrErrorMessage(blockInfo.vrf, "vrf is empty") | |
24 | 29 | let seed = sha256(vrf) | |
25 | 30 | let rand0 = rand(seed, num) | |
26 | 31 | let rand1 = ((rand0 + "__") + rand(drop(seed, 1), num)) | |
27 | 32 | let rand2 = ((rand1 + "__") + rand(drop(seed, 2), num)) | |
28 | 33 | let rand3 = ((rand2 + "__") + rand(drop(seed, 3), num)) | |
29 | 34 | let rand4 = ((rand3 + "__") + rand(drop(seed, 4), num)) | |
30 | 35 | let rand5 = ((rand4 + "__") + rand(drop(seed, 5), num)) | |
31 | 36 | let rand6 = ((rand5 + "__") + rand(drop(seed, 6), num)) | |
32 | 37 | let rand7 = ((rand6 + "__") + rand(drop(seed, 7), num)) | |
33 | 38 | let rand8 = ((rand7 + "__") + rand(drop(seed, 8), num)) | |
34 | 39 | let rand9 = ((rand8 + "__") + rand(drop(seed, 9), num)) | |
35 | 40 | let rand10 = ((rand9 + "__") + rand(drop(seed, 10), num)) | |
36 | 41 | throw(rand10) | |
37 | 42 | } | |
38 | 43 | ||
39 | 44 |
github/deemru/w8io/169f3d6 27.31 ms ◑