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