-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Hello,
I would be happy to add support for Address Lookup Tables to this package and wonder if you would be open to a PR for this?
Currently, this package only supports legacy transactions. Solana introduced V0 transactions, which can include Address Lookup Tables. These refer to on-chain stored addresses and can reduce the size of transactions.
I thought about adding, a Transaction.to_binary/2, which accepts a list of Address Lookup Tables and encodes the transaction using the V0 format.
Additionally I would add a AddressLookupTable and AddressLookupTable.Program module (or LookupTable and LookupTable.Program to prevent overly long names).
If you are open for a PR, I would like to know if you agree with the design, so I can take it into account.