tx · En95CHJCtSGsfW6AxB3Ku1SyxD2iQPLrw4BaqnCzFavk 3MrxLwKyT9TFqGxsGfsnVqijZFb7hRtBqgp: -0.01400000 Waves 2024.02.16 10:30 [2978461] smart account 3MrxLwKyT9TFqGxsGfsnVqijZFb7hRtBqgp > SELF 0.00000000 Waves
{ "type": 13, "id": "En95CHJCtSGsfW6AxB3Ku1SyxD2iQPLrw4BaqnCzFavk", "fee": 1400000, "feeAssetId": null, "timestamp": 1708068646320, "version": 2, "chainId": 84, "sender": "3MrxLwKyT9TFqGxsGfsnVqijZFb7hRtBqgp", "senderPublicKey": "jqG5iLDVsyrR44uMDTGYuDQdJmMDcUXeiedXT98KMRJ", "proofs": [ "4ame24WmcP23hcvUMEbo3vBjLgemSZN8RRAB2MJADDwhqZ2fRj9xa28XTTrTqSSGXf98PzSimasf1URDxbtJ4dtA" ], "script": "base64:BwJACAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIFCgMCAQQSBAoCAgESBQoDAgECEgUKAwISERIECgICARcAB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRUAQFUAAhjaGFpbklkVwEBVwELbXVzdEFkZHJlc3MCAWkHYWRkcmVzcwMJAAACCAUBaQZjYWxsZXIFB2FkZHJlc3MGCQACAQIRcGVybWlzc2lvbiBkZW5pZWQAA1NFUAICX18ABVdBVkVTAgVXQVZFUwAQY29udHJhY3RGaWxlbmFtZQIPd3hkYW9fbG9jay5yaWRlAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ9zdHJpbmdUb0Fzc2V0SWQBAXMDCQAAAgUBcwUFV0FWRVMFBHVuaXQJANkEAQUBcwEUa2V5Q2FsY3VsYXRvckFkZHJlc3MAAhUlc19fY2FsY3VsYXRvckFkZHJlc3MBEWtleUZhY3RvcnlBZGRyZXNzAAISJ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c3NldHNMaXN0CgACJHMJAJADAQUCJGwKAAUkYWNjMAkAlAoCBQNuaWwAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEOYWRkTmV3VHJhbnNmZXICBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDEwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoED2Fzc2V0c1RyYW5zZmVycwgFCyR0MDM0ODUzNTY2Al8xBApfbGFzdEluZGV4CAULJHQwMzQ4NTM1NjYCXzIJAJQKAgUPYXNzZXRzVHJhbnNmZXJzBQR1bml0CQCUCgIFA25pbAUEdW5pdAFpAQ10cmFuc2ZlcldhdmVzAg5yZWNpcGllbnRCeXRlcwZhbW91bnQDCQEOb25seUNhbGN1bGF0b3IBBQFpCQCUCgIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBB0FkZHJlc3MBBQ5yZWNpcGllbnRCeXRlcwUGYW1vdW50BQR1bml0BQNuaWwFBmFtb3VudAkAlAoCBQNuaWwFBHVuaXQBAnR4AQZ2ZXJpZnkACQAAAgUHY2hhaW5JZAUIY2hhaW5JZFQoh9NW", "height": 2978461, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hz26it8kpWBd6B4QRT8qmAN44tmRRWjkxLrQtp8yAMY Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = take(drop(this.bytes, 1), 1) | |
5 | 5 | ||
6 | 6 | let b = base58'2T' | |
7 | 7 | ||
8 | 8 | let c = base58'2W' | |
9 | 9 | ||
10 | 10 | func d (e,f) = if ((e.caller == f)) | |
11 | 11 | then true | |
12 | 12 | else throw("permission denied") | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | let g = "__" | |
16 | 16 | ||
17 | 17 | let h = "WAVES" | |
18 | 18 | ||
19 | 19 | let i = "wxdao_lock.ride" | |
20 | 20 | ||
21 | 21 | func j (k) = ((i + ": ") + k) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func l (k) = throw(j(k)) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func m (k) = if ((k == h)) | |
28 | 28 | then unit | |
29 | 29 | else fromBase58String(k) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func n () = "%s__calculatorAddress" | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o () = "%s__factoryAddress" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func p () = makeString(["%s", "currentPeriod"], g) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func q (r) = makeString(["%s%d", "startHeight", toString(r)], g) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func s () = makeString(["%s", "periodLength"], g) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func t (r) = makeString(["%s%d", "treasuryValue", toString(r)], g) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | let u = { | |
51 | 51 | let v = getString(this, o()) | |
52 | 52 | if ($isInstanceOf(v, "String")) | |
53 | 53 | then { | |
54 | 54 | let k = v | |
55 | 55 | addressFromString(k) | |
56 | 56 | } | |
57 | 57 | else if ($isInstanceOf(v, "Unit")) | |
58 | 58 | then unit | |
59 | 59 | else throw("Match error") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | let w = valueOrErrorMessage(u, j("invalid factory address")) | |
63 | 63 | ||
64 | 64 | let x = { | |
65 | 65 | let v = getString(w, n()) | |
66 | 66 | if ($isInstanceOf(v, "String")) | |
67 | 67 | then { | |
68 | 68 | let k = v | |
69 | 69 | addressFromString(k) | |
70 | 70 | } | |
71 | 71 | else if ($isInstanceOf(v, "Unit")) | |
72 | 72 | then unit | |
73 | 73 | else throw("Match error") | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | let y = valueOrErrorMessage(x, j("invalid calculator address")) | |
77 | 77 | ||
78 | 78 | func z (e,f) = if ((e.caller == f)) | |
79 | 79 | then true | |
80 | 80 | else l("permission denied") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func A (e) = z(e, this) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func B (e) = z(e, y) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | @Callable(e) | |
90 | 90 | func stringEntry (C,D) = if (B(e)) | |
91 | 91 | then $Tuple2([StringEntry(C, D)], C) | |
92 | 92 | else $Tuple2(nil, unit) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | ||
96 | 96 | @Callable(e) | |
97 | 97 | func integerEntry (C,D) = if (B(e)) | |
98 | 98 | then $Tuple2([IntegerEntry(C, D)], C) | |
99 | 99 | else $Tuple2(nil, unit) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | ||
103 | 103 | @Callable(e) | |
104 | 104 | func booleanEntry (C,D) = if (B(e)) | |
105 | 105 | then $Tuple2([BooleanEntry(C, D)], C) | |
106 | 106 | else $Tuple2(nil, unit) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | ||
110 | 110 | @Callable(e) | |
111 | 111 | func binaryEntry (C,D) = if (B(e)) | |
112 | 112 | then $Tuple2([BinaryEntry(C, D)], C) | |
113 | 113 | else $Tuple2(nil, unit) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(e) | |
118 | 118 | func deleteEntry (C) = if (B(e)) | |
119 | 119 | then $Tuple2([DeleteEntry(C)], C) | |
120 | 120 | else $Tuple2(nil, unit) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | ||
124 | 124 | @Callable(e) | |
125 | 125 | func reissue (E,F,G) = if (B(e)) | |
126 | 126 | then $Tuple2([Reissue(E, F, G)], F) | |
127 | 127 | else $Tuple2(nil, unit) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | ||
131 | 131 | @Callable(e) | |
132 | 132 | func burn (E,F) = if (B(e)) | |
133 | 133 | then $Tuple2([Burn(E, F)], F) | |
134 | 134 | else $Tuple2(nil, unit) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | ||
138 | 138 | @Callable(e) | |
139 | 139 | func transferAsset (H,F,E) = if (B(e)) | |
140 | 140 | then $Tuple2([ScriptTransfer(Address(H), F, E)], F) | |
141 | 141 | else $Tuple2(nil, unit) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(e) | |
146 | 146 | func transferAssets (H,I,J) = if (B(e)) | |
147 | 147 | then { | |
148 | 148 | func K (L,M) = { | |
149 | 149 | let N = L | |
150 | 150 | let O = N._1 | |
151 | 151 | let P = N._2 | |
152 | 152 | let Q = ScriptTransfer(Address(H), J[P], I[P]) | |
153 | 153 | let R = (O :+ Q) | |
154 | 154 | $Tuple2(R, (P + 1)) | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | let S = { | |
158 | 158 | let T = I | |
159 | 159 | let U = size(T) | |
160 | 160 | let V = $Tuple2(nil, 0) | |
161 | 161 | func W (X,Y) = if ((Y >= U)) | |
162 | 162 | then X | |
163 | 163 | else K(X, T[Y]) | |
164 | 164 | ||
165 | 165 | func Z (X,Y) = if ((Y >= U)) | |
166 | 166 | then X | |
167 | 167 | else throw("List size exceeds 10") | |
168 | 168 | ||
169 | 169 | Z(W(W(W(W(W(W(W(W(W(W(V, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
170 | 170 | } | |
171 | 171 | let aa = S._1 | |
172 | 172 | let ab = S._2 | |
173 | 173 | $Tuple2(aa, unit) | |
174 | 174 | } | |
175 | 175 | else $Tuple2(nil, unit) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | ||
179 | 179 | @Callable(e) | |
180 | 180 | func transferWaves (H,F) = if (B(e)) | |
181 | 181 | then $Tuple2([ScriptTransfer(Address(H), F, unit)], F) | |
182 | 182 | else $Tuple2(nil, unit) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | @Verifier(ac) | |
186 | 186 | func ad () = (a == b) | |
187 | 187 |
github/deemru/w8io/169f3d6 41.66 ms ◑