@ocap/indexdb 1.13.59 → 1.13.63
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 -8
- package/package.json +4 -4
package/lib/util.js
CHANGED
|
@@ -80,9 +80,6 @@ const createIndexedToken = (x) => ({
|
|
|
80
80
|
data: x.data,
|
|
81
81
|
genesisTime: x.context.genesisTime,
|
|
82
82
|
renaissanceTime: x.context.renaissanceTime,
|
|
83
|
-
|
|
84
|
-
// TODO: deprecate this field
|
|
85
|
-
erc20ContractAddress: x.foreignToken ? x.foreignToken.contractAddress : '',
|
|
86
83
|
});
|
|
87
84
|
|
|
88
85
|
const createIndexedFactory = async (factory, context) => {
|
|
@@ -248,6 +245,8 @@ const createIndexedRollup = async (x, ctx) => {
|
|
|
248
245
|
'blockHeight',
|
|
249
246
|
'blockHash',
|
|
250
247
|
'leaveWaitingPeriod',
|
|
248
|
+
'publishWaitingPeriod',
|
|
249
|
+
'publishSlashRate',
|
|
251
250
|
'data',
|
|
252
251
|
]),
|
|
253
252
|
genesisTime: x.context.genesisTime,
|
|
@@ -258,11 +257,6 @@ const createIndexedRollup = async (x, ctx) => {
|
|
|
258
257
|
const tokenState = ctx.tokenStates.find((t) => t.address === x.tokenAddress);
|
|
259
258
|
rollup.tokenInfo = formatTokenMeta({ address: x.tokenAddress, value: '0' }, ctx.tokenStates);
|
|
260
259
|
rollup.foreignToken = tokenState.foreignToken;
|
|
261
|
-
|
|
262
|
-
// TODO: deprecate following 3 fields
|
|
263
|
-
rollup.erc20TokenAddress = tokenState.foreignToken.contractAddress;
|
|
264
|
-
rollup.foreignChainType = tokenState.foreignToken.chainType;
|
|
265
|
-
rollup.foreignChainId = tokenState.foreignToken.chainName;
|
|
266
260
|
}
|
|
267
261
|
|
|
268
262
|
return rollup;
|
|
@@ -283,6 +277,7 @@ const createIndexedRollupBlock = async (x, ctx) => {
|
|
|
283
277
|
'mintedAmount',
|
|
284
278
|
'burnedAmount',
|
|
285
279
|
'rewardAmount',
|
|
280
|
+
'minReward',
|
|
286
281
|
'data',
|
|
287
282
|
]),
|
|
288
283
|
genesisTime: x.context.genesisTime,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.13.
|
|
6
|
+
"version": "1.13.63",
|
|
7
7
|
"description": "Defines the basic interface for OCAP IndexDB",
|
|
8
8
|
"main": "lib/main.js",
|
|
9
9
|
"files": [
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"jest": "^27.3.1"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ocap/state": "1.13.
|
|
26
|
-
"@ocap/util": "1.13.
|
|
25
|
+
"@ocap/state": "1.13.63",
|
|
26
|
+
"@ocap/util": "1.13.63",
|
|
27
27
|
"kareem": "^2.3.2",
|
|
28
28
|
"lodash": "^4.17.21"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "7e40f22f90f4f5ac08fde3d4d3b7194aa792c95d"
|
|
31
31
|
}
|