tx · 51UgGfvPVZdSSyTDTL4Lx7fofBV7sbH3UWTBGC6vHaVX 3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9: -0.01400000 Waves 2021.08.17 16:17 [1662386] smart account 3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9 > SELF 0.00000000 Waves
{ "type": 13, "id": "51UgGfvPVZdSSyTDTL4Lx7fofBV7sbH3UWTBGC6vHaVX", "fee": 1400000, "feeAssetId": null, "timestamp": 1629206295587, "version": 2, "chainId": 84, "sender": "3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9", "senderPublicKey": "D1X9WatF6ARMCmm3jC4Ex5Wd5VQ3LY8i1xbHNqeHqeAa", "proofs": [ "532WZQwPyHXK6eE7wJCFaQqPNE8L8AYxyeWMiCc99rWMEhCd2Tw9CBfvTKqywMo5M998sXRWweaj2ia37kqSYzQY", "AMwZQgUpimX5714Z4b1nw5FQWRRJYuDfeXjj6wF5jj92YWseL8pmKHWQWzj1FUC3e9uMjNXi4xw6aBvLy7BN8Nd" ], "script": "base64:AAIFAAAAAAAAABgIAhIECgIIARIAEgQKAggIEgQKAggIEgAAAAAaAAAAABBrZXlQb29sc0xpc3ROYW1lAgAAAAVwb29scwAAAAARa2V5UHJlZml4UG9vbE5hbWUCAAAABXBvb2xfAAAAABJrZXlQcmVmaXhQb29sSW5kZXgCAAAABmluZGV4XwAAAAASa2V5Q29uZmlybWVkQXNzZXRzAgAAABBjb25maXJtZWRfYXNzZXRzAAAAABBrZXlBc3NldFByaW9yaXR5AgAAAA9hc3NldF9wcmlvcml0eV8AAAAAB2tleVBhaXICAAAABXBhaXJfAAAAAAtrZXlBc3NldElkQQIAAAAKQV9hc3NldF9pZAAAAAALa2V5QXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAAF2tleU9yYWNsZVNjcmlwdEhhc2hDUE1NAgAAABBzY3JpcHRfaGFzaF9jcG1tAAAAABdrZXlPcmFjbGVTY3JpcHRIYXNoRmxhdAIAAAAQc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ABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgUAAAANc2lnbmVkQnlBZG1pbgkAAAIAAAABAgAAAAtNYXRjaCBlcnJvci1aR2o=", "height": 1662386, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6pjrHBkudAMVGvQvyHjT8ntztK3vEakdS5TjF4qGMPth Next: AY3Y6CCwR5ELMnXWxoo24tgCJhozJPY1kiWuAhndtspN Diff:
Old | New | Differences | |
---|---|---|---|
103 | 103 | let S = value(scriptHash(B.caller)) | |
104 | 104 | let T = getBinaryValue(i) | |
105 | 105 | let U = getBinaryValue(j) | |
106 | - | if (if (if ((S != T)) | |
107 | - | then (S != U) | |
106 | + | let V = if ((S != T)) | |
107 | + | then true | |
108 | + | else false | |
109 | + | let W = if ((S != U)) | |
110 | + | then true | |
111 | + | else false | |
112 | + | let X = if ((!(R) == true)) | |
113 | + | then true | |
114 | + | else false | |
115 | + | if (if (if (V) | |
116 | + | then W | |
108 | 117 | else false) | |
109 | 118 | then true | |
110 | - | else | |
119 | + | else X) | |
111 | 120 | then throw("Unexpected script was found.") | |
112 | 121 | else { | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | if (isDefined( | |
117 | - | then throw((((("Pool with address \"" + M) + "\" is already defined with name \"") + value( | |
118 | - | else if (if (isDefined( | |
122 | + | let Y = getString(this, N) | |
123 | + | let Z = getString(this, (((f + P) + "_") + Q)) | |
124 | + | let aa = getString(this, (((f + Q) + "_") + P)) | |
125 | + | if (isDefined(Y)) | |
126 | + | then throw((((("Pool with address \"" + M) + "\" is already defined with name \"") + value(Y)) + "\"")) | |
127 | + | else if (if (isDefined(Z)) | |
119 | 128 | then true | |
120 | - | else isDefined( | |
129 | + | else isDefined(aa)) | |
121 | 130 | then throw((((("Pool with assets \"" + P) + "\" and \"") + Q) + "\" is already exists")) | |
122 | 131 | else [IntegerEntry(O, size(w)), StringEntry(N, C(D)), StringEntry((((f + P) + "_") + Q), L), StringEntry(a, makeString((w :+ M), ","))] | |
123 | 132 | } | |
126 | 135 | ||
127 | 136 | ||
128 | 137 | @Callable(B) | |
129 | - | func renamePool (L, | |
138 | + | func renamePool (L,ab) = valueOrElse(A(B), { | |
130 | 139 | let M = H(L) | |
131 | 140 | let N = (b + M) | |
132 | - | let | |
133 | - | if (isDefined( | |
134 | - | then [StringEntry(N, C( | |
141 | + | let Y = getString(this, N) | |
142 | + | if (isDefined(Y)) | |
143 | + | then [StringEntry(N, C(ab))] | |
135 | 144 | else throw((("Pool with address \"" + M) + "\" has not yet been added")) | |
136 | 145 | }) | |
137 | 146 | ||
141 | 150 | func updateHashes () = valueOrElse(A(B), [BinaryEntry(i, value(scriptHash(Address(k)))), BinaryEntry(j, value(scriptHash(Address(l))))]) | |
142 | 151 | ||
143 | 152 | ||
144 | - | @Verifier( | |
145 | - | func | |
146 | - | let | |
153 | + | @Verifier(ac) | |
154 | + | func ad () = { | |
155 | + | let ae = if (sigVerify(ac.bodyBytes, ac.proofs[0], p)) | |
147 | 156 | then 1 | |
148 | 157 | else 0 | |
149 | - | let | |
158 | + | let af = if (sigVerify(ac.bodyBytes, ac.proofs[1], q)) | |
150 | 159 | then 1 | |
151 | 160 | else 0 | |
152 | - | let | |
161 | + | let ag = if (sigVerify(ac.bodyBytes, ac.proofs[2], r)) | |
153 | 162 | then 1 | |
154 | 163 | else 0 | |
155 | - | let | |
156 | - | let | |
157 | - | let x = | |
164 | + | let ah = (((ae + af) + ag) >= 2) | |
165 | + | let ai = (((ae + af) + ag) >= 1) | |
166 | + | let x = ac | |
158 | 167 | if ($isInstanceOf(x, "InvokeScriptTransaction")) | |
159 | 168 | then { | |
160 | - | let | |
161 | - | let | |
162 | - | then containsElement(["renamePool"], | |
169 | + | let aj = x | |
170 | + | let ak = if ((aj.dApp == this)) | |
171 | + | then containsElement(["renamePool"], aj.function) | |
163 | 172 | else false | |
164 | - | let | |
165 | - | then containsElement(["setAdmin"], | |
173 | + | let al = if ((aj.dApp == this)) | |
174 | + | then containsElement(["setAdmin"], aj.function) | |
166 | 175 | else false | |
167 | - | let | |
168 | - | let | |
169 | - | then containsElement(["updateHashes"], | |
176 | + | let am = containsElement(["addPool"], aj.function) | |
177 | + | let an = if ((aj.dApp == this)) | |
178 | + | then containsElement(["updateHashes"], aj.function) | |
170 | 179 | else false | |
171 | - | if (if (if (if (if ( | |
172 | - | then (size( | |
180 | + | if (if (if (if (if (ah) | |
181 | + | then (size(aj.payments) == 0) | |
173 | 182 | else false) | |
174 | - | then | |
183 | + | then ak | |
175 | 184 | else false) | |
176 | 185 | then true | |
177 | - | else if ((size( | |
178 | - | then | |
186 | + | else if ((size(aj.payments) == 0)) | |
187 | + | then am | |
179 | 188 | else false) | |
180 | 189 | then true | |
181 | - | else if (if ( | |
182 | - | then (size( | |
190 | + | else if (if (ah) | |
191 | + | then (size(aj.payments) == 0) | |
183 | 192 | else false) | |
184 | - | then | |
193 | + | then al | |
185 | 194 | else false) | |
186 | 195 | then true | |
187 | - | else if (if ( | |
188 | - | then (size( | |
196 | + | else if (if (ah) | |
197 | + | then (size(aj.payments) == 0) | |
189 | 198 | else false) | |
190 | - | then | |
199 | + | then an | |
191 | 200 | else false | |
192 | 201 | } | |
193 | 202 | else if (if ($isInstanceOf(x, "Order")) | |
221 | 230 | else if ($isInstanceOf(x, "BurnTransaction")) | |
222 | 231 | then true | |
223 | 232 | else $isInstanceOf(x, "ReissueTransaction")) | |
224 | - | then | |
233 | + | then ah | |
225 | 234 | else throw("Match error") | |
226 | 235 | } | |
227 | 236 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "pools" | |
5 | 5 | ||
6 | 6 | let b = "pool_" | |
7 | 7 | ||
8 | 8 | let c = "index_" | |
9 | 9 | ||
10 | 10 | let d = "confirmed_assets" | |
11 | 11 | ||
12 | 12 | let e = "asset_priority_" | |
13 | 13 | ||
14 | 14 | let f = "pair_" | |
15 | 15 | ||
16 | 16 | let g = "A_asset_id" | |
17 | 17 | ||
18 | 18 | let h = "B_asset_id" | |
19 | 19 | ||
20 | 20 | let i = "script_hash_cpmm" | |
21 | 21 | ||
22 | 22 | let j = "script_hash_flat" | |
23 | 23 | ||
24 | 24 | let k = base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37' | |
25 | 25 | ||
26 | 26 | let l = base58'3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW' | |
27 | 27 | ||
28 | 28 | let m = "admin_pub_1" | |
29 | 29 | ||
30 | 30 | let n = "admin_pub_2" | |
31 | 31 | ||
32 | 32 | let o = "admin_pub_3" | |
33 | 33 | ||
34 | 34 | let p = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy' | |
35 | 35 | ||
36 | 36 | let q = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk' | |
37 | 37 | ||
38 | 38 | let r = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP' | |
39 | 39 | ||
40 | 40 | let s = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
41 | 41 | ||
42 | 42 | let t = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
43 | 43 | ||
44 | 44 | let u = "admin_start_stop" | |
45 | 45 | ||
46 | 46 | let v = "admin_staking" | |
47 | 47 | ||
48 | 48 | let w = { | |
49 | 49 | let x = getString(this, a) | |
50 | 50 | if ($isInstanceOf(x, "String")) | |
51 | 51 | then { | |
52 | 52 | let y = x | |
53 | 53 | split(y, ",") | |
54 | 54 | } | |
55 | 55 | else { | |
56 | 56 | let z = x | |
57 | 57 | nil | |
58 | 58 | } | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | func A (B) = if ((B.caller == this)) | |
62 | 62 | then unit | |
63 | 63 | else unit | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func C (D) = { | |
67 | 67 | let E = valueOrElse(indexOf(D, "_"), -1) | |
68 | 68 | let F = valueOrElse(lastIndexOf(D, "_"), -1) | |
69 | 69 | let G = if (if ((E == F)) | |
70 | 70 | then (E > 0) | |
71 | 71 | else false) | |
72 | 72 | then (E != (size(D) - 1)) | |
73 | 73 | else false | |
74 | 74 | if (G) | |
75 | 75 | then D | |
76 | 76 | else throw("Pool name must consist of two asset names separated by an underscore character") | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func H (I) = toString(valueOrErrorMessage(addressFromString(I), (("Can't parse \"" + I) + "\" as address"))) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | @Callable(B) | |
84 | 84 | func setPriority (J,K) = valueOrElse(A(B), if ((0 > K)) | |
85 | 85 | then throw("Priority must be positive") | |
86 | 86 | else [IntegerEntry((e + J), K)]) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | ||
90 | 90 | @Callable(B) | |
91 | 91 | func setAdmin () = valueOrElse(A(B), [StringEntry(m, toBase58String(p)), StringEntry(n, toBase58String(q)), StringEntry(o, toBase58String(r))]) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | ||
95 | 95 | @Callable(B) | |
96 | 96 | func addPool (L,D) = valueOrElse(A(B), { | |
97 | 97 | let M = H(L) | |
98 | 98 | let N = (b + M) | |
99 | 99 | let O = (c + M) | |
100 | 100 | let P = valueOrErrorMessage(getString(value(addressFromString(L)), g), "Asset id A is incorrect") | |
101 | 101 | let Q = valueOrErrorMessage(getString(value(addressFromString(L)), h), "Asset id B is incorrect") | |
102 | 102 | let R = isDataStorageUntouched(this) | |
103 | 103 | let S = value(scriptHash(B.caller)) | |
104 | 104 | let T = getBinaryValue(i) | |
105 | 105 | let U = getBinaryValue(j) | |
106 | - | if (if (if ((S != T)) | |
107 | - | then (S != U) | |
106 | + | let V = if ((S != T)) | |
107 | + | then true | |
108 | + | else false | |
109 | + | let W = if ((S != U)) | |
110 | + | then true | |
111 | + | else false | |
112 | + | let X = if ((!(R) == true)) | |
113 | + | then true | |
114 | + | else false | |
115 | + | if (if (if (V) | |
116 | + | then W | |
108 | 117 | else false) | |
109 | 118 | then true | |
110 | - | else | |
119 | + | else X) | |
111 | 120 | then throw("Unexpected script was found.") | |
112 | 121 | else { | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | if (isDefined( | |
117 | - | then throw((((("Pool with address \"" + M) + "\" is already defined with name \"") + value( | |
118 | - | else if (if (isDefined( | |
122 | + | let Y = getString(this, N) | |
123 | + | let Z = getString(this, (((f + P) + "_") + Q)) | |
124 | + | let aa = getString(this, (((f + Q) + "_") + P)) | |
125 | + | if (isDefined(Y)) | |
126 | + | then throw((((("Pool with address \"" + M) + "\" is already defined with name \"") + value(Y)) + "\"")) | |
127 | + | else if (if (isDefined(Z)) | |
119 | 128 | then true | |
120 | - | else isDefined( | |
129 | + | else isDefined(aa)) | |
121 | 130 | then throw((((("Pool with assets \"" + P) + "\" and \"") + Q) + "\" is already exists")) | |
122 | 131 | else [IntegerEntry(O, size(w)), StringEntry(N, C(D)), StringEntry((((f + P) + "_") + Q), L), StringEntry(a, makeString((w :+ M), ","))] | |
123 | 132 | } | |
124 | 133 | }) | |
125 | 134 | ||
126 | 135 | ||
127 | 136 | ||
128 | 137 | @Callable(B) | |
129 | - | func renamePool (L, | |
138 | + | func renamePool (L,ab) = valueOrElse(A(B), { | |
130 | 139 | let M = H(L) | |
131 | 140 | let N = (b + M) | |
132 | - | let | |
133 | - | if (isDefined( | |
134 | - | then [StringEntry(N, C( | |
141 | + | let Y = getString(this, N) | |
142 | + | if (isDefined(Y)) | |
143 | + | then [StringEntry(N, C(ab))] | |
135 | 144 | else throw((("Pool with address \"" + M) + "\" has not yet been added")) | |
136 | 145 | }) | |
137 | 146 | ||
138 | 147 | ||
139 | 148 | ||
140 | 149 | @Callable(B) | |
141 | 150 | func updateHashes () = valueOrElse(A(B), [BinaryEntry(i, value(scriptHash(Address(k)))), BinaryEntry(j, value(scriptHash(Address(l))))]) | |
142 | 151 | ||
143 | 152 | ||
144 | - | @Verifier( | |
145 | - | func | |
146 | - | let | |
153 | + | @Verifier(ac) | |
154 | + | func ad () = { | |
155 | + | let ae = if (sigVerify(ac.bodyBytes, ac.proofs[0], p)) | |
147 | 156 | then 1 | |
148 | 157 | else 0 | |
149 | - | let | |
158 | + | let af = if (sigVerify(ac.bodyBytes, ac.proofs[1], q)) | |
150 | 159 | then 1 | |
151 | 160 | else 0 | |
152 | - | let | |
161 | + | let ag = if (sigVerify(ac.bodyBytes, ac.proofs[2], r)) | |
153 | 162 | then 1 | |
154 | 163 | else 0 | |
155 | - | let | |
156 | - | let | |
157 | - | let x = | |
164 | + | let ah = (((ae + af) + ag) >= 2) | |
165 | + | let ai = (((ae + af) + ag) >= 1) | |
166 | + | let x = ac | |
158 | 167 | if ($isInstanceOf(x, "InvokeScriptTransaction")) | |
159 | 168 | then { | |
160 | - | let | |
161 | - | let | |
162 | - | then containsElement(["renamePool"], | |
169 | + | let aj = x | |
170 | + | let ak = if ((aj.dApp == this)) | |
171 | + | then containsElement(["renamePool"], aj.function) | |
163 | 172 | else false | |
164 | - | let | |
165 | - | then containsElement(["setAdmin"], | |
173 | + | let al = if ((aj.dApp == this)) | |
174 | + | then containsElement(["setAdmin"], aj.function) | |
166 | 175 | else false | |
167 | - | let | |
168 | - | let | |
169 | - | then containsElement(["updateHashes"], | |
176 | + | let am = containsElement(["addPool"], aj.function) | |
177 | + | let an = if ((aj.dApp == this)) | |
178 | + | then containsElement(["updateHashes"], aj.function) | |
170 | 179 | else false | |
171 | - | if (if (if (if (if ( | |
172 | - | then (size( | |
180 | + | if (if (if (if (if (ah) | |
181 | + | then (size(aj.payments) == 0) | |
173 | 182 | else false) | |
174 | - | then | |
183 | + | then ak | |
175 | 184 | else false) | |
176 | 185 | then true | |
177 | - | else if ((size( | |
178 | - | then | |
186 | + | else if ((size(aj.payments) == 0)) | |
187 | + | then am | |
179 | 188 | else false) | |
180 | 189 | then true | |
181 | - | else if (if ( | |
182 | - | then (size( | |
190 | + | else if (if (ah) | |
191 | + | then (size(aj.payments) == 0) | |
183 | 192 | else false) | |
184 | - | then | |
193 | + | then al | |
185 | 194 | else false) | |
186 | 195 | then true | |
187 | - | else if (if ( | |
188 | - | then (size( | |
196 | + | else if (if (ah) | |
197 | + | then (size(aj.payments) == 0) | |
189 | 198 | else false) | |
190 | - | then | |
199 | + | then an | |
191 | 200 | else false | |
192 | 201 | } | |
193 | 202 | else if (if ($isInstanceOf(x, "Order")) | |
194 | 203 | then true | |
195 | 204 | else if ($isInstanceOf(x, "DataTransaction")) | |
196 | 205 | then true | |
197 | 206 | else if ($isInstanceOf(x, "SponsorFeeTransaction")) | |
198 | 207 | then true | |
199 | 208 | else if ($isInstanceOf(x, "SetScriptTransaction")) | |
200 | 209 | then true | |
201 | 210 | else if ($isInstanceOf(x, "CreateAliasTransaction")) | |
202 | 211 | then true | |
203 | 212 | else if ($isInstanceOf(x, "LeaseCancelTransaction")) | |
204 | 213 | then true | |
205 | 214 | else if ($isInstanceOf(x, "LeaseTransaction")) | |
206 | 215 | then true | |
207 | 216 | else if ($isInstanceOf(x, "IssueTransaction")) | |
208 | 217 | then true | |
209 | 218 | else if ($isInstanceOf(x, "UpdateAssetInfoTransaction")) | |
210 | 219 | then true | |
211 | 220 | else if ($isInstanceOf(x, "InvokeScriptTransaction")) | |
212 | 221 | then true | |
213 | 222 | else if ($isInstanceOf(x, "SetAssetScriptTransaction")) | |
214 | 223 | then true | |
215 | 224 | else if ($isInstanceOf(x, "TransferTransaction")) | |
216 | 225 | then true | |
217 | 226 | else if ($isInstanceOf(x, "ExchangeTransaction")) | |
218 | 227 | then true | |
219 | 228 | else if ($isInstanceOf(x, "MassTransferTransaction")) | |
220 | 229 | then true | |
221 | 230 | else if ($isInstanceOf(x, "BurnTransaction")) | |
222 | 231 | then true | |
223 | 232 | else $isInstanceOf(x, "ReissueTransaction")) | |
224 | - | then | |
233 | + | then ah | |
225 | 234 | else throw("Match error") | |
226 | 235 | } | |
227 | 236 |
github/deemru/w8io/169f3d6 61.52 ms ◑