Commit 63dbf07
authored
feat: replace attested bytes with typed MessageOrigin in delegate API (#61)
* feat: replace attested bytes with typed MessageOrigin in delegate API
Replace the raw `attested: Option<&'static [u8]>` parameter in
DelegateInterface::process() with `origin: Option<MessageOrigin>`,
where MessageOrigin::WebApp(ContractInstanceId) identifies the
originating web application.
Also removes the `app` field from ApplicationMessage — the origin
is now conveyed through the process() parameter rather than being
duplicated on every message.
Closes #1498
* build: bump version to 0.3.0 for breaking API changes
Breaking changes in this release:
- DelegateInterface::process: attested → origin: Option<MessageOrigin>
- ApplicationMessage: removed app field, new() takes only payload
- New public type: MessageOrigin enumFile tree
8 files changed
+1975
-2088
lines changed- rust-macros/src
- rust
- src
- client_api
- generated
- schemas/flatbuffers
8 files changed
+1975
-2088
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | | - | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1443 | 1443 | | |
1444 | 1444 | | |
1445 | 1445 | | |
1446 | | - | |
1447 | | - | |
1448 | | - | |
1449 | | - | |
1450 | | - | |
1451 | | - | |
1452 | | - | |
1453 | 1446 | | |
1454 | 1447 | | |
1455 | 1448 | | |
1456 | 1449 | | |
1457 | 1450 | | |
1458 | | - | |
1459 | 1451 | | |
1460 | 1452 | | |
1461 | 1453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
366 | 378 | | |
367 | 379 | | |
368 | 380 | | |
| |||
391 | 403 | | |
392 | 404 | | |
393 | 405 | | |
394 | | - | |
| 406 | + | |
395 | 407 | | |
396 | 408 | | |
397 | 409 | | |
| |||
415 | 427 | | |
416 | 428 | | |
417 | 429 | | |
418 | | - | |
419 | | - | |
| 430 | + | |
| 431 | + | |
420 | 432 | | |
421 | 433 | | |
422 | 434 | | |
423 | 435 | | |
424 | | - | |
| 436 | + | |
425 | 437 | | |
426 | 438 | | |
427 | 439 | | |
| |||
555 | 567 | | |
556 | 568 | | |
557 | 569 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | 570 | | |
562 | | - | |
563 | 571 | | |
564 | 572 | | |
565 | 573 | | |
| |||
585 | 593 | | |
586 | 594 | | |
587 | 595 | | |
588 | | - | |
589 | 596 | | |
590 | 597 | | |
591 | 598 | | |
592 | 599 | | |
593 | 600 | | |
594 | 601 | | |
595 | | - | |
| 602 | + | |
596 | 603 | | |
597 | | - | |
598 | 604 | | |
599 | 605 | | |
600 | 606 | | |
| |||
0 commit comments