tx · 6vVHmgqPevTKeDZUg8j8CKm6MrUqptfsDDJVz2gVyM28
3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat: -0.00600000 Waves
2022.09.29 17:19 [2250507] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves
{
"type": 13,
"id": "6vVHmgqPevTKeDZUg8j8CKm6MrUqptfsDDJVz2gVyM28",
"fee": 600000,
"feeAssetId": null,
"timestamp": 1664461218483,
"version": 2,
"chainId": 84,
"sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat",
"senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR",
"proofs": [
"61RBfhfbWfh6tY96qcd71oAiskxdRTmHPgaEHLmW1wL67AQDr9Df67TtAMV3fBBfV4NjstanB1q1TMSQLzjxyuVw"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAYAAAAABXJ1bGVyAgAAACxCZ3hwQ200d3hiVzhTS0xQS1puZjRLVTJENlpVMjlvdjhNZ1pya2FTQXFwWQAAAAAIYm9ibWFfaWQCAAAALDV4eXJVb0p1WEpjWXhjOFJmcm9XajRRZUxhdzZ4aEJmQWRTcmVTdFlDUk1uAAAAAAhidWdnc19pZAIAAAAsSDVVVXVQSjdXQlh6amc2WjFhaEJVeGo3VldvVkZGZkczQk16eUFBblJXdDYBAAAADmdldEFzc2V0U3RyaW5nAAAAAQAAAAdhc3NldElkBAAAAAckbWF0Y2gwBQAAAAdhc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFiBQAAAAckbWF0Y2gwCQACWAAAAAEFAAAAAWICAAAABVdBVkVTAQAAAA1nZXRBc3NldEJ5dGVzAAAAAQAAAAdhc3NldElkAwkAAAAAAAACBQAAAAdhc3NldElkAgAAAAVXQVZFUwUAAAAEdW5pdAkAAlkAAAABBQAAAAdhc3NldElkAQAAAAlteUJhbGFuY2UAA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AJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkebZMX",
"height": 2250507,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 81e4Gtet1Y441sNrCHBTSb8THfNyNdhy1W91pLxRJMD7
Next: E3QUQ9babF8rejcj5DDXAxMHN67K5QssFH7v9sASqs6v
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY" |
---|
5 | 5 | | |
---|
6 | | - | @Callable(b) |
---|
7 | | - | func swap (c,d) = { |
---|
8 | | - | let e = toString(b.caller) |
---|
9 | | - | let f = toBase58String(b.callerPublicKey) |
---|
10 | | - | if ((f == a)) |
---|
11 | | - | then throw(((((("No-no-no " + f) + ", ") + a) + ", ") + e)) |
---|
| 6 | + | let b = "5xyrUoJuXJcYxc8RfroWj4QeLaw6xhBfAdSreStYCRMn" |
---|
| 7 | + | |
---|
| 8 | + | let c = "H5UUuPJ7WBXzjg6Z1ahBUxj7VWoVFFfG3BMzyAAnRWt6" |
---|
| 9 | + | |
---|
| 10 | + | func d (e) = { |
---|
| 11 | + | let f = e |
---|
| 12 | + | if ($isInstanceOf(f, "ByteVector")) |
---|
| 13 | + | then { |
---|
| 14 | + | let g = f |
---|
| 15 | + | toBase58String(g) |
---|
| 16 | + | } |
---|
| 17 | + | else "WAVES" |
---|
| 18 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | func h (e) = if ((e == "WAVES")) |
---|
| 22 | + | then unit |
---|
| 23 | + | else fromBase58String(e) |
---|
| 24 | + | |
---|
| 25 | + | |
---|
| 26 | + | func i (e) = { |
---|
| 27 | + | let f = e |
---|
| 28 | + | if ($isInstanceOf(f, "ByteVector")) |
---|
| 29 | + | then { |
---|
| 30 | + | let g = f |
---|
| 31 | + | assetBalance(this, g) |
---|
| 32 | + | } |
---|
| 33 | + | else wavesBalance(this).available |
---|
| 34 | + | } |
---|
| 35 | + | |
---|
| 36 | + | |
---|
| 37 | + | @Callable(j) |
---|
| 38 | + | func swap (k,l) = { |
---|
| 39 | + | let m = toString(j.caller) |
---|
| 40 | + | let n = toBase58String(j.callerPublicKey) |
---|
| 41 | + | let o = i(h(b)) |
---|
| 42 | + | let p = i(h(c)) |
---|
| 43 | + | if ((n == a)) |
---|
| 44 | + | then throw(((("No-no-no bomba: " + toString(o)) + ", buggs: ") + toString(p))) |
---|
12 | 45 | | else { |
---|
13 | | - | let g = b.payments[0] |
---|
14 | | - | let h = value(g.assetId) |
---|
15 | | - | let i = value(g.amount) |
---|
| 46 | + | let q = j.payments[0] |
---|
| 47 | + | let r = value(q.assetId) |
---|
| 48 | + | let s = value(q.amount) |
---|
16 | 49 | | [IntegerEntry("op", 1)] |
---|
17 | 50 | | } |
---|
18 | 51 | | } |
---|
19 | 52 | | |
---|
20 | 53 | | |
---|
21 | | - | @Verifier(j) |
---|
22 | | - | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
| 54 | + | @Verifier(t) |
---|
| 55 | + | func u () = sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) |
---|
23 | 56 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY" |
---|
5 | 5 | | |
---|
6 | | - | @Callable(b) |
---|
7 | | - | func swap (c,d) = { |
---|
8 | | - | let e = toString(b.caller) |
---|
9 | | - | let f = toBase58String(b.callerPublicKey) |
---|
10 | | - | if ((f == a)) |
---|
11 | | - | then throw(((((("No-no-no " + f) + ", ") + a) + ", ") + e)) |
---|
| 6 | + | let b = "5xyrUoJuXJcYxc8RfroWj4QeLaw6xhBfAdSreStYCRMn" |
---|
| 7 | + | |
---|
| 8 | + | let c = "H5UUuPJ7WBXzjg6Z1ahBUxj7VWoVFFfG3BMzyAAnRWt6" |
---|
| 9 | + | |
---|
| 10 | + | func d (e) = { |
---|
| 11 | + | let f = e |
---|
| 12 | + | if ($isInstanceOf(f, "ByteVector")) |
---|
| 13 | + | then { |
---|
| 14 | + | let g = f |
---|
| 15 | + | toBase58String(g) |
---|
| 16 | + | } |
---|
| 17 | + | else "WAVES" |
---|
| 18 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | func h (e) = if ((e == "WAVES")) |
---|
| 22 | + | then unit |
---|
| 23 | + | else fromBase58String(e) |
---|
| 24 | + | |
---|
| 25 | + | |
---|
| 26 | + | func i (e) = { |
---|
| 27 | + | let f = e |
---|
| 28 | + | if ($isInstanceOf(f, "ByteVector")) |
---|
| 29 | + | then { |
---|
| 30 | + | let g = f |
---|
| 31 | + | assetBalance(this, g) |
---|
| 32 | + | } |
---|
| 33 | + | else wavesBalance(this).available |
---|
| 34 | + | } |
---|
| 35 | + | |
---|
| 36 | + | |
---|
| 37 | + | @Callable(j) |
---|
| 38 | + | func swap (k,l) = { |
---|
| 39 | + | let m = toString(j.caller) |
---|
| 40 | + | let n = toBase58String(j.callerPublicKey) |
---|
| 41 | + | let o = i(h(b)) |
---|
| 42 | + | let p = i(h(c)) |
---|
| 43 | + | if ((n == a)) |
---|
| 44 | + | then throw(((("No-no-no bomba: " + toString(o)) + ", buggs: ") + toString(p))) |
---|
12 | 45 | | else { |
---|
13 | | - | let g = b.payments[0] |
---|
14 | | - | let h = value(g.assetId) |
---|
15 | | - | let i = value(g.amount) |
---|
| 46 | + | let q = j.payments[0] |
---|
| 47 | + | let r = value(q.assetId) |
---|
| 48 | + | let s = value(q.amount) |
---|
16 | 49 | | [IntegerEntry("op", 1)] |
---|
17 | 50 | | } |
---|
18 | 51 | | } |
---|
19 | 52 | | |
---|
20 | 53 | | |
---|
21 | | - | @Verifier(j) |
---|
22 | | - | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
| 54 | + | @Verifier(t) |
---|
| 55 | + | func u () = sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) |
---|
23 | 56 | | |
---|