tx · CCi42pKGYXzm1uxtQHkTGUCc9TV7Pf7etwk933xUzHBC 3N54eKW5ZucDaRaGVUfzX8xRXv6Ve8M71tM: -0.02000000 Waves 2020.05.15 12:05 [999115] smart account 3N54eKW5ZucDaRaGVUfzX8xRXv6Ve8M71tM > SELF 0.00000000 Waves
{ "type": 13, "id": "CCi42pKGYXzm1uxtQHkTGUCc9TV7Pf7etwk933xUzHBC", "fee": 2000000, "feeAssetId": null, "timestamp": 1589533570853, "version": 1, "sender": "3N54eKW5ZucDaRaGVUfzX8xRXv6Ve8M71tM", "senderPublicKey": "FmnQ1LwTnauTS2BSrZivE1nSF1A9MY9hyYB72pyh5hw9", "proofs": [ "2xquNBmzTpoSxu4oAnxyh82teN2qHQo7Y25d3Y9AeQNGvDRt3LyoXEpaGCeUpCymtfp1EuUHEW3hkhNf1nXYhBZk" ], "script": "base64:AAIDAAAAAAAAACcIARIDCgECEgMKAQISAwoBAhIDCgECEgMKAQISAwoBAhIAEgMKAQIAAAAQAQAAAApkZWNvZGVJbnQ4AAAAAgAAAARkYXRhAAAABm9mZnNldAMJAABmAAAAAgAAAAAAAAAAAQkAAMgAAAABBQAAAARkYXRhCQAAAgAAAAECAAAALWRlY29kZSB1OCBlcnJvciwgZGF0YSBtdXN0IGJlIGF0IGxlYXN0IDEgYnl0ZQMJAABmAAAAAgUAAAAGb2Zmc2V0CQAAyAAAAAEFAAAABGRhdGEJAAACAAAAAQIAAAAjZGVjb2RlIHU4IGVycm9yLCBkZWNvZGluZyBpcyBmaW5pc2gEAAAAAngwCQAAyQAAAAIJAADKAAAAAgUAAAAEZGF0YQUAAAAGb2Zmc2V0AAAAAAAAAAABBAAAAAJ4MQkABLIAAAACCQAAywAAAAIBAAAABwAAAAAAAAAFAAAAAngwAAAAAAAAAAAAAwkAAGYAAAACAAAAAAAAAACABQAAAAJ4MQkABEwAAAACBQAAAAJ4MQkABEwAAAACCQAAZAAAAAIFAAAABm9mZnNldAAAAAAAAAAAAQUAAAADbmlsCQ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JZAkABLIAAAACAQAAAAgAAAAAAAAF4AAAAAAAAAAAAAUAAAADbmlsAAAACmNvbnRleHRPYmoBAAAADnJlbGF5QW5kVmVyaWZ5AAAAAQAAAARkYXRhBAAAAAZ0dXBsZTEJAQAAAAtkZWNvZGVCeXRlcwAAAAIFAAAABGRhdGEAAAAAAAAAAAAEAAAABnR1cGxlMgkBAAAAC2RlY29kZUJ5dGVzAAAAAgUAAAAEZGF0YQkBAAAACWdldE9mZnNldAAAAAEFAAAABnR1cGxlMQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAANcmVxdWVzdFBhY2tldAkBAAAAD2dldEFzQnl0ZVZlY3RvcgAAAAEFAAAABnR1cGxlMQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAOcmVzcG9uc2VQYWNrZXQJAQAAAA9nZXRBc0J5dGVWZWN0b3IAAAABBQAAAAZ0dXBsZTIFAAAAA25pbAAAAABkk75N", "chainId": 84, "height": 999115, "spentComplexity": 0 } View: original | compacted Prev: BnYcWNnUZbenhkYULNeBBBh4LJHsN78KQew5vKjZHxo1 Next: FRghnRea52DLCWv3tNXNCfLqovW1afjWGNTwVtBYEn98 Diff:
Old | New | Differences | |
---|---|---|---|
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | + | func decodeRequestPacket (data) = { | |
135 | + | let tuple1 = decodeString(data, 0) | |
136 | + | let tuple2 = decodeInt64(data, getOffset(tuple1)) | |
137 | + | let tuple3 = decodeBytes(data, tuple2[1]) | |
138 | + | let tuple4 = decodeInt64(data, getOffset(tuple3)) | |
139 | + | let tuple5 = decodeInt64(data, tuple4[1]) | |
140 | + | [DataEntry("clientId", getAsString(tuple1)), DataEntry("oracleScriptId", tuple2[0]), DataEntry("calldata", getAsByteVector(tuple3)), DataEntry("askCount", tuple4[0]), DataEntry("minCount", tuple5[0])] | |
141 | + | } | |
142 | + | ||
143 | + | ||
144 | + | func decodeResponsePacket (data) = { | |
145 | + | let tuple1 = decodeString(data, 0) | |
146 | + | let tuple2 = decodeInt64(data, getOffset(tuple1)) | |
147 | + | let tuple3 = decodeInt64(data, tuple2[1]) | |
148 | + | let tuple4 = decodeInt64(data, tuple3[1]) | |
149 | + | let tuple5 = decodeInt64(data, tuple4[1]) | |
150 | + | let tuple6 = decodeInt8(data, tuple5[1]) | |
151 | + | let tuple7 = decodeBytes(data, tuple6[1]) | |
152 | + | [DataEntry("clientId", getAsString(tuple1)), DataEntry("requestId", tuple2[0]), DataEntry("ansCount", tuple3[0]), DataEntry("requestTime", tuple4[0]), DataEntry("resolveTime", tuple5[0]), DataEntry("resolveStatus", tuple6[0]), DataEntry("result", getAsByteVector(tuple7))] | |
153 | + | } | |
154 | + | ||
155 | + | ||
134 | 156 | @Callable(contextObj) | |
135 | 157 | func testDecodeInt16 (data) = { | |
136 | 158 | let offset = 0 | |
192 | 214 | ||
193 | 215 | ||
194 | 216 | @Callable(contextObj) | |
195 | - | func testDecodeResponsePacket (data) = { | |
196 | - | let tuple1 = decodeString(data, 0) | |
197 | - | let tuple2 = decodeInt64(data, getOffset(tuple1)) | |
198 | - | let tuple3 = decodeInt64(data, tuple2[1]) | |
199 | - | let tuple4 = decodeInt64(data, tuple3[1]) | |
200 | - | let tuple5 = decodeInt64(data, tuple4[1]) | |
201 | - | let tuple6 = decodeInt8(data, tuple5[1]) | |
202 | - | let tuple7 = decodeBytes(data, tuple6[1]) | |
203 | - | let priceBytes = getAsByteVector(tuple7) | |
204 | - | let tuple8 = decodeString(priceBytes, 0) | |
205 | - | let tuple9 = decodeInt64(priceBytes, getOffset(tuple8)) | |
206 | - | WriteSet([DataEntry("responsePacket/clientId", getAsString(tuple1)), DataEntry("responsePacket/requestId", tuple2[0]), DataEntry("responsePacket/ansCount", tuple3[0]), DataEntry("responsePacket/requestTime", tuple4[0]), DataEntry("responsePacket/resolveTime", tuple5[0]), DataEntry("responsePacket/resolveStatus", tuple6[0]), DataEntry("responsePacket/result/symbol", getAsString(tuple8)), DataEntry("responsePacket/result/multiplier", tuple9[0])]) | |
217 | + | func relayAndVerify (data) = { | |
218 | + | let tuple1 = decodeBytes(data, 0) | |
219 | + | let tuple2 = decodeBytes(data, getOffset(tuple1)) | |
220 | + | WriteSet([DataEntry("requestPacket", getAsByteVector(tuple1)), DataEntry("responsePacket", getAsByteVector(tuple2))]) | |
207 | 221 | } | |
208 | 222 | ||
209 | 223 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func decodeInt8 (data,offset) = if ((1 > size(data))) | |
5 | 5 | then throw("decode u8 error, data must be at least 1 byte") | |
6 | 6 | else if ((offset > size(data))) | |
7 | 7 | then throw("decode u8 error, decoding is finish") | |
8 | 8 | else { | |
9 | 9 | let x0 = take(drop(data, offset), 1) | |
10 | 10 | let x1 = toInt((base58'1111111' + x0), 0) | |
11 | 11 | if ((128 > x1)) | |
12 | 12 | then [x1, (offset + 1)] | |
13 | 13 | else [toInt((base58'Ahg1opVcGW' + x0), 0), (offset + 1)] | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func decodeInt16 (data,offset) = if ((2 > size(data))) | |
18 | 18 | then throw("decode u16 error, data must be at least 2 bytes") | |
19 | 19 | else if ((offset > size(data))) | |
20 | 20 | then throw("decode u16 error, decoding is finish") | |
21 | 21 | else { | |
22 | 22 | let x0 = drop(data, offset) | |
23 | 23 | let x1 = take(x0, 1) | |
24 | 24 | let x2 = take(drop(x0, 1), 1) | |
25 | 25 | if ((decodeInt8(x2, 0)[0] >= 0)) | |
26 | 26 | then [toInt(((base58'111111' + x2) + x1), 0), (offset + 2)] | |
27 | 27 | else [toInt(((base58'3CUsUpv9t' + x2) + x1), 0), (offset + 2)] | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func decodeInt32 (data,offset) = if ((4 > size(data))) | |
32 | 32 | then throw("decode u32 error, data must be at least 4 bytes") | |
33 | 33 | else if ((offset > size(data))) | |
34 | 34 | then throw("decode u32 error, decoding is finish") | |
35 | 35 | else { | |
36 | 36 | let x0 = drop(data, offset) | |
37 | 37 | let x1 = take(x0, 1) | |
38 | 38 | let x2 = take(drop(x0, 1), 1) | |
39 | 39 | let x3 = take(drop(x0, 2), 1) | |
40 | 40 | let x4 = take(drop(x0, 3), 1) | |
41 | 41 | if ((decodeInt8(x4, 0)[0] >= 0)) | |
42 | 42 | then [toInt(((((base58'1111' + x4) + x3) + x2) + x1), 0), (offset + 4)] | |
43 | 43 | else [toInt(((((base58'7YXq9G' + x4) + x3) + x2) + x1), 0), (offset + 4)] | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func decodeInt64 (data,offset) = if ((8 > size(data))) | |
48 | 48 | then throw("decode u32 error, data must be at least 8 bytes") | |
49 | 49 | else if ((offset > size(data))) | |
50 | 50 | then throw("decode u32 error, decoding is finish") | |
51 | 51 | else { | |
52 | 52 | let x0 = drop(data, offset) | |
53 | 53 | let x1 = take(x0, 1) | |
54 | 54 | let x2 = take(drop(x0, 1), 1) | |
55 | 55 | let x3 = take(drop(x0, 2), 1) | |
56 | 56 | let x4 = take(drop(x0, 3), 1) | |
57 | 57 | let x5 = take(drop(x0, 4), 1) | |
58 | 58 | let x6 = take(drop(x0, 5), 1) | |
59 | 59 | let x7 = take(drop(x0, 6), 1) | |
60 | 60 | let x8 = take(drop(x0, 7), 1) | |
61 | 61 | [toInt((((((((x8 + x7) + x6) + x5) + x4) + x3) + x2) + x1), 0), (offset + 8)] | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func decodeBool (data,offset) = { | |
66 | 66 | let decoded1 = decodeInt8(data, offset) | |
67 | 67 | [DataEntry("bool", (decoded1[0] != 0)), DataEntry("int", decoded1[1])] | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func decodeBytes32 (data,offset) = if ((32 > size(data))) | |
72 | 72 | then throw("decode bytes32 error, data must be at least 32 bytes") | |
73 | 73 | else [DataEntry("byte_vector", take(drop(data, offset), 32)), DataEntry("int", (offset + 32))] | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func decodeBytes64 (data,offset) = if ((64 > size(data))) | |
77 | 77 | then throw("decode bytes64 error, data must be at least 64 bytes") | |
78 | 78 | else [DataEntry("byte_vector", take(drop(data, offset), 64)), DataEntry("int", (offset + 64))] | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func decodeBytes65 (data,offset) = if ((65 > size(data))) | |
82 | 82 | then throw("decode bytes65 error, data must be at least 65 bytes") | |
83 | 83 | else [DataEntry("byte_vector", take(drop(data, offset), 65)), DataEntry("int", (offset + 65))] | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func decodeBytes (data,offset) = { | |
87 | 87 | let decoded1 = decodeInt32(data, offset) | |
88 | 88 | let bytesSize = decoded1[0] | |
89 | 89 | let nextOffset = decoded1[1] | |
90 | 90 | [DataEntry("byte_vector", take(drop(data, nextOffset), bytesSize)), DataEntry("int", (nextOffset + bytesSize))] | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func decodeString (data,offset) = { | |
95 | 95 | let decoded1 = decodeInt32(data, offset) | |
96 | 96 | let bytesSize = decoded1[0] | |
97 | 97 | let nextOffset = decoded1[1] | |
98 | 98 | [DataEntry("string", toUtf8String(take(drop(data, nextOffset), bytesSize))), DataEntry("int", (nextOffset + bytesSize))] | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func getAsBool (tuple) = match tuple[0].value { | |
103 | 103 | case b: Boolean => | |
104 | 104 | b | |
105 | 105 | case _ => | |
106 | 106 | throw("not a Boolean") | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func getAsByteVector (tuple) = match tuple[0].value { | |
111 | 111 | case bv: ByteVector => | |
112 | 112 | bv | |
113 | 113 | case _ => | |
114 | 114 | throw("not a ByteVector") | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func getAsString (tuple) = match tuple[0].value { | |
119 | 119 | case s: String => | |
120 | 120 | s | |
121 | 121 | case _ => | |
122 | 122 | throw("not a String") | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getOffset (tuple) = match tuple[1].value { | |
127 | 127 | case i: Int => | |
128 | 128 | i | |
129 | 129 | case _ => | |
130 | 130 | throw("not a Int") | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | + | func decodeRequestPacket (data) = { | |
135 | + | let tuple1 = decodeString(data, 0) | |
136 | + | let tuple2 = decodeInt64(data, getOffset(tuple1)) | |
137 | + | let tuple3 = decodeBytes(data, tuple2[1]) | |
138 | + | let tuple4 = decodeInt64(data, getOffset(tuple3)) | |
139 | + | let tuple5 = decodeInt64(data, tuple4[1]) | |
140 | + | [DataEntry("clientId", getAsString(tuple1)), DataEntry("oracleScriptId", tuple2[0]), DataEntry("calldata", getAsByteVector(tuple3)), DataEntry("askCount", tuple4[0]), DataEntry("minCount", tuple5[0])] | |
141 | + | } | |
142 | + | ||
143 | + | ||
144 | + | func decodeResponsePacket (data) = { | |
145 | + | let tuple1 = decodeString(data, 0) | |
146 | + | let tuple2 = decodeInt64(data, getOffset(tuple1)) | |
147 | + | let tuple3 = decodeInt64(data, tuple2[1]) | |
148 | + | let tuple4 = decodeInt64(data, tuple3[1]) | |
149 | + | let tuple5 = decodeInt64(data, tuple4[1]) | |
150 | + | let tuple6 = decodeInt8(data, tuple5[1]) | |
151 | + | let tuple7 = decodeBytes(data, tuple6[1]) | |
152 | + | [DataEntry("clientId", getAsString(tuple1)), DataEntry("requestId", tuple2[0]), DataEntry("ansCount", tuple3[0]), DataEntry("requestTime", tuple4[0]), DataEntry("resolveTime", tuple5[0]), DataEntry("resolveStatus", tuple6[0]), DataEntry("result", getAsByteVector(tuple7))] | |
153 | + | } | |
154 | + | ||
155 | + | ||
134 | 156 | @Callable(contextObj) | |
135 | 157 | func testDecodeInt16 (data) = { | |
136 | 158 | let offset = 0 | |
137 | 159 | let x1 = decodeInt16(data, offset) | |
138 | 160 | WriteSet([DataEntry("i16", x1[0])]) | |
139 | 161 | } | |
140 | 162 | ||
141 | 163 | ||
142 | 164 | ||
143 | 165 | @Callable(contextObj) | |
144 | 166 | func testDecodeInt64 (data) = { | |
145 | 167 | let offset = 0 | |
146 | 168 | let decoded = decodeInt64(data, offset) | |
147 | 169 | WriteSet([DataEntry("i64", decoded[0])]) | |
148 | 170 | } | |
149 | 171 | ||
150 | 172 | ||
151 | 173 | ||
152 | 174 | @Callable(contextObj) | |
153 | 175 | func testDecodeString (data) = { | |
154 | 176 | let offset = 0 | |
155 | 177 | let decoded = decodeString(data, offset) | |
156 | 178 | WriteSet([DataEntry("string", getAsString(decoded))]) | |
157 | 179 | } | |
158 | 180 | ||
159 | 181 | ||
160 | 182 | ||
161 | 183 | @Callable(contextObj) | |
162 | 184 | func testDecodeBytes (data) = { | |
163 | 185 | let offset = 0 | |
164 | 186 | let decoded = decodeBytes(data, offset) | |
165 | 187 | WriteSet([DataEntry("bytes", getAsByteVector(decoded))]) | |
166 | 188 | } | |
167 | 189 | ||
168 | 190 | ||
169 | 191 | ||
170 | 192 | @Callable(contextObj) | |
171 | 193 | func testDecodeBytes32 (data) = { | |
172 | 194 | let offset = 0 | |
173 | 195 | let decoded = decodeBytes32(data, offset) | |
174 | 196 | WriteSet([DataEntry("bytes", getAsByteVector(decoded))]) | |
175 | 197 | } | |
176 | 198 | ||
177 | 199 | ||
178 | 200 | ||
179 | 201 | @Callable(contextObj) | |
180 | 202 | func testDecodeCryptoPrice (data) = { | |
181 | 203 | let offset = 0 | |
182 | 204 | let tuple1 = decodeString(data, offset) | |
183 | 205 | let tuple2 = decodeInt64(data, getOffset(tuple1)) | |
184 | 206 | WriteSet([DataEntry("symbol", getAsString(tuple1)), DataEntry("multiplier", tuple2[0])]) | |
185 | 207 | } | |
186 | 208 | ||
187 | 209 | ||
188 | 210 | ||
189 | 211 | @Callable(contextObj) | |
190 | 212 | func testInt () = WriteSet([DataEntry("responsePacket/clientId", toInt(base58'111111Sw', 0))]) | |
191 | 213 | ||
192 | 214 | ||
193 | 215 | ||
194 | 216 | @Callable(contextObj) | |
195 | - | func testDecodeResponsePacket (data) = { | |
196 | - | let tuple1 = decodeString(data, 0) | |
197 | - | let tuple2 = decodeInt64(data, getOffset(tuple1)) | |
198 | - | let tuple3 = decodeInt64(data, tuple2[1]) | |
199 | - | let tuple4 = decodeInt64(data, tuple3[1]) | |
200 | - | let tuple5 = decodeInt64(data, tuple4[1]) | |
201 | - | let tuple6 = decodeInt8(data, tuple5[1]) | |
202 | - | let tuple7 = decodeBytes(data, tuple6[1]) | |
203 | - | let priceBytes = getAsByteVector(tuple7) | |
204 | - | let tuple8 = decodeString(priceBytes, 0) | |
205 | - | let tuple9 = decodeInt64(priceBytes, getOffset(tuple8)) | |
206 | - | WriteSet([DataEntry("responsePacket/clientId", getAsString(tuple1)), DataEntry("responsePacket/requestId", tuple2[0]), DataEntry("responsePacket/ansCount", tuple3[0]), DataEntry("responsePacket/requestTime", tuple4[0]), DataEntry("responsePacket/resolveTime", tuple5[0]), DataEntry("responsePacket/resolveStatus", tuple6[0]), DataEntry("responsePacket/result/symbol", getAsString(tuple8)), DataEntry("responsePacket/result/multiplier", tuple9[0])]) | |
217 | + | func relayAndVerify (data) = { | |
218 | + | let tuple1 = decodeBytes(data, 0) | |
219 | + | let tuple2 = decodeBytes(data, getOffset(tuple1)) | |
220 | + | WriteSet([DataEntry("requestPacket", getAsByteVector(tuple1)), DataEntry("responsePacket", getAsByteVector(tuple2))]) | |
207 | 221 | } | |
208 | 222 | ||
209 | 223 |
github/deemru/w8io/026f985 54.24 ms ◑