Jordan Sexton
bba59e9e05
update dev deps
2021-12-27 20:03:13 -06:00
Jordan Sexton
a8b27006b4
update version to 0.2.0-alpha.0@next
2021-12-27 20:03:13 -06:00
Jordan Sexton
537bfe3efe
add checked + unchecked decode functions
2021-12-27 20:03:13 -06:00
Jordan Sexton
6e7b7d7faa
InitializeAccount doesn't have multisigners
2021-12-27 20:03:13 -06:00
Jordan Sexton
7ac61bc957
target esnext with esm build, es6 with cjs
2021-12-27 20:03:13 -06:00
Jordan Sexton
1844efe298
fix comments
2021-12-27 20:03:13 -06:00
Colin Ogoo
70893b0299
build(cjs/esm): create cjs/esm bundles
...
- 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
2021-12-27 20:03:13 -06:00
Colin Ogoo
cc074a1b5e
build(rollup): remove rollup and related packages
...
step one of removing rollup from the build pipeline
2021-12-27 20:03:13 -06:00
Jordan Sexton
0db9c3dc00
fix decoded type
2021-12-27 20:03:13 -06:00
Jordan Sexton
8ca7381402
fix argument order
2021-12-27 20:03:13 -06:00
Jordan Sexton
931befabb0
add more decode functions, refactor
2021-12-27 20:03:13 -06:00
Jordan Sexton
8cca13cecf
add initial instruction decoding functions
2021-12-27 20:03:13 -06:00
Jordan Sexton
7f8d04cdeb
add instruction errors
2021-12-27 20:03:13 -06:00
Jordan Sexton
e97f51031f
fix doc comments
2021-12-27 20:03:13 -06:00
Jordan Sexton
3dc18b2f19
strictly type and expose instruction data layouts
2021-12-27 20:03:13 -06:00
Jordan Sexton
20463a7a6b
change get*Info method names
2021-12-27 20:03:13 -06:00
Jordan Sexton
0b586a2809
include license in published package
2021-12-27 20:03:13 -06:00
Jordan Sexton
2cd6f68de8
add rollup to build
2021-12-27 20:03:13 -06:00
Jordan Sexton
60b8340ed4
add published files
2021-12-27 20:03:13 -06:00
Jordan Sexton
95c3ab4e4b
build for node 14 (LTS)
2021-12-27 20:03:13 -06:00
Jordan Sexton
d7d3f08a5e
AccountInfo::data should already be a Buffer
2021-12-27 20:03:13 -06:00
Jordan Sexton
e02d632b36
fix build from source directions
2021-12-27 20:03:13 -06:00
Jordan Sexton
da6c573b0c
organize imports
2021-12-27 20:03:13 -06:00
Kirill Fomichev
dcf91e9ae8
Add token/rust: spl-token-api ( #2102 )
...
* Init spl-token-api
* rename token/rust
* add mint_to, transfer
* add BoxFuture
* fmt + Send + Sync
* TokenBanksClient::new_from_client
* add trait SendTransaction
* deps
* add enum for TokenBanksClient
* update to 1.7.11
* fix Token::mint_to
* fix transfer and add get_account_info
* unstrict deps
* add get_or_create_associated_account_info
* add set_authority and split tests
* set_authority for mint/account
* re-export spl_token
* add Token::new
* update solana crates
* remove comments
* change generic names
* change process_ixs method
* add Token::get_mint_info
* fix same mint tx
* add Token::with_payer
* fmt
* TokenClient::send_transaction accept ref
* rename Token* to Program*
2021-12-21 12:16:20 -07:00
Dmitri Makarov
e039957fc4
Increase compute max units in program-2022 assert_instruction_count ( #2655 )
2021-12-21 10:59:44 -08:00
Dmitri Makarov
28d0aa7759
Increase compute max units due to changes in handling of memory ops ( #2653 )
2021-12-20 15:29:36 -08:00
Jordan Sexton
fef4438cd1
fix test
2021-12-14 16:49:30 -06:00
Jordan Sexton
4179acbf8b
Rewrite spl-token-js in TypeScript ( #2539 )
...
* first draft
* restructuring
* fix imports
* move errors to constants
* fmt
* fix ata
* finish core implementation
* don't export internal utils
* rename internal util files
* token account is owned by token program
* docs
* docs
* port example
* add basic tests from current implementation
* enable es6 features in lint config
* don't build tests into lib dir
* doc tweaks
* add preinstall script
* add types, don't postinstall
* allow keypairs to create accounts, and default to using ATAs
* add explicit enum values
* remove unused dependency
* expose allowOwnerOffCurve option to getOrCreateAssociatedTokenAccount action
* make multisigners optional
* WIP, undo
* update buffer-layout and buffer-layout-utils from npm
* update dev dependencies
2021-12-14 16:47:57 -06:00
Jon Cinque
2cd68d3f5c
token-2022: Add transfer fee types and instructions ( #2608 )
...
* 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
2021-12-14 23:36:02 +01:00
Michael Vines
1a0155e34b
Update to Rust 1.57.0
2021-12-09 23:56:47 -08:00
Abhimanyu Singh Gaur
e29bc53c5f
Migrate to @solana/buffer-layout ( #2624 )
...
* Update package.json
* Fix build errors
* More fixes
* Add flow definitions
2021-12-09 16:26:14 +01:00
Victor Pontis
801b4e59f8
Update comment on state.rs regarding is_native
...
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 👍 .)
2021-11-28 20:39:45 -08:00
Paul
7393f1de43
spl-token: provide more useful output when using create-token with the output option and small redesign of token cli architecture ( #2593 )
...
* 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"
2021-11-24 12:08:46 -07:00
Jon Cinque
7764a9d5c7
token: Transition perf-monitor to solana-program-test ( #2586 )
...
* token: Transition perf-monitor to solana-program-test
* fmt
* Refactor for clarity
2021-11-16 23:15:45 +01:00
Jon Cinque
02d2736797
token-js: Add test for disabling mint authority ( #2582 )
2021-11-15 18:56:23 +01:00
Ikko Ashimine
707382ee96
Fix typo in main.rs ( #2569 )
...
auxillary -> auxiliary
2021-11-10 11:18:07 -07:00
MarkSackerberg
81c90f5c73
Allow GC to close empty associated accounts ( #2554 )
...
* 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>
2021-11-04 22:49:23 +01:00
Michael Vines
9acb082dc3
Upgrade to Solana v1.8.1
2021-10-20 22:52:19 -07:00
fukaoi
5436ac239e
added transferChecked ( #2481 )
2021-10-13 16:55:19 +02:00
Krešimir Klas
889ccd6799
[token][js]: add missing checked instruction method declarations to module.d.ts ( #2484 )
...
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.
2021-10-13 16:54:56 +02:00
Michael Vines
1c417ffa4f
Fork Token 2022 program
2021-10-12 10:43:58 -07:00
Michael Vines
12732f8d5a
Upgrade to Solana 1.8.0
2021-10-12 09:40:06 -07:00
Ryo Onodera
2221e5df74
token-cli: Bump version to 2.0.15
2021-09-28 22:03:41 +09:00
Ryo Onodera
462f1e0708
Really plumb dump_transaction_message ( #2448 )
2021-09-24 12:05:26 +09:00
Michael Vines
9f0f30a21d
Always check transaction statuses before resending
2021-09-19 21:44:09 -07:00
Michael Vines
7d1c0c48fb
Use status.satisfies_commitment
2021-09-16 19:35:30 -07:00
dependabot[bot]
2513e327a5
build(deps-dev): bump @babel/node from 7.14.9 to 7.15.4 in /token/js ( #2419 )
...
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node ) from 7.14.9 to 7.15.4.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.15.4/packages/babel-node )
---
updated-dependencies:
- dependency-name: "@babel/node"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-16 08:32:30 +00:00
dependabot[bot]
a0e32c7baf
build(deps-dev): bump flow-bin from 0.158.0 to 0.160.0 in /token/js ( #2418 )
...
Bumps [flow-bin](https://github.com/flowtype/flow-bin ) from 0.158.0 to 0.160.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases )
- [Commits](https://github.com/flowtype/flow-bin/commits )
---
updated-dependencies:
- dependency-name: flow-bin
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-16 08:16:59 +00:00
dependabot[bot]
a036953d12
build(deps): bump serde_json from 1.0.67 to 1.0.68 ( #2416 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.67 to 1.0.68.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.67...v1.0.68 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-15 11:17:56 +00:00
Michael Vines
77bfbabac8
Update token/js/README.md
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-09-12 22:45:17 -07:00