- update build script to build both esm and cjs compatible packages
- add postbuild script to delegate the module type check to package.json within lib/esm and lib/cjs directory
* token-2022: Add transfer fee accounts and instructions
* Address feedback
* More feedback
* Move to mixins
* Separate instructions for mixin initialization
* Feedback again again again!
* Getting there...
* More more feedback again again
* Add `WithdrawWithheldTokensFromAccounts` instruction
* Add instruction serde, fix all errors
I was confused when reading this comment and had to read the code to realize that the comment isn't a typo.
(Btw, let me know if this kind of small changes are helpful or not 👍.)
* spl-token: WIP
* Remove and_then, move tx handling in separate function- output handling still missing
* spl-token: add basic output handling for all calls, add detailed output to create-token
* spl-token: remove changes in bench that are not strictly necessary to remove # of files touched in this PR
* [spl-token] cli: HandleTxReturn is now TransactionReturnData
* [spl-token] cli: Make commands return output String that is printed in fn main()
* [spl-token] cli: remove old todos
* [spl-token] cli: only use no_wait arg in command_transfer and use constant for "create-token"
* Allow GC to close empty associated accounts
Empty associated accounts will only be closed in case the new flag del_associated_accounts is set. Otherwise behaviour is as before.
Useage:
spl-token gc --del_associated_accounts
* use kebab-case
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* align coding style
Thank you jon!
* Add sanity check
* correcting amount check before closing
* formatting correcly
using cargo fmt
* changing sanity check to assert!
Co-authored-by: Sack <none>
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
Co-authored-by: Mark Sackerberg <Contact@Discord>
The following methods:
- createApproveCheckedInstruction
- createMintToCheckedInstruction
- createBurnCheckedInstruction
- createSyncNativeInstruction
are missing from the `module.d.ts` file which means they won't be included in
the `lib/index.d.ts` module declaration file and therefore cannot be
referenced to when using the package with typescript.
Added the missing declarations.