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