@geeqdev/geeq-sdk 0.2.0 → 0.2.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/README.md +12 -2
- package/dist/browser/geeq_core_bg.wasm +0 -0
- package/dist/browser/index.js +12468 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/node/geeq_core_bg.wasm +0 -0
- package/dist/node/index.cjs +12559 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +12469 -0
- package/dist/node/index.js.map +1 -0
- package/dist/types/index.d.cts +2224 -0
- package/dist/types/index.d.ts +2224 -0
- package/package.json +8 -3
- package/.idea/geeq_sdk.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.nvmrc +0 -1
- package/CONTRIBUTING.md +0 -20
- package/example/.env.example +0 -4
- package/example/README.md +0 -304
- package/example/USAGE.md +0 -74
- package/example/index.html +0 -12
- package/example/package-lock.json +0 -1557
- package/example/package.json +0 -25
- package/example/scripts/browser-check.mjs +0 -1421
- package/example/scripts/match-derivation.mjs +0 -65
- package/example/src/App.vue +0 -138
- package/example/src/components/AuthorityPanel.vue +0 -277
- package/example/src/components/ChainPanel.vue +0 -267
- package/example/src/components/ChainState.vue +0 -59
- package/example/src/components/CopyButton.vue +0 -25
- package/example/src/components/CreateAssetPanel.vue +0 -313
- package/example/src/components/DigitalAssetsPanel.vue +0 -68
- package/example/src/components/EvidencePanel.vue +0 -396
- package/example/src/components/ExplorerPanel.vue +0 -119
- package/example/src/components/KeypairPanel.vue +0 -182
- package/example/src/components/PhrasePanel.vue +0 -105
- package/example/src/components/SocketWarning.vue +0 -18
- package/example/src/components/StepGate.vue +0 -24
- package/example/src/components/TransferPanel.vue +0 -416
- package/example/src/components/TxDeadline.vue +0 -19
- package/example/src/components/TxFee.vue +0 -31
- package/example/src/components/TxStatus.vue +0 -105
- package/example/src/composables/useSocketConnection.ts +0 -80
- package/example/src/env.d.ts +0 -12
- package/example/src/main.ts +0 -5
- package/example/src/pennies.ts +0 -7
- package/example/src/style.css +0 -149
- package/example/tsconfig.json +0 -19
- package/example/vite.config.ts +0 -26
- package/jest.config.js +0 -18
- package/scripts/copy-wasm.mjs +0 -21
- package/scripts/smoke.mjs +0 -382
- package/tsconfig.build.json +0 -8
- package/tsconfig.json +0 -21
- package/tsup.config.ts +0 -60
package/tsup.config.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
import type { Plugin } from 'esbuild'
|
|
3
|
-
import { fileURLToPath } from 'node:url'
|
|
4
|
-
|
|
5
|
-
const abs = (p: string) => fileURLToPath(new URL(p, import.meta.url))
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The Node build reads the engine off disk; the browser build fetches it as a
|
|
9
|
-
* bundler asset. Both targets share every other line of source, so the only
|
|
10
|
-
* difference is which loader module `runtime/init.ts` ends up importing.
|
|
11
|
-
*/
|
|
12
|
-
const useNodeWasmLoader: Plugin = {
|
|
13
|
-
name: 'geeq-node-wasm-loader',
|
|
14
|
-
setup(build) {
|
|
15
|
-
build.onResolve({ filter: /wasm-loader\.browser$/ }, () => ({
|
|
16
|
-
path: abs('src/runtime/wasm-loader.node.ts'),
|
|
17
|
-
}))
|
|
18
|
-
},
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const shared = {
|
|
22
|
-
entry: { index: 'src/index.ts' },
|
|
23
|
-
dts: false, // the types-only build below owns declarations
|
|
24
|
-
sourcemap: true,
|
|
25
|
-
clean: true,
|
|
26
|
-
treeshake: true,
|
|
27
|
-
target: 'es2022',
|
|
28
|
-
// The Geeq WASM engine (src/wasm) and the Cap'n Proto schemas (src/capnp) are
|
|
29
|
-
// vendored source, so they are bundled in and neither Bitbucket nor a private
|
|
30
|
-
// registry is needed. The public runtime libraries stay external and are deduped
|
|
31
|
-
// by the consumer.
|
|
32
|
-
external: ['@noble/hashes', '@scure/bip39', 'capnp-ts'],
|
|
33
|
-
} as const
|
|
34
|
-
|
|
35
|
-
export default defineConfig([
|
|
36
|
-
{
|
|
37
|
-
...shared,
|
|
38
|
-
format: ['esm'],
|
|
39
|
-
outDir: 'dist/browser',
|
|
40
|
-
platform: 'browser',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
...shared,
|
|
44
|
-
format: ['esm', 'cjs'],
|
|
45
|
-
outDir: 'dist/node',
|
|
46
|
-
platform: 'node',
|
|
47
|
-
esbuildPlugins: [useNodeWasmLoader],
|
|
48
|
-
},
|
|
49
|
-
// Declarations rolled up into one file per module format: index.d.ts for import and
|
|
50
|
-
// index.d.cts for require. A single file has no relative imports for Node16 resolution
|
|
51
|
-
// to reject, and the .d.cts tells TypeScript the require build is CommonJS.
|
|
52
|
-
{
|
|
53
|
-
entry: shared.entry,
|
|
54
|
-
format: ['esm', 'cjs'],
|
|
55
|
-
outDir: 'dist/types',
|
|
56
|
-
clean: true,
|
|
57
|
-
dts: { only: true },
|
|
58
|
-
tsconfig: 'tsconfig.build.json',
|
|
59
|
-
},
|
|
60
|
-
])
|