@ocap/indexdb 1.13.58 → 1.13.62

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.
Files changed (2) hide show
  1. package/lib/util.js +4 -9
  2. 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) => {
@@ -186,7 +183,7 @@ const createIndexedTransaction = (tx, ctx) => {
186
183
  tx.tokenSymbols = [];
187
184
  }
188
185
 
189
- tx.accounts = [...tx.accounts, tx.stakes];
186
+ tx.accounts = [...tx.accounts, ...tx.stakes];
190
187
 
191
188
  return tx;
192
189
  };
@@ -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.58",
6
+ "version": "1.13.62",
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.58",
26
- "@ocap/util": "1.13.58",
25
+ "@ocap/state": "1.13.62",
26
+ "@ocap/util": "1.13.62",
27
27
  "kareem": "^2.3.2",
28
28
  "lodash": "^4.17.21"
29
29
  },
30
- "gitHead": "5eabfe8405725ee0193f76a9f7cd895d8c763e52"
30
+ "gitHead": "a14f8d2ade8dc0c58fd9fbf331a4eb9b842de6ed"
31
31
  }