Andromeda
Search…
Factory

Introduction

The Factory ADO is a smart contract that is primarily used to store code ids for contracts when creating Andromeda Apps.
Ado_type: factory

InstantiateMsg

Rust
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
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
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
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
receipt_code_id
Option<u64>
Optional new code ID for the receipt contracts.
token_code_id
Option<u64>
Optional new code ID for the contract.

AndrReceive

QueryMsg

CodeId

Query the code_id of the specified key.
Rust
JSON
pub enum QueryMsg {
CodeId {
key:String,
}
}
{
"code_id": {
"key": "..."
}
}
Name
Type
Description
key
String
The key of the contract which we want the code id of.
Returns a u64 which represents the code_id.

AndrQuery

Check AndrQuery.
Copy link
Outline
Introduction
InstantiateMsg
ExecuteMsg
UpdateCodeId
AndrReceive
QueryMsg
CodeId
AndrQuery