OperatingSystemAPI

Class

Class to interact with teh aOS contracts.

export default class OperatingSystemAPI extends ADOAPI {
  public vfs?: VirtualFileSystemAPI;
  public adoDB?: ADODatabaseAPI;

  constructor(client: AndromedaClient, public address: string = "") {
    super(client, address);
  }
Name
Type
Description

vfs

The VFS API.

adoDB

The ADODB API.

assignKernelAddress

Assigns the kernel address before fetching any key addresses

async assignKernelAddress(address: string) {
    this.address = address;
    await this.fetchVFSAddress();
    await this.fetchADODBAddress();
  }
Name
Type
Description

address

string

The address of the kernel to assign.

fetchVFSAddress

Fetches the current VFS address from the kernel

fetchADODBAddress

Fetches the current ADODB address from the kernel.

getKeyAddressMessage

Generates a 'KeyAddress' kernel query for a given key

Name
Type
Description

key

string

The key to get the address for.

fetchKeyAddress

Fetches a key address for a given key from the currently assigned kernel

Name
Type
Description

address

string

The address of the kernel to assign.

Last updated