tx · 8EEWkREpJgKRDr1QHUXVHLSmYZpTfVerw19rUGeSEGZE 3N7Esyo3BUCC77zhiPcYYNBxZjUwR3HQes4: -0.01000000 Waves 2019.10.15 14:00 [720964] smart account 3N7Esyo3BUCC77zhiPcYYNBxZjUwR3HQes4 > SELF 0.00000000 Waves
{ "type": 13, "id": "8EEWkREpJgKRDr1QHUXVHLSmYZpTfVerw19rUGeSEGZE", "fee": 1000000, "feeAssetId": null, "timestamp": 1571137211458, "version": 1, "sender": "3N7Esyo3BUCC77zhiPcYYNBxZjUwR3HQes4", "senderPublicKey": "8EeLJnVkgKvVyUxGk216jLwK6X8MgoRBGXi6sygtUapP", "proofs": [ "3nrDaKUE3VRLCwm6YkmxaKw16RhxqAX2gf9vNsLha2nx3M97rrpQcSiKsyvAPdnS7nGQUsfw4KshkYD2HLR86USW" ], "script": "base64:AAIDAAAAAAAAAA0IARIDCgEBEgQKAgEIAAAAIQAAAAAHV0FWRUxFVAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAA+gAAAAAAAAAA+gAAAAABU1SVEVDAAAAAAAAAABkAAAAAApwbXRPblN0YXJ0CQAAaAAAAAIAAAAAAAAAAAoFAAAABU1SVEVDAAAAABBwYXJ0eU93bmVyUHViS2V5CQACWQAAAAECAAAALEZDYVA0akxoTGF3ekVxYndBUUdBVnZQUUJ2MmgzTGRFUkN4N2Zja0R2bnpyAAAAABFwYXJ0eU93bmVyQWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAQcGFydHlPd25lclB1YktleQAAAAANbGVhc2luZ1BlcmlvZAAAAAAAAAknwAAAAAAGd2luQW10CQAAaAAAAAIAAAAAAAAAAAEFAAAAB1dBVkVMRVQAAAAADW1pbkhlaWdodERpZmYAAAAAAAAAAAEAAAAADW1heEhlaWdodERpZmYAAAAAAAAAAAMAAAAAEWJsb2Nrc09uR2FtZVN0YXJ0AAAAAAAACwBCAAAAAA5ibG9ja3NQZX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YXJ0eSBPd25lciBhZGRyZXNzIG9ubHkDCQEAAAABIQAAAAEJAAH0AAAAAwgFAAAAA3R0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAA3R0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAEHBhcnR5T3duZXJQdWJLZXkJAAACAAAAAQIAAAApVHJhbnNmZXIgaXMgYWxsb3dlZCBmb3IgUGFydHkgT3duZXIgb25seS4GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQcjPb4N", "chainId": 84, "height": 720964, "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 = (10 * b) | |
9 | + | ||
10 | + | let d = fromBase58String("FCaP4jLhLawzEqbwAQGAVvPQBv2h3LdERCx7fckDvnzr") | |
11 | + | ||
12 | + | let e = addressFromPublicKey(d) | |
13 | + | ||
14 | + | let f = 600000 | |
15 | + | ||
16 | + | let g = (1 * a) | |
17 | + | ||
18 | + | let h = 1 | |
19 | + | ||
20 | + | let i = 3 | |
21 | + | ||
22 | + | let j = 720962 | |
23 | + | ||
24 | + | let k = 12 | |
25 | + | ||
26 | + | let l = 8 | |
27 | + | ||
28 | + | let m = fromBase58String("8b4jE7X1yCNcbF4YXZGBKc8T5xdit7b1gENxxx31daua") | |
29 | + | ||
30 | + | let n = ((5 * a) / 1000) | |
31 | + | ||
32 | + | let o = 0 | |
33 | + | ||
34 | + | let p = 1 | |
35 | + | ||
36 | + | let q = 2 | |
37 | + | ||
38 | + | func r (s) = if ((0 > s)) | |
39 | + | then throw("Invalid round number") | |
40 | + | else ("round" + toString(s)) | |
41 | + | ||
42 | + | ||
43 | + | func t (s) = { | |
44 | + | let u = getString(this, r(s)) | |
45 | + | let v = if (isDefined(u)) | |
46 | + | then extract(u) | |
47 | + | else "" | |
48 | + | let w = toBase58String(e.bytes) | |
49 | + | if ((v != "")) | |
50 | + | then split(v, "_") | |
51 | + | else ["0", toString(c), w, "UNDEFINED"] | |
52 | + | } | |
53 | + | ||
54 | + | ||
55 | + | func x () = { | |
56 | + | let y = getString(this, "RoundsSharedState") | |
57 | + | let z = if (isDefined(y)) | |
58 | + | then extract(y) | |
59 | + | else "" | |
60 | + | if ((z != "")) | |
61 | + | then split(z, "_") | |
62 | + | else ["", "0", ""] | |
63 | + | } | |
64 | + | ||
65 | + | ||
66 | + | func A (B,s,C,D,E,F) = { | |
67 | + | let G = toString(C) | |
68 | + | if ((B == "MOVE")) | |
69 | + | then { | |
70 | + | let H = toString(addressFromPublicKey(E)) | |
71 | + | let I = size(H) | |
72 | + | let J = x() | |
73 | + | let K = toString((parseIntValue(J[1]) + 1)) | |
74 | + | let L = J[2] | |
75 | + | let M = if (if ((L != "")) | |
76 | + | then (size(L) > ((I + 1) * 10)) | |
77 | + | else false) | |
78 | + | then (("-" + H) + dropRight(L, (I + 1))) | |
79 | + | else (("-" + H) + L) | |
80 | + | WriteSet([DataEntry(r(s), ((((G + "_") + D) + "_") + F)), DataEntry("RoundsSharedState", ((((G + "_") + K) + "_") + M))]) | |
81 | + | } | |
82 | + | else if ((B == "LEASING")) | |
83 | + | then WriteSet([DataEntry(r(s), ((((G + "_") + D) + "_") + F))]) | |
84 | + | else throw(("Unsupported type in writeSetOfRoundData method: " + B)) | |
85 | + | } | |
86 | + | ||
87 | + | ||
88 | + | let N = (height - j) | |
89 | + | ||
90 | + | let O = if ((N >= 0)) | |
91 | + | then (N / k) | |
92 | + | else throw(("Please do not hurry. MRT party will start on " + toString(j))) | |
93 | + | ||
94 | + | let P = (N % k) | |
95 | + | ||
96 | + | let Q = ((O * k) + j) | |
97 | + | ||
98 | + | let R = (Q + l) | |
99 | + | ||
100 | + | let S = t(O) | |
101 | + | ||
102 | + | let T = parseIntValue(S[o]) | |
103 | + | ||
104 | + | let U = c | |
105 | + | ||
106 | + | let V = if ((height >= T)) | |
107 | + | then (T > Q) | |
108 | + | else false | |
109 | + | ||
110 | + | let W = (P > l) | |
111 | + | ||
112 | + | let X = if (V) | |
113 | + | then true | |
114 | + | else W | |
115 | + | ||
116 | + | let Y = !(X) | |
117 | + | ||
118 | + | @Callable(Z) | |
119 | + | func move (C) = { | |
120 | + | let aa = (height + h) | |
121 | + | let ab = (height + i) | |
122 | + | let ac = if ((aa >= R)) | |
123 | + | then (C == R) | |
124 | + | else if ((C >= aa)) | |
125 | + | then (ab >= C) | |
126 | + | else false | |
127 | + | let ad = if (isDefined(Z.payment)) | |
128 | + | then extract(Z.payment) | |
129 | + | else throw("Please attach payment with MRT to participate in MRT party") | |
130 | + | if ((ad.assetId != m)) | |
131 | + | then throw("Please use MRT as a payment asset to participate in MRT party") | |
132 | + | else if ((U > ad.amount)) | |
133 | + | then throw(("Sorry my friend but your payment is to small. Current min payment is " + toString(U))) | |
134 | + | else if (!(ac)) | |
135 | + | then throw((((((("Sorry, newWinHeight=" + toString(C)) + " is out of [") + toString(aa)) + ", ") + toString(ab)) + "] range")) | |
136 | + | else if (X) | |
137 | + | then throw((("Sorry but round #" + toString(O)) + " is finished.")) | |
138 | + | else A("MOVE", O, C, toBase58String(Z.callerPublicKey), Z.callerPublicKey, "UNDEFINED") | |
139 | + | } | |
140 | + | ||
141 | + | ||
142 | + | ||
143 | + | @Callable(Z) | |
144 | + | func registerLeasingTx (s,F) = { | |
145 | + | let ae = fromBase58String(F) | |
146 | + | let af = t(s) | |
147 | + | let ag = fromBase58String(af[p]) | |
148 | + | if ((s > O)) | |
149 | + | then throw("Impossible to register leasing transaction for round in future") | |
150 | + | else if (if ((s == O)) | |
151 | + | then Y | |
152 | + | else false) | |
153 | + | then throw("Impossible to register leasing transaction - winner has not been determined yet") | |
154 | + | else if ((size(F) != 44)) | |
155 | + | then throw("Invalid leasing transaction id length") | |
156 | + | else if ((0 >= size(ae))) | |
157 | + | then throw("Leasing transaction id is not encoded as Base58 format") | |
158 | + | else if (isDefined(transactionHeightById(ae))) | |
159 | + | then throw("Passed leasingId58 has already existed in blockchain") | |
160 | + | else if ((af[q] != "UNDEFINED")) | |
161 | + | then throw(("Leasing tx id has already registrered for round " + toString(s))) | |
162 | + | else if ((Z.callerPublicKey != ag)) | |
163 | + | then throw("Leasing tx can be registered by round winner only") | |
164 | + | else { | |
165 | + | let ah = parseIntValue(af[o]) | |
166 | + | A("LEASING", s, ah, af[p], toBytes(""), F) | |
167 | + | } | |
168 | + | } | |
169 | + | ||
170 | + | ||
171 | + | @Verifier(ai) | |
172 | + | func aj () = { | |
173 | + | let ak = (height > (j + f)) | |
174 | + | let al = ai | |
175 | + | if ($isInstanceOf(al, "LeaseTransaction")) | |
176 | + | then { | |
177 | + | let am = al | |
178 | + | let an = am.proofs[0] | |
179 | + | let s = toInt(am.proofs[1]) | |
180 | + | let af = t(s) | |
181 | + | let ao = fromBase58String(af[p]) | |
182 | + | let ap = fromBase58String(af[q]) | |
183 | + | if (ak) | |
184 | + | then throw("Sorry but leasing period has been ended") | |
185 | + | else if (!(sigVerify(am.bodyBytes, an, ao))) | |
186 | + | then throw("Invalid leasing transaction signature. Leasing is allowed for winner only.") | |
187 | + | else if ((am.id != ap)) | |
188 | + | then throw("Leasing transaction id doesn't match with registered leasing id") | |
189 | + | else if ((am.amount != g)) | |
190 | + | then throw(("Impossible to lease less or greater than " + toString(g))) | |
191 | + | else if ((am.fee != n)) | |
192 | + | then throw(("Impossible to lease with fee less or greater than " + toString(n))) | |
193 | + | else true | |
194 | + | } | |
195 | + | else if ($isInstanceOf(al, "LeaseCancelTransaction")) | |
196 | + | then { | |
197 | + | let aq = al | |
198 | + | if (!(ak)) | |
199 | + | then throw("MRT party has not finished yet. Leasing Cancel is not allowed.") | |
200 | + | else if (!(sigVerify(ai.bodyBytes, ai.proofs[0], d))) | |
201 | + | then throw("Leasing Cancel is allowed to Party Owner only") | |
202 | + | else if ((aq.fee != n)) | |
203 | + | then throw(("Impossible to cancle leasing with fee less or greater than " + toString(n))) | |
204 | + | else true | |
205 | + | } | |
206 | + | else if ($isInstanceOf(al, "TransferTransaction")) | |
207 | + | then { | |
208 | + | let ar = al | |
209 | + | if (!(ak)) | |
210 | + | then throw("MRT party has not finished yet. Transfer is not allowed.") | |
211 | + | else if ((addressFromRecipient(ar.recipient).bytes != e.bytes)) | |
212 | + | then throw("Transfer is allowed to Party Owner address only") | |
213 | + | else if (!(sigVerify(ar.bodyBytes, ar.proofs[0], d))) | |
214 | + | then throw("Transfer is allowed for Party Owner only.") | |
215 | + | else true | |
216 | + | } | |
217 | + | else if ($isInstanceOf(al, "SetScriptTransaction")) | |
218 | + | then { | |
219 | + | let as = al | |
220 | + | sigVerify(ai.bodyBytes, ai.proofs[0], ai.senderPublicKey) | |
221 | + | } | |
222 | + | else false | |
223 | + | } | |
224 | + |
github/deemru/w8io/026f985 25.93 ms ◑