tx · Fxt74oMFSYgXRGYAGb9winQxQyVE4xTodcx7U3Lxtcie 3Mv2MfC2igdCTgGx1wpEF3GxPqvFD3rwvgL: -0.01000000 Waves 2023.11.01 11:44 [2824028] smart account 3Mv2MfC2igdCTgGx1wpEF3GxPqvFD3rwvgL > SELF 0.00000000 Waves
{ "type": 13, "id": "Fxt74oMFSYgXRGYAGb9winQxQyVE4xTodcx7U3Lxtcie", "fee": 1000000, "feeAssetId": null, "timestamp": 1698828237809, "version": 2, "chainId": 84, "sender": "3Mv2MfC2igdCTgGx1wpEF3GxPqvFD3rwvgL", "senderPublicKey": "rbYfYDr4NWugEviYfXbUNGouFowM3uaXcYowkW8PXAa", "proofs": [ "3cpP1yiWNFcBMXvKo8QwCEi8HaYAHBLXVHM8fP3mpv9MMW8M3oVKa68bzHHphjRmPeamz9Hawp8P8jkKdtDogwhe" ], "script": "base64:BgICCAIEAAtTdHJpbmdWYWx1ZQILMV8yXzNfNF81XzYBBGZvbGQCBWFjY3VtBG5leHQJAM0IAgUFYWNjdW0JAQ1wYXJzZUludFZhbHVlAQUEbmV4dAEDYWRkAgVhY2N1bQROZXh0CQBkAgUFYWNjdW0FBE5leHQBAWEABARMaXN0CgACJGwJALUJAgULU3RyaW5nVmFsdWUCAV8KAAIkcwkAkAMBBQIkbAoABSRhY2MwBQNuaWwKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBBGZvbGQCBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECE0xpc3Qgc2l6ZSBleGNlZWRzIDMJAQUkZjBfMgIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMEBXRvdGFsCgACJGwFBExpc3QKAAIkcwkAkAMBBQIkbAoABSRhY2MwAAAKAQUkZjFfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBA2FkZAIFAiRhCQCRAwIFAiRsBQIk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ECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeAB8AIAAhACIAIwAkACUAJgAnACgAKQAqACsALAAtAC4ALwAwADEAMgAzADQANQA2ADcAOAA5ADoAOwA8AD0APgA/AEAAQQBCAEMARABFAEYARwBIAEkASgBLAEwATQBOAE8AUABRAFIAUwBUAFUAVgBXAFgAWQBaAFsAXABdAF4AXwBgAGEAYgBjAGQJAMwIAgkBDEludGVnZXJFbnRyeQICBVRvdGFsBQV0b3RhbAUDbmlsAADjk5Qi", "height": 2824028, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Bz9WuE64gkNhjA2M5uuaefhDYKtwq2Nbit2QDoEx3kEv Next: 7661siHEKKZTTQJBmJHNu3w1aaKrf8Fes8poNNytHcHL Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let | |
4 | + | let StringValue = "1_2_3_4_5_6" | |
5 | 5 | ||
6 | - | @Callable(i) | |
7 | - | func call (gameId,rsaSign) = { | |
8 | - | let RSAPUBLIC = fromBase64String(RSAPUBLIC64KEY) | |
9 | - | let outcome = rsaVerify_16Kb(SHA256, toBytes(gameId), rsaSign, RSAPUBLIC) | |
10 | - | [BooleanEntry("Outcome", outcome)] | |
6 | + | func fold (accum,next) = (accum :+ parseIntValue(next)) | |
7 | + | ||
8 | + | ||
9 | + | func add (accum,Next) = (accum + Next) | |
10 | + | ||
11 | + | ||
12 | + | func a () = { | |
13 | + | let List = { | |
14 | + | let $l = split(StringValue, "_") | |
15 | + | let $s = size($l) | |
16 | + | let $acc0 = nil | |
17 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
18 | + | then $a | |
19 | + | else fold($a, $l[$i]) | |
20 | + | ||
21 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
22 | + | then $a | |
23 | + | else throw("List size exceeds 3") | |
24 | + | ||
25 | + | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
26 | + | } | |
27 | + | let total = { | |
28 | + | let $l = List | |
29 | + | let $s = size($l) | |
30 | + | let $acc0 = 0 | |
31 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
32 | + | then $a | |
33 | + | else add($a, $l[$i]) | |
34 | + | ||
35 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
36 | + | then $a | |
37 | + | else throw("List size exceeds 100") | |
38 | + | ||
39 | + | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
40 | + | } | |
41 | + | [IntegerEntry("Total", total)] | |
11 | 42 | } | |
12 | 43 | ||
13 | 44 | ||
14 | - | @Verifier(tx) | |
15 | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
16 | 45 |
github/deemru/w8io/169f3d6 28.34 ms ◑