tx · GDrSBTCg9ggbbpZL3ZzcxYSqCSZQMFZdopsxcGd65EiL 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6: -0.01000000 Waves 2021.12.05 16:30 [1821021] smart account 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6 > SELF 0.00000000 Waves
{ "type": 13, "id": "GDrSBTCg9ggbbpZL3ZzcxYSqCSZQMFZdopsxcGd65EiL", "fee": 1000000, "feeAssetId": null, "timestamp": 1638711051416, "version": 2, "chainId": 84, "sender": "3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6", "senderPublicKey": "2LizaCNygFYwGFKe34vvFHgJc4ckK7MpzRzziRNn56Cu", "proofs": [ "5eX8hm7Eyw7y4rvmJ31B62nXjwLW6djj8c1eVUuCNohBK5pBN7MVwGU5W1p1aW9Xb6J9K6xt2VG8G4ggR8Nkdw8g" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAABgAAAAAJbWFzdGVyYWRyAgAAACMzTXVXNHQxakNYSHQ4V1JzSFZMVWFyMzJFbnZKeFphUVdBeAAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAAACWluY3JwcmljZQAAAAAAAAAAMgAAAAAJaW5pdHByaWNlAgAAAAYxMDAwMDAAAAAACW1hc3RlcmZlZQAAAAAAAAAAAQAAAAEAAAABaQEAAAAFcGFpbnQAAAABAAAABWlkYXRhBAAAAAxjYWxsZXJBZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAHcmVxZGF0YQkABLUAAAACBQAAAAVpZGF0YQIAAAADLXwtBAAAAAVjb2xvcgMJAABmAAAAAgkAAZAAAAABBQAAAAdyZXFkYXRhAAAAAAAAAAABCQABkQAAAAIFAAAAB3JlcWRhdGEAAAAAAAAAAAECAAAAATAEAAAAA3VybAMJAABmAA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UAAAABCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAIAAAAAAAAAAADBQAAAAR1bml0CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAkAAAAAAAAAAAAJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAkAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAkAAAAAAAAAAAIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAACQAAAAAAAAAAAwUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABlAAAAAggFAAAAA3BtdAAAAAZhbW91bnQJAQAAAA1wYXJzZUludFZhbHVlAAAAAQUAAAAHcGF5bWVudAUAAAAEdW5pdAUAAAADbmlsBQAAAAR1bml0AAAAANAPsn4=", "height": 1821021, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: qT5ijRU8RdYySPanReDugCW7fLuroSSkV1MXfXRJqeg Next: X5UkuqAZ96Kx5V36YR5JXkJSa7sVLy8Lrrixf1XgMY6 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx" | |
5 | 5 | ||
6 | 6 | let b = Address(base58'3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx') | |
7 | 7 | ||
8 | 8 | let c = "|||||" | |
9 | 9 | ||
10 | 10 | let d = 50 | |
11 | 11 | ||
12 | 12 | let e = "100000" | |
13 | 13 | ||
14 | 14 | let f = 1 | |
15 | 15 | ||
16 | 16 | @Callable(g) | |
17 | 17 | func paint (h) = { | |
18 | 18 | let i = toBase58String(g.caller.bytes) | |
19 | 19 | let j = split(h, "-|-") | |
20 | 20 | let k = if ((size(j) > 1)) | |
21 | 21 | then j[1] | |
22 | 22 | else "0" | |
23 | 23 | let l = if ((size(j) > 2)) | |
24 | 24 | then j[2] | |
25 | 25 | else "-" | |
26 | 26 | let m = split(j[0], c) | |
27 | 27 | let n = min([10, size(m)]) | |
28 | 28 | let o = ["--", "--", a, "0"] | |
29 | 29 | let p = [i, e, k, l] | |
30 | 30 | func q (r) = { | |
31 | 31 | let s = parseInt(m[r]) | |
32 | 32 | if ($isInstanceOf(s, "Int")) | |
33 | 33 | then { | |
34 | 34 | let t = s | |
35 | 35 | if (if ((parseIntValue(m[r]) > -1)) | |
36 | 36 | then (1000 > parseIntValue(m[r])) | |
37 | 37 | else false) | |
38 | 38 | then parseIntValue(m[r]) | |
39 | 39 | else -1 | |
40 | 40 | } | |
41 | 41 | else -1 | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | func u (r) = { | |
45 | 45 | let s = getString(m[r]) | |
46 | 46 | if ($isInstanceOf(s, "String")) | |
47 | 47 | then { | |
48 | 48 | let t = s | |
49 | 49 | getStringValue(m[r]) | |
50 | 50 | } | |
51 | 51 | else "" | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | func v (r) = if (if ((r > (n - 1))) | |
55 | 55 | then true | |
56 | 56 | else (0 > q(r))) | |
57 | 57 | then o | |
58 | 58 | else if ((u(r) == "")) | |
59 | 59 | then [m[r], makeString(p, c), a, e] | |
60 | 60 | else { | |
61 | 61 | let w = split(getStringValue(m[r]), c) | |
62 | 62 | let x = parseIntValue(w[1]) | |
63 | 63 | let y = w[0] | |
64 | 64 | [m[r], makeString([i, toString(fraction(x, (100 + d), 100)), k, l], c), y, toString(x)] | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | let z = [v(0), v(1), v(2), v(3), v(4), v(5), v(6), v(7), v(8), v(9)] | |
68 | 68 | let A = toString(fraction((((((((((parseIntValue(z[0][3]) + parseIntValue(z[1][3])) + parseIntValue(z[2][3])) + parseIntValue(z[3][3])) + parseIntValue(z[4][3])) + parseIntValue(z[5][3])) + parseIntValue(z[6][3])) + parseIntValue(z[7][3])) + parseIntValue(z[8][3])) + parseIntValue(z[9][3])), (100 + f), 100)) | |
69 | 69 | let B = if ((size(g.payments) == 1)) | |
70 | 70 | then g.payments[0] | |
71 | 71 | else throw(("Attached payment is required: " + A)) | |
72 | 72 | if (isDefined(B.assetId)) | |
73 | 73 | then throw("works with waves only") | |
74 | 74 | else if ((parseIntValue(A) > B.amount)) | |
75 | 75 | then throw(((("you give: " + toString(B.amount)) + ", but deal needs: ") + A)) | |
76 | 76 | else $Tuple2([StringEntry(z[0][0], z[0][1]), ScriptTransfer(Address(fromBase58String(z[0][2])), parseIntValue(z[0][3]), unit), StringEntry(z[1][0], z[1][1]), ScriptTransfer(Address(fromBase58String(z[1][2])), parseIntValue(z[1][3]), unit), StringEntry(z[2][0], z[2][1]), ScriptTransfer(Address(fromBase58String(z[2][2])), parseIntValue(z[2][3]), unit), StringEntry(z[3][0], z[3][1]), ScriptTransfer(Address(fromBase58String(z[3][2])), parseIntValue(z[3][3]), unit), StringEntry(z[4][0], z[4][1]), ScriptTransfer(Address(fromBase58String(z[4][2])), parseIntValue(z[4][3]), unit), StringEntry(z[5][0], z[5][1]), ScriptTransfer(Address(fromBase58String(z[5][2])), parseIntValue(z[5][3]), unit), StringEntry(z[6][0], z[6][1]), ScriptTransfer(Address(fromBase58String(z[6][2])), parseIntValue(z[6][3]), unit), StringEntry(z[7][0], z[7][1]), ScriptTransfer(Address(fromBase58String(z[7][2])), parseIntValue(z[7][3]), unit), StringEntry(z[8][0], z[8][1]), ScriptTransfer(Address(fromBase58String(z[8][2])), parseIntValue(z[8][3]), unit), StringEntry(z[9][0], z[9][1]), ScriptTransfer(Address(fromBase58String(z[9][2])), parseIntValue(z[9][3]), unit), ScriptTransfer(g.caller, (B.amount - parseIntValue(A)), unit)], unit) | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 |
github/deemru/w8io/169f3d6 34.54 ms ◑