@abtnode/constant 1.8.36 → 1.8.38

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/index.js +22 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -272,6 +272,9 @@ const WHO_CAN_ACCESS = {
272
272
  ALL: 'all',
273
273
  };
274
274
 
275
+ const BLOCKLET_STORE_URL = 'https://store.blocklet.dev';
276
+ const BLOCKLET_STORE_URL_DEV = 'https://dev.store.blocklet.dev';
277
+
275
278
  module.exports = Object.freeze({
276
279
  // Blocklet Server
277
280
  NODE_MODES: Object.freeze({
@@ -296,7 +299,7 @@ module.exports = Object.freeze({
296
299
  VC_TYPE_GENERAL_PASSPORT: 'NFTPassport',
297
300
 
298
301
  NFT_TYPE_SERVER_OWNERSHIP: 'BlockletServerOwnershipNFT',
299
- NFT_TYPE_SERVER_USAGE_CREDENTIAL: 'BlockletServerUsageCredential',
302
+ NFT_TYPE_SERVERLESS: 'BlockletServerServerlessNFT',
300
303
 
301
304
  NODE_PACKAGE_NAME: '@abtnode/cli', // deprecated in 1.6.0
302
305
  NODE_COMMAND_NAME: 'abtnode', // deprecated in 1.6.0
@@ -315,11 +318,25 @@ module.exports = Object.freeze({
315
318
 
316
319
  NODE_REGISTER_URL: 'https://install.arcblock.io/',
317
320
  WEB_WALLET_URL: 'https://web.abtwallet.io',
318
- BLOCKLET_STORE_URL: 'https://store.blocklet.dev',
319
- BLOCKLET_STORE_URL_DEV: 'https://dev.store.blocklet.dev',
321
+ BLOCKLET_STORE_URL,
322
+ BLOCKLET_STORE_URL_DEV,
320
323
  BLOCKLET_STORE_API_PREFIX: '/api',
321
324
  BLOCKLET_STORE_API_BLOCKLET_PREFIX: '/api/blocklets',
322
325
  BLOCKLET_STORE_META_PATH: '/api/store.json',
326
+ BLOCKLET_STORE: {
327
+ name: 'Official Store',
328
+ description: 'ArcBlock official blocklet registry',
329
+ url: BLOCKLET_STORE_URL,
330
+ logoUrl: '/logo.png',
331
+ maintainer: 'arcblock',
332
+ },
333
+ BLOCKLET_STORE_DEV: {
334
+ name: 'Dev Store',
335
+ description: 'ArcBlock dev registry that contains demo and example blocklets',
336
+ url: BLOCKLET_STORE_URL_DEV,
337
+ maintainer: 'arcblock',
338
+ logoUrl: '/logo.png',
339
+ },
323
340
 
324
341
  DEFAULT_DID_REGISTRY: 'https://registry.abtnet.io',
325
342
  DEFAULT_DID_DOMAIN: 'did.abtnet.io',
@@ -359,6 +376,7 @@ module.exports = Object.freeze({
359
376
  WELLKNOWN_DID_RESOLVER_PREFIX: '/.well-known/did.json',
360
377
  WELLKNOWN_PING_PREFIX: '/.well-known/ping',
361
378
  WELLKNOWN_SERVICE_PATH_PREFIX: '/.well-known/service',
379
+ WELLKNOWN_BLOCKLET_ADMIN_PATH: '/.well-known/service/admin',
362
380
  SLOT_FOR_IP_DNS_SITE: '888-888-888-888',
363
381
 
364
382
  DEFAULT_ADMIN_PATH: '/admin',
@@ -410,6 +428,7 @@ module.exports = Object.freeze({
410
428
  EVENTS,
411
429
 
412
430
  WHO_CAN_ACCESS,
431
+ WHO_CAN_ACCESS_PREFIX_ROLES: 'roles:',
413
432
 
414
433
  GATEWAY_REQ_LIMIT: Object.freeze({
415
434
  min: 10,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.36",
6
+ "version": "1.8.38",
7
7
  "description": "ABT Node constants",
8
8
  "main": "index.js",
9
9
  "files": [
@@ -20,5 +20,5 @@
20
20
  "devDependencies": {
21
21
  "jest": "^27.5.1"
22
22
  },
23
- "gitHead": "507e974ce88bad1aa002c593130b32982207f803"
23
+ "gitHead": "cbb88f107eb6b403c8cd47a765920575860c7bc7"
24
24
  }