Constructs an instance of AclClient.
The AptosProvider instance.
Optional
signer: Ed25519AccountOptional Ed25519Account signer.
Adds an admin controlled ecosystem reserve admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Adds an asset listing admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Adds a bridge.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Adds an emergency admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Adds an emission admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Adds a flash borrower.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Adds a funds admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Adds a pool admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Adds a rewards controller admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Adds a risk admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Builds a transaction for the specified user, function, and arguments.
The account address of the user initiating the transaction.
The identifier of the Move function to be called.
An array of arguments for the entry function.
A promise that resolves to a SimpleTransaction object.
Calls a view method on the Aptos blockchain.
The identifier of the function to call.
The arguments to pass to the function.
Optional generic type arguments for the function (e.g. ["0x1::aptos_coin::AptosCoin"]
).
Removes an admin controlled ecosystem reserve admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Funds an account with a specified amount.
The address of the account to be funded.
The amount to fund the account with, in bigint.
A promise that resolves to a UserTransactionResponse.
Retrieves the Aptos balance of a specified account.
The Ed25519 account object.
The address of the account to retrieve the balance for.
Optional
versionToWaitFor: bigint(Optional) The specific version to wait for before retrieving the balance.
A promise that resolves to the balance of the account in bigint.
Gets the admin controlled ecosystem reserve admin role.
A promise that resolves to the admin controlled ecosystem reserve admin role as a string.
Gets the asset listing admin role.
A promise that resolves to the asset listing admin role as a string.
Gets the bridge role.
A promise that resolves to the bridge role as a string.
Gets the default admin role.
A promise that resolves to the default admin role as a string.
Gets the emergency admin role.
A promise that resolves to the emergency admin role as a string.
Gets the emissions admin role.
A promise that resolves to the emissions admin role as a string.
Retrieves events associated with a specific account.
The address of the account to retrieve events for.
The maximum number of events to retrieve.
A promise that resolves to an array of event objects, each containing:
account_address
: The address of the account.creation_number
: The creation number of the event.data
: The data associated with the event.event_index
: The index of the event.sequence_number
: The sequence number of the event.transaction_block_height
: The block height of the transaction.transaction_version
: The version of the transaction.type
: The type of the event.indexed_type
: The indexed type of the event.Gets the flash borrower role.
A promise that resolves to the flash borrower role as a string.
Gets the funds admin role.
A promise that resolves to the funds admin role as a string.
Gets the pool admin role.
A promise that resolves to the pool admin role as a string.
Gets the rewards controller role.
A promise that resolves to the rewards controller admin role as a string.
Gets the risk admin role.
A promise that resolves to the risk admin role as a string.
Gets the admin role for a specific role.
The role to get the admin role for.
A promise that resolves to the admin role as a string.
Retrieves the current Ed25519Account signer.
The current signer.
Retrieves the events associated with a given transaction hash.
The hash of the transaction to retrieve events for.
A promise that resolves to an array of objects containing the event data.
Grants a role to a user.
The role to grant.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Checks if a user has a specific role.
The role to check.
The account address of the user.
A promise that resolves to a boolean indicating if the user has the role.
Checks if a user is an admin controlled ecosystem reserve admin.
The account address of the user.
A promise that resolves to a boolean indicating if the user is an admin controlled ecosystem reserve admin.
Checks if a user is an asset listing admin.
The account address of the user.
A promise that resolves to a boolean indicating if the user is an asset listing admin.
Checks if a user is a bridge.
The account address of the user.
A promise that resolves to a boolean indicating if the user is a bridge.
Checks if a user is an emergency admin.
The account address of the user.
A promise that resolves to a boolean indicating if the user is an emergency admin.
Checks if a user is an emission admin.
The account address of the user.
A promise that resolves to a boolean indicating if the user is an emission admin.
Checks if a user is a flash borrower.
The account address of the user.
A promise that resolves to a boolean indicating if the user is a flash borrower.
Checks if a user is a funds admin.
The account address of the user.
A promise that resolves to a boolean indicating if the user is a funds admin.
Checks if a user is a pool admin.
The account address of the user.
A promise that resolves to a boolean indicating if the user is a pool admin.
Checks if a user is a rewards controller admin.
The account address of the user.
A promise that resolves to a boolean indicating if the user is a rewards controller admin.
Checks if a user is a risk admin.
The account address of the user.
A promise that resolves to a boolean indicating if the user is a risk admin.
Removes an asset listing admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Removes a bridge.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Removes an emergency admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Removes an emissions admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Removes a flash borrower.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Removes a funds admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Removes a pool admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Removes a rewards controller admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Removes a risk admin.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Renounces a role for a user.
The role to renounce.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Revokes a role from a user.
The role to revoke.
The account address of the user.
A promise that resolves to a CommittedTransactionResponse.
Sends a transaction and awaits the response.
The ID of the Move function to be called.
An array of arguments for the entry function.
A promise that resolves to the committed transaction response.
Sets the admin role for a specific role.
The role to set the admin role for.
The admin role to set.
A promise that resolves to a CommittedTransactionResponse.
Sets the signer for the client.
The Ed25519 account to be used as the signer.
Sets the signer to the module signer and returns the current instance.
The current instance with the module signer set.
Sets the signer for the current instance using the provided Ed25519 account.
The Ed25519 account to be used as the signer.
The current instance with the signer set.
Static
buildCreates an instance of AclClient using the default signer from the provided AptosProvider.
The AptosProvider instance to use for creating the AclClient.
A new instance of AclClient.
Represents the AclClient class which provides methods to interact with the ACL (Access Control List) manager contract within the AAVE protocol on the Aptos blockchain.
Remarks
This client extends AptosContractWrapperBaseClass and provides a comprehensive set of methods for managing roles and permissions, including core role management, pool administration, emergency controls, risk management, and various specialized admin roles. Each method corresponds to a specific ACL operation in the AAVE protocol.
The client can be instantiated in two ways:
Example
Param: provider
The AptosProvider instance used to interact with the Aptos blockchain.
Param: signer
Optional Ed25519Account signer for transaction signing.