@@ -659,76 +659,6 @@ export function useVaultTransferOwnership(): UseAsyncTask<
659659 ) ;
660660}
661661
662- /**
663- * A hook that provides a way to deploy a recipients configuration for a vault.
664- *
665- * ```ts
666- * const [createRecipientsConfiguration, deploying] = useVaultCreateRecipientsConfiguration();
667- * const [sendTransaction, sending] = useSendTransaction(wallet);
668- *
669- * const loading = deploying.loading && sending.loading;
670- * const error = deploying.error || sending.error;
671- *
672- * // …
673- *
674- * const result = await createRecipientsConfiguration({ ... })
675- * .andThen(sendTransaction);
676- *
677- * if (result.isErr()) {
678- * console.error(result.error);
679- * return;
680- * }
681- *
682- * console.log('Transaction sent with hash:', result.value);
683- * ```
684- */
685- export function useVaultCreateRecipientsConfiguration ( ) : UseAsyncTask <
686- VaultCreateRecipientsConfigurationRequest ,
687- TransactionRequest ,
688- UnexpectedError
689- > {
690- const client = useAaveClient ( ) ;
691-
692- return useAsyncTask ( ( request : VaultCreateRecipientsConfigurationRequest ) =>
693- vaultCreateRecipientsConfiguration ( client , request ) ,
694- ) ;
695- }
696-
697- /**
698- * A hook that provides a way to set the recipients configuration for a vault.
699- *
700- * ```ts
701- * const [setRecipientsConfiguration, setting] = useVaultSetRecipientsConfiguration();
702- * const [sendTransaction, sending] = useSendTransaction(wallet);
703- *
704- * const loading = setting.loading && sending.loading;
705- * const error = setting.error || sending.error;
706- *
707- * // …
708- *
709- * const result = await setRecipientsConfiguration({ ... })
710- * .andThen(sendTransaction);
711- *
712- * if (result.isErr()) {
713- * console.error(result.error);
714- * return;
715- * }
716- *
717- * console.log('Transaction sent with hash:', result.value);
718- * ```
719- */
720- export function useVaultSetRecipientsConfiguration ( ) : UseAsyncTask <
721- VaultSetRecipientsConfigurationRequest ,
722- TransactionRequest ,
723- UnexpectedError
724- > {
725- const client = useAaveClient ( ) ;
726-
727- return useAsyncTask ( ( request : VaultSetRecipientsConfigurationRequest ) =>
728- vaultSetRecipientsConfiguration ( client , request ) ,
729- ) ;
730- }
731-
732662/**
733663 * A hook that provides a way to approve a credit borrow delegator to be able to borrow on your behalf.
734664 *
0 commit comments