solana-program-library/token/program-2022-test/tests
samkim-crypto 677acf173d
token-2022: limit incoming transfers for confidential transfer extension (#3208)
* token-2022: limit incoming transfers for confidential transfer extension

* token-2022: add maximum pending counter for confidential extension in client

* token-2022: update tests for ct configure account

* token-2022: cargo fmt

* divide pending balance into lo and hi

* token-2022: update ct processor for lo and hi pending balances

* token-2022: limit confidential transfer deposit and transfer amount in token client

* token_2022: rename TokenError::IllegalAmount

* token-2022: compare max pending credit as u64

* token-2022: fmt

* token-2022: minor fix error from rebase

* Update token/program-2022/src/extension/confidential_transfer/processor.rs

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

* token-2022: update configure account initialization comments

* token-2022: use strict comparison for max pending balance credit counter check

* token-2022: update deposit tests to check `pending_balance_hi` populated

* token-2022: update deposit tests to check that deposit and transfer fails when max pending exceeded

* token-2022: reset pending balance counter on `ApplyPendingBalance`

* token-2022: fix cargo test cases for credit counter

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2022-06-07 23:16:46 +09:00
..
burn.rs token-2022: Allow anyone to burn/close an Account owned by the system program or the incinerator (#2890) 2022-03-09 19:31:39 -07:00
confidential_transfer.rs token-2022: limit incoming transfers for confidential transfer extension (#3208) 2022-06-07 23:16:46 +09:00
default_account_state.rs Move program-2022 tests to new crate (#2892) 2022-02-09 15:02:33 -07:00
delegate.rs token-2022: Fix (rarely) flakey test by changing tx (#3015) 2022-03-19 02:39:31 +01:00
freeze.rs Move program-2022 tests to new crate (#2892) 2022-02-09 15:02:33 -07:00
initialize_account.rs Move program-2022 tests to new crate (#2892) 2022-02-09 15:02:33 -07:00
initialize_mint.rs Add CreateNativeMint instruction 2022-02-09 20:03:21 -08:00
interest_bearing_mint.rs token-2022: Add interest-bearing extension (#3013) 2022-06-01 16:46:30 +02:00
memo_transfer.rs token-2022: Make program and crate deployable (#2985) 2022-03-10 17:42:16 +01:00
mint_close_authority.rs Add AuthorityType variant to use for mint close-authority adjustment (#3111) 2022-04-26 07:55:15 -06:00
program_test.rs token-2022: Add interest-bearing extension (#3013) 2022-06-01 16:46:30 +02:00
reallocate.rs Move program-2022 tests to new crate (#2892) 2022-02-09 15:02:33 -07:00
sync_native.rs token-2022: Support extensions in `SyncNative` (#2926) 2022-02-17 22:50:10 +01:00
transfer.rs Move program-2022 tests to new crate (#2892) 2022-02-09 15:02:33 -07:00
transfer_fee.rs token-2022: Set transfer fee two epochs ahead (#3120) 2022-04-27 17:48:08 +02:00