@@ -13,12 +13,12 @@ use rgb_lib::{
1313 Address as RgbLibAddress , AssetCFA , AssetIFA , AssetNIA , AssetUDA , Assets ,
1414 AssignmentsCollection , Balance , BlockTime , BtcBalance , DatabaseType , EmbeddedMedia ,
1515 Invoice as RgbLibInvoice , InvoiceData as RgbLibInvoiceData , Media , Metadata , Online ,
16- Outpoint , ProofOfReserves , ReceiveData , Recipient as RgbLibRecipient ,
16+ OperationResult , Outpoint , ProofOfReserves , ReceiveData , Recipient as RgbLibRecipient ,
1717 RecipientInfo as RgbLibRecipientInfo , RefreshFilter , RefreshTransferStatus ,
18- RefreshedTransfer , RgbAllocation as RgbLibRgbAllocation , SendResult , Token , TokenLight ,
19- Transaction , TransactionType , Transfer as RgbLibTransfer , TransferKind ,
20- TransferTransportEndpoint , TransportEndpoint as RgbLibTransportEndpoint ,
21- Unspent as RgbLibUnspent , Utxo , Wallet as RgbLibWallet , WalletData , WitnessData ,
18+ RefreshedTransfer , RgbAllocation as RgbLibRgbAllocation , Token , TokenLight , Transaction ,
19+ TransactionType , Transfer as RgbLibTransfer , TransferKind , TransferTransportEndpoint ,
20+ TransportEndpoint as RgbLibTransportEndpoint , Unspent as RgbLibUnspent , Utxo ,
21+ Wallet as RgbLibWallet , WalletData , WitnessData ,
2222 } ,
2323} ;
2424
@@ -521,6 +521,48 @@ impl Wallet {
521521 . go_online ( skip_consistency_check, indexer_url)
522522 }
523523
524+ fn inflate (
525+ & self ,
526+ online : Online ,
527+ asset_id : String ,
528+ inflation_amounts : Vec < u64 > ,
529+ fee_rate : u64 ,
530+ min_confirmations : u8 ,
531+ ) -> Result < OperationResult , RgbLibError > {
532+ self . _get_wallet ( ) . inflate (
533+ online,
534+ asset_id,
535+ inflation_amounts,
536+ fee_rate,
537+ min_confirmations,
538+ )
539+ }
540+
541+ fn inflate_begin (
542+ & self ,
543+ online : Online ,
544+ asset_id : String ,
545+ inflation_amounts : Vec < u64 > ,
546+ fee_rate : u64 ,
547+ min_confirmations : u8 ,
548+ ) -> Result < String , RgbLibError > {
549+ self . _get_wallet ( ) . inflate_begin (
550+ online,
551+ asset_id,
552+ inflation_amounts,
553+ fee_rate,
554+ min_confirmations,
555+ )
556+ }
557+
558+ fn inflate_end (
559+ & self ,
560+ online : Online ,
561+ signed_psbt : String ,
562+ ) -> Result < OperationResult , RgbLibError > {
563+ self . _get_wallet ( ) . inflate_end ( online, signed_psbt)
564+ }
565+
524566 fn issue_asset_nia (
525567 & self ,
526568 ticker : String ,
@@ -636,7 +678,7 @@ impl Wallet {
636678 fee_rate : u64 ,
637679 min_confirmations : u8 ,
638680 skip_sync : bool ,
639- ) -> Result < SendResult , RgbLibError > {
681+ ) -> Result < OperationResult , RgbLibError > {
640682 self . _get_wallet ( ) . send (
641683 online,
642684 _convert_recipient_map ( recipient_map) ,
@@ -669,7 +711,7 @@ impl Wallet {
669711 online : Online ,
670712 signed_psbt : String ,
671713 skip_sync : bool ,
672- ) -> Result < SendResult , RgbLibError > {
714+ ) -> Result < OperationResult , RgbLibError > {
673715 self . _get_wallet ( ) . send_end ( online, signed_psbt, skip_sync)
674716 }
675717
0 commit comments