Commit Graph

5 Commits

Author SHA1 Message Date
Jon Cinque e2d56f403d
token-2022: Assess transfer fees (#2807)
* Refactor transfer to use StateWithExtensionsMut

* Add basic transfer tests

* Add transfer fee calculation and use in transfer

* Add specific transfer fee tests

* Add self-transfer test + rename test
2022-01-26 19:25:10 +01:00
Michael Vines 679e9b1212 spl-token-client no longer hard codes the token program id 2022-01-24 17:41:47 -08:00
Jon Cinque 480dc6870f
token-2022: Add init mint close authority (#2744) 2022-01-19 12:44:45 +01:00
Jon Cinque 3e1dd73396
token-2022: Basic integration with rust client (#2739)
* token-2022: Basic integration with rust client

* Rename ExtenstionType -> Self

* Fix merge conflicts
2022-01-14 20:34:43 +01: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