@ocap/tx-protocols 1.28.6 → 1.28.8

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 (47) hide show
  1. package/README.md +1 -1
  2. package/lib/execute.js +0 -3
  3. package/lib/pipes/ensure-cost.js +0 -1
  4. package/lib/pipes/ensure-gas.js +0 -1
  5. package/lib/protocols/account/delegate.js +3 -5
  6. package/lib/protocols/account/migrate.js +1 -2
  7. package/lib/protocols/account/revoke-delegate.js +6 -3
  8. package/lib/protocols/asset/acquire-v2.js +26 -8
  9. package/lib/protocols/asset/acquire-v3.js +27 -12
  10. package/lib/protocols/asset/calls/transfer-token.js +0 -1
  11. package/lib/protocols/asset/calls/transfer.js +0 -1
  12. package/lib/protocols/asset/consume.js +9 -4
  13. package/lib/protocols/asset/create.js +6 -4
  14. package/lib/protocols/asset/mint.js +22 -6
  15. package/lib/protocols/asset/pipes/exec-mint-hook.js +0 -1
  16. package/lib/protocols/asset/pipes/verify-itx-assets.js +0 -1
  17. package/lib/protocols/asset/update.js +3 -2
  18. package/lib/protocols/factory/create.js +20 -7
  19. package/lib/protocols/governance/claim-stake.js +9 -4
  20. package/lib/protocols/governance/return-stake.js +9 -4
  21. package/lib/protocols/governance/revoke-stake.js +9 -4
  22. package/lib/protocols/governance/slash-stake.js +17 -5
  23. package/lib/protocols/governance/stake.js +12 -5
  24. package/lib/protocols/rollup/claim-reward.js +18 -8
  25. package/lib/protocols/rollup/close.js +6 -2
  26. package/lib/protocols/rollup/create-block.js +12 -6
  27. package/lib/protocols/rollup/create.js +14 -5
  28. package/lib/protocols/rollup/join.js +0 -2
  29. package/lib/protocols/rollup/leave.js +0 -2
  30. package/lib/protocols/rollup/migrate.js +6 -2
  31. package/lib/protocols/rollup/pause.js +6 -2
  32. package/lib/protocols/rollup/pipes/verify-evidence.js +0 -1
  33. package/lib/protocols/rollup/pipes/verify-signers.js +1 -2
  34. package/lib/protocols/rollup/resume.js +6 -2
  35. package/lib/protocols/rollup/update.js +5 -2
  36. package/lib/protocols/token/create.js +3 -2
  37. package/lib/protocols/token/deposit-v2.js +9 -5
  38. package/lib/protocols/token/withdraw-v2.js +9 -6
  39. package/lib/protocols/token-factory/burn.js +3 -1
  40. package/lib/protocols/token-factory/create.js +3 -2
  41. package/lib/protocols/token-factory/mint.js +4 -1
  42. package/lib/protocols/token-factory/update.js +3 -2
  43. package/lib/protocols/trade/exchange-v2.js +12 -5
  44. package/lib/protocols/trade/transfer-v3.js +4 -7
  45. package/lib/util.js +4 -1
  46. package/package.json +27 -29
  47. package/LICENSE +0 -13
package/package.json CHANGED
@@ -3,53 +3,51 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.28.6",
6
+ "version": "1.28.8",
7
7
  "description": "Predefined tx pipeline sets to execute certain type of transactions",
8
8
  "main": "lib/index.js",
9
9
  "files": [
10
10
  "lib"
11
11
  ],
12
+ "scripts": {
13
+ "lint": "biome check",
14
+ "lint:fix": "biome check --write",
15
+ "test": "bun test",
16
+ "test:ci": "bun test --coverage",
17
+ "coverage": "bun test --coverage"
18
+ },
12
19
  "keywords": [],
13
20
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
14
21
  "license": "MIT",
15
22
  "dependencies": {
23
+ "@arcblock/did": "1.28.8",
24
+ "@arcblock/did-util": "1.28.8",
25
+ "@arcblock/jwt": "1.28.8",
26
+ "@arcblock/validator": "1.28.8",
27
+ "@arcblock/vc": "1.28.8",
16
28
  "@blocklet/xss": "^0.3.7",
29
+ "@ocap/asset": "1.28.8",
30
+ "@ocap/client": "1.28.8",
31
+ "@ocap/mcrypto": "1.28.8",
32
+ "@ocap/merkle-tree": "1.28.8",
33
+ "@ocap/message": "1.28.8",
34
+ "@ocap/state": "1.28.8",
35
+ "@ocap/tx-pipeline": "1.28.8",
36
+ "@ocap/util": "1.28.8",
37
+ "@ocap/wallet": "1.28.8",
17
38
  "debug": "^4.3.6",
18
39
  "deep-diff": "^1.0.2",
19
40
  "empty-value": "^1.0.1",
20
41
  "lodash": "^4.17.21",
21
- "url-join": "^4.0.1",
22
- "@arcblock/did": "1.28.6",
23
- "@arcblock/did-util": "1.28.6",
24
- "@arcblock/jwt": "1.28.6",
25
- "@arcblock/validator": "1.28.6",
26
- "@arcblock/vc": "1.28.6",
27
- "@ocap/asset": "1.28.6",
28
- "@ocap/client": "1.28.6",
29
- "@ocap/mcrypto": "1.28.6",
30
- "@ocap/merkle-tree": "1.28.6",
31
- "@ocap/message": "1.28.6",
32
- "@ocap/state": "1.28.6",
33
- "@ocap/tx-pipeline": "1.28.6",
34
- "@ocap/util": "1.28.6",
35
- "@ocap/wallet": "1.28.6"
42
+ "url-join": "^4.0.1"
36
43
  },
37
44
  "resolutions": {
38
45
  "bn.js": "5.2.2",
39
46
  "elliptic": "6.5.3"
40
47
  },
41
48
  "devDependencies": {
42
- "jest": "^29.7.0",
43
- "start-server-and-test": "^1.14.0",
44
- "@ocap/e2e-test": "1.28.6",
45
- "@ocap/statedb-memory": "1.28.6"
46
- },
47
- "scripts": {
48
- "lint": "eslint tests lib",
49
- "lint:fix": "eslint --fix tests lib",
50
- "start": "node tools/start-chain.js",
51
- "test": "jest --forceExit --detectOpenHandles",
52
- "test:ci": "jest --forceExit --detectOpenHandles --coverage",
53
- "coverage": "start-server-and-test start http://127.0.0.1:4001 test:ci"
49
+ "@ocap/e2e-test": "1.28.8",
50
+ "@ocap/statedb-memory": "1.28.8",
51
+ "start-server-and-test": "^1.14.0"
54
52
  }
55
- }
53
+ }
package/LICENSE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2018-2025 ArcBlock
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.