orca-so / orca-sdks

Open-sourced typescript SDKs for Orca
MIT License
43 stars 10 forks source link

Adding buildSync method on transaction builder #41

Closed terranmoccasin closed 1 year ago

terranmoccasin commented 1 year ago

Adds a buildSync method on TransactionBuilder which can be used to build transactions synchronously. Also adds some transaction constants.

This precedes a change I'm working on for a MultiTransactionBuilder class which checks the size of the transaction when adding instructions. Since currently, txnSize() is async, it makes the fluent interface for the multi builder very cumbersome.