tx · 9bgCno2uV9NBNaan1MSRAjVzoY9Yidpe6MKPf2XUEbae

3N8kB3UEjWWvTRBtGpGUErAevaK2q6u2eCM:  -0.01000000 Waves

2023.11.02 16:50 [2825796] smart account 3N8kB3UEjWWvTRBtGpGUErAevaK2q6u2eCM > SELF 0.00000000 Waves

{ "type": 13, "id": "9bgCno2uV9NBNaan1MSRAjVzoY9Yidpe6MKPf2XUEbae", "fee": 1000000, "feeAssetId": null, "timestamp": 1698933033111, "version": 2, "chainId": 84, "sender": "3N8kB3UEjWWvTRBtGpGUErAevaK2q6u2eCM", "senderPublicKey": "6ybktvseycJDGHTjJm3tz9iT2SKaTNtLLCZsJZRemtoM", "proofs": [ "32u2NqZNCHUnUFt9VSFYTuqvBuknCoDmiWE2YN7rYeMuChaHkrF5KjkLFfmuXd3uwpWoPhPo49KAYZGbYyWpFdWe" ], "script": "base64:BgITCAISAwoBAhIAEgMKAQESAwoBAg4AB293bmVyUGsBIFjKQnTzuTU7kMfPWIFrhrNM3EW8gc9F3rO/tY+FuNJcAAtkZW5vbWluYXRvcgCAwtcvAAp0cmFuc2ZlclZrAcQGSYrHhkeDrw+dFMD6Yr/Vrvr2pPyDHCWoMO8w9LxFaQABrVkxqK1PRfgZw0t9bDNsxFEJNHhErc9XHTkkU1OiEYYWiz2VdqW6jQewS86Z3lshxW6Fdf1MU0MDPt1NoikSf2YEIBvI+gscAfqmtvJxZbkVA/Lrr7r+HyVUoZGt1QB46Zv9umeZBwmTWiDHaLPPgOVOWQAVYLMCwpEzEzIdF2C8KzI/CsCeCv3raf56RXmhFAWuJCbMtO6My12PxFQDRv98IWP0FGhY/m6sQ/9r58GInq4bSVYWKlGucbXbayaYF35Fp3o6VaRXVWzJ6FesrH8dS+DxeadscnAN4IQEB4J5YcwZvAX/fjE5JEHNC4WrNfiUe+fe6FAQ4ttHlRgKS+PbN1butH1dDkfQkBKC5Om0WI3D45eaRbN6Taxt7ha5xCUwGVh0LQ+Wf/j9bY+un1Cwur9wx+Hm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lT3BzCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAWQFByRtYXRjaDAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFB293bmVyUGsDCQABAgUHJG1hdGNoMAIXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAWQFByRtYXRjaDAEByRtYXRjaDEIBQFkCGZ1bmN0aW9uAwkAAAICDXNldE9wZXJhdG9yUGsFByRtYXRjaDEJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFB293bmVyUGsDCQAAAgIIdHJhbnNhY3QFByRtYXRjaDEECm9wZXJhdG9yUGsJAQ1nZXRPcGVyYXRvclBrAAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUKb3BlcmF0b3JQawkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQfnMd0T", "height": 2825796, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3XQTdkT9vwstyExYtVmb4X6CNQ9ENdDo61WLcryyndAC Next: 955pwN2gQ3KaUdziNw2bwgV3tEjTWLRwvT2BbqbeG6Qz Diff:
OldNewDifferences
2626
2727 let n = "OperatorPk"
2828
29-func o (p,q,r) = drop(take(p, r), q)
29+func o (p,q,r) = take(drop(p, q), r)
3030
3131
3232 func s (k,t) = {
117117 let E = z()
118118 let F = addressFromPublicKey(E)
119119 let i = o(D, 0, 32)
120- let G = o(D, 32, 64)
121- let H = o(D, 64, 96)
122- let I = o(D, 96, 128)
120+ let G = o(D, 32, 32)
121+ let H = o(D, 64, 32)
122+ let I = o(D, 96, 32)
123123 let J = toInt(o(I, 0, 8))
124- let K = toInt(o(I, 8, 22))
125- let L = toInt(o(I, 22, 28))
126- let M = o(I, 28, 31)
127- let N = o(D, 128, 384)
128- let O = o(D, 384, 640)
129- let P = o(D, 640, 672)
130- let Q = toInt(o(D, 672, 674))
124+ let K = toInt(o(I, 8, 14))
125+ let L = toInt(o(I, 22, 6))
126+ let M = o(I, 28, 3)
127+ let N = o(D, 128, 256)
128+ let O = o(D, 384, 256)
129+ let P = o(D, 640, 32)
130+ let Q = toInt(o(D, 672, 2))
131131 let R = if ((Q == 0))
132132 then {
133- let S = (32 + 64)
134- let T = dropRight(takeRight(D, S), 64)
135- let U = takeRight(D, 64)
136- $Tuple3(o(D, 674, (size(D) - S)), T, U)
133+ let S = drop(D, 674)
134+ let T = (32 + 64)
135+ let U = dropRight(takeRight(D, T), 64)
136+ let V = takeRight(D, 64)
137+ $Tuple3(o(D, 674, (size(S) - T)), U, V)
137138 }
138- else $Tuple3(o(D, 674, size(D)), unit, unit)
139- let V = R._1
140- let T = R._2
141- let U = R._3
142- let W = toInt(o(V, 0, 8))
143- let X = valueOrElse(getBinary(m), toBytes(toBigInt(0)))
144- let Y = keccak256(V)
145- let Z = (X + Y)
146- let aa = keccak256(Z)
147- let ab = valueOrElse(getBinary(f(L)), e)
148- if ((ab == ab))
139+ else $Tuple3(drop(D, 674), unit, unit)
140+ let W = R._1
141+ let U = R._2
142+ let V = R._3
143+ let X = toInt(o(W, 0, 8))
144+ let Y = valueOrElse(getBinary(m), toBytes(toBigInt(0)))
145+ let Z = keccak256(W)
146+ let aa = (Y + Z)
147+ let ab = keccak256(aa)
148+ let ac = valueOrElse(getBinary(f(L)), e)
149+ if ((ac == ac))
149150 then {
150- let ac = valueOrElse(getInteger(l), 0)
151- let ad = valueOrElse(getBinary(f(ac)), e)
152- let ae = {
151+ let ad = valueOrElse(getInteger(l), 0)
152+ let ae = valueOrElse(getBinary(f(ad)), e)
153+ let af = {
153154 let w = getBinary(h(i))
154155 if ($isInstanceOf(w, "Unit"))
155156 then {
158159 }
159160 else true
160161 }
161- let af = ((((Y + i) + G) + I) + Y)
162- let ag = ((ad + P) + G)
163- let ah = [BinaryEntry(f(L), P), BinaryEntry(h(i), keccak256((G + I))), IntegerEntry(l, (ac + 128)), BinaryEntry(m, aa)]
164- let ai = {
162+ let ag = ((((Z + i) + G) + I) + Z)
163+ let ah = ((ae + P) + G)
164+ let ai = [BinaryEntry(f(L), P), BinaryEntry(h(i), keccak256((G + I))), IntegerEntry(l, (ad + 128)), BinaryEntry(m, ab)]
165+ let aj = {
165166 let w = Q
166167 if ((0 == w))
167168 then {
168- let aj = value(T)
169- let ak = addressFromPublicKey(aj)
169+ let ak = value(U)
170+ let al = addressFromPublicKey(ak)
170171 if ((0 > J))
171172 then throw("Can't deposit negative amount")
172- else if (!(sigVerify_8Kb((i + aj), value(U), aj)))
173+ else if (!(sigVerify_8Kb((i + ak), value(V), ak)))
173174 then throw("Invalid deposit signature")
174- else s(ak, (J * b))
175+ else s(al, (J * b))
175176 }
176177 else if ((1 == w))
177178 then if ((J != 0))
179180 else nil
180181 else if ((2 == w))
181182 then {
182- let al = (toInt(o(V, 8, 16)) * b)
183- if ((al > 0))
183+ let am = (toInt(o(W, 8, 16)) * b)
184+ if ((am > 0))
184185 then throw("Withdraw amount must be positive")
185- else [ScriptTransfer(A.caller, -(al), unit)]
186+ else [ScriptTransfer(A.caller, -(am), unit)]
186187 }
187188 else throw("Unknown tx type")
188189 }
189- let am = if ((W > 0))
190+ let an = if ((X > 0))
190191 then {
191- let an = (W * b)
192-[ScriptTransfer(F, W, unit)]
192+ let ao = (X * b)
193+[ScriptTransfer(F, X, unit)]
193194 }
194195 else nil
195- if ((L > ac))
196+ if ((L > ad))
196197 then throw("Invalid transaction index")
197- else if (!(bn256Groth16Verify_5inputs(c, N, af)))
198+ else if (!(bn256Groth16Verify_5inputs(c, N, ag)))
198199 then throw("Tx proof is invalid")
199- else if (!(bn256Groth16Verify_3inputs(d, O, ag)))
200+ else if (!(bn256Groth16Verify_3inputs(d, O, ah)))
200201 then throw("Tree proof is invalid")
201- else if (ae)
202+ else if (af)
202203 then throw("Double spend")
203- else ((ai ++ ah) ++ am)
204+ else ((aj ++ ai) ++ an)
204205 }
205206 else throw("Strict value is not equal to itself.")
206207 }
207208
208209
209210 @Verifier(D)
210-func ao () = {
211+func ap () = {
211212 let w = D
212213 if ($isInstanceOf(w, "SetScriptTransaction"))
213214 then {
214- let ap = w
215+ let aq = w
215216 sigVerify(D.bodyBytes, D.proofs[0], a)
216217 }
217218 else if ($isInstanceOf(w, "InvokeScriptTransaction"))
218219 then {
219- let ap = w
220- let aq = ap.function
221- if (("setOperatorPk" == aq))
220+ let aq = w
221+ let ar = aq.function
222+ if (("setOperatorPk" == ar))
222223 then sigVerify(D.bodyBytes, D.proofs[0], a)
223- else if (("transact" == aq))
224+ else if (("transact" == ar))
224225 then {
225226 let E = z()
226227 sigVerify(D.bodyBytes, D.proofs[0], E)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'6ybktvseycJDGHTjJm3tz9iT2SKaTNtLLCZsJZRemtoM'
55
66 let b = 100000000
77
88 let c = base64'SYrHhkeDrw+dFMD6Yr/Vrvr2pPyDHCWoMO8w9LxFaQABrVkxqK1PRfgZw0t9bDNsxFEJNHhErc9XHTkkU1OiEYYWiz2VdqW6jQewS86Z3lshxW6Fdf1MU0MDPt1NoikSf2YEIBvI+gscAfqmtvJxZbkVA/Lrr7r+HyVUoZGt1QB46Zv9umeZBwmTWiDHaLPPgOVOWQAVYLMCwpEzEzIdF2C8KzI/CsCeCv3raf56RXmhFAWuJCbMtO6My12PxFQDRv98IWP0FGhY/m6sQ/9r58GInq4bSVYWKlGucbXbayaYF35Fp3o6VaRXVWzJ6FesrH8dS+DxeadscnAN4IQEB4J5YcwZvAX/fjE5JEHNC4WrNfiUe+fe6FAQ4ttHlRgKS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HkYg4d75ZOBeUqLdx63/eIe/VEuwIkGFBs4sU9WHEsdqpx8QKpByl6ZKgiOcx/wrW0cwTvm34cq5pRVGunz+qu90se2PqAjOjiIRoDvrcCR7qlN0iTvBedZRTlOtbOxAiXOb/nwFrsmf8wFiebpKkjbNkNvTiLGRiea53xusmuNwANOZtfYMT03Kwf1bgRFrkM6TqgEVZq1Vl7wjFhGu3CFrk5popRZ0X8zhJqn5IPLt6g/0ImUPee8frB6VtMYYkmQ7ZCWTwKEPGDIgQAAACMoBtyPY40yogNVj5bF/LbEe5QGKZjwyfMj58AY5ocK00CEsC3Nm1wSKR6xi8NSbjhPZRw0/zChVK9K8ceAO4ijNFpOFuOpTO6aEq0o7spO/E0JTwTStxF0jdD9NCydSTLZi4DdtHHkcph4Sao8AwV4qd50wavb0/hxCXkVWTvErgnIWCgjrfgzQBDfa99z0alUbwyBBd8odwfJU7bERsH/SfhNempxiwEU1uq6TPQ2NxgN3fgXo5i9dHrSaI2ZQd7R9hyJVeMlBaz6uP4gS1XYlt5LkT+TFGT/vidKlcMHQx945x1Iivq728eKgJ4aBI5Ja1nxj7QC7d98xukukQl'
1111
1212 let e = toBytes(parseBigIntValue("11469701942666298368112882412133877458305516134926649826543144744382391691533"))
1313
1414 func f (g) = ("R:" + toString(g))
1515
1616
1717 func h (i) = ("N:" + toBase58String(i))
1818
1919
2020 func j (k) = ("D:" + toBase58String(k))
2121
2222
2323 let l = "PoolIndex"
2424
2525 let m = "AllMessagesHash"
2626
2727 let n = "OperatorPk"
2828
29-func o (p,q,r) = drop(take(p, r), q)
29+func o (p,q,r) = take(drop(p, q), r)
3030
3131
3232 func s (k,t) = {
3333 let u = j(k.bytes)
3434 let v = {
3535 let w = getInteger(u)
3636 if ($isInstanceOf(w, "Int"))
3737 then {
3838 let x = w
3939 x
4040 }
4141 else 0
4242 }
4343 let y = (v - t)
4444 if ((0 > t))
4545 then throw("Can't spend negative amount")
4646 else if ((0 > y))
4747 then throw("Not enough balance")
4848 else [IntegerEntry(u, y)]
4949 }
5050
5151
5252 func z () = {
5353 let w = getBinary(n)
5454 if ($isInstanceOf(w, "ByteVector"))
5555 then {
5656 let x = w
5757 x
5858 }
5959 else a
6060 }
6161
6262
6363 @Callable(A)
6464 func setOperatorPk (B) = if ((size(B) != 32))
6565 then throw("Operator public key must be 32 bytes long")
6666 else [BinaryEntry(n, B)]
6767
6868
6969
7070 @Callable(A)
7171 func deposit () = {
7272 let C = value(A.payments[0])
7373 if (isDefined(C.assetId))
7474 then throw("Only WAVES is allowed at the moment")
7575 else {
7676 let u = j(A.caller.bytes)
7777 let v = {
7878 let w = getInteger(this, u)
7979 if ($isInstanceOf(w, "Int"))
8080 then {
8181 let x = w
8282 x
8383 }
8484 else 0
8585 }
8686 let y = (v + C.amount)
8787 [IntegerEntry(u, y)]
8888 }
8989 }
9090
9191
9292
9393 @Callable(A)
9494 func withdraw (t) = {
9595 let u = j(A.caller.bytes)
9696 let v = {
9797 let w = getInteger(this, u)
9898 if ($isInstanceOf(w, "Int"))
9999 then {
100100 let x = w
101101 x
102102 }
103103 else 0
104104 }
105105 let y = (v - t)
106106 if ((0 > t))
107107 then throw("Can't withdraw negative amount")
108108 else if ((0 > y))
109109 then throw("Not enough balance")
110110 else [IntegerEntry(u, y), ScriptTransfer(A.caller, t, unit)]
111111 }
112112
113113
114114
115115 @Callable(A)
116116 func transact (D) = {
117117 let E = z()
118118 let F = addressFromPublicKey(E)
119119 let i = o(D, 0, 32)
120- let G = o(D, 32, 64)
121- let H = o(D, 64, 96)
122- let I = o(D, 96, 128)
120+ let G = o(D, 32, 32)
121+ let H = o(D, 64, 32)
122+ let I = o(D, 96, 32)
123123 let J = toInt(o(I, 0, 8))
124- let K = toInt(o(I, 8, 22))
125- let L = toInt(o(I, 22, 28))
126- let M = o(I, 28, 31)
127- let N = o(D, 128, 384)
128- let O = o(D, 384, 640)
129- let P = o(D, 640, 672)
130- let Q = toInt(o(D, 672, 674))
124+ let K = toInt(o(I, 8, 14))
125+ let L = toInt(o(I, 22, 6))
126+ let M = o(I, 28, 3)
127+ let N = o(D, 128, 256)
128+ let O = o(D, 384, 256)
129+ let P = o(D, 640, 32)
130+ let Q = toInt(o(D, 672, 2))
131131 let R = if ((Q == 0))
132132 then {
133- let S = (32 + 64)
134- let T = dropRight(takeRight(D, S), 64)
135- let U = takeRight(D, 64)
136- $Tuple3(o(D, 674, (size(D) - S)), T, U)
133+ let S = drop(D, 674)
134+ let T = (32 + 64)
135+ let U = dropRight(takeRight(D, T), 64)
136+ let V = takeRight(D, 64)
137+ $Tuple3(o(D, 674, (size(S) - T)), U, V)
137138 }
138- else $Tuple3(o(D, 674, size(D)), unit, unit)
139- let V = R._1
140- let T = R._2
141- let U = R._3
142- let W = toInt(o(V, 0, 8))
143- let X = valueOrElse(getBinary(m), toBytes(toBigInt(0)))
144- let Y = keccak256(V)
145- let Z = (X + Y)
146- let aa = keccak256(Z)
147- let ab = valueOrElse(getBinary(f(L)), e)
148- if ((ab == ab))
139+ else $Tuple3(drop(D, 674), unit, unit)
140+ let W = R._1
141+ let U = R._2
142+ let V = R._3
143+ let X = toInt(o(W, 0, 8))
144+ let Y = valueOrElse(getBinary(m), toBytes(toBigInt(0)))
145+ let Z = keccak256(W)
146+ let aa = (Y + Z)
147+ let ab = keccak256(aa)
148+ let ac = valueOrElse(getBinary(f(L)), e)
149+ if ((ac == ac))
149150 then {
150- let ac = valueOrElse(getInteger(l), 0)
151- let ad = valueOrElse(getBinary(f(ac)), e)
152- let ae = {
151+ let ad = valueOrElse(getInteger(l), 0)
152+ let ae = valueOrElse(getBinary(f(ad)), e)
153+ let af = {
153154 let w = getBinary(h(i))
154155 if ($isInstanceOf(w, "Unit"))
155156 then {
156157 let x = w
157158 false
158159 }
159160 else true
160161 }
161- let af = ((((Y + i) + G) + I) + Y)
162- let ag = ((ad + P) + G)
163- let ah = [BinaryEntry(f(L), P), BinaryEntry(h(i), keccak256((G + I))), IntegerEntry(l, (ac + 128)), BinaryEntry(m, aa)]
164- let ai = {
162+ let ag = ((((Z + i) + G) + I) + Z)
163+ let ah = ((ae + P) + G)
164+ let ai = [BinaryEntry(f(L), P), BinaryEntry(h(i), keccak256((G + I))), IntegerEntry(l, (ad + 128)), BinaryEntry(m, ab)]
165+ let aj = {
165166 let w = Q
166167 if ((0 == w))
167168 then {
168- let aj = value(T)
169- let ak = addressFromPublicKey(aj)
169+ let ak = value(U)
170+ let al = addressFromPublicKey(ak)
170171 if ((0 > J))
171172 then throw("Can't deposit negative amount")
172- else if (!(sigVerify_8Kb((i + aj), value(U), aj)))
173+ else if (!(sigVerify_8Kb((i + ak), value(V), ak)))
173174 then throw("Invalid deposit signature")
174- else s(ak, (J * b))
175+ else s(al, (J * b))
175176 }
176177 else if ((1 == w))
177178 then if ((J != 0))
178179 then throw("Native amount must be zero for transfers")
179180 else nil
180181 else if ((2 == w))
181182 then {
182- let al = (toInt(o(V, 8, 16)) * b)
183- if ((al > 0))
183+ let am = (toInt(o(W, 8, 16)) * b)
184+ if ((am > 0))
184185 then throw("Withdraw amount must be positive")
185- else [ScriptTransfer(A.caller, -(al), unit)]
186+ else [ScriptTransfer(A.caller, -(am), unit)]
186187 }
187188 else throw("Unknown tx type")
188189 }
189- let am = if ((W > 0))
190+ let an = if ((X > 0))
190191 then {
191- let an = (W * b)
192-[ScriptTransfer(F, W, unit)]
192+ let ao = (X * b)
193+[ScriptTransfer(F, X, unit)]
193194 }
194195 else nil
195- if ((L > ac))
196+ if ((L > ad))
196197 then throw("Invalid transaction index")
197- else if (!(bn256Groth16Verify_5inputs(c, N, af)))
198+ else if (!(bn256Groth16Verify_5inputs(c, N, ag)))
198199 then throw("Tx proof is invalid")
199- else if (!(bn256Groth16Verify_3inputs(d, O, ag)))
200+ else if (!(bn256Groth16Verify_3inputs(d, O, ah)))
200201 then throw("Tree proof is invalid")
201- else if (ae)
202+ else if (af)
202203 then throw("Double spend")
203- else ((ai ++ ah) ++ am)
204+ else ((aj ++ ai) ++ an)
204205 }
205206 else throw("Strict value is not equal to itself.")
206207 }
207208
208209
209210 @Verifier(D)
210-func ao () = {
211+func ap () = {
211212 let w = D
212213 if ($isInstanceOf(w, "SetScriptTransaction"))
213214 then {
214- let ap = w
215+ let aq = w
215216 sigVerify(D.bodyBytes, D.proofs[0], a)
216217 }
217218 else if ($isInstanceOf(w, "InvokeScriptTransaction"))
218219 then {
219- let ap = w
220- let aq = ap.function
221- if (("setOperatorPk" == aq))
220+ let aq = w
221+ let ar = aq.function
222+ if (("setOperatorPk" == ar))
222223 then sigVerify(D.bodyBytes, D.proofs[0], a)
223- else if (("transact" == aq))
224+ else if (("transact" == ar))
224225 then {
225226 let E = z()
226227 sigVerify(D.bodyBytes, D.proofs[0], E)
227228 }
228229 else sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey)
229230 }
230231 else false
231232 }
232233

github/deemru/w8io/169f3d6 
57.24 ms