Closed oJshua closed 4 years ago
Currently, Serum DEX instructions appear as Unknown (see: https://explorer.solana.com/address/ErF6ptYb3tKzSZjLKBoTqYJPUkMQtPUeAGo16kGLdGVt/tokens). It would be useful for Explorer to decode the instructions to provide more detail.
Decode the DEX instructions to provide insight into the instructions used in Serum transactions.
spl-token-wallet implements transaction parsing for DEX instructions and others the UI commonly throws in (creating new accounts, initializing token accounts, etc.). https://github.com/project-serum/spl-token-wallet/blob/master/src/utils/transactions.js#L20
Related: https://github.com/solana-labs/solana/issues/11935
Swap instructions: https://github.com/solana-labs/oyster-swap/blob/master/src/models/tokenSwap.ts
Problem
Currently, Serum DEX instructions appear as Unknown (see: https://explorer.solana.com/address/ErF6ptYb3tKzSZjLKBoTqYJPUkMQtPUeAGo16kGLdGVt/tokens). It would be useful for Explorer to decode the instructions to provide more detail.
Proposed Solution
Decode the DEX instructions to provide insight into the instructions used in Serum transactions.
spl-token-wallet implements transaction parsing for DEX instructions and others the UI commonly throws in (creating new accounts, initializing token accounts, etc.). https://github.com/project-serum/spl-token-wallet/blob/master/src/utils/transactions.js#L20