@xrplkit/xls26 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +2 -0
- package/xls26.js +14 -0
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -40,6 +40,7 @@ currency = "ELS"
|
|
|
40
40
|
name = "Elysian"
|
|
41
41
|
desc = "The first Token for the Art and NFT Industry running on the XRPL."
|
|
42
42
|
icon = "https://static.xrplmeta.org/icons/els.png"
|
|
43
|
+
asset_class = "cryptocurrency"
|
|
43
44
|
|
|
44
45
|
[[TOKENS.WEBLINKS]]
|
|
45
46
|
url = "https://twitter.com/Elysianers"
|
|
@@ -75,6 +76,7 @@ type = "community"
|
|
|
75
76
|
name: 'Elysian',
|
|
76
77
|
desc: 'The first Token for the Art and NFT Industry running on the XRPL.',
|
|
77
78
|
icon: 'https://static.xrplmeta.org/icons/els.png',
|
|
79
|
+
asset_class: 'cryptocurrency',
|
|
78
80
|
weblinks: [
|
|
79
81
|
{
|
|
80
82
|
url: 'https://twitter.com/Elysianers',
|
package/xls26.js
CHANGED
|
@@ -22,6 +22,13 @@ const validAdvisoryTypes = [
|
|
|
22
22
|
'hijacked'
|
|
23
23
|
]
|
|
24
24
|
|
|
25
|
+
const validAssetClasses = [
|
|
26
|
+
'fiat',
|
|
27
|
+
'commodity',
|
|
28
|
+
'stocks',
|
|
29
|
+
'cryptocurrency'
|
|
30
|
+
]
|
|
31
|
+
|
|
25
32
|
const issuerFields = [
|
|
26
33
|
{
|
|
27
34
|
key: 'address',
|
|
@@ -122,6 +129,13 @@ const tokenFields = [
|
|
|
122
129
|
if(v < 0 || v > 3)
|
|
123
130
|
throw 'has to be between 0 and 3'
|
|
124
131
|
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: 'asset_class',
|
|
135
|
+
validate: v => {
|
|
136
|
+
if(!validAssetClasses.includes(v))
|
|
137
|
+
throw `needs to be one of the following: ${validAssetClasses.join(', ')}`
|
|
138
|
+
}
|
|
125
139
|
}
|
|
126
140
|
]
|
|
127
141
|
|