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