tx · CAU9R8xHR7gcnyCdaNY9fzdJDrfnQRfSo44FBqi6tkd1 3N22NBbCmfZkmxFSMqb9kP61WHg1xGPndQR: -0.01400000 Waves 2023.03.09 19:08 [2482779] smart account 3N22NBbCmfZkmxFSMqb9kP61WHg1xGPndQR > SELF 0.00000000 Waves
{ "type": 13, "id": "CAU9R8xHR7gcnyCdaNY9fzdJDrfnQRfSo44FBqi6tkd1", "fee": 1400000, "feeAssetId": null, "timestamp": 1678378199917, "version": 2, "chainId": 84, "sender": "3N22NBbCmfZkmxFSMqb9kP61WHg1xGPndQR", "senderPublicKey": "EW9SXsydFphpvtoJTkGkVrHVjPwv58ToopA94BnLibNG", "proofs": [ "4sc9qdzcQ8ahBU5bdBFDx6kCJDaHrqoQrkW5XcfHafZYf2ZdNbR8vFdiVXQ8LLGf9wWvUph8LqMf9rwSfkU9RWaW" ], "script": "base64:BgIuCAISAwoBCBIECgIBCBIHCgUBCAEIARIDCgEIEgMKAQgSABIAEgMKAQgSAwoBCCAACVNFUEFSQVRPUgICX18ACEtFWV9JTklUAgRJTklUAAxLRVlfTVVMVElTSUcCCE1VTFRJU0lHAApLRVlfU1RBVFVTAgZTVEFUVVMACktFWV9QQVVTRUQCBlBBVVNFRAAKS0VZX1BBVVNFUgIGUEFVU0VSAA1LRVlfQUxMT1dBTkNFAglBTExPV0FOQ0UAC0tFWV9BREFQVEVSAgdBREFQVEVSABNGVU5DX1JFTEVBU0VfVE9LRU5TAg1yZWxlYXNlVG9rZW5zAAdNQVhfSU5UAP//////////fwEQX3ZhbGlkYXRlQWRkcmVzcwIIYWRkcmVzc18EZXJyXwQHJG1hdGNoMAkApggBBQhhZGRyZXNzXwMJAAECBQckbWF0Y2gwAgdBZGRyZXNzBAFhBQckbWF0Y2gwBgkAAgEFBGVycl8BDF92YWxpZGF0ZUludAQEdmFsXw5sb3dlckJvdW5kYXJ5Xw51cHBlckJvdW5kYXJ5XwRlcnJfAwMJAGYCBQ5sb3dlckJvdW5kYXJ5XwU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3ZhbGlkYXRlQWRkcmVzcwIFB3BhdXNlcl8CFGluaXQ6IGludmFsaWQgcGF1c2VyBwMJAAACBQNlcnIFA2VycgkAlAoCCQELX3NhdmVQYXVzZXIBCQERQGV4dHJOYXRpdmUoMTA2MikBBQdwYXVzZXJfBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBC3NldE11bHRpc2lnAQltdWx0aXNpZ18EA2VycgMJARFfb25seVRoaXNDb250cmFjdAEIBQFpBmNhbGxlcgkBEF92YWxpZGF0ZUFkZHJlc3MCBQltdWx0aXNpZ18CHXNldE11bHRpc2lnOiBpbnZhbGlkIG11bHRpc2lnBwMJAAACBQNlcnIFA2VycgkAlAoCCQENX3NhdmVNdWx0aXNpZwEJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCW11bHRpc2lnXwUEdW5pdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEByRtYXRjaDAJAKIIAQUMS0VZX01VTFRJU0lHAwkAAQIFByRtYXRjaDACBlN0cmluZwQIbXVsdGlzaWcFByRtYXRjaDAJAQt2YWx1ZU9yRWxzZQIJAJsIAgkBEUBleHRyTmF0aXZlKDEwNjIpAQUIbXVsdGlzaWcJALkJAgkAzAgCBQpLRVlfU1RBVFVTCQDMCAIJAKUIAQUEdGhpcwkAzAgCCQDYBAEIBQJ0eAJpZAUDbmlsBQlTRVBBUkFUT1IHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V587tWrw==", "height": 2482779, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: AZDJLz7wxKtzg7pwcsaDYxk2hyRjJQZgZiKeFSHtGfpk Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "__" | |
5 | + | ||
6 | + | let b = "INIT" | |
7 | + | ||
8 | + | let c = "MULTISIG" | |
9 | + | ||
10 | + | let d = "STATUS" | |
11 | + | ||
12 | + | let e = "PAUSED" | |
13 | + | ||
14 | + | let f = "PAUSER" | |
15 | + | ||
16 | + | let g = "ALLOWANCE" | |
17 | + | ||
18 | + | let h = "ADAPTER" | |
19 | + | ||
20 | + | let i = "releaseTokens" | |
21 | + | ||
22 | + | let j = 9223372036854775807 | |
23 | + | ||
24 | + | func k (l,m) = { | |
25 | + | let n = addressFromString(l) | |
26 | + | if ($isInstanceOf(n, "Address")) | |
27 | + | then { | |
28 | + | let o = n | |
29 | + | true | |
30 | + | } | |
31 | + | else throw(m) | |
32 | + | } | |
33 | + | ||
34 | + | ||
35 | + | func p (q,r,s,m) = if (if ((r > q)) | |
36 | + | then true | |
37 | + | else (q > s)) | |
38 | + | then throw(m) | |
39 | + | else true | |
40 | + | ||
41 | + | ||
42 | + | func t () = { | |
43 | + | let n = getBoolean(b) | |
44 | + | if ($isInstanceOf(n, "Boolean")) | |
45 | + | then { | |
46 | + | let o = n | |
47 | + | o | |
48 | + | } | |
49 | + | else false | |
50 | + | } | |
51 | + | ||
52 | + | ||
53 | + | func u (v) = [BooleanEntry(b, v)] | |
54 | + | ||
55 | + | ||
56 | + | func w () = { | |
57 | + | let n = getBoolean(e) | |
58 | + | if ($isInstanceOf(n, "Boolean")) | |
59 | + | then { | |
60 | + | let o = n | |
61 | + | o | |
62 | + | } | |
63 | + | else false | |
64 | + | } | |
65 | + | ||
66 | + | ||
67 | + | func x (y) = [BooleanEntry(e, y)] | |
68 | + | ||
69 | + | ||
70 | + | func z () = { | |
71 | + | let n = getString(f) | |
72 | + | if ($isInstanceOf(n, "String")) | |
73 | + | then { | |
74 | + | let o = n | |
75 | + | addressFromStringValue(o) | |
76 | + | } | |
77 | + | else Address(base58'') | |
78 | + | } | |
79 | + | ||
80 | + | ||
81 | + | func A (B) = [StringEntry(f, toString(B))] | |
82 | + | ||
83 | + | ||
84 | + | func C () = { | |
85 | + | let n = getString(c) | |
86 | + | if ($isInstanceOf(n, "String")) | |
87 | + | then { | |
88 | + | let o = n | |
89 | + | addressFromStringValue(o) | |
90 | + | } | |
91 | + | else Address(base58'') | |
92 | + | } | |
93 | + | ||
94 | + | ||
95 | + | func D (E) = [StringEntry(c, toString(E))] | |
96 | + | ||
97 | + | ||
98 | + | func F (G) = { | |
99 | + | let n = getBoolean(makeString([g, toString(G)], a)) | |
100 | + | if ($isInstanceOf(n, "Boolean")) | |
101 | + | then { | |
102 | + | let o = n | |
103 | + | o | |
104 | + | } | |
105 | + | else false | |
106 | + | } | |
107 | + | ||
108 | + | ||
109 | + | func H (G,q) = [BooleanEntry(makeString([g, toString(G)], a), q)] | |
110 | + | ||
111 | + | ||
112 | + | func I (J) = { | |
113 | + | let n = getString(makeString([h, toString(J)], a)) | |
114 | + | if ($isInstanceOf(n, "String")) | |
115 | + | then { | |
116 | + | let o = n | |
117 | + | addressFromStringValue(o) | |
118 | + | } | |
119 | + | else Address(base58'') | |
120 | + | } | |
121 | + | ||
122 | + | ||
123 | + | func K (J,L) = [StringEntry(makeString([h, toString(J)], a), toString(L))] | |
124 | + | ||
125 | + | ||
126 | + | func M (G) = if ((G != this)) | |
127 | + | then throw("_onlyThisContract: revert") | |
128 | + | else true | |
129 | + | ||
130 | + | ||
131 | + | func N () = if ((C() == Address(base58''))) | |
132 | + | then throw("_whenMultisigSet: revert") | |
133 | + | else true | |
134 | + | ||
135 | + | ||
136 | + | func O () = if (t()) | |
137 | + | then throw("_whenNotInitialized: revert") | |
138 | + | else true | |
139 | + | ||
140 | + | ||
141 | + | func P () = if (!(t())) | |
142 | + | then throw("_whenInitialized: revert") | |
143 | + | else true | |
144 | + | ||
145 | + | ||
146 | + | func Q () = if (w()) | |
147 | + | then throw("_whenNotPaused: revert") | |
148 | + | else true | |
149 | + | ||
150 | + | ||
151 | + | func R () = if (!(w())) | |
152 | + | then throw("_whenPaused: revert") | |
153 | + | else true | |
154 | + | ||
155 | + | ||
156 | + | func S (G) = if ((G != z())) | |
157 | + | then throw("_onlyPauser: revert") | |
158 | + | else true | |
159 | + | ||
160 | + | ||
161 | + | func T (G) = if (!(F(G))) | |
162 | + | then throw("_whenAllowed: revert") | |
163 | + | else true | |
164 | + | ||
165 | + | ||
166 | + | @Callable(U) | |
167 | + | func init (B) = { | |
168 | + | let V = if (if (if (M(U.caller)) | |
169 | + | then O() | |
170 | + | else false) | |
171 | + | then N() | |
172 | + | else false) | |
173 | + | then k(B, "init: invalid pauser") | |
174 | + | else false | |
175 | + | if ((V == V)) | |
176 | + | then $Tuple2((u(true) ++ A(addressFromStringValue(B))), unit) | |
177 | + | else throw("Strict value is not equal to itself.") | |
178 | + | } | |
179 | + | ||
180 | + | ||
181 | + | ||
182 | + | @Callable(U) | |
183 | + | func setAdapter (J,L) = { | |
184 | + | let V = if (if (if (M(U.caller)) | |
185 | + | then P() | |
186 | + | else false) | |
187 | + | then p(J, 0, j, "setAdapter: invalid executionChainId") | |
188 | + | else false) | |
189 | + | then k(L, "setAdapter: invalid adapter") | |
190 | + | else false | |
191 | + | if ((V == V)) | |
192 | + | then $Tuple2(K(J, addressFromStringValue(L)), unit) | |
193 | + | else throw("Strict value is not equal to itself.") | |
194 | + | } | |
195 | + | ||
196 | + | ||
197 | + | ||
198 | + | @Callable(U) | |
199 | + | func releaseTokens (J,W,X,Y,Z) = { | |
200 | + | let V = if (if (P()) | |
201 | + | then Q() | |
202 | + | else false) | |
203 | + | then T(U.caller) | |
204 | + | else false | |
205 | + | if ((V == V)) | |
206 | + | then { | |
207 | + | let aa = invoke(I(J), i, [J, W, X, Y, Z], nil) | |
208 | + | if ((aa == aa)) | |
209 | + | then $Tuple2(nil, unit) | |
210 | + | else throw("Strict value is not equal to itself.") | |
211 | + | } | |
212 | + | else throw("Strict value is not equal to itself.") | |
213 | + | } | |
214 | + | ||
215 | + | ||
216 | + | ||
217 | + | @Callable(U) | |
218 | + | func allow (G) = { | |
219 | + | let V = if (if (M(U.caller)) | |
220 | + | then P() | |
221 | + | else false) | |
222 | + | then k(G, "allow: invalid caller") | |
223 | + | else false | |
224 | + | if ((V == V)) | |
225 | + | then $Tuple2(H(addressFromStringValue(G), true), unit) | |
226 | + | else throw("Strict value is not equal to itself.") | |
227 | + | } | |
228 | + | ||
229 | + | ||
230 | + | ||
231 | + | @Callable(U) | |
232 | + | func disallow (G) = { | |
233 | + | let V = if (if (M(U.caller)) | |
234 | + | then P() | |
235 | + | else false) | |
236 | + | then k(G, "disallow: invalid caller") | |
237 | + | else false | |
238 | + | if ((V == V)) | |
239 | + | then $Tuple2(H(addressFromStringValue(G), false), unit) | |
240 | + | else throw("Strict value is not equal to itself.") | |
241 | + | } | |
242 | + | ||
243 | + | ||
244 | + | ||
245 | + | @Callable(U) | |
246 | + | func pause () = { | |
247 | + | let V = if (if (S(U.caller)) | |
248 | + | then P() | |
249 | + | else false) | |
250 | + | then Q() | |
251 | + | else false | |
252 | + | if ((V == V)) | |
253 | + | then $Tuple2(x(true), unit) | |
254 | + | else throw("Strict value is not equal to itself.") | |
255 | + | } | |
256 | + | ||
257 | + | ||
258 | + | ||
259 | + | @Callable(U) | |
260 | + | func unpause () = { | |
261 | + | let V = if (if (S(U.caller)) | |
262 | + | then P() | |
263 | + | else false) | |
264 | + | then R() | |
265 | + | else false | |
266 | + | if ((V == V)) | |
267 | + | then $Tuple2(x(false), unit) | |
268 | + | else throw("Strict value is not equal to itself.") | |
269 | + | } | |
270 | + | ||
271 | + | ||
272 | + | ||
273 | + | @Callable(U) | |
274 | + | func updatePauser (B) = { | |
275 | + | let V = if (if (M(U.caller)) | |
276 | + | then P() | |
277 | + | else false) | |
278 | + | then k(B, "init: invalid pauser") | |
279 | + | else false | |
280 | + | if ((V == V)) | |
281 | + | then $Tuple2(A(addressFromStringValue(B)), unit) | |
282 | + | else throw("Strict value is not equal to itself.") | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | ||
287 | + | @Callable(U) | |
288 | + | func setMultisig (E) = { | |
289 | + | let V = if (M(U.caller)) | |
290 | + | then k(E, "setMultisig: invalid multisig") | |
291 | + | else false | |
292 | + | if ((V == V)) | |
293 | + | then $Tuple2(D(addressFromStringValue(E)), unit) | |
294 | + | else throw("Strict value is not equal to itself.") | |
295 | + | } | |
296 | + | ||
297 | + | ||
298 | + | @Verifier(ab) | |
299 | + | func ac () = { | |
300 | + | let n = getString(c) | |
301 | + | if ($isInstanceOf(n, "String")) | |
302 | + | then { | |
303 | + | let ad = n | |
304 | + | valueOrElse(getBoolean(addressFromStringValue(ad), makeString([d, toString(this), toBase58String(ab.id)], a)), false) | |
305 | + | } | |
306 | + | else sigVerify(ab.bodyBytes, ab.proofs[0], ab.senderPublicKey) | |
307 | + | } | |
308 | + |
github/deemru/w8io/026f985 20.23 ms ◑