Commit 690985e
authored
interface: Split out instructions, state, errors from program (#616)
* interface: Split out instructions, state, errors from program
#### Problem
The token-2022 program has some heavy dependencies that most users of
the crate don't care about. This causes dependency issues and long
compilation times.
Also, the program uses Agave dependencies, which creates circular
dependencies and makes it impossible to upgrade to SDK v3 without some
complicated gymnastics.
#### Summary of changes
Similar to the ATA's interface crate, split out everything need by Agave
into a separate crate, which can also be used by on-chain programs as an
rlib, and thus allow for LTO in program builds.
* Rename serde-traits -> serde, remove repeated funcs
* Cleanup deps, remove repeated functions, run format
* Fix spelling issues and client generation
* Address nits1 parent cb6348c commit 690985e
File tree
98 files changed
+14496
-13912
lines changed- .github/workflows
- interface
- src
- extension
- confidential_mint_burn
- confidential_transfer_fee
- confidential_transfer
- cpi_guard
- default_account_state
- group_member_pointer
- group_pointer
- interest_bearing_mint
- memo_transfer
- metadata_pointer
- pausable
- scaled_ui_amount
- token_group
- token_metadata
- transfer_fee
- transfer_hook
- tests
- program
- src
- extension
- confidential_mint_burn
- confidential_transfer_fee
- confidential_transfer
- cpi_guard
- default_account_state
- group_member_pointer
- group_pointer
- interest_bearing_mint
- memo_transfer
- metadata_pointer
- pausable
- scaled_ui_amount
- token_group
- token_metadata
- transfer_fee
- transfer_hook
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
98 files changed
+14496
-13912
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
112 | 133 | | |
113 | 134 | | |
114 | 135 | | |
| |||
171 | 192 | | |
172 | 193 | | |
173 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
174 | 211 | | |
175 | 212 | | |
176 | 213 | | |
| |||
Some 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 | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
File renamed without changes.
0 commit comments