@ocap/indexdb 1.24.9 → 1.25.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/lib/util.js +3 -0
- package/package.json +3 -3
package/lib/util.js
CHANGED
@@ -16,6 +16,7 @@ const formatTokenMeta = (token, tokenStates, ...rest) => {
|
|
16
16
|
token.decimal = tokenState.decimal;
|
17
17
|
token.unit = tokenState.unit;
|
18
18
|
token.symbol = tokenState.symbol;
|
19
|
+
token.icon = tokenState.icon;
|
19
20
|
} else {
|
20
21
|
console.warn('Invalid token state on formatting', token, tokenStates, ...rest);
|
21
22
|
}
|
@@ -98,11 +99,13 @@ const createIndexedToken = (x) => ({
|
|
98
99
|
unit: x.unit,
|
99
100
|
decimal: x.decimal,
|
100
101
|
icon: x.icon,
|
102
|
+
website: x.website,
|
101
103
|
totalSupply: x.totalSupply,
|
102
104
|
initialSupply: x.initialSupply,
|
103
105
|
maxTotalSupply: x.maxTotalSupply,
|
104
106
|
foreignToken: x.foreignToken,
|
105
107
|
tokenFactoryAddress: x.tokenFactoryAddress,
|
108
|
+
metadata: x.metadata,
|
106
109
|
data: x.data,
|
107
110
|
genesisTime: x.context.genesisTime,
|
108
111
|
renaissanceTime: x.context.renaissanceTime,
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"publishConfig": {
|
4
4
|
"access": "public"
|
5
5
|
},
|
6
|
-
"version": "1.
|
6
|
+
"version": "1.25.0",
|
7
7
|
"description": "Defines the basic interface for OCAP IndexDB",
|
8
8
|
"main": "lib/main.js",
|
9
9
|
"files": [
|
@@ -21,8 +21,8 @@
|
|
21
21
|
"dependencies": {
|
22
22
|
"kareem": "^2.4.1",
|
23
23
|
"lodash": "^4.17.21",
|
24
|
-
"@ocap/state": "1.
|
25
|
-
"@ocap/util": "1.
|
24
|
+
"@ocap/state": "1.25.0",
|
25
|
+
"@ocap/util": "1.25.0"
|
26
26
|
},
|
27
27
|
"scripts": {
|
28
28
|
"lint": "eslint tests lib",
|