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