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//////////BQAAAAF2BQAAAAF2AQAAAARyYW5kAAAAAgAAAARzZWVkAAAAA21heAkAAaQAAAABCQAAagAAAAIJAQAAAANhYnMAAAABCQAEsQAAAAEFAAAABHNlZWQFAAAAA21heAAAAAMAAAABaQEAAAAUdGVzdEN1cnJlbnRUaW1lc3RhbXAAAAAACQAAAgAAAAEJAAGkAAAAAQgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAAAAABaQEAAAAJc3BsaXRUZXN0AAAAAwAAAARsaXN0AAAABm9sZFN0cgAAAAZuZXdTdHIEAAAAB25ld0xpc3QJAAS5AAAAAgkABLUAAAACBQAAAARsaXN0BQAAAAZvbGRTdHIFAAAABm5ld1N0cgkAAAIAAAABBQAAAAduZXdMaXN0AAAAAWkBAAAACHJhbmRUZXN0AAAAAgAAAAhibG9ja051bQAAAANudW0EAAAACWJsb2NrSW5mbwkBAAAAE3ZhbHVlT3JFcn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AgUAAAAEc2VlZAAAAAAAAAAABwUAAAADbnVtBAAAAAVyYW5kOAkAASwAAAACCQABLAAAAAIFAAAABXJhbmQ3AgAAAAJfXwkBAAAABHJhbmQAAAACCQAAygAAAAIFAAAABHNlZWQAAAAAAAAAAAgFAAAAA251bQQAAAAFcmFuZDkJAAEsAAAAAgkAASwAAAACBQAAAAVyYW5kOAIAAAACX18JAQAAAARyYW5kAAAAAgkAAMoAAAACBQAAAARzZWVkAAAAAAAAAAAJBQAAAANudW0EAAAABnJhbmQxMAkAASwAAAACCQABLAAAAAIFAAAABXJhbmQ5AgAAAAJfXwkBAAAABHJhbmQAAAACCQAAygAAAAIFAAAABHNlZWQAAAAAAAAAAAoFAAAAA251bQkAAAIAAAABBQAAAAZyYW5kMTAAAAAAPYP+yg==", "height": 2383038, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H7s4ReZktXKs4iyxDWtdBea7dToGqwQhQ7JYvhvBBgg2 Next: DFicUdCfXaQUAoQo6Jt22br1Y7KarWavmPGyLyt3aGCi Diff:
OldNewDifferences
77
88
99 func rand (seed,max) = toString((abs(toInt(seed)) % max))
10+
11+
12+@Callable(i)
13+func testCurrentTimestamp () = throw(toString(lastBlock.timestamp))
14+
1015
1116
1217 @Callable(i)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func abs (v) = if ((0 > v))
55 then (-1 * v)
66 else v
77
88
99 func rand (seed,max) = toString((abs(toInt(seed)) % max))
10+
11+
12+@Callable(i)
13+func testCurrentTimestamp () = throw(toString(lastBlock.timestamp))
14+
1015
1116
1217 @Callable(i)
1318 func splitTest (list,oldStr,newStr) = {
1419 let newList = makeString(split(list, oldStr), newStr)
1520 throw(newList)
1621 }
1722
1823
1924
2025 @Callable(i)
2126 func randTest (blockNum,num) = {
2227 let blockInfo = valueOrErrorMessage(blockInfoByHeight(blockNum), "vrf is not supported by block")
2328 let vrf = valueOrErrorMessage(blockInfo.vrf, "vrf is empty")
2429 let seed = sha256(vrf)
2530 let rand0 = rand(seed, num)
2631 let rand1 = ((rand0 + "__") + rand(drop(seed, 1), num))
2732 let rand2 = ((rand1 + "__") + rand(drop(seed, 2), num))
2833 let rand3 = ((rand2 + "__") + rand(drop(seed, 3), num))
2934 let rand4 = ((rand3 + "__") + rand(drop(seed, 4), num))
3035 let rand5 = ((rand4 + "__") + rand(drop(seed, 5), num))
3136 let rand6 = ((rand5 + "__") + rand(drop(seed, 6), num))
3237 let rand7 = ((rand6 + "__") + rand(drop(seed, 7), num))
3338 let rand8 = ((rand7 + "__") + rand(drop(seed, 8), num))
3439 let rand9 = ((rand8 + "__") + rand(drop(seed, 9), num))
3540 let rand10 = ((rand9 + "__") + rand(drop(seed, 10), num))
3641 throw(rand10)
3742 }
3843
3944

github/deemru/w8io/169f3d6 
27.31 ms