behzad nouri
272e667cb2
deprecates Pubkey::new in favor of Pubkey::{,try_}from ( #29805 )
...
The commit deprecates Pubkey::new which lacks type-safety and instead
implements TryFrom<&[u8]> and TryFrom<Vec<u8>> for Pubkey.
2023-01-21 18:06:27 +00:00
hanako mumei
015784ad07
update to spl-token-2022 0.5.0
...
* support CpiGuard and PermanentDelegate extensions in transaction-status and account-decoder
* update transaction-status and account-decoder to new ConfidentialTransfer interfaces
2022-11-28 11:30:41 -08:00
Brooks Prumo
d1ba42180d
clippy for rust 1.65.0 ( #28765 )
2022-11-09 19:39:38 +00:00
Tyera Eulberg
dbd3b6b53a
Parse more token-2022 extensions and instructions ( #26746 )
...
* Bump spl-token-2022
* Support parsing InterestBearingConfig extension
* Parse InitializeNonTransferableMint instructions
* Parse InterestBearingMint instructions
* Bump solana-program rebuild threshold
2022-07-25 15:39:13 -06:00
Michael Vines
b05c7d91ed
Fix derive_partial_eq_without_eq clippy lint
2022-05-22 22:22:21 -07:00
Jon Cinque
0820065c98
rpc: Support token-2022 in token-specific calls ( #25150 )
...
* rpc: Support token-2022 in token-specific calls
* Address feedback
2022-05-17 21:02:43 +02:00
Tyera Eulberg
e7074bc61b
Parse token-2022 account extensions (mostly) ( #24621 )
...
* Parse most account/mint extensions
* Add comments
2022-04-28 09:48:20 -06:00
Tyera Eulberg
d2dad51b8c
Support token-2022 in RPC account parsing ( #24619 )
...
* Use token-2022 in parsed_token_account
* Parse token-2022 accounts
2022-04-25 13:25:21 -06:00
Michael Vines
413806684f
Add SPL Token 2022 to the list of known token ids ( #23067 )
...
* Add SPL Token 2022 to the list of known token ids
* Fix tests to accommodate #23729
* Test parsing of basic token-2022 instructsions
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2022-04-19 19:23:43 -06:00
Michael Vines
86d465c531
Prepare RPC subsystem for multiple SPL Token program ids
2022-02-09 08:16:00 -08:00
Michael Vines
b8837c04ec
Reformat imports to a consistent style for imports
...
rustfmt.toml configuration:
imports_granularity = "One"
group_imports = "One"
2021-12-03 09:19:13 -08:00
Jon Cinque
02bc4e3fc1
spl-token: New program feature flag ( #21354 )
...
* spl-token: Add feature flag for new release
* Remove all spl token version declarations
2021-11-21 14:27:03 +01:00
Michael Vines
350bb561eb
Clippy
2021-10-23 08:21:20 +00:00
Alexander Polakov
51178ccb33
account-decoder: don't use strings to convert between Pubkey types ( #17391 )
...
* account-decoder: don't use strings to convert between Pubkey types
* transaction-status: don't use strings to convert between Pubkey types
2021-05-21 22:53:53 +00:00
Tyera Eulberg
c40bd5f394
Fix real_number_string_trimmed zero-decimal behavior ( #15873 )
...
* Add failing test
* Don't strip zeroes from zero-decimal amounts
* Add zero-case test
2021-03-15 18:32:40 +00:00
Tyera Eulberg
19ac79b5cc
Deprecate UiTokenAmount::ui_amount ( #15616 )
...
* Add TokenAmount::ui_amount_string
* Fixup solana-tokens
* Update docs
2021-03-02 22:51:41 -07:00
Tyera Eulberg
1ad2c9f741
Revert "Make UiTokenAmount::ui_amount a String ( #15447 )" ( #15542 )
...
This reverts commit d14374bc9f
.
2021-02-25 21:53:40 +00:00
Tyera Eulberg
d14374bc9f
Make UiTokenAmount::ui_amount a String ( #15447 )
...
* Make UiTokenAmount::ui_amount a String
* Fixup solana-tokens
* Ignore spl downstream-project
2021-02-22 13:05:45 -07:00
Tyera Eulberg
2ef4369237
Distribute spl tokens ( #13559 )
...
* Add helpers to covert between sdk types
* Add distribute-spl-tokens to args and arg-parsing
* Build spl-token transfer-checked instructions
* Check spl-token balances properly
* Add display handling to support spl-token
* Small refactor to allow failures in allocation iter
* Use Associated Token Account for spl-token distributions
* Add spl token support to balances command
* Update readme
* Add spl-token tests
* Rename spl-tokens file
* Move a couple more things out of commands
* Stop requiring lockup_date heading for non-stake distributions
* Use epsilon for allocation retention
2020-11-19 10:32:31 -07:00
Michael Vines
8838a55a1a
Bump spl-token and spl-memo crate versions
2020-11-04 21:44:33 +00:00
Trent Nelson
bb144bf758
account-decoder: Add string format helpers to UiTokenAmount
2020-09-24 21:50:06 -06:00
Tyera Eulberg
e1a212fb79
Bump spl-token ( #12395 )
2020-09-22 17:08:54 -06:00
Tyera Eulberg
2eff9a19c3
Update to token pack/unpack changes ( #11900 )
2020-08-28 22:06:30 -06:00
Tyera Eulberg
76be36c9ce
Update spl-token to v2.0 ( #11884 )
...
* Update account-decoder to spl-token v2.0
* Update transaction-status to spl-token v2.0
* Update rpc to spl-token v2.0
* Update getTokenSupply to pull from Mint directly
* Fixup to spl-token v2.0.1
2020-08-28 15:54:57 -06:00
Michael Vines
17645ee20c
Adapt RpcClient to recent token method changes ( #11519 )
...
* Avoid skip_serializing_if since that breaks deserialization
* Adapt RpcClient to recent token method changes
2020-08-11 10:14:17 -06:00
Tyera Eulberg
88d8d3d02a
Return delegated amount as UiTokenAmount ( #11475 )
...
* Return delegated amount as UiTokenAmount
* Omit delegate and delegatedAmount when none
2020-08-08 19:12:09 +00:00
Tyera Eulberg
b7c2681903
Token Accounts: return ui_amount, decimals with decoded account ( #11407 )
...
* Return ui_amount, decimals from token client methods
* Return ui_amount, decimals in RPC jsonParsed token accounts
* Fixup docs
* Return ui_amount, decimals in pubsub jsonParsed token accounts
* Remove unnecessary duplicate struct
* StringAmount rename
2020-08-07 11:37:39 -06:00
Tyera Eulberg
308186da79
Rework parsed account format ( #11372 )
...
* Rework parsed account format
* Serialize as type
2020-08-05 00:59:10 -06:00
Tyera Eulberg
86e3f96f16
Return token amounts as floats ( #11370 )
...
* Return token amounts as floats
* Floating-point equality
* Return float and raw token amounts
* Fix decimals and token rpcs for native-mint tokens
* Fixup docs and review comments
2020-08-05 06:48:09 +00:00
Michael Vines
ffbd859c42
Update spl-token and spl-memo
2020-08-02 07:53:42 -07:00
Tyera Eulberg
0f551d4f75
Decode token instructions ( #11281 )
...
* Token->SplToken
* Add spl_token instruction parsing
* Rebase on master
* Gracefully fail key len mismatches
2020-07-31 13:26:09 -06:00
Michael Vines
c78e12a262
Avoid spl-sdk dependency, which inhibits crate publishing
2020-07-30 23:47:26 +00:00
Tyera Eulberg
b45ac5d4db
Add SPL Token-specific rpc endpoints ( #11231 )
...
* Simplify account-decoder program ids + spl_token helper
* Spl program namespace version
* Add getTokenAccountBalance endpoint
* Remove token program id from getTokenAccountBalance request
* Add getTokenSupply endpoint
* Remove token program id from getTokenSupply request
* Add getTokenAccountsByOwner/Delegate endpoints
* Remove token program id from getTokenAccountsByOwner/Delegate requests
* Named parameter
2020-07-28 23:00:48 -06:00
Tyera Eulberg
32fea0496e
Add token account decoding ( #11136 )
...
* Add token decoding
* Bump versions
2020-07-24 17:45:21 -06:00