An Account is a user or an organization on Valist that can publish their own projects. An account can be used for an individual, team or an organization. Accounts are used interchangeably for Teams or Personal accounts on Valist.
An accountID is the unique identifier Valist's smart contracts use to identify accounts. It is the keccak256 hash of the Chain ID concatenated by the Account Name.
Generate ID Function
The generate ID function generates an ID for an account.
If you're generating an account ID, this is the chain ID which the account belongs to.
If you're generating a project ID, this is the account ID.
If you're generating a release ID, this is the project ID.
The name of the account, project, or release. Also used as a parameter in the createAccount method.
The SDK exposes the account metadata class to provide an interface for the data keys associated with an account.
// Class for account metadata
/** account image */
public image?: string;
/** account friendly name. */
public name?: string;
/** short description of the account. */
public description?: string;
/** link to the account website. */
public external_url?: string;
The Valist client class has the following public methods interacting with accounts.
Create Account Method
This method creates an account on Valist. It takes in the name, account metadata and the list of members as parameters.
Desired name of the account. Also used to generate the accountID.
Metadata associated with the account. (Can be updated)
List of addresses that are will control this account.
AccountExists method Readonly
This method checks if an account exists on the Valist Registry on IPFS
GetAccountMeta Method Readonly
This method returns the metadata associated with the account.