tx · A2hqESGCj5S4GGaYFNDV5YbpqqxRb79mFxHyGZuqwn3F

3Mz3XPi4hQnfVK9ZaA27YwFfiPApPgFnCts:  -0.01400000 Waves

2019.12.28 04:41 [828250] smart account 3Mz3XPi4hQnfVK9ZaA27YwFfiPApPgFnCts > SELF 0.00000000 Waves

{ "type": 13, "id": "A2hqESGCj5S4GGaYFNDV5YbpqqxRb79mFxHyGZuqwn3F", "fee": 1400000, "feeAssetId": null, "timestamp": 1577497344471, "version": 1, "sender": "3Mz3XPi4hQnfVK9ZaA27YwFfiPApPgFnCts", "senderPublicKey": "PuRPu7vRxThZUjyn7EuGuZyy6f77Sj87fnAzQC9Af4V", "proofs": [ "4ngeZGPg4NNsVQWV2t9QSxsVvZ4nRsCVJWBsLipDYqpRZqMNyJZqBipsw6enbdBdSCFdmVyHZxE2NPmufYp4xzor" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMCAQIAAAALAAAAABV0b2tlblBvcnRJbk90aGVyQ2hhaW4EAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAVdG9rZW5Qb3J0SW5PdGhlckNoYWluAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiCQAAAgAAAAECAAAAJHRva2VuUG9ydEluT3RoZXJDaGFpbiBpcyBub3QgZGVmaW5lZAAAAAAOY2hhaW5Db2xsZWN0b3IEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAOY2hhaW5Db2xsZWN0b3IDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWIFAAAAByRtYXRjaDAJAQAAAAdBZGRyZXNzAAAAAQUAAAABYgkAAAIAAAABAgAAAB1jaGFpbkNvbGxlY3RvciBpcyBub3QgZGVmaW5lZAEAAAALYmxvY2tJbmZvQXQAAAABAAAABmhlaWdodAQAAAAHJG1hdGNoMAkABBwAAAACBQ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AByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAkBAAAAEWFzc2V0SWRGcm9tU3RyaW5nAAAAAQUAAAABcwkAAAIAAAABAgAAAA9pbmNvcnJlY3QgYXNzZXQDCQEAAAACIT0AAAACBQAAAAZ0eFR5cGUBAAAAAQQJAAACAAAAAQIAAAAaaW5jb3JyZWN0IHRyYW5zYWN0aW9uIHR5cGUDCQEAAAACIT0AAAACBQAAAAt0eFJlY2lwaWVudAUAAAAVdG9rZW5Qb3J0SW5PdGhlckNoYWluCQAAAgAAAAECAAAAFmluY29ycmVjdCB0eCByZWNpcGllbnQEAAAACXJlY2lwaWVudAkBAAAAB0FkZHJlc3MAAAABBQAAAAx0eEF0dGFjaG1lbnQJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAd0eElkS2V5BgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACXJlY2lwaWVudAUAAAAIdHhBbW91bnQFAAAAEGFzc2V0SW5UaGlzQ2hhaW4FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V56Rs5lw==", "chainId": 84, "height": 828250, "spentComplexity": 0 } View: original | compacted Prev: D7Md1EJGmGFp71Ksv1XhjCk4mJdYzMhd5qtFmKeg3qzW Next: 5eVqTq6qAYWAqyMCNsiYBnZSzNEH13TgGHCxsBcxSHqT Diff:
OldNewDifferences
106106 func withdraw (x,y,z) = {
107107 let A = n(x)
108108 let B = o(x)
109- let C = s(x)
110- let D = k(x)
111- let E = v(x)
112- let F = (toBase58String(A) + "_tx")
113- let G = (g(D) + "_asset")
114- let H = {
115- let b = getString(this, G)
109+ let C = t(x)
110+ let D = s(x)
111+ let E = k(x)
112+ let F = v(x)
113+ let G = (toBase58String(A) + "_tx")
114+ let H = (g(E) + "_asset")
115+ let I = {
116+ let b = getString(this, H)
116117 if ($isInstanceOf(b, "String"))
117118 then {
118- let I = b
119- i(I)
119+ let J = b
120+ i(J)
120121 }
121122 else throw("incorrect asset")
122123 }
123- if ((E != base58'5'))
124+ if ((F != base58'5'))
124125 then throw("incorrect transaction type")
125126 else if ((B != a))
126127 then throw("incorrect tx recipient")
127128 else {
128- let J = w.caller
129- ScriptResult(WriteSet([DataEntry(F, true)]), TransferSet([ScriptTransfer(J, C, H)]))
129+ let K = Address(C)
130+ ScriptResult(WriteSet([DataEntry(G, true)]), TransferSet([ScriptTransfer(K, D, I)]))
130131 }
131132 }
132133
133134
134-@Verifier(K)
135-func L () = sigVerify(K.bodyBytes, K.proofs[0], K.senderPublicKey)
135+@Verifier(L)
136+func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey)
136137
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 = takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1)
5353 if ((m == base58'1'))
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 = takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1)
6464 let p = if ((m == base58'1'))
6565 then 0
6666 else 32
6767 let q = takeRightBytes(take(l, (((((1 + 1) + 32) + 1) + p) + 1)), 1)
6868 let r = if ((q == base58'1'))
6969 then 0
7070 else 32
7171 takeRightBytes(take(l, ((((((((((1 + 1) + 32) + 1) + p) + 1) + r) + 8) + 8) + 8) + 26)), 26)
7272 }
7373
7474
7575 func s (l) = {
7676 let m = takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1)
7777 let p = if ((m == base58'1'))
7878 then 0
7979 else 32
8080 let q = takeRightBytes(take(l, (((((1 + 1) + 32) + 1) + p) + 1)), 1)
8181 let r = if ((q == base58'1'))
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 = takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1)
9090 let p = if ((m == base58'1'))
9191 then 0
9292 else 32
9393 let q = takeRightBytes(take(l, (((((1 + 1) + 32) + 1) + p) + 1)), 1)
9494 let r = if ((q == base58'1'))
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) + 26) + 2) + u)), u)
9999 }
100100
101101
102102 func v (l) = take(l, 1)
103103
104104
105105 @Callable(w)
106106 func withdraw (x,y,z) = {
107107 let A = n(x)
108108 let B = o(x)
109- let C = s(x)
110- let D = k(x)
111- let E = v(x)
112- let F = (toBase58String(A) + "_tx")
113- let G = (g(D) + "_asset")
114- let H = {
115- let b = getString(this, G)
109+ let C = t(x)
110+ let D = s(x)
111+ let E = k(x)
112+ let F = v(x)
113+ let G = (toBase58String(A) + "_tx")
114+ let H = (g(E) + "_asset")
115+ let I = {
116+ let b = getString(this, H)
116117 if ($isInstanceOf(b, "String"))
117118 then {
118- let I = b
119- i(I)
119+ let J = b
120+ i(J)
120121 }
121122 else throw("incorrect asset")
122123 }
123- if ((E != base58'5'))
124+ if ((F != base58'5'))
124125 then throw("incorrect transaction type")
125126 else if ((B != a))
126127 then throw("incorrect tx recipient")
127128 else {
128- let J = w.caller
129- ScriptResult(WriteSet([DataEntry(F, true)]), TransferSet([ScriptTransfer(J, C, H)]))
129+ let K = Address(C)
130+ ScriptResult(WriteSet([DataEntry(G, true)]), TransferSet([ScriptTransfer(K, D, I)]))
130131 }
131132 }
132133
133134
134-@Verifier(K)
135-func L () = sigVerify(K.bodyBytes, K.proofs[0], K.senderPublicKey)
135+@Verifier(L)
136+func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey)
136137

github/deemru/w8io/026f985 
30.61 ms