Commit 2f5fdca
committed
feat(wasm-solana): add authorize and customTx intent handlers
Add support for two new Solana intent types in the WASM transaction
builder:
- authorize: Decodes a pre-built transaction message (base64/bincode)
and wraps it as an unsigned Transaction. Bypasses nonce/memo since
the message is already complete.
- customTx: Parses solInstructions array (programId, keys, data) into
native Solana Instructions. Goes through normal nonce/memo path.
Also adds corresponding types (AuthorizeIntent, CustomTxIntent,
CustomTxInstruction, CustomTxKey) and unit tests for both handlers.
BTC-30251 parent 86824a5 commit 2f5fdca
3 files changed
Lines changed: 302 additions & 54 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
179 | 213 | | |
180 | 214 | | |
181 | 215 | | |
| |||
186 | 220 | | |
187 | 221 | | |
188 | 222 | | |
189 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
190 | 226 | | |
191 | 227 | | |
192 | 228 | | |
| |||
0 commit comments