Commit 6d0e156
feat(State Channels): Ping every 10 seconds to persist connection (#324)
* Improve channel rpc usage
* Fix lint error
* Remove unreachable code
* Make sure that sign function is correctly called
* Improve error handling for update method
* Add missing channel tx serializations
* Add channel close solo and settle tx serialization
* Add channel slash tx serialization
* Add proof of inclusion tx serialization
* Add basic merkle patricia tree implementation
* Add merkle patricia tree serialization and verify function
* fix(schema.js): Fix linter error
* Improve channel tests and error handling (#276)
* Make sure that sign function is correctly called
* Improve error handling for update method
* Improve state channel params handling. Fixes #299 (#300)
* Compiler improvements (#303)
* refactor(Chain and Contract): Fix Chain.getAccount. Omprove Compiler
Add ability to get account/balance on specific block hash/height. Add test. Add changeCompilerUrl to
Compiler stamp
#302
* fix(Crypto): Fix name hash function arguments parsing
* refactor(Compiler): Remove async for changeCompilerUrl function
* Channel contracts (#279)
* Add support for contracts in state channels
* Remove console.log
* Remove console.log
* Improve channel rpc usage (#275)
* Improve channel rpc usage
* Fix lint error
* Remove unreachable code
* Improve channel tests and error handling (#276)
* Make sure that sign function is correctly called
* Improve error handling for update method
* Improve state channel params handling. Fixes #299 (#300)
* Fix channel tests
* feat(State Channels): Ping every 10 seconds to persist connection
Connection can be manually closed with new "disconnect()" method
* Register pong timeout after ping has been sent
* Add contract call tx serialization
* Add channel tx serialization
* Add missing tree tx serializations
* Add channel snapshot solo tx serialization
* feat(State Channels): Ping every 10 seconds to persist connection
Connection can be manually closed with new "disconnect()" method
* Register pong timeout after ping has been sent
* Handle unexpected messages
* Fix lint error1 parent 2ddeea8 commit 6d0e156
File tree
4 files changed
+94
-17
lines changed- es/channel
- test/integration
4 files changed
+94
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
29 | 40 | | |
30 | 41 | | |
31 | 42 | | |
| |||
159 | 170 | | |
160 | 171 | | |
161 | 172 | | |
| 173 | + | |
162 | 174 | | |
163 | 175 | | |
164 | 176 | | |
| |||
175 | 187 | | |
176 | 188 | | |
177 | 189 | | |
| 190 | + | |
178 | 191 | | |
179 | 192 | | |
180 | 193 | | |
| |||
198 | 211 | | |
199 | 212 | | |
200 | 213 | | |
| 214 | + | |
201 | 215 | | |
202 | 216 | | |
203 | 217 | | |
| |||
207 | 221 | | |
208 | 222 | | |
209 | 223 | | |
| 224 | + | |
210 | 225 | | |
211 | 226 | | |
212 | 227 | | |
| |||
215 | 230 | | |
216 | 231 | | |
217 | 232 | | |
| 233 | + | |
218 | 234 | | |
219 | 235 | | |
220 | 236 | | |
221 | 237 | | |
222 | | - | |
| 238 | + | |
223 | 239 | | |
224 | 240 | | |
| 241 | + | |
225 | 242 | | |
226 | 243 | | |
227 | 244 | | |
228 | 245 | | |
229 | 246 | | |
| 247 | + | |
230 | 248 | | |
231 | 249 | | |
232 | 250 | | |
233 | 251 | | |
234 | 252 | | |
235 | 253 | | |
| 254 | + | |
236 | 255 | | |
237 | 256 | | |
238 | 257 | | |
| |||
241 | 260 | | |
242 | 261 | | |
243 | 262 | | |
| 263 | + | |
244 | 264 | | |
245 | 265 | | |
246 | 266 | | |
| |||
271 | 291 | | |
272 | 292 | | |
273 | 293 | | |
| 294 | + | |
274 | 295 | | |
275 | 296 | | |
276 | 297 | | |
| |||
279 | 300 | | |
280 | 301 | | |
281 | 302 | | |
| 303 | + | |
282 | 304 | | |
283 | 305 | | |
284 | 306 | | |
| |||
309 | 331 | | |
310 | 332 | | |
311 | 333 | | |
| 334 | + | |
312 | 335 | | |
313 | 336 | | |
314 | 337 | | |
| |||
317 | 340 | | |
318 | 341 | | |
319 | 342 | | |
| 343 | + | |
320 | 344 | | |
321 | 345 | | |
322 | 346 | | |
| |||
339 | 363 | | |
340 | 364 | | |
341 | 365 | | |
| 366 | + | |
342 | 367 | | |
343 | 368 | | |
344 | 369 | | |
| |||
347 | 372 | | |
348 | 373 | | |
349 | 374 | | |
| 375 | + | |
350 | 376 | | |
351 | 377 | | |
352 | 378 | | |
| |||
359 | 385 | | |
360 | 386 | | |
361 | 387 | | |
| 388 | + | |
362 | 389 | | |
363 | 390 | | |
364 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
205 | 213 | | |
206 | 214 | | |
207 | 215 | | |
208 | | - | |
| 216 | + | |
209 | 217 | | |
210 | 218 | | |
211 | 219 | | |
212 | 220 | | |
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
216 | | - | |
| 224 | + | |
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
| |||
232 | 240 | | |
233 | 241 | | |
234 | 242 | | |
235 | | - | |
| 243 | + | |
236 | 244 | | |
237 | 245 | | |
238 | 246 | | |
| |||
242 | 250 | | |
243 | 251 | | |
244 | 252 | | |
245 | | - | |
| 253 | + | |
| 254 | + | |
246 | 255 | | |
247 | 256 | | |
248 | 257 | | |
| |||
297 | 306 | | |
298 | 307 | | |
299 | 308 | | |
300 | | - | |
| 309 | + | |
301 | 310 | | |
302 | 311 | | |
303 | 312 | | |
| |||
308 | 317 | | |
309 | 318 | | |
310 | 319 | | |
| 320 | + | |
311 | 321 | | |
312 | 322 | | |
313 | 323 | | |
| |||
366 | 376 | | |
367 | 377 | | |
368 | 378 | | |
369 | | - | |
| 379 | + | |
370 | 380 | | |
371 | 381 | | |
372 | 382 | | |
| |||
377 | 387 | | |
378 | 388 | | |
379 | 389 | | |
| 390 | + | |
380 | 391 | | |
381 | 392 | | |
382 | 393 | | |
| |||
420 | 431 | | |
421 | 432 | | |
422 | 433 | | |
423 | | - | |
| 434 | + | |
424 | 435 | | |
425 | 436 | | |
426 | 437 | | |
| |||
440 | 451 | | |
441 | 452 | | |
442 | 453 | | |
443 | | - | |
| 454 | + | |
| 455 | + | |
444 | 456 | | |
445 | 457 | | |
446 | 458 | | |
| |||
485 | 497 | | |
486 | 498 | | |
487 | 499 | | |
488 | | - | |
| 500 | + | |
489 | 501 | | |
490 | 502 | | |
491 | 503 | | |
| |||
502 | 514 | | |
503 | 515 | | |
504 | 516 | | |
505 | | - | |
| 517 | + | |
506 | 518 | | |
507 | 519 | | |
508 | 520 | | |
| |||
717 | 729 | | |
718 | 730 | | |
719 | 731 | | |
| 732 | + | |
720 | 733 | | |
721 | 734 | | |
722 | 735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
157 | 180 | | |
158 | 181 | | |
159 | 182 | | |
| |||
185 | 208 | | |
186 | 209 | | |
187 | 210 | | |
188 | | - | |
| 211 | + | |
189 | 212 | | |
190 | 213 | | |
191 | 214 | | |
192 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
193 | 223 | | |
194 | 224 | | |
195 | 225 | | |
| |||
204 | 234 | | |
205 | 235 | | |
206 | 236 | | |
207 | | - | |
| 237 | + | |
| 238 | + | |
208 | 239 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
403 | 408 | | |
404 | 409 | | |
405 | 410 | | |
406 | | - | |
| 411 | + | |
| 412 | + | |
407 | 413 | | |
408 | 414 | | |
409 | 415 | | |
| |||
0 commit comments