VirtualFileSystemAPI
Class
Class to interact with the VFS aOS contract.
resolvePathMsg
Generates a 'ResolvePath' query message for the VFS.
Name | Type | Description |
---|---|---|
| string | The path to resolve. |
resolvePath
Resolves the specified path to its corresponding address.
Name | Type | Description |
---|---|---|
| string | The path to resolve. |
registerUserMsg
Generates a 'RegisterUser' message for the VFS.
Name | Type | Description |
---|---|---|
| string | The username to register. |
registerUser
Registers a username for the currently used signing address.
Name | Type | Description |
---|---|---|
| string | The username to register. |
| Optional parameters to add to the execute message such as funds, memo or fee. |
OptionalExecuteParams
addPathMsg
Generates a 'AddPath' message for the VFS.
Name | Type | Description |
---|---|---|
| string | The name of the path to register the address to. |
| string | The address to register the path to. |
addPath
Registers a path for the currently used signing address.
Name | Type | Description |
---|---|---|
| string | The name of the path to register the address to. |
| string | The address to register the path to. |
| Optional parameters to add to the execute message such as funds, memo or fee. |
getUsernameMsg
Generates a 'GetUsername' query message for the VFS.
Name | Type | Description |
---|---|---|
| string | The address to get the username for. |
getUsername
Resolves the username for the given address
Name | Type | Description |
---|---|---|
| string | The address to get the username for. |
subDirMsg
Generates a 'SubDir' query message for the VFS.
Name | Type | Description |
---|---|---|
| string | The path to get sub paths for. |
subDir
Resolves the sub dir for a given path.
Name | Type | Description |
---|---|---|
| string | The path to get sub paths for. |
pathsMsg
Generates a 'paths' query message for the VFS.
Name | Type | Description |
---|---|---|
| string | The addr to get the paths for. |
paths
Resolves the paths for a given address
Name | Type | Description |
---|---|---|
| string | The addr to get the paths for. |
Last updated