tx · 9chL8PzxEbHtRLArGQhne38Gcxmh2PJgMfCTiDUBariE

3N1hUxU5uVePa5VEmty9UWoTdzjfMUNekSp:  -0.01400000 Waves

2020.04.06 15:36 [942384] smart account 3N1hUxU5uVePa5VEmty9UWoTdzjfMUNekSp > SELF 0.00000000 Waves

{ "type": 13, "id": "9chL8PzxEbHtRLArGQhne38Gcxmh2PJgMfCTiDUBariE", "fee": 1400000, "feeAssetId": null, "timestamp": 1586176576542, "version": 1, "sender": "3N1hUxU5uVePa5VEmty9UWoTdzjfMUNekSp", "senderPublicKey": "C9N8puBe7PNPmySZRMUWyTK96uEaNp6AB2w758sEo4PQ", "proofs": [ "woFEbBAW6BnWojuzuCesyMRDCUcD4V3rdB7wu2aVcQECDrSDfWsKrToitrcd8ZMqhHRZvDRFccQ8yYZ4yEaCCJy" ], "script": "base64:AAIDAAAAAAAAABMIARIGCgQICAEIEgcKBQgIAQgIAAAAAAAAAAIAAAABaQEAAAANYXRvbWljRGVwb3NpdAAAAAQAAAAPYXRvbWljUmVjaXBpZW50AAAAEGF0b21pY1dpdGhEcmF3SWQAAAAUYXRvbWljV2l0aGRyYXdBbW91bnQAAAAPYXRvbWljRGVwb3NpdElkBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAlwYXltZW50SWQIBQAAAANwbXQAAAAHYXNzZXRJZAQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAIJAAEsAAAAAgUAAAAKY3VycmVudEtleQUAAAAPYXRvbWljRGVwb3NpdElkBQAAAA9hdG9taWNSZWNpcGllbnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAA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y2gwCQAB9AAAAAMIBQAAAAN0dHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAN0dHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAADdHR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAA3N0eAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAADc3R4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAADc3R4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAA3N0eAAAAA9zZW5kZXJQdWJsaWNLZXkGRxW+wg==", "chainId": 84, "height": 942384, "spentComplexity": 0 } View: original | compacted Prev: DZmuwbaS3MFvi6D8w62iADUjRRAuB8T6J2E6Mf6NPm93 Next: FNJfL1FDX6tudsHs33ZiXXSUqXkzAppFJd1WzcRAAehT Diff:
OldNewDifferences
8484 if (if (if (if ((o == r))
8585 then (q == p)
8686 else false)
87- then (s == true)
87+ then (t == true)
8888 else false)
8989 then (c == "WAVES")
9090 else false)
9292 else if (if (if (if ((o == r))
9393 then (q == p)
9494 else false)
95- then (s == true)
95+ then (t == true)
9696 else false)
9797 then (c != "WAVES")
9898 else false)
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, ((f + e) + b))
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(((("d_" + f) + e) + b), true)])
2222 }
2323
2424
2525
2626 @Callable(a)
2727 func atomicWithdraw (b,c,d,e,m) = {
2828 let f = toBase58String(a.caller.bytes)
2929 let n = fromBase58String(m)
3030 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 }
3939 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 }
4848 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 }
5757 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 }
6666 let s = {
6767 let j = getBoolean(this, ((("d_" + f) + e) + b))
6868 if ($isInstanceOf(j, "Boolean"))
6969 then {
7070 let k = j
7171 k
7272 }
7373 else false
7474 }
7575 let t = {
7676 let j = getBoolean(this, ((("d_" + b) + c) + f))
7777 if ($isInstanceOf(j, "Boolean"))
7878 then {
7979 let k = j
8080 k
8181 }
8282 else false
8383 }
8484 if (if (if (if ((o == r))
8585 then (q == p)
8686 else false)
87- then (s == true)
87+ then (t == true)
8888 else false)
8989 then (c == "WAVES")
9090 else false)
9191 then ScriptResult(WriteSet([DataEntry(((b + c) + f), 0), DataEntry(((f + c) + b), 0), DataEntry(((("d_" + b) + c) + f), false)]), TransferSet([ScriptTransfer(a.caller, d, unit)]))
9292 else if (if (if (if ((o == r))
9393 then (q == p)
9494 else false)
95- then (s == true)
95+ then (t == true)
9696 else false)
9797 then (c != "WAVES")
9898 else false)
9999 then ScriptResult(WriteSet([DataEntry(((b + c) + f), 0), DataEntry(((f + c) + b), 0), DataEntry(((("d_" + b) + c) + f), false)]), TransferSet([ScriptTransfer(a.caller, d, unit)]))
100100 else throw("Not Atomic Swap")
101101 }
102102
103103
104104 @Verifier(u)
105105 func v () = {
106106 let j = u
107107 if ($isInstanceOf(j, "TransferTransaction"))
108108 then {
109109 let w = j
110110 sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey)
111111 }
112112 else if ($isInstanceOf(j, "SetScriptTransaction"))
113113 then {
114114 let x = j
115115 sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
116116 }
117117 else true
118118 }
119119

github/deemru/w8io/026f985 
30.82 ms