tx · Hx8HPrcJsLe88CwzLzs3jiFS7V7bHNMfNZxFuQNxiSA9 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo: -0.01400000 Waves 2019.08.16 11:29 [633396] smart account 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo > SELF 0.00000000 Waves
{ "type": 13, "id": "Hx8HPrcJsLe88CwzLzs3jiFS7V7bHNMfNZxFuQNxiSA9", "fee": 1400000, "feeAssetId": null, "timestamp": 1565944198695, "version": 1, "sender": "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo", "senderPublicKey": "5GQSFwNMkJFTT3FeLT3KENqoSr42yiJP3Av5qAYq1F7f", "proofs": [ "5XsAsfNMQkJAuYgLZEPxrscgKWNtWV5ppeZcZ1fUNjfDqma5VGFqWBU67EnN4JksoZWKUgdQoeBBHVb4UBfEAkQ" ], "script": "base64:AAIDAAAAAAAAAAAAAAAMAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjdXaWlzbzd2bzY5cHFXZkx0cHpUM3Riek1VR2FocXBnbwAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAAAAAANGRUUAAAAAAAANu6AAAAAAA1dMVAEAAAAgXc1YMiAxtU0669iAvoWYChIkz8rePUfYvMDdGTUOq6oBAAAAC2dldE51bUJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTd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AAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAhjb250ZXN0XwkAAaQAAAABBQAAABFjb250ZXN0Q3Vyck51bWJlcgIAAAANX2N1cnJlbmN5cmF0ZQUAAAAMY3VycmVuY3lSYXRlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAIY29udGVzdF8JAAGkAAAAAQUAAAARY29udGVzdEN1cnJOdW1iZXICAAAAB19oZWlnaHQFAAAABmhlaWdodAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24GBpMiyI0=", "chainId": 84, "height": 633396, "spentComplexity": 0 } View: original | compacted Prev: 6hv4feAeF2sgPMsAaTyFQkL8V2TFGu9cG5Vzo44atNC7 Next: 8V8gvhurrz3WCEK5zvC9SRJxXJMve98iRvLeXi7LKuxv Diff:
Old | New | Differences | |
---|---|---|---|
51 | 51 | ||
52 | 52 | func q (r) = { | |
53 | 53 | let p = h("contest_currentnumber") | |
54 | - | m(((" | |
54 | + | m(((("bet_" + toString(p)) + "_") + toString(r))) | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "RUNNING" | |
5 | 5 | ||
6 | 6 | let b = "CLOSED" | |
7 | 7 | ||
8 | 8 | let c = "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo" | |
9 | 9 | ||
10 | 10 | let d = "WAVES" | |
11 | 11 | ||
12 | 12 | let e = "NONE" | |
13 | 13 | ||
14 | 14 | let f = 900000 | |
15 | 15 | ||
16 | 16 | let g = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7' | |
17 | 17 | ||
18 | 18 | func h (i) = { | |
19 | 19 | let j = { | |
20 | 20 | let k = getInteger(this, i) | |
21 | 21 | if ($isInstanceOf(k, "Int")) | |
22 | 22 | then { | |
23 | 23 | let l = k | |
24 | 24 | l | |
25 | 25 | } | |
26 | 26 | else 0 | |
27 | 27 | } | |
28 | 28 | j | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func m (i) = { | |
33 | 33 | let n = { | |
34 | 34 | let k = getString(this, i) | |
35 | 35 | if ($isInstanceOf(k, "String")) | |
36 | 36 | then { | |
37 | 37 | let l = k | |
38 | 38 | l | |
39 | 39 | } | |
40 | 40 | else e | |
41 | 41 | } | |
42 | 42 | n | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func o () = { | |
47 | 47 | let p = h("contest_currentnumber") | |
48 | 48 | m((("contest_" + toString(p)) + "_status")) | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func q (r) = { | |
53 | 53 | let p = h("contest_currentnumber") | |
54 | - | m(((" | |
54 | + | m(((("bet_" + toString(p)) + "_") + toString(r))) | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func s () = { | |
59 | 59 | let t = extract(addressFromString("3PPTrTo3AzR56N7ArzbU3Bpq9zYMgcf39Mk")) | |
60 | 60 | let u = { | |
61 | 61 | let k = getInteger(t, "waves_usd_2") | |
62 | 62 | if ($isInstanceOf(k, "Int")) | |
63 | 63 | then { | |
64 | 64 | let l = k | |
65 | 65 | l | |
66 | 66 | } | |
67 | 67 | else 0 | |
68 | 68 | } | |
69 | 69 | u | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | @Callable(v) | |
74 | 74 | func setContestStatus (w,x) = { | |
75 | 75 | let y = toBase58String(v.caller.bytes) | |
76 | 76 | if ((y != c)) | |
77 | 77 | then throw("Only dAPP Owner can set Contest Status.") | |
78 | 78 | else if (if ((x != a)) | |
79 | 79 | then (x != b) | |
80 | 80 | else false) | |
81 | 81 | then throw(("Invalid status: " + x)) | |
82 | 82 | else WriteSet([DataEntry((("contest_" + toString(w)) + "_status"), x)]) | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | ||
87 | 87 | @Callable(v) | |
88 | 88 | func setContestConfiguration (z,A) = { | |
89 | 89 | let y = toBase58String(v.caller.bytes) | |
90 | 90 | let p = h("contest_currentnumber") | |
91 | 91 | let B = m((("contest_" + toString(p)) + "_status")) | |
92 | 92 | let C = (p + 1) | |
93 | 93 | if ((y != c)) | |
94 | 94 | then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + y) + " dapp owner: ") + c)) | |
95 | 95 | else if ((height >= A)) | |
96 | 96 | then throw(("Start Height must be greater than current Blockchain height: " + toString(height))) | |
97 | 97 | else if ((B == a)) | |
98 | 98 | then throw(("You cannot configure a new Contest while old Contest status is: " + B)) | |
99 | 99 | else if ((z != d)) | |
100 | 100 | then throw((("dAPP does not support currency: " + z) + " yet.")) | |
101 | 101 | else { | |
102 | 102 | let D = (A + (7 * 1440)) | |
103 | 103 | WriteSet([DataEntry("contest_currentnumber", C), DataEntry((("contest_" + toString(C)) + "_currency"), z), DataEntry((("contest_" + toString(C)) + "_startheight"), A), DataEntry((("contest_" + toString(C)) + "_finishheight"), D), DataEntry((("contest_" + toString(C)) + "_status"), a), DataEntry((("contest_" + toString(C)) + "_votecounter"), 0)]) | |
104 | 104 | } | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | ||
109 | 109 | @Callable(v) | |
110 | 110 | func bet (E) = { | |
111 | 111 | let y = toBase58String(v.caller.bytes) | |
112 | 112 | let F = extract(v.payment) | |
113 | 113 | let p = h("contest_currentnumber") | |
114 | 114 | let A = h((("contest_" + toString(p)) + "_startheight")) | |
115 | 115 | let D = h((("contest_" + toString(p)) + "_finishheight")) | |
116 | 116 | let G = h((("contest_" + toString(p)) + "_votecounter")) | |
117 | 117 | let B = m((("contest_" + toString(p)) + "_status")) | |
118 | 118 | let H = (G + 1) | |
119 | 119 | let i = ((("bet_" + toString(p)) + "_") + E) | |
120 | 120 | let x = m((("contest_" + toString(p)) + "_status")) | |
121 | 121 | let I = h(i) | |
122 | 122 | let J = q(I) | |
123 | 123 | if ((height > (D - (2 * 1440)))) | |
124 | 124 | then throw("You cannot bet anymore at this height.") | |
125 | 125 | else if ((B != a)) | |
126 | 126 | then throw("Invalid status: you cannot bet now.") | |
127 | 127 | else if (if ((F.assetId != g)) | |
128 | 128 | then true | |
129 | 129 | else (F.amount != 500000)) | |
130 | 130 | then throw("You must pay 5 WLT to bet.") | |
131 | 131 | else if (if (true) | |
132 | 132 | then true | |
133 | 133 | else if ((J != e)) | |
134 | 134 | then (J != y) | |
135 | 135 | else false) | |
136 | 136 | then throw(((((((("key: " + i) + " Another wallet: ") + J) + " did bet already on rate: ") + E) + " bet:") + toString(I))) | |
137 | 137 | else WriteSet([DataEntry((((("bet_" + toString(p)) + "_") + toString(H)) + "_owner"), y), DataEntry(((("bet_" + toString(p)) + "_") + E), H), DataEntry((("contest_" + toString(p)) + "_votecounter"), H)]) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(v) | |
143 | 143 | func closecontest (K) = { | |
144 | 144 | let p = h("contest_currentnumber") | |
145 | 145 | let L = h(((("bet_" + toString(p)) + "_") + K)) | |
146 | 146 | let M = q(L) | |
147 | 147 | let y = toBase58String(v.caller.bytes) | |
148 | 148 | let N = wavesBalance(this) | |
149 | 149 | let B = m((("contest_" + toString(p)) + "_status")) | |
150 | 150 | let O = WriteSet([DataEntry((("contest_" + toString(p)) + "_status"), b), DataEntry((("contest_" + toString(p)) + "_winner"), M), DataEntry((("contest_" + toString(p)) + "_currencyrate"), K), DataEntry((("contest_" + toString(p)) + "_height"), height)]) | |
151 | 151 | if ((y != c)) | |
152 | 152 | then throw("Only dAPP Owner can Close Contest.") | |
153 | 153 | else if ((B != a)) | |
154 | 154 | then throw(("Cannot close a contest in status: " + B)) | |
155 | 155 | else if ((M != e)) | |
156 | 156 | then { | |
157 | 157 | let P = TransferSet([ScriptTransfer(extract(addressFromString(M)), (wavesBalance(this) - f), unit)]) | |
158 | 158 | ScriptResult(WriteSet([DataEntry((("contest_" + toString(p)) + "_status"), b), DataEntry((("contest_" + toString(p)) + "_winner"), M), DataEntry((("contest_" + toString(p)) + "_currencyrate"), K), DataEntry((("contest_" + toString(p)) + "_height"), height)]), P) | |
159 | 159 | } | |
160 | 160 | else WriteSet([DataEntry((("contest_" + toString(p)) + "_status"), b), DataEntry((("contest_" + toString(p)) + "_winner"), M), DataEntry((("contest_" + toString(p)) + "_currencyrate"), K), DataEntry((("contest_" + toString(p)) + "_height"), height)]) | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | @Verifier(Q) | |
165 | 165 | func R () = { | |
166 | 166 | let k = Q | |
167 | 167 | if (if ($isInstanceOf(k, "SetScriptTransaction")) | |
168 | 168 | then true | |
169 | 169 | else $isInstanceOf(k, "DataTransaction")) | |
170 | 170 | then sigVerify(Q.bodyBytes, Q.proofs[0], Q.senderPublicKey) | |
171 | 171 | else if ($isInstanceOf(k, "InvokeScriptTransaction")) | |
172 | 172 | then true | |
173 | 173 | else true | |
174 | 174 | } | |
175 | 175 |
github/deemru/w8io/026f985 34.68 ms ◑