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