tx · 8UKuwDKizTP6yhvBa7mpM46HSeHuRRCb97VaP5euNHdV

3N5P6L87h3JMKWjKNSfu2VQDgr4epK1wEhK:  -0.01400000 Waves

2021.05.14 05:12 [1524734] smart account 3N5P6L87h3JMKWjKNSfu2VQDgr4epK1wEhK > SELF 0.00000000 Waves

{ "type": 13, "id": "8UKuwDKizTP6yhvBa7mpM46HSeHuRRCb97VaP5euNHdV", "fee": 1400000, "feeAssetId": null, "timestamp": 1620958364262, "version": 2, "chainId": 84, "sender": "3N5P6L87h3JMKWjKNSfu2VQDgr4epK1wEhK", "senderPublicKey": "G3vBmhh2RzDJL3uZhsxK27NHV3hcZpqpNs1k3UPPMe4e", "proofs": [ "ng51FkjZmTFE2cKxnFnLrHtEE64SynVTR3w17SdgHb3V2PvcRHNjYAbM3xdZQBt1rQp6xLe44bTbxu28Zm7wJ92" ], "script": "base64:AAIEAAAAAAAAAA4IAhIDCgEIEgUKAwgBCAAAAAIBAAAAB2N1cnJlbnQAAAABAAAAAWkEAAAAA3BtdAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAJYAAAAAQkBAAAABXZhbHVlAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkAgAAAAVXQVZFUwEAAAAJaWRDb252ZXJ0AAAAAQAAAAhzdHJpbmdJZAMJAAAAAAAAAgUAAAAIc3RyaW5nSWQCAAAABVdBVkVTBQAAAAR1bml0CQACWQAAAAEFAAAACHN0cmluZ0lkAAAAAgAAAAFpAQAAABVyYW5raW5nU3BvbnNvckRlcG9zaXQAAAABAAAADm1vbnRoVGltZXN0YW1wBAAAAANwbXQJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAACWN1cnJlbnRJZAkBAAAAB2N1cnJlbnQAAAABBQAAAAFpBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZj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BuZWdhdGl2ZSBhbW91bnQDCQAAZgAAAAIAAAAAAAAAAAAFAAAACW5ld0Ftb3VudAkAAAIAAAABAgAAABtOb3QgZW5vdWdoIHNwb25zb3JkIGJhbGFuY2UDCQAAZgAAAAIAAAAAAAAAAAAFAAAAEHJhbmtpbmdOZXdBbW91bnQJAAACAAAAAQIAAAAfTm90IGVub3VnaCB0b3RhbCBib3VudHkgYmFsYW5jZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAEHJhbmtpbmctc3BvbnNvcl8FAAAACmN1cnJlbnRLZXkCAAAAAV8FAAAAB2Fzc2V0SWQCAAAAAV8FAAAADm1vbnRoVGltZXN0YW1wBQAAAAluZXdBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAEHJhbmtpbmctc3BvbnNvcl8FAAAAB2Fzc2V0SWQCAAAAAV8FAAAADm1vbnRoVGltZXN0YW1wBQAAABByYW5raW5nTmV3QW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAA5jdXJyZW50QXNzZXRJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmjhtI7", "height": 1524734, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BJzAk9ZEmUUgp1MLASmFZZDzkNvrr5bvNxxPfKJ7r33F Next: none Diff:
OldNewDifferences
99 }
1010
1111
12+func d (e) = if ((e == "WAVES"))
13+ then unit
14+ else fromBase58String(e)
15+
16+
1217 @Callable(b)
13-func rankingSponsorDeposit (d) = {
18+func rankingSponsorDeposit (f) = {
1419 let c = b.payments[0]
15- let e = a(b)
16- let f = toBase58String(b.caller.bytes)
17- let g = {
18- let h = getInteger(this, ((((("ranking-sponsor_" + f) + "_") + e) + "_") + d))
19- if ($isInstanceOf(h, "Int"))
20+ let g = a(b)
21+ let h = toBase58String(b.caller.bytes)
22+ let i = {
23+ let j = getInteger(this, ((((("ranking-sponsor_" + h) + "_") + g) + "_") + f))
24+ if ($isInstanceOf(j, "Int"))
2025 then {
21- let i = h
22- i
26+ let k = j
27+ k
2328 }
2429 else 0
2530 }
26- let j = (g + c.amount)
27- let k = {
28- let h = getInteger(this, ((("ranking-sponsor_" + e) + "_") + d))
29- if ($isInstanceOf(h, "Int"))
31+ let l = (i + c.amount)
32+ let m = {
33+ let j = getInteger(this, ((("ranking-sponsor_" + g) + "_") + f))
34+ if ($isInstanceOf(j, "Int"))
3035 then {
31- let i = h
32- i
36+ let k = j
37+ k
3338 }
3439 else 0
3540 }
36- let l = (k + c.amount)
37-[IntegerEntry(((((("ranking-sponsor_" + f) + "_") + e) + "_") + d), j), IntegerEntry(((("ranking-sponsor_" + e) + "_") + d), l)]
41+ let n = (m + c.amount)
42+[IntegerEntry(((((("ranking-sponsor_" + h) + "_") + g) + "_") + f), l), IntegerEntry(((("ranking-sponsor_" + g) + "_") + f), n)]
3843 }
3944
4045
4146
4247 @Callable(b)
43-func rankingSponsorWithdraw (d,m,n) = {
44- let f = toBase58String(b.caller.bytes)
45- let o = fromBase58String(n)
46- let g = {
47- let h = getInteger(this, ((((("ranking-sponsor_" + f) + "_") + n) + "_") + d))
48- if ($isInstanceOf(h, "Int"))
48+func rankingSponsorWithdraw (f,o,p) = {
49+ let h = toBase58String(b.caller.bytes)
50+ let q = d(p)
51+ let i = {
52+ let j = getInteger(this, ((((("ranking-sponsor_" + h) + "_") + p) + "_") + f))
53+ if ($isInstanceOf(j, "Int"))
4954 then {
50- let i = h
51- i
55+ let k = j
56+ k
5257 }
5358 else 0
5459 }
55- let j = (g - m)
56- let p = {
57- let h = getInteger(this, ((("ranking-sponsor_" + n) + "_") + d))
58- if ($isInstanceOf(h, "Int"))
60+ let l = (i - o)
61+ let r = {
62+ let j = getInteger(this, ((("ranking-sponsor_" + p) + "_") + f))
63+ if ($isInstanceOf(j, "Int"))
5964 then {
60- let i = h
61- i
65+ let k = j
66+ k
6267 }
6368 else 0
6469 }
65- let l = (p - m)
66- if ((0 > m))
70+ let n = (r - o)
71+ if ((0 > o))
6772 then throw("Can't withdraw negative amount")
68- else if ((0 > j))
73+ else if ((0 > l))
6974 then throw("Not enough sponsord balance")
70- else if ((0 > l))
75+ else if ((0 > n))
7176 then throw("Not enough total bounty balance")
72- else [IntegerEntry(((((("ranking-sponsor_" + f) + "_") + n) + "_") + d), j), IntegerEntry(((("ranking-sponsor_" + n) + "_") + d), l), ScriptTransfer(b.caller, m, o)]
77+ else [IntegerEntry(((((("ranking-sponsor_" + h) + "_") + p) + "_") + f), l), IntegerEntry(((("ranking-sponsor_" + p) + "_") + f), n), ScriptTransfer(b.caller, o, q)]
7378 }
7479
7580
76-@Verifier(q)
77-func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
81+@Verifier(s)
82+func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
7883
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = b.payments[0]
66 if (isDefined(c.assetId))
77 then toBase58String(value(c.assetId))
88 else "WAVES"
99 }
1010
1111
12+func d (e) = if ((e == "WAVES"))
13+ then unit
14+ else fromBase58String(e)
15+
16+
1217 @Callable(b)
13-func rankingSponsorDeposit (d) = {
18+func rankingSponsorDeposit (f) = {
1419 let c = b.payments[0]
15- let e = a(b)
16- let f = toBase58String(b.caller.bytes)
17- let g = {
18- let h = getInteger(this, ((((("ranking-sponsor_" + f) + "_") + e) + "_") + d))
19- if ($isInstanceOf(h, "Int"))
20+ let g = a(b)
21+ let h = toBase58String(b.caller.bytes)
22+ let i = {
23+ let j = getInteger(this, ((((("ranking-sponsor_" + h) + "_") + g) + "_") + f))
24+ if ($isInstanceOf(j, "Int"))
2025 then {
21- let i = h
22- i
26+ let k = j
27+ k
2328 }
2429 else 0
2530 }
26- let j = (g + c.amount)
27- let k = {
28- let h = getInteger(this, ((("ranking-sponsor_" + e) + "_") + d))
29- if ($isInstanceOf(h, "Int"))
31+ let l = (i + c.amount)
32+ let m = {
33+ let j = getInteger(this, ((("ranking-sponsor_" + g) + "_") + f))
34+ if ($isInstanceOf(j, "Int"))
3035 then {
31- let i = h
32- i
36+ let k = j
37+ k
3338 }
3439 else 0
3540 }
36- let l = (k + c.amount)
37-[IntegerEntry(((((("ranking-sponsor_" + f) + "_") + e) + "_") + d), j), IntegerEntry(((("ranking-sponsor_" + e) + "_") + d), l)]
41+ let n = (m + c.amount)
42+[IntegerEntry(((((("ranking-sponsor_" + h) + "_") + g) + "_") + f), l), IntegerEntry(((("ranking-sponsor_" + g) + "_") + f), n)]
3843 }
3944
4045
4146
4247 @Callable(b)
43-func rankingSponsorWithdraw (d,m,n) = {
44- let f = toBase58String(b.caller.bytes)
45- let o = fromBase58String(n)
46- let g = {
47- let h = getInteger(this, ((((("ranking-sponsor_" + f) + "_") + n) + "_") + d))
48- if ($isInstanceOf(h, "Int"))
48+func rankingSponsorWithdraw (f,o,p) = {
49+ let h = toBase58String(b.caller.bytes)
50+ let q = d(p)
51+ let i = {
52+ let j = getInteger(this, ((((("ranking-sponsor_" + h) + "_") + p) + "_") + f))
53+ if ($isInstanceOf(j, "Int"))
4954 then {
50- let i = h
51- i
55+ let k = j
56+ k
5257 }
5358 else 0
5459 }
55- let j = (g - m)
56- let p = {
57- let h = getInteger(this, ((("ranking-sponsor_" + n) + "_") + d))
58- if ($isInstanceOf(h, "Int"))
60+ let l = (i - o)
61+ let r = {
62+ let j = getInteger(this, ((("ranking-sponsor_" + p) + "_") + f))
63+ if ($isInstanceOf(j, "Int"))
5964 then {
60- let i = h
61- i
65+ let k = j
66+ k
6267 }
6368 else 0
6469 }
65- let l = (p - m)
66- if ((0 > m))
70+ let n = (r - o)
71+ if ((0 > o))
6772 then throw("Can't withdraw negative amount")
68- else if ((0 > j))
73+ else if ((0 > l))
6974 then throw("Not enough sponsord balance")
70- else if ((0 > l))
75+ else if ((0 > n))
7176 then throw("Not enough total bounty balance")
72- else [IntegerEntry(((((("ranking-sponsor_" + f) + "_") + n) + "_") + d), j), IntegerEntry(((("ranking-sponsor_" + n) + "_") + d), l), ScriptTransfer(b.caller, m, o)]
77+ else [IntegerEntry(((((("ranking-sponsor_" + h) + "_") + p) + "_") + f), l), IntegerEntry(((("ranking-sponsor_" + p) + "_") + f), n), ScriptTransfer(b.caller, o, q)]
7378 }
7479
7580
76-@Verifier(q)
77-func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
81+@Verifier(s)
82+func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
7883

github/deemru/w8io/169f3d6 
58.72 ms