tx · 7hUQw4rFyVhA1ZwzkfM6agjCb9TzTswtQXwzziTtBkRJ

3Mz3XPi4hQnfVK9ZaA27YwFfiPApPgFnCts:  -0.01400000 Waves

2019.12.27 18:17 [827605] smart account 3Mz3XPi4hQnfVK9ZaA27YwFfiPApPgFnCts > SELF 0.00000000 Waves

{ "type": 13, "id": "7hUQw4rFyVhA1ZwzkfM6agjCb9TzTswtQXwzziTtBkRJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1577459850923, "version": 1, "sender": "3Mz3XPi4hQnfVK9ZaA27YwFfiPApPgFnCts", "senderPublicKey": "PuRPu7vRxThZUjyn7EuGuZyy6f77Sj87fnAzQC9Af4V", "proofs": [ "47XaqFeksy8HRTArhhSooBZjaBGCFqNs2drrU1YayJKDKpgx3ZmpDs7Lusfaok1wi6wL4QTVbdr8QTHyFdDUKxX2" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMCAQIAAAALAAAAABV0b2tlblBvcnRJbk90aGVyQ2hhaW4EAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAVdG9rZW5Qb3J0SW5PdGhlckNoYWluAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiCQAAAgAAAAECAAAAJHRva2VuUG9ydEluT3RoZXJDaGFpbiBpcyBub3QgZGVmaW5lZAAAAAAOY2hhaW5Db2xsZWN0b3IEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAOY2hhaW5Db2xsZWN0b3IDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWIFAAAAByRtYXRjaDAJAQAAAAdBZGRyZXNzAAAAAQUAAAABYgkAAAIAAAABAgAAAB1jaGFpbkNvbGxlY3RvciBpcyBub3QgZGVmaW5lZAEAAAALYmxvY2tJbmZvQXQAAAABAAAABmhlaWdodAQAAAAHJG1hdGNoMAkABBwAAAACB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0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk70OuY", "chainId": 84, "height": 827605, "spentComplexity": 0 } View: original | compacted Prev: HCJYc2aqPxoTmXtE9V8oJBGWpzSdHtBUwmHXydBGussM Next: 3xPSRwAJsBdadN4cux9i2hcjkJybBvqxYfLFFKXd9rB8 Diff:
OldNewDifferences
130130 let L = Address(D)
131131 if (isDefined(getBoolean(this, H)))
132132 then throw("this tx has already been withdrawn")
133- else if (!(checkMerkleProof(A, B, z)))
134- then throw("incorrect Merkle proof")
135- else ScriptResult(WriteSet([DataEntry(H, true)]), TransferSet([ScriptTransfer(L, E, J)]))
133+ else ScriptResult(WriteSet([DataEntry(H, true)]), TransferSet([ScriptTransfer(L, E, J)]))
136134 }
137135 }
138136
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = {
55 let b = getBinary(this, "tokenPortInOtherChain")
66 if ($isInstanceOf(b, "ByteVector"))
77 then {
88 let c = b
99 c
1010 }
1111 else throw("tokenPortInOtherChain is not defined")
1212 }
1313
1414 let d = {
1515 let b = getBinary(this, "chainCollector")
1616 if ($isInstanceOf(b, "ByteVector"))
1717 then {
1818 let c = b
1919 Address(c)
2020 }
2121 else throw("chainCollector is not defined")
2222 }
2323
2424 func e (f) = {
2525 let b = getBinary(d, toString(f))
2626 if ($isInstanceOf(b, "ByteVector"))
2727 then {
2828 let c = b
2929 c
3030 }
3131 else throw("Block info not found")
3232 }
3333
3434
3535 func g (h) = {
3636 let b = h
3737 if ($isInstanceOf(b, "ByteVector"))
3838 then {
3939 let h = b
4040 toBase58String(h)
4141 }
4242 else "WAVES"
4343 }
4444
4545
4646 func i (j) = if ((j == "WAVES"))
4747 then unit
4848 else fromBase58String(j)
4949
5050
5151 func k (l) = {
5252 let m = toInt(takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1))
5353 if ((m == 0))
5454 then unit
5555 else takeRightBytes(take(l, ((((1 + 1) + 32) + 1) + 32)), 32)
5656 }
5757
5858
5959 func n (l) = blake2b256(l)
6060
6161
6262 func o (l) = {
6363 let m = toInt(takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1))
6464 let p = if ((m == 0))
6565 then 0
6666 else 32
6767 let q = toInt(takeRightBytes(take(l, (((((1 + 1) + 32) + 1) + p) + 1)), 1))
6868 let r = if ((q == 0))
6969 then 0
7070 else 32
7171 takeRightBytes(take(l, ((((((((((1 + 1) + 32) + 1) + p) + 1) + r) + 8) + 8) + 8) + 32)), 32)
7272 }
7373
7474
7575 func s (l) = {
7676 let m = toInt(takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1))
7777 let p = if ((m == 0))
7878 then 0
7979 else 32
8080 let q = toInt(takeRightBytes(take(l, (((((1 + 1) + 32) + 1) + p) + 1)), 1))
8181 let r = if ((q == 0))
8282 then 0
8383 else 32
8484 toInt(takeRightBytes(take(l, ((((((((1 + 1) + 32) + 1) + p) + 1) + r) + 8) + 8)), 8))
8585 }
8686
8787
8888 func t (l) = {
8989 let m = toInt(takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1))
9090 let p = if ((m == 0))
9191 then 0
9292 else 32
9393 let q = toInt(takeRightBytes(take(l, (((((1 + 1) + 32) + 1) + p) + 1)), 1))
9494 let r = if ((q == 0))
9595 then 0
9696 else 32
9797 let u = toInt(takeRightBytes(take(l, (((((((((((1 + 1) + 32) + 1) + p) + 1) + r) + 8) + 8) + 8) + 32) + 2)), 2))
9898 takeRightBytes(take(l, ((((((((((((1 + 1) + 32) + 1) + p) + 1) + r) + 8) + 8) + 8) + 32) + 2) + u)), u)
9999 }
100100
101101
102102 func v (l) = toInt(take(l, 1))
103103
104104
105105 @Callable(w)
106106 func withdraw (x,y,z) = {
107107 let A = e(y)
108108 let B = n(x)
109109 let C = o(x)
110110 let D = t(x)
111111 let E = s(x)
112112 let F = k(x)
113113 let G = v(x)
114114 let H = (toBase58String(B) + "_tx")
115115 let I = (g(F) + "_asset")
116116 let J = {
117117 let b = getString(this, I)
118118 if ($isInstanceOf(b, "String"))
119119 then {
120120 let K = b
121121 i(K)
122122 }
123123 else throw("incorrect asset")
124124 }
125125 if ((G != 4))
126126 then throw("incorrect transaction type")
127127 else if ((C != a))
128128 then throw("incorrect tx recipient")
129129 else {
130130 let L = Address(D)
131131 if (isDefined(getBoolean(this, H)))
132132 then throw("this tx has already been withdrawn")
133- else if (!(checkMerkleProof(A, B, z)))
134- then throw("incorrect Merkle proof")
135- else ScriptResult(WriteSet([DataEntry(H, true)]), TransferSet([ScriptTransfer(L, E, J)]))
133+ else ScriptResult(WriteSet([DataEntry(H, true)]), TransferSet([ScriptTransfer(L, E, J)]))
136134 }
137135 }
138136
139137
140138 @Verifier(M)
141139 func N () = sigVerify(M.bodyBytes, M.proofs[0], M.senderPublicKey)
142140

github/deemru/w8io/169f3d6 
35.62 ms