tx · Gy7Y5SYuuvQe2xccvSYvgv5c4VnwGC4oGwqWieDQ4zFE 3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN: -0.01000000 Waves 2023.01.21 14:19 [2414669] smart account 3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN > SELF 0.00000000 Waves
{ "type": 13, "id": "Gy7Y5SYuuvQe2xccvSYvgv5c4VnwGC4oGwqWieDQ4zFE", "fee": 1000000, "feeAssetId": null, "timestamp": 1674299965719, "version": 2, "chainId": 84, "sender": "3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN", "senderPublicKey": "2Gtgx295VLiew3CzXqh9eXfFZBTEpDW2nLsrJZ1C4i9J", "proofs": [ "22xgCqquUCYWv6d3jVKRqsr226z3RGiMpxXmEfiVJmfCPNF2ZUDvibiApu7SLe2mNKLohYZxDWMtQkN911XReMd4" ], "script": "base64:AAIFAAAAAAAAACMIAhIGCgQIBAgEEgMKAQgSBwoFCAgIAQgSAwoBCBIECgIICAAAAAwAAAAAD2V4dGVybmFsT3JhY2xlcwkABEwAAAACAgAAACMzTjlRWm5YZnU4b0doc3ZaOUJkaXpOdVZKUDd0clh5TVVwNQkABEwAAAACAgAAACMzTkQ2ZVdjTWlHTVgxNVg0SDRXbUdUVGROd0xodFdoUTJEUgUAAAADbmlsAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAVdHJ5R2V0SW50ZWdlckV4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUA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gkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAAA3R4XwUAAAAEdHhJZAIAAAAIX290aGVySWQFAAAACW90aGVyVHhJZAUAAAADbmlsAAAAAA/QTzo=", "height": 2414669, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H6mJ7TjZEhbmP9jg2zUQMiQKMUQTMJeEm5viKyvzCmvf Next: AKSCSCJwTuswKBcAoWTagfNTz3b4aryhS7wPvLvP53Et Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b,c) = { | |
5 | - | let d = getString(b, c) | |
6 | - | if ($isInstanceOf(d, "String")) | |
4 | + | let a = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"] | |
5 | + | ||
6 | + | func b (c,d) = { | |
7 | + | let e = getString(c, d) | |
8 | + | if ($isInstanceOf(e, "String")) | |
7 | 9 | then { | |
8 | - | let | |
9 | - | | |
10 | + | let f = e | |
11 | + | f | |
10 | 12 | } | |
11 | 13 | else "" | |
12 | 14 | } | |
13 | 15 | ||
14 | 16 | ||
15 | - | func | |
16 | - | let | |
17 | - | if ($isInstanceOf( | |
17 | + | func g (c,d) = { | |
18 | + | let e = getInteger(c, d) | |
19 | + | if ($isInstanceOf(e, "Int")) | |
18 | 20 | then { | |
19 | - | let | |
20 | - | | |
21 | + | let h = e | |
22 | + | h | |
21 | 23 | } | |
22 | 24 | else 0 | |
23 | 25 | } | |
24 | 26 | ||
25 | 27 | ||
26 | - | func | |
28 | + | func i (d) = b(this, d) | |
27 | 29 | ||
28 | 30 | ||
29 | - | func | |
31 | + | func j (d) = g(this, d) | |
30 | 32 | ||
31 | 33 | ||
32 | - | func | |
33 | - | let | |
34 | - | if ($isInstanceOf( | |
34 | + | func k (d) = { | |
35 | + | let e = getBoolean(this, d) | |
36 | + | if ($isInstanceOf(e, "Boolean")) | |
35 | 37 | then { | |
36 | - | let | |
37 | - | | |
38 | + | let h = e | |
39 | + | h | |
38 | 40 | } | |
39 | 41 | else false | |
40 | 42 | } | |
41 | 43 | ||
42 | 44 | ||
43 | - | func | |
45 | + | func l (m) = toBase58String(value(m)) | |
44 | 46 | ||
45 | 47 | ||
46 | - | func | |
48 | + | func n (o) = ("nativeAsset_" + o) | |
47 | 49 | ||
48 | 50 | ||
49 | - | func | |
51 | + | func p (q) = ("otherChainAsset_" + q) | |
50 | 52 | ||
51 | 53 | ||
52 | - | func | |
54 | + | func r (s) = ("reissueable_" + s) | |
53 | 55 | ||
54 | 56 | ||
55 | - | func | |
56 | - | let | |
57 | - | if (!(isDefined( | |
57 | + | func t (u) = { | |
58 | + | let v = value(u) | |
59 | + | if (!(isDefined(v.assetId))) | |
58 | 60 | then throw("It needs to be an asset") | |
59 | 61 | else { | |
60 | - | let | |
61 | - | if ((1 > | |
62 | + | let w = value(assetInfo(value(v.assetId))) | |
63 | + | if ((1 > v.amount)) | |
62 | 64 | then throw("You didnt attached a payment!") | |
63 | - | else | |
65 | + | else l(v.assetId) | |
64 | 66 | } | |
65 | 67 | } | |
66 | 68 | ||
67 | 69 | ||
68 | - | @Callable(w) | |
69 | - | func initiateAssets (n,x,p,y) = if ((h(m(n)) != "")) | |
70 | - | then throw("Native Asset already listed!") | |
71 | - | else if ((h(o(p)) != "")) | |
72 | - | then throw("Other Asset already listed!") | |
73 | - | else [StringEntry(m(n), p), StringEntry(o(p), n), BooleanEntry(q(n), x), BooleanEntry(q(p), y)] | |
70 | + | func x (d,y) = { | |
71 | + | func z (A,B) = { | |
72 | + | let e = y | |
73 | + | if ($isInstanceOf(e, "String")) | |
74 | + | then { | |
75 | + | let h = e | |
76 | + | let C = b(addressFromStringValue(B), d) | |
77 | + | if ((C != y)) | |
78 | + | then throw(("String Key not matching in " + B)) | |
79 | + | else true | |
80 | + | } | |
81 | + | else if ($isInstanceOf(e, "Int")) | |
82 | + | then { | |
83 | + | let h = e | |
84 | + | let C = g(addressFromStringValue(B), d) | |
85 | + | if ((C != y)) | |
86 | + | then throw(("Integer Key not matching in " + B)) | |
87 | + | else true | |
88 | + | } | |
89 | + | else throw("Invalid Value!") | |
90 | + | } | |
91 | + | ||
92 | + | let D = a | |
93 | + | let E = size(D) | |
94 | + | let F = true | |
95 | + | func G (H,I) = if ((I >= E)) | |
96 | + | then H | |
97 | + | else z(H, D[I]) | |
98 | + | ||
99 | + | func J (H,I) = if ((I >= E)) | |
100 | + | then H | |
101 | + | else throw("List size exceeds 5") | |
102 | + | ||
103 | + | J(G(G(G(G(G(F, 0), 1), 2), 3), 4), 5) | |
104 | + | } | |
105 | + | ||
106 | + | ||
107 | + | @Callable(K) | |
108 | + | func initiateAssets (o,L,q,M) = if ((K.caller != this)) | |
109 | + | then throw("Only the owner dapp can add additional assets!") | |
110 | + | else if ((i(n(o)) != "")) | |
111 | + | then throw("Native Asset already listed!") | |
112 | + | else if ((i(p(q)) != "")) | |
113 | + | then throw("Other Asset already listed!") | |
114 | + | else [StringEntry(n(o), q), StringEntry(p(q), o), BooleanEntry(r(o), L), BooleanEntry(r(q), M)] | |
74 | 115 | ||
75 | 116 | ||
76 | 117 | ||
77 | - | @Callable( | |
78 | - | func initiateOutGoingTx ( | |
79 | - | let | |
80 | - | if ((size( | |
118 | + | @Callable(K) | |
119 | + | func initiateOutGoingTx (N) = { | |
120 | + | let u = K.payments | |
121 | + | if ((size(u) != 1)) | |
81 | 122 | then throw("Invalid payment added!") | |
82 | - | else if ((1 > | |
123 | + | else if ((1 > u[0].amount)) | |
83 | 124 | then throw("Invalid amount added!") | |
84 | 125 | else { | |
85 | - | let | |
86 | - | let | |
87 | - | then [Burn(fromBase58String( | |
88 | - | else [StringEntry((("tx_" + toBase58String( | |
89 | - | ([StringEntry((("tx_" + toBase58String( | |
126 | + | let m = t(u[0]) | |
127 | + | let O = if (k(r(m))) | |
128 | + | then [Burn(fromBase58String(m), u[0].amount), StringEntry((("tx_" + toBase58String(K.transactionId)) + "_asset_to_receive"), i(p(m)))] | |
129 | + | else [StringEntry((("tx_" + toBase58String(K.transactionId)) + "_asset_to_receive"), i(n(m)))] | |
130 | + | ([StringEntry((("tx_" + toBase58String(K.transactionId)) + "_dest"), N), StringEntry((("tx_" + toBase58String(K.transactionId)) + "_status"), "UNPROCESSED")] ++ O) | |
90 | 131 | } | |
91 | 132 | } | |
92 | 133 | ||
93 | 134 | ||
94 | 135 | ||
95 | - | @Callable( | |
96 | - | func storeDataIncomingTx ( | |
136 | + | @Callable(K) | |
137 | + | func storeDataIncomingTx (P,N,m,Q,R) = if (if ((i((("tx_" + P) + "_status")) != "")) | |
97 | 138 | then true | |
98 | - | else (h((("tx_" + B) + "_dest")) != "")) | |
99 | - | then throw((B + " is already stored!")) | |
100 | - | else if ((w.caller != this)) | |
101 | - | then throw("Dirty hacker") | |
102 | - | else [StringEntry((("tx_" + B) + "_dest"), z), StringEntry((("tx_" + B) + "_status"), "UNPROCESSED"), StringEntry((("tx_" + B) + "_assetId"), l), StringEntry((("tx_" + B) + "_assetId_to_receive"), D), IntegerEntry((("tx_" + B) + "_amount"), C)] | |
139 | + | else (i((("tx_" + P) + "_dest")) != "")) | |
140 | + | then throw((P + " is already stored!")) | |
141 | + | else { | |
142 | + | let S = x((("tx_" + P) + "_dest"), N) | |
143 | + | let T = x((("tx_" + P) + "_status"), "UNPROCESSED") | |
144 | + | let U = x((("tx_" + P) + "_assetId"), m) | |
145 | + | let V = x((("tx_" + P) + "_assetId_to_receive"), R) | |
146 | + | let W = x((("tx_" + P) + "_amount"), Q) | |
147 | + | if (!(if (if (if (if (S) | |
148 | + | then T | |
149 | + | else false) | |
150 | + | then U | |
151 | + | else false) | |
152 | + | then V | |
153 | + | else false) | |
154 | + | then W | |
155 | + | else false)) | |
156 | + | then throw("Dirty hacker!") | |
157 | + | else [StringEntry((("tx_" + P) + "_dest"), N), StringEntry((("tx_" + P) + "_status"), "UNPROCESSED"), StringEntry((("tx_" + P) + "_assetId"), m), StringEntry((("tx_" + P) + "_assetId_to_receive"), R), IntegerEntry((("tx_" + P) + "_amount"), Q)] | |
158 | + | } | |
103 | 159 | ||
104 | 160 | ||
105 | 161 | ||
106 | - | @Callable( | |
107 | - | func releaseIncomingTx ( | |
108 | - | let | |
109 | - | if (( | |
162 | + | @Callable(K) | |
163 | + | func releaseIncomingTx (P) = { | |
164 | + | let X = i((("tx_" + P) + "_status")) | |
165 | + | if ((X == "")) | |
110 | 166 | then throw("No such txid found!") | |
111 | - | else if (( | |
167 | + | else if ((X == "PROCESSED")) | |
112 | 168 | then throw("Already processed!") | |
113 | 169 | else { | |
114 | - | let | |
115 | - | let | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | then if (( | |
170 | + | let R = i((("tx_" + P) + "_assetId_to_receive")) | |
171 | + | let N = i((("tx_" + P) + "_dest")) | |
172 | + | let Q = j((("tx_" + P) + "_amount")) | |
173 | + | let m = i((("tx_" + P) + "_assetId")) | |
174 | + | let O = if (k(r(R))) | |
175 | + | then if ((i(n(m)) != R)) | |
120 | 176 | then throw("RE: Skipping tx, corrupt data!") | |
121 | - | else [Reissue(fromBase58String( | |
122 | - | else if (( | |
177 | + | else [Reissue(fromBase58String(R), Q, true)] | |
178 | + | else if ((i(p(m)) != R)) | |
123 | 179 | then throw("URE: Skipping tx, corrupt data!") | |
124 | 180 | else nil | |
125 | - | ( | |
181 | + | (O ++ [ScriptTransfer(addressFromStringValue(N), Q, fromBase58String(R)), StringEntry((("tx_" + P) + "_status"), "PROCESSED"), StringEntry((("tx_" + P) + "_otherId"), toBase58String(K.transactionId))]) | |
126 | 182 | } | |
127 | 183 | } | |
128 | 184 | ||
129 | 185 | ||
130 | 186 | ||
131 | - | @Callable(w) | |
132 | - | func finalizeOutgoingTx (B,F) = if ((h((("tx_" + B) + "_otherId")) != "")) | |
133 | - | then throw((B + " is already fully processed!")) | |
134 | - | else if ((w.caller != this)) | |
135 | - | then throw("Dirty hacker!") | |
136 | - | else [StringEntry((("tx_" + B) + "_status"), "PROCESSED"), StringEntry((("tx_" + B) + "_otherId"), F)] | |
187 | + | @Callable(K) | |
188 | + | func finalizeOutgoingTx (P,Y) = { | |
189 | + | let S = x((("tx_" + P) + "_otherId"), Y) | |
190 | + | let T = x((("tx_" + P) + "_status"), "PROCESSED") | |
191 | + | if ((i((("tx_" + P) + "_otherId")) != "")) | |
192 | + | then throw((P + " is already fully processed!")) | |
193 | + | else if (!(if (S) | |
194 | + | then T | |
195 | + | else false)) | |
196 | + | then throw("Dirty hacker!") | |
197 | + | else [StringEntry((("tx_" + P) + "_status"), "PROCESSED"), StringEntry((("tx_" + P) + "_otherId"), Y)] | |
198 | + | } | |
137 | 199 | ||
138 | 200 |
github/deemru/w8io/169f3d6 59.14 ms ◑