@ocap/state 1.18.124 → 1.18.125
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/states/tx.js +4 -0
- package/package.json +8 -8
package/lib/states/tx.js
CHANGED
|
@@ -46,6 +46,8 @@ const getTxSender = ({ tx, typeUrl }) => {
|
|
|
46
46
|
case 'SetupSwapTx':
|
|
47
47
|
case 'WithdrawTokenTx':
|
|
48
48
|
case 'StakeTx':
|
|
49
|
+
case 'ReturnStakeTx':
|
|
50
|
+
case 'SlashStakeTx':
|
|
49
51
|
return tx.from;
|
|
50
52
|
default:
|
|
51
53
|
return '';
|
|
@@ -372,6 +374,8 @@ const getTxReceipts = ({ tx, code }, ctx = {}) => {
|
|
|
372
374
|
receipts = receipts.concat(getClaimStakeReceipts(tx, ctx, 'claim'));
|
|
373
375
|
} else if (['SlashStakeTx'].includes(typeUrl)) {
|
|
374
376
|
receipts = receipts.concat(getClaimStakeReceipts(tx, ctx, 'slash'));
|
|
377
|
+
} else if (['ReturnStakeTx'].includes(typeUrl)) {
|
|
378
|
+
receipts = receipts.concat(getClaimStakeReceipts(tx, ctx, 'stake'));
|
|
375
379
|
}
|
|
376
380
|
|
|
377
381
|
receipts = receipts.concat(getReceiptsFromContext(ctx));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.18.
|
|
6
|
+
"version": "1.18.125",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"coverage": "npm run test -- --coverage"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@arcblock/did": "1.18.
|
|
20
|
-
"@arcblock/validator": "1.18.
|
|
21
|
-
"@ocap/contract": "1.18.
|
|
22
|
-
"@ocap/mcrypto": "1.18.
|
|
23
|
-
"@ocap/message": "1.18.
|
|
24
|
-
"@ocap/util": "1.18.
|
|
19
|
+
"@arcblock/did": "1.18.125",
|
|
20
|
+
"@arcblock/validator": "1.18.125",
|
|
21
|
+
"@ocap/contract": "1.18.125",
|
|
22
|
+
"@ocap/mcrypto": "1.18.125",
|
|
23
|
+
"@ocap/message": "1.18.125",
|
|
24
|
+
"@ocap/util": "1.18.125",
|
|
25
25
|
"bloom-filters": "^1.3.9",
|
|
26
26
|
"lodash": "^4.17.21"
|
|
27
27
|
},
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"keywords": [],
|
|
32
32
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
33
33
|
"license": "MIT",
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "95177ceb3e85f6557cced378c5e2bc0684ec0218"
|
|
35
35
|
}
|