tx · 73r6sjHy8n5mwXCSxbcwpXyjVDZXiu6kKaq6e3twCcFZ 3N54eKW5ZucDaRaGVUfzX8xRXv6Ve8M71tM: -0.02000000 Waves 2020.05.15 14:42 [999276] smart account 3N54eKW5ZucDaRaGVUfzX8xRXv6Ve8M71tM > SELF 0.00000000 Waves
{ "type": 13, "id": "73r6sjHy8n5mwXCSxbcwpXyjVDZXiu6kKaq6e3twCcFZ", "fee": 2000000, "feeAssetId": null, "timestamp": 1589542950731, "version": 1, "sender": "3N54eKW5ZucDaRaGVUfzX8xRXv6Ve8M71tM", "senderPublicKey": "FmnQ1LwTnauTS2BSrZivE1nSF1A9MY9hyYB72pyh5hw9", "proofs": [ "3rTEjCNyHmZQAWbu4tj9KJSoFPbor4Da54VCJjFHQctpmzcwZ9qaer767YmFRzV3GJNScyMGefrYyqtzLimZyXkG" ], "script": "base64:AAIDAAAAAAAAACUIARIDCgECEgMKAQISAwoBAhIDCgECEgMKAQISAwoBAhIDCgECAAAAEAEAAAAKZGVjb2RlSW50OAAAAAIAAAAEZGF0YQAAAAZvZmZzZXQDCQAAZgAAAAIAAAAAAAAAAAEJAADIAAAAAQUAAAAEZGF0YQkAAAIAAAABAgAAAC1kZWNvZGUgdTggZXJyb3IsIGRhdGEgbXVzdCBiZSBhdCBsZWFzdCAxIGJ5dGUDCQAAZgAAAAIFAAAABm9mZnNldAkAAMgAAAABBQAAAARkYXRhCQAAAgAAAAECAAAAI2RlY29kZSB1OCBlcnJvciwgZGVjb2RpbmcgaXMgZmluaXNoBAAAAAJ4MAkAAMkAAAACCQAAygAAAAIFAAAABGRhdGEFAAAABm9mZnNldAAAAAAAAAAAAQQAAAACeDEJAASyAAAAAgkAAMsAAAACAQAAAAcAAAAAAAAABQAAAAJ4MAAAAAAAAAAAAAMJAABmAAAAAgAAAAAAAAAAgAUAAAACeDEJAARMAAAAAgUAAAACeDEJAARMAAAAAgkAAGQAAAACBQAAAAZvZmZzZXQAAAAAAAAAAAEFAAAAA25pbAkABE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IAAAAPL29yYWNsZVNjcmlwdElkCQABkQAAAAIFAAAABHJlcTIAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAJcmVxdWVzdElEAgAAAAkvY2FsbGRhdGEJAQAAAA9nZXRBc0J5dGVWZWN0b3IAAAABBQAAAARyZXEzBQAAAANuaWwAAAAAicH/5g==", "chainId": 84, "height": 999276, "spentComplexity": 0 } View: original | compacted Prev: FRghnRea52DLCWv3tNXNCfLqovW1afjWGNTwVtBYEn98 Next: 2BKUfirruTydzTra7GFVMdg6sMuMnckzbVy1tteYCTsN Diff:
Old | New | Differences | |
---|---|---|---|
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | - | func anyToString (x) = match x { | |
157 | - | case b: Boolean => | |
158 | - | toString(b) | |
159 | - | case i: Int => | |
160 | - | toString(i) | |
161 | - | case s: String => | |
162 | - | s | |
163 | - | case bv: ByteVector => | |
164 | - | toUtf8String(bv) | |
165 | - | case _ => | |
166 | - | throw() | |
167 | - | } | |
168 | - | ||
169 | - | ||
170 | 156 | @Callable(contextObj) | |
171 | 157 | func testDecodeInt16 (data) = { | |
172 | 158 | let offset = 0 | |
241 | 227 | let res6 = decodeInt8(resBytes, res5[1]) | |
242 | 228 | let res7 = decodeBytes(resBytes, res6[1]) | |
243 | 229 | let requestID = toString(res2[0]) | |
244 | - | WriteSet([DataEntry((requestID + "/clientId"), getAsString(req1)), DataEntry((requestID + "/oracleScriptId"), req2[0]), DataEntry((requestID + "/calldata"), getAsByteVector(req3)) | |
230 | + | WriteSet([DataEntry((requestID + "/clientId"), getAsString(req1)), DataEntry((requestID + "/oracleScriptId"), req2[0]), DataEntry((requestID + "/calldata"), getAsByteVector(req3))]) | |
245 | 231 | } | |
246 | 232 | ||
247 | 233 |
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 | 134 | func decodeRequestPacket (data) = { | |
135 | 135 | let tuple1 = decodeString(data, 0) | |
136 | 136 | let tuple2 = decodeInt64(data, getOffset(tuple1)) | |
137 | 137 | let tuple3 = decodeBytes(data, tuple2[1]) | |
138 | 138 | let tuple4 = decodeInt64(data, getOffset(tuple3)) | |
139 | 139 | let tuple5 = decodeInt64(data, tuple4[1]) | |
140 | 140 | [getAsString(tuple1), tuple2[0], getAsByteVector(tuple3), tuple4[0], tuple5[0]] | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func decodeResponsePacket (data) = { | |
145 | 145 | let tuple1 = decodeString(data, 0) | |
146 | 146 | let tuple2 = decodeInt64(data, getOffset(tuple1)) | |
147 | 147 | let tuple3 = decodeInt64(data, tuple2[1]) | |
148 | 148 | let tuple4 = decodeInt64(data, tuple3[1]) | |
149 | 149 | let tuple5 = decodeInt64(data, tuple4[1]) | |
150 | 150 | let tuple6 = decodeInt8(data, tuple5[1]) | |
151 | 151 | let tuple7 = decodeBytes(data, tuple6[1]) | |
152 | 152 | [getAsString(tuple1), tuple2[0], tuple3[0], tuple4[0], tuple5[0], tuple6[0], getAsByteVector(tuple7)] | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | - | func anyToString (x) = match x { | |
157 | - | case b: Boolean => | |
158 | - | toString(b) | |
159 | - | case i: Int => | |
160 | - | toString(i) | |
161 | - | case s: String => | |
162 | - | s | |
163 | - | case bv: ByteVector => | |
164 | - | toUtf8String(bv) | |
165 | - | case _ => | |
166 | - | throw() | |
167 | - | } | |
168 | - | ||
169 | - | ||
170 | 156 | @Callable(contextObj) | |
171 | 157 | func testDecodeInt16 (data) = { | |
172 | 158 | let offset = 0 | |
173 | 159 | let x1 = decodeInt16(data, offset) | |
174 | 160 | WriteSet([DataEntry("i16", x1[0])]) | |
175 | 161 | } | |
176 | 162 | ||
177 | 163 | ||
178 | 164 | ||
179 | 165 | @Callable(contextObj) | |
180 | 166 | func testDecodeInt64 (data) = { | |
181 | 167 | let offset = 0 | |
182 | 168 | let decoded = decodeInt64(data, offset) | |
183 | 169 | WriteSet([DataEntry("i64", decoded[0])]) | |
184 | 170 | } | |
185 | 171 | ||
186 | 172 | ||
187 | 173 | ||
188 | 174 | @Callable(contextObj) | |
189 | 175 | func testDecodeString (data) = { | |
190 | 176 | let offset = 0 | |
191 | 177 | let decoded = decodeString(data, offset) | |
192 | 178 | WriteSet([DataEntry("string", getAsString(decoded))]) | |
193 | 179 | } | |
194 | 180 | ||
195 | 181 | ||
196 | 182 | ||
197 | 183 | @Callable(contextObj) | |
198 | 184 | func testDecodeBytes (data) = { | |
199 | 185 | let offset = 0 | |
200 | 186 | let decoded = decodeBytes(data, offset) | |
201 | 187 | WriteSet([DataEntry("bytes", getAsByteVector(decoded))]) | |
202 | 188 | } | |
203 | 189 | ||
204 | 190 | ||
205 | 191 | ||
206 | 192 | @Callable(contextObj) | |
207 | 193 | func testDecodeBytes32 (data) = { | |
208 | 194 | let offset = 0 | |
209 | 195 | let decoded = decodeBytes32(data, offset) | |
210 | 196 | WriteSet([DataEntry("bytes", getAsByteVector(decoded))]) | |
211 | 197 | } | |
212 | 198 | ||
213 | 199 | ||
214 | 200 | ||
215 | 201 | @Callable(contextObj) | |
216 | 202 | func testDecodeCryptoPrice (data) = { | |
217 | 203 | let offset = 0 | |
218 | 204 | let tuple1 = decodeString(data, offset) | |
219 | 205 | let tuple2 = decodeInt64(data, getOffset(tuple1)) | |
220 | 206 | WriteSet([DataEntry("symbol", getAsString(tuple1)), DataEntry("multiplier", tuple2[0])]) | |
221 | 207 | } | |
222 | 208 | ||
223 | 209 | ||
224 | 210 | ||
225 | 211 | @Callable(contextObj) | |
226 | 212 | func relayAndVerify (data) = { | |
227 | 213 | let tuple1 = decodeBytes(data, 0) | |
228 | 214 | let tuple2 = decodeBytes(data, getOffset(tuple1)) | |
229 | 215 | let reqBytes = getAsByteVector(tuple1) | |
230 | 216 | let resBytes = getAsByteVector(tuple2) | |
231 | 217 | let req1 = decodeString(reqBytes, 0) | |
232 | 218 | let req2 = decodeInt64(reqBytes, getOffset(req1)) | |
233 | 219 | let req3 = decodeBytes(reqBytes, req2[1]) | |
234 | 220 | let req4 = decodeInt64(reqBytes, getOffset(req3)) | |
235 | 221 | let req5 = decodeInt64(reqBytes, req4[1]) | |
236 | 222 | let res1 = decodeString(resBytes, 0) | |
237 | 223 | let res2 = decodeInt64(resBytes, getOffset(res1)) | |
238 | 224 | let res3 = decodeInt64(resBytes, res2[1]) | |
239 | 225 | let res4 = decodeInt64(resBytes, res3[1]) | |
240 | 226 | let res5 = decodeInt64(resBytes, res4[1]) | |
241 | 227 | let res6 = decodeInt8(resBytes, res5[1]) | |
242 | 228 | let res7 = decodeBytes(resBytes, res6[1]) | |
243 | 229 | let requestID = toString(res2[0]) | |
244 | - | WriteSet([DataEntry((requestID + "/clientId"), getAsString(req1)), DataEntry((requestID + "/oracleScriptId"), req2[0]), DataEntry((requestID + "/calldata"), getAsByteVector(req3)) | |
230 | + | WriteSet([DataEntry((requestID + "/clientId"), getAsString(req1)), DataEntry((requestID + "/oracleScriptId"), req2[0]), DataEntry((requestID + "/calldata"), getAsByteVector(req3))]) | |
245 | 231 | } | |
246 | 232 | ||
247 | 233 |
github/deemru/w8io/026f985 60.12 ms ◑