tx · 93wXc4He3agFx8wuSwjPPG4i5ywJ4gAc9GAex5WySXbN 3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG: -0.01000000 Waves 2023.05.24 15:25 [2592064] smart account 3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG > SELF 0.00000000 Waves
{ "type": 13, "id": "93wXc4He3agFx8wuSwjPPG4i5ywJ4gAc9GAex5WySXbN", "fee": 1000000, "feeAssetId": null, "timestamp": 1684931186633, "version": 2, "chainId": 84, "sender": "3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG", "senderPublicKey": "GsZLD13DqBHEqBVXCDjp7KqkLz78GSfeRJR8LFQnSFzu", "proofs": [ "44KCnFfvjMAgnL1DJPXmoZAxKsvXXEV8LhA9r1f9sEysY7thZocL5y6xhhL5eKSMzDnRuWmtAazRZZmZKwdo5mZX" ], "script": "base64:AAIFAAAAAAAAABcIAhIAEgUKAwgICBIECgIICBIECgIBAQAAAAIBAAAAA2FicwAAAAEAAAABdgMJAABmAAAAAgAAAAAAAAAAAAUAAAABdgkAAGgAAAACAP//////////BQAAAAF2BQAAAAF2AQAAAARyYW5kAAAAAgAAAARzZWVkAAAAA21heAkAAaQAAAABCQAAagAAAAIJAQAAAANhYnMAAAABCQAEsQAAAAEFAAAABHNlZWQFAAAAA21heAAAAAQAAAABaQEAAAAUdGVzdEN1cnJlbnRUaW1lc3RhbXAAAAAACQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAZoZWlnaHQCAAAAAl9fCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAgAAAAJfXwkAAaQAAAABCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAAAAAFpAQAAAAlzcGxpdFRlc3QAAAADAAAABGxpc3QAAAAGb2xkU3RyAAAABm5ld1N0cgQAAAAHbmV3TGlzdAkABLkAAAACCQAEtQAAAAIFAAAABGxpc3QFAAAABm9s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kNQkAASwAAAACCQABLAAAAAIFAAAABXJhbmQ0AgAAAAJfXwkBAAAABHJhbmQAAAACCQAAygAAAAIFAAAABHNlZWQAAAAAAAAAAAUFAAAAA251bQQAAAAFcmFuZDYJAAEsAAAAAgkAASwAAAACBQAAAAVyYW5kNQIAAAACX18JAQAAAARyYW5kAAAAAgkAAMoAAAACBQAAAARzZWVkAAAAAAAAAAAGBQAAAANudW0EAAAABXJhbmQ3CQABLAAAAAIJAAEsAAAAAgUAAAAFcmFuZDYCAAAAAl9fCQEAAAAEcmFuZAAAAAIJAADKAAAAAgUAAAAEc2VlZAAAAAAAAAAABwUAAAADbnVtBAAAAAVyYW5kOAkAASwAAAACCQABLAAAAAIFAAAABXJhbmQ3AgAAAAJfXwkBAAAABHJhbmQAAAACCQAAygAAAAIFAAAABHNlZWQAAAAAAAAAAAgFAAAAA251bQQAAAAFcmFuZDkJAAEsAAAAAgkAASwAAAACBQAAAAVyYW5kOAIAAAACX18JAQAAAARyYW5kAAAAAgkAAMoAAAACBQAAAARzZWVkAAAAAAAAAAAJBQAAAANudW0EAAAABnJhbmQxMAkAASwAAAACCQABLAAAAAIFAAAABXJhbmQ5AgAAAAJfXwkBAAAABHJhbmQAAAACCQAAygAAAAIFAAAABHNlZWQAAAAAAAAAAAoFAAAAA251bQkAAAIAAAABBQAAAAZyYW5kMTAAAAAAYl/uDQ==", "height": 2592064, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DFicUdCfXaQUAoQo6Jt22br1Y7KarWavmPGyLyt3aGCi Next: 3MZVHp74UtNN8zmRzaZ4oDNAB6zRj9UzyitCKaVD2Crn Diff:
Old | New | Differences | |
---|---|---|---|
18 | 18 | func splitTest (list,oldStr,newStr) = { | |
19 | 19 | let newList = makeString(split(list, oldStr), newStr) | |
20 | 20 | throw(newList) | |
21 | + | } | |
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | @Callable(i) | |
26 | + | func removeTest (listStr,removeStr) = { | |
27 | + | let data = split(listStr, removeStr) | |
28 | + | throw(toString(size(data))) | |
21 | 29 | } | |
22 | 30 | ||
23 | 31 |
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 | 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 | + | } | |
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | @Callable(i) | |
26 | + | func removeTest (listStr,removeStr) = { | |
27 | + | let data = split(listStr, removeStr) | |
28 | + | throw(toString(size(data))) | |
21 | 29 | } | |
22 | 30 | ||
23 | 31 | ||
24 | 32 | ||
25 | 33 | @Callable(i) | |
26 | 34 | func randTest (blockNum,num) = { | |
27 | 35 | let blockInfo = valueOrErrorMessage(blockInfoByHeight(blockNum), "vrf is not supported by block") | |
28 | 36 | let vrf = valueOrErrorMessage(blockInfo.vrf, "vrf is empty") | |
29 | 37 | let seed = sha256(vrf) | |
30 | 38 | let rand0 = rand(seed, num) | |
31 | 39 | let rand1 = ((rand0 + "__") + rand(drop(seed, 1), num)) | |
32 | 40 | let rand2 = ((rand1 + "__") + rand(drop(seed, 2), num)) | |
33 | 41 | let rand3 = ((rand2 + "__") + rand(drop(seed, 3), num)) | |
34 | 42 | let rand4 = ((rand3 + "__") + rand(drop(seed, 4), num)) | |
35 | 43 | let rand5 = ((rand4 + "__") + rand(drop(seed, 5), num)) | |
36 | 44 | let rand6 = ((rand5 + "__") + rand(drop(seed, 6), num)) | |
37 | 45 | let rand7 = ((rand6 + "__") + rand(drop(seed, 7), num)) | |
38 | 46 | let rand8 = ((rand7 + "__") + rand(drop(seed, 8), num)) | |
39 | 47 | let rand9 = ((rand8 + "__") + rand(drop(seed, 9), num)) | |
40 | 48 | let rand10 = ((rand9 + "__") + rand(drop(seed, 10), num)) | |
41 | 49 | throw(rand10) | |
42 | 50 | } | |
43 | 51 | ||
44 | 52 |
github/deemru/w8io/169f3d6 34.85 ms ◑