tx · DsZWMNEt42YSdLa6Ezz1ei6ZyqHmDcHybWR6pxE8j6cT

3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6:  -0.04000000 Waves

2021.11.04 16:22 [1776309] smart account 3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6 > SELF 0.00000000 Waves

{ "type": 13, "id": "DsZWMNEt42YSdLa6Ezz1ei6ZyqHmDcHybWR6pxE8j6cT", "fee": 4000000, "feeAssetId": null, "timestamp": 1636032122205, "version": 2, "chainId": 84, "sender": "3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6", "senderPublicKey": "Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL", "proofs": [ "2BfUXuaeHDHPdnD7YLbRBGn45QcsB92zsbmuHRBBoyZg9NGBdD8TPmT5nP74Xq6t4QC13bAVfVFhmZ3dPDAciRwv" ], "script": "base64:AAIFAAAAAAAAAA8IAhIAEgMKAQESBAoCAQgAAAAAAAAAAwAAAAFpAQAAAAdkZXBvc2l0AAAAAAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAHEF0dGFjaGVkIHBheW1lbnQgaXMgcmVxdWlyZWQDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAFXdvcmtzIHdpdGggd2F2ZXMgb25seQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1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AAB3NtYXJ0UEsEAAAABnNlY29uZAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAACHNlY29uZFBLBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADBQAAAAVzbWFydAYFAAAABnNlY29uZAeBLsDb", "height": 1776309, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: JBqHQLCwbB3aZ4hAR18k1BjBKy3GSepNRfpXiTGV81p9 Next: GBhXADtPKoS4CpCVewbi4PsMLYemj3cpy2LzXXcDf5xH Diff:
OldNewDifferences
44
55
66 @Callable(a)
7-func call () = {
8- let b = Issue("Asset", "", 1, 0, true, unit, 0)
9- let c = calculateAssetId(b)
10-[BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), b, Reissue(c, 1, false), Burn(c, 1), ScriptTransfer(a.caller, 1, c)]
11- }
12-
13-
14-
15-@Callable(a)
167 func deposit () = {
17- let d = if ((size(a.payments) == 1))
8+ let b = if ((size(a.payments) == 1))
189 then a.payments[0]
1910 else throw("Attached payment is required")
20- if (isDefined(d.assetId))
11+ if (isDefined(b.assetId))
2112 then throw("works with waves only")
2213 else {
23- let e = toBase58String(a.caller.bytes)
24- let f = {
25- let g = getInteger(this, e)
26- if ($isInstanceOf(g, "Int"))
14+ let c = toBase58String(a.caller.bytes)
15+ let d = {
16+ let e = getInteger(this, c)
17+ if ($isInstanceOf(e, "Int"))
2718 then {
28- let h = g
29- h
19+ let f = e
20+ f
3021 }
3122 else 0
3223 }
33- let i = (f + d.amount)
34- $Tuple2([IntegerEntry(e, i)], unit)
24+ let g = (d + b.amount)
25+ $Tuple2([IntegerEntry(c, g)], unit)
3526 }
3627 }
3728
3829
3930
4031 @Callable(a)
41-func withdraw (j) = {
42- let e = toBase58String(a.caller.bytes)
43- let f = {
44- let g = getInteger(this, e)
45- if ($isInstanceOf(g, "Int"))
32+func withdraw (h) = {
33+ let c = toBase58String(a.caller.bytes)
34+ let d = {
35+ let e = getInteger(this, c)
36+ if ($isInstanceOf(e, "Int"))
4637 then {
47- let h = g
48- h
38+ let f = e
39+ f
4940 }
5041 else 0
5142 }
52- let i = (f - j)
53- if ((0 > j))
43+ let g = (d - h)
44+ if ((0 > h))
5445 then throw("Can't withdraw negative amount")
55- else if ((0 > i))
46+ else if ((0 > g))
5647 then throw("Not enough balance")
57- else $Tuple2([IntegerEntry(e, i), ScriptTransfer(a.caller, j, unit)], unit)
48+ else $Tuple2([IntegerEntry(c, g), ScriptTransfer(a.caller, h, unit)], unit)
5849 }
5950
6051
6152
6253 @Callable(a)
63-func transfer (j,k) = {
64- let e = toBase58String(a.caller.bytes)
65- let f = {
66- let g = getInteger(this, e)
67- if ($isInstanceOf(g, "Int"))
54+func transfer (h,i) = {
55+ let c = toBase58String(a.caller.bytes)
56+ let d = {
57+ let e = getInteger(this, c)
58+ if ($isInstanceOf(e, "Int"))
6859 then {
69- let h = g
70- h
60+ let f = e
61+ f
7162 }
7263 else 0
7364 }
74- let i = (f - j)
75- if ((0 > j))
76- then throw("Can't withdraw negative amount")
77- else if ((0 > i))
65+ let g = (d - h)
66+ if ((0 > h))
67+ then throw("Can't transfer negative amount")
68+ else if ((0 > g))
7869 then throw("Not enough balance")
7970 else {
80- let l = toBase58String(Address(fromBase58String(k)).bytes)
81- let m = {
82- let g = getInteger(this, l)
83- if ($isInstanceOf(g, "Int"))
71+ let j = toBase58String(Address(fromBase58String(i)).bytes)
72+ let k = {
73+ let e = getInteger(this, j)
74+ if ($isInstanceOf(e, "Int"))
8475 then {
85- let h = g
86- h
76+ let f = e
77+ f
8778 }
8879 else 0
8980 }
90- $Tuple2([IntegerEntry(e, i), IntegerEntry(l, (m + j))], unit)
81+ $Tuple2([IntegerEntry(c, g), IntegerEntry(j, (k + h))], unit)
9182 }
9283 }
9384
9485
95-@Verifier(n)
96-func o () = {
97- let p = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
98- let q = base58'CwvKLDcXt3Wd2MEyEemVKawiD7gaCV68wh2GcnJRHFqB'
99- let r = sigVerify(n.bodyBytes, n.proofs[0], p)
100- let s = sigVerify(n.bodyBytes, n.proofs[0], q)
101- let g = n
102- if ($isInstanceOf(g, "SetScriptTransaction"))
86+@Verifier(l)
87+func m () = {
88+ let n = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
89+ let o = base58'CwvKLDcXt3Wd2MEyEemVKawiD7gaCV68wh2GcnJRHFqB'
90+ let p = sigVerify(l.bodyBytes, l.proofs[0], n)
91+ let q = sigVerify(l.bodyBytes, l.proofs[0], o)
92+ let e = l
93+ if ($isInstanceOf(e, "SetScriptTransaction"))
10394 then {
104- let t = g
95+ let r = e
10596 true
10697 }
107- else if ($isInstanceOf(g, "DataTransaction"))
98+ else if ($isInstanceOf(e, "DataTransaction"))
10899 then {
109- let t = g
100+ let r = e
110101 true
111102 }
112- else if ($isInstanceOf(g, "InvokeScriptTransaction"))
103+ else if ($isInstanceOf(e, "InvokeScriptTransaction"))
113104 then {
114- let t = g
105+ let r = e
115106 true
116107 }
117- else if ($isInstanceOf(g, "TransferTransaction"))
108+ else if ($isInstanceOf(e, "TransferTransaction"))
118109 then {
119- let t = g
120- if (r)
110+ let r = e
111+ if (p)
121112 then true
122- else s
113+ else q
123114 }
124115 else false
125116 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
7-func call () = {
8- let b = Issue("Asset", "", 1, 0, true, unit, 0)
9- let c = calculateAssetId(b)
10-[BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), b, Reissue(c, 1, false), Burn(c, 1), ScriptTransfer(a.caller, 1, c)]
11- }
12-
13-
14-
15-@Callable(a)
167 func deposit () = {
17- let d = if ((size(a.payments) == 1))
8+ let b = if ((size(a.payments) == 1))
189 then a.payments[0]
1910 else throw("Attached payment is required")
20- if (isDefined(d.assetId))
11+ if (isDefined(b.assetId))
2112 then throw("works with waves only")
2213 else {
23- let e = toBase58String(a.caller.bytes)
24- let f = {
25- let g = getInteger(this, e)
26- if ($isInstanceOf(g, "Int"))
14+ let c = toBase58String(a.caller.bytes)
15+ let d = {
16+ let e = getInteger(this, c)
17+ if ($isInstanceOf(e, "Int"))
2718 then {
28- let h = g
29- h
19+ let f = e
20+ f
3021 }
3122 else 0
3223 }
33- let i = (f + d.amount)
34- $Tuple2([IntegerEntry(e, i)], unit)
24+ let g = (d + b.amount)
25+ $Tuple2([IntegerEntry(c, g)], unit)
3526 }
3627 }
3728
3829
3930
4031 @Callable(a)
41-func withdraw (j) = {
42- let e = toBase58String(a.caller.bytes)
43- let f = {
44- let g = getInteger(this, e)
45- if ($isInstanceOf(g, "Int"))
32+func withdraw (h) = {
33+ let c = toBase58String(a.caller.bytes)
34+ let d = {
35+ let e = getInteger(this, c)
36+ if ($isInstanceOf(e, "Int"))
4637 then {
47- let h = g
48- h
38+ let f = e
39+ f
4940 }
5041 else 0
5142 }
52- let i = (f - j)
53- if ((0 > j))
43+ let g = (d - h)
44+ if ((0 > h))
5445 then throw("Can't withdraw negative amount")
55- else if ((0 > i))
46+ else if ((0 > g))
5647 then throw("Not enough balance")
57- else $Tuple2([IntegerEntry(e, i), ScriptTransfer(a.caller, j, unit)], unit)
48+ else $Tuple2([IntegerEntry(c, g), ScriptTransfer(a.caller, h, unit)], unit)
5849 }
5950
6051
6152
6253 @Callable(a)
63-func transfer (j,k) = {
64- let e = toBase58String(a.caller.bytes)
65- let f = {
66- let g = getInteger(this, e)
67- if ($isInstanceOf(g, "Int"))
54+func transfer (h,i) = {
55+ let c = toBase58String(a.caller.bytes)
56+ let d = {
57+ let e = getInteger(this, c)
58+ if ($isInstanceOf(e, "Int"))
6859 then {
69- let h = g
70- h
60+ let f = e
61+ f
7162 }
7263 else 0
7364 }
74- let i = (f - j)
75- if ((0 > j))
76- then throw("Can't withdraw negative amount")
77- else if ((0 > i))
65+ let g = (d - h)
66+ if ((0 > h))
67+ then throw("Can't transfer negative amount")
68+ else if ((0 > g))
7869 then throw("Not enough balance")
7970 else {
80- let l = toBase58String(Address(fromBase58String(k)).bytes)
81- let m = {
82- let g = getInteger(this, l)
83- if ($isInstanceOf(g, "Int"))
71+ let j = toBase58String(Address(fromBase58String(i)).bytes)
72+ let k = {
73+ let e = getInteger(this, j)
74+ if ($isInstanceOf(e, "Int"))
8475 then {
85- let h = g
86- h
76+ let f = e
77+ f
8778 }
8879 else 0
8980 }
90- $Tuple2([IntegerEntry(e, i), IntegerEntry(l, (m + j))], unit)
81+ $Tuple2([IntegerEntry(c, g), IntegerEntry(j, (k + h))], unit)
9182 }
9283 }
9384
9485
95-@Verifier(n)
96-func o () = {
97- let p = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
98- let q = base58'CwvKLDcXt3Wd2MEyEemVKawiD7gaCV68wh2GcnJRHFqB'
99- let r = sigVerify(n.bodyBytes, n.proofs[0], p)
100- let s = sigVerify(n.bodyBytes, n.proofs[0], q)
101- let g = n
102- if ($isInstanceOf(g, "SetScriptTransaction"))
86+@Verifier(l)
87+func m () = {
88+ let n = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
89+ let o = base58'CwvKLDcXt3Wd2MEyEemVKawiD7gaCV68wh2GcnJRHFqB'
90+ let p = sigVerify(l.bodyBytes, l.proofs[0], n)
91+ let q = sigVerify(l.bodyBytes, l.proofs[0], o)
92+ let e = l
93+ if ($isInstanceOf(e, "SetScriptTransaction"))
10394 then {
104- let t = g
95+ let r = e
10596 true
10697 }
107- else if ($isInstanceOf(g, "DataTransaction"))
98+ else if ($isInstanceOf(e, "DataTransaction"))
10899 then {
109- let t = g
100+ let r = e
110101 true
111102 }
112- else if ($isInstanceOf(g, "InvokeScriptTransaction"))
103+ else if ($isInstanceOf(e, "InvokeScriptTransaction"))
113104 then {
114- let t = g
105+ let r = e
115106 true
116107 }
117- else if ($isInstanceOf(g, "TransferTransaction"))
108+ else if ($isInstanceOf(e, "TransferTransaction"))
118109 then {
119- let t = g
120- if (r)
110+ let r = e
111+ if (p)
121112 then true
122- else s
113+ else q
123114 }
124115 else false
125116 }
126117

github/deemru/w8io/169f3d6 
48.43 ms