tx · BFcJDWGffJHumMSGr2bukoucHFoioGh7KH6cwTK1GeG8

3MvPcbsiaJBEDrLfQtDb3EzDBfKDfDq7Re3:  -0.00500000 Waves

2024.03.19 11:16 [3024638] smart account 3MvPcbsiaJBEDrLfQtDb3EzDBfKDfDq7Re3 > SELF 0.00000000 Waves

{ "type": 13, "id": "BFcJDWGffJHumMSGr2bukoucHFoioGh7KH6cwTK1GeG8", "fee": 500000, "feeAssetId": null, "timestamp": 1710836234767, "version": 2, "chainId": 84, "sender": "3MvPcbsiaJBEDrLfQtDb3EzDBfKDfDq7Re3", "senderPublicKey": "ASeo5SKijTABTxPGu7XybXpKVfmn7trLTBJmpJZpidd1", "proofs": [ "3LaNGa55EGeQ9noNc29T6MKgq4mcqm1cam4TYTo8UQvEMuVjHrZuVEbU52Zt7363MoGy3if44Tu73JwD5PNQ6wW3" ], "script": "base64:BwI/CAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIFCgMCAQQSBAoCAgESBQoDAgECEgQKAgIBEgQKAgICIAAJc2VwYXJhdG9yAgJfXwAHY2hhaW5JZAkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAIY2hhaW5JZFcBAVcAEGNvbnRyYWN0RmlsZW5hbWUCFGZ1dHVyZXNfYWNjb3VudC5yaWRlAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQttdXN0QWRkcmVzcwIBaQdhZGRyZXNzAwkAAAIIBQFpBmNhbGxlcgUHYWRkcmVzcwYJAQh0aHJvd0VycgECEXBlcm1pc3Npb24gZGVuaWVkAQhtdXN0VGhpcwEBaQkBC211c3RBZGRyZXNzAgUBaQUEdGhpcwALd2F2ZXNTdHJpbmcCBVdBVkVTAQxwYXJzZUFzc2V0SWQBBWlucHV0AwkAAAIFBWlucHV0BQt3YXZlc1N0cmluZwUEdW5pdAkA2QQBBQV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nkgYWNjb3VudCBvd25lciAJANgEAQUOb3duZXJQdWJsaWNLZXkFA25pbAMJAAACBQZjaGVja3MFBmNoZWNrcwYJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4DCQABAgUHJG1hdGNoMAIXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24DCQEJaXNEZWZpbmVkAQUWZmFjdG9yeVB1YmxpY0tleU9wdGlvbgcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkDCQAAAgUHY2hhaW5JZAUIY2hhaW5JZFcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAJAQV2YWx1ZQEFFmZhY3RvcnlQdWJsaWNLZXlPcHRpb24JAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmIrW39", "height": 3024638, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 7 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "__"
5+
6+let b = take(drop(this.bytes, 1), 1)
7+
8+let c = base58'2W'
9+
10+let d = "futures_account.ride"
11+
12+func e (f) = ((d + ": ") + f)
13+
14+
15+func g (f) = throw(e(f))
16+
17+
18+func h (i,j) = if ((i.caller == j))
19+ then true
20+ else g("permission denied")
21+
22+
23+func k (i) = h(i, this)
24+
25+
26+let l = "WAVES"
27+
28+func m (n) = if ((n == l))
29+ then unit
30+ else fromBase58String(n)
31+
32+
33+func o (n) = if ((n == unit))
34+ then l
35+ else toBase58String(value(n))
36+
37+
38+let p = "%s__factoryPublicKey"
39+
40+let q = "%s__ownerPublicKey"
41+
42+func r (s) = makeString(["%s%s", toString(s), "accountAddressToRequestId"], a)
43+
44+
45+func t (u) = makeString(["%s%s", u, "ownerPublicKey"], a)
46+
47+
48+func v (u) = makeString(["%s%s", u, "amountAssetId"], a)
49+
50+
51+func w (u) = makeString(["%s%s", u, "priceAssetId"], a)
52+
53+
54+let x = addressFromPublicKey(getBinaryValue(this, p))
55+
56+let y = "%s__calculatorAddress"
57+
58+let z = {
59+ let A = getString(x, y)
60+ if ($isInstanceOf(A, "String"))
61+ then {
62+ let f = A
63+ addressFromString(f)
64+ }
65+ else if ($isInstanceOf(A, "Unit"))
66+ then unit
67+ else throw("Match error")
68+ }
69+
70+let B = valueOrErrorMessage(z, e("invalid calculator address"))
71+
72+let C = "%s__matcherPublicKey"
73+
74+let D = {
75+ let A = getString(x, C)
76+ if ($isInstanceOf(A, "String"))
77+ then {
78+ let f = A
79+ fromBase58String(f)
80+ }
81+ else if ($isInstanceOf(A, "Unit"))
82+ then unit
83+ else throw("Match error")
84+ }
85+
86+let E = valueOrErrorMessage(D, e("invalid matcher public key"))
87+
88+let u = getStringValue(x, r(this))
89+
90+let F = getBinaryValue(x, t(u))
91+
92+let G = addressFromPublicKey(F)
93+
94+let H = m(getStringValue(x, v(u)))
95+
96+let I = m(getStringValue(x, w(u)))
97+
98+func J (i) = h(i, x)
99+
100+
101+func K (i) = h(i, B)
102+
103+
104+func L (i) = h(i, G)
105+
106+
107+@Callable(i)
108+func stringEntry (M,N) = if (K(i))
109+ then $Tuple2([StringEntry(M, N)], M)
110+ else $Tuple2(nil, unit)
111+
112+
113+
114+@Callable(i)
115+func integerEntry (M,N) = if (K(i))
116+ then $Tuple2([IntegerEntry(M, N)], M)
117+ else $Tuple2(nil, unit)
118+
119+
120+
121+@Callable(i)
122+func booleanEntry (M,N) = if (K(i))
123+ then $Tuple2([BooleanEntry(M, N)], M)
124+ else $Tuple2(nil, unit)
125+
126+
127+
128+@Callable(i)
129+func binaryEntry (M,N) = if (K(i))
130+ then $Tuple2([BinaryEntry(M, N)], M)
131+ else $Tuple2(nil, unit)
132+
133+
134+
135+@Callable(i)
136+func deleteEntry (M) = if (K(i))
137+ then $Tuple2([DeleteEntry(M)], M)
138+ else $Tuple2(nil, unit)
139+
140+
141+
142+@Callable(i)
143+func reissue (O,P,Q) = if (K(i))
144+ then $Tuple2([Reissue(O, P, Q)], P)
145+ else $Tuple2(nil, unit)
146+
147+
148+
149+@Callable(i)
150+func burn (O,P) = if (K(i))
151+ then $Tuple2([Burn(O, P)], P)
152+ else $Tuple2(nil, unit)
153+
154+
155+
156+@Callable(i)
157+func transferAsset (R,P,O) = if (K(i))
158+ then $Tuple2([ScriptTransfer(Address(R), P, O)], P)
159+ else $Tuple2(nil, unit)
160+
161+
162+
163+@Callable(i)
164+func transferWaves (R,P) = if (K(i))
165+ then $Tuple2([ScriptTransfer(Address(R), P, unit)], P)
166+ else $Tuple2(nil, unit)
167+
168+
169+
170+@Callable(i)
171+func init (S,T) = {
172+ let U = k(i)
173+ if ((U == U))
174+ then {
175+ let V = invoke(addressFromPublicKey(S), "call", ["addAccount", [toBase58String(T)]], nil)
176+ if ((V == V))
177+ then $Tuple2([BinaryEntry(p, S)], unit)
178+ else throw("Strict value is not equal to itself.")
179+ }
180+ else throw("Strict value is not equal to itself.")
181+ }
182+
183+
184+@Verifier(W)
185+func X () = {
186+ let Y = getBinary(this, p)
187+ let A = W
188+ if ($isInstanceOf(A, "Order"))
189+ then {
190+ let Z = A
191+ let aa = [if ((Z.matcherPublicKey == E))
192+ then true
193+ else g(("matcher public key must be " + toBase58String(E))), if ((Z.assetPair.amountAsset == H))
194+ then true
195+ else g(("amount asset id have must be " + o(H))), if ((Z.assetPair.priceAsset == I))
196+ then true
197+ else g(("price asset id have must be" + o(I))), if (sigVerify(W.bodyBytes, W.proofs[0], F))
198+ then true
199+ else g(("tx have must be signed by account owner " + toBase58String(F)))]
200+ if ((aa == aa))
201+ then true
202+ else throw("Strict value is not equal to itself.")
203+ }
204+ else if ($isInstanceOf(A, "InvokeScriptTransaction"))
205+ then if (isDefined(Y))
206+ then false
207+ else sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey)
208+ else if ((b == c))
209+ then sigVerify(W.bodyBytes, W.proofs[0], value(Y))
210+ else sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey)
211+ }
212+

github/deemru/w8io/026f985 
18.03 ms