@beclab/olaresid 0.1.1 → 0.1.2

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 (87) hide show
  1. package/CLI.md +1300 -0
  2. package/README.md +37 -31
  3. package/TAG.md +589 -0
  4. package/dist/abi/RootResolver2ABI.d.ts +54 -0
  5. package/dist/abi/RootResolver2ABI.d.ts.map +1 -0
  6. package/dist/abi/RootResolver2ABI.js +240 -0
  7. package/dist/abi/RootResolver2ABI.js.map +1 -0
  8. package/dist/business/index.d.ts +302 -0
  9. package/dist/business/index.d.ts.map +1 -0
  10. package/dist/business/index.js +1209 -0
  11. package/dist/business/index.js.map +1 -0
  12. package/dist/business/tag-context.d.ts +219 -0
  13. package/dist/business/tag-context.d.ts.map +1 -0
  14. package/dist/business/tag-context.js +537 -0
  15. package/dist/business/tag-context.js.map +1 -0
  16. package/dist/cli.js +2085 -39
  17. package/dist/cli.js.map +1 -1
  18. package/dist/debug.d.ts.map +1 -1
  19. package/dist/debug.js +14 -2
  20. package/dist/debug.js.map +1 -1
  21. package/dist/index.d.ts +50 -2
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +229 -9
  24. package/dist/index.js.map +1 -1
  25. package/dist/utils/crypto-utils.d.ts +130 -0
  26. package/dist/utils/crypto-utils.d.ts.map +1 -0
  27. package/dist/utils/crypto-utils.js +402 -0
  28. package/dist/utils/crypto-utils.js.map +1 -0
  29. package/dist/utils/error-parser.d.ts +35 -0
  30. package/dist/utils/error-parser.d.ts.map +1 -0
  31. package/dist/utils/error-parser.js +202 -0
  32. package/dist/utils/error-parser.js.map +1 -0
  33. package/dist/utils/tag-abi-codec.d.ts +69 -0
  34. package/dist/utils/tag-abi-codec.d.ts.map +1 -0
  35. package/dist/utils/tag-abi-codec.js +144 -0
  36. package/dist/utils/tag-abi-codec.js.map +1 -0
  37. package/dist/utils/tag-type-builder.d.ts +158 -0
  38. package/dist/utils/tag-type-builder.d.ts.map +1 -0
  39. package/dist/utils/tag-type-builder.js +410 -0
  40. package/dist/utils/tag-type-builder.js.map +1 -0
  41. package/examples/crypto-utilities.ts +140 -0
  42. package/examples/domain-context.ts +80 -0
  43. package/examples/generate-mnemonic.ts +149 -0
  44. package/examples/index.ts +1 -1
  45. package/examples/ip.ts +171 -0
  46. package/examples/legacy.ts +10 -10
  47. package/examples/list-wallets.ts +81 -0
  48. package/examples/quasar-demo/.eslintrc.js +23 -0
  49. package/examples/quasar-demo/.quasar/app.js +43 -0
  50. package/examples/quasar-demo/.quasar/client-entry.js +38 -0
  51. package/examples/quasar-demo/.quasar/client-prefetch.js +130 -0
  52. package/examples/quasar-demo/.quasar/quasar-user-options.js +16 -0
  53. package/examples/quasar-demo/README.md +49 -0
  54. package/examples/quasar-demo/index.html +11 -0
  55. package/examples/quasar-demo/package-lock.json +6407 -0
  56. package/examples/quasar-demo/package.json +36 -0
  57. package/examples/quasar-demo/quasar.config.js +73 -0
  58. package/examples/quasar-demo/src/App.vue +13 -0
  59. package/examples/quasar-demo/src/css/app.scss +1 -0
  60. package/examples/quasar-demo/src/layouts/MainLayout.vue +21 -0
  61. package/examples/quasar-demo/src/pages/IndexPage.vue +905 -0
  62. package/examples/quasar-demo/src/router/index.ts +25 -0
  63. package/examples/quasar-demo/src/router/routes.ts +11 -0
  64. package/examples/quasar-demo/tsconfig.json +28 -0
  65. package/examples/register-subdomain.ts +152 -0
  66. package/examples/rsa-keypair.ts +148 -0
  67. package/examples/tag-builder.ts +235 -0
  68. package/examples/tag-management.ts +534 -0
  69. package/examples/tag-nested-tuple.ts +190 -0
  70. package/examples/tag-simple.ts +149 -0
  71. package/examples/tag-tagger.ts +217 -0
  72. package/examples/test-nested-tuple-conversion.ts +143 -0
  73. package/examples/test-type-bytes-parser.ts +70 -0
  74. package/examples/transfer-domain.ts +197 -0
  75. package/examples/wallet-management.ts +196 -0
  76. package/package.json +24 -15
  77. package/src/abi/RootResolver2ABI.ts +237 -0
  78. package/src/business/index.ts +1490 -0
  79. package/src/business/tag-context.ts +713 -0
  80. package/src/cli.ts +2755 -39
  81. package/src/debug.ts +17 -2
  82. package/src/index.ts +300 -14
  83. package/src/utils/crypto-utils.ts +459 -0
  84. package/src/utils/error-parser.ts +225 -0
  85. package/src/utils/tag-abi-codec.ts +158 -0
  86. package/src/utils/tag-type-builder.ts +469 -0
  87. package/tsconfig.json +1 -1
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * THIS FILE IS GENERATED AUTOMATICALLY.
4
+ * DO NOT EDIT.
5
+ *
6
+ * You are probably looking on adding startup/initialization code.
7
+ * Use "quasar new boot <name>" and add it there.
8
+ * One boot file per concern. Then reference the file(s) in quasar.config.js > boot:
9
+ * boot: ['file', ...] // do not add ".js" extension to it.
10
+ *
11
+ * Boot files are your "main.js"
12
+ **/
13
+
14
+ import { Notify } from 'quasar';
15
+
16
+ export default { config: { notify: {} }, plugins: { Notify } };
@@ -0,0 +1,49 @@
1
+ # OlaresID Quasar Demo
2
+
3
+ 最简化的 Quasar 演示项目,展示如何在 Quasar 应用中使用 `@beclab/olaresid` 库。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ # 进入项目目录
9
+ cd did-system/packages/olaresid/examples/quasar-demo
10
+
11
+ # 安装依赖
12
+ npm install
13
+ ```
14
+
15
+ ## 运行
16
+
17
+ ```bash
18
+ # 开发模式
19
+ npm run dev
20
+ ```
21
+
22
+ 项目将在 `http://localhost:9001` 运行。
23
+
24
+ ## 项目结构
25
+
26
+ ```
27
+ quasar-demo/
28
+ ├── src/
29
+ │ ├── layouts/
30
+ │ │ └── MainLayout.vue # 主布局
31
+ │ ├── pages/
32
+ │ │ └── IndexPage.vue # 首页(演示 OlaresID)
33
+ │ ├── router/
34
+ │ │ ├── index.ts # 路由配置
35
+ │ │ └── routes.ts # 路由定义
36
+ │ ├── css/
37
+ │ │ └── app.scss # 全局样式
38
+ │ └── App.vue # 根组件
39
+ ├── index.html # HTML 模板
40
+ ├── package.json # 依赖配置
41
+ ├── quasar.config.js # Quasar 配置
42
+ └── tsconfig.json # TypeScript 配置
43
+ ```
44
+
45
+ ## 功能
46
+
47
+ - 显示 OlaresID 实例信息
48
+ - 测试域名查询功能
49
+ - 示例域名:`tw7613781.olares.com`
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>OlaresID Demo</title>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
7
+ </head>
8
+ <body>
9
+ <!-- quasar:entry-point -->
10
+ </body>
11
+ </html>