Commit 270d24d
authored
Use message structures defined in pythnet sdk (#377)
* Use message structures defined in pythnet sdk
Since the custom serialization implementations are solana specific and
mainly for reducing the binary size, they are kept in this package via
a custom trait.
Deserialization functions were removed since they were not used and
the default serde provided by pythnet sdk should work identically.
Serialization tests are now repurposed to test our custom serialization
and the general deserialization lead to the same original structure.
* Set resolver version to 2 to avoid some feature unifications
The old resolver adds the quickcheck feature on the pythnet-sdk
dependency for non-dev builds as well which leads to compile errors.1 parent b09ee14 commit 270d24d
File tree
8 files changed
+147
-389
lines changed- program/rust
- src
- accounts
- processor
- tests
8 files changed
+147
-389
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
62 | 60 | | |
63 | | - | |
| 61 | + | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
| |||
0 commit comments