This repository was archived by the owner on Mar 11, 2025. It is now read-only.
Commit 677acf1
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 <[email protected]>
* 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 <[email protected]>1 parent c2a3ecd commit 677acf1
File tree
7 files changed
+242
-64
lines changed- token
- client/src
- program-2022-test/tests
- program-2022/src
- extension/confidential_transfer
7 files changed
+242
-64
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
976 | 978 | | |
977 | 979 | | |
978 | 980 | | |
| 981 | + | |
979 | 982 | | |
980 | 983 | | |
981 | 984 | | |
| |||
984 | 987 | | |
985 | 988 | | |
986 | 989 | | |
| 990 | + | |
987 | 991 | | |
988 | 992 | | |
989 | 993 | | |
| |||
996 | 1000 | | |
997 | 1001 | | |
998 | 1002 | | |
| 1003 | + | |
999 | 1004 | | |
1000 | 1005 | | |
1001 | 1006 | | |
| |||
1005 | 1010 | | |
1006 | 1011 | | |
1007 | 1012 | | |
| 1013 | + | |
1008 | 1014 | | |
1009 | 1015 | | |
1010 | 1016 | | |
| |||
1067 | 1073 | | |
1068 | 1074 | | |
1069 | 1075 | | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1070 | 1080 | | |
1071 | 1081 | | |
1072 | 1082 | | |
| |||
1138 | 1148 | | |
1139 | 1149 | | |
1140 | 1150 | | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
1141 | 1155 | | |
1142 | 1156 | | |
1143 | 1157 | | |
| |||
1198 | 1212 | | |
1199 | 1213 | | |
1200 | 1214 | | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1201 | 1219 | | |
1202 | 1220 | | |
1203 | 1221 | | |
| |||
0 commit comments