tx · DEsj35kofQbVdmSvxVuENLmCjctKu1cFtfBKRnvj15Ce

3MqrCjGHmHKthY7DkmtXzXDHCZsDJxcZfkx:  -0.01000000 Waves

2019.12.02 15:54 [791066] smart account 3MqrCjGHmHKthY7DkmtXzXDHCZsDJxcZfkx > SELF 0.00000000 Waves

{ "type": 13, "id": "DEsj35kofQbVdmSvxVuENLmCjctKu1cFtfBKRnvj15Ce", "fee": 1000000, "feeAssetId": null, "timestamp": 1575291267937, "version": 1, "sender": "3MqrCjGHmHKthY7DkmtXzXDHCZsDJxcZfkx", "senderPublicKey": "8pCgiu3QYfjUnQddr2r2s18YxyXrzwraoPjBufMicffY", "proofs": [ "5Uijqf9GhCoGQ6b2vAZmRTY1XtVftG7PyJ6kVAbF7piDsUoZDxUvx51NYru3qKMQE3MxoyqgGBzYNNzNHbt8XY1o" ], "script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQEAAAAmAAAAAAdXQVZFTEVUCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAZAAAAAAAAAAD6AAAAAAAAAAD6AAAAAAFTVJURUMAAAAAAAAAAGQAAAAACW1heFJvdW5kcwAAAAAAAAAAPAAAAAAHcG10U3RlcAkAAGgAAAACAAAAAAAAAABkBQAAAAVNUlRFQwAAAAAQcGFydHlPd25lclB1YktleQkAAlkAAAABAgAAACMzUFFTMnhCakdzdDJwVkhkTGY2bnpaQVNFNDk1R281ZTZlQgAAAAARcGFydHlPd25lckFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAEHBhcnR5T3duZXJQdWJLZXkAAAAADndpdGhkcmF3UGVyaW9kAAAAAAAAAKjAAAAAAAZ3aW5BbXQJAABoAAAAAgAAAAAAAAAB9AUAAAAHV0FWRUxFVAAAAAAKaGVpZ2h0U3RlcAAAAAAAAAAADwAAAAARYmxvY2tzT25HYW1lU3RhcnQAAAAAAAAMEjIAAAAADmJsb2Nrc1BlclJvdW5kAAAAAAAAAAW0AAAAABR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vbmx5LgMJAQAAAAIhPQAAAAIIBQAAAAN0dHgAAAADZmVlBQAAAAZNaW5GRUUJAAACAAAAAQkAASwAAAACAgAAADVJbXBvc3NpYmxlIHRvIHRyYW5zZmVyIHdpdGggZmVlIGxlc3Mgb3IgZ3JlYXRlciB0aGFuIAkAAaQAAAABBQAAAAZNaW5GRUUGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAA2J0eAUAAAAHJG1hdGNoMAMJAQAAAAEhAAAAAQUAAAATd2l0aGRyYXdQZXJpb2RFbmRlZAkAAAIAAAABAgAAADRNUlQgcGFydHkgaGFzIG5vdCBmaW5pc2hlZCB5ZXQuIEJ1cm4gaXMgbm90IGFsbG93ZWQuAwkBAAAAASEAAAABCQAB9AAAAAMIBQAAAANidHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAANidHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABBwYXJ0eU93bmVyUHViS2V5CQAAAgAAAAECAAAAJUJ1cm4gaXMgYWxsb3dlZCBmb3IgUGFydHkgT3duZXIgb25seS4DCQEAAAACIT0AAAACCAUAAAADYnR4AAAAA2ZlZQUAAAAGTWluRkVFCQAAAgAAAAEJAAEsAAAAAgIAAAAxSW1wb3NzaWJsZSB0byBidXJuIHdpdGggZmVlIGxlc3Mgb3IgZ3JlYXRlciB0aGFuIAkAAaQAAAABBQAAAAZNaW5GRUUGB0K/qB8=", "chainId": 84, "height": 791066, "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 = ((100 * 1000) * 1000)
5+
6+let b = 100
7+
8+let c = 60
9+
10+let d = (100 * b)
11+
12+let e = fromBase58String("3PQS2xBjGst2pVHdLf6nzZASE495Go5e6eB")
13+
14+let f = addressFromPublicKey(e)
15+
16+let g = 43200
17+
18+let h = (500 * a)
19+
20+let i = 15
21+
22+let j = 791090
23+
24+let k = 1460
25+
26+let l = 1450
27+
28+let m = fromBase58String("GPBtronbU3AVKXbk5zz4FULJnx2Abjf8tHekmKzReBxd")
29+
30+let n = ((5 * a) / 1000)
31+
32+let o = 0
33+
34+let p = 1
35+
36+let q = 2
37+
38+let r = 3
39+
40+let s = 4
41+
42+func t (u) = if ((0 > u))
43+ then throw("Invalid round number")
44+ else ("round" + toString(u))
45+
46+
47+func v (u) = {
48+ let w = getString(this, t(u))
49+ let x = if (isDefined(w))
50+ then extract(w)
51+ else ""
52+ if ((x != ""))
53+ then split(x, "_")
54+ else ["0", toString(d), "?", "?", "?", "0"]
55+ }
56+
57+
58+func y () = {
59+ let z = getString(this, "RoundsSharedState")
60+ let A = if (isDefined(z))
61+ then extract(z)
62+ else ""
63+ if ((A != ""))
64+ then split(A, "_")
65+ else ["", "0", ""]
66+ }
67+
68+
69+func B (C,u,D,E,F,G) = {
70+ let H = toString(D)
71+ let I = DataEntry(t(u), ((((((H + "_") + E) + "_") + F) + "_") + G))
72+ if ((C == "MOVE"))
73+ then {
74+ let J = size(E)
75+ let K = y()
76+ let L = toString((parseIntValue(K[1]) + 1))
77+ let M = K[2]
78+ let N = if (if ((M != ""))
79+ then (size(M) > ((J + 1) * 10))
80+ else false)
81+ then (("-" + E) + dropRight(M, (J + 1)))
82+ else (("-" + E) + M)
83+ WriteSet([I, DataEntry("RoundsSharedState", ((((H + "_") + L) + "_") + N))])
84+ }
85+ else if ((C == "WITHDRAW"))
86+ then WriteSet([I])
87+ else throw(("Unsupported type in writeSetOfRoundData method: " + C))
88+ }
89+
90+
91+let O = (height - j)
92+
93+let P = if ((O >= 0))
94+ then (O / k)
95+ else throw(("Please do not hurry. MRT party will start on " + toString(j)))
96+
97+let Q = (O % k)
98+
99+let R = ((P * k) + j)
100+
101+let S = (R + l)
102+
103+let T = v(P)
104+
105+let U = parseIntValue(T[o])
106+
107+let V = d
108+
109+func W (X) = (height >= X)
110+
111+
112+let Y = (U > R)
113+
114+let Z = if ((U == 0))
115+ then W((R + i))
116+ else false
117+
118+let aa = if (W(U))
119+ then Y
120+ else false
121+
122+let ab = if ((Q > l))
123+ then true
124+ else Z
125+
126+let ac = if (aa)
127+ then true
128+ else ab
129+
130+let ad = !(ac)
131+
132+@Callable(ae)
133+func move () = {
134+ let af = (height + i)
135+ let D = if ((af >= S))
136+ then S
137+ else af
138+ let ag = if (isDefined(ae.payment))
139+ then extract(ae.payment)
140+ else throw("Please attach payment with MRT to participate in MRT party")
141+ if ((P >= c))
142+ then throw("MRT party is over")
143+ else if (ac)
144+ then throw((("Sorry but round #" + toString(P)) + " is finished."))
145+ else if ((ag.assetId != m))
146+ then throw("Please use MRT as a payment asset to participate in MRT party")
147+ else if ((V > ag.amount))
148+ then throw(("Sorry my friend but your payment is too small. Current min payment is " + toString(V)))
149+ else B("MOVE", P, D, toString(addressFromPublicKey(ae.callerPublicKey)), toBase58String(ae.callerPublicKey), "?")
150+ }
151+
152+
153+
154+@Callable(ae)
155+func withdraw (u) = {
156+ let ah = v(u)
157+ let ai = fromBase58String(ah[q])
158+ let G = ah[r]
159+ if ((u > P))
160+ then throw("Impossible to withdraw win amount for round in future")
161+ else if (if ((u == P))
162+ then ad
163+ else false)
164+ then throw("Impossible to withdraw win amount - winner has not been determined yet")
165+ else if ((G != "?"))
166+ then throw((("Winner of round #" + toString(u)) + " has already taken the prize"))
167+ else {
168+ let aj = (height > ((j + (c * k)) + g))
169+ let ak = if (aj)
170+ then f
171+ else addressFromPublicKey(ai)
172+ let al = parseIntValue(ah[o])
173+ ScriptResult(B("WITHDRAW", u, al, ah[p], ah[q], toBase58String(ae.transactionId)), TransferSet([ScriptTransfer(ak, h, unit)]))
174+ }
175+ }
176+
177+
178+@Verifier(am)
179+func an () = {
180+ let aj = (height > ((j + (c * k)) + g))
181+ let ao = am
182+ if ($isInstanceOf(ao, "TransferTransaction"))
183+ then {
184+ let ap = ao
185+ if (!(aj))
186+ then throw("MRT party has not finished yet. Transfer is not allowed.")
187+ else if (!(sigVerify(ap.bodyBytes, ap.proofs[0], e)))
188+ then throw("Transfer is allowed for Party Owner only.")
189+ else if ((ap.fee != n))
190+ then throw(("Impossible to transfer with fee less or greater than " + toString(n)))
191+ else true
192+ }
193+ else if ($isInstanceOf(ao, "BurnTransaction"))
194+ then {
195+ let aq = ao
196+ if (!(aj))
197+ then throw("MRT party has not finished yet. Burn is not allowed.")
198+ else if (!(sigVerify(aq.bodyBytes, aq.proofs[0], e)))
199+ then throw("Burn is allowed for Party Owner only.")
200+ else if ((aq.fee != n))
201+ then throw(("Impossible to burn with fee less or greater than " + toString(n)))
202+ else true
203+ }
204+ else false
205+ }
206+

github/deemru/w8io/169f3d6 
29.68 ms