tx · CqJFaBQveL8gV74dKZkUfigd1cer1JE791xV2e9WgfkR

3MpZuKDPW9Hs8HypbAd7bLxNYULnCYhoXQ4:  -0.01400000 Waves

2020.04.05 19:15 [941159] smart account 3MpZuKDPW9Hs8HypbAd7bLxNYULnCYhoXQ4 > SELF 0.00000000 Waves

{ "type": 13, "id": "CqJFaBQveL8gV74dKZkUfigd1cer1JE791xV2e9WgfkR", "fee": 1400000, "feeAssetId": null, "timestamp": 1586103297538, "version": 1, "sender": "3MpZuKDPW9Hs8HypbAd7bLxNYULnCYhoXQ4", "senderPublicKey": "Eke9tanjCLXE23D8JJf61cqgdG7TSAH7vUbaiAyymfjT", "proofs": [ "kNsW8QGTexV8B2cePii9mypzFwWfmckUcH8jMdo1FixCJmuaEMGENhn1H7xPySZ8CNywnEpwgPTvHFFwYH3fXTS" ], "script": "base64:AAIDAAAAAAAAABMIARIGCgQICAEIEgcKBQgIAQgIAAAAAAAAAAIAAAABaQEAAAANYXRvbWljRGVwb3NpdAAAAAQAAAAPYXRvbWljUmVjaXBpZW50AAAAEGF0b21pY1dpdGhEcmF3SWQAAAAUYXRvbWljV2l0aGRyYXdBbW91bnQAAAAPYXRvbWljRGVwb3NpdElkBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAlwYXltZW50SWQIBQAAAANwbXQAAAAHYXNzZXRJZAQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAIJAAEsAAAAAgUAAAAPYXRvbWljUmVjaXBpZW50BQAAAA9hdG9taWNEZXBvc2l0SWQFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQA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QAAAANuaWwJAAACAAAAAQIAAAAPTm90IEF0b21pYyBTd2FwAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3R0eAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAADdHR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAADdHR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAA3R0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAANzdHgFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAA3N0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAA3N0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAANzdHgAAAAPc2VuZGVyUHVibGljS2V5BvEoBKw=", "chainId": 84, "height": 941159, "spentComplexity": 0 } View: original | compacted Prev: 7s9rjJt3wjBhPvNiPD8nprCRbfVNQeKXgGMfoATB6Zs6 Next: FKhtkDLGboWzmekWVnnv5PiKpuTvuHtRZyQWRm5FwyS8 Diff:
OldNewDifferences
2424
2525
2626 @Callable(a)
27-func atomicWithdraw (b,c,d,e) = {
27+func atomicWithdraw (b,c,d,e,m) = {
2828 let f = toBase58String(a.caller.bytes)
29- let m = fromBase58String(c)
30- let n = {
29+ let n = fromBase58String(m)
30+ let o = {
3131 let j = getInteger(this, ((f + e) + b))
3232 if ($isInstanceOf(j, "Int"))
3333 then {
3636 }
3737 else 0
3838 }
39- let o = {
39+ let p = {
4040 let j = getInteger(this, ((f + c) + b))
4141 if ($isInstanceOf(j, "Int"))
4242 then {
4545 }
4646 else 0
4747 }
48- let p = {
48+ let q = {
4949 let j = getInteger(this, ((b + c) + f))
5050 if ($isInstanceOf(j, "Int"))
5151 then {
5454 }
5555 else 0
5656 }
57- let q = {
57+ let r = {
5858 let j = getInteger(this, ((b + e) + f))
5959 if ($isInstanceOf(j, "Int"))
6060 then {
6363 }
6464 else 0
6565 }
66- let r = {
66+ let s = {
6767 let j = getBoolean(this, ((("F_" + f) + c) + b))
6868 if ($isInstanceOf(j, "Boolean"))
6969 then {
7272 }
7373 else false
7474 }
75- if (if (if (if ((n == q))
76- then (p == o)
75+ if (if (if (if ((o == r))
76+ then (q == p)
7777 else false)
78- then (r == true)
78+ then (s == true)
7979 else false)
8080 then (c == "WAVES")
8181 else false)
8282 then ScriptResult(WriteSet([DataEntry(((("F_" + f) + c) + b), false)]), TransferSet([ScriptTransfer(a.caller, d, unit)]))
83- else if (if (if (if ((n == q))
84- then (p == o)
83+ else if (if (if (if ((o == r))
84+ then (q == p)
8585 else false)
86- then (r == true)
86+ then (s == true)
8787 else false)
8888 then (c != "WAVES")
8989 else false)
90- then ScriptResult(WriteSet([DataEntry(((("F_" + f) + c) + b), false)]), TransferSet([ScriptTransfer(a.caller, d, m)]))
90+ then ScriptResult(WriteSet([DataEntry(((("F_" + f) + c) + b), false)]), TransferSet([ScriptTransfer(a.caller, d, n)]))
9191 else throw("Not Atomic Swap")
9292 }
9393
9494
95-@Verifier(s)
96-func t () = {
97- let j = s
95+@Verifier(t)
96+func u () = {
97+ let j = t
9898 if ($isInstanceOf(j, "TransferTransaction"))
9999 then {
100- let u = j
101- sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
100+ let v = j
101+ sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey)
102102 }
103103 else if ($isInstanceOf(j, "SetScriptTransaction"))
104104 then {
105- let v = j
106- sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey)
105+ let w = j
106+ sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey)
107107 }
108108 else true
109109 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func atomicDeposit (b,c,d,e) = {
88 let f = toBase58String(a.caller.bytes)
99 let g = extract(a.payment)
1010 let h = g.assetId
1111 let i = {
1212 let j = getInteger(this, ((b + e) + f))
1313 if ($isInstanceOf(j, "Int"))
1414 then {
1515 let k = j
1616 k
1717 }
1818 else 0
1919 }
2020 let l = (i + g.amount)
2121 WriteSet([DataEntry(((f + e) + b), l), DataEntry(((f + c) + b), d), DataEntry(((("F_" + f) + c) + b), true)])
2222 }
2323
2424
2525
2626 @Callable(a)
27-func atomicWithdraw (b,c,d,e) = {
27+func atomicWithdraw (b,c,d,e,m) = {
2828 let f = toBase58String(a.caller.bytes)
29- let m = fromBase58String(c)
30- let n = {
29+ let n = fromBase58String(m)
30+ let o = {
3131 let j = getInteger(this, ((f + e) + b))
3232 if ($isInstanceOf(j, "Int"))
3333 then {
3434 let k = j
3535 k
3636 }
3737 else 0
3838 }
39- let o = {
39+ let p = {
4040 let j = getInteger(this, ((f + c) + b))
4141 if ($isInstanceOf(j, "Int"))
4242 then {
4343 let k = j
4444 k
4545 }
4646 else 0
4747 }
48- let p = {
48+ let q = {
4949 let j = getInteger(this, ((b + c) + f))
5050 if ($isInstanceOf(j, "Int"))
5151 then {
5252 let k = j
5353 k
5454 }
5555 else 0
5656 }
57- let q = {
57+ let r = {
5858 let j = getInteger(this, ((b + e) + f))
5959 if ($isInstanceOf(j, "Int"))
6060 then {
6161 let k = j
6262 k
6363 }
6464 else 0
6565 }
66- let r = {
66+ let s = {
6767 let j = getBoolean(this, ((("F_" + f) + c) + b))
6868 if ($isInstanceOf(j, "Boolean"))
6969 then {
7070 let k = j
7171 k
7272 }
7373 else false
7474 }
75- if (if (if (if ((n == q))
76- then (p == o)
75+ if (if (if (if ((o == r))
76+ then (q == p)
7777 else false)
78- then (r == true)
78+ then (s == true)
7979 else false)
8080 then (c == "WAVES")
8181 else false)
8282 then ScriptResult(WriteSet([DataEntry(((("F_" + f) + c) + b), false)]), TransferSet([ScriptTransfer(a.caller, d, unit)]))
83- else if (if (if (if ((n == q))
84- then (p == o)
83+ else if (if (if (if ((o == r))
84+ then (q == p)
8585 else false)
86- then (r == true)
86+ then (s == true)
8787 else false)
8888 then (c != "WAVES")
8989 else false)
90- then ScriptResult(WriteSet([DataEntry(((("F_" + f) + c) + b), false)]), TransferSet([ScriptTransfer(a.caller, d, m)]))
90+ then ScriptResult(WriteSet([DataEntry(((("F_" + f) + c) + b), false)]), TransferSet([ScriptTransfer(a.caller, d, n)]))
9191 else throw("Not Atomic Swap")
9292 }
9393
9494
95-@Verifier(s)
96-func t () = {
97- let j = s
95+@Verifier(t)
96+func u () = {
97+ let j = t
9898 if ($isInstanceOf(j, "TransferTransaction"))
9999 then {
100- let u = j
101- sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
100+ let v = j
101+ sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey)
102102 }
103103 else if ($isInstanceOf(j, "SetScriptTransaction"))
104104 then {
105- let v = j
106- sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey)
105+ let w = j
106+ sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey)
107107 }
108108 else true
109109 }
110110

github/deemru/w8io/026f985 
37.26 ms