tx · AvizpNgfFuPbJKPvDdyFeb8qnchjsrRHYRAAJ8qxghyz 3MwebA2KGvEpwdZsfxNZKL984KGkLGc1MLh: -0.01000000 Waves 2019.09.09 19:08 [668777] smart account 3MwebA2KGvEpwdZsfxNZKL984KGkLGc1MLh > SELF 0.00000000 Waves
{ "type": 13, "id": "AvizpNgfFuPbJKPvDdyFeb8qnchjsrRHYRAAJ8qxghyz", "fee": 1000000, "feeAssetId": null, "timestamp": 1568045071578, "version": 1, "sender": "3MwebA2KGvEpwdZsfxNZKL984KGkLGc1MLh", "senderPublicKey": "FUTjZiUNUgYQt2XUAvwsHBTz6FSNxqBaNbXHWBEmWLda", "proofs": [ "4xPesUzBzGuGUyTabbY7BVsTtxWyxVgVVLf61pfy4Uc37ypJjV7UTHJmWdqi5aUyyamui6UBdgp7iDM1i3xBfuyY" ], "script": "base64:AAIDAAAAAAAAAAAAAAAfAQAAABNnZXRFeHRBZGRyZXNzT3JhY2xlAAAAAAkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTXhHY2FiekZyWWlmWHpTNXlRTUZEcFREV1V5M3N1ZWhoRgAAAAALQkxBQ0tMSVNURUQCAAAACWJsYWNrbGlzdAAAAAALb3duZXJQdWJLZXkBAAAAIPPJYQ6pxh+2xQlvvztLXYhGmug9CV4RAQ34P/J4KzA1AAAAAAROT05FAgAAAARub25lAAAAAAZDTE9TRUQCAAAABWNsb3NlAAAAAAZPUEVORUQCAAAABG9wZW4BAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQd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hbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAtvd25lclB1YktleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAC293bmVyUHViS2V5B21a0uI=", "chainId": 84, "height": 668777, "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 | + | func a () = extract(addressFromString("3MxGcabzFrYifXzS5yQMFDpTDWUy3suehhF")) | |
5 | + | ||
6 | + | ||
7 | + | let b = "blacklist" | |
8 | + | ||
9 | + | let c = base58'HQeAwBfpq2J3aijECVJfwqfZLPK6GB1ppWutu3Nm5W1a' | |
10 | + | ||
11 | + | let d = "none" | |
12 | + | ||
13 | + | let e = "close" | |
14 | + | ||
15 | + | let f = "open" | |
16 | + | ||
17 | + | func g (h) = { | |
18 | + | let i = { | |
19 | + | let j = getInteger(this, h) | |
20 | + | if ($isInstanceOf(j, "Int")) | |
21 | + | then { | |
22 | + | let k = j | |
23 | + | k | |
24 | + | } | |
25 | + | else 0 | |
26 | + | } | |
27 | + | i | |
28 | + | } | |
29 | + | ||
30 | + | ||
31 | + | func l (h) = { | |
32 | + | let m = { | |
33 | + | let j = getString(this, h) | |
34 | + | if ($isInstanceOf(j, "String")) | |
35 | + | then { | |
36 | + | let k = j | |
37 | + | k | |
38 | + | } | |
39 | + | else d | |
40 | + | } | |
41 | + | m | |
42 | + | } | |
43 | + | ||
44 | + | ||
45 | + | func n (o,p) = ("room_" + toBase58String(sha256(toBytes((o + p))))) | |
46 | + | ||
47 | + | ||
48 | + | func q (r) = (r + "_prize") | |
49 | + | ||
50 | + | ||
51 | + | func s (r) = g(q(r)) | |
52 | + | ||
53 | + | ||
54 | + | func t (r) = (r + "_roomer") | |
55 | + | ||
56 | + | ||
57 | + | func u (r) = l(t(r)) | |
58 | + | ||
59 | + | ||
60 | + | func v (r) = (r + "_limit") | |
61 | + | ||
62 | + | ||
63 | + | func w (r) = g(v(r)) | |
64 | + | ||
65 | + | ||
66 | + | func x (r) = (r + "_status") | |
67 | + | ||
68 | + | ||
69 | + | func y (r) = l(x(r)) | |
70 | + | ||
71 | + | ||
72 | + | func z (A,B) = ("propose_" + toBase58String(sha256(toBytes((A + B))))) | |
73 | + | ||
74 | + | ||
75 | + | func C (D) = (D + "_contributor") | |
76 | + | ||
77 | + | ||
78 | + | func E (D) = l(C(D)) | |
79 | + | ||
80 | + | ||
81 | + | func F (D) = (D + "_data") | |
82 | + | ||
83 | + | ||
84 | + | func G (D) = l(F(D)) | |
85 | + | ||
86 | + | ||
87 | + | func H (r,D) = ("adoption_" + toBase58String(sha256(toBytes((r + D))))) | |
88 | + | ||
89 | + | ||
90 | + | func I (J) = (J + "_winner") | |
91 | + | ||
92 | + | ||
93 | + | func K (J) = l(I(J)) | |
94 | + | ||
95 | + | ||
96 | + | func L (J) = (J + "_prize") | |
97 | + | ||
98 | + | ||
99 | + | func M (J) = l(L(J)) | |
100 | + | ||
101 | + | ||
102 | + | func N (O) = (O + "_balance") | |
103 | + | ||
104 | + | ||
105 | + | func P (O) = g(N(O)) | |
106 | + | ||
107 | + | ||
108 | + | func Q (O) = (O + "_blacklisted") | |
109 | + | ||
110 | + | ||
111 | + | func R (S,O) = { | |
112 | + | let m = { | |
113 | + | let j = getString(S, Q(O)) | |
114 | + | if ($isInstanceOf(j, "String")) | |
115 | + | then { | |
116 | + | let k = j | |
117 | + | k | |
118 | + | } | |
119 | + | else d | |
120 | + | } | |
121 | + | m | |
122 | + | } | |
123 | + | ||
124 | + | ||
125 | + | @Callable(T) | |
126 | + | func createRoom (p,U,V) = { | |
127 | + | let W = extract(T.payment) | |
128 | + | if (isDefined(W.assetId)) | |
129 | + | then throw("can use WAVES only at the moment") | |
130 | + | else { | |
131 | + | let o = toBase58String(T.caller.bytes) | |
132 | + | let r = n(o, p) | |
133 | + | let X = W.amount | |
134 | + | let S = a() | |
135 | + | let Y = R(S, o) | |
136 | + | let Z = (U + V) | |
137 | + | if ((0 >= X)) | |
138 | + | then throw("prize cannot be negative amount") | |
139 | + | else if ((360 >= V)) | |
140 | + | then throw("duration cannot be less than 6hours") | |
141 | + | else if ((u(r) != d)) | |
142 | + | then throw("the room is already exist") | |
143 | + | else if ((Y == b)) | |
144 | + | then throw("your request was denied") | |
145 | + | else WriteSet([DataEntry(q(r), X), DataEntry(t(r), o), DataEntry(v(r), Z), DataEntry(x(r), f)]) | |
146 | + | } | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | @Callable(T) | |
152 | + | func closeRoom (r) = { | |
153 | + | let o = u(r) | |
154 | + | let X = s(r) | |
155 | + | if ((o != toBase58String(T.caller.bytes))) | |
156 | + | then throw("you cannot close this Room") | |
157 | + | else if ((y(r) == e)) | |
158 | + | then throw("this Room has already closed") | |
159 | + | else ScriptResult(WriteSet([DataEntry(x(r), e)]), TransferSet([ScriptTransfer(addressFromStringValue(o), X, unit)])) | |
160 | + | } | |
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | @Callable(T) | |
165 | + | func createProposal (r,aa,B,U) = { | |
166 | + | let A = toBase58String(T.caller.bytes) | |
167 | + | let S = a() | |
168 | + | let ab = R(S, A) | |
169 | + | let D = z(A, B) | |
170 | + | let o = u(r) | |
171 | + | let Z = w(r) | |
172 | + | if ((aa == d)) | |
173 | + | then throw("your proposal is empty") | |
174 | + | else if ((o == d)) | |
175 | + | then throw("room does not exist") | |
176 | + | else if ((U >= Z)) | |
177 | + | then throw("propose to this room is already closed") | |
178 | + | else if ((ab == b)) | |
179 | + | then throw("your request was denied") | |
180 | + | else if ((y(r) == e)) | |
181 | + | then throw("this Room has already closed") | |
182 | + | else WriteSet([DataEntry(C(D), A), DataEntry(F(D), aa)]) | |
183 | + | } | |
184 | + | ||
185 | + | ||
186 | + | ||
187 | + | @Callable(T) | |
188 | + | func createAdoption (r,D) = { | |
189 | + | let J = H(r, D) | |
190 | + | let X = s(r) | |
191 | + | let ac = E(D) | |
192 | + | let o = u(r) | |
193 | + | if ((o != toBase58String(T.caller.bytes))) | |
194 | + | then throw("only the Room's owner can do this transaction") | |
195 | + | else if ((ac == d)) | |
196 | + | then throw("the winner doesn't exist") | |
197 | + | else if ((K(J) != d)) | |
198 | + | then throw("you have already do the adoption") | |
199 | + | else if ((y(r) == e)) | |
200 | + | then throw("this Room has already closed") | |
201 | + | else WriteSet([DataEntry(N(ac), (P(ac) + X)), DataEntry(I(J), ac), DataEntry(L(J), X), DataEntry(x(r), e)]) | |
202 | + | } | |
203 | + | ||
204 | + | ||
205 | + | ||
206 | + | @Callable(T) | |
207 | + | func withdraw () = { | |
208 | + | let ad = toBase58String(T.caller.bytes) | |
209 | + | let ae = P(ad) | |
210 | + | if ((0 >= ae)) | |
211 | + | then throw("you have nothing to withdraw") | |
212 | + | else ScriptResult(WriteSet([DataEntry(N(ad), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(ad), ae, unit)])) | |
213 | + | } | |
214 | + | ||
215 | + | ||
216 | + | @Verifier(af) | |
217 | + | func ag () = { | |
218 | + | let j = af | |
219 | + | if ($isInstanceOf(j, "SetScriptTransaction")) | |
220 | + | then { | |
221 | + | let ah = j | |
222 | + | sigVerify(af.bodyBytes, af.proofs[0], c) | |
223 | + | } | |
224 | + | else if ($isInstanceOf(j, "DataTransaction")) | |
225 | + | then { | |
226 | + | let ai = j | |
227 | + | true | |
228 | + | } | |
229 | + | else if ($isInstanceOf(j, "TransferTransaction")) | |
230 | + | then { | |
231 | + | let aj = j | |
232 | + | sigVerify(af.bodyBytes, af.proofs[0], c) | |
233 | + | } | |
234 | + | else false | |
235 | + | } | |
236 | + |
github/deemru/w8io/169f3d6 31.57 ms ◑