@@ -120,7 +120,7 @@ pub struct Account<K> {
120
120
account_info : AccountInfo ,
121
121
}
122
122
123
- impl < K : AccountKeyChains > Account < K > {
123
+ impl < K : AccountKeyChains + Sync > Account < K > {
124
124
/// Create a new account by providing a key chain
125
125
pub fn new (
126
126
chain_config : Arc < ChainConfig > ,
@@ -654,7 +654,7 @@ impl<K: AccountKeyChains> Account<K> {
654
654
655
655
pub fn process_send_request_and_sign (
656
656
& mut self ,
657
- db_tx : & mut impl WalletStorageWriteUnlocked ,
657
+ db_tx : & mut impl WalletStorageWriteLocked ,
658
658
request : SendRequest ,
659
659
inputs : SelectedInputs ,
660
660
change_addresses : BTreeMap < Currency , Address < Destination > > ,
@@ -676,7 +676,7 @@ impl<K: AccountKeyChains> Account<K> {
676
676
677
677
fn decommission_stake_pool_impl (
678
678
& mut self ,
679
- db_tx : & mut impl WalletStorageWriteUnlocked ,
679
+ db_tx : & mut impl WalletStorageWriteLocked ,
680
680
pool_id : PoolId ,
681
681
pool_balance : Amount ,
682
682
output_address : Option < Destination > ,
@@ -739,7 +739,7 @@ impl<K: AccountKeyChains> Account<K> {
739
739
740
740
pub fn decommission_stake_pool (
741
741
& mut self ,
742
- db_tx : & mut impl WalletStorageWriteUnlocked ,
742
+ db_tx : & mut impl WalletStorageWriteLocked ,
743
743
pool_id : PoolId ,
744
744
pool_balance : Amount ,
745
745
output_address : Option < Destination > ,
@@ -756,7 +756,7 @@ impl<K: AccountKeyChains> Account<K> {
756
756
757
757
pub fn decommission_stake_pool_request (
758
758
& mut self ,
759
- db_tx : & mut impl WalletStorageWriteUnlocked ,
759
+ db_tx : & mut impl WalletStorageWriteLocked ,
760
760
pool_id : PoolId ,
761
761
pool_balance : Amount ,
762
762
output_address : Option < Destination > ,
@@ -900,7 +900,7 @@ impl<K: AccountKeyChains> Account<K> {
900
900
901
901
pub fn create_htlc_tx (
902
902
& mut self ,
903
- db_tx : & mut impl WalletStorageWriteUnlocked ,
903
+ db_tx : & mut impl WalletStorageWriteLocked ,
904
904
output_value : OutputValue ,
905
905
htlc : HashedTimelockContract ,
906
906
median_time : BlockTimestamp ,
@@ -923,7 +923,7 @@ impl<K: AccountKeyChains> Account<K> {
923
923
924
924
pub fn create_order_tx (
925
925
& mut self ,
926
- db_tx : & mut impl WalletStorageWriteUnlocked ,
926
+ db_tx : & mut impl WalletStorageWriteLocked ,
927
927
ask_value : OutputValue ,
928
928
give_value : OutputValue ,
929
929
conclude_address : Address < Destination > ,
@@ -949,7 +949,7 @@ impl<K: AccountKeyChains> Account<K> {
949
949
950
950
pub fn create_conclude_order_tx (
951
951
& mut self ,
952
- db_tx : & mut impl WalletStorageWriteUnlocked ,
952
+ db_tx : & mut impl WalletStorageWriteLocked ,
953
953
order_id : OrderId ,
954
954
order_info : RpcOrderInfo ,
955
955
output_address : Option < Destination > ,
@@ -1002,7 +1002,7 @@ impl<K: AccountKeyChains> Account<K> {
1002
1002
#[ allow( clippy:: too_many_arguments) ]
1003
1003
pub fn create_fill_order_tx (
1004
1004
& mut self ,
1005
- db_tx : & mut impl WalletStorageWriteUnlocked ,
1005
+ db_tx : & mut impl WalletStorageWriteLocked ,
1006
1006
order_id : OrderId ,
1007
1007
order_info : RpcOrderInfo ,
1008
1008
fill_amount_in_ask_currency : Amount ,
@@ -1058,7 +1058,7 @@ impl<K: AccountKeyChains> Account<K> {
1058
1058
1059
1059
pub fn create_issue_nft_tx (
1060
1060
& mut self ,
1061
- db_tx : & mut impl WalletStorageWriteUnlocked ,
1061
+ db_tx : & mut impl WalletStorageWriteLocked ,
1062
1062
nft_issue_arguments : IssueNftArguments ,
1063
1063
median_time : BlockTimestamp ,
1064
1064
fee_rate : CurrentFeeRate ,
@@ -1119,7 +1119,7 @@ impl<K: AccountKeyChains> Account<K> {
1119
1119
1120
1120
pub fn mint_tokens (
1121
1121
& mut self ,
1122
- db_tx : & mut impl WalletStorageWriteUnlocked ,
1122
+ db_tx : & mut impl WalletStorageWriteLocked ,
1123
1123
token_info : & UnconfirmedTokenInfo ,
1124
1124
address : Address < Destination > ,
1125
1125
amount : Amount ,
@@ -1147,7 +1147,7 @@ impl<K: AccountKeyChains> Account<K> {
1147
1147
1148
1148
pub fn unmint_tokens (
1149
1149
& mut self ,
1150
- db_tx : & mut impl WalletStorageWriteUnlocked ,
1150
+ db_tx : & mut impl WalletStorageWriteLocked ,
1151
1151
token_info : & UnconfirmedTokenInfo ,
1152
1152
amount : Amount ,
1153
1153
median_time : BlockTimestamp ,
@@ -1174,7 +1174,7 @@ impl<K: AccountKeyChains> Account<K> {
1174
1174
1175
1175
pub fn lock_token_supply (
1176
1176
& mut self ,
1177
- db_tx : & mut impl WalletStorageWriteUnlocked ,
1177
+ db_tx : & mut impl WalletStorageWriteLocked ,
1178
1178
token_info : & UnconfirmedTokenInfo ,
1179
1179
median_time : BlockTimestamp ,
1180
1180
fee_rate : CurrentFeeRate ,
@@ -1198,7 +1198,7 @@ impl<K: AccountKeyChains> Account<K> {
1198
1198
1199
1199
pub fn freeze_token (
1200
1200
& mut self ,
1201
- db_tx : & mut impl WalletStorageWriteUnlocked ,
1201
+ db_tx : & mut impl WalletStorageWriteLocked ,
1202
1202
token_info : & UnconfirmedTokenInfo ,
1203
1203
is_token_unfreezable : IsTokenUnfreezable ,
1204
1204
median_time : BlockTimestamp ,
@@ -1225,7 +1225,7 @@ impl<K: AccountKeyChains> Account<K> {
1225
1225
1226
1226
pub fn unfreeze_token (
1227
1227
& mut self ,
1228
- db_tx : & mut impl WalletStorageWriteUnlocked ,
1228
+ db_tx : & mut impl WalletStorageWriteLocked ,
1229
1229
token_info : & UnconfirmedTokenInfo ,
1230
1230
median_time : BlockTimestamp ,
1231
1231
fee_rate : CurrentFeeRate ,
@@ -1249,7 +1249,7 @@ impl<K: AccountKeyChains> Account<K> {
1249
1249
1250
1250
pub fn change_token_authority (
1251
1251
& mut self ,
1252
- db_tx : & mut impl WalletStorageWriteUnlocked ,
1252
+ db_tx : & mut impl WalletStorageWriteLocked ,
1253
1253
token_info : & UnconfirmedTokenInfo ,
1254
1254
address : Address < Destination > ,
1255
1255
median_time : BlockTimestamp ,
@@ -1276,7 +1276,7 @@ impl<K: AccountKeyChains> Account<K> {
1276
1276
1277
1277
pub fn change_token_metadata_uri (
1278
1278
& mut self ,
1279
- db_tx : & mut impl WalletStorageWriteUnlocked ,
1279
+ db_tx : & mut impl WalletStorageWriteLocked ,
1280
1280
token_info : & UnconfirmedTokenInfo ,
1281
1281
metadata_uri : Vec < u8 > ,
1282
1282
median_time : BlockTimestamp ,
@@ -1304,7 +1304,7 @@ impl<K: AccountKeyChains> Account<K> {
1304
1304
authority : Destination ,
1305
1305
tx_input : TxInput ,
1306
1306
outputs : Vec < TxOutput > ,
1307
- db_tx : & mut impl WalletStorageWriteUnlocked ,
1307
+ db_tx : & mut impl WalletStorageWriteLocked ,
1308
1308
median_time : BlockTimestamp ,
1309
1309
fee_rate : CurrentFeeRate ,
1310
1310
) -> Result < SendRequest , WalletError > {
@@ -2128,7 +2128,7 @@ struct PreselectedInputAmounts {
2128
2128
pub burn : Amount ,
2129
2129
}
2130
2130
2131
- impl < K : AccountKeyChains + VRFAccountKeyChains > Account < K > {
2131
+ impl < K : AccountKeyChains + VRFAccountKeyChains + Sync > Account < K > {
2132
2132
fn get_vrf_public_key (
2133
2133
& mut self ,
2134
2134
db_tx : & mut impl WalletStorageWriteLocked ,
@@ -2199,7 +2199,7 @@ impl<K: AccountKeyChains + VRFAccountKeyChains> Account<K> {
2199
2199
2200
2200
pub fn create_stake_pool_tx (
2201
2201
& mut self ,
2202
- db_tx : & mut impl WalletStorageWriteUnlocked ,
2202
+ db_tx : & mut impl WalletStorageWriteLocked ,
2203
2203
stake_pool_arguments : StakePoolDataArguments ,
2204
2204
median_time : BlockTimestamp ,
2205
2205
fee_rate : CurrentFeeRate ,
0 commit comments