tx · 6QoWLHuwmreHtGSqvVqffhK3ycJ1mAynKFhPt2eA5Yt 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv: -0.00600000 Waves 2024.09.12 20:47 [3280734] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves
{ "type": 13, "id": "6QoWLHuwmreHtGSqvVqffhK3ycJ1mAynKFhPt2eA5Yt", "fee": 600000, "feeAssetId": null, "timestamp": 1726163253745, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "aaPGsJ55V8Np44saEv8aUDUycFAaGqt6mej7ct7jG25cDcYaL797R5N8qbexEu1mTuGohsKtGpZHhheCkdM6htQ" ], "script": "base64:BgIRCAISAwoBGBIDCgEIEgMKAQghAANTRVACAl9fAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAWZGVmYXVsdFJlc3QyQWRkcmVzc1N0cgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAIjM1BGd1l0YThiaUV6MzF6cGVGZTVESks4d0U1dHJTcFFWRjgDCQAAAgEBVAUHJG1hdGNoMAIjM043VXVZYXI2MjY0UDU4RkJoVldLUFFBaDRZdWEyaGduZ3YJAAIBAg1Vbmtub3duIGNoYWluABVvbGRTdGFraW5nQ29udHJhY3RTdHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDACIzNQTG5jWHRTMVU4M0Q2Y1FiRkQzSDhyQkhQTGd6eFNGS1oxAwkAAAIBAVQFByRtYXRjaDACIzNOREN5Qkc1cTg1SnVhUmlpZ1VlRXRhaW55akNRVDNYcFptCQACAQINVW5rbm93biBjaGFpbgEPZ2V0U3RyaW5nT3JGYWlsAgdhZGRyZXNzA2tleQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCdCAIFB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gfYDFdrUW1uLVVzQGXZcsbNPymDn9WVSZMztvZ Diff:
Old | New | Differences | |
---|---|---|---|
193 | 193 | ||
194 | 194 | @Callable(an) | |
195 | 195 | func conversionInfoREADONLY (ac) = { | |
196 | - | let as = addressFromStringValue(getStringValue(u)) | |
196 | + | let as = addressFromStringValue(getStringValue(s, u)) | |
197 | 197 | let at = K(invoke(as, "unstakeAllAcresREADONLY", [ac], nil)) | |
198 | 198 | let au = at._1 | |
199 | 199 | let av = at._2 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = take(drop(this.bytes, 1), 1) | |
7 | 7 | ||
8 | 8 | let c = { | |
9 | 9 | let d = b | |
10 | 10 | if ((base58'2W' == d)) | |
11 | 11 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
12 | 12 | else if ((base58'2T' == d)) | |
13 | 13 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
14 | 14 | else throw("Unknown chain") | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | let e = { | |
18 | 18 | let d = b | |
19 | 19 | if ((base58'2W' == d)) | |
20 | 20 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
21 | 21 | else if ((base58'2T' == d)) | |
22 | 22 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
23 | 23 | else throw("Unknown chain") | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | func f (g,h) = valueOrErrorMessage(getString(g, h), makeString(["mandatory ", toString(g), ".", h, " is not defined"], "")) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | let i = 1 | |
30 | 30 | ||
31 | 31 | let j = 2 | |
32 | 32 | ||
33 | 33 | func k () = "%s__restConfig" | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func l () = "%s__rest2Addr" | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func m (n) = split_4C(f(n, k()), a) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func o (p,q) = valueOrErrorMessage(addressFromString(p[q]), ("Rest cfg doesn't contain address at index " + toString(q))) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let r = addressFromStringValue(valueOrElse(getString(this, l()), c)) | |
46 | 46 | ||
47 | 47 | let p = m(r) | |
48 | 48 | ||
49 | 49 | let s = o(p, i) | |
50 | 50 | ||
51 | 51 | let t = o(p, j) | |
52 | 52 | ||
53 | 53 | let u = "oldAcresContract" | |
54 | 54 | ||
55 | 55 | func v (w) = ("lastTxIdByUser_" + w) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | let x = "wlg_assetId" | |
59 | 59 | ||
60 | 60 | let y = valueOrErrorMessage(getBinary(t, x), "WLGOLD is not issued yet") | |
61 | 61 | ||
62 | 62 | let z = "acresAssetId" | |
63 | 63 | ||
64 | 64 | let A = valueOrErrorMessage(getBinary(s, z), "ACRES is not issued yet") | |
65 | 65 | ||
66 | 66 | func B (C) = ("stakedDuckByOwner_" + C) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func D (w) = ("accountCustomNameByAddr_" + w) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func E (w) = ("accRefBy_" + w) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func F (w) = ("accReferrals_" + w) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func G (H) = { | |
79 | 79 | let d = H | |
80 | 80 | if ($isInstanceOf(d, "(Int, Int, Int, Int)")) | |
81 | 81 | then { | |
82 | 82 | let I = d | |
83 | 83 | I | |
84 | 84 | } | |
85 | 85 | else throw("fail to cast into (Int, Int, Int, Int)") | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func J (H) = { | |
90 | 90 | let d = H | |
91 | 91 | if ($isInstanceOf(d, "(Int, Int, Int)")) | |
92 | 92 | then { | |
93 | 93 | let I = d | |
94 | 94 | I | |
95 | 95 | } | |
96 | 96 | else throw("fail to cast into (Int, Int, Int)") | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func K (H) = { | |
101 | 101 | let d = H | |
102 | 102 | if ($isInstanceOf(d, "(Int, Int)")) | |
103 | 103 | then { | |
104 | 104 | let I = d | |
105 | 105 | I | |
106 | 106 | } | |
107 | 107 | else throw("fail to cast into (Int, Int)") | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | let L = 100000000 | |
112 | 112 | ||
113 | 113 | func M (w) = ("acresStakedAmountByUser_" + w) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | let N = [10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
117 | 117 | ||
118 | 118 | func O (P) = { | |
119 | 119 | let Q = (P / L) | |
120 | 120 | func R (S,T) = if ((T > Q)) | |
121 | 121 | then S | |
122 | 122 | else (S + 1) | |
123 | 123 | ||
124 | 124 | let q = { | |
125 | 125 | let U = N | |
126 | 126 | let V = size(U) | |
127 | 127 | let W = 0 | |
128 | 128 | func X (Y,Z) = if ((Z >= V)) | |
129 | 129 | then Y | |
130 | 130 | else R(Y, U[Z]) | |
131 | 131 | ||
132 | 132 | func aa (Y,Z) = if ((Z >= V)) | |
133 | 133 | then Y | |
134 | 134 | else throw("List size exceeds 10") | |
135 | 135 | ||
136 | 136 | aa(X(X(X(X(X(X(X(X(X(X(W, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
137 | 137 | } | |
138 | 138 | (q + 1) | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func ab (ac) = { | |
143 | 143 | let w = addressFromString(ac) | |
144 | 144 | let ad = if (isDefined(w)) | |
145 | 145 | then wavesBalance(value(w)) | |
146 | 146 | else BalanceDetails(0, 0, 0, 0) | |
147 | 147 | let ae = if (isDefined(w)) | |
148 | 148 | then assetBalance(value(w), y) | |
149 | 149 | else 0 | |
150 | 150 | let af = valueOrElse(getString(s, D(ac)), ac) | |
151 | 151 | let ag = E(ac) | |
152 | 152 | let ah = getString(s, ag) | |
153 | 153 | let ai = valueOrElse(getString(s, F(ac)), "") | |
154 | 154 | let aj = valueOrElse(getString(s, v(ac)), "") | |
155 | 155 | let ak = if (isDefined(w)) | |
156 | 156 | then assetBalance(value(w), A) | |
157 | 157 | else 0 | |
158 | 158 | let al = valueOrElse(getInteger(s, M(ac)), 0) | |
159 | 159 | let am = O(ak) | |
160 | 160 | [("%s%s__customName__" + af), ("%s%s__referredBy__" + valueOrElse(ah, "")), ("%s%s__referrals__" + ai), ("%s%s__lastTxId__" + aj), ("%s%d__wavesBalance__" + toString(ad.available)), ("%s%d__wlgoldBalance__" + toString(ae)), ("%s%d__acresBalance__" + toString(ak)), ("%s%d__stakedAcres__" + toString(al)), ("%s%d__currentLvl__" + toString(am))] | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | @Callable(an) | |
165 | 165 | func constructorV1 (ao) = if ((an.caller != this)) | |
166 | 166 | then throw("permissions denied") | |
167 | 167 | else { | |
168 | 168 | func ap (S,aq) = (S + "%s") | |
169 | 169 | ||
170 | 170 | let ar = { | |
171 | 171 | let U = ao | |
172 | 172 | let V = size(U) | |
173 | 173 | let W = "" | |
174 | 174 | func X (Y,Z) = if ((Z >= V)) | |
175 | 175 | then Y | |
176 | 176 | else ap(Y, U[Z]) | |
177 | 177 | ||
178 | 178 | func aa (Y,Z) = if ((Z >= V)) | |
179 | 179 | then Y | |
180 | 180 | else throw("List size exceeds 10") | |
181 | 181 | ||
182 | 182 | aa(X(X(X(X(X(X(X(X(X(X(W, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
183 | 183 | } | |
184 | 184 | [StringEntry(k(), makeString(ar :: ao, a)), StringEntry(l(), toString(this))] | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(an) | |
190 | 190 | func walletInfoREADONLY (ac) = $Tuple2(nil, ab(ac)) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Callable(an) | |
195 | 195 | func conversionInfoREADONLY (ac) = { | |
196 | - | let as = addressFromStringValue(getStringValue(u)) | |
196 | + | let as = addressFromStringValue(getStringValue(s, u)) | |
197 | 197 | let at = K(invoke(as, "unstakeAllAcresREADONLY", [ac], nil)) | |
198 | 198 | let au = at._1 | |
199 | 199 | let av = at._2 | |
200 | 200 | let aw = G(invoke(s, "unstakeLandsREADONLY", [ac], nil)) | |
201 | 201 | let ax = aw._1 | |
202 | 202 | let ay = aw._2 | |
203 | 203 | let az = aw._3 | |
204 | 204 | let aA = aw._4 | |
205 | 205 | let aB = addressFromStringValue(e) | |
206 | 206 | let aC = valueOrElse(getString(aB, B(ac)), "") | |
207 | 207 | let aD = if ((aC != "")) | |
208 | 208 | then J(invoke(aB, "unstakeDuckREADONLY", [aC, ac], nil)) | |
209 | 209 | else $Tuple3(0, 0, 0) | |
210 | 210 | let aE = aD._1 | |
211 | 211 | let aF = aD._2 | |
212 | 212 | let aG = aD._3 | |
213 | 213 | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(au)), ("%s%d__claimedAcres__" + toString(av)), ("%s%d__acresFromPieces__" + toString(ax)), ("%s%d__acresFromRes__" + toString(ay)), ("%s%d__acresFromMat__" + toString(az)), ("%s%d__acresFromProd__" + toString(aA)), ("%s%d__acresFromDuckRes__" + toString(aE)), ("%s%d__acresFromDuckMat__" + toString(aF)), ("%s%d__acresFromDuckProd__" + toString(aG))]) | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 |
github/deemru/w8io/169f3d6 31.69 ms ◑