tx · C2uUEFgyxQazoPp1iwJYPiqPsCdwLQNDF27Wc6WJ4Yro 3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL: -0.01000000 Waves 2022.11.14 14:16 [2316732] smart account 3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL > SELF 0.00000000 Waves
{ "type": 13, "id": "C2uUEFgyxQazoPp1iwJYPiqPsCdwLQNDF27Wc6WJ4Yro", "fee": 1000000, "feeAssetId": null, "timestamp": 1668424626161, "version": 2, "chainId": 84, "sender": "3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL", "senderPublicKey": "BefhVEanzhrtdYfeWquaoSsMZw3BEaEZZB86Kosqw7Qb", "proofs": [ "3QJjRCTpEDbVXaMgUZBX14X39N6rK9CfzCMQC6Hbhy5tr99jAgVRPzEmzo9SP7itqj89ajrtp27jBdYr53PEjvZx" ], "script": "base64:AAIFAAAAAAAAABYIAhIDCgEBEgMKAQESCAoGCAgICAgIAAAADQAAAAAFYWRtaW4CAAAALEJlZmhWRWFuemhydGRZZmVXcXVhb1NzTVp3M0JFYUVaWkI4Nktvc3F3N1FiAAAAAA5yZXN1bHRDb250cmFjdAIAAAAAAAAAAAxiZXRBbW91bnRLZXkCAAAAEGdsb2JhbF9iZXRBbW91bnQAAAAAC2RlYWRsaW5lS2V5AgAAABFnbG9iYWxfZGVhZGxpbmVfaAAAAAAFc2NhbGUAAAAAAAX14QABAAAADmdldEFzc2V0U3RyaW5nAAAAAQAAAAdhc3NldElkBAAAAAckbWF0Y2gwBQAAAAdhc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFiBQAAAAckbWF0Y2gwCQACWAAAAAEFAAAAAWICAAAABVdBVkVTAQAAAA1nZXRBc3NldEJ5dGVzAAAAAQAAAAdhc3NldElkAwkAAAAAAAACBQAAAAdhc3NldElkAgAAAAVXQVZFUwUAAAAEdW5pdAkAAlkAAAABBQAAAAdhc3NldElkAQAAAA10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bGVyQWRkcgIAAAAQX1F1YXJ0ZXI0LXdpbm5lcgkAAZEAAAACBQAAAA5xdWFydGVyV2lubmVycwAAAAAAAAAAAwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAACmNhbGxlckFkZHICAAAADV9TZW1pMS13aW5uZXIJAAGRAAAAAgUAAAALc2VtaVdpbm5lcnMAAAAAAAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAApjYWxsZXJBZGRyAgAAAA1fU2VtaTItd2lubmVyCQABkQAAAAIFAAAAC3NlbWlXaW5uZXJzAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAKY2FsbGVyQWRkcgIAAAAMRmluYWwtd2lubmVyBQAAAAZ3aW5uZXIFAAAAA25pbAkAAAIAAAABAgAAACNJbmNvcnJlY3QgZGF0YSBhcnJpdmVkIGluIGFyZ3VtZW50cwkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAPQXR0YWNoIGV4YWN0bHkgCQABpAAAAAEFAAAACWJldEFtb3VudAIAAAARIFdhdmVzIGFzIHBheW1lbnQJAAACAAAAAQIAAAAkWmVybyBiZXRBbW91bnQgZnJvbSBjb250cmFjdCBzdG9yYWdlCQAAAgAAAAECAAAALU9ubHkgV2F2ZXMgaXMgYWxsb3dlZCBhcyBwYXltZW50IGFzc2V0IHRvIGJldAkAAAIAAAABAgAAABBCZXQgYWxyZWFkeSBtYWRlAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXleuqc4", "height": 2316732, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GeNUxjtsQhNkTmnE8gUtBhrgQnzAF5Z23VJm6G2tQY9t Next: 6ZedKy5ddrUPpyUNZKcwHhMciEU7yRo6HpiMxDB3TyKJ Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = "" | |
4 | + | let a = "BefhVEanzhrtdYfeWquaoSsMZw3BEaEZZB86Kosqw7Qb" | |
5 | 5 | ||
6 | 6 | let b = "" | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = "" | |
4 | + | let a = "BefhVEanzhrtdYfeWquaoSsMZw3BEaEZZB86Kosqw7Qb" | |
5 | 5 | ||
6 | 6 | let b = "" | |
7 | 7 | ||
8 | 8 | let c = "global_betAmount" | |
9 | 9 | ||
10 | 10 | let d = "global_deadline_h" | |
11 | 11 | ||
12 | 12 | let e = 100000000 | |
13 | 13 | ||
14 | 14 | func f (g) = { | |
15 | 15 | let h = g | |
16 | 16 | if ($isInstanceOf(h, "ByteVector")) | |
17 | 17 | then { | |
18 | 18 | let i = h | |
19 | 19 | toBase58String(i) | |
20 | 20 | } | |
21 | 21 | else "WAVES" | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func j (g) = if ((g == "WAVES")) | |
26 | 26 | then unit | |
27 | 27 | else fromBase58String(g) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func k (l) = { | |
31 | 31 | let h = getInteger(this, l) | |
32 | 32 | if ($isInstanceOf(h, "Int")) | |
33 | 33 | then { | |
34 | 34 | let m = h | |
35 | 35 | m | |
36 | 36 | } | |
37 | 37 | else 0 | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func n (l) = { | |
42 | 42 | let h = getBoolean(this, l) | |
43 | 43 | if ($isInstanceOf(h, "Boolean")) | |
44 | 44 | then { | |
45 | 45 | let i = h | |
46 | 46 | i | |
47 | 47 | } | |
48 | 48 | else false | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func o (l) = { | |
53 | 53 | let h = getString(this, l) | |
54 | 54 | if ($isInstanceOf(h, "String")) | |
55 | 55 | then { | |
56 | 56 | let p = h | |
57 | 57 | p | |
58 | 58 | } | |
59 | 59 | else "" | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func q (r) = (toBase58String(r) == a) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func s (t) = n((t + "_betted")) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func u () = k(c) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | @Callable(m) | |
73 | 73 | func setBetAmount (v) = if (q(m.callerPublicKey)) | |
74 | 74 | then [IntegerEntry(c, v)] | |
75 | 75 | else throw("Only admin") | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | ||
79 | 79 | @Callable(m) | |
80 | 80 | func setDeadLine (w) = if (q(m.callerPublicKey)) | |
81 | 81 | then [IntegerEntry(d, w)] | |
82 | 82 | else throw("Only admin") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | ||
86 | 86 | @Callable(m) | |
87 | 87 | func makeBet (x,y,z,A,B,C) = { | |
88 | 88 | let D = m.payments[0] | |
89 | 89 | let E = value(D.assetId) | |
90 | 90 | let F = value(D.amount) | |
91 | 91 | let G = toString(m.caller) | |
92 | 92 | let H = s(G) | |
93 | 93 | if (!(H)) | |
94 | 94 | then if ((f(E) == "WAVES")) | |
95 | 95 | then { | |
96 | 96 | let I = u() | |
97 | 97 | if ((I != 0)) | |
98 | 98 | then if ((F == (I * e))) | |
99 | 99 | then { | |
100 | 100 | let J = split(x, "_") | |
101 | 101 | let K = split(y, "_") | |
102 | 102 | let L = split(z, "_") | |
103 | 103 | let M = split(A, "_") | |
104 | 104 | let N = split(B, "_") | |
105 | 105 | if (if (if (if (if ((size(J) == 8)) | |
106 | 106 | then (size(K) == 8) | |
107 | 107 | else false) | |
108 | 108 | then (size(L) == 8) | |
109 | 109 | else false) | |
110 | 110 | then (size(M) == 4) | |
111 | 111 | else false) | |
112 | 112 | then (size(N) == 2) | |
113 | 113 | else false) | |
114 | 114 | then [BooleanEntry((G + "_betted"), true), IntegerEntry((G + "_height"), height), StringEntry((G + "_GroupA-1st"), J[0]), StringEntry((G + "_GroupA-2nd"), K[0]), StringEntry((G + "_GroupB-1st"), J[1]), StringEntry((G + "_GroupB-2nd"), J[1]), StringEntry((G + "_GroupC-1st"), J[2]), StringEntry((G + "_GroupC-2nd"), K[2]), StringEntry((G + "_GroupD-1st"), J[3]), StringEntry((G + "_GroupD-2nd"), J[3]), StringEntry((G + "_GroupE-1st"), J[4]), StringEntry((G + "_GroupE-2nd"), K[4]), StringEntry((G + "_GroupF-1st"), J[5]), StringEntry((G + "_GroupF-2nd"), J[5]), StringEntry((G + "_GroupG-1st"), J[6]), StringEntry((G + "_GroupG-2nd"), K[6]), StringEntry((G + "_GroupH-1st"), J[7]), StringEntry((G + "_GroupH-2nd"), J[7]), StringEntry((G + "_Octo1-winner"), L[0]), StringEntry((G + "_Octo2-winner"), L[1]), StringEntry((G + "_Octo3-winner"), L[2]), StringEntry((G + "_Octo4-winner"), L[3]), StringEntry((G + "_Octo5-winner"), L[4]), StringEntry((G + "_Octo6-winner"), L[5]), StringEntry((G + "_Octo7-winner"), L[6]), StringEntry((G + "_Octo8-winner"), L[7]), StringEntry((G + "_Quarter1-winner"), M[0]), StringEntry((G + "_Quarter2-winner"), M[1]), StringEntry((G + "_Quarter3-winner"), M[2]), StringEntry((G + "_Quarter4-winner"), M[3]), StringEntry((G + "_Semi1-winner"), N[0]), StringEntry((G + "_Semi2-winner"), N[1]), StringEntry((G + "Final-winner"), C)] | |
115 | 115 | else throw("Incorrect data arrived in arguments") | |
116 | 116 | } | |
117 | 117 | else throw((("Attach exactly " + toString(I)) + " Waves as payment")) | |
118 | 118 | else throw("Zero betAmount from contract storage") | |
119 | 119 | } | |
120 | 120 | else throw("Only Waves is allowed as payment asset to bet") | |
121 | 121 | else throw("Bet already made") | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | @Verifier(O) | |
126 | 126 | func P () = sigVerify(O.bodyBytes, O.proofs[0], O.senderPublicKey) | |
127 | 127 |
github/deemru/w8io/026f985 29.14 ms ◑