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