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:AAIDAAAAAAAAAAkIARIFCgMCAQIAAAALAAAAABV0b2tlblBvcnRJbk90aGVyQ2hhaW4EAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAVdG9rZW5Qb3J0SW5PdGhlckNoYWluAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiCQAAAgAAAAECAAAAJHRva2VuUG9ydEluT3RoZXJDaGFpbiBpcyBub3QgZGVmaW5lZAAAAAAOY2hhaW5Db2xsZWN0b3IEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAOY2hhaW5Db2xsZWN0b3IDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWIFAAAAByRtYXRjaDAJAQAAAAdBZGRyZXNzAAAAAQUAAAABYgkAAAIAAAABAgAAAB1jaGFpbkNvbGxlY3RvciBpcyBub3QgZGVmaW5lZAEAAAALYmxvY2tJbmZvQXQAAAABAAAABmhlaWdodAQAAAAHJG1hdGNoMAkABBwAAAACBQA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ByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAkBAAAAEWFzc2V0SWRGcm9tU3RyaW5nAAAAAQUAAAABcwkAAAIAAAABAgAAAA9pbmNvcnJlY3QgYXNzZXQDCQEAAAACIT0AAAACBQAAAAZ0eFR5cGUBAAAAAQQJAAACAAAAAQIAAAAaaW5jb3JyZWN0IHRyYW5zYWN0aW9uIHR5cGUDCQEAAAACIT0AAAACBQAAAAt0eFJlY2lwaWVudAUAAAAVdG9rZW5Qb3J0SW5PdGhlckNoYWluCQAAAgAAAAECAAAAFmluY29ycmVjdCB0eCByZWNpcGllbnQEAAAACXJlY2lwaWVudAkBAAAAB0FkZHJlc3MAAAABBQAAAAx0eEF0dGFjaG1lbnQJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAd0eElkS2V5BgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACXJlY2lwaWVudAUAAAAIdHhBbW91bnQFAAAAEGFzc2V0SW5UaGlzQ2hhaW4FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V56Rs5lw==", "chainId": 84, "height": 828250, "spentComplexity": 0 } View: original | compacted Prev: D7Md1EJGmGFp71Ksv1XhjCk4mJdYzMhd5qtFmKeg3qzW Next: 5eVqTq6qAYWAqyMCNsiYBnZSzNEH13TgGHCxsBcxSHqT Diff:
Old | New | Differences | |
---|---|---|---|
106 | 106 | func withdraw (x,y,z) = { | |
107 | 107 | let A = n(x) | |
108 | 108 | 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) | |
116 | 117 | if ($isInstanceOf(b, "String")) | |
117 | 118 | then { | |
118 | - | let | |
119 | - | i( | |
119 | + | let J = b | |
120 | + | i(J) | |
120 | 121 | } | |
121 | 122 | else throw("incorrect asset") | |
122 | 123 | } | |
123 | - | if (( | |
124 | + | if ((F != base58'5')) | |
124 | 125 | then throw("incorrect transaction type") | |
125 | 126 | else if ((B != a)) | |
126 | 127 | then throw("incorrect tx recipient") | |
127 | 128 | else { | |
128 | - | let | |
129 | - | ScriptResult(WriteSet([DataEntry( | |
129 | + | let K = Address(C) | |
130 | + | ScriptResult(WriteSet([DataEntry(G, true)]), TransferSet([ScriptTransfer(K, D, I)])) | |
130 | 131 | } | |
131 | 132 | } | |
132 | 133 | ||
133 | 134 | ||
134 | - | @Verifier( | |
135 | - | func | |
135 | + | @Verifier(L) | |
136 | + | func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey) | |
136 | 137 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = { | |
5 | 5 | let b = getBinary(this, "tokenPortInOtherChain") | |
6 | 6 | if ($isInstanceOf(b, "ByteVector")) | |
7 | 7 | then { | |
8 | 8 | let c = b | |
9 | 9 | c | |
10 | 10 | } | |
11 | 11 | else throw("tokenPortInOtherChain is not defined") | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | let d = { | |
15 | 15 | let b = getBinary(this, "chainCollector") | |
16 | 16 | if ($isInstanceOf(b, "ByteVector")) | |
17 | 17 | then { | |
18 | 18 | let c = b | |
19 | 19 | Address(c) | |
20 | 20 | } | |
21 | 21 | else throw("chainCollector is not defined") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | func e (f) = { | |
25 | 25 | let b = getBinary(d, toString(f)) | |
26 | 26 | if ($isInstanceOf(b, "ByteVector")) | |
27 | 27 | then { | |
28 | 28 | let c = b | |
29 | 29 | c | |
30 | 30 | } | |
31 | 31 | else throw("Block info not found") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func g (h) = { | |
36 | 36 | let b = h | |
37 | 37 | if ($isInstanceOf(b, "ByteVector")) | |
38 | 38 | then { | |
39 | 39 | let h = b | |
40 | 40 | toBase58String(h) | |
41 | 41 | } | |
42 | 42 | else "WAVES" | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func i (j) = if ((j == "WAVES")) | |
47 | 47 | then unit | |
48 | 48 | else fromBase58String(j) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func k (l) = { | |
52 | 52 | let m = takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1) | |
53 | 53 | if ((m == base58'1')) | |
54 | 54 | then unit | |
55 | 55 | else takeRightBytes(take(l, ((((1 + 1) + 32) + 1) + 32)), 32) | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func n (l) = blake2b256(l) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func o (l) = { | |
63 | 63 | let m = takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1) | |
64 | 64 | let p = if ((m == base58'1')) | |
65 | 65 | then 0 | |
66 | 66 | else 32 | |
67 | 67 | let q = takeRightBytes(take(l, (((((1 + 1) + 32) + 1) + p) + 1)), 1) | |
68 | 68 | let r = if ((q == base58'1')) | |
69 | 69 | then 0 | |
70 | 70 | else 32 | |
71 | 71 | takeRightBytes(take(l, ((((((((((1 + 1) + 32) + 1) + p) + 1) + r) + 8) + 8) + 8) + 26)), 26) | |
72 | 72 | } | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func s (l) = { | |
76 | 76 | let m = takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1) | |
77 | 77 | let p = if ((m == base58'1')) | |
78 | 78 | then 0 | |
79 | 79 | else 32 | |
80 | 80 | let q = takeRightBytes(take(l, (((((1 + 1) + 32) + 1) + p) + 1)), 1) | |
81 | 81 | let r = if ((q == base58'1')) | |
82 | 82 | then 0 | |
83 | 83 | else 32 | |
84 | 84 | toInt(takeRightBytes(take(l, ((((((((1 + 1) + 32) + 1) + p) + 1) + r) + 8) + 8)), 8)) | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func t (l) = { | |
89 | 89 | let m = takeRightBytes(take(l, (((1 + 1) + 32) + 1)), 1) | |
90 | 90 | let p = if ((m == base58'1')) | |
91 | 91 | then 0 | |
92 | 92 | else 32 | |
93 | 93 | let q = takeRightBytes(take(l, (((((1 + 1) + 32) + 1) + p) + 1)), 1) | |
94 | 94 | let r = if ((q == base58'1')) | |
95 | 95 | then 0 | |
96 | 96 | else 32 | |
97 | 97 | let u = toInt(takeRightBytes(take(l, (((((((((((1 + 1) + 32) + 1) + p) + 1) + r) + 8) + 8) + 8) + 32) + 2)), 2)) | |
98 | 98 | takeRightBytes(take(l, ((((((((((((1 + 1) + 32) + 1) + p) + 1) + r) + 8) + 8) + 8) + 26) + 2) + u)), u) | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func v (l) = take(l, 1) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | @Callable(w) | |
106 | 106 | func withdraw (x,y,z) = { | |
107 | 107 | let A = n(x) | |
108 | 108 | 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) | |
116 | 117 | if ($isInstanceOf(b, "String")) | |
117 | 118 | then { | |
118 | - | let | |
119 | - | i( | |
119 | + | let J = b | |
120 | + | i(J) | |
120 | 121 | } | |
121 | 122 | else throw("incorrect asset") | |
122 | 123 | } | |
123 | - | if (( | |
124 | + | if ((F != base58'5')) | |
124 | 125 | then throw("incorrect transaction type") | |
125 | 126 | else if ((B != a)) | |
126 | 127 | then throw("incorrect tx recipient") | |
127 | 128 | else { | |
128 | - | let | |
129 | - | ScriptResult(WriteSet([DataEntry( | |
129 | + | let K = Address(C) | |
130 | + | ScriptResult(WriteSet([DataEntry(G, true)]), TransferSet([ScriptTransfer(K, D, I)])) | |
130 | 131 | } | |
131 | 132 | } | |
132 | 133 | ||
133 | 134 | ||
134 | - | @Verifier( | |
135 | - | func | |
135 | + | @Verifier(L) | |
136 | + | func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey) | |
136 | 137 |
github/deemru/w8io/026f985 30.61 ms ◑