Skip to content

Commit

Permalink
feat: updated DID Spaces NFT test cases (#246)
Browse files Browse the repository at this point in the history
* feat: updated DID Spaces NFT test cases
  • Loading branch information
skypesky committed Feb 20, 2024
1 parent 0e896ed commit 0009c7d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BLOCKLET_PORT=8142
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.36.76 (February 20, 2024)

- feat: updated DID Spaces NFT test cases

## 0.36.75 (February 07, 2024)

- chore: bump deps to latest
Expand Down
5 changes: 3 additions & 2 deletions api/routes/auth/test-nft-or-vc-filter-only-did-spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const { fromPublicKey } = require('@ocap/wallet');
const { toAddress, fromBase58, toBuffer } = require('@ocap/util');
const { toTypeInfo } = require('@arcblock/did');
const { getDidSpacesInfoByClaims } = require('@abtnode/auth/lib/util/spaces');
const { DID_SPACES } = require('@blocklet/constant');
const { verifyAssetClaim } = require('../../libs/util');
const { wallet } = require('../../libs/auth');

Expand Down Expand Up @@ -50,10 +51,10 @@ module.exports = {
optional: false,
filters: [
{
tag: 'did-space-purchase-nft', // 用于筛选 NFT
tag: DID_SPACES.NFT_TAG, // 用于筛选 NFT
},
{
type: ['PersonalSpaceVerifiableCredential', 'EnterpriseSpaceVerifiableCredential'], // 用于筛选 VC
type: DID_SPACES.VC_TYPES, // 用于筛选 VC
},
],
meta: {
Expand Down
2 changes: 1 addition & 1 deletion blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ files:
- blocklet.md
- README.md
- build
version: 0.36.75
version: 0.36.76
author:
name: ArcBlock
email: blocklet@arcblock.io
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"blocklet.yml",
"README.md"
],
"version": "0.36.75",
"version": "0.36.76",
"author": "wangshijun <shijun@arcblock.io> https://github.com/wangshijun",
"keywords": [
"dapp",
Expand Down Expand Up @@ -41,6 +41,7 @@
"@arcblock/react-hooks": "2.9.29",
"@arcblock/ux": "^2.9.29",
"@arcblock/vc": "^1.18.110",
"@blocklet/constant": "^1.16.23",
"@blocklet/sdk": "1.16.23",
"@blocklet/ui-react": "2.9.29",
"@emotion/react": "^11.10.5",
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.36.75
0.36.76
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@blocklet/constant@1.16.23":
"@blocklet/constant@1.16.23", "@blocklet/constant@^1.16.23":
version "1.16.23"
resolved "https://registry.yarnpkg.com/@blocklet/constant/-/constant-1.16.23.tgz#35234aa8e43c129d468e65e5a9cb54249f98b5fa"
integrity sha512-UtS3y72AR+WOqQ7niQ6Hf+cFHaqS2iLHncfWWtI+L1xS4tnbOgrOXt6ww5B+d2uYHKgUO640IfZ0FMp30QGnqA==
Expand Down

0 comments on commit 0009c7d

Please sign in to comment.