Skip to content

Commit 53743a1

Browse files
committed
fix: make internal set recipients in vaults
1 parent 5c18b6d commit 53743a1

File tree

2 files changed

+2
-74
lines changed

2 files changed

+2
-74
lines changed

packages/client/src/actions/vaults.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ export function vaultTransferOwnership(
338338
}
339339

340340
/**
341+
* @internal
341342
* Creates a transaction to deploy a recipients configuration contract for a vault.
342343
*
343344
* ```ts
@@ -382,10 +383,6 @@ export function vaultCreateRecipientsConfiguration(
382383
* },
383384
* chainId: chainId(1),
384385
* });
385-
*
386-
* if (result.isOk()) {
387-
* console.log('Splitter address:', result.value?.address);
388-
* }
389386
* ```
390387
*
391388
* @param client - Aave client.
@@ -402,6 +399,7 @@ export function vaultRecipientConfiguration(
402399
}
403400

404401
/**
402+
* @internal
405403
* Creates a transaction to set the recipients configuration for a vault.
406404
*
407405
* ```ts

packages/react/src/transactions.ts

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)