/
alias.ts
49 lines (46 loc) · 1.29 KB
/
alias.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Original work Copyright (c) 2019 Burst Apps Team
* Modified work Copyright (c) 2022 Signum Network
*/
/**
* Alias
*
* An alias is arbitrary _mutable_ on-chain data.
*
* This essentially allows one piece of text to be
* substituted for another, so that keywords or keyphrases can be used to represent
* other things – names, telephone numbers, physical addresses, web sites, account
* numbers, email addresses, product SKU codes... almost anything you can think of.
* @module core
*/
export interface Alias {
account: string;
accountRS: string;
/**
* If given, then this is account is on sale
*/
priceNQT?: string;
/**
* If given then this alias is on sale to that specific account
*/
buyer?: string;
alias: string;
aliasName: string;
/**
* This is the arbitrary content, up to 1000 chars
*/
aliasURI: string;
timestamp: number;
/**
* The id of the Top Level Domain (tld) aka namespace for this alias. Default is '0', which points to 'signum'
*/
tld?: string;
/**
* The name of the Top Level Domain (tld) aka namespace for this alias. Default is 'signum'
*/
tldName?: string;
/**
* Numbers of aliases within the namespace/ top level domain.
*/
numberOfAlias?: number;
}