Andromeda
Search
⌃K

ADO Database

Introduction

The Database ADO is a smart contract that is primarily used to store code ids for ADOs to be used when creating Andromeda Apps. The code Ids are stored within a key value pair where the key is usually the ADO name and the value is the ADO code Id.
Ado_type: adodb

InstantiateMsg

Rust
pub struct InstantiateMsg {}

ExecuteMsg

UpdateCodeId

Assigns a code_id to the specified code_id_key. This is used to store the code ids of ADOs in Apps.
Only available to the contract owner/operators.
Rust
JSON
pub enum ExecuteMsg {
UpdateCodeId {
code_id_key: String,
code_id: u64,
},
}
{
"update_code_id": {
"code_id_key": "adress_list",
"code_id": 2
}
}
Name
Type
Description
code_id_key
String
The ADO key to change the code Id for
code_id
u64
The new code Id for the ADO.

AndrReceive

Check AndrReceive.

QueryMsg

CodeId

Query the code_id of the specified key.
Rust
JSON
pub enum QueryMsg {
#[returns(u64)]
CodeId {
key:String,
}
}
{
"code_id": {
"key": "cw721"
}
}
Name
Type
Description
key
String
The key of the ADO which we want the code Id of.
Returns a u64 which represents the code_id.

AdoTypes

Lists all the available ADO types.
Rust
JSON
#[returns(Vec<String>)]
AdoTypes {
limit: Option<u32>,
start_after: Option<String>,
}
}
{
"ado_types":{
"limit": 30,
"start_after": "rates"
}
}
Name
Type
Description
limit
Option<u32>
An optional limit to the number of ADO types returned. The default limit is 25 and the maximum limit is 100.
start_after
Option<String>
Optional Id to start after.

AndrQuery

A set of base queries common to all Andromeda ADOs. Check AndrQuery.