@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.
- package/CLI.md +1300 -0
- package/README.md +37 -31
- package/TAG.md +589 -0
- package/dist/abi/RootResolver2ABI.d.ts +54 -0
- package/dist/abi/RootResolver2ABI.d.ts.map +1 -0
- package/dist/abi/RootResolver2ABI.js +240 -0
- package/dist/abi/RootResolver2ABI.js.map +1 -0
- package/dist/business/index.d.ts +302 -0
- package/dist/business/index.d.ts.map +1 -0
- package/dist/business/index.js +1209 -0
- package/dist/business/index.js.map +1 -0
- package/dist/business/tag-context.d.ts +219 -0
- package/dist/business/tag-context.d.ts.map +1 -0
- package/dist/business/tag-context.js +537 -0
- package/dist/business/tag-context.js.map +1 -0
- package/dist/cli.js +2085 -39
- package/dist/cli.js.map +1 -1
- package/dist/debug.d.ts.map +1 -1
- package/dist/debug.js +14 -2
- package/dist/debug.js.map +1 -1
- package/dist/index.d.ts +50 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +229 -9
- package/dist/index.js.map +1 -1
- package/dist/utils/crypto-utils.d.ts +130 -0
- package/dist/utils/crypto-utils.d.ts.map +1 -0
- package/dist/utils/crypto-utils.js +402 -0
- package/dist/utils/crypto-utils.js.map +1 -0
- package/dist/utils/error-parser.d.ts +35 -0
- package/dist/utils/error-parser.d.ts.map +1 -0
- package/dist/utils/error-parser.js +202 -0
- package/dist/utils/error-parser.js.map +1 -0
- package/dist/utils/tag-abi-codec.d.ts +69 -0
- package/dist/utils/tag-abi-codec.d.ts.map +1 -0
- package/dist/utils/tag-abi-codec.js +144 -0
- package/dist/utils/tag-abi-codec.js.map +1 -0
- package/dist/utils/tag-type-builder.d.ts +158 -0
- package/dist/utils/tag-type-builder.d.ts.map +1 -0
- package/dist/utils/tag-type-builder.js +410 -0
- package/dist/utils/tag-type-builder.js.map +1 -0
- package/examples/crypto-utilities.ts +140 -0
- package/examples/domain-context.ts +80 -0
- package/examples/generate-mnemonic.ts +149 -0
- package/examples/index.ts +1 -1
- package/examples/ip.ts +171 -0
- package/examples/legacy.ts +10 -10
- package/examples/list-wallets.ts +81 -0
- package/examples/quasar-demo/.eslintrc.js +23 -0
- package/examples/quasar-demo/.quasar/app.js +43 -0
- package/examples/quasar-demo/.quasar/client-entry.js +38 -0
- package/examples/quasar-demo/.quasar/client-prefetch.js +130 -0
- package/examples/quasar-demo/.quasar/quasar-user-options.js +16 -0
- package/examples/quasar-demo/README.md +49 -0
- package/examples/quasar-demo/index.html +11 -0
- package/examples/quasar-demo/package-lock.json +6407 -0
- package/examples/quasar-demo/package.json +36 -0
- package/examples/quasar-demo/quasar.config.js +73 -0
- package/examples/quasar-demo/src/App.vue +13 -0
- package/examples/quasar-demo/src/css/app.scss +1 -0
- package/examples/quasar-demo/src/layouts/MainLayout.vue +21 -0
- package/examples/quasar-demo/src/pages/IndexPage.vue +905 -0
- package/examples/quasar-demo/src/router/index.ts +25 -0
- package/examples/quasar-demo/src/router/routes.ts +11 -0
- package/examples/quasar-demo/tsconfig.json +28 -0
- package/examples/register-subdomain.ts +152 -0
- package/examples/rsa-keypair.ts +148 -0
- package/examples/tag-builder.ts +235 -0
- package/examples/tag-management.ts +534 -0
- package/examples/tag-nested-tuple.ts +190 -0
- package/examples/tag-simple.ts +149 -0
- package/examples/tag-tagger.ts +217 -0
- package/examples/test-nested-tuple-conversion.ts +143 -0
- package/examples/test-type-bytes-parser.ts +70 -0
- package/examples/transfer-domain.ts +197 -0
- package/examples/wallet-management.ts +196 -0
- package/package.json +24 -15
- package/src/abi/RootResolver2ABI.ts +237 -0
- package/src/business/index.ts +1490 -0
- package/src/business/tag-context.ts +713 -0
- package/src/cli.ts +2755 -39
- package/src/debug.ts +17 -2
- package/src/index.ts +300 -14
- package/src/utils/crypto-utils.ts +459 -0
- package/src/utils/error-parser.ts +225 -0
- package/src/utils/tag-abi-codec.ts +158 -0
- package/src/utils/tag-type-builder.ts +469 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "olaresid-quasar-demo",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "OlaresID Quasar Demo - Simple demo",
|
|
5
|
+
"productName": "OlaresID Demo",
|
|
6
|
+
"author": "Olares Team",
|
|
7
|
+
"private": true,
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "quasar dev",
|
|
10
|
+
"build": "quasar build"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@quasar/extras": "^1.16.4",
|
|
14
|
+
"@beclab/olaresid": "file:../../",
|
|
15
|
+
"quasar": "^2.6.0",
|
|
16
|
+
"vue": "^3.0.0",
|
|
17
|
+
"vue-router": "^4.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@quasar/app-vite": "^1.3.0",
|
|
21
|
+
"@types/node": "^12.20.21",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
|
23
|
+
"@typescript-eslint/parser": "^5.10.0",
|
|
24
|
+
"autoprefixer": "^10.4.2",
|
|
25
|
+
"eslint": "^8.10.0",
|
|
26
|
+
"eslint-config-prettier": "^8.1.0",
|
|
27
|
+
"eslint-plugin-vue": "^9.0.0",
|
|
28
|
+
"prettier": "^2.5.1",
|
|
29
|
+
"typescript": "^4.5.4"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": "^18 || ^16 || ^14.19",
|
|
33
|
+
"npm": ">= 6.13.4",
|
|
34
|
+
"yarn": ">= 1.21.1"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* eslint-env node */
|
|
2
|
+
|
|
3
|
+
const { configure } = require('quasar/wrappers');
|
|
4
|
+
|
|
5
|
+
module.exports = configure(function (/* ctx */) {
|
|
6
|
+
return {
|
|
7
|
+
// Disable ESLint for simplicity
|
|
8
|
+
// eslint: {
|
|
9
|
+
// warnings: true,
|
|
10
|
+
// errors: true,
|
|
11
|
+
// },
|
|
12
|
+
|
|
13
|
+
boot: [],
|
|
14
|
+
|
|
15
|
+
css: ['app.scss'],
|
|
16
|
+
|
|
17
|
+
extras: ['roboto-font', 'material-icons'],
|
|
18
|
+
|
|
19
|
+
build: {
|
|
20
|
+
env: {
|
|
21
|
+
NODE_RPC: 'https://sepolia.optimism.io',
|
|
22
|
+
CONTRACT_DID: '0xe2D7c3a9013960E04d4E9F5F9B63fff37eEd97A8',
|
|
23
|
+
CONTRACT_ROOT_RESOLVER:
|
|
24
|
+
'0xeF727cb066Fee98F88Db84555830063b4A24ddfc',
|
|
25
|
+
CONTRACT_ABI_TYPE: '0x7386fCBae6Ad4CCE1499d9153D99bc950B589718'
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
node: {
|
|
29
|
+
Buffer: true
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
target: {
|
|
33
|
+
browser: [
|
|
34
|
+
'es2019',
|
|
35
|
+
'edge88',
|
|
36
|
+
'firefox78',
|
|
37
|
+
'chrome87',
|
|
38
|
+
'safari13.1'
|
|
39
|
+
],
|
|
40
|
+
node: 'node16'
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
vueRouterMode: 'hash',
|
|
44
|
+
|
|
45
|
+
extendViteConf(viteConf) {
|
|
46
|
+
// Configure Vite to handle olaresid properly
|
|
47
|
+
viteConf.optimizeDeps = viteConf.optimizeDeps || {};
|
|
48
|
+
viteConf.optimizeDeps.include =
|
|
49
|
+
viteConf.optimizeDeps.include || [];
|
|
50
|
+
viteConf.optimizeDeps.include.push('@beclab/olaresid');
|
|
51
|
+
|
|
52
|
+
viteConf.build = viteConf.build || {};
|
|
53
|
+
viteConf.build.commonjsOptions = {
|
|
54
|
+
include: [/node_modules/, /@beclab\/olaresid/]
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
devServer: {
|
|
60
|
+
open: true,
|
|
61
|
+
port: 9001
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
framework: {
|
|
65
|
+
config: {
|
|
66
|
+
notify: {}
|
|
67
|
+
},
|
|
68
|
+
plugins: ['Notify']
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
animations: []
|
|
72
|
+
};
|
|
73
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// app global css
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<q-layout view="lHh Lpr lFf">
|
|
3
|
+
<q-header elevated>
|
|
4
|
+
<q-toolbar>
|
|
5
|
+
<q-toolbar-title> OlaresID Demo </q-toolbar-title>
|
|
6
|
+
</q-toolbar>
|
|
7
|
+
</q-header>
|
|
8
|
+
|
|
9
|
+
<q-page-container>
|
|
10
|
+
<router-view />
|
|
11
|
+
</q-page-container>
|
|
12
|
+
</q-layout>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts">
|
|
16
|
+
import { defineComponent } from 'vue';
|
|
17
|
+
|
|
18
|
+
export default defineComponent({
|
|
19
|
+
name: 'MainLayout'
|
|
20
|
+
});
|
|
21
|
+
</script>
|