tx · 6d8wCYCfYLTGm2pvPSAMeBE8XVbSDyhscX2ZcT3T2KAh

3MvL5pLQjfYohUVZK9yXuvZCqRetSDVjRd7:  -0.01000000 Waves

2019.08.30 16:20 [654038] smart account 3MvL5pLQjfYohUVZK9yXuvZCqRetSDVjRd7 > SELF 0.00000000 Waves

{ "type": 13, "id": "6d8wCYCfYLTGm2pvPSAMeBE8XVbSDyhscX2ZcT3T2KAh", "fee": 1000000, "feeAssetId": null, "timestamp": 1567171205773, "version": 1, "sender": "3MvL5pLQjfYohUVZK9yXuvZCqRetSDVjRd7", "senderPublicKey": "FnkW9DPqDdbYRQRkebxoeKK5rhbQT2oejwxL1JZKxnjx", "proofs": [ "4fTEnw5hYePdgcPHnLig9Ew1XpN9xuR7nGtdaHSTqCbqtz3kZT5nHM8QTsLgWUKFGZ9d148Scekb5bfMtWoB5a1d" ], "script": "base64:AAIDAAAAAAAAAAAAAAAUAAAAAApiZXRBc3NldElkAQAAACCOzwd0wFauq1oyFNNvfYKq/bZScvC/NuqxJOsrt3qFuQAAAAAGbWF4RmVlAAAAAAAATEtAAAAAAAZtaW5CZXQAAAAAAABMS0AAAAAAD21pbk1hdGNoTm9taW5hbAAAAAAAAExLQAAAAAAGbGV2ZWwxAAAAAAAAAAD6AAAAAAZsZXZlbDIAAAAAAAAAAJYAAAAABmxldmVsMwAAAAAAAAAAZAAAAAAIY2FzaEJhY2sAAAAAAAAAAfQAAAAACHRvdGFsUmVmAAAAAAAAAAAKAAAAAA1jaGFuZ2VBZGRyZXNzAgAAACMzTkF4c2JIeFM2M2F6ZEFpY1Z2TEdzeGpBUTlEc0s2TDROTAAAAAALbWluV2l0aGRyYXcAAAAAAAAPQkABAAAAE2dldENhbGxlckJ5RGVsZWdhdGUAAAACAAAAAWkAAAAIZnVuY3Rpb24EAAAABmNhbGxlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAxjYWxsZXJQcmVmaXgJAAEsAAAAAgIAAAA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TZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGQAAAACBQAAAAZhbW91bnQIBQAAAAFpAAAAA2ZlZQUAAAAEdW5pdAUAAAADbmlsAAAAAWkBAAAACHJlZ2lzdGVyAAAAAgAAAAdyZWZlcmVyAAAABHNhbHQDCQEAAAABIQAAAAEJAQAAAAhjaGVja0ZlZQAAAAEFAAAAAWkJAAACAAAAAQIAAAAFZXJyb3IDCQEAAAACIT0AAAACCQABLwAAAAIJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAAAAAAAAAAAAwIAAAADMTIzCQAAAgAAAAECAAAAFHByb29mIG9mIHdvcmsgZmFpbGVkBAAAAAVvd25lcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAACWlzRGVmaW5lZAAAAAEJAQAAAApnZXRSZWZlcmVyAAAAAQUAAAAFb3duZXIJAAACAAAAAQIAAAASQWxyZWFkeSByZWdpc3RlcmVkCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVvd25lcgIAAAAIX3JlZmVyZXIFAAAAB3JlZmVyZXIJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAdyZWZlcmVyAgAAAApfcmVmZXJyYWxfBQAAAAVvd25lcgUAAAAFb3duZXIFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIIBQAAAAFpAAAAA2ZlZQUAAAAEdW5pdAUAAAADbmlsAAAAAL/KOc4=", "chainId": 84, "height": 654038, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = base58'AcTzTgW1QbJK4Qu6hCsUCLjpxUyD3dofv8xq2CAPbzKJ'
5+
6+let b = 5000000
7+
8+let c = 5000000
9+
10+let d = 5000000
11+
12+let e = 250
13+
14+let f = 150
15+
16+let g = 100
17+
18+let h = 500
19+
20+let i = 10
21+
22+let j = "3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL"
23+
24+let k = 1000000
25+
26+func l (m,n) = {
27+ let o = toBase58String(m.caller.bytes)
28+ let p = ("delegate_" + o)
29+ if ((getBoolean(this, ((p + "_") + n)) == true))
30+ then {
31+ let q = getString(this, (p + "_address"))
32+ if ($isInstanceOf(q, "String"))
33+ then {
34+ let r = q
35+ r
36+ }
37+ else o
38+ }
39+ else o
40+ }
41+
42+
43+func s (m) = if ((m.fee > b))
44+ then throw("unreasonable large fee")
45+ else if ((m.feeAssetId != unit))
46+ then throw("fee must be in WAVES")
47+ else true
48+
49+
50+func t (m,u,v,w) = if (s(m))
51+ then if (if ((v > 0))
52+ then isDefined(w)
53+ else false)
54+ then ScriptResult(u, TransferSet([ScriptTransfer(m.caller, m.fee, unit), ScriptTransfer(extract(w), v, a)]))
55+ else ScriptResult(u, TransferSet([ScriptTransfer(m.caller, m.fee, unit)]))
56+ else throw("error")
57+
58+
59+func x (m,y) = (getString(this, (y + "_owner")) == toBase58String(m.caller.bytes))
60+
61+
62+func z (y) = (extract(getInteger(this, (y + "_amount"))) - extract(getInteger(this, (y + "_spent"))))
63+
64+
65+func A (y) = {
66+ let B = getInteger(this, (y + "_defeat"))
67+ if ((B == 1))
68+ then true
69+ else (B == 3)
70+ }
71+
72+
73+func C (D) = getString(this, (D + "_referer"))
74+
75+
76+func E (F,G) = {
77+ let H = (F + "_balance")
78+ DataEntry(H, (G + {
79+ let q = getInteger(this, H)
80+ if ($isInstanceOf(q, "Int"))
81+ then {
82+ let I = q
83+ I
84+ }
85+ else 0
86+ }))
87+ }
88+
89+
90+func J (F,K,G,L,M,N) = DataEntry(((("fund_" + F) + "_") + M), ((((((K + ":") + toString(G)) + ":") + L) + ":") + N))
91+
92+
93+@Callable(m)
94+func bet (O,P,Q,R) = {
95+ let K = toBase58String(m.caller.bytes)
96+ let S = extract(m.payment)
97+ if ((S.assetId != a))
98+ then throw(("bet must be in asset " + toBase58String(a)))
99+ else if ((c > S.amount))
100+ then throw(("minimum allowed bet is " + toString(c)))
101+ else if (if ((Q != "for"))
102+ then (Q != "against")
103+ else false)
104+ then throw("unexpected side")
105+ else {
106+ let y = (((((("bet_" + O) + "_") + toBase58String(m.caller.bytes)) + "_") + take(toBase58String(m.transactionId), 15)) + "_")
107+ let T = ((("seq_" + O) + "_") + P)
108+ let U = {
109+ let q = getInteger(this, T)
110+ if ($isInstanceOf(q, "Int"))
111+ then {
112+ let V = q
113+ (V + 1)
114+ }
115+ else 1
116+ }
117+ t(m, WriteSet([DataEntry((y + "owner"), K), DataEntry((y + "event"), O), DataEntry((y + "subevent"), P), DataEntry((y + "side"), Q), DataEntry((y + "odds"), R), DataEntry((y + "amount"), S.amount), DataEntry((y + "spent"), 0), DataEntry((y + "timestamp"), lastBlock.timestamp), DataEntry((y + "sequence"), U), DataEntry(T, U)]), 0, unit)
118+ }
119+ }
120+
121+
122+
123+@Callable(m)
124+func cancel (y) = if ((getString(this, (y + "_owner")) != l(m, "autocancel")))
125+ then throw("must be owner or its delegate to cancel")
126+ else {
127+ let v = extract(getInteger(this, (y + "_amount")))
128+ let W = extract(getInteger(this, (y + "_spent")))
129+ let X = (v - W)
130+ t(m, WriteSet([DataEntry((y + "_spent"), v), DataEntry((y + "_cancel_amount"), X), DataEntry((y + "_cancel_tx"), toBase58String(m.transactionId))]), X, m.caller)
131+ }
132+
133+
134+
135+@Callable(m)
136+func betMatch (Y,Z) = if ((getString(this, (Y + "_event")) != getString(this, (Z + "_event"))))
137+ then throw("event id must match")
138+ else if ((getString(this, (Y + "_subevent")) != getString(this, (Z + "_subevent"))))
139+ then throw("subevent id must match")
140+ else if ((getString(this, (Y + "_side")) != "for"))
141+ then throw("invalid *for* bet")
142+ else if ((getString(this, (Z + "_side")) != "against"))
143+ then throw("invalid *against* bet")
144+ else {
145+ let aa = getStringValue(this, (Y + "_owner"))
146+ let ab = getStringValue(this, (Z + "_owner"))
147+ let ac = extract(getString(this, (Y + "_event")))
148+ let ad = (((((((("match_" + ac) + "_") + takeRight(aa, 10)) + "_") + takeRight(ab, 10)) + "_") + toBase58String(m.transactionId)) + "_")
149+ let R = extract(getInteger(this, (Y + "_odds")))
150+ let ae = z(Y)
151+ let af = z(Z)
152+ let ag = ae
153+ let ah = ((af * 100) / (R - 100))
154+ let ai = if ((ag > ah))
155+ then ah
156+ else ag
157+ if ((d > ai))
158+ then throw("match nominal too low")
159+ else {
160+ let aj = ai
161+ let ak = ((ai * (R - 100)) / 100)
162+ let al = (aj + extract(getInteger(this, (Y + "_spent"))))
163+ let am = (ak + extract(getInteger(this, (Z + "_spent"))))
164+ if ((al > extract(getInteger(this, (Y + "_amount")))))
165+ then throw("invalid match")
166+ else if ((am > extract(getInteger(this, (Z + "_amount")))))
167+ then throw("invalid match")
168+ else t(m, WriteSet([DataEntry((ad + "amount"), (aj + ak)), DataEntry((ad + "for"), Y), DataEntry((ad + "against"), Z), DataEntry((Y + "_spent"), al), DataEntry((Z + "_spent"), am)]), 0, unit)
169+ }
170+ }
171+
172+
173+
174+@Callable(m)
175+func approveDefeat (an,ao) = if (if (isDefined(getInteger(this, (an + "_defeat"))))
176+ then (ao == 2)
177+ else false)
178+ then throw("can't dispute after approve")
179+ else if ((getString(this, (an + "_owner")) != l(m, "autoapprove")))
180+ then throw("must be owner or its delegate to approve")
181+ else t(m, WriteSet([DataEntry((an + "_defeat"), ao)]), 0, unit)
182+
183+
184+
185+@Callable(m)
186+func payWinner (ap) = if (!(s(m)))
187+ then throw("error")
188+ else if (isDefined(getInteger(this, (ap + "_paid"))))
189+ then throw("already paid")
190+ else {
191+ let aq = extract(getString(this, (ap + "_for")))
192+ let ar = extract(getString(this, (ap + "_against")))
193+ let as = A(aq)
194+ let at = A(ar)
195+ if (if (!(as))
196+ then !(at)
197+ else false)
198+ then throw("no side approved defeat")
199+ else {
200+ let au = if (as)
201+ then ar
202+ else aq
203+ let av = getStringValue(this, (au + "_owner"))
204+ let v = extract(getInteger(this, (ap + "_amount")))
205+ let aw = toBase58String(m.transactionId)
206+ let N = toString(lastBlock.timestamp)
207+ let ax = ((v * i) / 1000)
208+ ScriptResult(WriteSet([DataEntry((ap + "_paid"), toBase58String(m.transactionId)), {
209+ let q = C(av)
210+ if ($isInstanceOf(q, "String"))
211+ then {
212+ let ay = q
213+ let az = ((ax * e) / 1000)
214+ let aA = ((ax * h) / 1000)
215+[E(av, aA), J(av, av, aA, "cashback", aw, N), E(ay, az), J(ay, av, az, "l1", aw, N), {
216+ let aB = C(ay)
217+ if ($isInstanceOf(aB, "String"))
218+ then {
219+ let aC = aB
220+ let aD = ((ax * f) / 1000)
221+[E(aC, aD), J(aC, av, aD, "l2", aw, N), {
222+ let aE = C(aC)
223+ if ($isInstanceOf(aE, "String"))
224+ then {
225+ let aF = aE
226+ let aG = ((ax * g) / 1000)
227+[E(aF, aG), J(aF, av, aG, "l3", aw, N), E(j, (((ax - az) - aD) - aG)), J(j, av, (((ax - az) - aD) - aG), "change", aw, N)]
228+ }
229+ else [E(j, ((ax - az) - aD)), J(j, av, ((ax - az) - aD), "change", aw, N)]
230+ }]
231+ }
232+ else [E(j, (ax - az)), J(j, av, (ax - az), "change", aw, N)]
233+ }]
234+ }
235+ else [E(j, ax), J(j, av, ax, "change", aw, N)]
236+ }]), TransferSet([ScriptTransfer(m.caller, m.fee, unit), ScriptTransfer(addressFromStringValue(av), (v - ax), a)]))
237+ }
238+ }
239+
240+
241+
242+@Callable(m)
243+func delegate (aH,aI,aJ) = t(m, WriteSet([DataEntry((("delegate_" + aH) + "_address"), toBase58String(m.caller.bytes)), DataEntry((("delegate_" + aH) + "_autoapprove"), aI), DataEntry((("delegate_" + aH) + "_autocancel"), aJ)]), 0, unit)
244+
245+
246+
247+@Callable(m)
248+func withdraw () = if (!(s(m)))
249+ then throw("error")
250+ else {
251+ let K = toBase58String(m.caller.bytes)
252+ let aw = toBase58String(m.transactionId)
253+ let H = (K + "_balance")
254+ let v = {
255+ let q = getInteger(this, H)
256+ if ($isInstanceOf(q, "Int"))
257+ then {
258+ let I = q
259+ I
260+ }
261+ else 0
262+ }
263+ if ((k > v))
264+ then throw(("Min withdraw amount is" + toString(k)))
265+ else ScriptResult(WriteSet([DataEntry(H, 0), DataEntry(((("withdraw_" + K) + "_") + aw), ((toString(v) + ":") + toString(lastBlock.timestamp)))]), TransferSet([ScriptTransfer(m.caller, (v + m.fee), unit)]))
266+ }
267+
268+
269+
270+@Callable(m)
271+func register (aK,aL) = if (!(s(m)))
272+ then throw("error")
273+ else if ((take(toBase58String(m.transactionId), 3) != "123"))
274+ then throw("proof of work failed")
275+ else {
276+ let K = toBase58String(m.caller.bytes)
277+ if (isDefined(C(K)))
278+ then throw("Already registered")
279+ else ScriptResult(WriteSet([DataEntry((K + "_referer"), aK), DataEntry(((aK + "_referral_") + K), K)]), TransferSet([ScriptTransfer(m.caller, m.fee, unit)]))
280+ }
281+
282+

github/deemru/w8io/169f3d6 
32.01 ms