@ocap/resolver 1.18.18 → 1.18.20

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/index.js +4 -2
  2. package/package.json +12 -12
package/lib/index.js CHANGED
@@ -65,6 +65,7 @@ const maxGasOps = {
65
65
  'fg:t:stake': { create: 2, update: 18 },
66
66
  'fg:t:revoke_stake': { create: 1, update: 2 },
67
67
  'fg:t:claim_stake': { create: 2, update: 18 },
68
+ 'fg:t:slash_stake': { update: 18 },
68
69
 
69
70
  'fg:t:transfer': { create: 2, update: 20 },
70
71
  'fg:t:transfer_v2': { create: 2, update: 20 },
@@ -498,7 +499,7 @@ module.exports = class OCAPResolver {
498
499
  }
499
500
 
500
501
  getForgeState() {
501
- const { accounts, token, transaction } = this.config;
502
+ const { accounts, token, transaction, vaults } = this.config;
502
503
  return Promise.resolve({
503
504
  accountConfig: accounts,
504
505
  address: 'forge_state',
@@ -513,6 +514,7 @@ module.exports = class OCAPResolver {
513
514
  data: null,
514
515
  tasks: [],
515
516
  token,
517
+ vaults,
516
518
  txConfig: {
517
519
  ...transaction,
518
520
  txGas: {
@@ -983,7 +985,7 @@ module.exports = class OCAPResolver {
983
985
  'address'
984
986
  ).filter((x) => x.address)
985
987
  );
986
- } else if (typeUrl === 'RevokeStakeTx') {
988
+ } else if (['RevokeStakeTx', 'SlashStakeTx'].includes(typeUrl)) {
987
989
  tokens.push(
988
990
  ...uniqBy(
989
991
  tx.tx.itxJson.outputs.reduce((acc, x) => acc.concat(x.tokens), []),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.18",
6
+ "version": "1.18.20",
7
7
  "description": "GraphQL resolver built upon ocap statedb and GQL layer",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -22,18 +22,18 @@
22
22
  "jest": "^27.5.1"
23
23
  },
24
24
  "dependencies": {
25
- "@arcblock/did": "1.18.18",
26
- "@arcblock/did-util": "1.18.18",
27
- "@arcblock/validator": "1.18.18",
28
- "@ocap/config": "1.18.18",
29
- "@ocap/indexdb": "1.18.18",
30
- "@ocap/mcrypto": "1.18.18",
31
- "@ocap/message": "1.18.18",
32
- "@ocap/state": "1.18.18",
33
- "@ocap/tx-protocols": "1.18.18",
34
- "@ocap/util": "1.18.18",
25
+ "@arcblock/did": "1.18.20",
26
+ "@arcblock/did-util": "1.18.20",
27
+ "@arcblock/validator": "1.18.20",
28
+ "@ocap/config": "1.18.20",
29
+ "@ocap/indexdb": "1.18.20",
30
+ "@ocap/mcrypto": "1.18.20",
31
+ "@ocap/message": "1.18.20",
32
+ "@ocap/state": "1.18.20",
33
+ "@ocap/tx-protocols": "1.18.20",
34
+ "@ocap/util": "1.18.20",
35
35
  "debug": "^4.3.4",
36
36
  "lodash": "^4.17.21"
37
37
  },
38
- "gitHead": "c8575d3072c92339706ecb31613ed2ec75553745"
38
+ "gitHead": "f220849b0c31f7f90281684080f001e18df9e077"
39
39
  }