tx · FRQoNFT4ZazKBrfqNZEoa8zF8UVVrAPZ2C6JMwa1oGif 3N4vPEuMkXveuFYFohFsZaPMdbbiP24T1F7: -0.01400000 Waves 2023.09.06 18:08 [2743675] smart account 3N4vPEuMkXveuFYFohFsZaPMdbbiP24T1F7 > SELF 0.00000000 Waves
{ "type": 13, "id": "FRQoNFT4ZazKBrfqNZEoa8zF8UVVrAPZ2C6JMwa1oGif", "fee": 1400000, "feeAssetId": null, "timestamp": 1694012873824, "version": 2, "chainId": 84, "sender": "3N4vPEuMkXveuFYFohFsZaPMdbbiP24T1F7", "senderPublicKey": "2paZxKSEp48rdM6xb5j15ZN3hHbBLxSQmsuG1HnK5sPp", "proofs": [ "sF8PgyYJbxjy7nQ6egjgGV3U29c4jb2z7TPw2wf6k4cGtzjm61enoLJR9dz1BV9CKaodmbjsnNCaqzBZHoVWFjC" ], "script": "base64:AAIFAAAAAAAAACAIAhIHCgUIAQgYARIDCgEBEgQKAgEBEgMKAQQSAwoBAQAAAA4AAAAAEGN1cnJlbnRMb2NrSWRLZXkCAAAADWN1cnJlbnRMb2NrSWQAAAAAEGFkbWluQ29udHJhY3RLZXkCAAAADWFkbWluQ29udHJhY3QAAAAAE3RyZWFzdXJ5Q29udHJhY3RLZXkCAAAAEHRyZWFzdXJ5Q29udHJhY3QAAAAADGlzRnJlZXplZEtleQIAAAAJaXNGcmVlemVkAAAAABBpc0NvbnN0cnVjdGVkS2V5AgAAAA1pc0NvbnN0cnVjdGVkAAAAAAx2ZXJpZmllcnNLZXkCAAAACXZlcmlmaWVycwAAAAAQdmVyaWZpZXJzRGF0YUtleQIAAAANdmVyaWZpZXJzRGF0YQAAAAARdW5sb2NrRmVlQmFzaXNLZXkCAAAADnVubG9ja0ZlZUJhc2lzAAAAAANTRVACAAAAAl9fAAAAAAZNVUxUMTAAAAAAAlQL5AABAAAACWFzUGF5bWVudAAAAAEAAAABdgQAAAAHJG1hdGNoMAUAAAABdgMJAAABAAAAAgUAAAAHJG1hdGNo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GQAAAACBQAAABR2YWxpZGF0ZWRQcm9vZnNDb3VudAUAAAAKaXNWZXJpZmllZAkAAGQAAAACBQAAABJjdXJyZW50UHJvb2ZzSW5kZXgAAAAAAAAAAAEEAAAADnZhbGlkYXRpb25EYXRhCgAAAAACJGwFAAAACXZlcmlmaWVycwoAAAAAAiRzCQABkAAAAAEFAAAAAiRsCgAAAAAFJGFjYzAJAAUUAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAoBAAAABSRmMF8xAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkBAAAAA3N1bQAAAAIFAAAAAiRhCQABkQAAAAIFAAAAAiRsBQAAAAIkaQoBAAAABSRmMF8yAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkAAAIAAAABAgAAABNMaXN0IHNpemUgZXhjZWVkcyA4CQEAAAAFJGYwXzIAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACBQAAAAUkYWNjMAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAAAAAAAABgAAAAAAAAAABwAAAAAAAAAACAkAAGcAAAACCAUAAAAOdmFsaWRhdGlvbkRhdGEAAAACXzEFAAAAEXZlcmlmaWVyc1JlcXVpcmVkCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZdnd84=", "height": 2743675, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5UZpAdzRdnE8NNLnMoucXr3ArD9P112wskTZLCiyabpk Next: 9b5exMFNRUtihgs25cPNsewaJ4BqYGftWnieqVL427qU Diff:
Old | New | Differences | |
---|---|---|---|
130 | 130 | else fromBase58String(U) | |
131 | 131 | let Y = x(s) | |
132 | 132 | let Z = (s - Y) | |
133 | + | let C = getStringValue(c) | |
133 | 134 | let aa = [StringEntry(M, W), ScriptTransfer(z.caller, Z, X)] | |
134 | 135 | if ((Y > 0)) | |
135 | - | then ScriptTransfer( | |
136 | + | then ScriptTransfer(Address(fromBase58String(C)), Y, X) :: aa | |
136 | 137 | else aa | |
137 | 138 | } | |
138 | 139 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "currentLockId" | |
5 | 5 | ||
6 | 6 | let b = "adminContract" | |
7 | 7 | ||
8 | 8 | let c = "treasuryContract" | |
9 | 9 | ||
10 | 10 | let d = "isFreezed" | |
11 | 11 | ||
12 | 12 | let e = "isConstructed" | |
13 | 13 | ||
14 | 14 | let f = "verifiers" | |
15 | 15 | ||
16 | 16 | let g = "verifiersData" | |
17 | 17 | ||
18 | 18 | let h = "unlockFeeBasis" | |
19 | 19 | ||
20 | 20 | let i = "__" | |
21 | 21 | ||
22 | 22 | let j = 10000000000 | |
23 | 23 | ||
24 | 24 | func k (l) = { | |
25 | 25 | let m = l | |
26 | 26 | if ($isInstanceOf(m, "AttachedPayment")) | |
27 | 27 | then { | |
28 | 28 | let n = m | |
29 | 29 | n | |
30 | 30 | } | |
31 | 31 | else throw("fail to cast into AttachedPayment") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o (l) = { | |
36 | 36 | let m = l | |
37 | 37 | if ($isInstanceOf(m, "ByteVector")) | |
38 | 38 | then { | |
39 | 39 | let n = m | |
40 | 40 | n | |
41 | 41 | } | |
42 | 42 | else throw("fail to cast into ByteVector") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p (q,r,s,t) = { | |
47 | 47 | let u = (height - q) | |
48 | 48 | if ((u >= r)) | |
49 | 49 | then (s - t) | |
50 | 50 | else { | |
51 | 51 | let v = fraction(s, j, r, HALFUP) | |
52 | 52 | let w = fraction(v, u, j) | |
53 | 53 | (w - t) | |
54 | 54 | } | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func x (s) = { | |
59 | 59 | let y = getIntegerValue(h) | |
60 | 60 | if ((y == 0)) | |
61 | 61 | then 0 | |
62 | 62 | else fraction(fraction(s, j, 1000, HALFUP), y, j, HALFUP) | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | @Callable(z) | |
67 | 67 | func constructor (A,B,C,D,E) = if (isDefined(getBoolean(e))) | |
68 | 68 | then throw("Constructor can be called just once") | |
69 | 69 | else { | |
70 | 70 | let F = size(D) | |
71 | 71 | if ((F > 8)) | |
72 | 72 | then throw("Max verifiers number is 8") | |
73 | 73 | else { | |
74 | 74 | let G = makeString(D, i) | |
75 | 75 | [StringEntry(b, A), IntegerEntry(a, 0), BooleanEntry(d, false), BooleanEntry(e, true), IntegerEntry(h, B), StringEntry(c, C), StringEntry(f, G), StringEntry(g, ((toString(F) + i) + toString(E)))] | |
76 | 76 | } | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | ||
81 | 81 | @Callable(z) | |
82 | 82 | func lock (H) = if (getBooleanValue(d)) | |
83 | 83 | then throw("Contract operations is suspended") | |
84 | 84 | else { | |
85 | 85 | let I = k(z.payments[0]) | |
86 | 86 | if ((0 >= I.amount)) | |
87 | 87 | then throw("Amount must be positive") | |
88 | 88 | else if ((1440 > H)) | |
89 | 89 | then throw("24 hours is minimum vesting period") | |
90 | 90 | else { | |
91 | 91 | let J = getIntegerValue(a) | |
92 | 92 | let K = toBase58String(z.caller.bytes) | |
93 | 93 | let L = if (!(isDefined(I.assetId))) | |
94 | 94 | then "WAVES" | |
95 | 95 | else toBase58String(o(I.assetId)) | |
96 | 96 | let M = ((K + i) + toString(J)) | |
97 | 97 | let N = ((((((((toString(height) + i) + toString(I.amount)) + i) + "0") + i) + toString(H)) + i) + L) | |
98 | 98 | [StringEntry(M, N), IntegerEntry(a, (J + 1))] | |
99 | 99 | } | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | ||
104 | 104 | @Callable(z) | |
105 | 105 | func withdraw (s,O) = if (getBooleanValue(d)) | |
106 | 106 | then throw("Contract operations is suspended") | |
107 | 107 | else if (if ((0 >= s)) | |
108 | 108 | then true | |
109 | 109 | else (0 > O)) | |
110 | 110 | then throw("Amount must be positive or wrong lock id") | |
111 | 111 | else { | |
112 | 112 | let K = toBase58String(z.caller.bytes) | |
113 | 113 | let M = ((K + i) + toString(O)) | |
114 | 114 | let P = split(getStringValue(M), i) | |
115 | 115 | if ((size(P) != 5)) | |
116 | 116 | then throw("Internal error") | |
117 | 117 | else { | |
118 | 118 | let Q = P[0] | |
119 | 119 | let R = P[1] | |
120 | 120 | let S = P[2] | |
121 | 121 | let T = P[3] | |
122 | 122 | let U = P[4] | |
123 | 123 | let V = p(parseIntValue(Q), parseIntValue(T), parseIntValue(R), parseIntValue(S)) | |
124 | 124 | if ((s > V)) | |
125 | 125 | then throw(("Requested amount is two big, max available amount is: " + toString(V))) | |
126 | 126 | else { | |
127 | 127 | let W = ((((((((Q + i) + R) + i) + toString((parseIntValue(S) + s))) + i) + T) + i) + U) | |
128 | 128 | let X = if ((U == "WAVES")) | |
129 | 129 | then unit | |
130 | 130 | else fromBase58String(U) | |
131 | 131 | let Y = x(s) | |
132 | 132 | let Z = (s - Y) | |
133 | + | let C = getStringValue(c) | |
133 | 134 | let aa = [StringEntry(M, W), ScriptTransfer(z.caller, Z, X)] | |
134 | 135 | if ((Y > 0)) | |
135 | - | then ScriptTransfer( | |
136 | + | then ScriptTransfer(Address(fromBase58String(C)), Y, X) :: aa | |
136 | 137 | else aa | |
137 | 138 | } | |
138 | 139 | } | |
139 | 140 | } | |
140 | 141 | ||
141 | 142 | ||
142 | 143 | ||
143 | 144 | @Callable(z) | |
144 | 145 | func freezeContract (ab) = { | |
145 | 146 | let ac = getStringValue(b) | |
146 | 147 | if ((ac != toBase58String(z.caller.bytes))) | |
147 | 148 | then throw("Only admin contract can call this function") | |
148 | 149 | else [BooleanEntry(d, !(ab))] | |
149 | 150 | } | |
150 | 151 | ||
151 | 152 | ||
152 | 153 | ||
153 | 154 | @Callable(z) | |
154 | 155 | func changeFeeBasis (ad) = { | |
155 | 156 | let ac = getStringValue(b) | |
156 | 157 | if ((ac != toBase58String(z.caller.bytes))) | |
157 | 158 | then throw("Only admin contract can call this function") | |
158 | 159 | else if ((0 > ad)) | |
159 | 160 | then throw("Fee basis can't be negative") | |
160 | 161 | else if ((ad > 1000)) | |
161 | 162 | then throw("Fee basis can't be bigger than 10 percent") | |
162 | 163 | else [IntegerEntry(h, ad)] | |
163 | 164 | } | |
164 | 165 | ||
165 | 166 | ||
166 | 167 | @Verifier(ae) | |
167 | 168 | func af () = { | |
168 | 169 | let m = ae | |
169 | 170 | if (if ($isInstanceOf(m, "MassTransferTransaction")) | |
170 | 171 | then true | |
171 | 172 | else if ($isInstanceOf(m, "TransferTransaction")) | |
172 | 173 | then true | |
173 | 174 | else $isInstanceOf(m, "SetScriptTransaction")) | |
174 | 175 | then { | |
175 | 176 | let D = split(getStringValue(f), i) | |
176 | 177 | let ag = split(getStringValue(g), i) | |
177 | 178 | let F = parseIntValue(ag[0]) | |
178 | 179 | let ah = parseIntValue(ag[1]) | |
179 | 180 | func ai (aj,ak) = { | |
180 | 181 | let al = aj._1 | |
181 | 182 | let am = aj._2 | |
182 | 183 | let an = if (sigVerify(ae.bodyBytes, ae.proofs[am], fromBase58String(ak))) | |
183 | 184 | then 1 | |
184 | 185 | else 0 | |
185 | 186 | $Tuple2((al + an), (am + 1)) | |
186 | 187 | } | |
187 | 188 | ||
188 | 189 | let ao = { | |
189 | 190 | let ap = D | |
190 | 191 | let aq = size(ap) | |
191 | 192 | let ar = $Tuple2(0, 0) | |
192 | 193 | func as (at,au) = if ((au >= aq)) | |
193 | 194 | then at | |
194 | 195 | else ai(at, ap[au]) | |
195 | 196 | ||
196 | 197 | func av (at,au) = if ((au >= aq)) | |
197 | 198 | then at | |
198 | 199 | else throw("List size exceeds 8") | |
199 | 200 | ||
200 | 201 | av(as(as(as(as(as(as(as(as(ar, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
201 | 202 | } | |
202 | 203 | (ao._1 >= ah) | |
203 | 204 | } | |
204 | 205 | else sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey) | |
205 | 206 | } | |
206 | 207 |
github/deemru/w8io/026f985 35.19 ms ◑