tx · 9xyoS8H774DZGPkVHA71QPsCMvX9FEbB4FA5ficYmXte 3MuCaUNMwF6Up9a2bgJmwZji896xptmJitt: -0.05000000 Waves 2019.09.08 15:56 [667123] smart account 3MuCaUNMwF6Up9a2bgJmwZji896xptmJitt > SELF 0.00000000 Waves
{ "type": 13, "id": "9xyoS8H774DZGPkVHA71QPsCMvX9FEbB4FA5ficYmXte", "fee": 5000000, "feeAssetId": null, "timestamp": 1567947379559, "version": 1, "sender": "3MuCaUNMwF6Up9a2bgJmwZji896xptmJitt", "senderPublicKey": "Dr5rkXFsvqufZYic16XVb2EVmT7rkp5douPdCEvLYYu7", "proofs": [ "3bRWBu8R1TMmso2aotFuvmPYZqPUsyJY4yVYwcphKGs2HspWAZ4PAGxMUQpXSv5yi8yQd39jhnDB8vrm95RRXCu1" ], "script": "base64:AAIDAAAAAAAAAAAAAAAdAAAAAAN3dnMAAAAAAAX14QAAAAAAGW5vdFN1cHBvcnRlZEN1cnJlbmN5RXJyb3ICAAAAGzxub3RTdXBwb3J0ZWRDdXJyZW5jeUVycm9yPgAAAAAXaXNzdWVyQWNjZXNzRGVuaWVkRXJyb3ICAAAAGTxpc3N1ZXJBY2Nlc3NEZW5pZWRFcnJvcj4AAAAAFW5vdEVub3VnaFBheW1lbnRFcnJvcgIAAAAXPG5vdEVub3VnaFBheW1lbnRFcnJvcj4AAAAAJHRpY2tlclZhbGlkYXRpb25Ob3RFbm91Z2hSYXRpbmdFcnJvcgIAAAAmPHRpY2tlclZhbGlkYXRpb25Ob3RFbm91Z2hSYXRpbmdFcnJvcj4AAAAAInRpY2tlclZhbGlkYXRpb25UaWNrZXJJc0V4aXN0RXJyb3ICAAAAJDx0aWNrZXJWYWxpZGF0aW9uVGlja2VySXNFeGlzdEVycm9yPgAAAAAgdGlja2VyVmFsaWRhdGlvbldyb25nRm9ybWF0RXJyb3ICAAAAIjx0aWNrZXJWYWxpZGF0aW9uV3JvbmdGb3JtYXRFcnJvcj4AAAAAFW5vbkV4aXN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AAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABRpc3N1ZXJEZXNjcmlwdGlvbktleQUAAAALZGVzY3JpcHRpb24FAAAAA25pbAkAAAIAAAABBQAAABdpc3N1ZXJBY2Nlc3NEZW5pZWRFcnJvcgkAAAIAAAABBQAAABVub3RFbm91Z2hQYXltZW50RXJyb3IJAAACAAAAAQUAAAAZbm90U3VwcG9ydGVkQ3VycmVuY3lFcnJvcgAAAAFpAQAAAAp1cGRhdGVMaW5rAAAAAgAAAAdhc3NldElkAAAABGxpbmsEAAAADWlzc3VlckxpbmtLZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAC2lzc3VlckxpbmtfAgAAAAE8BQAAAAdhc3NldElkAgAAAAE+AwkBAAAAEGlzUGF5bWVudEluV2F2ZXMAAAABBQAAAAFpAwkBAAAAD2lzRW5vdWdoUGF5bWVudAAAAAIFAAAAAWkFAAAAD2xpbmtVcGRhdGVQcmljZQMJAQAAABNpc0NhbGxlckFzc2V0SXNzdWVyAAAAAgUAAAABaQUAAAAHYXNzZXRJZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAANaXNzdWVyTGlua0tleQUAAAAEbGluawUAAAADbmlsCQAAAgAAAAEFAAAAF2lzc3VlckFjY2Vzc0RlbmllZEVycm9yCQAAAgAAAAEFAAAAFW5vdEVub3VnaFBheW1lbnRFcnJvcgkAAAIAAAABBQAAABlub3RTdXBwb3J0ZWRDdXJyZW5jeUVycm9yAAAAALjUxA0=", "chainId": 84, "height": 667123, "spentComplexity": 0 } View: original | compacted Prev: Cg4xLieSWhZCHgdi4Yv8YFv3GE5eRuaPxTwJmTPBUceF Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = 100000000 | |
4 | 5 | ||
6 | + | let b = "<notSupportedCurrencyError>" | |
7 | + | ||
8 | + | let c = "<issuerAccessDeniedError>" | |
9 | + | ||
10 | + | let d = "<notEnoughPaymentError>" | |
11 | + | ||
12 | + | let e = "<tickerValidationNotEnoughRatingError>" | |
13 | + | ||
14 | + | let f = "<tickerValidationTickerIsExistError>" | |
15 | + | ||
16 | + | let g = "<tickerValidationWrongFormatError>" | |
17 | + | ||
18 | + | let h = "<nonExistentAssetError>" | |
19 | + | ||
20 | + | let i = "<noPaymentError>" | |
21 | + | ||
22 | + | let j = (1 * a) | |
23 | + | ||
24 | + | let k = (1 * a) | |
25 | + | ||
26 | + | let l = (2 * a) | |
27 | + | ||
28 | + | let m = 1 | |
29 | + | ||
30 | + | let n = 6 | |
31 | + | ||
32 | + | let o = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
33 | + | ||
34 | + | let p = addressFromStringValue("3MxHxW5VWq4KrWcbhFfxKrafXm4mL6rZHfj") | |
35 | + | ||
36 | + | let q = addressFromStringValue("3NADqHoLMbMTfXdP2TeBBSx5mQXePVj3KZm") | |
37 | + | ||
38 | + | func r (s,t) = { | |
39 | + | let u = getInteger(s, t) | |
40 | + | if ($isInstanceOf(u, "Int")) | |
41 | + | then { | |
42 | + | let v = u | |
43 | + | v | |
44 | + | } | |
45 | + | else 0 | |
46 | + | } | |
47 | + | ||
48 | + | ||
49 | + | func w (x,y) = { | |
50 | + | let u = indexOf(x, y) | |
51 | + | if ($isInstanceOf(u, "Int")) | |
52 | + | then { | |
53 | + | let z = u | |
54 | + | true | |
55 | + | } | |
56 | + | else if ($isInstanceOf(u, "Unit")) | |
57 | + | then { | |
58 | + | let z = u | |
59 | + | false | |
60 | + | } | |
61 | + | else throw() | |
62 | + | } | |
63 | + | ||
64 | + | ||
65 | + | func A (B) = { | |
66 | + | let C = split(B, "") | |
67 | + | let D = size(C) | |
68 | + | let E = w(o, C[0]) | |
69 | + | let F = w(o, C[1]) | |
70 | + | let G = w(o, C[2]) | |
71 | + | let H = w(o, C[3]) | |
72 | + | let I = w(o, C[4]) | |
73 | + | let J = w(o, C[5]) | |
74 | + | if ((B != "")) | |
75 | + | then if (if ((D >= m)) | |
76 | + | then (n >= D) | |
77 | + | else false) | |
78 | + | then if ((1 == D)) | |
79 | + | then E | |
80 | + | else if ((2 == D)) | |
81 | + | then if (E) | |
82 | + | then F | |
83 | + | else false | |
84 | + | else if ((3 == D)) | |
85 | + | then if (if (E) | |
86 | + | then F | |
87 | + | else false) | |
88 | + | then G | |
89 | + | else false | |
90 | + | else if ((4 == D)) | |
91 | + | then if (if (if (E) | |
92 | + | then F | |
93 | + | else false) | |
94 | + | then G | |
95 | + | else false) | |
96 | + | then H | |
97 | + | else false | |
98 | + | else if ((5 == D)) | |
99 | + | then if (if (if (if (E) | |
100 | + | then F | |
101 | + | else false) | |
102 | + | then G | |
103 | + | else false) | |
104 | + | then H | |
105 | + | else false) | |
106 | + | then I | |
107 | + | else false | |
108 | + | else if ((6 == D)) | |
109 | + | then if (if (if (if (if (E) | |
110 | + | then F | |
111 | + | else false) | |
112 | + | then G | |
113 | + | else false) | |
114 | + | then H | |
115 | + | else false) | |
116 | + | then I | |
117 | + | else false) | |
118 | + | then J | |
119 | + | else false | |
120 | + | else false | |
121 | + | else false | |
122 | + | else false | |
123 | + | } | |
124 | + | ||
125 | + | ||
126 | + | func K (L) = { | |
127 | + | let M = (("assetRating_" + L) + "_1") | |
128 | + | let N = r(q, M) | |
129 | + | let O = r(q, "tickerRating_1") | |
130 | + | (N >= O) | |
131 | + | } | |
132 | + | ||
133 | + | ||
134 | + | func P (L) = { | |
135 | + | let Q = "assetWeight" | |
136 | + | let R = r(q, Q) | |
137 | + | let S = r(q, "tickerWeight") | |
138 | + | (R >= S) | |
139 | + | } | |
140 | + | ||
141 | + | ||
142 | + | func T (L) = { | |
143 | + | let U = "assetVotes" | |
144 | + | let V = r(q, U) | |
145 | + | let W = r(q, "tickerVotes") | |
146 | + | (V >= W) | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | func X (L) = if (if (K(L)) | |
151 | + | then P(L) | |
152 | + | else false) | |
153 | + | then T(L) | |
154 | + | else false | |
155 | + | ||
156 | + | ||
157 | + | func Y (L) = toString(valueOrErrorMessage(assetInfo(fromBase58String(L)), h).issuer) | |
158 | + | ||
159 | + | ||
160 | + | func Z (v) = valueOrErrorMessage(v.payment, i) | |
161 | + | ||
162 | + | ||
163 | + | func aa (v) = { | |
164 | + | let ab = Z(v) | |
165 | + | if (!(isDefined(ab.assetId))) | |
166 | + | then true | |
167 | + | else false | |
168 | + | } | |
169 | + | ||
170 | + | ||
171 | + | func ac (v,ad) = { | |
172 | + | let ab = Z(v) | |
173 | + | if ((ab.amount >= ad)) | |
174 | + | then true | |
175 | + | else false | |
176 | + | } | |
177 | + | ||
178 | + | ||
179 | + | func ae (v,L) = { | |
180 | + | let af = toBase58String(v.caller.bytes) | |
181 | + | let ag = Y(L) | |
182 | + | if ((af == ag)) | |
183 | + | then true | |
184 | + | else false | |
185 | + | } | |
186 | + | ||
187 | + | ||
188 | + | @Callable(v) | |
189 | + | func updateTicker (L,B) = { | |
190 | + | let ah = ((("issuerTicker_" + "<") + L) + ">") | |
191 | + | let ai = { | |
192 | + | let u = getString(p, B) | |
193 | + | if ($isInstanceOf(u, "String")) | |
194 | + | then { | |
195 | + | let aj = u | |
196 | + | false | |
197 | + | } | |
198 | + | else if ($isInstanceOf(u, "Unit")) | |
199 | + | then { | |
200 | + | let aj = u | |
201 | + | true | |
202 | + | } | |
203 | + | else throw() | |
204 | + | } | |
205 | + | if (aa(v)) | |
206 | + | then if (ac(v, l)) | |
207 | + | then if (ae(v, L)) | |
208 | + | then if (X(L)) | |
209 | + | then if (ai) | |
210 | + | then if (A(B)) | |
211 | + | then WriteSet([DataEntry(ah, B)]) | |
212 | + | else throw(g) | |
213 | + | else throw(f) | |
214 | + | else throw(e) | |
215 | + | else throw(c) | |
216 | + | else throw(d) | |
217 | + | else throw(b) | |
218 | + | } | |
219 | + | ||
220 | + | ||
221 | + | ||
222 | + | @Callable(v) | |
223 | + | func updateDescription (L,ak) = { | |
224 | + | let al = ((("issuerDescription_" + "<") + L) + ">") | |
225 | + | if (aa(v)) | |
226 | + | then if (ac(v, j)) | |
227 | + | then if (ae(v, L)) | |
228 | + | then WriteSet([DataEntry(al, ak)]) | |
229 | + | else throw(c) | |
230 | + | else throw(d) | |
231 | + | else throw(b) | |
232 | + | } | |
233 | + | ||
234 | + | ||
235 | + | ||
236 | + | @Callable(v) | |
237 | + | func updateLink (L,am) = { | |
238 | + | let an = ((("issuerLink_" + "<") + L) + ">") | |
239 | + | if (aa(v)) | |
240 | + | then if (ac(v, k)) | |
241 | + | then if (ae(v, L)) | |
242 | + | then WriteSet([DataEntry(an, am)]) | |
243 | + | else throw(c) | |
244 | + | else throw(d) | |
245 | + | else throw(b) | |
246 | + | } | |
5 | 247 | ||
6 | 248 |
github/deemru/w8io/169f3d6 70.64 ms ◑