tx · G9nnZstxnBaQrLNUTu4vn9vrYQYDX8WxPtAqqjTpUUoB

3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6:  -0.01000000 Waves

2021.12.05 15:43 [1820976] smart account 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6 > SELF 0.00000000 Waves

{ "type": 13, "id": "G9nnZstxnBaQrLNUTu4vn9vrYQYDX8WxPtAqqjTpUUoB", "fee": 1000000, "feeAssetId": null, "timestamp": 1638708252942, "version": 2, "chainId": 84, "sender": "3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6", "senderPublicKey": "2LizaCNygFYwGFKe34vvFHgJc4ckK7MpzRzziRNn56Cu", "proofs": [ "5xT8rJCNVeyzn5pUTiywAjoqRbgVVvnHaBNGW2cEii2UzofKimMtTNA3P71pwz5FTZ8xVjY2rDZWrPBvPV5dbKXd" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAABgAAAAAJbWFzdGVyYWRyAgAAACMzTXVXNHQxakNYSHQ4V1JzSFZMVWFyMzJFbnZKeFphUVdBeAAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAAACWluY3JwcmljZQAAAAAAAAAAMgAAAAAJaW5pdHByaWNlAgAAAAYxMDAwMDAAAAAACG1hc3JlZmVlAAAAAAAAAAABAAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAdyZXFkYXRhCQAEtQAAAAIFAAAABWlkYXRhAgAAAAMtfC0EAAAABWNvbG9yCQABkQAAAAIFAAAAB3JlcWRhdGEAAAAAAAAAAAEEAAAAA3VybAkAAZEAAAACBQAAAAdyZXFkYXRhAAAAAAAAAAACBAAAAAVwaXh4eQkABLUAAAACCQABkQAA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AJAAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAJAAAAAAAAAAACCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAkAAAAAAAAAAAMFAAAABHVuaXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAZQAAAAIIBQAAAANwbXQAAAAGYW1vdW50CQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEFAAAAB3BheW1lbnQFAAAABHVuaXQFAAAAA25pbAUAAAAEdW5pdAAAAABPoR6P", "height": 1820976, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dnf3HqbAWY2NLQeaDBrqmv7yyukfBVBgxD5zJwJMNMMc Next: 2jiC7iH2GE417b6UTEQMGidsfiRzJeQMYXMXxFAVm6fe Diff:
OldNewDifferences
1616 @Callable(g)
1717 func paint (h) = {
1818 let i = toBase58String(g.caller.bytes)
19- let j = split(h, c)
20- let k = min([10, size(j)])
21- let l = ["--", "--", a, "0"]
22- let m = [i, e, "color", "url"]
23- func n (o) = {
24- let p = parseInt(j[o])
25- if ($isInstanceOf(p, "Int"))
19+ let j = split(h, "-|-")
20+ let k = j[1]
21+ let l = j[2]
22+ let m = split(j[0], c)
23+ let n = min([10, size(m)])
24+ let o = ["--", "--", a, "0"]
25+ let p = [i, e, k, l]
26+ func q (r) = {
27+ let s = parseInt(m[r])
28+ if ($isInstanceOf(s, "Int"))
2629 then {
27- let q = p
28- if (if ((parseIntValue(j[o]) > -1))
29- then (1000 > parseIntValue(j[o]))
30+ let t = s
31+ if (if ((parseIntValue(m[r]) > -1))
32+ then (1000 > parseIntValue(m[r]))
3033 else false)
31- then parseIntValue(j[o])
34+ then parseIntValue(m[r])
3235 else -1
3336 }
3437 else -1
3538 }
3639
37- func r (o) = {
38- let p = getString(j[o])
39- if ($isInstanceOf(p, "String"))
40+ func u (r) = {
41+ let s = getString(m[r])
42+ if ($isInstanceOf(s, "String"))
4043 then {
41- let q = p
42- getStringValue(j[o])
44+ let t = s
45+ getStringValue(m[r])
4346 }
4447 else ""
4548 }
4649
47- func s (o) = if (if ((o > (k - 1)))
50+ func v (r) = if (if ((r > (n - 1)))
4851 then true
49- else (0 > n(o)))
50- then l
51- else if ((r(o) == ""))
52- then [j[o], makeString(m, c), a, e]
52+ else (0 > q(r)))
53+ then o
54+ else if ((u(r) == ""))
55+ then [m[r], makeString(p, c), a, e]
5356 else {
54- let t = split(getStringValue(j[o]), c)
55- let u = parseIntValue(t[1])
56- let v = t[0]
57-[j[o], makeString([i, toString(fraction(u, (100 + d), 100)), "color", "url"], c), v, toString(u)]
57+ let w = split(getStringValue(m[r]), c)
58+ let x = parseIntValue(w[1])
59+ let y = w[0]
60+[m[r], makeString([i, toString(fraction(x, (100 + d), 100)), k, l], c), y, toString(x)]
5861 }
5962
60- let w = [s(0), s(1), s(2), s(3), s(4), s(5), s(6), s(7), s(8), s(9)]
61- let x = toString((((((((((parseIntValue(w[0][3]) + parseIntValue(w[1][3])) + parseIntValue(w[2][3])) + parseIntValue(w[3][3])) + parseIntValue(w[4][3])) + parseIntValue(w[5][3])) + parseIntValue(w[6][3])) + parseIntValue(w[7][3])) + parseIntValue(w[8][3])) + parseIntValue(w[9][3])))
62- let y = if ((size(g.payments) == 1))
63+ let z = [v(0), v(1), v(2), v(3), v(4), v(5), v(6), v(7), v(8), v(9)]
64+ let A = toString((((((((((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])))
65+ let B = if ((size(g.payments) == 1))
6366 then g.payments[0]
64- else throw(((("Attached payment is required: " + x) + " peymentstr=") + x))
65- if (isDefined(y.assetId))
67+ else throw(("Attached payment is required: " + A))
68+ if (isDefined(B.assetId))
6669 then throw("works with waves only")
67- else if ((parseIntValue(x) > y.amount))
68- then throw(((("you give: " + toString(y.amount)) + ", but deal needs: ") + x))
69- else $Tuple2([StringEntry(w[0][0], w[0][1]), ScriptTransfer(Address(fromBase58String(w[0][2])), parseIntValue(w[0][3]), unit), StringEntry(w[1][0], w[1][1]), ScriptTransfer(Address(fromBase58String(w[1][2])), parseIntValue(w[1][3]), unit), StringEntry(w[2][0], w[2][1]), ScriptTransfer(Address(fromBase58String(w[2][2])), parseIntValue(w[2][3]), unit), StringEntry(w[3][0], w[3][1]), ScriptTransfer(Address(fromBase58String(w[3][2])), parseIntValue(w[3][3]), unit), StringEntry(w[4][0], w[4][1]), ScriptTransfer(Address(fromBase58String(w[4][2])), parseIntValue(w[4][3]), unit), StringEntry(w[5][0], w[5][1]), ScriptTransfer(Address(fromBase58String(w[5][2])), parseIntValue(w[5][3]), unit), StringEntry(w[6][0], w[6][1]), ScriptTransfer(Address(fromBase58String(w[6][2])), parseIntValue(w[6][3]), unit), StringEntry(w[7][0], w[7][1]), ScriptTransfer(Address(fromBase58String(w[7][2])), parseIntValue(w[7][3]), unit), StringEntry(w[8][0], w[8][1]), ScriptTransfer(Address(fromBase58String(w[8][2])), parseIntValue(w[8][3]), unit), StringEntry(w[9][0], w[9][1]), ScriptTransfer(Address(fromBase58String(w[9][2])), parseIntValue(w[9][3]), unit), ScriptTransfer(g.caller, (y.amount - parseIntValue(x)), unit)], unit)
70+ else if ((parseIntValue(A) > B.amount))
71+ then throw(((("you give: " + toString(B.amount)) + ", but deal needs: ") + A))
72+ 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)
7073 }
7174
7275
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx"
55
66 let b = Address(base58'3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx')
77
88 let c = "|||||"
99
1010 let d = 50
1111
1212 let e = "100000"
1313
1414 let f = 1
1515
1616 @Callable(g)
1717 func paint (h) = {
1818 let i = toBase58String(g.caller.bytes)
19- let j = split(h, c)
20- let k = min([10, size(j)])
21- let l = ["--", "--", a, "0"]
22- let m = [i, e, "color", "url"]
23- func n (o) = {
24- let p = parseInt(j[o])
25- if ($isInstanceOf(p, "Int"))
19+ let j = split(h, "-|-")
20+ let k = j[1]
21+ let l = j[2]
22+ let m = split(j[0], c)
23+ let n = min([10, size(m)])
24+ let o = ["--", "--", a, "0"]
25+ let p = [i, e, k, l]
26+ func q (r) = {
27+ let s = parseInt(m[r])
28+ if ($isInstanceOf(s, "Int"))
2629 then {
27- let q = p
28- if (if ((parseIntValue(j[o]) > -1))
29- then (1000 > parseIntValue(j[o]))
30+ let t = s
31+ if (if ((parseIntValue(m[r]) > -1))
32+ then (1000 > parseIntValue(m[r]))
3033 else false)
31- then parseIntValue(j[o])
34+ then parseIntValue(m[r])
3235 else -1
3336 }
3437 else -1
3538 }
3639
37- func r (o) = {
38- let p = getString(j[o])
39- if ($isInstanceOf(p, "String"))
40+ func u (r) = {
41+ let s = getString(m[r])
42+ if ($isInstanceOf(s, "String"))
4043 then {
41- let q = p
42- getStringValue(j[o])
44+ let t = s
45+ getStringValue(m[r])
4346 }
4447 else ""
4548 }
4649
47- func s (o) = if (if ((o > (k - 1)))
50+ func v (r) = if (if ((r > (n - 1)))
4851 then true
49- else (0 > n(o)))
50- then l
51- else if ((r(o) == ""))
52- then [j[o], makeString(m, c), a, e]
52+ else (0 > q(r)))
53+ then o
54+ else if ((u(r) == ""))
55+ then [m[r], makeString(p, c), a, e]
5356 else {
54- let t = split(getStringValue(j[o]), c)
55- let u = parseIntValue(t[1])
56- let v = t[0]
57-[j[o], makeString([i, toString(fraction(u, (100 + d), 100)), "color", "url"], c), v, toString(u)]
57+ let w = split(getStringValue(m[r]), c)
58+ let x = parseIntValue(w[1])
59+ let y = w[0]
60+[m[r], makeString([i, toString(fraction(x, (100 + d), 100)), k, l], c), y, toString(x)]
5861 }
5962
60- let w = [s(0), s(1), s(2), s(3), s(4), s(5), s(6), s(7), s(8), s(9)]
61- let x = toString((((((((((parseIntValue(w[0][3]) + parseIntValue(w[1][3])) + parseIntValue(w[2][3])) + parseIntValue(w[3][3])) + parseIntValue(w[4][3])) + parseIntValue(w[5][3])) + parseIntValue(w[6][3])) + parseIntValue(w[7][3])) + parseIntValue(w[8][3])) + parseIntValue(w[9][3])))
62- let y = if ((size(g.payments) == 1))
63+ let z = [v(0), v(1), v(2), v(3), v(4), v(5), v(6), v(7), v(8), v(9)]
64+ let A = toString((((((((((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])))
65+ let B = if ((size(g.payments) == 1))
6366 then g.payments[0]
64- else throw(((("Attached payment is required: " + x) + " peymentstr=") + x))
65- if (isDefined(y.assetId))
67+ else throw(("Attached payment is required: " + A))
68+ if (isDefined(B.assetId))
6669 then throw("works with waves only")
67- else if ((parseIntValue(x) > y.amount))
68- then throw(((("you give: " + toString(y.amount)) + ", but deal needs: ") + x))
69- else $Tuple2([StringEntry(w[0][0], w[0][1]), ScriptTransfer(Address(fromBase58String(w[0][2])), parseIntValue(w[0][3]), unit), StringEntry(w[1][0], w[1][1]), ScriptTransfer(Address(fromBase58String(w[1][2])), parseIntValue(w[1][3]), unit), StringEntry(w[2][0], w[2][1]), ScriptTransfer(Address(fromBase58String(w[2][2])), parseIntValue(w[2][3]), unit), StringEntry(w[3][0], w[3][1]), ScriptTransfer(Address(fromBase58String(w[3][2])), parseIntValue(w[3][3]), unit), StringEntry(w[4][0], w[4][1]), ScriptTransfer(Address(fromBase58String(w[4][2])), parseIntValue(w[4][3]), unit), StringEntry(w[5][0], w[5][1]), ScriptTransfer(Address(fromBase58String(w[5][2])), parseIntValue(w[5][3]), unit), StringEntry(w[6][0], w[6][1]), ScriptTransfer(Address(fromBase58String(w[6][2])), parseIntValue(w[6][3]), unit), StringEntry(w[7][0], w[7][1]), ScriptTransfer(Address(fromBase58String(w[7][2])), parseIntValue(w[7][3]), unit), StringEntry(w[8][0], w[8][1]), ScriptTransfer(Address(fromBase58String(w[8][2])), parseIntValue(w[8][3]), unit), StringEntry(w[9][0], w[9][1]), ScriptTransfer(Address(fromBase58String(w[9][2])), parseIntValue(w[9][3]), unit), ScriptTransfer(g.caller, (y.amount - parseIntValue(x)), unit)], unit)
70+ else if ((parseIntValue(A) > B.amount))
71+ then throw(((("you give: " + toString(B.amount)) + ", but deal needs: ") + A))
72+ 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)
7073 }
7174
7275

github/deemru/w8io/169f3d6 
130.25 ms