ADODatabaseAPI
Class
API for ADODB specific messages.
export default class ADODatabaseAPI extends ADOAPI {
constructor(client: AndromedaClient, public address: string = "") {
super(client, address);
}getCodeIdQuery
Provides a message object for the factory's GetCodeId query.
getCodeIdQuery(name: string) {
return {
code_id: {
key: name,
},
};
}name
string
The key to get the code Id for.
getCodeId
Gets the code ID for an ADO type from the ADO DB
name
string
The key to get the code Id for.
address
string
The factory address.
getADOType
Retrieves the type of ADO from the provided code ID and ADO DB contract address.
codeId
number
The code Id.
address
string
The address of the ADO DB.
getAllADOQuery
Provides a message object for the ADO DB's 'getAllADO' query.
startAfter
string
The ADO to start after. Defaults to empty meaning all ADOs will be fetched
limit
string
Limit to the number of fetched ADOs. Defaults to 100.
getAllADO
startAfter
string
The ADO to start after. Defaults to empty meaning all ADOs will be fetched
limit
string
Limit to the number of fetched ADOs. Defaults to 100.
address
string
The contract address of the ADODB.
Last updated