Address List
The address list ADO is a smart contract that facilitates setting up permissions for ADOs. Instead of setting up the permission on the ADO itself, the owner can reference this ADO instead.
Permissioning allows ADO owners to give/restrict access to addresses to execute messages on their ADOs.
ADO_type: address-list
Version: 2.0.2-beta.1
InstantiateMsg
Name | Type | Description |
---|---|---|
| Option<ActionPermission> | Optional permission to set at instantiation. |
| String | Contract address of the kernel contract to be used for AMP messaging. Kernel contract address can be found in our deployed contracts. |
| Option<String> | Optional address to specify as the owner of the ADO being created. Defaults to the sender if not specified. |
ActionPermission
Name | Type | Description |
---|---|---|
| Addr | The address to apply the permission on. |
| The type of permission to assign to the actor. |
Permission
An enum to represent a user's permission for an action:
Expiration defaults to Never
if not provided.
Blacklisted: The user cannot perform the action until after the provided expiration.
Limited: The user can perform the action while uses are remaining and before the provided expiration.
Whitelisted: The user can perform the action until the provided expiration.
ExecuteMsg
AddActorPermission
Only available to the ADO owner.
Add permissioning to the specified list of actors (Addresses).
Name | Type | Description |
---|---|---|
| Vec<AndrAddr> | The list of addresses to apply the permission to. |
| The type of permission to assign to the actor. |
RemoveActorPermission
Only available to the ADO owner.
Removes previously set permission on the specified actors.
Name | Type | Description |
---|---|---|
| Vec<AndrAddr> | The address to remove permissions from. |
Base Executes
The rest of the execute messages can be found in the ADO Base section.
QueryMsg
IncludesActor
Checks if the specified actor has any permissions applied.
Name | Type | Description |
---|---|---|
| Addr | The address to check permissions for. |
Returns true if the address has any permissions and false otherwise.
ActorPermission
Queries the permission applied on the specified actor.
Name | Type | Description |
---|---|---|
| Addr | The address to get permissions for. |
Returns a Permission struct with the type of permission.
Base Queries
The rest of the query messages can be found in the ADO Base section.