tx · BeJcibcm9SaWD7FXVjmZJL3mmR8SztTm9HWEnFUUG365 3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs: -0.04000000 Waves 2022.07.29 18:31 [2161301] smart account 3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs > SELF 0.00000000 Waves
{ "type": 13, "id": "BeJcibcm9SaWD7FXVjmZJL3mmR8SztTm9HWEnFUUG365", "fee": 4000000, "feeAssetId": null, "timestamp": 1659108731238, "version": 1, "sender": "3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs", "senderPublicKey": "BLEvt3fBtK9gbCuj3VA7nHviqe3TPkRrF9KL6ZaHGgr4", "proofs": [ "5z2vCi89j9ByKcEtn17guhRH2WQ5snztcHNkSNwPJJjEe3d7EGZJccApPjqgdYfR4TmRiZ71dTgA1KzY1LvbKaA6" ], "script": "base64:BgIRCAISAwoBARIDCgEIEgMKAQgxAAtyZXZpc2lvbk51bQIAAAZFVUxFUjgA1onPgQEABU1VTFQ2AMCEPQAGTVVMVFg2CQC2AgEAwIQ9AAVNVUxUOACAwtcvAAZNVUxUWDgJALYCAQCAwtcvAAZNVUxUMTIAgKCUpY0dAAZNVUxUMTgJALYCAQCAgJC7utat8A0AA1NFUAICX18AB1dBVkVTSUQJANkEAQIFV0FWRVMBFWtleUduc2J0RnJvbVN1cmZDb2VmZgACHSVzJXNfX2NmZ19fZ25zYnRGcm9tU3VyZkNvZWZmAQ9nZXRTdHJpbmdPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUHYWRkcmVzcwUDa2V5CQC5CQIJAMwIAgIKbWFuZGF0b3J5IAkAzAgCCQClCAEFB2FkZHJlc3MJAMwIAgIBLgkAzAgCBQNrZXkJAMwIAgIPIGlzIG5vdCBkZWZpbmVkBQNuaWwCAAEMZ2V0SW50T3JGYWlsAgdhZGRyZXNzA2tleQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCaC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ZXdhcmRTdHIFA25pbABTTAy9", "chainId": 84, "height": 2161301, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DPhiLbYzKNeiv3DDENQfZFqCUtSoEU18jicQdLbUJhPM Next: J9Wba82ZnfD3PBNwFCnftYKubtEV7bfoSrXNc3LQqop4 Full:
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 = 271828182 | |
7 | 7 | ||
8 | 8 | let c = 1000000 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000) | |
11 | 11 | ||
12 | 12 | let e = 100000000 | |
13 | 13 | ||
14 | 14 | let f = toBigInt(100000000) | |
15 | 15 | ||
16 | 16 | let g = 1000000000000 | |
17 | 17 | ||
18 | 18 | let h = toBigInt(1000000000000000000) | |
19 | 19 | ||
20 | 20 | let i = "__" | |
21 | 21 | ||
22 | 22 | let j = fromBase58String("WAVES") | |
23 | 23 | ||
24 | 24 | func k () = "%s%s__cfg__gnsbtFromSurfCoeff" | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func l (m,n) = valueOrErrorMessage(getString(m, n), makeString(["mandatory ", toString(m), ".", n, " is not defined"], "")) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func o (m,n) = valueOrErrorMessage(getInteger(m, n), makeString(["mandatory ", toString(m), ".", n, " is not defined"], "")) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func p (m,n) = valueOrErrorMessage(getBoolean(m, n), makeString(["mandatory ", toString(m), ".", n, " is not defined"], "")) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func q (r,s) = fraction(r, e, s) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func t (r,s) = fraction(r, s, e) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func u (v) = { | |
43 | 43 | let w = v | |
44 | 44 | if ($isInstanceOf(w, "List[Any]")) | |
45 | 45 | then { | |
46 | 46 | let x = w | |
47 | 47 | x | |
48 | 48 | } | |
49 | 49 | else throw("fail to cast into List[Any]") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func y (v) = { | |
54 | 54 | let w = v | |
55 | 55 | if ($isInstanceOf(w, "Int")) | |
56 | 56 | then { | |
57 | 57 | let z = w | |
58 | 58 | z | |
59 | 59 | } | |
60 | 60 | else throw("fail to cast into Int") | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func A (v) = { | |
65 | 65 | let w = v | |
66 | 66 | if ($isInstanceOf(w, "String")) | |
67 | 67 | then { | |
68 | 68 | let B = w | |
69 | 69 | B | |
70 | 70 | } | |
71 | 71 | else throw("fail to cast into String") | |
72 | 72 | } | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func C (v) = { | |
76 | 76 | let w = v | |
77 | 77 | if ($isInstanceOf(w, "(Int, Int)")) | |
78 | 78 | then { | |
79 | 79 | let D = w | |
80 | 80 | D | |
81 | 81 | } | |
82 | 82 | else throw("fail to cast into Tuple2 ints") | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func E (v) = { | |
87 | 87 | let w = v | |
88 | 88 | if ($isInstanceOf(w, "(Int, Int, Int, Int, Int)")) | |
89 | 89 | then { | |
90 | 90 | let F = w | |
91 | 91 | F | |
92 | 92 | } | |
93 | 93 | else throw("fail to cast into Int") | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func G (H) = if ((0 > H)) | |
98 | 98 | then -1 | |
99 | 99 | else { | |
100 | 100 | let w = blockInfoByHeight(H) | |
101 | 101 | if ($isInstanceOf(w, "BlockInfo")) | |
102 | 102 | then { | |
103 | 103 | let I = w | |
104 | 104 | I.timestamp | |
105 | 105 | } | |
106 | 106 | else -1 | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func J (K,L) = fraction(toBigInt(K), h, toBigInt(L)) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func M (v,N) = toInt(fraction(v, toBigInt(N), h)) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | let O = 1 | |
117 | 117 | ||
118 | 118 | let P = 2 | |
119 | 119 | ||
120 | 120 | let Q = 3 | |
121 | 121 | ||
122 | 122 | let R = 4 | |
123 | 123 | ||
124 | 124 | let S = 5 | |
125 | 125 | ||
126 | 126 | let T = 6 | |
127 | 127 | ||
128 | 128 | let U = 7 | |
129 | 129 | ||
130 | 130 | let V = 8 | |
131 | 131 | ||
132 | 132 | let W = 9 | |
133 | 133 | ||
134 | 134 | let X = 10 | |
135 | 135 | ||
136 | 136 | let Y = 11 | |
137 | 137 | ||
138 | 138 | func Z () = "%s%s__config__controlAddress" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func aa () = "%s__controlConfig" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ab (ac) = split(l(ac, aa()), i) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ad (ae,af) = valueOrErrorMessage(addressFromString(ae[af]), ("Control cfg doesn't contain address at index " + toString(af))) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | let ag = addressFromStringValue(valueOrElse(getString(this, Z()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
151 | 151 | ||
152 | 152 | let ae = ab(ag) | |
153 | 153 | ||
154 | 154 | let ah = ad(ae, R) | |
155 | 155 | ||
156 | 156 | let ai = ad(ae, O) | |
157 | 157 | ||
158 | 158 | let aj = ad(ae, P) | |
159 | 159 | ||
160 | 160 | let ak = ad(ae, S) | |
161 | 161 | ||
162 | 162 | let al = ad(ae, Q) | |
163 | 163 | ||
164 | 164 | let am = ad(ae, V) | |
165 | 165 | ||
166 | 166 | let an = ad(ae, X) | |
167 | 167 | ||
168 | 168 | let ao = valueOrElse(getInteger(this, k()), 60) | |
169 | 169 | ||
170 | 170 | @Callable(ap) | |
171 | 171 | func gnsbtFromSurfSYSREADONLY (aq) = $Tuple2(nil, (aq / ao)) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | ||
175 | 175 | @Callable(ap) | |
176 | 176 | func gnsbtInfoSYSREADONLY (ar) = { | |
177 | 177 | let as = u(invoke(am, "nsbtStakingSYSREADONLY", [ar], nil)) | |
178 | 178 | let at = y(as[0]) | |
179 | 179 | let au = y(as[1]) | |
180 | 180 | let av = at | |
181 | 181 | let aw = au | |
182 | 182 | let ax = u(invoke(an, "surfStakingSYSREADONLY", [ar], nil)) | |
183 | 183 | let ay = y(ax[0]) | |
184 | 184 | let az = y(ax[1]) | |
185 | 185 | let aA = y(ax[2]) | |
186 | 186 | let aB = y(ax[3]) | |
187 | 187 | let aC = (av + aA) | |
188 | 188 | let aD = (aw + aB) | |
189 | 189 | $Tuple2(nil, [aC, aD, [at, au, av, aw], [ay, az, aA, aB]]) | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Callable(ap) | |
195 | 195 | func gnsbtRewardsSYSREADONLY (ar) = { | |
196 | 196 | let aE = A(invoke(am, "unclaimedRewardsREADONLY", [ar], nil)) | |
197 | 197 | let aF = A(invoke(an, "unclaimedRewardsREADONLY", [ar], nil)) | |
198 | 198 | $Tuple2(nil, [aE, aF]) | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 |
github/deemru/w8io/026f985 23.30 ms ◑