Skip to content

Commit b15b74c

Browse files
committed
fix: set actions as internal
1 parent c82c040 commit b15b74c

File tree

2 files changed

+2
-53
lines changed

2 files changed

+2
-53
lines changed

packages/client/src/actions/vaults.ts

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -339,30 +339,6 @@ export function vaultTransferOwnership(
339339

340340
/**
341341
* @internal
342-
* Creates a transaction to deploy a recipients configuration contract for a vault.
343-
*
344-
* ```ts
345-
* const result = await vaultCreateRecipientsConfiguration(client, {
346-
* vault: evmAddress('0x1234…'),
347-
* chainId: chainId(1),
348-
* recipients: [
349-
* {
350-
* address: evmAddress('0x5678…'),
351-
* percent: bigDecimal('5000'), // 50%
352-
* },
353-
* {
354-
* address: evmAddress('0x9abc…'),
355-
* percent: bigDecimal('5000'), // 50%
356-
* },
357-
* ],
358-
* })
359-
* .andThen(sendWith(wallet))
360-
* .andThen(client.waitForTransaction);
361-
* ```
362-
*
363-
* @param client - Aave client.
364-
* @param request - The vault create recipients configuration request parameters.
365-
* @returns The transaction data for deploying a recipients configuration.
366342
*/
367343
export function vaultCreateRecipientsConfiguration(
368344
client: AaveClient,
@@ -374,20 +350,7 @@ export function vaultCreateRecipientsConfiguration(
374350
}
375351

376352
/**
377-
* Retrieves the current recipients configuration for a vault.
378-
*
379-
* ```ts
380-
* const result = await vaultRecipientConfiguration(client, {
381-
* by: {
382-
* address: evmAddress('0x1234…'),
383-
* },
384-
* chainId: chainId(1),
385-
* });
386-
* ```
387-
*
388-
* @param client - Aave client.
389-
* @param request - The vault recipient configuration request parameters.
390-
* @returns The recipients configuration data or null if not set.
353+
* @internal
391354
*/
392355
export function vaultRecipientConfiguration(
393356
client: AaveClient,
@@ -400,21 +363,6 @@ export function vaultRecipientConfiguration(
400363

401364
/**
402365
* @internal
403-
* Creates a transaction to set the recipients configuration for a vault.
404-
*
405-
* ```ts
406-
* const result = await vaultSetRecipientsConfiguration(client, {
407-
* vault: evmAddress('0x1234567890abcdef1234567890abcdef12345678'),
408-
* chainId: chainId(1),
409-
* configuration: evmAddress('0x5678901234567890abcdef1234567890abcdef12'),
410-
* })
411-
* .andThen(sendWith(wallet))
412-
* .andThen(client.waitForTransaction);
413-
* ```
414-
*
415-
* @param client - Aave client.
416-
* @param request - The vault set recipients configuration request parameters.
417-
* @returns The transaction data for setting the recipients configuration.
418366
*/
419367
export function vaultSetRecipientsConfiguration(
420368
client: AaveClient,

packages/spec/vaults/vaults.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ describe('Given the Aave Vaults', () => {
290290
chainId: initialVault.chainId,
291291
}).map(nonNullable);
292292
assertOk(newVaultInfo);
293+
expect(newVaultInfo.value.owner).toEqual(initialVault.owner);
293294
expect(newVaultInfo.value.recipients?.entries).toMatchSnapshot();
294295
}, 50_000);
295296
});

0 commit comments

Comments
 (0)